const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.es-DYOcKob5.js","assets/index.es-Bgge-tB-.js","assets/index-CNi90x9u.js","assets/browser-DKyKpc3c.js","assets/index-ChBOqhlb.js","assets/index-COHSasgJ.js","assets/formatSearchParams-C4IYAEpQ.js","assets/_baseIteratee-7dBAmCi8.js","assets/hasIn-C3MZ1Y6C.js","assets/pickBy-CE5Bwd1O.js","assets/_basePickBy-CSkpdVhT.js","assets/index.browser.esm-td0i8UXo.js","assets/_baseUniq-CKqWSnHK.js","assets/index-5SwdtDpC.js","assets/index-i7kdCKNe.css","assets/isEmpty-CGFgSwqF.js","assets/index-C4v60V28.css","assets/index-4I3HKMO6.js","assets/lossFormat-BiHP7XfF.js","assets/isEqual-Btx0Uw-P.js","assets/index-glyOD_rS.js","assets/index-ca_rWm3_.css","assets/index-DneH47xf.js","assets/simulation-BVbaiQyH.js","assets/index-CZQ6ebD4.js","assets/uniq-C1h4ayRv.js","assets/index-CSp3_H7k.js","assets/capitalize-CGrE5d6Y.js","assets/_stringToArray-BUSBCKuZ.js","assets/select-DwsZfEcO.js","assets/index-BYn-cCFi.js","assets/index-jbgK8UKX.css","assets/index-nx5arZuL.js","assets/index-CC5_B1bE.css","assets/index-TkcsLHY5.js","assets/clone-okVXfUhh.js","assets/index-C1c3UxJA.js","assets/index-D02aTsl_.js","assets/index-6qbhbLH0.css","assets/index-sCNk0q1G.js","assets/index-C7_S0cB4.css","assets/index-B0VYAn0p.js","assets/index-CA2Y_Wj6.js","assets/motion-DuIzjFWX.js","assets/animate-CgAxBSDw.js","assets/index-C7z_SRJC.css","assets/index-Bz8Em-pi.js","assets/mode-json-H-f-q42J.js","assets/index-D_baNE5a.js","assets/index-Izo5900q.js","assets/index-MkLZ_DrS.css","assets/networkFormat-BEVz7peL.js","assets/index-DgWLFfWk.js","assets/index-Pa4OIOsd.js","assets/MinusCircleOutlined-CNdGBh_p.js","assets/index-DuQi4SVF.js","assets/index-BP9wWQcb.js","assets/index-CCTRfTUx.css","assets/biz-BD1Qi6fx.js","assets/index-2O0O23Nr.css","assets/index-CLwi2IT9.js","assets/index-DYLIfn9y.css","assets/index-BWZWiW9Z.js","assets/index-CE2Bw6Hb.js","assets/index-BKWMfhiG.js","assets/ExclamationCircleOutlined-CWCrN6go.js","assets/index-CzYUy25F.css","assets/index-CrjdiwvV.js","assets/index-Dq-q8rAv.css","assets/index-Rk2bqJpM.js","assets/index-CCpeJVMh.css","assets/index-uD50fMRY.js","assets/index-CMYULnm0.js","assets/index-BPXx3ySW.css","assets/index-DRuPvXWx.js","assets/index-Dpkv84rj.js","assets/index-ljd9Hilq.css","assets/index-BxfCwRs7.js","assets/number-v1zlsorD.js","assets/index-aoUTHViv.js","assets/index-l5iNfGQd.js","assets/index-BsuCIjpF.js","assets/index-Bz0Bmiwh.css","assets/index-Cd5iZerT.css","assets/index-D2Dxa00s.js","assets/index-CX6HUhvA.css","assets/index-CKbxUsRs.js","assets/main-zpG2pL-6.js","assets/index-BJpHC4ef.js","assets/index-DTNpJ4UH.js","assets/index-yxrL9zJs.js","assets/index-BEgqdGHj.js","assets/index-CvnLDpv1.js","assets/index-B7uSoqJ7.js","assets/index-Bqayflre.css","assets/index-Hdlo_6Rv.js","assets/_baseEach-Cyfnyabl.js","assets/index-DzqIrAvD.js","assets/index-C__IWtpE.js","assets/index-baCjfLhE.js","assets/index-5MbD684-.css","assets/index-CauZlMDA.js","assets/date-Dzrs2SOa.js","assets/index-DCg267dj.css","assets/index-BHXwxrYZ.js","assets/index-MSQL7BBb.js","assets/index-BBH7WKS7.css","assets/index-D0ciVQci.js","assets/index-_4sO7gw0.css","assets/index-BGGAEY_1.js","assets/SafeApiKit-u5hfRYd1.js","assets/index-D85oA1Xj.css","assets/index-DXtExzb0.js","assets/index-DgLGOgr9.css","assets/index-CpDtBVw2.js","assets/index-DoGQBa9o.js","assets/index-C1LzN8hg.js","assets/index-DhWfixQ1.css","assets/index-DzzzNKt8.js","assets/index-Bu0tQcKj.css","assets/index-BgwwEtRs.js","assets/index-BCUVw-or.css","assets/index-D2dHTN2p.js","assets/index-Cr51767b.css","assets/index-DbtztyoS.js","assets/index-D3IsuuKS.css","assets/index-Dos8Bv8T.js","assets/index-DAHhsfEz.css","assets/index-D6qGa_Q2.js","assets/index-Dxb7wmWy.js","assets/sortBy-fJ9EUMKc.js","assets/helper-L-S3G93S.js","assets/index-DVFSd2yg.css","assets/index-xUeyuYkH.js","assets/index-o8cvHsNg.css","assets/index-CP7qHk8h.js","assets/index-BCITO0vi.js","assets/index-B3eror_W.css","assets/index-DNw1DL9B.js","assets/index-JiKR3h8E.js","assets/index-UVzM3Mvo.js","assets/index-CXVXKvfo.css","assets/index-BJL8z2ZX.js"])))=>i.map(i=>d[i]);
var t0=Object.defineProperty;var Ys=ht=>{throw TypeError(ht)};var r0=(ht,Et,yt)=>Et in ht?t0(ht,Et,{enumerable:!0,configurable:!0,writable:!0,value:yt}):ht[Et]=yt;var wu=(ht,Et,yt)=>r0(ht,typeof Et!="symbol"?Et+"":Et,yt),js=(ht,Et,yt)=>Et.has(ht)||Ys("Cannot "+yt);var qn=(ht,Et,yt)=>(js(ht,Et,"read from private field"),yt?yt.call(ht):Et.get(ht)),Ku=(ht,Et,yt)=>Et.has(ht)?Ys("Cannot add the same private member more than once"):Et instanceof WeakSet?Et.add(ht):Et.set(ht,yt),Wu=(ht,Et,yt,Ct)=>(js(ht,Et,"write to private field"),Ct?Ct.call(ht,yt):Et.set(ht,yt),yt),Pu=(ht,Et,yt)=>(js(ht,Et,"access private method"),yt);var Zs=(ht,Et,yt,Ct)=>({set _($t){Wu(ht,Et,$t,yt)},get _(){return qn(ht,Et,Ct)}});function _mergeNamespaces(ht,Et){for(var yt=0;yt<Et.length;yt++){const Ct=Et[yt];if(typeof Ct!="string"&&!Array.isArray(Ct)){for(const $t in Ct)if($t!=="default"&&!($t in ht)){const At=Object.getOwnPropertyDescriptor(Ct,$t);At&&Object.defineProperty(ht,$t,At.get?At:{enumerable:!0,get:()=>Ct[$t]})}}}return Object.freeze(Object.defineProperty(ht,Symbol.toStringTag,{value:"Module"}))}(function(){const Et=document.createElement("link").relList;if(Et&&Et.supports&&Et.supports("modulepreload"))return;for(const $t of document.querySelectorAll('link[rel="modulepreload"]'))Ct($t);new MutationObserver($t=>{for(const At of $t)if(At.type==="childList")for(const Bt of At.addedNodes)Bt.tagName==="LINK"&&Bt.rel==="modulepreload"&&Ct(Bt)}).observe(document,{childList:!0,subtree:!0});function yt($t){const At={};return $t.integrity&&(At.integrity=$t.integrity),$t.referrerPolicy&&(At.referrerPolicy=$t.referrerPolicy),$t.crossOrigin==="use-credentials"?At.credentials="include":$t.crossOrigin==="anonymous"?At.credentials="omit":At.credentials="same-origin",At}function Ct($t){if($t.ep)return;$t.ep=!0;const At=yt($t);fetch($t.href,At)}})();var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs$1(ht){return ht&&ht.__esModule&&Object.prototype.hasOwnProperty.call(ht,"default")?ht.default:ht}function getAugmentedNamespace(ht){if(ht.__esModule)return ht;var Et=ht.default;if(typeof Et=="function"){var yt=function Ct(){return this instanceof Ct?Reflect.construct(Et,arguments,this.constructor):Et.apply(this,arguments)};yt.prototype=Et.prototype}else yt={};return Object.defineProperty(yt,"__esModule",{value:!0}),Object.keys(ht).forEach(function(Ct){var $t=Object.getOwnPropertyDescriptor(ht,Ct);Object.defineProperty(yt,Ct,$t.get?$t:{enumerable:!0,get:function(){return ht[Ct]}})}),yt}var jsxRuntime={exports:{}},reactJsxRuntime_production_min={},react={exports:{}},react_production_min={};/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var l$d=Symbol.for("react.element"),n$c=Symbol.for("react.portal"),p$f=Symbol.for("react.fragment"),q$8=Symbol.for("react.strict_mode"),r$c=Symbol.for("react.profiler"),t$f=Symbol.for("react.provider"),u$f=Symbol.for("react.context"),v$8=Symbol.for("react.forward_ref"),w$6=Symbol.for("react.suspense"),x$4=Symbol.for("react.memo"),y$6=Symbol.for("react.lazy"),z$4=Symbol.iterator;function A$3(ht){return ht===null||typeof ht!="object"?null:(ht=z$4&&ht[z$4]||ht["@@iterator"],typeof ht=="function"?ht:null)}var B$3={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C$3=Object.assign,D$5={};function E$3(ht,Et,yt){this.props=ht,this.context=Et,this.refs=D$5,this.updater=yt||B$3}E$3.prototype.isReactComponent={};E$3.prototype.setState=function(ht,Et){if(typeof ht!="object"&&typeof ht!="function"&&ht!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,ht,Et,"setState")};E$3.prototype.forceUpdate=function(ht){this.updater.enqueueForceUpdate(this,ht,"forceUpdate")};function F$4(){}F$4.prototype=E$3.prototype;function G$2(ht,Et,yt){this.props=ht,this.context=Et,this.refs=D$5,this.updater=yt||B$3}var H$3=G$2.prototype=new F$4;H$3.constructor=G$2;C$3(H$3,E$3.prototype);H$3.isPureReactComponent=!0;var I$8=Array.isArray,J=Object.prototype.hasOwnProperty,K$6={current:null},L$2={key:!0,ref:!0,__self:!0,__source:!0};function M$5(ht,Et,yt){var Ct,$t={},At=null,Bt=null;if(Et!=null)for(Ct in Et.ref!==void 0&&(Bt=Et.ref),Et.key!==void 0&&(At=""+Et.key),Et)J.call(Et,Ct)&&!L$2.hasOwnProperty(Ct)&&($t[Ct]=Et[Ct]);var Dt=arguments.length-2;if(Dt===1)$t.children=yt;else if(1<Dt){for(var Ft=Array(Dt),kt=0;kt<Dt;kt++)Ft[kt]=arguments[kt+2];$t.children=Ft}if(ht&&ht.defaultProps)for(Ct in Dt=ht.defaultProps,Dt)$t[Ct]===void 0&&($t[Ct]=Dt[Ct]);return{$$typeof:l$d,type:ht,key:At,ref:Bt,props:$t,_owner:K$6.current}}function N$5(ht,Et){return{$$typeof:l$d,type:ht.type,key:Et,ref:ht.ref,props:ht.props,_owner:ht._owner}}function O$4(ht){return typeof ht=="object"&&ht!==null&&ht.$$typeof===l$d}function escape$2(ht){var Et={"=":"=0",":":"=2"};return"$"+ht.replace(/[=:]/g,function(yt){return Et[yt]})}var P$5=/\/+/g;function Q$3(ht,Et){return typeof ht=="object"&&ht!==null&&ht.key!=null?escape$2(""+ht.key):Et.toString(36)}function R$4(ht,Et,yt,Ct,$t){var At=typeof ht;(At==="undefined"||At==="boolean")&&(ht=null);var Bt=!1;if(ht===null)Bt=!0;else switch(At){case"string":case"number":Bt=!0;break;case"object":switch(ht.$$typeof){case l$d:case n$c:Bt=!0}}if(Bt)return Bt=ht,$t=$t(Bt),ht=Ct===""?"."+Q$3(Bt,0):Ct,I$8($t)?(yt="",ht!=null&&(yt=ht.replace(P$5,"$&/")+"/"),R$4($t,Et,yt,"",function(kt){return kt})):$t!=null&&(O$4($t)&&($t=N$5($t,yt+(!$t.key||Bt&&Bt.key===$t.key?"":(""+$t.key).replace(P$5,"$&/")+"/")+ht)),Et.push($t)),1;if(Bt=0,Ct=Ct===""?".":Ct+":",I$8(ht))for(var Dt=0;Dt<ht.length;Dt++){At=ht[Dt];var Ft=Ct+Q$3(At,Dt);Bt+=R$4(At,Et,yt,Ft,$t)}else if(Ft=A$3(ht),typeof Ft=="function")for(ht=Ft.call(ht),Dt=0;!(At=ht.next()).done;)At=At.value,Ft=Ct+Q$3(At,Dt++),Bt+=R$4(At,Et,yt,Ft,$t);else if(At==="object")throw Et=String(ht),Error("Objects are not valid as a React child (found: "+(Et==="[object Object]"?"object with keys {"+Object.keys(ht).join(", ")+"}":Et)+"). If you meant to render a collection of children, use an array instead.");return Bt}function S$9(ht,Et,yt){if(ht==null)return ht;var Ct=[],$t=0;return R$4(ht,Ct,"","",function(At){return Et.call(yt,At,$t++)}),Ct}function T$6(ht){if(ht._status===-1){var Et=ht._result;Et=Et(),Et.then(function(yt){(ht._status===0||ht._status===-1)&&(ht._status=1,ht._result=yt)},function(yt){(ht._status===0||ht._status===-1)&&(ht._status=2,ht._result=yt)}),ht._status===-1&&(ht._status=0,ht._result=Et)}if(ht._status===1)return ht._result.default;throw ht._result}var U$4={current:null},V$1={transition:null},W$7={ReactCurrentDispatcher:U$4,ReactCurrentBatchConfig:V$1,ReactCurrentOwner:K$6};function X$2(){throw Error("act(...) is not supported in production builds of React.")}react_production_min.Children={map:S$9,forEach:function(ht,Et,yt){S$9(ht,function(){Et.apply(this,arguments)},yt)},count:function(ht){var Et=0;return S$9(ht,function(){Et++}),Et},toArray:function(ht){return S$9(ht,function(Et){return Et})||[]},only:function(ht){if(!O$4(ht))throw Error("React.Children.only expected to receive a single React element child.");return ht}};react_production_min.Component=E$3;react_production_min.Fragment=p$f;react_production_min.Profiler=r$c;react_production_min.PureComponent=G$2;react_production_min.StrictMode=q$8;react_production_min.Suspense=w$6;react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W$7;react_production_min.act=X$2;react_production_min.cloneElement=function(ht,Et,yt){if(ht==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+ht+".");var Ct=C$3({},ht.props),$t=ht.key,At=ht.ref,Bt=ht._owner;if(Et!=null){if(Et.ref!==void 0&&(At=Et.ref,Bt=K$6.current),Et.key!==void 0&&($t=""+Et.key),ht.type&&ht.type.defaultProps)var Dt=ht.type.defaultProps;for(Ft in Et)J.call(Et,Ft)&&!L$2.hasOwnProperty(Ft)&&(Ct[Ft]=Et[Ft]===void 0&&Dt!==void 0?Dt[Ft]:Et[Ft])}var Ft=arguments.length-2;if(Ft===1)Ct.children=yt;else if(1<Ft){Dt=Array(Ft);for(var kt=0;kt<Ft;kt++)Dt[kt]=arguments[kt+2];Ct.children=Dt}return{$$typeof:l$d,type:ht.type,key:$t,ref:At,props:Ct,_owner:Bt}};react_production_min.createContext=function(ht){return ht={$$typeof:u$f,_currentValue:ht,_currentValue2:ht,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},ht.Provider={$$typeof:t$f,_context:ht},ht.Consumer=ht};react_production_min.createElement=M$5;react_production_min.createFactory=function(ht){var Et=M$5.bind(null,ht);return Et.type=ht,Et};react_production_min.createRef=function(){return{current:null}};react_production_min.forwardRef=function(ht){return{$$typeof:v$8,render:ht}};react_production_min.isValidElement=O$4;react_production_min.lazy=function(ht){return{$$typeof:y$6,_payload:{_status:-1,_result:ht},_init:T$6}};react_production_min.memo=function(ht,Et){return{$$typeof:x$4,type:ht,compare:Et===void 0?null:Et}};react_production_min.startTransition=function(ht){var Et=V$1.transition;V$1.transition={};try{ht()}finally{V$1.transition=Et}};react_production_min.unstable_act=X$2;react_production_min.useCallback=function(ht,Et){return U$4.current.useCallback(ht,Et)};react_production_min.useContext=function(ht){return U$4.current.useContext(ht)};react_production_min.useDebugValue=function(){};react_production_min.useDeferredValue=function(ht){return U$4.current.useDeferredValue(ht)};react_production_min.useEffect=function(ht,Et){return U$4.current.useEffect(ht,Et)};react_production_min.useId=function(){return U$4.current.useId()};react_production_min.useImperativeHandle=function(ht,Et,yt){return U$4.current.useImperativeHandle(ht,Et,yt)};react_production_min.useInsertionEffect=function(ht,Et){return U$4.current.useInsertionEffect(ht,Et)};react_production_min.useLayoutEffect=function(ht,Et){return U$4.current.useLayoutEffect(ht,Et)};react_production_min.useMemo=function(ht,Et){return U$4.current.useMemo(ht,Et)};react_production_min.useReducer=function(ht,Et,yt){return U$4.current.useReducer(ht,Et,yt)};react_production_min.useRef=function(ht){return U$4.current.useRef(ht)};react_production_min.useState=function(ht){return U$4.current.useState(ht)};react_production_min.useSyncExternalStore=function(ht,Et,yt){return U$4.current.useSyncExternalStore(ht,Et,yt)};react_production_min.useTransition=function(){return U$4.current.useTransition()};react_production_min.version="18.3.1";react.exports=react_production_min;var reactExports=react.exports;const React$8=getDefaultExportFromCjs$1(reactExports),e$9=_mergeNamespaces({__proto__:null,default:React$8},[reactExports]);/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var f$d=reactExports,k$6=Symbol.for("react.element"),l$c=Symbol.for("react.fragment"),m$9=Object.prototype.hasOwnProperty,n$b=f$d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p$e={key:!0,ref:!0,__self:!0,__source:!0};function q$7(ht,Et,yt){var Ct,$t={},At=null,Bt=null;yt!==void 0&&(At=""+yt),Et.key!==void 0&&(At=""+Et.key),Et.ref!==void 0&&(Bt=Et.ref);for(Ct in Et)m$9.call(Et,Ct)&&!p$e.hasOwnProperty(Ct)&&($t[Ct]=Et[Ct]);if(ht&&ht.defaultProps)for(Ct in Et=ht.defaultProps,Et)$t[Ct]===void 0&&($t[Ct]=Et[Ct]);return{$$typeof:k$6,type:ht,key:At,ref:Bt,props:$t,_owner:n$b.current}}reactJsxRuntime_production_min.Fragment=l$c;reactJsxRuntime_production_min.jsx=q$7;reactJsxRuntime_production_min.jsxs=q$7;jsxRuntime.exports=reactJsxRuntime_production_min;var jsxRuntimeExports=jsxRuntime.exports,client={},reactDom={exports:{}},reactDom_production_min={},scheduler={exports:{}},scheduler_production_min={};/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */(function(ht){function Et(lr,Jt){var Ut=lr.length;lr.push(Jt);e:for(;0<Ut;){var ir=Ut-1>>>1,Cr=lr[ir];if(0<$t(Cr,Jt))lr[ir]=Jt,lr[Ut]=Cr,Ut=ir;else break e}}function yt(lr){return lr.length===0?null:lr[0]}function Ct(lr){if(lr.length===0)return null;var Jt=lr[0],Ut=lr.pop();if(Ut!==Jt){lr[0]=Ut;e:for(var ir=0,Cr=lr.length,_r=Cr>>>1;ir<_r;){var $r=2*(ir+1)-1,Tr=lr[$r],Dr=$r+1,Ar=lr[Dr];if(0>$t(Tr,Ut))Dr<Cr&&0>$t(Ar,Tr)?(lr[ir]=Ar,lr[Dr]=Ut,ir=Dr):(lr[ir]=Tr,lr[$r]=Ut,ir=$r);else if(Dr<Cr&&0>$t(Ar,Ut))lr[ir]=Ar,lr[Dr]=Ut,ir=Dr;else break e}}return Jt}function $t(lr,Jt){var Ut=lr.sortIndex-Jt.sortIndex;return Ut!==0?Ut:lr.id-Jt.id}if(typeof performance=="object"&&typeof performance.now=="function"){var At=performance;ht.unstable_now=function(){return At.now()}}else{var Bt=Date,Dt=Bt.now();ht.unstable_now=function(){return Bt.now()-Dt}}var Ft=[],kt=[],Mt=1,Nt=null,jt=3,zt=!1,Vt=!1,Kt=!1,Xt=typeof setTimeout=="function"?setTimeout:null,Qt=typeof clearTimeout=="function"?clearTimeout:null,Zt=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function dr(lr){for(var Jt=yt(kt);Jt!==null;){if(Jt.callback===null)Ct(kt);else if(Jt.startTime<=lr)Ct(kt),Jt.sortIndex=Jt.expirationTime,Et(Ft,Jt);else break;Jt=yt(kt)}}function cr(lr){if(Kt=!1,dr(lr),!Vt)if(yt(Ft)!==null)Vt=!0,Yt(Er);else{var Jt=yt(kt);Jt!==null&&er(cr,Jt.startTime-lr)}}function Er(lr,Jt){Vt=!1,Kt&&(Kt=!1,Qt(vr),vr=-1),zt=!0;var Ut=jt;try{for(dr(Jt),Nt=yt(Ft);Nt!==null&&(!(Nt.expirationTime>Jt)||lr&&!rr());){var ir=Nt.callback;if(typeof ir=="function"){Nt.callback=null,jt=Nt.priorityLevel;var Cr=ir(Nt.expirationTime<=Jt);Jt=ht.unstable_now(),typeof Cr=="function"?Nt.callback=Cr:Nt===yt(Ft)&&Ct(Ft),dr(Jt)}else Ct(Ft);Nt=yt(Ft)}if(Nt!==null)var _r=!0;else{var $r=yt(kt);$r!==null&&er(cr,$r.startTime-Jt),_r=!1}return _r}finally{Nt=null,jt=Ut,zt=!1}}var pr=!1,gr=null,vr=-1,yr=5,xr=-1;function rr(){return!(ht.unstable_now()-xr<yr)}function Lt(){if(gr!==null){var lr=ht.unstable_now();xr=lr;var Jt=!0;try{Jt=gr(!0,lr)}finally{Jt?Ht():(pr=!1,gr=null)}}else pr=!1}var Ht;if(typeof Zt=="function")Ht=function(){Zt(Lt)};else if(typeof MessageChannel<"u"){var Wt=new MessageChannel,Gt=Wt.port2;Wt.port1.onmessage=Lt,Ht=function(){Gt.postMessage(null)}}else Ht=function(){Xt(Lt,0)};function Yt(lr){gr=lr,pr||(pr=!0,Ht())}function er(lr,Jt){vr=Xt(function(){lr(ht.unstable_now())},Jt)}ht.unstable_IdlePriority=5,ht.unstable_ImmediatePriority=1,ht.unstable_LowPriority=4,ht.unstable_NormalPriority=3,ht.unstable_Profiling=null,ht.unstable_UserBlockingPriority=2,ht.unstable_cancelCallback=function(lr){lr.callback=null},ht.unstable_continueExecution=function(){Vt||zt||(Vt=!0,Yt(Er))},ht.unstable_forceFrameRate=function(lr){0>lr||125<lr?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):yr=0<lr?Math.floor(1e3/lr):5},ht.unstable_getCurrentPriorityLevel=function(){return jt},ht.unstable_getFirstCallbackNode=function(){return yt(Ft)},ht.unstable_next=function(lr){switch(jt){case 1:case 2:case 3:var Jt=3;break;default:Jt=jt}var Ut=jt;jt=Jt;try{return lr()}finally{jt=Ut}},ht.unstable_pauseExecution=function(){},ht.unstable_requestPaint=function(){},ht.unstable_runWithPriority=function(lr,Jt){switch(lr){case 1:case 2:case 3:case 4:case 5:break;default:lr=3}var Ut=jt;jt=lr;try{return Jt()}finally{jt=Ut}},ht.unstable_scheduleCallback=function(lr,Jt,Ut){var ir=ht.unstable_now();switch(typeof Ut=="object"&&Ut!==null?(Ut=Ut.delay,Ut=typeof Ut=="number"&&0<Ut?ir+Ut:ir):Ut=ir,lr){case 1:var Cr=-1;break;case 2:Cr=250;break;case 5:Cr=1073741823;break;case 4:Cr=1e4;break;default:Cr=5e3}return Cr=Ut+Cr,lr={id:Mt++,callback:Jt,priorityLevel:lr,startTime:Ut,expirationTime:Cr,sortIndex:-1},Ut>ir?(lr.sortIndex=Ut,Et(kt,lr),yt(Ft)===null&&lr===yt(kt)&&(Kt?(Qt(vr),vr=-1):Kt=!0,er(cr,Ut-ir))):(lr.sortIndex=Cr,Et(Ft,lr),Vt||zt||(Vt=!0,Yt(Er))),lr},ht.unstable_shouldYield=rr,ht.unstable_wrapCallback=function(lr){var Jt=jt;return function(){var Ut=jt;jt=Jt;try{return lr.apply(this,arguments)}finally{jt=Ut}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports;/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var aa=reactExports,ca$1=schedulerExports;function p$d(ht){for(var Et="https://reactjs.org/docs/error-decoder.html?invariant="+ht,yt=1;yt<arguments.length;yt++)Et+="&args[]="+encodeURIComponent(arguments[yt]);return"Minified React error #"+ht+"; visit "+Et+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var da$1=new Set,ea={};function fa$1(ht,Et){ha$1(ht,Et),ha$1(ht+"Capture",Et)}function ha$1(ht,Et){for(ea[ht]=Et,ht=0;ht<Et.length;ht++)da$1.add(Et[ht])}var ia$1=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ja$1=Object.prototype.hasOwnProperty,ka$1=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,la={},ma={};function oa(ht){return ja$1.call(ma,ht)?!0:ja$1.call(la,ht)?!1:ka$1.test(ht)?ma[ht]=!0:(la[ht]=!0,!1)}function pa$1(ht,Et,yt,Ct){if(yt!==null&&yt.type===0)return!1;switch(typeof Et){case"function":case"symbol":return!0;case"boolean":return Ct?!1:yt!==null?!yt.acceptsBooleans:(ht=ht.toLowerCase().slice(0,5),ht!=="data-"&&ht!=="aria-");default:return!1}}function qa(ht,Et,yt,Ct){if(Et===null||typeof Et>"u"||pa$1(ht,Et,yt,Ct))return!0;if(Ct)return!1;if(yt!==null)switch(yt.type){case 3:return!Et;case 4:return Et===!1;case 5:return isNaN(Et);case 6:return isNaN(Et)||1>Et}return!1}function v$7(ht,Et,yt,Ct,$t,At,Bt){this.acceptsBooleans=Et===2||Et===3||Et===4,this.attributeName=Ct,this.attributeNamespace=$t,this.mustUseProperty=yt,this.propertyName=ht,this.type=Et,this.sanitizeURL=At,this.removeEmptyString=Bt}var z$3={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(ht){z$3[ht]=new v$7(ht,0,!1,ht,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(ht){var Et=ht[0];z$3[Et]=new v$7(Et,1,!1,ht[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(ht){z$3[ht]=new v$7(ht,2,!1,ht.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(ht){z$3[ht]=new v$7(ht,2,!1,ht,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(ht){z$3[ht]=new v$7(ht,3,!1,ht.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(ht){z$3[ht]=new v$7(ht,3,!0,ht,null,!1,!1)});["capture","download"].forEach(function(ht){z$3[ht]=new v$7(ht,4,!1,ht,null,!1,!1)});["cols","rows","size","span"].forEach(function(ht){z$3[ht]=new v$7(ht,6,!1,ht,null,!1,!1)});["rowSpan","start"].forEach(function(ht){z$3[ht]=new v$7(ht,5,!1,ht.toLowerCase(),null,!1,!1)});var ra=/[\-:]([a-z])/g;function sa(ht){return ht[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(ht){var Et=ht.replace(ra,sa);z$3[Et]=new v$7(Et,1,!1,ht,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(ht){var Et=ht.replace(ra,sa);z$3[Et]=new v$7(Et,1,!1,ht,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(ht){var Et=ht.replace(ra,sa);z$3[Et]=new v$7(Et,1,!1,ht,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(ht){z$3[ht]=new v$7(ht,1,!1,ht.toLowerCase(),null,!1,!1)});z$3.xlinkHref=new v$7("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(ht){z$3[ht]=new v$7(ht,1,!1,ht.toLowerCase(),null,!0,!0)});function ta$1(ht,Et,yt,Ct){var $t=z$3.hasOwnProperty(Et)?z$3[Et]:null;($t!==null?$t.type!==0:Ct||!(2<Et.length)||Et[0]!=="o"&&Et[0]!=="O"||Et[1]!=="n"&&Et[1]!=="N")&&(qa(Et,yt,$t,Ct)&&(yt=null),Ct||$t===null?oa(Et)&&(yt===null?ht.removeAttribute(Et):ht.setAttribute(Et,""+yt)):$t.mustUseProperty?ht[$t.propertyName]=yt===null?$t.type===3?!1:"":yt:(Et=$t.attributeName,Ct=$t.attributeNamespace,yt===null?ht.removeAttribute(Et):($t=$t.type,yt=$t===3||$t===4&&yt===!0?"":""+yt,Ct?ht.setAttributeNS(Ct,Et,yt):ht.setAttribute(Et,yt))))}var ua$1=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,va=Symbol.for("react.element"),wa$1=Symbol.for("react.portal"),ya=Symbol.for("react.fragment"),za=Symbol.for("react.strict_mode"),Aa=Symbol.for("react.profiler"),Ba=Symbol.for("react.provider"),Ca=Symbol.for("react.context"),Da=Symbol.for("react.forward_ref"),Ea=Symbol.for("react.suspense"),Fa=Symbol.for("react.suspense_list"),Ga=Symbol.for("react.memo"),Ha=Symbol.for("react.lazy"),Ia=Symbol.for("react.offscreen"),Ja=Symbol.iterator;function Ka(ht){return ht===null||typeof ht!="object"?null:(ht=Ja&&ht[Ja]||ht["@@iterator"],typeof ht=="function"?ht:null)}var A$2=Object.assign,La;function Ma(ht){if(La===void 0)try{throw Error()}catch(yt){var Et=yt.stack.trim().match(/\n( *(at )?)/);La=Et&&Et[1]||""}return`
`+La+ht}var Na=!1;function Oa(ht,Et){if(!ht||Na)return"";Na=!0;var yt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(Et)if(Et=function(){throw Error()},Object.defineProperty(Et.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Et,[])}catch(kt){var Ct=kt}Reflect.construct(ht,[],Et)}else{try{Et.call()}catch(kt){Ct=kt}ht.call(Et.prototype)}else{try{throw Error()}catch(kt){Ct=kt}ht()}}catch(kt){if(kt&&Ct&&typeof kt.stack=="string"){for(var $t=kt.stack.split(`
`),At=Ct.stack.split(`
`),Bt=$t.length-1,Dt=At.length-1;1<=Bt&&0<=Dt&&$t[Bt]!==At[Dt];)Dt--;for(;1<=Bt&&0<=Dt;Bt--,Dt--)if($t[Bt]!==At[Dt]){if(Bt!==1||Dt!==1)do if(Bt--,Dt--,0>Dt||$t[Bt]!==At[Dt]){var Ft=`
`+$t[Bt].replace(" at new "," at ");return ht.displayName&&Ft.includes("<anonymous>")&&(Ft=Ft.replace("<anonymous>",ht.displayName)),Ft}while(1<=Bt&&0<=Dt);break}}}finally{Na=!1,Error.prepareStackTrace=yt}return(ht=ht?ht.displayName||ht.name:"")?Ma(ht):""}function Pa(ht){switch(ht.tag){case 5:return Ma(ht.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return ht=Oa(ht.type,!1),ht;case 11:return ht=Oa(ht.type.render,!1),ht;case 1:return ht=Oa(ht.type,!0),ht;default:return""}}function Qa(ht){if(ht==null)return null;if(typeof ht=="function")return ht.displayName||ht.name||null;if(typeof ht=="string")return ht;switch(ht){case ya:return"Fragment";case wa$1:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if(typeof ht=="object")switch(ht.$$typeof){case Ca:return(ht.displayName||"Context")+".Consumer";case Ba:return(ht._context.displayName||"Context")+".Provider";case Da:var Et=ht.render;return ht=ht.displayName,ht||(ht=Et.displayName||Et.name||"",ht=ht!==""?"ForwardRef("+ht+")":"ForwardRef"),ht;case Ga:return Et=ht.displayName||null,Et!==null?Et:Qa(ht.type)||"Memo";case Ha:Et=ht._payload,ht=ht._init;try{return Qa(ht(Et))}catch{}}return null}function Ra(ht){var Et=ht.type;switch(ht.tag){case 24:return"Cache";case 9:return(Et.displayName||"Context")+".Consumer";case 10:return(Et._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return ht=Et.render,ht=ht.displayName||ht.name||"",Et.displayName||(ht!==""?"ForwardRef("+ht+")":"ForwardRef");case 7:return"Fragment";case 5:return Et;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(Et);case 8:return Et===za?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof Et=="function")return Et.displayName||Et.name||null;if(typeof Et=="string")return Et}return null}function Sa(ht){switch(typeof ht){case"boolean":case"number":case"string":case"undefined":return ht;case"object":return ht;default:return""}}function Ta(ht){var Et=ht.type;return(ht=ht.nodeName)&&ht.toLowerCase()==="input"&&(Et==="checkbox"||Et==="radio")}function Ua(ht){var Et=Ta(ht)?"checked":"value",yt=Object.getOwnPropertyDescriptor(ht.constructor.prototype,Et),Ct=""+ht[Et];if(!ht.hasOwnProperty(Et)&&typeof yt<"u"&&typeof yt.get=="function"&&typeof yt.set=="function"){var $t=yt.get,At=yt.set;return Object.defineProperty(ht,Et,{configurable:!0,get:function(){return $t.call(this)},set:function(Bt){Ct=""+Bt,At.call(this,Bt)}}),Object.defineProperty(ht,Et,{enumerable:yt.enumerable}),{getValue:function(){return Ct},setValue:function(Bt){Ct=""+Bt},stopTracking:function(){ht._valueTracker=null,delete ht[Et]}}}}function Va(ht){ht._valueTracker||(ht._valueTracker=Ua(ht))}function Wa(ht){if(!ht)return!1;var Et=ht._valueTracker;if(!Et)return!0;var yt=Et.getValue(),Ct="";return ht&&(Ct=Ta(ht)?ht.checked?"true":"false":ht.value),ht=Ct,ht!==yt?(Et.setValue(ht),!0):!1}function Xa(ht){if(ht=ht||(typeof document<"u"?document:void 0),typeof ht>"u")return null;try{return ht.activeElement||ht.body}catch{return ht.body}}function Ya(ht,Et){var yt=Et.checked;return A$2({},Et,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:yt??ht._wrapperState.initialChecked})}function Za(ht,Et){var yt=Et.defaultValue==null?"":Et.defaultValue,Ct=Et.checked!=null?Et.checked:Et.defaultChecked;yt=Sa(Et.value!=null?Et.value:yt),ht._wrapperState={initialChecked:Ct,initialValue:yt,controlled:Et.type==="checkbox"||Et.type==="radio"?Et.checked!=null:Et.value!=null}}function ab(ht,Et){Et=Et.checked,Et!=null&&ta$1(ht,"checked",Et,!1)}function bb(ht,Et){ab(ht,Et);var yt=Sa(Et.value),Ct=Et.type;if(yt!=null)Ct==="number"?(yt===0&&ht.value===""||ht.value!=yt)&&(ht.value=""+yt):ht.value!==""+yt&&(ht.value=""+yt);else if(Ct==="submit"||Ct==="reset"){ht.removeAttribute("value");return}Et.hasOwnProperty("value")?cb(ht,Et.type,yt):Et.hasOwnProperty("defaultValue")&&cb(ht,Et.type,Sa(Et.defaultValue)),Et.checked==null&&Et.defaultChecked!=null&&(ht.defaultChecked=!!Et.defaultChecked)}function db(ht,Et,yt){if(Et.hasOwnProperty("value")||Et.hasOwnProperty("defaultValue")){var Ct=Et.type;if(!(Ct!=="submit"&&Ct!=="reset"||Et.value!==void 0&&Et.value!==null))return;Et=""+ht._wrapperState.initialValue,yt||Et===ht.value||(ht.value=Et),ht.defaultValue=Et}yt=ht.name,yt!==""&&(ht.name=""),ht.defaultChecked=!!ht._wrapperState.initialChecked,yt!==""&&(ht.name=yt)}function cb(ht,Et,yt){(Et!=="number"||Xa(ht.ownerDocument)!==ht)&&(yt==null?ht.defaultValue=""+ht._wrapperState.initialValue:ht.defaultValue!==""+yt&&(ht.defaultValue=""+yt))}var eb=Array.isArray;function fb(ht,Et,yt,Ct){if(ht=ht.options,Et){Et={};for(var $t=0;$t<yt.length;$t++)Et["$"+yt[$t]]=!0;for(yt=0;yt<ht.length;yt++)$t=Et.hasOwnProperty("$"+ht[yt].value),ht[yt].selected!==$t&&(ht[yt].selected=$t),$t&&Ct&&(ht[yt].defaultSelected=!0)}else{for(yt=""+Sa(yt),Et=null,$t=0;$t<ht.length;$t++){if(ht[$t].value===yt){ht[$t].selected=!0,Ct&&(ht[$t].defaultSelected=!0);return}Et!==null||ht[$t].disabled||(Et=ht[$t])}Et!==null&&(Et.selected=!0)}}function gb(ht,Et){if(Et.dangerouslySetInnerHTML!=null)throw Error(p$d(91));return A$2({},Et,{value:void 0,defaultValue:void 0,children:""+ht._wrapperState.initialValue})}function hb(ht,Et){var yt=Et.value;if(yt==null){if(yt=Et.children,Et=Et.defaultValue,yt!=null){if(Et!=null)throw Error(p$d(92));if(eb(yt)){if(1<yt.length)throw Error(p$d(93));yt=yt[0]}Et=yt}Et==null&&(Et=""),yt=Et}ht._wrapperState={initialValue:Sa(yt)}}function ib(ht,Et){var yt=Sa(Et.value),Ct=Sa(Et.defaultValue);yt!=null&&(yt=""+yt,yt!==ht.value&&(ht.value=yt),Et.defaultValue==null&&ht.defaultValue!==yt&&(ht.defaultValue=yt)),Ct!=null&&(ht.defaultValue=""+Ct)}function jb(ht){var Et=ht.textContent;Et===ht._wrapperState.initialValue&&Et!==""&&Et!==null&&(ht.value=Et)}function kb(ht){switch(ht){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function lb$1(ht,Et){return ht==null||ht==="http://www.w3.org/1999/xhtml"?kb(Et):ht==="http://www.w3.org/2000/svg"&&Et==="foreignObject"?"http://www.w3.org/1999/xhtml":ht}var mb,nb$1=function(ht){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(Et,yt,Ct,$t){MSApp.execUnsafeLocalFunction(function(){return ht(Et,yt,Ct,$t)})}:ht}(function(ht,Et){if(ht.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in ht)ht.innerHTML=Et;else{for(mb=mb||document.createElement("div"),mb.innerHTML="<svg>"+Et.valueOf().toString()+"</svg>",Et=mb.firstChild;ht.firstChild;)ht.removeChild(ht.firstChild);for(;Et.firstChild;)ht.appendChild(Et.firstChild)}});function ob(ht,Et){if(Et){var yt=ht.firstChild;if(yt&&yt===ht.lastChild&&yt.nodeType===3){yt.nodeValue=Et;return}}ht.textContent=Et}var pb={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=["Webkit","ms","Moz","O"];Object.keys(pb).forEach(function(ht){qb.forEach(function(Et){Et=Et+ht.charAt(0).toUpperCase()+ht.substring(1),pb[Et]=pb[ht]})});function rb(ht,Et,yt){return Et==null||typeof Et=="boolean"||Et===""?"":yt||typeof Et!="number"||Et===0||pb.hasOwnProperty(ht)&&pb[ht]?(""+Et).trim():Et+"px"}function sb(ht,Et){ht=ht.style;for(var yt in Et)if(Et.hasOwnProperty(yt)){var Ct=yt.indexOf("--")===0,$t=rb(yt,Et[yt],Ct);yt==="float"&&(yt="cssFloat"),Ct?ht.setProperty(yt,$t):ht[yt]=$t}}var tb=A$2({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ub(ht,Et){if(Et){if(tb[ht]&&(Et.children!=null||Et.dangerouslySetInnerHTML!=null))throw Error(p$d(137,ht));if(Et.dangerouslySetInnerHTML!=null){if(Et.children!=null)throw Error(p$d(60));if(typeof Et.dangerouslySetInnerHTML!="object"||!("__html"in Et.dangerouslySetInnerHTML))throw Error(p$d(61))}if(Et.style!=null&&typeof Et.style!="object")throw Error(p$d(62))}}function vb(ht,Et){if(ht.indexOf("-")===-1)return typeof Et.is=="string";switch(ht){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wb=null;function xb(ht){return ht=ht.target||ht.srcElement||window,ht.correspondingUseElement&&(ht=ht.correspondingUseElement),ht.nodeType===3?ht.parentNode:ht}var yb=null,zb=null,Ab=null;function Bb(ht){if(ht=Cb(ht)){if(typeof yb!="function")throw Error(p$d(280));var Et=ht.stateNode;Et&&(Et=Db(Et),yb(ht.stateNode,ht.type,Et))}}function Eb(ht){zb?Ab?Ab.push(ht):Ab=[ht]:zb=ht}function Fb(){if(zb){var ht=zb,Et=Ab;if(Ab=zb=null,Bb(ht),Et)for(ht=0;ht<Et.length;ht++)Bb(Et[ht])}}function Gb(ht,Et){return ht(Et)}function Hb(){}var Ib=!1;function Jb(ht,Et,yt){if(Ib)return ht(Et,yt);Ib=!0;try{return Gb(ht,Et,yt)}finally{Ib=!1,(zb!==null||Ab!==null)&&(Hb(),Fb())}}function Kb(ht,Et){var yt=ht.stateNode;if(yt===null)return null;var Ct=Db(yt);if(Ct===null)return null;yt=Ct[Et];e:switch(Et){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(Ct=!Ct.disabled)||(ht=ht.type,Ct=!(ht==="button"||ht==="input"||ht==="select"||ht==="textarea")),ht=!Ct;break e;default:ht=!1}if(ht)return null;if(yt&&typeof yt!="function")throw Error(p$d(231,Et,typeof yt));return yt}var Lb=!1;if(ia$1)try{var Mb={};Object.defineProperty(Mb,"passive",{get:function(){Lb=!0}}),window.addEventListener("test",Mb,Mb),window.removeEventListener("test",Mb,Mb)}catch{Lb=!1}function Nb(ht,Et,yt,Ct,$t,At,Bt,Dt,Ft){var kt=Array.prototype.slice.call(arguments,3);try{Et.apply(yt,kt)}catch(Mt){this.onError(Mt)}}var Ob=!1,Pb=null,Qb=!1,Rb=null,Sb={onError:function(ht){Ob=!0,Pb=ht}};function Tb(ht,Et,yt,Ct,$t,At,Bt,Dt,Ft){Ob=!1,Pb=null,Nb.apply(Sb,arguments)}function Ub(ht,Et,yt,Ct,$t,At,Bt,Dt,Ft){if(Tb.apply(this,arguments),Ob){if(Ob){var kt=Pb;Ob=!1,Pb=null}else throw Error(p$d(198));Qb||(Qb=!0,Rb=kt)}}function Vb(ht){var Et=ht,yt=ht;if(ht.alternate)for(;Et.return;)Et=Et.return;else{ht=Et;do Et=ht,Et.flags&4098&&(yt=Et.return),ht=Et.return;while(ht)}return Et.tag===3?yt:null}function Wb(ht){if(ht.tag===13){var Et=ht.memoizedState;if(Et===null&&(ht=ht.alternate,ht!==null&&(Et=ht.memoizedState)),Et!==null)return Et.dehydrated}return null}function Xb(ht){if(Vb(ht)!==ht)throw Error(p$d(188))}function Yb(ht){var Et=ht.alternate;if(!Et){if(Et=Vb(ht),Et===null)throw Error(p$d(188));return Et!==ht?null:ht}for(var yt=ht,Ct=Et;;){var $t=yt.return;if($t===null)break;var At=$t.alternate;if(At===null){if(Ct=$t.return,Ct!==null){yt=Ct;continue}break}if($t.child===At.child){for(At=$t.child;At;){if(At===yt)return Xb($t),ht;if(At===Ct)return Xb($t),Et;At=At.sibling}throw Error(p$d(188))}if(yt.return!==Ct.return)yt=$t,Ct=At;else{for(var Bt=!1,Dt=$t.child;Dt;){if(Dt===yt){Bt=!0,yt=$t,Ct=At;break}if(Dt===Ct){Bt=!0,Ct=$t,yt=At;break}Dt=Dt.sibling}if(!Bt){for(Dt=At.child;Dt;){if(Dt===yt){Bt=!0,yt=At,Ct=$t;break}if(Dt===Ct){Bt=!0,Ct=At,yt=$t;break}Dt=Dt.sibling}if(!Bt)throw Error(p$d(189))}}if(yt.alternate!==Ct)throw Error(p$d(190))}if(yt.tag!==3)throw Error(p$d(188));return yt.stateNode.current===yt?ht:Et}function Zb(ht){return ht=Yb(ht),ht!==null?$b(ht):null}function $b(ht){if(ht.tag===5||ht.tag===6)return ht;for(ht=ht.child;ht!==null;){var Et=$b(ht);if(Et!==null)return Et;ht=ht.sibling}return null}var ac=ca$1.unstable_scheduleCallback,bc$1=ca$1.unstable_cancelCallback,cc=ca$1.unstable_shouldYield,dc=ca$1.unstable_requestPaint,B$2=ca$1.unstable_now,ec$1=ca$1.unstable_getCurrentPriorityLevel,fc=ca$1.unstable_ImmediatePriority,gc=ca$1.unstable_UserBlockingPriority,hc=ca$1.unstable_NormalPriority,ic=ca$1.unstable_LowPriority,jc=ca$1.unstable_IdlePriority,kc=null,lc=null;function mc(ht){if(lc&&typeof lc.onCommitFiberRoot=="function")try{lc.onCommitFiberRoot(kc,ht,void 0,(ht.current.flags&128)===128)}catch{}}var oc=Math.clz32?Math.clz32:nc,pc=Math.log,qc=Math.LN2;function nc(ht){return ht>>>=0,ht===0?32:31-(pc(ht)/qc|0)|0}var rc=64,sc$1=4194304;function tc(ht){switch(ht&-ht){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return ht&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return ht&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return ht}}function uc(ht,Et){var yt=ht.pendingLanes;if(yt===0)return 0;var Ct=0,$t=ht.suspendedLanes,At=ht.pingedLanes,Bt=yt&268435455;if(Bt!==0){var Dt=Bt&~$t;Dt!==0?Ct=tc(Dt):(At&=Bt,At!==0&&(Ct=tc(At)))}else Bt=yt&~$t,Bt!==0?Ct=tc(Bt):At!==0&&(Ct=tc(At));if(Ct===0)return 0;if(Et!==0&&Et!==Ct&&!(Et&$t)&&($t=Ct&-Ct,At=Et&-Et,$t>=At||$t===16&&(At&4194240)!==0))return Et;if(Ct&4&&(Ct|=yt&16),Et=ht.entangledLanes,Et!==0)for(ht=ht.entanglements,Et&=Ct;0<Et;)yt=31-oc(Et),$t=1<<yt,Ct|=ht[yt],Et&=~$t;return Ct}function vc(ht,Et){switch(ht){case 1:case 2:case 4:return Et+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return Et+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function wc(ht,Et){for(var yt=ht.suspendedLanes,Ct=ht.pingedLanes,$t=ht.expirationTimes,At=ht.pendingLanes;0<At;){var Bt=31-oc(At),Dt=1<<Bt,Ft=$t[Bt];Ft===-1?(!(Dt&yt)||Dt&Ct)&&($t[Bt]=vc(Dt,Et)):Ft<=Et&&(ht.expiredLanes|=Dt),At&=~Dt}}function xc(ht){return ht=ht.pendingLanes&-1073741825,ht!==0?ht:ht&1073741824?1073741824:0}function yc(){var ht=rc;return rc<<=1,!(rc&4194240)&&(rc=64),ht}function zc(ht){for(var Et=[],yt=0;31>yt;yt++)Et.push(ht);return Et}function Ac(ht,Et,yt){ht.pendingLanes|=Et,Et!==536870912&&(ht.suspendedLanes=0,ht.pingedLanes=0),ht=ht.eventTimes,Et=31-oc(Et),ht[Et]=yt}function Bc(ht,Et){var yt=ht.pendingLanes&~Et;ht.pendingLanes=Et,ht.suspendedLanes=0,ht.pingedLanes=0,ht.expiredLanes&=Et,ht.mutableReadLanes&=Et,ht.entangledLanes&=Et,Et=ht.entanglements;var Ct=ht.eventTimes;for(ht=ht.expirationTimes;0<yt;){var $t=31-oc(yt),At=1<<$t;Et[$t]=0,Ct[$t]=-1,ht[$t]=-1,yt&=~At}}function Cc$1(ht,Et){var yt=ht.entangledLanes|=Et;for(ht=ht.entanglements;yt;){var Ct=31-oc(yt),$t=1<<Ct;$t&Et|ht[Ct]&Et&&(ht[Ct]|=Et),yt&=~$t}}var C$2=0;function Dc(ht){return ht&=-ht,1<ht?4<ht?ht&268435455?16:536870912:4:1}var Ec,Fc,Gc,Hc,Ic,Jc=!1,Kc=[],Lc=null,Mc=null,Nc=null,Oc=new Map,Pc=new Map,Qc=[],Rc="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Sc(ht,Et){switch(ht){case"focusin":case"focusout":Lc=null;break;case"dragenter":case"dragleave":Mc=null;break;case"mouseover":case"mouseout":Nc=null;break;case"pointerover":case"pointerout":Oc.delete(Et.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pc.delete(Et.pointerId)}}function Tc(ht,Et,yt,Ct,$t,At){return ht===null||ht.nativeEvent!==At?(ht={blockedOn:Et,domEventName:yt,eventSystemFlags:Ct,nativeEvent:At,targetContainers:[$t]},Et!==null&&(Et=Cb(Et),Et!==null&&Fc(Et)),ht):(ht.eventSystemFlags|=Ct,Et=ht.targetContainers,$t!==null&&Et.indexOf($t)===-1&&Et.push($t),ht)}function Uc(ht,Et,yt,Ct,$t){switch(Et){case"focusin":return Lc=Tc(Lc,ht,Et,yt,Ct,$t),!0;case"dragenter":return Mc=Tc(Mc,ht,Et,yt,Ct,$t),!0;case"mouseover":return Nc=Tc(Nc,ht,Et,yt,Ct,$t),!0;case"pointerover":var At=$t.pointerId;return Oc.set(At,Tc(Oc.get(At)||null,ht,Et,yt,Ct,$t)),!0;case"gotpointercapture":return At=$t.pointerId,Pc.set(At,Tc(Pc.get(At)||null,ht,Et,yt,Ct,$t)),!0}return!1}function Vc(ht){var Et=Wc(ht.target);if(Et!==null){var yt=Vb(Et);if(yt!==null){if(Et=yt.tag,Et===13){if(Et=Wb(yt),Et!==null){ht.blockedOn=Et,Ic(ht.priority,function(){Gc(yt)});return}}else if(Et===3&&yt.stateNode.current.memoizedState.isDehydrated){ht.blockedOn=yt.tag===3?yt.stateNode.containerInfo:null;return}}}ht.blockedOn=null}function Xc(ht){if(ht.blockedOn!==null)return!1;for(var Et=ht.targetContainers;0<Et.length;){var yt=Yc(ht.domEventName,ht.eventSystemFlags,Et[0],ht.nativeEvent);if(yt===null){yt=ht.nativeEvent;var Ct=new yt.constructor(yt.type,yt);wb=Ct,yt.target.dispatchEvent(Ct),wb=null}else return Et=Cb(yt),Et!==null&&Fc(Et),ht.blockedOn=yt,!1;Et.shift()}return!0}function Zc(ht,Et,yt){Xc(ht)&&yt.delete(Et)}function $c(){Jc=!1,Lc!==null&&Xc(Lc)&&(Lc=null),Mc!==null&&Xc(Mc)&&(Mc=null),Nc!==null&&Xc(Nc)&&(Nc=null),Oc.forEach(Zc),Pc.forEach(Zc)}function ad(ht,Et){ht.blockedOn===Et&&(ht.blockedOn=null,Jc||(Jc=!0,ca$1.unstable_scheduleCallback(ca$1.unstable_NormalPriority,$c)))}function bd(ht){function Et($t){return ad($t,ht)}if(0<Kc.length){ad(Kc[0],ht);for(var yt=1;yt<Kc.length;yt++){var Ct=Kc[yt];Ct.blockedOn===ht&&(Ct.blockedOn=null)}}for(Lc!==null&&ad(Lc,ht),Mc!==null&&ad(Mc,ht),Nc!==null&&ad(Nc,ht),Oc.forEach(Et),Pc.forEach(Et),yt=0;yt<Qc.length;yt++)Ct=Qc[yt],Ct.blockedOn===ht&&(Ct.blockedOn=null);for(;0<Qc.length&&(yt=Qc[0],yt.blockedOn===null);)Vc(yt),yt.blockedOn===null&&Qc.shift()}var cd=ua$1.ReactCurrentBatchConfig,dd=!0;function ed(ht,Et,yt,Ct){var $t=C$2,At=cd.transition;cd.transition=null;try{C$2=1,fd(ht,Et,yt,Ct)}finally{C$2=$t,cd.transition=At}}function gd$1(ht,Et,yt,Ct){var $t=C$2,At=cd.transition;cd.transition=null;try{C$2=4,fd(ht,Et,yt,Ct)}finally{C$2=$t,cd.transition=At}}function fd(ht,Et,yt,Ct){if(dd){var $t=Yc(ht,Et,yt,Ct);if($t===null)hd(ht,Et,Ct,id$5,yt),Sc(ht,Ct);else if(Uc($t,ht,Et,yt,Ct))Ct.stopPropagation();else if(Sc(ht,Ct),Et&4&&-1<Rc.indexOf(ht)){for(;$t!==null;){var At=Cb($t);if(At!==null&&Ec(At),At=Yc(ht,Et,yt,Ct),At===null&&hd(ht,Et,Ct,id$5,yt),At===$t)break;$t=At}$t!==null&&Ct.stopPropagation()}else hd(ht,Et,Ct,null,yt)}}var id$5=null;function Yc(ht,Et,yt,Ct){if(id$5=null,ht=xb(Ct),ht=Wc(ht),ht!==null)if(Et=Vb(ht),Et===null)ht=null;else if(yt=Et.tag,yt===13){if(ht=Wb(Et),ht!==null)return ht;ht=null}else if(yt===3){if(Et.stateNode.current.memoizedState.isDehydrated)return Et.tag===3?Et.stateNode.containerInfo:null;ht=null}else Et!==ht&&(ht=null);return id$5=ht,null}function jd(ht){switch(ht){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ec$1()){case fc:return 1;case gc:return 4;case hc:case ic:return 16;case jc:return 536870912;default:return 16}default:return 16}}var kd=null,ld=null,md$1=null;function nd$1(){if(md$1)return md$1;var ht,Et=ld,yt=Et.length,Ct,$t="value"in kd?kd.value:kd.textContent,At=$t.length;for(ht=0;ht<yt&&Et[ht]===$t[ht];ht++);var Bt=yt-ht;for(Ct=1;Ct<=Bt&&Et[yt-Ct]===$t[At-Ct];Ct++);return md$1=$t.slice(ht,1<Ct?1-Ct:void 0)}function od(ht){var Et=ht.keyCode;return"charCode"in ht?(ht=ht.charCode,ht===0&&Et===13&&(ht=13)):ht=Et,ht===10&&(ht=13),32<=ht||ht===13?ht:0}function pd(){return!0}function qd(){return!1}function rd(ht){function Et(yt,Ct,$t,At,Bt){this._reactName=yt,this._targetInst=$t,this.type=Ct,this.nativeEvent=At,this.target=Bt,this.currentTarget=null;for(var Dt in ht)ht.hasOwnProperty(Dt)&&(yt=ht[Dt],this[Dt]=yt?yt(At):At[Dt]);return this.isDefaultPrevented=(At.defaultPrevented!=null?At.defaultPrevented:At.returnValue===!1)?pd:qd,this.isPropagationStopped=qd,this}return A$2(Et.prototype,{preventDefault:function(){this.defaultPrevented=!0;var yt=this.nativeEvent;yt&&(yt.preventDefault?yt.preventDefault():typeof yt.returnValue!="unknown"&&(yt.returnValue=!1),this.isDefaultPrevented=pd)},stopPropagation:function(){var yt=this.nativeEvent;yt&&(yt.stopPropagation?yt.stopPropagation():typeof yt.cancelBubble!="unknown"&&(yt.cancelBubble=!0),this.isPropagationStopped=pd)},persist:function(){},isPersistent:pd}),Et}var sd$1={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(ht){return ht.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},td=rd(sd$1),ud=A$2({},sd$1,{view:0,detail:0}),vd=rd(ud),wd,xd,yd,Ad=A$2({},ud,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zd,button:0,buttons:0,relatedTarget:function(ht){return ht.relatedTarget===void 0?ht.fromElement===ht.srcElement?ht.toElement:ht.fromElement:ht.relatedTarget},movementX:function(ht){return"movementX"in ht?ht.movementX:(ht!==yd&&(yd&&ht.type==="mousemove"?(wd=ht.screenX-yd.screenX,xd=ht.screenY-yd.screenY):xd=wd=0,yd=ht),wd)},movementY:function(ht){return"movementY"in ht?ht.movementY:xd}}),Bd=rd(Ad),Cd=A$2({},Ad,{dataTransfer:0}),Dd=rd(Cd),Ed=A$2({},ud,{relatedTarget:0}),Fd=rd(Ed),Gd=A$2({},sd$1,{animationName:0,elapsedTime:0,pseudoElement:0}),Hd=rd(Gd),Id=A$2({},sd$1,{clipboardData:function(ht){return"clipboardData"in ht?ht.clipboardData:window.clipboardData}}),Jd=rd(Id),Kd=A$2({},sd$1,{data:0}),Ld=rd(Kd),Md={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Nd={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Od={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pd(ht){var Et=this.nativeEvent;return Et.getModifierState?Et.getModifierState(ht):(ht=Od[ht])?!!Et[ht]:!1}function zd(){return Pd}var Qd=A$2({},ud,{key:function(ht){if(ht.key){var Et=Md[ht.key]||ht.key;if(Et!=="Unidentified")return Et}return ht.type==="keypress"?(ht=od(ht),ht===13?"Enter":String.fromCharCode(ht)):ht.type==="keydown"||ht.type==="keyup"?Nd[ht.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zd,charCode:function(ht){return ht.type==="keypress"?od(ht):0},keyCode:function(ht){return ht.type==="keydown"||ht.type==="keyup"?ht.keyCode:0},which:function(ht){return ht.type==="keypress"?od(ht):ht.type==="keydown"||ht.type==="keyup"?ht.keyCode:0}}),Rd=rd(Qd),Sd=A$2({},Ad,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Td=rd(Sd),Ud=A$2({},ud,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zd}),Vd=rd(Ud),Wd=A$2({},sd$1,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xd=rd(Wd),Yd=A$2({},Ad,{deltaX:function(ht){return"deltaX"in ht?ht.deltaX:"wheelDeltaX"in ht?-ht.wheelDeltaX:0},deltaY:function(ht){return"deltaY"in ht?ht.deltaY:"wheelDeltaY"in ht?-ht.wheelDeltaY:"wheelDelta"in ht?-ht.wheelDelta:0},deltaZ:0,deltaMode:0}),Zd=rd(Yd),$d=[9,13,27,32],ae$1=ia$1&&"CompositionEvent"in window,be$2=null;ia$1&&"documentMode"in document&&(be$2=document.documentMode);var ce$2=ia$1&&"TextEvent"in window&&!be$2,de$3=ia$1&&(!ae$1||be$2&&8<be$2&&11>=be$2),ee$3=" ",fe=!1;function ge(ht,Et){switch(ht){case"keyup":return $d.indexOf(Et.keyCode)!==-1;case"keydown":return Et.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he$1(ht){return ht=ht.detail,typeof ht=="object"&&"data"in ht?ht.data:null}var ie=!1;function je$1(ht,Et){switch(ht){case"compositionend":return he$1(Et);case"keypress":return Et.which!==32?null:(fe=!0,ee$3);case"textInput":return ht=Et.data,ht===ee$3&&fe?null:ht;default:return null}}function ke(ht,Et){if(ie)return ht==="compositionend"||!ae$1&&ge(ht,Et)?(ht=nd$1(),md$1=ld=kd=null,ie=!1,ht):null;switch(ht){case"paste":return null;case"keypress":if(!(Et.ctrlKey||Et.altKey||Et.metaKey)||Et.ctrlKey&&Et.altKey){if(Et.char&&1<Et.char.length)return Et.char;if(Et.which)return String.fromCharCode(Et.which)}return null;case"compositionend":return de$3&&Et.locale!=="ko"?null:Et.data;default:return null}}var le$1={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function me(ht){var Et=ht&&ht.nodeName&&ht.nodeName.toLowerCase();return Et==="input"?!!le$1[ht.type]:Et==="textarea"}function ne$1(ht,Et,yt,Ct){Eb(Ct),Et=oe$1(Et,"onChange"),0<Et.length&&(yt=new td("onChange","change",null,yt,Ct),ht.push({event:yt,listeners:Et}))}var pe=null,qe$3=null;function re$1(ht){se$3(ht,0)}function te$2(ht){var Et=ue$1(ht);if(Wa(Et))return ht}function ve$1(ht,Et){if(ht==="change")return Et}var we$1=!1;if(ia$1){var xe$1;if(ia$1){var ye$1="oninput"in document;if(!ye$1){var ze$3=document.createElement("div");ze$3.setAttribute("oninput","return;"),ye$1=typeof ze$3.oninput=="function"}xe$1=ye$1}else xe$1=!1;we$1=xe$1&&(!document.documentMode||9<document.documentMode)}function Ae(){pe&&(pe.detachEvent("onpropertychange",Be$1),qe$3=pe=null)}function Be$1(ht){if(ht.propertyName==="value"&&te$2(qe$3)){var Et=[];ne$1(Et,qe$3,ht,xb(ht)),Jb(re$1,Et)}}function Ce$1(ht,Et,yt){ht==="focusin"?(Ae(),pe=Et,qe$3=yt,pe.attachEvent("onpropertychange",Be$1)):ht==="focusout"&&Ae()}function De$1(ht){if(ht==="selectionchange"||ht==="keyup"||ht==="keydown")return te$2(qe$3)}function Ee(ht,Et){if(ht==="click")return te$2(Et)}function Fe$1(ht,Et){if(ht==="input"||ht==="change")return te$2(Et)}function Ge$1(ht,Et){return ht===Et&&(ht!==0||1/ht===1/Et)||ht!==ht&&Et!==Et}var He$2=typeof Object.is=="function"?Object.is:Ge$1;function Ie(ht,Et){if(He$2(ht,Et))return!0;if(typeof ht!="object"||ht===null||typeof Et!="object"||Et===null)return!1;var yt=Object.keys(ht),Ct=Object.keys(Et);if(yt.length!==Ct.length)return!1;for(Ct=0;Ct<yt.length;Ct++){var $t=yt[Ct];if(!ja$1.call(Et,$t)||!He$2(ht[$t],Et[$t]))return!1}return!0}function Je$1(ht){for(;ht&&ht.firstChild;)ht=ht.firstChild;return ht}function Ke$1(ht,Et){var yt=Je$1(ht);ht=0;for(var Ct;yt;){if(yt.nodeType===3){if(Ct=ht+yt.textContent.length,ht<=Et&&Ct>=Et)return{node:yt,offset:Et-ht};ht=Ct}e:{for(;yt;){if(yt.nextSibling){yt=yt.nextSibling;break e}yt=yt.parentNode}yt=void 0}yt=Je$1(yt)}}function Le$1(ht,Et){return ht&&Et?ht===Et?!0:ht&&ht.nodeType===3?!1:Et&&Et.nodeType===3?Le$1(ht,Et.parentNode):"contains"in ht?ht.contains(Et):ht.compareDocumentPosition?!!(ht.compareDocumentPosition(Et)&16):!1:!1}function Me$1(){for(var ht=window,Et=Xa();Et instanceof ht.HTMLIFrameElement;){try{var yt=typeof Et.contentWindow.location.href=="string"}catch{yt=!1}if(yt)ht=Et.contentWindow;else break;Et=Xa(ht.document)}return Et}function Ne$2(ht){var Et=ht&&ht.nodeName&&ht.nodeName.toLowerCase();return Et&&(Et==="input"&&(ht.type==="text"||ht.type==="search"||ht.type==="tel"||ht.type==="url"||ht.type==="password")||Et==="textarea"||ht.contentEditable==="true")}function Oe(ht){var Et=Me$1(),yt=ht.focusedElem,Ct=ht.selectionRange;if(Et!==yt&&yt&&yt.ownerDocument&&Le$1(yt.ownerDocument.documentElement,yt)){if(Ct!==null&&Ne$2(yt)){if(Et=Ct.start,ht=Ct.end,ht===void 0&&(ht=Et),"selectionStart"in yt)yt.selectionStart=Et,yt.selectionEnd=Math.min(ht,yt.value.length);else if(ht=(Et=yt.ownerDocument||document)&&Et.defaultView||window,ht.getSelection){ht=ht.getSelection();var $t=yt.textContent.length,At=Math.min(Ct.start,$t);Ct=Ct.end===void 0?At:Math.min(Ct.end,$t),!ht.extend&&At>Ct&&($t=Ct,Ct=At,At=$t),$t=Ke$1(yt,At);var Bt=Ke$1(yt,Ct);$t&&Bt&&(ht.rangeCount!==1||ht.anchorNode!==$t.node||ht.anchorOffset!==$t.offset||ht.focusNode!==Bt.node||ht.focusOffset!==Bt.offset)&&(Et=Et.createRange(),Et.setStart($t.node,$t.offset),ht.removeAllRanges(),At>Ct?(ht.addRange(Et),ht.extend(Bt.node,Bt.offset)):(Et.setEnd(Bt.node,Bt.offset),ht.addRange(Et)))}}for(Et=[],ht=yt;ht=ht.parentNode;)ht.nodeType===1&&Et.push({element:ht,left:ht.scrollLeft,top:ht.scrollTop});for(typeof yt.focus=="function"&&yt.focus(),yt=0;yt<Et.length;yt++)ht=Et[yt],ht.element.scrollLeft=ht.left,ht.element.scrollTop=ht.top}}var Pe$1=ia$1&&"documentMode"in document&&11>=document.documentMode,Qe$2=null,Re$1=null,Se$1=null,Te=!1;function Ue$1(ht,Et,yt){var Ct=yt.window===yt?yt.document:yt.nodeType===9?yt:yt.ownerDocument;Te||Qe$2==null||Qe$2!==Xa(Ct)||(Ct=Qe$2,"selectionStart"in Ct&&Ne$2(Ct)?Ct={start:Ct.selectionStart,end:Ct.selectionEnd}:(Ct=(Ct.ownerDocument&&Ct.ownerDocument.defaultView||window).getSelection(),Ct={anchorNode:Ct.anchorNode,anchorOffset:Ct.anchorOffset,focusNode:Ct.focusNode,focusOffset:Ct.focusOffset}),Se$1&&Ie(Se$1,Ct)||(Se$1=Ct,Ct=oe$1(Re$1,"onSelect"),0<Ct.length&&(Et=new td("onSelect","select",null,Et,yt),ht.push({event:Et,listeners:Ct}),Et.target=Qe$2)))}function Ve$1(ht,Et){var yt={};return yt[ht.toLowerCase()]=Et.toLowerCase(),yt["Webkit"+ht]="webkit"+Et,yt["Moz"+ht]="moz"+Et,yt}var We$1={animationend:Ve$1("Animation","AnimationEnd"),animationiteration:Ve$1("Animation","AnimationIteration"),animationstart:Ve$1("Animation","AnimationStart"),transitionend:Ve$1("Transition","TransitionEnd")},Xe$2={},Ye$3={};ia$1&&(Ye$3=document.createElement("div").style,"AnimationEvent"in window||(delete We$1.animationend.animation,delete We$1.animationiteration.animation,delete We$1.animationstart.animation),"TransitionEvent"in window||delete We$1.transitionend.transition);function Ze$2(ht){if(Xe$2[ht])return Xe$2[ht];if(!We$1[ht])return ht;var Et=We$1[ht],yt;for(yt in Et)if(Et.hasOwnProperty(yt)&&yt in Ye$3)return Xe$2[ht]=Et[yt];return ht}var $e$2=Ze$2("animationend"),af$1=Ze$2("animationiteration"),bf=Ze$2("animationstart"),cf=Ze$2("transitionend"),df=new Map,ef="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ff$1(ht,Et){df.set(ht,Et),fa$1(Et,[ht])}for(var gf=0;gf<ef.length;gf++){var hf=ef[gf],jf=hf.toLowerCase(),kf=hf[0].toUpperCase()+hf.slice(1);ff$1(jf,"on"+kf)}ff$1($e$2,"onAnimationEnd");ff$1(af$1,"onAnimationIteration");ff$1(bf,"onAnimationStart");ff$1("dblclick","onDoubleClick");ff$1("focusin","onFocus");ff$1("focusout","onBlur");ff$1(cf,"onTransitionEnd");ha$1("onMouseEnter",["mouseout","mouseover"]);ha$1("onMouseLeave",["mouseout","mouseover"]);ha$1("onPointerEnter",["pointerout","pointerover"]);ha$1("onPointerLeave",["pointerout","pointerover"]);fa$1("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));fa$1("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));fa$1("onBeforeInput",["compositionend","keypress","textInput","paste"]);fa$1("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));fa$1("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));fa$1("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lf="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),mf=new Set("cancel close invalid load scroll toggle".split(" ").concat(lf));function nf(ht,Et,yt){var Ct=ht.type||"unknown-event";ht.currentTarget=yt,Ub(Ct,Et,void 0,ht),ht.currentTarget=null}function se$3(ht,Et){Et=(Et&4)!==0;for(var yt=0;yt<ht.length;yt++){var Ct=ht[yt],$t=Ct.event;Ct=Ct.listeners;e:{var At=void 0;if(Et)for(var Bt=Ct.length-1;0<=Bt;Bt--){var Dt=Ct[Bt],Ft=Dt.instance,kt=Dt.currentTarget;if(Dt=Dt.listener,Ft!==At&&$t.isPropagationStopped())break e;nf($t,Dt,kt),At=Ft}else for(Bt=0;Bt<Ct.length;Bt++){if(Dt=Ct[Bt],Ft=Dt.instance,kt=Dt.currentTarget,Dt=Dt.listener,Ft!==At&&$t.isPropagationStopped())break e;nf($t,Dt,kt),At=Ft}}}if(Qb)throw ht=Rb,Qb=!1,Rb=null,ht}function D$4(ht,Et){var yt=Et[of];yt===void 0&&(yt=Et[of]=new Set);var Ct=ht+"__bubble";yt.has(Ct)||(pf(Et,ht,2,!1),yt.add(Ct))}function qf(ht,Et,yt){var Ct=0;Et&&(Ct|=4),pf(yt,ht,Ct,Et)}var rf="_reactListening"+Math.random().toString(36).slice(2);function sf(ht){if(!ht[rf]){ht[rf]=!0,da$1.forEach(function(yt){yt!=="selectionchange"&&(mf.has(yt)||qf(yt,!1,ht),qf(yt,!0,ht))});var Et=ht.nodeType===9?ht:ht.ownerDocument;Et===null||Et[rf]||(Et[rf]=!0,qf("selectionchange",!1,Et))}}function pf(ht,Et,yt,Ct){switch(jd(Et)){case 1:var $t=ed;break;case 4:$t=gd$1;break;default:$t=fd}yt=$t.bind(null,Et,yt,ht),$t=void 0,!Lb||Et!=="touchstart"&&Et!=="touchmove"&&Et!=="wheel"||($t=!0),Ct?$t!==void 0?ht.addEventListener(Et,yt,{capture:!0,passive:$t}):ht.addEventListener(Et,yt,!0):$t!==void 0?ht.addEventListener(Et,yt,{passive:$t}):ht.addEventListener(Et,yt,!1)}function hd(ht,Et,yt,Ct,$t){var At=Ct;if(!(Et&1)&&!(Et&2)&&Ct!==null)e:for(;;){if(Ct===null)return;var Bt=Ct.tag;if(Bt===3||Bt===4){var Dt=Ct.stateNode.containerInfo;if(Dt===$t||Dt.nodeType===8&&Dt.parentNode===$t)break;if(Bt===4)for(Bt=Ct.return;Bt!==null;){var Ft=Bt.tag;if((Ft===3||Ft===4)&&(Ft=Bt.stateNode.containerInfo,Ft===$t||Ft.nodeType===8&&Ft.parentNode===$t))return;Bt=Bt.return}for(;Dt!==null;){if(Bt=Wc(Dt),Bt===null)return;if(Ft=Bt.tag,Ft===5||Ft===6){Ct=At=Bt;continue e}Dt=Dt.parentNode}}Ct=Ct.return}Jb(function(){var kt=At,Mt=xb(yt),Nt=[];e:{var jt=df.get(ht);if(jt!==void 0){var zt=td,Vt=ht;switch(ht){case"keypress":if(od(yt)===0)break e;case"keydown":case"keyup":zt=Rd;break;case"focusin":Vt="focus",zt=Fd;break;case"focusout":Vt="blur",zt=Fd;break;case"beforeblur":case"afterblur":zt=Fd;break;case"click":if(yt.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":zt=Bd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":zt=Dd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":zt=Vd;break;case $e$2:case af$1:case bf:zt=Hd;break;case cf:zt=Xd;break;case"scroll":zt=vd;break;case"wheel":zt=Zd;break;case"copy":case"cut":case"paste":zt=Jd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":zt=Td}var Kt=(Et&4)!==0,Xt=!Kt&&ht==="scroll",Qt=Kt?jt!==null?jt+"Capture":null:jt;Kt=[];for(var Zt=kt,dr;Zt!==null;){dr=Zt;var cr=dr.stateNode;if(dr.tag===5&&cr!==null&&(dr=cr,Qt!==null&&(cr=Kb(Zt,Qt),cr!=null&&Kt.push(tf(Zt,cr,dr)))),Xt)break;Zt=Zt.return}0<Kt.length&&(jt=new zt(jt,Vt,null,yt,Mt),Nt.push({event:jt,listeners:Kt}))}}if(!(Et&7)){e:{if(jt=ht==="mouseover"||ht==="pointerover",zt=ht==="mouseout"||ht==="pointerout",jt&&yt!==wb&&(Vt=yt.relatedTarget||yt.fromElement)&&(Wc(Vt)||Vt[uf]))break e;if((zt||jt)&&(jt=Mt.window===Mt?Mt:(jt=Mt.ownerDocument)?jt.defaultView||jt.parentWindow:window,zt?(Vt=yt.relatedTarget||yt.toElement,zt=kt,Vt=Vt?Wc(Vt):null,Vt!==null&&(Xt=Vb(Vt),Vt!==Xt||Vt.tag!==5&&Vt.tag!==6)&&(Vt=null)):(zt=null,Vt=kt),zt!==Vt)){if(Kt=Bd,cr="onMouseLeave",Qt="onMouseEnter",Zt="mouse",(ht==="pointerout"||ht==="pointerover")&&(Kt=Td,cr="onPointerLeave",Qt="onPointerEnter",Zt="pointer"),Xt=zt==null?jt:ue$1(zt),dr=Vt==null?jt:ue$1(Vt),jt=new Kt(cr,Zt+"leave",zt,yt,Mt),jt.target=Xt,jt.relatedTarget=dr,cr=null,Wc(Mt)===kt&&(Kt=new Kt(Qt,Zt+"enter",Vt,yt,Mt),Kt.target=dr,Kt.relatedTarget=Xt,cr=Kt),Xt=cr,zt&&Vt)t:{for(Kt=zt,Qt=Vt,Zt=0,dr=Kt;dr;dr=vf(dr))Zt++;for(dr=0,cr=Qt;cr;cr=vf(cr))dr++;for(;0<Zt-dr;)Kt=vf(Kt),Zt--;for(;0<dr-Zt;)Qt=vf(Qt),dr--;for(;Zt--;){if(Kt===Qt||Qt!==null&&Kt===Qt.alternate)break t;Kt=vf(Kt),Qt=vf(Qt)}Kt=null}else Kt=null;zt!==null&&wf(Nt,jt,zt,Kt,!1),Vt!==null&&Xt!==null&&wf(Nt,Xt,Vt,Kt,!0)}}e:{if(jt=kt?ue$1(kt):window,zt=jt.nodeName&&jt.nodeName.toLowerCase(),zt==="select"||zt==="input"&&jt.type==="file")var Er=ve$1;else if(me(jt))if(we$1)Er=Fe$1;else{Er=De$1;var pr=Ce$1}else(zt=jt.nodeName)&&zt.toLowerCase()==="input"&&(jt.type==="checkbox"||jt.type==="radio")&&(Er=Ee);if(Er&&(Er=Er(ht,kt))){ne$1(Nt,Er,yt,Mt);break e}pr&&pr(ht,jt,kt),ht==="focusout"&&(pr=jt._wrapperState)&&pr.controlled&&jt.type==="number"&&cb(jt,"number",jt.value)}switch(pr=kt?ue$1(kt):window,ht){case"focusin":(me(pr)||pr.contentEditable==="true")&&(Qe$2=pr,Re$1=kt,Se$1=null);break;case"focusout":Se$1=Re$1=Qe$2=null;break;case"mousedown":Te=!0;break;case"contextmenu":case"mouseup":case"dragend":Te=!1,Ue$1(Nt,yt,Mt);break;case"selectionchange":if(Pe$1)break;case"keydown":case"keyup":Ue$1(Nt,yt,Mt)}var gr;if(ae$1)e:{switch(ht){case"compositionstart":var vr="onCompositionStart";break e;case"compositionend":vr="onCompositionEnd";break e;case"compositionupdate":vr="onCompositionUpdate";break e}vr=void 0}else ie?ge(ht,yt)&&(vr="onCompositionEnd"):ht==="keydown"&&yt.keyCode===229&&(vr="onCompositionStart");vr&&(de$3&&yt.locale!=="ko"&&(ie||vr!=="onCompositionStart"?vr==="onCompositionEnd"&&ie&&(gr=nd$1()):(kd=Mt,ld="value"in kd?kd.value:kd.textContent,ie=!0)),pr=oe$1(kt,vr),0<pr.length&&(vr=new Ld(vr,ht,null,yt,Mt),Nt.push({event:vr,listeners:pr}),gr?vr.data=gr:(gr=he$1(yt),gr!==null&&(vr.data=gr)))),(gr=ce$2?je$1(ht,yt):ke(ht,yt))&&(kt=oe$1(kt,"onBeforeInput"),0<kt.length&&(Mt=new Ld("onBeforeInput","beforeinput",null,yt,Mt),Nt.push({event:Mt,listeners:kt}),Mt.data=gr))}se$3(Nt,Et)})}function tf(ht,Et,yt){return{instance:ht,listener:Et,currentTarget:yt}}function oe$1(ht,Et){for(var yt=Et+"Capture",Ct=[];ht!==null;){var $t=ht,At=$t.stateNode;$t.tag===5&&At!==null&&($t=At,At=Kb(ht,yt),At!=null&&Ct.unshift(tf(ht,At,$t)),At=Kb(ht,Et),At!=null&&Ct.push(tf(ht,At,$t))),ht=ht.return}return Ct}function vf(ht){if(ht===null)return null;do ht=ht.return;while(ht&&ht.tag!==5);return ht||null}function wf(ht,Et,yt,Ct,$t){for(var At=Et._reactName,Bt=[];yt!==null&&yt!==Ct;){var Dt=yt,Ft=Dt.alternate,kt=Dt.stateNode;if(Ft!==null&&Ft===Ct)break;Dt.tag===5&&kt!==null&&(Dt=kt,$t?(Ft=Kb(yt,At),Ft!=null&&Bt.unshift(tf(yt,Ft,Dt))):$t||(Ft=Kb(yt,At),Ft!=null&&Bt.push(tf(yt,Ft,Dt)))),yt=yt.return}Bt.length!==0&&ht.push({event:Et,listeners:Bt})}var xf=/\r\n?/g,yf=/\u0000|\uFFFD/g;function zf(ht){return(typeof ht=="string"?ht:""+ht).replace(xf,`
`).replace(yf,"")}function Af(ht,Et,yt){if(Et=zf(Et),zf(ht)!==Et&&yt)throw Error(p$d(425))}function Bf(){}var Cf=null,Df=null;function Ef(ht,Et){return ht==="textarea"||ht==="noscript"||typeof Et.children=="string"||typeof Et.children=="number"||typeof Et.dangerouslySetInnerHTML=="object"&&Et.dangerouslySetInnerHTML!==null&&Et.dangerouslySetInnerHTML.__html!=null}var Ff=typeof setTimeout=="function"?setTimeout:void 0,Gf=typeof clearTimeout=="function"?clearTimeout:void 0,Hf=typeof Promise=="function"?Promise:void 0,Jf=typeof queueMicrotask=="function"?queueMicrotask:typeof Hf<"u"?function(ht){return Hf.resolve(null).then(ht).catch(If)}:Ff;function If(ht){setTimeout(function(){throw ht})}function Kf(ht,Et){var yt=Et,Ct=0;do{var $t=yt.nextSibling;if(ht.removeChild(yt),$t&&$t.nodeType===8)if(yt=$t.data,yt==="/$"){if(Ct===0){ht.removeChild($t),bd(Et);return}Ct--}else yt!=="$"&&yt!=="$?"&&yt!=="$!"||Ct++;yt=$t}while(yt);bd(Et)}function Lf(ht){for(;ht!=null;ht=ht.nextSibling){var Et=ht.nodeType;if(Et===1||Et===3)break;if(Et===8){if(Et=ht.data,Et==="$"||Et==="$!"||Et==="$?")break;if(Et==="/$")return null}}return ht}function Mf(ht){ht=ht.previousSibling;for(var Et=0;ht;){if(ht.nodeType===8){var yt=ht.data;if(yt==="$"||yt==="$!"||yt==="$?"){if(Et===0)return ht;Et--}else yt==="/$"&&Et++}ht=ht.previousSibling}return null}var Nf=Math.random().toString(36).slice(2),Of="__reactFiber$"+Nf,Pf="__reactProps$"+Nf,uf="__reactContainer$"+Nf,of="__reactEvents$"+Nf,Qf="__reactListeners$"+Nf,Rf="__reactHandles$"+Nf;function Wc(ht){var Et=ht[Of];if(Et)return Et;for(var yt=ht.parentNode;yt;){if(Et=yt[uf]||yt[Of]){if(yt=Et.alternate,Et.child!==null||yt!==null&&yt.child!==null)for(ht=Mf(ht);ht!==null;){if(yt=ht[Of])return yt;ht=Mf(ht)}return Et}ht=yt,yt=ht.parentNode}return null}function Cb(ht){return ht=ht[Of]||ht[uf],!ht||ht.tag!==5&&ht.tag!==6&&ht.tag!==13&&ht.tag!==3?null:ht}function ue$1(ht){if(ht.tag===5||ht.tag===6)return ht.stateNode;throw Error(p$d(33))}function Db(ht){return ht[Pf]||null}var Sf=[],Tf=-1;function Uf(ht){return{current:ht}}function E$2(ht){0>Tf||(ht.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G$1(ht,Et){Tf++,Sf[Tf]=ht.current,ht.current=Et}var Vf={},H$2=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(ht,Et){var yt=ht.type.contextTypes;if(!yt)return Vf;var Ct=ht.stateNode;if(Ct&&Ct.__reactInternalMemoizedUnmaskedChildContext===Et)return Ct.__reactInternalMemoizedMaskedChildContext;var $t={},At;for(At in yt)$t[At]=Et[At];return Ct&&(ht=ht.stateNode,ht.__reactInternalMemoizedUnmaskedChildContext=Et,ht.__reactInternalMemoizedMaskedChildContext=$t),$t}function Zf(ht){return ht=ht.childContextTypes,ht!=null}function $f(){E$2(Wf),E$2(H$2)}function ag(ht,Et,yt){if(H$2.current!==Vf)throw Error(p$d(168));G$1(H$2,Et),G$1(Wf,yt)}function bg$1(ht,Et,yt){var Ct=ht.stateNode;if(Et=Et.childContextTypes,typeof Ct.getChildContext!="function")return yt;Ct=Ct.getChildContext();for(var $t in Ct)if(!($t in Et))throw Error(p$d(108,Ra(ht)||"Unknown",$t));return A$2({},yt,Ct)}function cg(ht){return ht=(ht=ht.stateNode)&&ht.__reactInternalMemoizedMergedChildContext||Vf,Xf=H$2.current,G$1(H$2,ht),G$1(Wf,Wf.current),!0}function dg(ht,Et,yt){var Ct=ht.stateNode;if(!Ct)throw Error(p$d(169));yt?(ht=bg$1(ht,Et,Xf),Ct.__reactInternalMemoizedMergedChildContext=ht,E$2(Wf),E$2(H$2),G$1(H$2,ht)):E$2(Wf),G$1(Wf,yt)}var eg=null,fg=!1,gg=!1;function hg(ht){eg===null?eg=[ht]:eg.push(ht)}function ig$1(ht){fg=!0,hg(ht)}function jg(){if(!gg&&eg!==null){gg=!0;var ht=0,Et=C$2;try{var yt=eg;for(C$2=1;ht<yt.length;ht++){var Ct=yt[ht];do Ct=Ct(!0);while(Ct!==null)}eg=null,fg=!1}catch($t){throw eg!==null&&(eg=eg.slice(ht+1)),ac(fc,jg),$t}finally{C$2=Et,gg=!1}}return null}var kg=[],lg$1=0,mg$1=null,ng=0,og=[],pg=0,qg=null,rg=1,sg$1="";function tg(ht,Et){kg[lg$1++]=ng,kg[lg$1++]=mg$1,mg$1=ht,ng=Et}function ug$1(ht,Et,yt){og[pg++]=rg,og[pg++]=sg$1,og[pg++]=qg,qg=ht;var Ct=rg;ht=sg$1;var $t=32-oc(Ct)-1;Ct&=~(1<<$t),yt+=1;var At=32-oc(Et)+$t;if(30<At){var Bt=$t-$t%5;At=(Ct&(1<<Bt)-1).toString(32),Ct>>=Bt,$t-=Bt,rg=1<<32-oc(Et)+$t|yt<<$t|Ct,sg$1=At+ht}else rg=1<<At|yt<<$t|Ct,sg$1=ht}function vg(ht){ht.return!==null&&(tg(ht,1),ug$1(ht,1,0))}function wg(ht){for(;ht===mg$1;)mg$1=kg[--lg$1],kg[lg$1]=null,ng=kg[--lg$1],kg[lg$1]=null;for(;ht===qg;)qg=og[--pg],og[pg]=null,sg$1=og[--pg],og[pg]=null,rg=og[--pg],og[pg]=null}var xg=null,yg=null,I$7=!1,zg=null;function Ag(ht,Et){var yt=Bg(5,null,null,0);yt.elementType="DELETED",yt.stateNode=Et,yt.return=ht,Et=ht.deletions,Et===null?(ht.deletions=[yt],ht.flags|=16):Et.push(yt)}function Cg(ht,Et){switch(ht.tag){case 5:var yt=ht.type;return Et=Et.nodeType!==1||yt.toLowerCase()!==Et.nodeName.toLowerCase()?null:Et,Et!==null?(ht.stateNode=Et,xg=ht,yg=Lf(Et.firstChild),!0):!1;case 6:return Et=ht.pendingProps===""||Et.nodeType!==3?null:Et,Et!==null?(ht.stateNode=Et,xg=ht,yg=null,!0):!1;case 13:return Et=Et.nodeType!==8?null:Et,Et!==null?(yt=qg!==null?{id:rg,overflow:sg$1}:null,ht.memoizedState={dehydrated:Et,treeContext:yt,retryLane:1073741824},yt=Bg(18,null,null,0),yt.stateNode=Et,yt.return=ht,ht.child=yt,xg=ht,yg=null,!0):!1;default:return!1}}function Dg(ht){return(ht.mode&1)!==0&&(ht.flags&128)===0}function Eg(ht){if(I$7){var Et=yg;if(Et){var yt=Et;if(!Cg(ht,Et)){if(Dg(ht))throw Error(p$d(418));Et=Lf(yt.nextSibling);var Ct=xg;Et&&Cg(ht,Et)?Ag(Ct,yt):(ht.flags=ht.flags&-4097|2,I$7=!1,xg=ht)}}else{if(Dg(ht))throw Error(p$d(418));ht.flags=ht.flags&-4097|2,I$7=!1,xg=ht}}}function Fg(ht){for(ht=ht.return;ht!==null&&ht.tag!==5&&ht.tag!==3&&ht.tag!==13;)ht=ht.return;xg=ht}function Gg(ht){if(ht!==xg)return!1;if(!I$7)return Fg(ht),I$7=!0,!1;var Et;if((Et=ht.tag!==3)&&!(Et=ht.tag!==5)&&(Et=ht.type,Et=Et!=="head"&&Et!=="body"&&!Ef(ht.type,ht.memoizedProps)),Et&&(Et=yg)){if(Dg(ht))throw Hg(),Error(p$d(418));for(;Et;)Ag(ht,Et),Et=Lf(Et.nextSibling)}if(Fg(ht),ht.tag===13){if(ht=ht.memoizedState,ht=ht!==null?ht.dehydrated:null,!ht)throw Error(p$d(317));e:{for(ht=ht.nextSibling,Et=0;ht;){if(ht.nodeType===8){var yt=ht.data;if(yt==="/$"){if(Et===0){yg=Lf(ht.nextSibling);break e}Et--}else yt!=="$"&&yt!=="$!"&&yt!=="$?"||Et++}ht=ht.nextSibling}yg=null}}else yg=xg?Lf(ht.stateNode.nextSibling):null;return!0}function Hg(){for(var ht=yg;ht;)ht=Lf(ht.nextSibling)}function Ig(){yg=xg=null,I$7=!1}function Jg(ht){zg===null?zg=[ht]:zg.push(ht)}var Kg=ua$1.ReactCurrentBatchConfig;function Lg(ht,Et,yt){if(ht=yt.ref,ht!==null&&typeof ht!="function"&&typeof ht!="object"){if(yt._owner){if(yt=yt._owner,yt){if(yt.tag!==1)throw Error(p$d(309));var Ct=yt.stateNode}if(!Ct)throw Error(p$d(147,ht));var $t=Ct,At=""+ht;return Et!==null&&Et.ref!==null&&typeof Et.ref=="function"&&Et.ref._stringRef===At?Et.ref:(Et=function(Bt){var Dt=$t.refs;Bt===null?delete Dt[At]:Dt[At]=Bt},Et._stringRef=At,Et)}if(typeof ht!="string")throw Error(p$d(284));if(!yt._owner)throw Error(p$d(290,ht))}return ht}function Mg(ht,Et){throw ht=Object.prototype.toString.call(Et),Error(p$d(31,ht==="[object Object]"?"object with keys {"+Object.keys(Et).join(", ")+"}":ht))}function Ng(ht){var Et=ht._init;return Et(ht._payload)}function Og(ht){function Et(Qt,Zt){if(ht){var dr=Qt.deletions;dr===null?(Qt.deletions=[Zt],Qt.flags|=16):dr.push(Zt)}}function yt(Qt,Zt){if(!ht)return null;for(;Zt!==null;)Et(Qt,Zt),Zt=Zt.sibling;return null}function Ct(Qt,Zt){for(Qt=new Map;Zt!==null;)Zt.key!==null?Qt.set(Zt.key,Zt):Qt.set(Zt.index,Zt),Zt=Zt.sibling;return Qt}function $t(Qt,Zt){return Qt=Pg(Qt,Zt),Qt.index=0,Qt.sibling=null,Qt}function At(Qt,Zt,dr){return Qt.index=dr,ht?(dr=Qt.alternate,dr!==null?(dr=dr.index,dr<Zt?(Qt.flags|=2,Zt):dr):(Qt.flags|=2,Zt)):(Qt.flags|=1048576,Zt)}function Bt(Qt){return ht&&Qt.alternate===null&&(Qt.flags|=2),Qt}function Dt(Qt,Zt,dr,cr){return Zt===null||Zt.tag!==6?(Zt=Qg(dr,Qt.mode,cr),Zt.return=Qt,Zt):(Zt=$t(Zt,dr),Zt.return=Qt,Zt)}function Ft(Qt,Zt,dr,cr){var Er=dr.type;return Er===ya?Mt(Qt,Zt,dr.props.children,cr,dr.key):Zt!==null&&(Zt.elementType===Er||typeof Er=="object"&&Er!==null&&Er.$$typeof===Ha&&Ng(Er)===Zt.type)?(cr=$t(Zt,dr.props),cr.ref=Lg(Qt,Zt,dr),cr.return=Qt,cr):(cr=Rg(dr.type,dr.key,dr.props,null,Qt.mode,cr),cr.ref=Lg(Qt,Zt,dr),cr.return=Qt,cr)}function kt(Qt,Zt,dr,cr){return Zt===null||Zt.tag!==4||Zt.stateNode.containerInfo!==dr.containerInfo||Zt.stateNode.implementation!==dr.implementation?(Zt=Sg(dr,Qt.mode,cr),Zt.return=Qt,Zt):(Zt=$t(Zt,dr.children||[]),Zt.return=Qt,Zt)}function Mt(Qt,Zt,dr,cr,Er){return Zt===null||Zt.tag!==7?(Zt=Tg(dr,Qt.mode,cr,Er),Zt.return=Qt,Zt):(Zt=$t(Zt,dr),Zt.return=Qt,Zt)}function Nt(Qt,Zt,dr){if(typeof Zt=="string"&&Zt!==""||typeof Zt=="number")return Zt=Qg(""+Zt,Qt.mode,dr),Zt.return=Qt,Zt;if(typeof Zt=="object"&&Zt!==null){switch(Zt.$$typeof){case va:return dr=Rg(Zt.type,Zt.key,Zt.props,null,Qt.mode,dr),dr.ref=Lg(Qt,null,Zt),dr.return=Qt,dr;case wa$1:return Zt=Sg(Zt,Qt.mode,dr),Zt.return=Qt,Zt;case Ha:var cr=Zt._init;return Nt(Qt,cr(Zt._payload),dr)}if(eb(Zt)||Ka(Zt))return Zt=Tg(Zt,Qt.mode,dr,null),Zt.return=Qt,Zt;Mg(Qt,Zt)}return null}function jt(Qt,Zt,dr,cr){var Er=Zt!==null?Zt.key:null;if(typeof dr=="string"&&dr!==""||typeof dr=="number")return Er!==null?null:Dt(Qt,Zt,""+dr,cr);if(typeof dr=="object"&&dr!==null){switch(dr.$$typeof){case va:return dr.key===Er?Ft(Qt,Zt,dr,cr):null;case wa$1:return dr.key===Er?kt(Qt,Zt,dr,cr):null;case Ha:return Er=dr._init,jt(Qt,Zt,Er(dr._payload),cr)}if(eb(dr)||Ka(dr))return Er!==null?null:Mt(Qt,Zt,dr,cr,null);Mg(Qt,dr)}return null}function zt(Qt,Zt,dr,cr,Er){if(typeof cr=="string"&&cr!==""||typeof cr=="number")return Qt=Qt.get(dr)||null,Dt(Zt,Qt,""+cr,Er);if(typeof cr=="object"&&cr!==null){switch(cr.$$typeof){case va:return Qt=Qt.get(cr.key===null?dr:cr.key)||null,Ft(Zt,Qt,cr,Er);case wa$1:return Qt=Qt.get(cr.key===null?dr:cr.key)||null,kt(Zt,Qt,cr,Er);case Ha:var pr=cr._init;return zt(Qt,Zt,dr,pr(cr._payload),Er)}if(eb(cr)||Ka(cr))return Qt=Qt.get(dr)||null,Mt(Zt,Qt,cr,Er,null);Mg(Zt,cr)}return null}function Vt(Qt,Zt,dr,cr){for(var Er=null,pr=null,gr=Zt,vr=Zt=0,yr=null;gr!==null&&vr<dr.length;vr++){gr.index>vr?(yr=gr,gr=null):yr=gr.sibling;var xr=jt(Qt,gr,dr[vr],cr);if(xr===null){gr===null&&(gr=yr);break}ht&&gr&&xr.alternate===null&&Et(Qt,gr),Zt=At(xr,Zt,vr),pr===null?Er=xr:pr.sibling=xr,pr=xr,gr=yr}if(vr===dr.length)return yt(Qt,gr),I$7&&tg(Qt,vr),Er;if(gr===null){for(;vr<dr.length;vr++)gr=Nt(Qt,dr[vr],cr),gr!==null&&(Zt=At(gr,Zt,vr),pr===null?Er=gr:pr.sibling=gr,pr=gr);return I$7&&tg(Qt,vr),Er}for(gr=Ct(Qt,gr);vr<dr.length;vr++)yr=zt(gr,Qt,vr,dr[vr],cr),yr!==null&&(ht&&yr.alternate!==null&&gr.delete(yr.key===null?vr:yr.key),Zt=At(yr,Zt,vr),pr===null?Er=yr:pr.sibling=yr,pr=yr);return ht&&gr.forEach(function(rr){return Et(Qt,rr)}),I$7&&tg(Qt,vr),Er}function Kt(Qt,Zt,dr,cr){var Er=Ka(dr);if(typeof Er!="function")throw Error(p$d(150));if(dr=Er.call(dr),dr==null)throw Error(p$d(151));for(var pr=Er=null,gr=Zt,vr=Zt=0,yr=null,xr=dr.next();gr!==null&&!xr.done;vr++,xr=dr.next()){gr.index>vr?(yr=gr,gr=null):yr=gr.sibling;var rr=jt(Qt,gr,xr.value,cr);if(rr===null){gr===null&&(gr=yr);break}ht&&gr&&rr.alternate===null&&Et(Qt,gr),Zt=At(rr,Zt,vr),pr===null?Er=rr:pr.sibling=rr,pr=rr,gr=yr}if(xr.done)return yt(Qt,gr),I$7&&tg(Qt,vr),Er;if(gr===null){for(;!xr.done;vr++,xr=dr.next())xr=Nt(Qt,xr.value,cr),xr!==null&&(Zt=At(xr,Zt,vr),pr===null?Er=xr:pr.sibling=xr,pr=xr);return I$7&&tg(Qt,vr),Er}for(gr=Ct(Qt,gr);!xr.done;vr++,xr=dr.next())xr=zt(gr,Qt,vr,xr.value,cr),xr!==null&&(ht&&xr.alternate!==null&&gr.delete(xr.key===null?vr:xr.key),Zt=At(xr,Zt,vr),pr===null?Er=xr:pr.sibling=xr,pr=xr);return ht&&gr.forEach(function(Lt){return Et(Qt,Lt)}),I$7&&tg(Qt,vr),Er}function Xt(Qt,Zt,dr,cr){if(typeof dr=="object"&&dr!==null&&dr.type===ya&&dr.key===null&&(dr=dr.props.children),typeof dr=="object"&&dr!==null){switch(dr.$$typeof){case va:e:{for(var Er=dr.key,pr=Zt;pr!==null;){if(pr.key===Er){if(Er=dr.type,Er===ya){if(pr.tag===7){yt(Qt,pr.sibling),Zt=$t(pr,dr.props.children),Zt.return=Qt,Qt=Zt;break e}}else if(pr.elementType===Er||typeof Er=="object"&&Er!==null&&Er.$$typeof===Ha&&Ng(Er)===pr.type){yt(Qt,pr.sibling),Zt=$t(pr,dr.props),Zt.ref=Lg(Qt,pr,dr),Zt.return=Qt,Qt=Zt;break e}yt(Qt,pr);break}else Et(Qt,pr);pr=pr.sibling}dr.type===ya?(Zt=Tg(dr.props.children,Qt.mode,cr,dr.key),Zt.return=Qt,Qt=Zt):(cr=Rg(dr.type,dr.key,dr.props,null,Qt.mode,cr),cr.ref=Lg(Qt,Zt,dr),cr.return=Qt,Qt=cr)}return Bt(Qt);case wa$1:e:{for(pr=dr.key;Zt!==null;){if(Zt.key===pr)if(Zt.tag===4&&Zt.stateNode.containerInfo===dr.containerInfo&&Zt.stateNode.implementation===dr.implementation){yt(Qt,Zt.sibling),Zt=$t(Zt,dr.children||[]),Zt.return=Qt,Qt=Zt;break e}else{yt(Qt,Zt);break}else Et(Qt,Zt);Zt=Zt.sibling}Zt=Sg(dr,Qt.mode,cr),Zt.return=Qt,Qt=Zt}return Bt(Qt);case Ha:return pr=dr._init,Xt(Qt,Zt,pr(dr._payload),cr)}if(eb(dr))return Vt(Qt,Zt,dr,cr);if(Ka(dr))return Kt(Qt,Zt,dr,cr);Mg(Qt,dr)}return typeof dr=="string"&&dr!==""||typeof dr=="number"?(dr=""+dr,Zt!==null&&Zt.tag===6?(yt(Qt,Zt.sibling),Zt=$t(Zt,dr),Zt.return=Qt,Qt=Zt):(yt(Qt,Zt),Zt=Qg(dr,Qt.mode,cr),Zt.return=Qt,Qt=Zt),Bt(Qt)):yt(Qt,Zt)}return Xt}var Ug=Og(!0),Vg=Og(!1),Wg=Uf(null),Xg=null,Yg=null,Zg=null;function $g(){Zg=Yg=Xg=null}function ah(ht){var Et=Wg.current;E$2(Wg),ht._currentValue=Et}function bh(ht,Et,yt){for(;ht!==null;){var Ct=ht.alternate;if((ht.childLanes&Et)!==Et?(ht.childLanes|=Et,Ct!==null&&(Ct.childLanes|=Et)):Ct!==null&&(Ct.childLanes&Et)!==Et&&(Ct.childLanes|=Et),ht===yt)break;ht=ht.return}}function ch$1(ht,Et){Xg=ht,Zg=Yg=null,ht=ht.dependencies,ht!==null&&ht.firstContext!==null&&(ht.lanes&Et&&(dh$1=!0),ht.firstContext=null)}function eh(ht){var Et=ht._currentValue;if(Zg!==ht)if(ht={context:ht,memoizedValue:Et,next:null},Yg===null){if(Xg===null)throw Error(p$d(308));Yg=ht,Xg.dependencies={lanes:0,firstContext:ht}}else Yg=Yg.next=ht;return Et}var fh=null;function gh(ht){fh===null?fh=[ht]:fh.push(ht)}function hh(ht,Et,yt,Ct){var $t=Et.interleaved;return $t===null?(yt.next=yt,gh(Et)):(yt.next=$t.next,$t.next=yt),Et.interleaved=yt,ih(ht,Ct)}function ih(ht,Et){ht.lanes|=Et;var yt=ht.alternate;for(yt!==null&&(yt.lanes|=Et),yt=ht,ht=ht.return;ht!==null;)ht.childLanes|=Et,yt=ht.alternate,yt!==null&&(yt.childLanes|=Et),yt=ht,ht=ht.return;return yt.tag===3?yt.stateNode:null}var jh=!1;function kh(ht){ht.updateQueue={baseState:ht.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function lh(ht,Et){ht=ht.updateQueue,Et.updateQueue===ht&&(Et.updateQueue={baseState:ht.baseState,firstBaseUpdate:ht.firstBaseUpdate,lastBaseUpdate:ht.lastBaseUpdate,shared:ht.shared,effects:ht.effects})}function mh(ht,Et){return{eventTime:ht,lane:Et,tag:0,payload:null,callback:null,next:null}}function nh(ht,Et,yt){var Ct=ht.updateQueue;if(Ct===null)return null;if(Ct=Ct.shared,K$5&2){var $t=Ct.pending;return $t===null?Et.next=Et:(Et.next=$t.next,$t.next=Et),Ct.pending=Et,ih(ht,yt)}return $t=Ct.interleaved,$t===null?(Et.next=Et,gh(Ct)):(Et.next=$t.next,$t.next=Et),Ct.interleaved=Et,ih(ht,yt)}function oh(ht,Et,yt){if(Et=Et.updateQueue,Et!==null&&(Et=Et.shared,(yt&4194240)!==0)){var Ct=Et.lanes;Ct&=ht.pendingLanes,yt|=Ct,Et.lanes=yt,Cc$1(ht,yt)}}function ph(ht,Et){var yt=ht.updateQueue,Ct=ht.alternate;if(Ct!==null&&(Ct=Ct.updateQueue,yt===Ct)){var $t=null,At=null;if(yt=yt.firstBaseUpdate,yt!==null){do{var Bt={eventTime:yt.eventTime,lane:yt.lane,tag:yt.tag,payload:yt.payload,callback:yt.callback,next:null};At===null?$t=At=Bt:At=At.next=Bt,yt=yt.next}while(yt!==null);At===null?$t=At=Et:At=At.next=Et}else $t=At=Et;yt={baseState:Ct.baseState,firstBaseUpdate:$t,lastBaseUpdate:At,shared:Ct.shared,effects:Ct.effects},ht.updateQueue=yt;return}ht=yt.lastBaseUpdate,ht===null?yt.firstBaseUpdate=Et:ht.next=Et,yt.lastBaseUpdate=Et}function qh(ht,Et,yt,Ct){var $t=ht.updateQueue;jh=!1;var At=$t.firstBaseUpdate,Bt=$t.lastBaseUpdate,Dt=$t.shared.pending;if(Dt!==null){$t.shared.pending=null;var Ft=Dt,kt=Ft.next;Ft.next=null,Bt===null?At=kt:Bt.next=kt,Bt=Ft;var Mt=ht.alternate;Mt!==null&&(Mt=Mt.updateQueue,Dt=Mt.lastBaseUpdate,Dt!==Bt&&(Dt===null?Mt.firstBaseUpdate=kt:Dt.next=kt,Mt.lastBaseUpdate=Ft))}if(At!==null){var Nt=$t.baseState;Bt=0,Mt=kt=Ft=null,Dt=At;do{var jt=Dt.lane,zt=Dt.eventTime;if((Ct&jt)===jt){Mt!==null&&(Mt=Mt.next={eventTime:zt,lane:0,tag:Dt.tag,payload:Dt.payload,callback:Dt.callback,next:null});e:{var Vt=ht,Kt=Dt;switch(jt=Et,zt=yt,Kt.tag){case 1:if(Vt=Kt.payload,typeof Vt=="function"){Nt=Vt.call(zt,Nt,jt);break e}Nt=Vt;break e;case 3:Vt.flags=Vt.flags&-65537|128;case 0:if(Vt=Kt.payload,jt=typeof Vt=="function"?Vt.call(zt,Nt,jt):Vt,jt==null)break e;Nt=A$2({},Nt,jt);break e;case 2:jh=!0}}Dt.callback!==null&&Dt.lane!==0&&(ht.flags|=64,jt=$t.effects,jt===null?$t.effects=[Dt]:jt.push(Dt))}else zt={eventTime:zt,lane:jt,tag:Dt.tag,payload:Dt.payload,callback:Dt.callback,next:null},Mt===null?(kt=Mt=zt,Ft=Nt):Mt=Mt.next=zt,Bt|=jt;if(Dt=Dt.next,Dt===null){if(Dt=$t.shared.pending,Dt===null)break;jt=Dt,Dt=jt.next,jt.next=null,$t.lastBaseUpdate=jt,$t.shared.pending=null}}while(!0);if(Mt===null&&(Ft=Nt),$t.baseState=Ft,$t.firstBaseUpdate=kt,$t.lastBaseUpdate=Mt,Et=$t.shared.interleaved,Et!==null){$t=Et;do Bt|=$t.lane,$t=$t.next;while($t!==Et)}else At===null&&($t.shared.lanes=0);rh$1|=Bt,ht.lanes=Bt,ht.memoizedState=Nt}}function sh$2(ht,Et,yt){if(ht=Et.effects,Et.effects=null,ht!==null)for(Et=0;Et<ht.length;Et++){var Ct=ht[Et],$t=Ct.callback;if($t!==null){if(Ct.callback=null,Ct=yt,typeof $t!="function")throw Error(p$d(191,$t));$t.call(Ct)}}}var th$1={},uh=Uf(th$1),vh=Uf(th$1),wh=Uf(th$1);function xh$1(ht){if(ht===th$1)throw Error(p$d(174));return ht}function yh(ht,Et){switch(G$1(wh,Et),G$1(vh,ht),G$1(uh,th$1),ht=Et.nodeType,ht){case 9:case 11:Et=(Et=Et.documentElement)?Et.namespaceURI:lb$1(null,"");break;default:ht=ht===8?Et.parentNode:Et,Et=ht.namespaceURI||null,ht=ht.tagName,Et=lb$1(Et,ht)}E$2(uh),G$1(uh,Et)}function zh$1(){E$2(uh),E$2(vh),E$2(wh)}function Ah(ht){xh$1(wh.current);var Et=xh$1(uh.current),yt=lb$1(Et,ht.type);Et!==yt&&(G$1(vh,ht),G$1(uh,yt))}function Bh(ht){vh.current===ht&&(E$2(uh),E$2(vh))}var L$1=Uf(0);function Ch$1(ht){for(var Et=ht;Et!==null;){if(Et.tag===13){var yt=Et.memoizedState;if(yt!==null&&(yt=yt.dehydrated,yt===null||yt.data==="$?"||yt.data==="$!"))return Et}else if(Et.tag===19&&Et.memoizedProps.revealOrder!==void 0){if(Et.flags&128)return Et}else if(Et.child!==null){Et.child.return=Et,Et=Et.child;continue}if(Et===ht)break;for(;Et.sibling===null;){if(Et.return===null||Et.return===ht)return null;Et=Et.return}Et.sibling.return=Et.return,Et=Et.sibling}return null}var Dh=[];function Eh(){for(var ht=0;ht<Dh.length;ht++)Dh[ht]._workInProgressVersionPrimary=null;Dh.length=0}var Fh=ua$1.ReactCurrentDispatcher,Gh=ua$1.ReactCurrentBatchConfig,Hh=0,M$4=null,N$4=null,O$3=null,Ih=!1,Jh=!1,Kh$1=0,Lh=0;function P$4(){throw Error(p$d(321))}function Mh(ht,Et){if(Et===null)return!1;for(var yt=0;yt<Et.length&&yt<ht.length;yt++)if(!He$2(ht[yt],Et[yt]))return!1;return!0}function Nh(ht,Et,yt,Ct,$t,At){if(Hh=At,M$4=Et,Et.memoizedState=null,Et.updateQueue=null,Et.lanes=0,Fh.current=ht===null||ht.memoizedState===null?Oh:Ph,ht=yt(Ct,$t),Jh){At=0;do{if(Jh=!1,Kh$1=0,25<=At)throw Error(p$d(301));At+=1,O$3=N$4=null,Et.updateQueue=null,Fh.current=Qh,ht=yt(Ct,$t)}while(Jh)}if(Fh.current=Rh,Et=N$4!==null&&N$4.next!==null,Hh=0,O$3=N$4=M$4=null,Ih=!1,Et)throw Error(p$d(300));return ht}function Sh(){var ht=Kh$1!==0;return Kh$1=0,ht}function Th(){var ht={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return O$3===null?M$4.memoizedState=O$3=ht:O$3=O$3.next=ht,O$3}function Uh(){if(N$4===null){var ht=M$4.alternate;ht=ht!==null?ht.memoizedState:null}else ht=N$4.next;var Et=O$3===null?M$4.memoizedState:O$3.next;if(Et!==null)O$3=Et,N$4=ht;else{if(ht===null)throw Error(p$d(310));N$4=ht,ht={memoizedState:N$4.memoizedState,baseState:N$4.baseState,baseQueue:N$4.baseQueue,queue:N$4.queue,next:null},O$3===null?M$4.memoizedState=O$3=ht:O$3=O$3.next=ht}return O$3}function Vh(ht,Et){return typeof Et=="function"?Et(ht):Et}function Wh(ht){var Et=Uh(),yt=Et.queue;if(yt===null)throw Error(p$d(311));yt.lastRenderedReducer=ht;var Ct=N$4,$t=Ct.baseQueue,At=yt.pending;if(At!==null){if($t!==null){var Bt=$t.next;$t.next=At.next,At.next=Bt}Ct.baseQueue=$t=At,yt.pending=null}if($t!==null){At=$t.next,Ct=Ct.baseState;var Dt=Bt=null,Ft=null,kt=At;do{var Mt=kt.lane;if((Hh&Mt)===Mt)Ft!==null&&(Ft=Ft.next={lane:0,action:kt.action,hasEagerState:kt.hasEagerState,eagerState:kt.eagerState,next:null}),Ct=kt.hasEagerState?kt.eagerState:ht(Ct,kt.action);else{var Nt={lane:Mt,action:kt.action,hasEagerState:kt.hasEagerState,eagerState:kt.eagerState,next:null};Ft===null?(Dt=Ft=Nt,Bt=Ct):Ft=Ft.next=Nt,M$4.lanes|=Mt,rh$1|=Mt}kt=kt.next}while(kt!==null&&kt!==At);Ft===null?Bt=Ct:Ft.next=Dt,He$2(Ct,Et.memoizedState)||(dh$1=!0),Et.memoizedState=Ct,Et.baseState=Bt,Et.baseQueue=Ft,yt.lastRenderedState=Ct}if(ht=yt.interleaved,ht!==null){$t=ht;do At=$t.lane,M$4.lanes|=At,rh$1|=At,$t=$t.next;while($t!==ht)}else $t===null&&(yt.lanes=0);return[Et.memoizedState,yt.dispatch]}function Xh(ht){var Et=Uh(),yt=Et.queue;if(yt===null)throw Error(p$d(311));yt.lastRenderedReducer=ht;var Ct=yt.dispatch,$t=yt.pending,At=Et.memoizedState;if($t!==null){yt.pending=null;var Bt=$t=$t.next;do At=ht(At,Bt.action),Bt=Bt.next;while(Bt!==$t);He$2(At,Et.memoizedState)||(dh$1=!0),Et.memoizedState=At,Et.baseQueue===null&&(Et.baseState=At),yt.lastRenderedState=At}return[At,Ct]}function Yh(){}function Zh(ht,Et){var yt=M$4,Ct=Uh(),$t=Et(),At=!He$2(Ct.memoizedState,$t);if(At&&(Ct.memoizedState=$t,dh$1=!0),Ct=Ct.queue,$h(ai.bind(null,yt,Ct,ht),[ht]),Ct.getSnapshot!==Et||At||O$3!==null&&O$3.memoizedState.tag&1){if(yt.flags|=2048,bi(9,ci.bind(null,yt,Ct,$t,Et),void 0,null),Q$2===null)throw Error(p$d(349));Hh&30||di(yt,Et,$t)}return $t}function di(ht,Et,yt){ht.flags|=16384,ht={getSnapshot:Et,value:yt},Et=M$4.updateQueue,Et===null?(Et={lastEffect:null,stores:null},M$4.updateQueue=Et,Et.stores=[ht]):(yt=Et.stores,yt===null?Et.stores=[ht]:yt.push(ht))}function ci(ht,Et,yt,Ct){Et.value=yt,Et.getSnapshot=Ct,ei(Et)&&fi$1(ht)}function ai(ht,Et,yt){return yt(function(){ei(Et)&&fi$1(ht)})}function ei(ht){var Et=ht.getSnapshot;ht=ht.value;try{var yt=Et();return!He$2(ht,yt)}catch{return!0}}function fi$1(ht){var Et=ih(ht,1);Et!==null&&gi(Et,ht,1,-1)}function hi$2(ht){var Et=Th();return typeof ht=="function"&&(ht=ht()),Et.memoizedState=Et.baseState=ht,ht={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Vh,lastRenderedState:ht},Et.queue=ht,ht=ht.dispatch=ii$1.bind(null,M$4,ht),[Et.memoizedState,ht]}function bi(ht,Et,yt,Ct){return ht={tag:ht,create:Et,destroy:yt,deps:Ct,next:null},Et=M$4.updateQueue,Et===null?(Et={lastEffect:null,stores:null},M$4.updateQueue=Et,Et.lastEffect=ht.next=ht):(yt=Et.lastEffect,yt===null?Et.lastEffect=ht.next=ht:(Ct=yt.next,yt.next=ht,ht.next=Ct,Et.lastEffect=ht)),ht}function ji(){return Uh().memoizedState}function ki(ht,Et,yt,Ct){var $t=Th();M$4.flags|=ht,$t.memoizedState=bi(1|Et,yt,void 0,Ct===void 0?null:Ct)}function li(ht,Et,yt,Ct){var $t=Uh();Ct=Ct===void 0?null:Ct;var At=void 0;if(N$4!==null){var Bt=N$4.memoizedState;if(At=Bt.destroy,Ct!==null&&Mh(Ct,Bt.deps)){$t.memoizedState=bi(Et,yt,At,Ct);return}}M$4.flags|=ht,$t.memoizedState=bi(1|Et,yt,At,Ct)}function mi(ht,Et){return ki(8390656,8,ht,Et)}function $h(ht,Et){return li(2048,8,ht,Et)}function ni(ht,Et){return li(4,2,ht,Et)}function oi(ht,Et){return li(4,4,ht,Et)}function pi(ht,Et){if(typeof Et=="function")return ht=ht(),Et(ht),function(){Et(null)};if(Et!=null)return ht=ht(),Et.current=ht,function(){Et.current=null}}function qi(ht,Et,yt){return yt=yt!=null?yt.concat([ht]):null,li(4,4,pi.bind(null,Et,ht),yt)}function ri(){}function si$1(ht,Et){var yt=Uh();Et=Et===void 0?null:Et;var Ct=yt.memoizedState;return Ct!==null&&Et!==null&&Mh(Et,Ct[1])?Ct[0]:(yt.memoizedState=[ht,Et],ht)}function ti$1(ht,Et){var yt=Uh();Et=Et===void 0?null:Et;var Ct=yt.memoizedState;return Ct!==null&&Et!==null&&Mh(Et,Ct[1])?Ct[0]:(ht=ht(),yt.memoizedState=[ht,Et],ht)}function ui(ht,Et,yt){return Hh&21?(He$2(yt,Et)||(yt=yc(),M$4.lanes|=yt,rh$1|=yt,ht.baseState=!0),Et):(ht.baseState&&(ht.baseState=!1,dh$1=!0),ht.memoizedState=yt)}function vi$1(ht,Et){var yt=C$2;C$2=yt!==0&&4>yt?yt:4,ht(!0);var Ct=Gh.transition;Gh.transition={};try{ht(!1),Et()}finally{C$2=yt,Gh.transition=Ct}}function wi(){return Uh().memoizedState}function xi(ht,Et,yt){var Ct=yi$1(ht);if(yt={lane:Ct,action:yt,hasEagerState:!1,eagerState:null,next:null},zi(ht))Ai(Et,yt);else if(yt=hh(ht,Et,yt,Ct),yt!==null){var $t=R$3();gi(yt,ht,Ct,$t),Bi$1(yt,Et,Ct)}}function ii$1(ht,Et,yt){var Ct=yi$1(ht),$t={lane:Ct,action:yt,hasEagerState:!1,eagerState:null,next:null};if(zi(ht))Ai(Et,$t);else{var At=ht.alternate;if(ht.lanes===0&&(At===null||At.lanes===0)&&(At=Et.lastRenderedReducer,At!==null))try{var Bt=Et.lastRenderedState,Dt=At(Bt,yt);if($t.hasEagerState=!0,$t.eagerState=Dt,He$2(Dt,Bt)){var Ft=Et.interleaved;Ft===null?($t.next=$t,gh(Et)):($t.next=Ft.next,Ft.next=$t),Et.interleaved=$t;return}}catch{}finally{}yt=hh(ht,Et,$t,Ct),yt!==null&&($t=R$3(),gi(yt,ht,Ct,$t),Bi$1(yt,Et,Ct))}}function zi(ht){var Et=ht.alternate;return ht===M$4||Et!==null&&Et===M$4}function Ai(ht,Et){Jh=Ih=!0;var yt=ht.pending;yt===null?Et.next=Et:(Et.next=yt.next,yt.next=Et),ht.pending=Et}function Bi$1(ht,Et,yt){if(yt&4194240){var Ct=Et.lanes;Ct&=ht.pendingLanes,yt|=Ct,Et.lanes=yt,Cc$1(ht,yt)}}var Rh={readContext:eh,useCallback:P$4,useContext:P$4,useEffect:P$4,useImperativeHandle:P$4,useInsertionEffect:P$4,useLayoutEffect:P$4,useMemo:P$4,useReducer:P$4,useRef:P$4,useState:P$4,useDebugValue:P$4,useDeferredValue:P$4,useTransition:P$4,useMutableSource:P$4,useSyncExternalStore:P$4,useId:P$4,unstable_isNewReconciler:!1},Oh={readContext:eh,useCallback:function(ht,Et){return Th().memoizedState=[ht,Et===void 0?null:Et],ht},useContext:eh,useEffect:mi,useImperativeHandle:function(ht,Et,yt){return yt=yt!=null?yt.concat([ht]):null,ki(4194308,4,pi.bind(null,Et,ht),yt)},useLayoutEffect:function(ht,Et){return ki(4194308,4,ht,Et)},useInsertionEffect:function(ht,Et){return ki(4,2,ht,Et)},useMemo:function(ht,Et){var yt=Th();return Et=Et===void 0?null:Et,ht=ht(),yt.memoizedState=[ht,Et],ht},useReducer:function(ht,Et,yt){var Ct=Th();return Et=yt!==void 0?yt(Et):Et,Ct.memoizedState=Ct.baseState=Et,ht={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ht,lastRenderedState:Et},Ct.queue=ht,ht=ht.dispatch=xi.bind(null,M$4,ht),[Ct.memoizedState,ht]},useRef:function(ht){var Et=Th();return ht={current:ht},Et.memoizedState=ht},useState:hi$2,useDebugValue:ri,useDeferredValue:function(ht){return Th().memoizedState=ht},useTransition:function(){var ht=hi$2(!1),Et=ht[0];return ht=vi$1.bind(null,ht[1]),Th().memoizedState=ht,[Et,ht]},useMutableSource:function(){},useSyncExternalStore:function(ht,Et,yt){var Ct=M$4,$t=Th();if(I$7){if(yt===void 0)throw Error(p$d(407));yt=yt()}else{if(yt=Et(),Q$2===null)throw Error(p$d(349));Hh&30||di(Ct,Et,yt)}$t.memoizedState=yt;var At={value:yt,getSnapshot:Et};return $t.queue=At,mi(ai.bind(null,Ct,At,ht),[ht]),Ct.flags|=2048,bi(9,ci.bind(null,Ct,At,yt,Et),void 0,null),yt},useId:function(){var ht=Th(),Et=Q$2.identifierPrefix;if(I$7){var yt=sg$1,Ct=rg;yt=(Ct&~(1<<32-oc(Ct)-1)).toString(32)+yt,Et=":"+Et+"R"+yt,yt=Kh$1++,0<yt&&(Et+="H"+yt.toString(32)),Et+=":"}else yt=Lh++,Et=":"+Et+"r"+yt.toString(32)+":";return ht.memoizedState=Et},unstable_isNewReconciler:!1},Ph={readContext:eh,useCallback:si$1,useContext:eh,useEffect:$h,useImperativeHandle:qi,useInsertionEffect:ni,useLayoutEffect:oi,useMemo:ti$1,useReducer:Wh,useRef:ji,useState:function(){return Wh(Vh)},useDebugValue:ri,useDeferredValue:function(ht){var Et=Uh();return ui(Et,N$4.memoizedState,ht)},useTransition:function(){var ht=Wh(Vh)[0],Et=Uh().memoizedState;return[ht,Et]},useMutableSource:Yh,useSyncExternalStore:Zh,useId:wi,unstable_isNewReconciler:!1},Qh={readContext:eh,useCallback:si$1,useContext:eh,useEffect:$h,useImperativeHandle:qi,useInsertionEffect:ni,useLayoutEffect:oi,useMemo:ti$1,useReducer:Xh,useRef:ji,useState:function(){return Xh(Vh)},useDebugValue:ri,useDeferredValue:function(ht){var Et=Uh();return N$4===null?Et.memoizedState=ht:ui(Et,N$4.memoizedState,ht)},useTransition:function(){var ht=Xh(Vh)[0],Et=Uh().memoizedState;return[ht,Et]},useMutableSource:Yh,useSyncExternalStore:Zh,useId:wi,unstable_isNewReconciler:!1};function Ci(ht,Et){if(ht&&ht.defaultProps){Et=A$2({},Et),ht=ht.defaultProps;for(var yt in ht)Et[yt]===void 0&&(Et[yt]=ht[yt]);return Et}return Et}function Di(ht,Et,yt,Ct){Et=ht.memoizedState,yt=yt(Ct,Et),yt=yt==null?Et:A$2({},Et,yt),ht.memoizedState=yt,ht.lanes===0&&(ht.updateQueue.baseState=yt)}var Ei={isMounted:function(ht){return(ht=ht._reactInternals)?Vb(ht)===ht:!1},enqueueSetState:function(ht,Et,yt){ht=ht._reactInternals;var Ct=R$3(),$t=yi$1(ht),At=mh(Ct,$t);At.payload=Et,yt!=null&&(At.callback=yt),Et=nh(ht,At,$t),Et!==null&&(gi(Et,ht,$t,Ct),oh(Et,ht,$t))},enqueueReplaceState:function(ht,Et,yt){ht=ht._reactInternals;var Ct=R$3(),$t=yi$1(ht),At=mh(Ct,$t);At.tag=1,At.payload=Et,yt!=null&&(At.callback=yt),Et=nh(ht,At,$t),Et!==null&&(gi(Et,ht,$t,Ct),oh(Et,ht,$t))},enqueueForceUpdate:function(ht,Et){ht=ht._reactInternals;var yt=R$3(),Ct=yi$1(ht),$t=mh(yt,Ct);$t.tag=2,Et!=null&&($t.callback=Et),Et=nh(ht,$t,Ct),Et!==null&&(gi(Et,ht,Ct,yt),oh(Et,ht,Ct))}};function Fi(ht,Et,yt,Ct,$t,At,Bt){return ht=ht.stateNode,typeof ht.shouldComponentUpdate=="function"?ht.shouldComponentUpdate(Ct,At,Bt):Et.prototype&&Et.prototype.isPureReactComponent?!Ie(yt,Ct)||!Ie($t,At):!0}function Gi(ht,Et,yt){var Ct=!1,$t=Vf,At=Et.contextType;return typeof At=="object"&&At!==null?At=eh(At):($t=Zf(Et)?Xf:H$2.current,Ct=Et.contextTypes,At=(Ct=Ct!=null)?Yf(ht,$t):Vf),Et=new Et(yt,At),ht.memoizedState=Et.state!==null&&Et.state!==void 0?Et.state:null,Et.updater=Ei,ht.stateNode=Et,Et._reactInternals=ht,Ct&&(ht=ht.stateNode,ht.__reactInternalMemoizedUnmaskedChildContext=$t,ht.__reactInternalMemoizedMaskedChildContext=At),Et}function Hi(ht,Et,yt,Ct){ht=Et.state,typeof Et.componentWillReceiveProps=="function"&&Et.componentWillReceiveProps(yt,Ct),typeof Et.UNSAFE_componentWillReceiveProps=="function"&&Et.UNSAFE_componentWillReceiveProps(yt,Ct),Et.state!==ht&&Ei.enqueueReplaceState(Et,Et.state,null)}function Ii(ht,Et,yt,Ct){var $t=ht.stateNode;$t.props=yt,$t.state=ht.memoizedState,$t.refs={},kh(ht);var At=Et.contextType;typeof At=="object"&&At!==null?$t.context=eh(At):(At=Zf(Et)?Xf:H$2.current,$t.context=Yf(ht,At)),$t.state=ht.memoizedState,At=Et.getDerivedStateFromProps,typeof At=="function"&&(Di(ht,Et,At,yt),$t.state=ht.memoizedState),typeof Et.getDerivedStateFromProps=="function"||typeof $t.getSnapshotBeforeUpdate=="function"||typeof $t.UNSAFE_componentWillMount!="function"&&typeof $t.componentWillMount!="function"||(Et=$t.state,typeof $t.componentWillMount=="function"&&$t.componentWillMount(),typeof $t.UNSAFE_componentWillMount=="function"&&$t.UNSAFE_componentWillMount(),Et!==$t.state&&Ei.enqueueReplaceState($t,$t.state,null),qh(ht,yt,$t,Ct),$t.state=ht.memoizedState),typeof $t.componentDidMount=="function"&&(ht.flags|=4194308)}function Ji(ht,Et){try{var yt="",Ct=Et;do yt+=Pa(Ct),Ct=Ct.return;while(Ct);var $t=yt}catch(At){$t=`
Error generating stack: `+At.message+`
`+At.stack}return{value:ht,source:Et,stack:$t,digest:null}}function Ki(ht,Et,yt){return{value:ht,source:null,stack:yt??null,digest:Et??null}}function Li(ht,Et){try{console.error(Et.value)}catch(yt){setTimeout(function(){throw yt})}}var Mi=typeof WeakMap=="function"?WeakMap:Map;function Ni(ht,Et,yt){yt=mh(-1,yt),yt.tag=3,yt.payload={element:null};var Ct=Et.value;return yt.callback=function(){Oi||(Oi=!0,Pi=Ct),Li(ht,Et)},yt}function Qi(ht,Et,yt){yt=mh(-1,yt),yt.tag=3;var Ct=ht.type.getDerivedStateFromError;if(typeof Ct=="function"){var $t=Et.value;yt.payload=function(){return Ct($t)},yt.callback=function(){Li(ht,Et)}}var At=ht.stateNode;return At!==null&&typeof At.componentDidCatch=="function"&&(yt.callback=function(){Li(ht,Et),typeof Ct!="function"&&(Ri===null?Ri=new Set([this]):Ri.add(this));var Bt=Et.stack;this.componentDidCatch(Et.value,{componentStack:Bt!==null?Bt:""})}),yt}function Si(ht,Et,yt){var Ct=ht.pingCache;if(Ct===null){Ct=ht.pingCache=new Mi;var $t=new Set;Ct.set(Et,$t)}else $t=Ct.get(Et),$t===void 0&&($t=new Set,Ct.set(Et,$t));$t.has(yt)||($t.add(yt),ht=Ti.bind(null,ht,Et,yt),Et.then(ht,ht))}function Ui(ht){do{var Et;if((Et=ht.tag===13)&&(Et=ht.memoizedState,Et=Et!==null?Et.dehydrated!==null:!0),Et)return ht;ht=ht.return}while(ht!==null);return null}function Vi(ht,Et,yt,Ct,$t){return ht.mode&1?(ht.flags|=65536,ht.lanes=$t,ht):(ht===Et?ht.flags|=65536:(ht.flags|=128,yt.flags|=131072,yt.flags&=-52805,yt.tag===1&&(yt.alternate===null?yt.tag=17:(Et=mh(-1,1),Et.tag=2,nh(yt,Et,1))),yt.lanes|=1),ht)}var Wi=ua$1.ReactCurrentOwner,dh$1=!1;function Xi(ht,Et,yt,Ct){Et.child=ht===null?Vg(Et,null,yt,Ct):Ug(Et,ht.child,yt,Ct)}function Yi(ht,Et,yt,Ct,$t){yt=yt.render;var At=Et.ref;return ch$1(Et,$t),Ct=Nh(ht,Et,yt,Ct,At,$t),yt=Sh(),ht!==null&&!dh$1?(Et.updateQueue=ht.updateQueue,Et.flags&=-2053,ht.lanes&=~$t,Zi(ht,Et,$t)):(I$7&&yt&&vg(Et),Et.flags|=1,Xi(ht,Et,Ct,$t),Et.child)}function $i(ht,Et,yt,Ct,$t){if(ht===null){var At=yt.type;return typeof At=="function"&&!aj(At)&&At.defaultProps===void 0&&yt.compare===null&&yt.defaultProps===void 0?(Et.tag=15,Et.type=At,bj(ht,Et,At,Ct,$t)):(ht=Rg(yt.type,null,Ct,Et,Et.mode,$t),ht.ref=Et.ref,ht.return=Et,Et.child=ht)}if(At=ht.child,!(ht.lanes&$t)){var Bt=At.memoizedProps;if(yt=yt.compare,yt=yt!==null?yt:Ie,yt(Bt,Ct)&&ht.ref===Et.ref)return Zi(ht,Et,$t)}return Et.flags|=1,ht=Pg(At,Ct),ht.ref=Et.ref,ht.return=Et,Et.child=ht}function bj(ht,Et,yt,Ct,$t){if(ht!==null){var At=ht.memoizedProps;if(Ie(At,Ct)&&ht.ref===Et.ref)if(dh$1=!1,Et.pendingProps=Ct=At,(ht.lanes&$t)!==0)ht.flags&131072&&(dh$1=!0);else return Et.lanes=ht.lanes,Zi(ht,Et,$t)}return cj(ht,Et,yt,Ct,$t)}function dj(ht,Et,yt){var Ct=Et.pendingProps,$t=Ct.children,At=ht!==null?ht.memoizedState:null;if(Ct.mode==="hidden")if(!(Et.mode&1))Et.memoizedState={baseLanes:0,cachePool:null,transitions:null},G$1(ej,fj),fj|=yt;else{if(!(yt&1073741824))return ht=At!==null?At.baseLanes|yt:yt,Et.lanes=Et.childLanes=1073741824,Et.memoizedState={baseLanes:ht,cachePool:null,transitions:null},Et.updateQueue=null,G$1(ej,fj),fj|=ht,null;Et.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ct=At!==null?At.baseLanes:yt,G$1(ej,fj),fj|=Ct}else At!==null?(Ct=At.baseLanes|yt,Et.memoizedState=null):Ct=yt,G$1(ej,fj),fj|=Ct;return Xi(ht,Et,$t,yt),Et.child}function gj(ht,Et){var yt=Et.ref;(ht===null&&yt!==null||ht!==null&&ht.ref!==yt)&&(Et.flags|=512,Et.flags|=2097152)}function cj(ht,Et,yt,Ct,$t){var At=Zf(yt)?Xf:H$2.current;return At=Yf(Et,At),ch$1(Et,$t),yt=Nh(ht,Et,yt,Ct,At,$t),Ct=Sh(),ht!==null&&!dh$1?(Et.updateQueue=ht.updateQueue,Et.flags&=-2053,ht.lanes&=~$t,Zi(ht,Et,$t)):(I$7&&Ct&&vg(Et),Et.flags|=1,Xi(ht,Et,yt,$t),Et.child)}function hj(ht,Et,yt,Ct,$t){if(Zf(yt)){var At=!0;cg(Et)}else At=!1;if(ch$1(Et,$t),Et.stateNode===null)ij(ht,Et),Gi(Et,yt,Ct),Ii(Et,yt,Ct,$t),Ct=!0;else if(ht===null){var Bt=Et.stateNode,Dt=Et.memoizedProps;Bt.props=Dt;var Ft=Bt.context,kt=yt.contextType;typeof kt=="object"&&kt!==null?kt=eh(kt):(kt=Zf(yt)?Xf:H$2.current,kt=Yf(Et,kt));var Mt=yt.getDerivedStateFromProps,Nt=typeof Mt=="function"||typeof Bt.getSnapshotBeforeUpdate=="function";Nt||typeof Bt.UNSAFE_componentWillReceiveProps!="function"&&typeof Bt.componentWillReceiveProps!="function"||(Dt!==Ct||Ft!==kt)&&Hi(Et,Bt,Ct,kt),jh=!1;var jt=Et.memoizedState;Bt.state=jt,qh(Et,Ct,Bt,$t),Ft=Et.memoizedState,Dt!==Ct||jt!==Ft||Wf.current||jh?(typeof Mt=="function"&&(Di(Et,yt,Mt,Ct),Ft=Et.memoizedState),(Dt=jh||Fi(Et,yt,Dt,Ct,jt,Ft,kt))?(Nt||typeof Bt.UNSAFE_componentWillMount!="function"&&typeof Bt.componentWillMount!="function"||(typeof Bt.componentWillMount=="function"&&Bt.componentWillMount(),typeof Bt.UNSAFE_componentWillMount=="function"&&Bt.UNSAFE_componentWillMount()),typeof Bt.componentDidMount=="function"&&(Et.flags|=4194308)):(typeof Bt.componentDidMount=="function"&&(Et.flags|=4194308),Et.memoizedProps=Ct,Et.memoizedState=Ft),Bt.props=Ct,Bt.state=Ft,Bt.context=kt,Ct=Dt):(typeof Bt.componentDidMount=="function"&&(Et.flags|=4194308),Ct=!1)}else{Bt=Et.stateNode,lh(ht,Et),Dt=Et.memoizedProps,kt=Et.type===Et.elementType?Dt:Ci(Et.type,Dt),Bt.props=kt,Nt=Et.pendingProps,jt=Bt.context,Ft=yt.contextType,typeof Ft=="object"&&Ft!==null?Ft=eh(Ft):(Ft=Zf(yt)?Xf:H$2.current,Ft=Yf(Et,Ft));var zt=yt.getDerivedStateFromProps;(Mt=typeof zt=="function"||typeof Bt.getSnapshotBeforeUpdate=="function")||typeof Bt.UNSAFE_componentWillReceiveProps!="function"&&typeof Bt.componentWillReceiveProps!="function"||(Dt!==Nt||jt!==Ft)&&Hi(Et,Bt,Ct,Ft),jh=!1,jt=Et.memoizedState,Bt.state=jt,qh(Et,Ct,Bt,$t);var Vt=Et.memoizedState;Dt!==Nt||jt!==Vt||Wf.current||jh?(typeof zt=="function"&&(Di(Et,yt,zt,Ct),Vt=Et.memoizedState),(kt=jh||Fi(Et,yt,kt,Ct,jt,Vt,Ft)||!1)?(Mt||typeof Bt.UNSAFE_componentWillUpdate!="function"&&typeof Bt.componentWillUpdate!="function"||(typeof Bt.componentWillUpdate=="function"&&Bt.componentWillUpdate(Ct,Vt,Ft),typeof Bt.UNSAFE_componentWillUpdate=="function"&&Bt.UNSAFE_componentWillUpdate(Ct,Vt,Ft)),typeof Bt.componentDidUpdate=="function"&&(Et.flags|=4),typeof Bt.getSnapshotBeforeUpdate=="function"&&(Et.flags|=1024)):(typeof Bt.componentDidUpdate!="function"||Dt===ht.memoizedProps&&jt===ht.memoizedState||(Et.flags|=4),typeof Bt.getSnapshotBeforeUpdate!="function"||Dt===ht.memoizedProps&&jt===ht.memoizedState||(Et.flags|=1024),Et.memoizedProps=Ct,Et.memoizedState=Vt),Bt.props=Ct,Bt.state=Vt,Bt.context=Ft,Ct=kt):(typeof Bt.componentDidUpdate!="function"||Dt===ht.memoizedProps&&jt===ht.memoizedState||(Et.flags|=4),typeof Bt.getSnapshotBeforeUpdate!="function"||Dt===ht.memoizedProps&&jt===ht.memoizedState||(Et.flags|=1024),Ct=!1)}return jj(ht,Et,yt,Ct,At,$t)}function jj(ht,Et,yt,Ct,$t,At){gj(ht,Et);var Bt=(Et.flags&128)!==0;if(!Ct&&!Bt)return $t&&dg(Et,yt,!1),Zi(ht,Et,At);Ct=Et.stateNode,Wi.current=Et;var Dt=Bt&&typeof yt.getDerivedStateFromError!="function"?null:Ct.render();return Et.flags|=1,ht!==null&&Bt?(Et.child=Ug(Et,ht.child,null,At),Et.child=Ug(Et,null,Dt,At)):Xi(ht,Et,Dt,At),Et.memoizedState=Ct.state,$t&&dg(Et,yt,!0),Et.child}function kj(ht){var Et=ht.stateNode;Et.pendingContext?ag(ht,Et.pendingContext,Et.pendingContext!==Et.context):Et.context&&ag(ht,Et.context,!1),yh(ht,Et.containerInfo)}function lj(ht,Et,yt,Ct,$t){return Ig(),Jg($t),Et.flags|=256,Xi(ht,Et,yt,Ct),Et.child}var mj={dehydrated:null,treeContext:null,retryLane:0};function nj(ht){return{baseLanes:ht,cachePool:null,transitions:null}}function oj(ht,Et,yt){var Ct=Et.pendingProps,$t=L$1.current,At=!1,Bt=(Et.flags&128)!==0,Dt;if((Dt=Bt)||(Dt=ht!==null&&ht.memoizedState===null?!1:($t&2)!==0),Dt?(At=!0,Et.flags&=-129):(ht===null||ht.memoizedState!==null)&&($t|=1),G$1(L$1,$t&1),ht===null)return Eg(Et),ht=Et.memoizedState,ht!==null&&(ht=ht.dehydrated,ht!==null)?(Et.mode&1?ht.data==="$!"?Et.lanes=8:Et.lanes=1073741824:Et.lanes=1,null):(Bt=Ct.children,ht=Ct.fallback,At?(Ct=Et.mode,At=Et.child,Bt={mode:"hidden",children:Bt},!(Ct&1)&&At!==null?(At.childLanes=0,At.pendingProps=Bt):At=pj(Bt,Ct,0,null),ht=Tg(ht,Ct,yt,null),At.return=Et,ht.return=Et,At.sibling=ht,Et.child=At,Et.child.memoizedState=nj(yt),Et.memoizedState=mj,ht):qj(Et,Bt));if($t=ht.memoizedState,$t!==null&&(Dt=$t.dehydrated,Dt!==null))return rj(ht,Et,Bt,Ct,Dt,$t,yt);if(At){At=Ct.fallback,Bt=Et.mode,$t=ht.child,Dt=$t.sibling;var Ft={mode:"hidden",children:Ct.children};return!(Bt&1)&&Et.child!==$t?(Ct=Et.child,Ct.childLanes=0,Ct.pendingProps=Ft,Et.deletions=null):(Ct=Pg($t,Ft),Ct.subtreeFlags=$t.subtreeFlags&14680064),Dt!==null?At=Pg(Dt,At):(At=Tg(At,Bt,yt,null),At.flags|=2),At.return=Et,Ct.return=Et,Ct.sibling=At,Et.child=Ct,Ct=At,At=Et.child,Bt=ht.child.memoizedState,Bt=Bt===null?nj(yt):{baseLanes:Bt.baseLanes|yt,cachePool:null,transitions:Bt.transitions},At.memoizedState=Bt,At.childLanes=ht.childLanes&~yt,Et.memoizedState=mj,Ct}return At=ht.child,ht=At.sibling,Ct=Pg(At,{mode:"visible",children:Ct.children}),!(Et.mode&1)&&(Ct.lanes=yt),Ct.return=Et,Ct.sibling=null,ht!==null&&(yt=Et.deletions,yt===null?(Et.deletions=[ht],Et.flags|=16):yt.push(ht)),Et.child=Ct,Et.memoizedState=null,Ct}function qj(ht,Et){return Et=pj({mode:"visible",children:Et},ht.mode,0,null),Et.return=ht,ht.child=Et}function sj(ht,Et,yt,Ct){return Ct!==null&&Jg(Ct),Ug(Et,ht.child,null,yt),ht=qj(Et,Et.pendingProps.children),ht.flags|=2,Et.memoizedState=null,ht}function rj(ht,Et,yt,Ct,$t,At,Bt){if(yt)return Et.flags&256?(Et.flags&=-257,Ct=Ki(Error(p$d(422))),sj(ht,Et,Bt,Ct)):Et.memoizedState!==null?(Et.child=ht.child,Et.flags|=128,null):(At=Ct.fallback,$t=Et.mode,Ct=pj({mode:"visible",children:Ct.children},$t,0,null),At=Tg(At,$t,Bt,null),At.flags|=2,Ct.return=Et,At.return=Et,Ct.sibling=At,Et.child=Ct,Et.mode&1&&Ug(Et,ht.child,null,Bt),Et.child.memoizedState=nj(Bt),Et.memoizedState=mj,At);if(!(Et.mode&1))return sj(ht,Et,Bt,null);if($t.data==="$!"){if(Ct=$t.nextSibling&&$t.nextSibling.dataset,Ct)var Dt=Ct.dgst;return Ct=Dt,At=Error(p$d(419)),Ct=Ki(At,Ct,void 0),sj(ht,Et,Bt,Ct)}if(Dt=(Bt&ht.childLanes)!==0,dh$1||Dt){if(Ct=Q$2,Ct!==null){switch(Bt&-Bt){case 4:$t=2;break;case 16:$t=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:$t=32;break;case 536870912:$t=268435456;break;default:$t=0}$t=$t&(Ct.suspendedLanes|Bt)?0:$t,$t!==0&&$t!==At.retryLane&&(At.retryLane=$t,ih(ht,$t),gi(Ct,ht,$t,-1))}return tj(),Ct=Ki(Error(p$d(421))),sj(ht,Et,Bt,Ct)}return $t.data==="$?"?(Et.flags|=128,Et.child=ht.child,Et=uj.bind(null,ht),$t._reactRetry=Et,null):(ht=At.treeContext,yg=Lf($t.nextSibling),xg=Et,I$7=!0,zg=null,ht!==null&&(og[pg++]=rg,og[pg++]=sg$1,og[pg++]=qg,rg=ht.id,sg$1=ht.overflow,qg=Et),Et=qj(Et,Ct.children),Et.flags|=4096,Et)}function vj(ht,Et,yt){ht.lanes|=Et;var Ct=ht.alternate;Ct!==null&&(Ct.lanes|=Et),bh(ht.return,Et,yt)}function wj(ht,Et,yt,Ct,$t){var At=ht.memoizedState;At===null?ht.memoizedState={isBackwards:Et,rendering:null,renderingStartTime:0,last:Ct,tail:yt,tailMode:$t}:(At.isBackwards=Et,At.rendering=null,At.renderingStartTime=0,At.last=Ct,At.tail=yt,At.tailMode=$t)}function xj(ht,Et,yt){var Ct=Et.pendingProps,$t=Ct.revealOrder,At=Ct.tail;if(Xi(ht,Et,Ct.children,yt),Ct=L$1.current,Ct&2)Ct=Ct&1|2,Et.flags|=128;else{if(ht!==null&&ht.flags&128)e:for(ht=Et.child;ht!==null;){if(ht.tag===13)ht.memoizedState!==null&&vj(ht,yt,Et);else if(ht.tag===19)vj(ht,yt,Et);else if(ht.child!==null){ht.child.return=ht,ht=ht.child;continue}if(ht===Et)break e;for(;ht.sibling===null;){if(ht.return===null||ht.return===Et)break e;ht=ht.return}ht.sibling.return=ht.return,ht=ht.sibling}Ct&=1}if(G$1(L$1,Ct),!(Et.mode&1))Et.memoizedState=null;else switch($t){case"forwards":for(yt=Et.child,$t=null;yt!==null;)ht=yt.alternate,ht!==null&&Ch$1(ht)===null&&($t=yt),yt=yt.sibling;yt=$t,yt===null?($t=Et.child,Et.child=null):($t=yt.sibling,yt.sibling=null),wj(Et,!1,$t,yt,At);break;case"backwards":for(yt=null,$t=Et.child,Et.child=null;$t!==null;){if(ht=$t.alternate,ht!==null&&Ch$1(ht)===null){Et.child=$t;break}ht=$t.sibling,$t.sibling=yt,yt=$t,$t=ht}wj(Et,!0,yt,null,At);break;case"together":wj(Et,!1,null,null,void 0);break;default:Et.memoizedState=null}return Et.child}function ij(ht,Et){!(Et.mode&1)&&ht!==null&&(ht.alternate=null,Et.alternate=null,Et.flags|=2)}function Zi(ht,Et,yt){if(ht!==null&&(Et.dependencies=ht.dependencies),rh$1|=Et.lanes,!(yt&Et.childLanes))return null;if(ht!==null&&Et.child!==ht.child)throw Error(p$d(153));if(Et.child!==null){for(ht=Et.child,yt=Pg(ht,ht.pendingProps),Et.child=yt,yt.return=Et;ht.sibling!==null;)ht=ht.sibling,yt=yt.sibling=Pg(ht,ht.pendingProps),yt.return=Et;yt.sibling=null}return Et.child}function yj(ht,Et,yt){switch(Et.tag){case 3:kj(Et),Ig();break;case 5:Ah(Et);break;case 1:Zf(Et.type)&&cg(Et);break;case 4:yh(Et,Et.stateNode.containerInfo);break;case 10:var Ct=Et.type._context,$t=Et.memoizedProps.value;G$1(Wg,Ct._currentValue),Ct._currentValue=$t;break;case 13:if(Ct=Et.memoizedState,Ct!==null)return Ct.dehydrated!==null?(G$1(L$1,L$1.current&1),Et.flags|=128,null):yt&Et.child.childLanes?oj(ht,Et,yt):(G$1(L$1,L$1.current&1),ht=Zi(ht,Et,yt),ht!==null?ht.sibling:null);G$1(L$1,L$1.current&1);break;case 19:if(Ct=(yt&Et.childLanes)!==0,ht.flags&128){if(Ct)return xj(ht,Et,yt);Et.flags|=128}if($t=Et.memoizedState,$t!==null&&($t.rendering=null,$t.tail=null,$t.lastEffect=null),G$1(L$1,L$1.current),Ct)break;return null;case 22:case 23:return Et.lanes=0,dj(ht,Et,yt)}return Zi(ht,Et,yt)}var zj,Aj,Bj,Cj;zj=function(ht,Et){for(var yt=Et.child;yt!==null;){if(yt.tag===5||yt.tag===6)ht.appendChild(yt.stateNode);else if(yt.tag!==4&&yt.child!==null){yt.child.return=yt,yt=yt.child;continue}if(yt===Et)break;for(;yt.sibling===null;){if(yt.return===null||yt.return===Et)return;yt=yt.return}yt.sibling.return=yt.return,yt=yt.sibling}};Aj=function(){};Bj=function(ht,Et,yt,Ct){var $t=ht.memoizedProps;if($t!==Ct){ht=Et.stateNode,xh$1(uh.current);var At=null;switch(yt){case"input":$t=Ya(ht,$t),Ct=Ya(ht,Ct),At=[];break;case"select":$t=A$2({},$t,{value:void 0}),Ct=A$2({},Ct,{value:void 0}),At=[];break;case"textarea":$t=gb(ht,$t),Ct=gb(ht,Ct),At=[];break;default:typeof $t.onClick!="function"&&typeof Ct.onClick=="function"&&(ht.onclick=Bf)}ub(yt,Ct);var Bt;yt=null;for(kt in $t)if(!Ct.hasOwnProperty(kt)&&$t.hasOwnProperty(kt)&&$t[kt]!=null)if(kt==="style"){var Dt=$t[kt];for(Bt in Dt)Dt.hasOwnProperty(Bt)&&(yt||(yt={}),yt[Bt]="")}else kt!=="dangerouslySetInnerHTML"&&kt!=="children"&&kt!=="suppressContentEditableWarning"&&kt!=="suppressHydrationWarning"&&kt!=="autoFocus"&&(ea.hasOwnProperty(kt)?At||(At=[]):(At=At||[]).push(kt,null));for(kt in Ct){var Ft=Ct[kt];if(Dt=$t!=null?$t[kt]:void 0,Ct.hasOwnProperty(kt)&&Ft!==Dt&&(Ft!=null||Dt!=null))if(kt==="style")if(Dt){for(Bt in Dt)!Dt.hasOwnProperty(Bt)||Ft&&Ft.hasOwnProperty(Bt)||(yt||(yt={}),yt[Bt]="");for(Bt in Ft)Ft.hasOwnProperty(Bt)&&Dt[Bt]!==Ft[Bt]&&(yt||(yt={}),yt[Bt]=Ft[Bt])}else yt||(At||(At=[]),At.push(kt,yt)),yt=Ft;else kt==="dangerouslySetInnerHTML"?(Ft=Ft?Ft.__html:void 0,Dt=Dt?Dt.__html:void 0,Ft!=null&&Dt!==Ft&&(At=At||[]).push(kt,Ft)):kt==="children"?typeof Ft!="string"&&typeof Ft!="number"||(At=At||[]).push(kt,""+Ft):kt!=="suppressContentEditableWarning"&&kt!=="suppressHydrationWarning"&&(ea.hasOwnProperty(kt)?(Ft!=null&&kt==="onScroll"&&D$4("scroll",ht),At||Dt===Ft||(At=[])):(At=At||[]).push(kt,Ft))}yt&&(At=At||[]).push("style",yt);var kt=At;(Et.updateQueue=kt)&&(Et.flags|=4)}};Cj=function(ht,Et,yt,Ct){yt!==Ct&&(Et.flags|=4)};function Dj(ht,Et){if(!I$7)switch(ht.tailMode){case"hidden":Et=ht.tail;for(var yt=null;Et!==null;)Et.alternate!==null&&(yt=Et),Et=Et.sibling;yt===null?ht.tail=null:yt.sibling=null;break;case"collapsed":yt=ht.tail;for(var Ct=null;yt!==null;)yt.alternate!==null&&(Ct=yt),yt=yt.sibling;Ct===null?Et||ht.tail===null?ht.tail=null:ht.tail.sibling=null:Ct.sibling=null}}function S$8(ht){var Et=ht.alternate!==null&&ht.alternate.child===ht.child,yt=0,Ct=0;if(Et)for(var $t=ht.child;$t!==null;)yt|=$t.lanes|$t.childLanes,Ct|=$t.subtreeFlags&14680064,Ct|=$t.flags&14680064,$t.return=ht,$t=$t.sibling;else for($t=ht.child;$t!==null;)yt|=$t.lanes|$t.childLanes,Ct|=$t.subtreeFlags,Ct|=$t.flags,$t.return=ht,$t=$t.sibling;return ht.subtreeFlags|=Ct,ht.childLanes=yt,Et}function Ej(ht,Et,yt){var Ct=Et.pendingProps;switch(wg(Et),Et.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return S$8(Et),null;case 1:return Zf(Et.type)&&$f(),S$8(Et),null;case 3:return Ct=Et.stateNode,zh$1(),E$2(Wf),E$2(H$2),Eh(),Ct.pendingContext&&(Ct.context=Ct.pendingContext,Ct.pendingContext=null),(ht===null||ht.child===null)&&(Gg(Et)?Et.flags|=4:ht===null||ht.memoizedState.isDehydrated&&!(Et.flags&256)||(Et.flags|=1024,zg!==null&&(Fj(zg),zg=null))),Aj(ht,Et),S$8(Et),null;case 5:Bh(Et);var $t=xh$1(wh.current);if(yt=Et.type,ht!==null&&Et.stateNode!=null)Bj(ht,Et,yt,Ct,$t),ht.ref!==Et.ref&&(Et.flags|=512,Et.flags|=2097152);else{if(!Ct){if(Et.stateNode===null)throw Error(p$d(166));return S$8(Et),null}if(ht=xh$1(uh.current),Gg(Et)){Ct=Et.stateNode,yt=Et.type;var At=Et.memoizedProps;switch(Ct[Of]=Et,Ct[Pf]=At,ht=(Et.mode&1)!==0,yt){case"dialog":D$4("cancel",Ct),D$4("close",Ct);break;case"iframe":case"object":case"embed":D$4("load",Ct);break;case"video":case"audio":for($t=0;$t<lf.length;$t++)D$4(lf[$t],Ct);break;case"source":D$4("error",Ct);break;case"img":case"image":case"link":D$4("error",Ct),D$4("load",Ct);break;case"details":D$4("toggle",Ct);break;case"input":Za(Ct,At),D$4("invalid",Ct);break;case"select":Ct._wrapperState={wasMultiple:!!At.multiple},D$4("invalid",Ct);break;case"textarea":hb(Ct,At),D$4("invalid",Ct)}ub(yt,At),$t=null;for(var Bt in At)if(At.hasOwnProperty(Bt)){var Dt=At[Bt];Bt==="children"?typeof Dt=="string"?Ct.textContent!==Dt&&(At.suppressHydrationWarning!==!0&&Af(Ct.textContent,Dt,ht),$t=["children",Dt]):typeof Dt=="number"&&Ct.textContent!==""+Dt&&(At.suppressHydrationWarning!==!0&&Af(Ct.textContent,Dt,ht),$t=["children",""+Dt]):ea.hasOwnProperty(Bt)&&Dt!=null&&Bt==="onScroll"&&D$4("scroll",Ct)}switch(yt){case"input":Va(Ct),db(Ct,At,!0);break;case"textarea":Va(Ct),jb(Ct);break;case"select":case"option":break;default:typeof At.onClick=="function"&&(Ct.onclick=Bf)}Ct=$t,Et.updateQueue=Ct,Ct!==null&&(Et.flags|=4)}else{Bt=$t.nodeType===9?$t:$t.ownerDocument,ht==="http://www.w3.org/1999/xhtml"&&(ht=kb(yt)),ht==="http://www.w3.org/1999/xhtml"?yt==="script"?(ht=Bt.createElement("div"),ht.innerHTML="<script><\/script>",ht=ht.removeChild(ht.firstChild)):typeof Ct.is=="string"?ht=Bt.createElement(yt,{is:Ct.is}):(ht=Bt.createElement(yt),yt==="select"&&(Bt=ht,Ct.multiple?Bt.multiple=!0:Ct.size&&(Bt.size=Ct.size))):ht=Bt.createElementNS(ht,yt),ht[Of]=Et,ht[Pf]=Ct,zj(ht,Et,!1,!1),Et.stateNode=ht;e:{switch(Bt=vb(yt,Ct),yt){case"dialog":D$4("cancel",ht),D$4("close",ht),$t=Ct;break;case"iframe":case"object":case"embed":D$4("load",ht),$t=Ct;break;case"video":case"audio":for($t=0;$t<lf.length;$t++)D$4(lf[$t],ht);$t=Ct;break;case"source":D$4("error",ht),$t=Ct;break;case"img":case"image":case"link":D$4("error",ht),D$4("load",ht),$t=Ct;break;case"details":D$4("toggle",ht),$t=Ct;break;case"input":Za(ht,Ct),$t=Ya(ht,Ct),D$4("invalid",ht);break;case"option":$t=Ct;break;case"select":ht._wrapperState={wasMultiple:!!Ct.multiple},$t=A$2({},Ct,{value:void 0}),D$4("invalid",ht);break;case"textarea":hb(ht,Ct),$t=gb(ht,Ct),D$4("invalid",ht);break;default:$t=Ct}ub(yt,$t),Dt=$t;for(At in Dt)if(Dt.hasOwnProperty(At)){var Ft=Dt[At];At==="style"?sb(ht,Ft):At==="dangerouslySetInnerHTML"?(Ft=Ft?Ft.__html:void 0,Ft!=null&&nb$1(ht,Ft)):At==="children"?typeof Ft=="string"?(yt!=="textarea"||Ft!=="")&&ob(ht,Ft):typeof Ft=="number"&&ob(ht,""+Ft):At!=="suppressContentEditableWarning"&&At!=="suppressHydrationWarning"&&At!=="autoFocus"&&(ea.hasOwnProperty(At)?Ft!=null&&At==="onScroll"&&D$4("scroll",ht):Ft!=null&&ta$1(ht,At,Ft,Bt))}switch(yt){case"input":Va(ht),db(ht,Ct,!1);break;case"textarea":Va(ht),jb(ht);break;case"option":Ct.value!=null&&ht.setAttribute("value",""+Sa(Ct.value));break;case"select":ht.multiple=!!Ct.multiple,At=Ct.value,At!=null?fb(ht,!!Ct.multiple,At,!1):Ct.defaultValue!=null&&fb(ht,!!Ct.multiple,Ct.defaultValue,!0);break;default:typeof $t.onClick=="function"&&(ht.onclick=Bf)}switch(yt){case"button":case"input":case"select":case"textarea":Ct=!!Ct.autoFocus;break e;case"img":Ct=!0;break e;default:Ct=!1}}Ct&&(Et.flags|=4)}Et.ref!==null&&(Et.flags|=512,Et.flags|=2097152)}return S$8(Et),null;case 6:if(ht&&Et.stateNode!=null)Cj(ht,Et,ht.memoizedProps,Ct);else{if(typeof Ct!="string"&&Et.stateNode===null)throw Error(p$d(166));if(yt=xh$1(wh.current),xh$1(uh.current),Gg(Et)){if(Ct=Et.stateNode,yt=Et.memoizedProps,Ct[Of]=Et,(At=Ct.nodeValue!==yt)&&(ht=xg,ht!==null))switch(ht.tag){case 3:Af(Ct.nodeValue,yt,(ht.mode&1)!==0);break;case 5:ht.memoizedProps.suppressHydrationWarning!==!0&&Af(Ct.nodeValue,yt,(ht.mode&1)!==0)}At&&(Et.flags|=4)}else Ct=(yt.nodeType===9?yt:yt.ownerDocument).createTextNode(Ct),Ct[Of]=Et,Et.stateNode=Ct}return S$8(Et),null;case 13:if(E$2(L$1),Ct=Et.memoizedState,ht===null||ht.memoizedState!==null&&ht.memoizedState.dehydrated!==null){if(I$7&&yg!==null&&Et.mode&1&&!(Et.flags&128))Hg(),Ig(),Et.flags|=98560,At=!1;else if(At=Gg(Et),Ct!==null&&Ct.dehydrated!==null){if(ht===null){if(!At)throw Error(p$d(318));if(At=Et.memoizedState,At=At!==null?At.dehydrated:null,!At)throw Error(p$d(317));At[Of]=Et}else Ig(),!(Et.flags&128)&&(Et.memoizedState=null),Et.flags|=4;S$8(Et),At=!1}else zg!==null&&(Fj(zg),zg=null),At=!0;if(!At)return Et.flags&65536?Et:null}return Et.flags&128?(Et.lanes=yt,Et):(Ct=Ct!==null,Ct!==(ht!==null&&ht.memoizedState!==null)&&Ct&&(Et.child.flags|=8192,Et.mode&1&&(ht===null||L$1.current&1?T$5===0&&(T$5=3):tj())),Et.updateQueue!==null&&(Et.flags|=4),S$8(Et),null);case 4:return zh$1(),Aj(ht,Et),ht===null&&sf(Et.stateNode.containerInfo),S$8(Et),null;case 10:return ah(Et.type._context),S$8(Et),null;case 17:return Zf(Et.type)&&$f(),S$8(Et),null;case 19:if(E$2(L$1),At=Et.memoizedState,At===null)return S$8(Et),null;if(Ct=(Et.flags&128)!==0,Bt=At.rendering,Bt===null)if(Ct)Dj(At,!1);else{if(T$5!==0||ht!==null&&ht.flags&128)for(ht=Et.child;ht!==null;){if(Bt=Ch$1(ht),Bt!==null){for(Et.flags|=128,Dj(At,!1),Ct=Bt.updateQueue,Ct!==null&&(Et.updateQueue=Ct,Et.flags|=4),Et.subtreeFlags=0,Ct=yt,yt=Et.child;yt!==null;)At=yt,ht=Ct,At.flags&=14680066,Bt=At.alternate,Bt===null?(At.childLanes=0,At.lanes=ht,At.child=null,At.subtreeFlags=0,At.memoizedProps=null,At.memoizedState=null,At.updateQueue=null,At.dependencies=null,At.stateNode=null):(At.childLanes=Bt.childLanes,At.lanes=Bt.lanes,At.child=Bt.child,At.subtreeFlags=0,At.deletions=null,At.memoizedProps=Bt.memoizedProps,At.memoizedState=Bt.memoizedState,At.updateQueue=Bt.updateQueue,At.type=Bt.type,ht=Bt.dependencies,At.dependencies=ht===null?null:{lanes:ht.lanes,firstContext:ht.firstContext}),yt=yt.sibling;return G$1(L$1,L$1.current&1|2),Et.child}ht=ht.sibling}At.tail!==null&&B$2()>Gj&&(Et.flags|=128,Ct=!0,Dj(At,!1),Et.lanes=4194304)}else{if(!Ct)if(ht=Ch$1(Bt),ht!==null){if(Et.flags|=128,Ct=!0,yt=ht.updateQueue,yt!==null&&(Et.updateQueue=yt,Et.flags|=4),Dj(At,!0),At.tail===null&&At.tailMode==="hidden"&&!Bt.alternate&&!I$7)return S$8(Et),null}else 2*B$2()-At.renderingStartTime>Gj&&yt!==1073741824&&(Et.flags|=128,Ct=!0,Dj(At,!1),Et.lanes=4194304);At.isBackwards?(Bt.sibling=Et.child,Et.child=Bt):(yt=At.last,yt!==null?yt.sibling=Bt:Et.child=Bt,At.last=Bt)}return At.tail!==null?(Et=At.tail,At.rendering=Et,At.tail=Et.sibling,At.renderingStartTime=B$2(),Et.sibling=null,yt=L$1.current,G$1(L$1,Ct?yt&1|2:yt&1),Et):(S$8(Et),null);case 22:case 23:return Hj(),Ct=Et.memoizedState!==null,ht!==null&&ht.memoizedState!==null!==Ct&&(Et.flags|=8192),Ct&&Et.mode&1?fj&1073741824&&(S$8(Et),Et.subtreeFlags&6&&(Et.flags|=8192)):S$8(Et),null;case 24:return null;case 25:return null}throw Error(p$d(156,Et.tag))}function Ij(ht,Et){switch(wg(Et),Et.tag){case 1:return Zf(Et.type)&&$f(),ht=Et.flags,ht&65536?(Et.flags=ht&-65537|128,Et):null;case 3:return zh$1(),E$2(Wf),E$2(H$2),Eh(),ht=Et.flags,ht&65536&&!(ht&128)?(Et.flags=ht&-65537|128,Et):null;case 5:return Bh(Et),null;case 13:if(E$2(L$1),ht=Et.memoizedState,ht!==null&&ht.dehydrated!==null){if(Et.alternate===null)throw Error(p$d(340));Ig()}return ht=Et.flags,ht&65536?(Et.flags=ht&-65537|128,Et):null;case 19:return E$2(L$1),null;case 4:return zh$1(),null;case 10:return ah(Et.type._context),null;case 22:case 23:return Hj(),null;case 24:return null;default:return null}}var Jj=!1,U$3=!1,Kj=typeof WeakSet=="function"?WeakSet:Set,V=null;function Lj(ht,Et){var yt=ht.ref;if(yt!==null)if(typeof yt=="function")try{yt(null)}catch(Ct){W$6(ht,Et,Ct)}else yt.current=null}function Mj(ht,Et,yt){try{yt()}catch(Ct){W$6(ht,Et,Ct)}}var Nj=!1;function Oj(ht,Et){if(Cf=dd,ht=Me$1(),Ne$2(ht)){if("selectionStart"in ht)var yt={start:ht.selectionStart,end:ht.selectionEnd};else e:{yt=(yt=ht.ownerDocument)&&yt.defaultView||window;var Ct=yt.getSelection&&yt.getSelection();if(Ct&&Ct.rangeCount!==0){yt=Ct.anchorNode;var $t=Ct.anchorOffset,At=Ct.focusNode;Ct=Ct.focusOffset;try{yt.nodeType,At.nodeType}catch{yt=null;break e}var Bt=0,Dt=-1,Ft=-1,kt=0,Mt=0,Nt=ht,jt=null;t:for(;;){for(var zt;Nt!==yt||$t!==0&&Nt.nodeType!==3||(Dt=Bt+$t),Nt!==At||Ct!==0&&Nt.nodeType!==3||(Ft=Bt+Ct),Nt.nodeType===3&&(Bt+=Nt.nodeValue.length),(zt=Nt.firstChild)!==null;)jt=Nt,Nt=zt;for(;;){if(Nt===ht)break t;if(jt===yt&&++kt===$t&&(Dt=Bt),jt===At&&++Mt===Ct&&(Ft=Bt),(zt=Nt.nextSibling)!==null)break;Nt=jt,jt=Nt.parentNode}Nt=zt}yt=Dt===-1||Ft===-1?null:{start:Dt,end:Ft}}else yt=null}yt=yt||{start:0,end:0}}else yt=null;for(Df={focusedElem:ht,selectionRange:yt},dd=!1,V=Et;V!==null;)if(Et=V,ht=Et.child,(Et.subtreeFlags&1028)!==0&&ht!==null)ht.return=Et,V=ht;else for(;V!==null;){Et=V;try{var Vt=Et.alternate;if(Et.flags&1024)switch(Et.tag){case 0:case 11:case 15:break;case 1:if(Vt!==null){var Kt=Vt.memoizedProps,Xt=Vt.memoizedState,Qt=Et.stateNode,Zt=Qt.getSnapshotBeforeUpdate(Et.elementType===Et.type?Kt:Ci(Et.type,Kt),Xt);Qt.__reactInternalSnapshotBeforeUpdate=Zt}break;case 3:var dr=Et.stateNode.containerInfo;dr.nodeType===1?dr.textContent="":dr.nodeType===9&&dr.documentElement&&dr.removeChild(dr.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p$d(163))}}catch(cr){W$6(Et,Et.return,cr)}if(ht=Et.sibling,ht!==null){ht.return=Et.return,V=ht;break}V=Et.return}return Vt=Nj,Nj=!1,Vt}function Pj(ht,Et,yt){var Ct=Et.updateQueue;if(Ct=Ct!==null?Ct.lastEffect:null,Ct!==null){var $t=Ct=Ct.next;do{if(($t.tag&ht)===ht){var At=$t.destroy;$t.destroy=void 0,At!==void 0&&Mj(Et,yt,At)}$t=$t.next}while($t!==Ct)}}function Qj(ht,Et){if(Et=Et.updateQueue,Et=Et!==null?Et.lastEffect:null,Et!==null){var yt=Et=Et.next;do{if((yt.tag&ht)===ht){var Ct=yt.create;yt.destroy=Ct()}yt=yt.next}while(yt!==Et)}}function Rj(ht){var Et=ht.ref;if(Et!==null){var yt=ht.stateNode;switch(ht.tag){case 5:ht=yt;break;default:ht=yt}typeof Et=="function"?Et(ht):Et.current=ht}}function Sj(ht){var Et=ht.alternate;Et!==null&&(ht.alternate=null,Sj(Et)),ht.child=null,ht.deletions=null,ht.sibling=null,ht.tag===5&&(Et=ht.stateNode,Et!==null&&(delete Et[Of],delete Et[Pf],delete Et[of],delete Et[Qf],delete Et[Rf])),ht.stateNode=null,ht.return=null,ht.dependencies=null,ht.memoizedProps=null,ht.memoizedState=null,ht.pendingProps=null,ht.stateNode=null,ht.updateQueue=null}function Tj(ht){return ht.tag===5||ht.tag===3||ht.tag===4}function Uj(ht){e:for(;;){for(;ht.sibling===null;){if(ht.return===null||Tj(ht.return))return null;ht=ht.return}for(ht.sibling.return=ht.return,ht=ht.sibling;ht.tag!==5&&ht.tag!==6&&ht.tag!==18;){if(ht.flags&2||ht.child===null||ht.tag===4)continue e;ht.child.return=ht,ht=ht.child}if(!(ht.flags&2))return ht.stateNode}}function Vj(ht,Et,yt){var Ct=ht.tag;if(Ct===5||Ct===6)ht=ht.stateNode,Et?yt.nodeType===8?yt.parentNode.insertBefore(ht,Et):yt.insertBefore(ht,Et):(yt.nodeType===8?(Et=yt.parentNode,Et.insertBefore(ht,yt)):(Et=yt,Et.appendChild(ht)),yt=yt._reactRootContainer,yt!=null||Et.onclick!==null||(Et.onclick=Bf));else if(Ct!==4&&(ht=ht.child,ht!==null))for(Vj(ht,Et,yt),ht=ht.sibling;ht!==null;)Vj(ht,Et,yt),ht=ht.sibling}function Wj(ht,Et,yt){var Ct=ht.tag;if(Ct===5||Ct===6)ht=ht.stateNode,Et?yt.insertBefore(ht,Et):yt.appendChild(ht);else if(Ct!==4&&(ht=ht.child,ht!==null))for(Wj(ht,Et,yt),ht=ht.sibling;ht!==null;)Wj(ht,Et,yt),ht=ht.sibling}var X$1=null,Xj=!1;function Yj(ht,Et,yt){for(yt=yt.child;yt!==null;)Zj(ht,Et,yt),yt=yt.sibling}function Zj(ht,Et,yt){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,yt)}catch{}switch(yt.tag){case 5:U$3||Lj(yt,Et);case 6:var Ct=X$1,$t=Xj;X$1=null,Yj(ht,Et,yt),X$1=Ct,Xj=$t,X$1!==null&&(Xj?(ht=X$1,yt=yt.stateNode,ht.nodeType===8?ht.parentNode.removeChild(yt):ht.removeChild(yt)):X$1.removeChild(yt.stateNode));break;case 18:X$1!==null&&(Xj?(ht=X$1,yt=yt.stateNode,ht.nodeType===8?Kf(ht.parentNode,yt):ht.nodeType===1&&Kf(ht,yt),bd(ht)):Kf(X$1,yt.stateNode));break;case 4:Ct=X$1,$t=Xj,X$1=yt.stateNode.containerInfo,Xj=!0,Yj(ht,Et,yt),X$1=Ct,Xj=$t;break;case 0:case 11:case 14:case 15:if(!U$3&&(Ct=yt.updateQueue,Ct!==null&&(Ct=Ct.lastEffect,Ct!==null))){$t=Ct=Ct.next;do{var At=$t,Bt=At.destroy;At=At.tag,Bt!==void 0&&(At&2||At&4)&&Mj(yt,Et,Bt),$t=$t.next}while($t!==Ct)}Yj(ht,Et,yt);break;case 1:if(!U$3&&(Lj(yt,Et),Ct=yt.stateNode,typeof Ct.componentWillUnmount=="function"))try{Ct.props=yt.memoizedProps,Ct.state=yt.memoizedState,Ct.componentWillUnmount()}catch(Dt){W$6(yt,Et,Dt)}Yj(ht,Et,yt);break;case 21:Yj(ht,Et,yt);break;case 22:yt.mode&1?(U$3=(Ct=U$3)||yt.memoizedState!==null,Yj(ht,Et,yt),U$3=Ct):Yj(ht,Et,yt);break;default:Yj(ht,Et,yt)}}function ak$1(ht){var Et=ht.updateQueue;if(Et!==null){ht.updateQueue=null;var yt=ht.stateNode;yt===null&&(yt=ht.stateNode=new Kj),Et.forEach(function(Ct){var $t=bk.bind(null,ht,Ct);yt.has(Ct)||(yt.add(Ct),Ct.then($t,$t))})}}function ck(ht,Et){var yt=Et.deletions;if(yt!==null)for(var Ct=0;Ct<yt.length;Ct++){var $t=yt[Ct];try{var At=ht,Bt=Et,Dt=Bt;e:for(;Dt!==null;){switch(Dt.tag){case 5:X$1=Dt.stateNode,Xj=!1;break e;case 3:X$1=Dt.stateNode.containerInfo,Xj=!0;break e;case 4:X$1=Dt.stateNode.containerInfo,Xj=!0;break e}Dt=Dt.return}if(X$1===null)throw Error(p$d(160));Zj(At,Bt,$t),X$1=null,Xj=!1;var Ft=$t.alternate;Ft!==null&&(Ft.return=null),$t.return=null}catch(kt){W$6($t,Et,kt)}}if(Et.subtreeFlags&12854)for(Et=Et.child;Et!==null;)dk(Et,ht),Et=Et.sibling}function dk(ht,Et){var yt=ht.alternate,Ct=ht.flags;switch(ht.tag){case 0:case 11:case 14:case 15:if(ck(Et,ht),ek(ht),Ct&4){try{Pj(3,ht,ht.return),Qj(3,ht)}catch(Kt){W$6(ht,ht.return,Kt)}try{Pj(5,ht,ht.return)}catch(Kt){W$6(ht,ht.return,Kt)}}break;case 1:ck(Et,ht),ek(ht),Ct&512&&yt!==null&&Lj(yt,yt.return);break;case 5:if(ck(Et,ht),ek(ht),Ct&512&&yt!==null&&Lj(yt,yt.return),ht.flags&32){var $t=ht.stateNode;try{ob($t,"")}catch(Kt){W$6(ht,ht.return,Kt)}}if(Ct&4&&($t=ht.stateNode,$t!=null)){var At=ht.memoizedProps,Bt=yt!==null?yt.memoizedProps:At,Dt=ht.type,Ft=ht.updateQueue;if(ht.updateQueue=null,Ft!==null)try{Dt==="input"&&At.type==="radio"&&At.name!=null&&ab($t,At),vb(Dt,Bt);var kt=vb(Dt,At);for(Bt=0;Bt<Ft.length;Bt+=2){var Mt=Ft[Bt],Nt=Ft[Bt+1];Mt==="style"?sb($t,Nt):Mt==="dangerouslySetInnerHTML"?nb$1($t,Nt):Mt==="children"?ob($t,Nt):ta$1($t,Mt,Nt,kt)}switch(Dt){case"input":bb($t,At);break;case"textarea":ib($t,At);break;case"select":var jt=$t._wrapperState.wasMultiple;$t._wrapperState.wasMultiple=!!At.multiple;var zt=At.value;zt!=null?fb($t,!!At.multiple,zt,!1):jt!==!!At.multiple&&(At.defaultValue!=null?fb($t,!!At.multiple,At.defaultValue,!0):fb($t,!!At.multiple,At.multiple?[]:"",!1))}$t[Pf]=At}catch(Kt){W$6(ht,ht.return,Kt)}}break;case 6:if(ck(Et,ht),ek(ht),Ct&4){if(ht.stateNode===null)throw Error(p$d(162));$t=ht.stateNode,At=ht.memoizedProps;try{$t.nodeValue=At}catch(Kt){W$6(ht,ht.return,Kt)}}break;case 3:if(ck(Et,ht),ek(ht),Ct&4&&yt!==null&&yt.memoizedState.isDehydrated)try{bd(Et.containerInfo)}catch(Kt){W$6(ht,ht.return,Kt)}break;case 4:ck(Et,ht),ek(ht);break;case 13:ck(Et,ht),ek(ht),$t=ht.child,$t.flags&8192&&(At=$t.memoizedState!==null,$t.stateNode.isHidden=At,!At||$t.alternate!==null&&$t.alternate.memoizedState!==null||(fk=B$2())),Ct&4&&ak$1(ht);break;case 22:if(Mt=yt!==null&&yt.memoizedState!==null,ht.mode&1?(U$3=(kt=U$3)||Mt,ck(Et,ht),U$3=kt):ck(Et,ht),ek(ht),Ct&8192){if(kt=ht.memoizedState!==null,(ht.stateNode.isHidden=kt)&&!Mt&&ht.mode&1)for(V=ht,Mt=ht.child;Mt!==null;){for(Nt=V=Mt;V!==null;){switch(jt=V,zt=jt.child,jt.tag){case 0:case 11:case 14:case 15:Pj(4,jt,jt.return);break;case 1:Lj(jt,jt.return);var Vt=jt.stateNode;if(typeof Vt.componentWillUnmount=="function"){Ct=jt,yt=jt.return;try{Et=Ct,Vt.props=Et.memoizedProps,Vt.state=Et.memoizedState,Vt.componentWillUnmount()}catch(Kt){W$6(Ct,yt,Kt)}}break;case 5:Lj(jt,jt.return);break;case 22:if(jt.memoizedState!==null){gk(Nt);continue}}zt!==null?(zt.return=jt,V=zt):gk(Nt)}Mt=Mt.sibling}e:for(Mt=null,Nt=ht;;){if(Nt.tag===5){if(Mt===null){Mt=Nt;try{$t=Nt.stateNode,kt?(At=$t.style,typeof At.setProperty=="function"?At.setProperty("display","none","important"):At.display="none"):(Dt=Nt.stateNode,Ft=Nt.memoizedProps.style,Bt=Ft!=null&&Ft.hasOwnProperty("display")?Ft.display:null,Dt.style.display=rb("display",Bt))}catch(Kt){W$6(ht,ht.return,Kt)}}}else if(Nt.tag===6){if(Mt===null)try{Nt.stateNode.nodeValue=kt?"":Nt.memoizedProps}catch(Kt){W$6(ht,ht.return,Kt)}}else if((Nt.tag!==22&&Nt.tag!==23||Nt.memoizedState===null||Nt===ht)&&Nt.child!==null){Nt.child.return=Nt,Nt=Nt.child;continue}if(Nt===ht)break e;for(;Nt.sibling===null;){if(Nt.return===null||Nt.return===ht)break e;Mt===Nt&&(Mt=null),Nt=Nt.return}Mt===Nt&&(Mt=null),Nt.sibling.return=Nt.return,Nt=Nt.sibling}}break;case 19:ck(Et,ht),ek(ht),Ct&4&&ak$1(ht);break;case 21:break;default:ck(Et,ht),ek(ht)}}function ek(ht){var Et=ht.flags;if(Et&2){try{e:{for(var yt=ht.return;yt!==null;){if(Tj(yt)){var Ct=yt;break e}yt=yt.return}throw Error(p$d(160))}switch(Ct.tag){case 5:var $t=Ct.stateNode;Ct.flags&32&&(ob($t,""),Ct.flags&=-33);var At=Uj(ht);Wj(ht,At,$t);break;case 3:case 4:var Bt=Ct.stateNode.containerInfo,Dt=Uj(ht);Vj(ht,Dt,Bt);break;default:throw Error(p$d(161))}}catch(Ft){W$6(ht,ht.return,Ft)}ht.flags&=-3}Et&4096&&(ht.flags&=-4097)}function hk(ht,Et,yt){V=ht,ik(ht)}function ik(ht,Et,yt){for(var Ct=(ht.mode&1)!==0;V!==null;){var $t=V,At=$t.child;if($t.tag===22&&Ct){var Bt=$t.memoizedState!==null||Jj;if(!Bt){var Dt=$t.alternate,Ft=Dt!==null&&Dt.memoizedState!==null||U$3;Dt=Jj;var kt=U$3;if(Jj=Bt,(U$3=Ft)&&!kt)for(V=$t;V!==null;)Bt=V,Ft=Bt.child,Bt.tag===22&&Bt.memoizedState!==null?jk($t):Ft!==null?(Ft.return=Bt,V=Ft):jk($t);for(;At!==null;)V=At,ik(At),At=At.sibling;V=$t,Jj=Dt,U$3=kt}kk$1(ht)}else $t.subtreeFlags&8772&&At!==null?(At.return=$t,V=At):kk$1(ht)}}function kk$1(ht){for(;V!==null;){var Et=V;if(Et.flags&8772){var yt=Et.alternate;try{if(Et.flags&8772)switch(Et.tag){case 0:case 11:case 15:U$3||Qj(5,Et);break;case 1:var Ct=Et.stateNode;if(Et.flags&4&&!U$3)if(yt===null)Ct.componentDidMount();else{var $t=Et.elementType===Et.type?yt.memoizedProps:Ci(Et.type,yt.memoizedProps);Ct.componentDidUpdate($t,yt.memoizedState,Ct.__reactInternalSnapshotBeforeUpdate)}var At=Et.updateQueue;At!==null&&sh$2(Et,At,Ct);break;case 3:var Bt=Et.updateQueue;if(Bt!==null){if(yt=null,Et.child!==null)switch(Et.child.tag){case 5:yt=Et.child.stateNode;break;case 1:yt=Et.child.stateNode}sh$2(Et,Bt,yt)}break;case 5:var Dt=Et.stateNode;if(yt===null&&Et.flags&4){yt=Dt;var Ft=Et.memoizedProps;switch(Et.type){case"button":case"input":case"select":case"textarea":Ft.autoFocus&&yt.focus();break;case"img":Ft.src&&(yt.src=Ft.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(Et.memoizedState===null){var kt=Et.alternate;if(kt!==null){var Mt=kt.memoizedState;if(Mt!==null){var Nt=Mt.dehydrated;Nt!==null&&bd(Nt)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(p$d(163))}U$3||Et.flags&512&&Rj(Et)}catch(jt){W$6(Et,Et.return,jt)}}if(Et===ht){V=null;break}if(yt=Et.sibling,yt!==null){yt.return=Et.return,V=yt;break}V=Et.return}}function gk(ht){for(;V!==null;){var Et=V;if(Et===ht){V=null;break}var yt=Et.sibling;if(yt!==null){yt.return=Et.return,V=yt;break}V=Et.return}}function jk(ht){for(;V!==null;){var Et=V;try{switch(Et.tag){case 0:case 11:case 15:var yt=Et.return;try{Qj(4,Et)}catch(Ft){W$6(Et,yt,Ft)}break;case 1:var Ct=Et.stateNode;if(typeof Ct.componentDidMount=="function"){var $t=Et.return;try{Ct.componentDidMount()}catch(Ft){W$6(Et,$t,Ft)}}var At=Et.return;try{Rj(Et)}catch(Ft){W$6(Et,At,Ft)}break;case 5:var Bt=Et.return;try{Rj(Et)}catch(Ft){W$6(Et,Bt,Ft)}}}catch(Ft){W$6(Et,Et.return,Ft)}if(Et===ht){V=null;break}var Dt=Et.sibling;if(Dt!==null){Dt.return=Et.return,V=Dt;break}V=Et.return}}var lk=Math.ceil,mk$1=ua$1.ReactCurrentDispatcher,nk=ua$1.ReactCurrentOwner,ok=ua$1.ReactCurrentBatchConfig,K$5=0,Q$2=null,Y$1=null,Z$2=0,fj=0,ej=Uf(0),T$5=0,pk=null,rh$1=0,qk=0,rk=0,sk$1=null,tk$1=null,fk=0,Gj=1/0,uk$1=null,Oi=!1,Pi=null,Ri=null,vk=!1,wk=null,xk=0,yk=0,zk=null,Ak=-1,Bk=0;function R$3(){return K$5&6?B$2():Ak!==-1?Ak:Ak=B$2()}function yi$1(ht){return ht.mode&1?K$5&2&&Z$2!==0?Z$2&-Z$2:Kg.transition!==null?(Bk===0&&(Bk=yc()),Bk):(ht=C$2,ht!==0||(ht=window.event,ht=ht===void 0?16:jd(ht.type)),ht):1}function gi(ht,Et,yt,Ct){if(50<yk)throw yk=0,zk=null,Error(p$d(185));Ac(ht,yt,Ct),(!(K$5&2)||ht!==Q$2)&&(ht===Q$2&&(!(K$5&2)&&(qk|=yt),T$5===4&&Ck(ht,Z$2)),Dk(ht,Ct),yt===1&&K$5===0&&!(Et.mode&1)&&(Gj=B$2()+500,fg&&jg()))}function Dk(ht,Et){var yt=ht.callbackNode;wc(ht,Et);var Ct=uc(ht,ht===Q$2?Z$2:0);if(Ct===0)yt!==null&&bc$1(yt),ht.callbackNode=null,ht.callbackPriority=0;else if(Et=Ct&-Ct,ht.callbackPriority!==Et){if(yt!=null&&bc$1(yt),Et===1)ht.tag===0?ig$1(Ek.bind(null,ht)):hg(Ek.bind(null,ht)),Jf(function(){!(K$5&6)&&jg()}),yt=null;else{switch(Dc(Ct)){case 1:yt=fc;break;case 4:yt=gc;break;case 16:yt=hc;break;case 536870912:yt=jc;break;default:yt=hc}yt=Fk(yt,Gk.bind(null,ht))}ht.callbackPriority=Et,ht.callbackNode=yt}}function Gk(ht,Et){if(Ak=-1,Bk=0,K$5&6)throw Error(p$d(327));var yt=ht.callbackNode;if(Hk()&&ht.callbackNode!==yt)return null;var Ct=uc(ht,ht===Q$2?Z$2:0);if(Ct===0)return null;if(Ct&30||Ct&ht.expiredLanes||Et)Et=Ik(ht,Ct);else{Et=Ct;var $t=K$5;K$5|=2;var At=Jk();(Q$2!==ht||Z$2!==Et)&&(uk$1=null,Gj=B$2()+500,Kk(ht,Et));do try{Lk();break}catch(Dt){Mk(ht,Dt)}while(!0);$g(),mk$1.current=At,K$5=$t,Y$1!==null?Et=0:(Q$2=null,Z$2=0,Et=T$5)}if(Et!==0){if(Et===2&&($t=xc(ht),$t!==0&&(Ct=$t,Et=Nk(ht,$t))),Et===1)throw yt=pk,Kk(ht,0),Ck(ht,Ct),Dk(ht,B$2()),yt;if(Et===6)Ck(ht,Ct);else{if($t=ht.current.alternate,!(Ct&30)&&!Ok($t)&&(Et=Ik(ht,Ct),Et===2&&(At=xc(ht),At!==0&&(Ct=At,Et=Nk(ht,At))),Et===1))throw yt=pk,Kk(ht,0),Ck(ht,Ct),Dk(ht,B$2()),yt;switch(ht.finishedWork=$t,ht.finishedLanes=Ct,Et){case 0:case 1:throw Error(p$d(345));case 2:Pk(ht,tk$1,uk$1);break;case 3:if(Ck(ht,Ct),(Ct&130023424)===Ct&&(Et=fk+500-B$2(),10<Et)){if(uc(ht,0)!==0)break;if($t=ht.suspendedLanes,($t&Ct)!==Ct){R$3(),ht.pingedLanes|=ht.suspendedLanes&$t;break}ht.timeoutHandle=Ff(Pk.bind(null,ht,tk$1,uk$1),Et);break}Pk(ht,tk$1,uk$1);break;case 4:if(Ck(ht,Ct),(Ct&4194240)===Ct)break;for(Et=ht.eventTimes,$t=-1;0<Ct;){var Bt=31-oc(Ct);At=1<<Bt,Bt=Et[Bt],Bt>$t&&($t=Bt),Ct&=~At}if(Ct=$t,Ct=B$2()-Ct,Ct=(120>Ct?120:480>Ct?480:1080>Ct?1080:1920>Ct?1920:3e3>Ct?3e3:4320>Ct?4320:1960*lk(Ct/1960))-Ct,10<Ct){ht.timeoutHandle=Ff(Pk.bind(null,ht,tk$1,uk$1),Ct);break}Pk(ht,tk$1,uk$1);break;case 5:Pk(ht,tk$1,uk$1);break;default:throw Error(p$d(329))}}}return Dk(ht,B$2()),ht.callbackNode===yt?Gk.bind(null,ht):null}function Nk(ht,Et){var yt=sk$1;return ht.current.memoizedState.isDehydrated&&(Kk(ht,Et).flags|=256),ht=Ik(ht,Et),ht!==2&&(Et=tk$1,tk$1=yt,Et!==null&&Fj(Et)),ht}function Fj(ht){tk$1===null?tk$1=ht:tk$1.push.apply(tk$1,ht)}function Ok(ht){for(var Et=ht;;){if(Et.flags&16384){var yt=Et.updateQueue;if(yt!==null&&(yt=yt.stores,yt!==null))for(var Ct=0;Ct<yt.length;Ct++){var $t=yt[Ct],At=$t.getSnapshot;$t=$t.value;try{if(!He$2(At(),$t))return!1}catch{return!1}}}if(yt=Et.child,Et.subtreeFlags&16384&&yt!==null)yt.return=Et,Et=yt;else{if(Et===ht)break;for(;Et.sibling===null;){if(Et.return===null||Et.return===ht)return!0;Et=Et.return}Et.sibling.return=Et.return,Et=Et.sibling}}return!0}function Ck(ht,Et){for(Et&=~rk,Et&=~qk,ht.suspendedLanes|=Et,ht.pingedLanes&=~Et,ht=ht.expirationTimes;0<Et;){var yt=31-oc(Et),Ct=1<<yt;ht[yt]=-1,Et&=~Ct}}function Ek(ht){if(K$5&6)throw Error(p$d(327));Hk();var Et=uc(ht,0);if(!(Et&1))return Dk(ht,B$2()),null;var yt=Ik(ht,Et);if(ht.tag!==0&&yt===2){var Ct=xc(ht);Ct!==0&&(Et=Ct,yt=Nk(ht,Ct))}if(yt===1)throw yt=pk,Kk(ht,0),Ck(ht,Et),Dk(ht,B$2()),yt;if(yt===6)throw Error(p$d(345));return ht.finishedWork=ht.current.alternate,ht.finishedLanes=Et,Pk(ht,tk$1,uk$1),Dk(ht,B$2()),null}function Qk(ht,Et){var yt=K$5;K$5|=1;try{return ht(Et)}finally{K$5=yt,K$5===0&&(Gj=B$2()+500,fg&&jg())}}function Rk(ht){wk!==null&&wk.tag===0&&!(K$5&6)&&Hk();var Et=K$5;K$5|=1;var yt=ok.transition,Ct=C$2;try{if(ok.transition=null,C$2=1,ht)return ht()}finally{C$2=Ct,ok.transition=yt,K$5=Et,!(K$5&6)&&jg()}}function Hj(){fj=ej.current,E$2(ej)}function Kk(ht,Et){ht.finishedWork=null,ht.finishedLanes=0;var yt=ht.timeoutHandle;if(yt!==-1&&(ht.timeoutHandle=-1,Gf(yt)),Y$1!==null)for(yt=Y$1.return;yt!==null;){var Ct=yt;switch(wg(Ct),Ct.tag){case 1:Ct=Ct.type.childContextTypes,Ct!=null&&$f();break;case 3:zh$1(),E$2(Wf),E$2(H$2),Eh();break;case 5:Bh(Ct);break;case 4:zh$1();break;case 13:E$2(L$1);break;case 19:E$2(L$1);break;case 10:ah(Ct.type._context);break;case 22:case 23:Hj()}yt=yt.return}if(Q$2=ht,Y$1=ht=Pg(ht.current,null),Z$2=fj=Et,T$5=0,pk=null,rk=qk=rh$1=0,tk$1=sk$1=null,fh!==null){for(Et=0;Et<fh.length;Et++)if(yt=fh[Et],Ct=yt.interleaved,Ct!==null){yt.interleaved=null;var $t=Ct.next,At=yt.pending;if(At!==null){var Bt=At.next;At.next=$t,Ct.next=Bt}yt.pending=Ct}fh=null}return ht}function Mk(ht,Et){do{var yt=Y$1;try{if($g(),Fh.current=Rh,Ih){for(var Ct=M$4.memoizedState;Ct!==null;){var $t=Ct.queue;$t!==null&&($t.pending=null),Ct=Ct.next}Ih=!1}if(Hh=0,O$3=N$4=M$4=null,Jh=!1,Kh$1=0,nk.current=null,yt===null||yt.return===null){T$5=1,pk=Et,Y$1=null;break}e:{var At=ht,Bt=yt.return,Dt=yt,Ft=Et;if(Et=Z$2,Dt.flags|=32768,Ft!==null&&typeof Ft=="object"&&typeof Ft.then=="function"){var kt=Ft,Mt=Dt,Nt=Mt.tag;if(!(Mt.mode&1)&&(Nt===0||Nt===11||Nt===15)){var jt=Mt.alternate;jt?(Mt.updateQueue=jt.updateQueue,Mt.memoizedState=jt.memoizedState,Mt.lanes=jt.lanes):(Mt.updateQueue=null,Mt.memoizedState=null)}var zt=Ui(Bt);if(zt!==null){zt.flags&=-257,Vi(zt,Bt,Dt,At,Et),zt.mode&1&&Si(At,kt,Et),Et=zt,Ft=kt;var Vt=Et.updateQueue;if(Vt===null){var Kt=new Set;Kt.add(Ft),Et.updateQueue=Kt}else Vt.add(Ft);break e}else{if(!(Et&1)){Si(At,kt,Et),tj();break e}Ft=Error(p$d(426))}}else if(I$7&&Dt.mode&1){var Xt=Ui(Bt);if(Xt!==null){!(Xt.flags&65536)&&(Xt.flags|=256),Vi(Xt,Bt,Dt,At,Et),Jg(Ji(Ft,Dt));break e}}At=Ft=Ji(Ft,Dt),T$5!==4&&(T$5=2),sk$1===null?sk$1=[At]:sk$1.push(At),At=Bt;do{switch(At.tag){case 3:At.flags|=65536,Et&=-Et,At.lanes|=Et;var Qt=Ni(At,Ft,Et);ph(At,Qt);break e;case 1:Dt=Ft;var Zt=At.type,dr=At.stateNode;if(!(At.flags&128)&&(typeof Zt.getDerivedStateFromError=="function"||dr!==null&&typeof dr.componentDidCatch=="function"&&(Ri===null||!Ri.has(dr)))){At.flags|=65536,Et&=-Et,At.lanes|=Et;var cr=Qi(At,Dt,Et);ph(At,cr);break e}}At=At.return}while(At!==null)}Sk(yt)}catch(Er){Et=Er,Y$1===yt&&yt!==null&&(Y$1=yt=yt.return);continue}break}while(!0)}function Jk(){var ht=mk$1.current;return mk$1.current=Rh,ht===null?Rh:ht}function tj(){(T$5===0||T$5===3||T$5===2)&&(T$5=4),Q$2===null||!(rh$1&268435455)&&!(qk&268435455)||Ck(Q$2,Z$2)}function Ik(ht,Et){var yt=K$5;K$5|=2;var Ct=Jk();(Q$2!==ht||Z$2!==Et)&&(uk$1=null,Kk(ht,Et));do try{Tk();break}catch($t){Mk(ht,$t)}while(!0);if($g(),K$5=yt,mk$1.current=Ct,Y$1!==null)throw Error(p$d(261));return Q$2=null,Z$2=0,T$5}function Tk(){for(;Y$1!==null;)Uk(Y$1)}function Lk(){for(;Y$1!==null&&!cc();)Uk(Y$1)}function Uk(ht){var Et=Vk(ht.alternate,ht,fj);ht.memoizedProps=ht.pendingProps,Et===null?Sk(ht):Y$1=Et,nk.current=null}function Sk(ht){var Et=ht;do{var yt=Et.alternate;if(ht=Et.return,Et.flags&32768){if(yt=Ij(yt,Et),yt!==null){yt.flags&=32767,Y$1=yt;return}if(ht!==null)ht.flags|=32768,ht.subtreeFlags=0,ht.deletions=null;else{T$5=6,Y$1=null;return}}else if(yt=Ej(yt,Et,fj),yt!==null){Y$1=yt;return}if(Et=Et.sibling,Et!==null){Y$1=Et;return}Y$1=Et=ht}while(Et!==null);T$5===0&&(T$5=5)}function Pk(ht,Et,yt){var Ct=C$2,$t=ok.transition;try{ok.transition=null,C$2=1,Wk(ht,Et,yt,Ct)}finally{ok.transition=$t,C$2=Ct}return null}function Wk(ht,Et,yt,Ct){do Hk();while(wk!==null);if(K$5&6)throw Error(p$d(327));yt=ht.finishedWork;var $t=ht.finishedLanes;if(yt===null)return null;if(ht.finishedWork=null,ht.finishedLanes=0,yt===ht.current)throw Error(p$d(177));ht.callbackNode=null,ht.callbackPriority=0;var At=yt.lanes|yt.childLanes;if(Bc(ht,At),ht===Q$2&&(Y$1=Q$2=null,Z$2=0),!(yt.subtreeFlags&2064)&&!(yt.flags&2064)||vk||(vk=!0,Fk(hc,function(){return Hk(),null})),At=(yt.flags&15990)!==0,yt.subtreeFlags&15990||At){At=ok.transition,ok.transition=null;var Bt=C$2;C$2=1;var Dt=K$5;K$5|=4,nk.current=null,Oj(ht,yt),dk(yt,ht),Oe(Df),dd=!!Cf,Df=Cf=null,ht.current=yt,hk(yt),dc(),K$5=Dt,C$2=Bt,ok.transition=At}else ht.current=yt;if(vk&&(vk=!1,wk=ht,xk=$t),At=ht.pendingLanes,At===0&&(Ri=null),mc(yt.stateNode),Dk(ht,B$2()),Et!==null)for(Ct=ht.onRecoverableError,yt=0;yt<Et.length;yt++)$t=Et[yt],Ct($t.value,{componentStack:$t.stack,digest:$t.digest});if(Oi)throw Oi=!1,ht=Pi,Pi=null,ht;return xk&1&&ht.tag!==0&&Hk(),At=ht.pendingLanes,At&1?ht===zk?yk++:(yk=0,zk=ht):yk=0,jg(),null}function Hk(){if(wk!==null){var ht=Dc(xk),Et=ok.transition,yt=C$2;try{if(ok.transition=null,C$2=16>ht?16:ht,wk===null)var Ct=!1;else{if(ht=wk,wk=null,xk=0,K$5&6)throw Error(p$d(331));var $t=K$5;for(K$5|=4,V=ht.current;V!==null;){var At=V,Bt=At.child;if(V.flags&16){var Dt=At.deletions;if(Dt!==null){for(var Ft=0;Ft<Dt.length;Ft++){var kt=Dt[Ft];for(V=kt;V!==null;){var Mt=V;switch(Mt.tag){case 0:case 11:case 15:Pj(8,Mt,At)}var Nt=Mt.child;if(Nt!==null)Nt.return=Mt,V=Nt;else for(;V!==null;){Mt=V;var jt=Mt.sibling,zt=Mt.return;if(Sj(Mt),Mt===kt){V=null;break}if(jt!==null){jt.return=zt,V=jt;break}V=zt}}}var Vt=At.alternate;if(Vt!==null){var Kt=Vt.child;if(Kt!==null){Vt.child=null;do{var Xt=Kt.sibling;Kt.sibling=null,Kt=Xt}while(Kt!==null)}}V=At}}if(At.subtreeFlags&2064&&Bt!==null)Bt.return=At,V=Bt;else e:for(;V!==null;){if(At=V,At.flags&2048)switch(At.tag){case 0:case 11:case 15:Pj(9,At,At.return)}var Qt=At.sibling;if(Qt!==null){Qt.return=At.return,V=Qt;break e}V=At.return}}var Zt=ht.current;for(V=Zt;V!==null;){Bt=V;var dr=Bt.child;if(Bt.subtreeFlags&2064&&dr!==null)dr.return=Bt,V=dr;else e:for(Bt=Zt;V!==null;){if(Dt=V,Dt.flags&2048)try{switch(Dt.tag){case 0:case 11:case 15:Qj(9,Dt)}}catch(Er){W$6(Dt,Dt.return,Er)}if(Dt===Bt){V=null;break e}var cr=Dt.sibling;if(cr!==null){cr.return=Dt.return,V=cr;break e}V=Dt.return}}if(K$5=$t,jg(),lc&&typeof lc.onPostCommitFiberRoot=="function")try{lc.onPostCommitFiberRoot(kc,ht)}catch{}Ct=!0}return Ct}finally{C$2=yt,ok.transition=Et}}return!1}function Xk(ht,Et,yt){Et=Ji(yt,Et),Et=Ni(ht,Et,1),ht=nh(ht,Et,1),Et=R$3(),ht!==null&&(Ac(ht,1,Et),Dk(ht,Et))}function W$6(ht,Et,yt){if(ht.tag===3)Xk(ht,ht,yt);else for(;Et!==null;){if(Et.tag===3){Xk(Et,ht,yt);break}else if(Et.tag===1){var Ct=Et.stateNode;if(typeof Et.type.getDerivedStateFromError=="function"||typeof Ct.componentDidCatch=="function"&&(Ri===null||!Ri.has(Ct))){ht=Ji(yt,ht),ht=Qi(Et,ht,1),Et=nh(Et,ht,1),ht=R$3(),Et!==null&&(Ac(Et,1,ht),Dk(Et,ht));break}}Et=Et.return}}function Ti(ht,Et,yt){var Ct=ht.pingCache;Ct!==null&&Ct.delete(Et),Et=R$3(),ht.pingedLanes|=ht.suspendedLanes&yt,Q$2===ht&&(Z$2&yt)===yt&&(T$5===4||T$5===3&&(Z$2&130023424)===Z$2&&500>B$2()-fk?Kk(ht,0):rk|=yt),Dk(ht,Et)}function Yk(ht,Et){Et===0&&(ht.mode&1?(Et=sc$1,sc$1<<=1,!(sc$1&130023424)&&(sc$1=4194304)):Et=1);var yt=R$3();ht=ih(ht,Et),ht!==null&&(Ac(ht,Et,yt),Dk(ht,yt))}function uj(ht){var Et=ht.memoizedState,yt=0;Et!==null&&(yt=Et.retryLane),Yk(ht,yt)}function bk(ht,Et){var yt=0;switch(ht.tag){case 13:var Ct=ht.stateNode,$t=ht.memoizedState;$t!==null&&(yt=$t.retryLane);break;case 19:Ct=ht.stateNode;break;default:throw Error(p$d(314))}Ct!==null&&Ct.delete(Et),Yk(ht,yt)}var Vk;Vk=function(ht,Et,yt){if(ht!==null)if(ht.memoizedProps!==Et.pendingProps||Wf.current)dh$1=!0;else{if(!(ht.lanes&yt)&&!(Et.flags&128))return dh$1=!1,yj(ht,Et,yt);dh$1=!!(ht.flags&131072)}else dh$1=!1,I$7&&Et.flags&1048576&&ug$1(Et,ng,Et.index);switch(Et.lanes=0,Et.tag){case 2:var Ct=Et.type;ij(ht,Et),ht=Et.pendingProps;var $t=Yf(Et,H$2.current);ch$1(Et,yt),$t=Nh(null,Et,Ct,ht,$t,yt);var At=Sh();return Et.flags|=1,typeof $t=="object"&&$t!==null&&typeof $t.render=="function"&&$t.$$typeof===void 0?(Et.tag=1,Et.memoizedState=null,Et.updateQueue=null,Zf(Ct)?(At=!0,cg(Et)):At=!1,Et.memoizedState=$t.state!==null&&$t.state!==void 0?$t.state:null,kh(Et),$t.updater=Ei,Et.stateNode=$t,$t._reactInternals=Et,Ii(Et,Ct,ht,yt),Et=jj(null,Et,Ct,!0,At,yt)):(Et.tag=0,I$7&&At&&vg(Et),Xi(null,Et,$t,yt),Et=Et.child),Et;case 16:Ct=Et.elementType;e:{switch(ij(ht,Et),ht=Et.pendingProps,$t=Ct._init,Ct=$t(Ct._payload),Et.type=Ct,$t=Et.tag=Zk(Ct),ht=Ci(Ct,ht),$t){case 0:Et=cj(null,Et,Ct,ht,yt);break e;case 1:Et=hj(null,Et,Ct,ht,yt);break e;case 11:Et=Yi(null,Et,Ct,ht,yt);break e;case 14:Et=$i(null,Et,Ct,Ci(Ct.type,ht),yt);break e}throw Error(p$d(306,Ct,""))}return Et;case 0:return Ct=Et.type,$t=Et.pendingProps,$t=Et.elementType===Ct?$t:Ci(Ct,$t),cj(ht,Et,Ct,$t,yt);case 1:return Ct=Et.type,$t=Et.pendingProps,$t=Et.elementType===Ct?$t:Ci(Ct,$t),hj(ht,Et,Ct,$t,yt);case 3:e:{if(kj(Et),ht===null)throw Error(p$d(387));Ct=Et.pendingProps,At=Et.memoizedState,$t=At.element,lh(ht,Et),qh(Et,Ct,null,yt);var Bt=Et.memoizedState;if(Ct=Bt.element,At.isDehydrated)if(At={element:Ct,isDehydrated:!1,cache:Bt.cache,pendingSuspenseBoundaries:Bt.pendingSuspenseBoundaries,transitions:Bt.transitions},Et.updateQueue.baseState=At,Et.memoizedState=At,Et.flags&256){$t=Ji(Error(p$d(423)),Et),Et=lj(ht,Et,Ct,yt,$t);break e}else if(Ct!==$t){$t=Ji(Error(p$d(424)),Et),Et=lj(ht,Et,Ct,yt,$t);break e}else for(yg=Lf(Et.stateNode.containerInfo.firstChild),xg=Et,I$7=!0,zg=null,yt=Vg(Et,null,Ct,yt),Et.child=yt;yt;)yt.flags=yt.flags&-3|4096,yt=yt.sibling;else{if(Ig(),Ct===$t){Et=Zi(ht,Et,yt);break e}Xi(ht,Et,Ct,yt)}Et=Et.child}return Et;case 5:return Ah(Et),ht===null&&Eg(Et),Ct=Et.type,$t=Et.pendingProps,At=ht!==null?ht.memoizedProps:null,Bt=$t.children,Ef(Ct,$t)?Bt=null:At!==null&&Ef(Ct,At)&&(Et.flags|=32),gj(ht,Et),Xi(ht,Et,Bt,yt),Et.child;case 6:return ht===null&&Eg(Et),null;case 13:return oj(ht,Et,yt);case 4:return yh(Et,Et.stateNode.containerInfo),Ct=Et.pendingProps,ht===null?Et.child=Ug(Et,null,Ct,yt):Xi(ht,Et,Ct,yt),Et.child;case 11:return Ct=Et.type,$t=Et.pendingProps,$t=Et.elementType===Ct?$t:Ci(Ct,$t),Yi(ht,Et,Ct,$t,yt);case 7:return Xi(ht,Et,Et.pendingProps,yt),Et.child;case 8:return Xi(ht,Et,Et.pendingProps.children,yt),Et.child;case 12:return Xi(ht,Et,Et.pendingProps.children,yt),Et.child;case 10:e:{if(Ct=Et.type._context,$t=Et.pendingProps,At=Et.memoizedProps,Bt=$t.value,G$1(Wg,Ct._currentValue),Ct._currentValue=Bt,At!==null)if(He$2(At.value,Bt)){if(At.children===$t.children&&!Wf.current){Et=Zi(ht,Et,yt);break e}}else for(At=Et.child,At!==null&&(At.return=Et);At!==null;){var Dt=At.dependencies;if(Dt!==null){Bt=At.child;for(var Ft=Dt.firstContext;Ft!==null;){if(Ft.context===Ct){if(At.tag===1){Ft=mh(-1,yt&-yt),Ft.tag=2;var kt=At.updateQueue;if(kt!==null){kt=kt.shared;var Mt=kt.pending;Mt===null?Ft.next=Ft:(Ft.next=Mt.next,Mt.next=Ft),kt.pending=Ft}}At.lanes|=yt,Ft=At.alternate,Ft!==null&&(Ft.lanes|=yt),bh(At.return,yt,Et),Dt.lanes|=yt;break}Ft=Ft.next}}else if(At.tag===10)Bt=At.type===Et.type?null:At.child;else if(At.tag===18){if(Bt=At.return,Bt===null)throw Error(p$d(341));Bt.lanes|=yt,Dt=Bt.alternate,Dt!==null&&(Dt.lanes|=yt),bh(Bt,yt,Et),Bt=At.sibling}else Bt=At.child;if(Bt!==null)Bt.return=At;else for(Bt=At;Bt!==null;){if(Bt===Et){Bt=null;break}if(At=Bt.sibling,At!==null){At.return=Bt.return,Bt=At;break}Bt=Bt.return}At=Bt}Xi(ht,Et,$t.children,yt),Et=Et.child}return Et;case 9:return $t=Et.type,Ct=Et.pendingProps.children,ch$1(Et,yt),$t=eh($t),Ct=Ct($t),Et.flags|=1,Xi(ht,Et,Ct,yt),Et.child;case 14:return Ct=Et.type,$t=Ci(Ct,Et.pendingProps),$t=Ci(Ct.type,$t),$i(ht,Et,Ct,$t,yt);case 15:return bj(ht,Et,Et.type,Et.pendingProps,yt);case 17:return Ct=Et.type,$t=Et.pendingProps,$t=Et.elementType===Ct?$t:Ci(Ct,$t),ij(ht,Et),Et.tag=1,Zf(Ct)?(ht=!0,cg(Et)):ht=!1,ch$1(Et,yt),Gi(Et,Ct,$t),Ii(Et,Ct,$t,yt),jj(null,Et,Ct,!0,ht,yt);case 19:return xj(ht,Et,yt);case 22:return dj(ht,Et,yt)}throw Error(p$d(156,Et.tag))};function Fk(ht,Et){return ac(ht,Et)}function $k(ht,Et,yt,Ct){this.tag=ht,this.key=yt,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=Et,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=Ct,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(ht,Et,yt,Ct){return new $k(ht,Et,yt,Ct)}function aj(ht){return ht=ht.prototype,!(!ht||!ht.isReactComponent)}function Zk(ht){if(typeof ht=="function")return aj(ht)?1:0;if(ht!=null){if(ht=ht.$$typeof,ht===Da)return 11;if(ht===Ga)return 14}return 2}function Pg(ht,Et){var yt=ht.alternate;return yt===null?(yt=Bg(ht.tag,Et,ht.key,ht.mode),yt.elementType=ht.elementType,yt.type=ht.type,yt.stateNode=ht.stateNode,yt.alternate=ht,ht.alternate=yt):(yt.pendingProps=Et,yt.type=ht.type,yt.flags=0,yt.subtreeFlags=0,yt.deletions=null),yt.flags=ht.flags&14680064,yt.childLanes=ht.childLanes,yt.lanes=ht.lanes,yt.child=ht.child,yt.memoizedProps=ht.memoizedProps,yt.memoizedState=ht.memoizedState,yt.updateQueue=ht.updateQueue,Et=ht.dependencies,yt.dependencies=Et===null?null:{lanes:Et.lanes,firstContext:Et.firstContext},yt.sibling=ht.sibling,yt.index=ht.index,yt.ref=ht.ref,yt}function Rg(ht,Et,yt,Ct,$t,At){var Bt=2;if(Ct=ht,typeof ht=="function")aj(ht)&&(Bt=1);else if(typeof ht=="string")Bt=5;else e:switch(ht){case ya:return Tg(yt.children,$t,At,Et);case za:Bt=8,$t|=8;break;case Aa:return ht=Bg(12,yt,Et,$t|2),ht.elementType=Aa,ht.lanes=At,ht;case Ea:return ht=Bg(13,yt,Et,$t),ht.elementType=Ea,ht.lanes=At,ht;case Fa:return ht=Bg(19,yt,Et,$t),ht.elementType=Fa,ht.lanes=At,ht;case Ia:return pj(yt,$t,At,Et);default:if(typeof ht=="object"&&ht!==null)switch(ht.$$typeof){case Ba:Bt=10;break e;case Ca:Bt=9;break e;case Da:Bt=11;break e;case Ga:Bt=14;break e;case Ha:Bt=16,Ct=null;break e}throw Error(p$d(130,ht==null?ht:typeof ht,""))}return Et=Bg(Bt,yt,Et,$t),Et.elementType=ht,Et.type=Ct,Et.lanes=At,Et}function Tg(ht,Et,yt,Ct){return ht=Bg(7,ht,Ct,Et),ht.lanes=yt,ht}function pj(ht,Et,yt,Ct){return ht=Bg(22,ht,Ct,Et),ht.elementType=Ia,ht.lanes=yt,ht.stateNode={isHidden:!1},ht}function Qg(ht,Et,yt){return ht=Bg(6,ht,null,Et),ht.lanes=yt,ht}function Sg(ht,Et,yt){return Et=Bg(4,ht.children!==null?ht.children:[],ht.key,Et),Et.lanes=yt,Et.stateNode={containerInfo:ht.containerInfo,pendingChildren:null,implementation:ht.implementation},Et}function al(ht,Et,yt,Ct,$t){this.tag=Et,this.containerInfo=ht,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=Ct,this.onRecoverableError=$t,this.mutableSourceEagerHydrationData=null}function bl(ht,Et,yt,Ct,$t,At,Bt,Dt,Ft){return ht=new al(ht,Et,yt,Dt,Ft),Et===1?(Et=1,At===!0&&(Et|=8)):Et=0,At=Bg(3,null,null,Et),ht.current=At,At.stateNode=ht,At.memoizedState={element:Ct,isDehydrated:yt,cache:null,transitions:null,pendingSuspenseBoundaries:null},kh(At),ht}function cl(ht,Et,yt){var Ct=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:wa$1,key:Ct==null?null:""+Ct,children:ht,containerInfo:Et,implementation:yt}}function dl(ht){if(!ht)return Vf;ht=ht._reactInternals;e:{if(Vb(ht)!==ht||ht.tag!==1)throw Error(p$d(170));var Et=ht;do{switch(Et.tag){case 3:Et=Et.stateNode.context;break e;case 1:if(Zf(Et.type)){Et=Et.stateNode.__reactInternalMemoizedMergedChildContext;break e}}Et=Et.return}while(Et!==null);throw Error(p$d(171))}if(ht.tag===1){var yt=ht.type;if(Zf(yt))return bg$1(ht,yt,Et)}return Et}function el$1(ht,Et,yt,Ct,$t,At,Bt,Dt,Ft){return ht=bl(yt,Ct,!0,ht,$t,At,Bt,Dt,Ft),ht.context=dl(null),yt=ht.current,Ct=R$3(),$t=yi$1(yt),At=mh(Ct,$t),At.callback=Et??null,nh(yt,At,$t),ht.current.lanes=$t,Ac(ht,$t,Ct),Dk(ht,Ct),ht}function fl(ht,Et,yt,Ct){var $t=Et.current,At=R$3(),Bt=yi$1($t);return yt=dl(yt),Et.context===null?Et.context=yt:Et.pendingContext=yt,Et=mh(At,Bt),Et.payload={element:ht},Ct=Ct===void 0?null:Ct,Ct!==null&&(Et.callback=Ct),ht=nh($t,Et,Bt),ht!==null&&(gi(ht,$t,Bt,At),oh(ht,$t,Bt)),Bt}function gl$1(ht){if(ht=ht.current,!ht.child)return null;switch(ht.child.tag){case 5:return ht.child.stateNode;default:return ht.child.stateNode}}function hl$1(ht,Et){if(ht=ht.memoizedState,ht!==null&&ht.dehydrated!==null){var yt=ht.retryLane;ht.retryLane=yt!==0&&yt<Et?yt:Et}}function il(ht,Et){hl$1(ht,Et),(ht=ht.alternate)&&hl$1(ht,Et)}function jl(){return null}var kl$1=typeof reportError=="function"?reportError:function(ht){console.error(ht)};function ll(ht){this._internalRoot=ht}ml$1.prototype.render=ll.prototype.render=function(ht){var Et=this._internalRoot;if(Et===null)throw Error(p$d(409));fl(ht,Et,null,null)};ml$1.prototype.unmount=ll.prototype.unmount=function(){var ht=this._internalRoot;if(ht!==null){this._internalRoot=null;var Et=ht.containerInfo;Rk(function(){fl(null,ht,null,null)}),Et[uf]=null}};function ml$1(ht){this._internalRoot=ht}ml$1.prototype.unstable_scheduleHydration=function(ht){if(ht){var Et=Hc();ht={blockedOn:null,target:ht,priority:Et};for(var yt=0;yt<Qc.length&&Et!==0&&Et<Qc[yt].priority;yt++);Qc.splice(yt,0,ht),yt===0&&Vc(ht)}};function nl$1(ht){return!(!ht||ht.nodeType!==1&&ht.nodeType!==9&&ht.nodeType!==11)}function ol(ht){return!(!ht||ht.nodeType!==1&&ht.nodeType!==9&&ht.nodeType!==11&&(ht.nodeType!==8||ht.nodeValue!==" react-mount-point-unstable "))}function pl$1(){}function ql(ht,Et,yt,Ct,$t){if($t){if(typeof Ct=="function"){var At=Ct;Ct=function(){var kt=gl$1(Bt);At.call(kt)}}var Bt=el$1(Et,Ct,ht,0,null,!1,!1,"",pl$1);return ht._reactRootContainer=Bt,ht[uf]=Bt.current,sf(ht.nodeType===8?ht.parentNode:ht),Rk(),Bt}for(;$t=ht.lastChild;)ht.removeChild($t);if(typeof Ct=="function"){var Dt=Ct;Ct=function(){var kt=gl$1(Ft);Dt.call(kt)}}var Ft=bl(ht,0,!1,null,null,!1,!1,"",pl$1);return ht._reactRootContainer=Ft,ht[uf]=Ft.current,sf(ht.nodeType===8?ht.parentNode:ht),Rk(function(){fl(Et,Ft,yt,Ct)}),Ft}function rl(ht,Et,yt,Ct,$t){var At=yt._reactRootContainer;if(At){var Bt=At;if(typeof $t=="function"){var Dt=$t;$t=function(){var Ft=gl$1(Bt);Dt.call(Ft)}}fl(Et,Bt,ht,$t)}else Bt=ql(yt,Et,ht,$t,Ct);return gl$1(Bt)}Ec=function(ht){switch(ht.tag){case 3:var Et=ht.stateNode;if(Et.current.memoizedState.isDehydrated){var yt=tc(Et.pendingLanes);yt!==0&&(Cc$1(Et,yt|1),Dk(Et,B$2()),!(K$5&6)&&(Gj=B$2()+500,jg()))}break;case 13:Rk(function(){var Ct=ih(ht,1);if(Ct!==null){var $t=R$3();gi(Ct,ht,1,$t)}}),il(ht,1)}};Fc=function(ht){if(ht.tag===13){var Et=ih(ht,134217728);if(Et!==null){var yt=R$3();gi(Et,ht,134217728,yt)}il(ht,134217728)}};Gc=function(ht){if(ht.tag===13){var Et=yi$1(ht),yt=ih(ht,Et);if(yt!==null){var Ct=R$3();gi(yt,ht,Et,Ct)}il(ht,Et)}};Hc=function(){return C$2};Ic=function(ht,Et){var yt=C$2;try{return C$2=ht,Et()}finally{C$2=yt}};yb=function(ht,Et,yt){switch(Et){case"input":if(bb(ht,yt),Et=yt.name,yt.type==="radio"&&Et!=null){for(yt=ht;yt.parentNode;)yt=yt.parentNode;for(yt=yt.querySelectorAll("input[name="+JSON.stringify(""+Et)+'][type="radio"]'),Et=0;Et<yt.length;Et++){var Ct=yt[Et];if(Ct!==ht&&Ct.form===ht.form){var $t=Db(Ct);if(!$t)throw Error(p$d(90));Wa(Ct),bb(Ct,$t)}}}break;case"textarea":ib(ht,yt);break;case"select":Et=yt.value,Et!=null&&fb(ht,!!yt.multiple,Et,!1)}};Gb=Qk;Hb=Rk;var sl$2={usingClientEntryPoint:!1,Events:[Cb,ue$1,Db,Eb,Fb,Qk]},tl$1={findFiberByHostInstance:Wc,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ul={bundleType:tl$1.bundleType,version:tl$1.version,rendererPackageName:tl$1.rendererPackageName,rendererConfig:tl$1.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ua$1.ReactCurrentDispatcher,findHostInstanceByFiber:function(ht){return ht=Zb(ht),ht===null?null:ht.stateNode},findFiberByHostInstance:tl$1.findFiberByHostInstance||jl,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var vl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vl.isDisabled&&vl.supportsFiber)try{kc=vl.inject(ul),lc=vl}catch{}}reactDom_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sl$2;reactDom_production_min.createPortal=function(ht,Et){var yt=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!nl$1(Et))throw Error(p$d(200));return cl(ht,Et,null,yt)};reactDom_production_min.createRoot=function(ht,Et){if(!nl$1(ht))throw Error(p$d(299));var yt=!1,Ct="",$t=kl$1;return Et!=null&&(Et.unstable_strictMode===!0&&(yt=!0),Et.identifierPrefix!==void 0&&(Ct=Et.identifierPrefix),Et.onRecoverableError!==void 0&&($t=Et.onRecoverableError)),Et=bl(ht,1,!1,null,null,yt,!1,Ct,$t),ht[uf]=Et.current,sf(ht.nodeType===8?ht.parentNode:ht),new ll(Et)};reactDom_production_min.findDOMNode=function(ht){if(ht==null)return null;if(ht.nodeType===1)return ht;var Et=ht._reactInternals;if(Et===void 0)throw typeof ht.render=="function"?Error(p$d(188)):(ht=Object.keys(ht).join(","),Error(p$d(268,ht)));return ht=Zb(Et),ht=ht===null?null:ht.stateNode,ht};reactDom_production_min.flushSync=function(ht){return Rk(ht)};reactDom_production_min.hydrate=function(ht,Et,yt){if(!ol(Et))throw Error(p$d(200));return rl(null,ht,Et,!0,yt)};reactDom_production_min.hydrateRoot=function(ht,Et,yt){if(!nl$1(ht))throw Error(p$d(405));var Ct=yt!=null&&yt.hydratedSources||null,$t=!1,At="",Bt=kl$1;if(yt!=null&&(yt.unstable_strictMode===!0&&($t=!0),yt.identifierPrefix!==void 0&&(At=yt.identifierPrefix),yt.onRecoverableError!==void 0&&(Bt=yt.onRecoverableError)),Et=el$1(Et,null,ht,1,yt??null,$t,!1,At,Bt),ht[uf]=Et.current,sf(ht),Ct)for(ht=0;ht<Ct.length;ht++)yt=Ct[ht],$t=yt._getVersion,$t=$t(yt._source),Et.mutableSourceEagerHydrationData==null?Et.mutableSourceEagerHydrationData=[yt,$t]:Et.mutableSourceEagerHydrationData.push(yt,$t);return new ml$1(Et)};reactDom_production_min.render=function(ht,Et,yt){if(!ol(Et))throw Error(p$d(200));return rl(null,ht,Et,!1,yt)};reactDom_production_min.unmountComponentAtNode=function(ht){if(!ol(ht))throw Error(p$d(40));return ht._reactRootContainer?(Rk(function(){rl(null,null,ht,!1,function(){ht._reactRootContainer=null,ht[uf]=null})}),!0):!1};reactDom_production_min.unstable_batchedUpdates=Qk;reactDom_production_min.unstable_renderSubtreeIntoContainer=function(ht,Et,yt,Ct){if(!ol(yt))throw Error(p$d(200));if(ht==null||ht._reactInternals===void 0)throw Error(p$d(38));return rl(ht,Et,yt,!1,Ct)};reactDom_production_min.version="18.3.1-next-f1338f8080-20240426";function checkDCE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(ht){console.error(ht)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports;const ReactDOM=getDefaultExportFromCjs$1(reactDomExports),ReactDOM$1=_mergeNamespaces({__proto__:null,default:ReactDOM},[reactDomExports]);var m$8=reactDomExports;client.createRoot=m$8.createRoot,client.hydrateRoot=m$8.hydrateRoot;/**
 * @remix-run/router v1.18.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function _extends$8(){return _extends$8=Object.assign?Object.assign.bind():function(ht){for(var Et=1;Et<arguments.length;Et++){var yt=arguments[Et];for(var Ct in yt)Object.prototype.hasOwnProperty.call(yt,Ct)&&(ht[Ct]=yt[Ct])}return ht},_extends$8.apply(this,arguments)}var Action;(function(ht){ht.Pop="POP",ht.Push="PUSH",ht.Replace="REPLACE"})(Action||(Action={}));const PopStateEventType="popstate";function createBrowserHistory(ht){ht===void 0&&(ht={});function Et(Ct,$t){let{pathname:At,search:Bt,hash:Dt}=Ct.location;return createLocation("",{pathname:At,search:Bt,hash:Dt},$t.state&&$t.state.usr||null,$t.state&&$t.state.key||"default")}function yt(Ct,$t){return typeof $t=="string"?$t:createPath($t)}return getUrlBasedHistory(Et,yt,null,ht)}function invariant(ht,Et){if(ht===!1||ht===null||typeof ht>"u")throw new Error(Et)}function warning$3(ht,Et){if(!ht){typeof console<"u"&&console.warn(Et);try{throw new Error(Et)}catch{}}}function createKey(){return Math.random().toString(36).substr(2,8)}function getHistoryState(ht,Et){return{usr:ht.state,key:ht.key,idx:Et}}function createLocation(ht,Et,yt,Ct){return yt===void 0&&(yt=null),_extends$8({pathname:typeof ht=="string"?ht:ht.pathname,search:"",hash:""},typeof Et=="string"?parsePath(Et):Et,{state:yt,key:Et&&Et.key||Ct||createKey()})}function createPath(ht){let{pathname:Et="/",search:yt="",hash:Ct=""}=ht;return yt&&yt!=="?"&&(Et+=yt.charAt(0)==="?"?yt:"?"+yt),Ct&&Ct!=="#"&&(Et+=Ct.charAt(0)==="#"?Ct:"#"+Ct),Et}function parsePath(ht){let Et={};if(ht){let yt=ht.indexOf("#");yt>=0&&(Et.hash=ht.substr(yt),ht=ht.substr(0,yt));let Ct=ht.indexOf("?");Ct>=0&&(Et.search=ht.substr(Ct),ht=ht.substr(0,Ct)),ht&&(Et.pathname=ht)}return Et}function getUrlBasedHistory(ht,Et,yt,Ct){Ct===void 0&&(Ct={});let{window:$t=document.defaultView,v5Compat:At=!1}=Ct,Bt=$t.history,Dt=Action.Pop,Ft=null,kt=Mt();kt==null&&(kt=0,Bt.replaceState(_extends$8({},Bt.state,{idx:kt}),""));function Mt(){return(Bt.state||{idx:null}).idx}function Nt(){Dt=Action.Pop;let Xt=Mt(),Qt=Xt==null?null:Xt-kt;kt=Xt,Ft&&Ft({action:Dt,location:Kt.location,delta:Qt})}function jt(Xt,Qt){Dt=Action.Push;let Zt=createLocation(Kt.location,Xt,Qt);kt=Mt()+1;let dr=getHistoryState(Zt,kt),cr=Kt.createHref(Zt);try{Bt.pushState(dr,"",cr)}catch(Er){if(Er instanceof DOMException&&Er.name==="DataCloneError")throw Er;$t.location.assign(cr)}At&&Ft&&Ft({action:Dt,location:Kt.location,delta:1})}function zt(Xt,Qt){Dt=Action.Replace;let Zt=createLocation(Kt.location,Xt,Qt);kt=Mt();let dr=getHistoryState(Zt,kt),cr=Kt.createHref(Zt);Bt.replaceState(dr,"",cr),At&&Ft&&Ft({action:Dt,location:Kt.location,delta:0})}function Vt(Xt){let Qt=$t.location.origin!=="null"?$t.location.origin:$t.location.href,Zt=typeof Xt=="string"?Xt:createPath(Xt);return Zt=Zt.replace(/ $/,"%20"),invariant(Qt,"No window.location.(origin|href) available to create URL for href: "+Zt),new URL(Zt,Qt)}let Kt={get action(){return Dt},get location(){return ht($t,Bt)},listen(Xt){if(Ft)throw new Error("A history only accepts one active listener");return $t.addEventListener(PopStateEventType,Nt),Ft=Xt,()=>{$t.removeEventListener(PopStateEventType,Nt),Ft=null}},createHref(Xt){return Et($t,Xt)},createURL:Vt,encodeLocation(Xt){let Qt=Vt(Xt);return{pathname:Qt.pathname,search:Qt.search,hash:Qt.hash}},push:jt,replace:zt,go(Xt){return Bt.go(Xt)}};return Kt}var ResultType;(function(ht){ht.data="data",ht.deferred="deferred",ht.redirect="redirect",ht.error="error"})(ResultType||(ResultType={}));function matchRoutes(ht,Et,yt){return yt===void 0&&(yt="/"),matchRoutesImpl(ht,Et,yt,!1)}function matchRoutesImpl(ht,Et,yt,Ct){let $t=typeof Et=="string"?parsePath(Et):Et,At=stripBasename($t.pathname||"/",yt);if(At==null)return null;let Bt=flattenRoutes(ht);rankRouteBranches(Bt);let Dt=null;for(let Ft=0;Dt==null&&Ft<Bt.length;++Ft){let kt=decodePath(At);Dt=matchRouteBranch(Bt[Ft],kt,Ct)}return Dt}function flattenRoutes(ht,Et,yt,Ct){Et===void 0&&(Et=[]),yt===void 0&&(yt=[]),Ct===void 0&&(Ct="");let $t=(At,Bt,Dt)=>{let Ft={relativePath:Dt===void 0?At.path||"":Dt,caseSensitive:At.caseSensitive===!0,childrenIndex:Bt,route:At};Ft.relativePath.startsWith("/")&&(invariant(Ft.relativePath.startsWith(Ct),'Absolute route path "'+Ft.relativePath+'" nested under path '+('"'+Ct+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),Ft.relativePath=Ft.relativePath.slice(Ct.length));let kt=joinPaths([Ct,Ft.relativePath]),Mt=yt.concat(Ft);At.children&&At.children.length>0&&(invariant(At.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+kt+'".')),flattenRoutes(At.children,Et,Mt,kt)),!(At.path==null&&!At.index)&&Et.push({path:kt,score:computeScore(kt,At.index),routesMeta:Mt})};return ht.forEach((At,Bt)=>{var Dt;if(At.path===""||!((Dt=At.path)!=null&&Dt.includes("?")))$t(At,Bt);else for(let Ft of explodeOptionalSegments(At.path))$t(At,Bt,Ft)}),Et}function explodeOptionalSegments(ht){let Et=ht.split("/");if(Et.length===0)return[];let[yt,...Ct]=Et,$t=yt.endsWith("?"),At=yt.replace(/\?$/,"");if(Ct.length===0)return $t?[At,""]:[At];let Bt=explodeOptionalSegments(Ct.join("/")),Dt=[];return Dt.push(...Bt.map(Ft=>Ft===""?At:[At,Ft].join("/"))),$t&&Dt.push(...Bt),Dt.map(Ft=>ht.startsWith("/")&&Ft===""?"/":Ft)}function rankRouteBranches(ht){ht.sort((Et,yt)=>Et.score!==yt.score?yt.score-Et.score:compareIndexes(Et.routesMeta.map(Ct=>Ct.childrenIndex),yt.routesMeta.map(Ct=>Ct.childrenIndex)))}const paramRe=/^:[\w-]+$/,dynamicSegmentValue=3,indexRouteValue=2,emptySegmentValue=1,staticSegmentValue=10,splatPenalty=-2,isSplat=ht=>ht==="*";function computeScore(ht,Et){let yt=ht.split("/"),Ct=yt.length;return yt.some(isSplat)&&(Ct+=splatPenalty),Et&&(Ct+=indexRouteValue),yt.filter($t=>!isSplat($t)).reduce(($t,At)=>$t+(paramRe.test(At)?dynamicSegmentValue:At===""?emptySegmentValue:staticSegmentValue),Ct)}function compareIndexes(ht,Et){return ht.length===Et.length&&ht.slice(0,-1).every((Ct,$t)=>Ct===Et[$t])?ht[ht.length-1]-Et[Et.length-1]:0}function matchRouteBranch(ht,Et,yt){let{routesMeta:Ct}=ht,$t={},At="/",Bt=[];for(let Dt=0;Dt<Ct.length;++Dt){let Ft=Ct[Dt],kt=Dt===Ct.length-1,Mt=At==="/"?Et:Et.slice(At.length)||"/",Nt=matchPath({path:Ft.relativePath,caseSensitive:Ft.caseSensitive,end:kt},Mt),jt=Ft.route;if(!Nt&&kt&&yt&&!Ct[Ct.length-1].route.index&&(Nt=matchPath({path:Ft.relativePath,caseSensitive:Ft.caseSensitive,end:!1},Mt)),!Nt)return null;Object.assign($t,Nt.params),Bt.push({params:$t,pathname:joinPaths([At,Nt.pathname]),pathnameBase:normalizePathname(joinPaths([At,Nt.pathnameBase])),route:jt}),Nt.pathnameBase!=="/"&&(At=joinPaths([At,Nt.pathnameBase]))}return Bt}function matchPath(ht,Et){typeof ht=="string"&&(ht={path:ht,caseSensitive:!1,end:!0});let[yt,Ct]=compilePath(ht.path,ht.caseSensitive,ht.end),$t=Et.match(yt);if(!$t)return null;let At=$t[0],Bt=At.replace(/(.)\/+$/,"$1"),Dt=$t.slice(1);return{params:Ct.reduce((kt,Mt,Nt)=>{let{paramName:jt,isOptional:zt}=Mt;if(jt==="*"){let Kt=Dt[Nt]||"";Bt=At.slice(0,At.length-Kt.length).replace(/(.)\/+$/,"$1")}const Vt=Dt[Nt];return zt&&!Vt?kt[jt]=void 0:kt[jt]=(Vt||"").replace(/%2F/g,"/"),kt},{}),pathname:At,pathnameBase:Bt,pattern:ht}}function compilePath(ht,Et,yt){Et===void 0&&(Et=!1),yt===void 0&&(yt=!0),warning$3(ht==="*"||!ht.endsWith("*")||ht.endsWith("/*"),'Route path "'+ht+'" will be treated as if it were '+('"'+ht.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+ht.replace(/\*$/,"/*")+'".'));let Ct=[],$t="^"+ht.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(Bt,Dt,Ft)=>(Ct.push({paramName:Dt,isOptional:Ft!=null}),Ft?"/?([^\\/]+)?":"/([^\\/]+)"));return ht.endsWith("*")?(Ct.push({paramName:"*"}),$t+=ht==="*"||ht==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):yt?$t+="\\/*$":ht!==""&&ht!=="/"&&($t+="(?:(?=\\/|$))"),[new RegExp($t,Et?void 0:"i"),Ct]}function decodePath(ht){try{return ht.split("/").map(Et=>decodeURIComponent(Et).replace(/\//g,"%2F")).join("/")}catch(Et){return warning$3(!1,'The URL path "'+ht+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+Et+").")),ht}}function stripBasename(ht,Et){if(Et==="/")return ht;if(!ht.toLowerCase().startsWith(Et.toLowerCase()))return null;let yt=Et.endsWith("/")?Et.length-1:Et.length,Ct=ht.charAt(yt);return Ct&&Ct!=="/"?null:ht.slice(yt)||"/"}function resolvePath(ht,Et){Et===void 0&&(Et="/");let{pathname:yt,search:Ct="",hash:$t=""}=typeof ht=="string"?parsePath(ht):ht;return{pathname:yt?yt.startsWith("/")?yt:resolvePathname(yt,Et):Et,search:normalizeSearch(Ct),hash:normalizeHash($t)}}function resolvePathname(ht,Et){let yt=Et.replace(/\/+$/,"").split("/");return ht.split("/").forEach($t=>{$t===".."?yt.length>1&&yt.pop():$t!=="."&&yt.push($t)}),yt.length>1?yt.join("/"):"/"}function getInvalidPathError(ht,Et,yt,Ct){return"Cannot include a '"+ht+"' character in a manually specified "+("`to."+Et+"` field ["+JSON.stringify(Ct)+"].  Please separate it out to the ")+("`to."+yt+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function getPathContributingMatches(ht){return ht.filter((Et,yt)=>yt===0||Et.route.path&&Et.route.path.length>0)}function getResolveToMatches(ht,Et){let yt=getPathContributingMatches(ht);return Et?yt.map((Ct,$t)=>$t===yt.length-1?Ct.pathname:Ct.pathnameBase):yt.map(Ct=>Ct.pathnameBase)}function resolveTo(ht,Et,yt,Ct){Ct===void 0&&(Ct=!1);let $t;typeof ht=="string"?$t=parsePath(ht):($t=_extends$8({},ht),invariant(!$t.pathname||!$t.pathname.includes("?"),getInvalidPathError("?","pathname","search",$t)),invariant(!$t.pathname||!$t.pathname.includes("#"),getInvalidPathError("#","pathname","hash",$t)),invariant(!$t.search||!$t.search.includes("#"),getInvalidPathError("#","search","hash",$t)));let At=ht===""||$t.pathname==="",Bt=At?"/":$t.pathname,Dt;if(Bt==null)Dt=yt;else{let Nt=Et.length-1;if(!Ct&&Bt.startsWith("..")){let jt=Bt.split("/");for(;jt[0]==="..";)jt.shift(),Nt-=1;$t.pathname=jt.join("/")}Dt=Nt>=0?Et[Nt]:"/"}let Ft=resolvePath($t,Dt),kt=Bt&&Bt!=="/"&&Bt.endsWith("/"),Mt=(At||Bt===".")&&yt.endsWith("/");return!Ft.pathname.endsWith("/")&&(kt||Mt)&&(Ft.pathname+="/"),Ft}const joinPaths=ht=>ht.join("/").replace(/\/\/+/g,"/"),normalizePathname=ht=>ht.replace(/\/+$/,"").replace(/^\/*/,"/"),normalizeSearch=ht=>!ht||ht==="?"?"":ht.startsWith("?")?ht:"?"+ht,normalizeHash=ht=>!ht||ht==="#"?"":ht.startsWith("#")?ht:"#"+ht;function isRouteErrorResponse(ht){return ht!=null&&typeof ht.status=="number"&&typeof ht.statusText=="string"&&typeof ht.internal=="boolean"&&"data"in ht}const validMutationMethodsArr=["post","put","patch","delete"];new Set(validMutationMethodsArr);const validRequestMethodsArr=["get",...validMutationMethodsArr];new Set(validRequestMethodsArr);/**
 * React Router v6.25.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function _extends$7(){return _extends$7=Object.assign?Object.assign.bind():function(ht){for(var Et=1;Et<arguments.length;Et++){var yt=arguments[Et];for(var Ct in yt)Object.prototype.hasOwnProperty.call(yt,Ct)&&(ht[Ct]=yt[Ct])}return ht},_extends$7.apply(this,arguments)}const DataRouterContext=reactExports.createContext(null),DataRouterStateContext=reactExports.createContext(null),NavigationContext=reactExports.createContext(null),LocationContext=reactExports.createContext(null),RouteContext=reactExports.createContext({outlet:null,matches:[],isDataRoute:!1}),RouteErrorContext=reactExports.createContext(null);function useHref(ht,Et){let{relative:yt}=Et===void 0?{}:Et;useInRouterContext()||invariant(!1);let{basename:Ct,navigator:$t}=reactExports.useContext(NavigationContext),{hash:At,pathname:Bt,search:Dt}=useResolvedPath(ht,{relative:yt}),Ft=Bt;return Ct!=="/"&&(Ft=Bt==="/"?Ct:joinPaths([Ct,Bt])),$t.createHref({pathname:Ft,search:Dt,hash:At})}function useInRouterContext(){return reactExports.useContext(LocationContext)!=null}function useLocation(){return useInRouterContext()||invariant(!1),reactExports.useContext(LocationContext).location}function useIsomorphicLayoutEffect$4(ht){reactExports.useContext(NavigationContext).static||reactExports.useLayoutEffect(ht)}function useNavigate(){let{isDataRoute:ht}=reactExports.useContext(RouteContext);return ht?useNavigateStable():useNavigateUnstable()}function useNavigateUnstable(){useInRouterContext()||invariant(!1);let ht=reactExports.useContext(DataRouterContext),{basename:Et,future:yt,navigator:Ct}=reactExports.useContext(NavigationContext),{matches:$t}=reactExports.useContext(RouteContext),{pathname:At}=useLocation(),Bt=JSON.stringify(getResolveToMatches($t,yt.v7_relativeSplatPath)),Dt=reactExports.useRef(!1);return useIsomorphicLayoutEffect$4(()=>{Dt.current=!0}),reactExports.useCallback(function(kt,Mt){if(Mt===void 0&&(Mt={}),!Dt.current)return;if(typeof kt=="number"){Ct.go(kt);return}let Nt=resolveTo(kt,JSON.parse(Bt),At,Mt.relative==="path");ht==null&&Et!=="/"&&(Nt.pathname=Nt.pathname==="/"?Et:joinPaths([Et,Nt.pathname])),(Mt.replace?Ct.replace:Ct.push)(Nt,Mt.state,Mt)},[Et,Ct,Bt,At,ht])}const OutletContext=reactExports.createContext(null);function useOutlet(ht){let Et=reactExports.useContext(RouteContext).outlet;return Et&&reactExports.createElement(OutletContext.Provider,{value:ht},Et)}function useParams(){let{matches:ht}=reactExports.useContext(RouteContext),Et=ht[ht.length-1];return Et?Et.params:{}}function useResolvedPath(ht,Et){let{relative:yt}=Et===void 0?{}:Et,{future:Ct}=reactExports.useContext(NavigationContext),{matches:$t}=reactExports.useContext(RouteContext),{pathname:At}=useLocation(),Bt=JSON.stringify(getResolveToMatches($t,Ct.v7_relativeSplatPath));return reactExports.useMemo(()=>resolveTo(ht,JSON.parse(Bt),At,yt==="path"),[ht,Bt,At,yt])}function useRoutes(ht,Et){return useRoutesImpl(ht)}function useRoutesImpl(ht,Et,yt,Ct){useInRouterContext()||invariant(!1);let{navigator:$t}=reactExports.useContext(NavigationContext),{matches:At}=reactExports.useContext(RouteContext),Bt=At[At.length-1],Dt=Bt?Bt.params:{};Bt&&Bt.pathname;let Ft=Bt?Bt.pathnameBase:"/";Bt&&Bt.route;let kt=useLocation(),Mt;Mt=kt;let Nt=Mt.pathname||"/",jt=Nt;if(Ft!=="/"){let Kt=Ft.replace(/^\//,"").split("/");jt="/"+Nt.replace(/^\//,"").split("/").slice(Kt.length).join("/")}let zt=matchRoutes(ht,{pathname:jt});return _renderMatches(zt&&zt.map(Kt=>Object.assign({},Kt,{params:Object.assign({},Dt,Kt.params),pathname:joinPaths([Ft,$t.encodeLocation?$t.encodeLocation(Kt.pathname).pathname:Kt.pathname]),pathnameBase:Kt.pathnameBase==="/"?Ft:joinPaths([Ft,$t.encodeLocation?$t.encodeLocation(Kt.pathnameBase).pathname:Kt.pathnameBase])})),At,yt,Ct)}function DefaultErrorComponent(){let ht=useRouteError(),Et=isRouteErrorResponse(ht)?ht.status+" "+ht.statusText:ht instanceof Error?ht.message:JSON.stringify(ht),yt=ht instanceof Error?ht.stack:null,$t={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("h2",null,"Unexpected Application Error!"),reactExports.createElement("h3",{style:{fontStyle:"italic"}},Et),yt?reactExports.createElement("pre",{style:$t},yt):null,null)}const defaultErrorElement=reactExports.createElement(DefaultErrorComponent,null);class RenderErrorBoundary extends reactExports.Component{constructor(Et){super(Et),this.state={location:Et.location,revalidation:Et.revalidation,error:Et.error}}static getDerivedStateFromError(Et){return{error:Et}}static getDerivedStateFromProps(Et,yt){return yt.location!==Et.location||yt.revalidation!=="idle"&&Et.revalidation==="idle"?{error:Et.error,location:Et.location,revalidation:Et.revalidation}:{error:Et.error!==void 0?Et.error:yt.error,location:yt.location,revalidation:Et.revalidation||yt.revalidation}}componentDidCatch(Et,yt){console.error("React Router caught the following error during render",Et,yt)}render(){return this.state.error!==void 0?reactExports.createElement(RouteContext.Provider,{value:this.props.routeContext},reactExports.createElement(RouteErrorContext.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function RenderedRoute(ht){let{routeContext:Et,match:yt,children:Ct}=ht,$t=reactExports.useContext(DataRouterContext);return $t&&$t.static&&$t.staticContext&&(yt.route.errorElement||yt.route.ErrorBoundary)&&($t.staticContext._deepestRenderedBoundaryId=yt.route.id),reactExports.createElement(RouteContext.Provider,{value:Et},Ct)}function _renderMatches(ht,Et,yt,Ct){var $t;if(Et===void 0&&(Et=[]),yt===void 0&&(yt=null),Ct===void 0&&(Ct=null),ht==null){var At;if((At=yt)!=null&&At.errors)ht=yt.matches;else return null}let Bt=ht,Dt=($t=yt)==null?void 0:$t.errors;if(Dt!=null){let Mt=Bt.findIndex(Nt=>Nt.route.id&&(Dt==null?void 0:Dt[Nt.route.id])!==void 0);Mt>=0||invariant(!1),Bt=Bt.slice(0,Math.min(Bt.length,Mt+1))}let Ft=!1,kt=-1;if(yt&&Ct&&Ct.v7_partialHydration)for(let Mt=0;Mt<Bt.length;Mt++){let Nt=Bt[Mt];if((Nt.route.HydrateFallback||Nt.route.hydrateFallbackElement)&&(kt=Mt),Nt.route.id){let{loaderData:jt,errors:zt}=yt,Vt=Nt.route.loader&&jt[Nt.route.id]===void 0&&(!zt||zt[Nt.route.id]===void 0);if(Nt.route.lazy||Vt){Ft=!0,kt>=0?Bt=Bt.slice(0,kt+1):Bt=[Bt[0]];break}}}return Bt.reduceRight((Mt,Nt,jt)=>{let zt,Vt=!1,Kt=null,Xt=null;yt&&(zt=Dt&&Nt.route.id?Dt[Nt.route.id]:void 0,Kt=Nt.route.errorElement||defaultErrorElement,Ft&&(kt<0&&jt===0?(Vt=!0,Xt=null):kt===jt&&(Vt=!0,Xt=Nt.route.hydrateFallbackElement||null)));let Qt=Et.concat(Bt.slice(0,jt+1)),Zt=()=>{let dr;return zt?dr=Kt:Vt?dr=Xt:Nt.route.Component?dr=reactExports.createElement(Nt.route.Component,null):Nt.route.element?dr=Nt.route.element:dr=Mt,reactExports.createElement(RenderedRoute,{match:Nt,routeContext:{outlet:Mt,matches:Qt,isDataRoute:yt!=null},children:dr})};return yt&&(Nt.route.ErrorBoundary||Nt.route.errorElement||jt===0)?reactExports.createElement(RenderErrorBoundary,{location:yt.location,revalidation:yt.revalidation,component:Kt,error:zt,children:Zt(),routeContext:{outlet:null,matches:Qt,isDataRoute:!0}}):Zt()},null)}var DataRouterHook$1=function(ht){return ht.UseBlocker="useBlocker",ht.UseRevalidator="useRevalidator",ht.UseNavigateStable="useNavigate",ht}(DataRouterHook$1||{}),DataRouterStateHook$1=function(ht){return ht.UseBlocker="useBlocker",ht.UseLoaderData="useLoaderData",ht.UseActionData="useActionData",ht.UseRouteError="useRouteError",ht.UseNavigation="useNavigation",ht.UseRouteLoaderData="useRouteLoaderData",ht.UseMatches="useMatches",ht.UseRevalidator="useRevalidator",ht.UseNavigateStable="useNavigate",ht.UseRouteId="useRouteId",ht}(DataRouterStateHook$1||{});function useDataRouterContext(ht){let Et=reactExports.useContext(DataRouterContext);return Et||invariant(!1),Et}function useDataRouterState(ht){let Et=reactExports.useContext(DataRouterStateContext);return Et||invariant(!1),Et}function useRouteContext(ht){let Et=reactExports.useContext(RouteContext);return Et||invariant(!1),Et}function useCurrentRouteId(ht){let Et=useRouteContext(),yt=Et.matches[Et.matches.length-1];return yt.route.id||invariant(!1),yt.route.id}function useRouteError(){var ht;let Et=reactExports.useContext(RouteErrorContext),yt=useDataRouterState(DataRouterStateHook$1.UseRouteError),Ct=useCurrentRouteId(DataRouterStateHook$1.UseRouteError);return Et!==void 0?Et:(ht=yt.errors)==null?void 0:ht[Ct]}function useNavigateStable(){let{router:ht}=useDataRouterContext(DataRouterHook$1.UseNavigateStable),Et=useCurrentRouteId(DataRouterStateHook$1.UseNavigateStable),yt=reactExports.useRef(!1);return useIsomorphicLayoutEffect$4(()=>{yt.current=!0}),reactExports.useCallback(function($t,At){At===void 0&&(At={}),yt.current&&(typeof $t=="number"?ht.navigate($t):ht.navigate($t,_extends$7({fromRouteId:Et},At)))},[ht,Et])}function Outlet(ht){return useOutlet(ht.context)}function Router(ht){let{basename:Et="/",children:yt=null,location:Ct,navigationType:$t=Action.Pop,navigator:At,static:Bt=!1,future:Dt}=ht;useInRouterContext()&&invariant(!1);let Ft=Et.replace(/^\/*/,"/"),kt=reactExports.useMemo(()=>({basename:Ft,navigator:At,static:Bt,future:_extends$7({v7_relativeSplatPath:!1},Dt)}),[Ft,Dt,At,Bt]);typeof Ct=="string"&&(Ct=parsePath(Ct));let{pathname:Mt="/",search:Nt="",hash:jt="",state:zt=null,key:Vt="default"}=Ct,Kt=reactExports.useMemo(()=>{let Xt=stripBasename(Mt,Ft);return Xt==null?null:{location:{pathname:Xt,search:Nt,hash:jt,state:zt,key:Vt},navigationType:$t}},[Ft,Mt,Nt,jt,zt,Vt,$t]);return Kt==null?null:reactExports.createElement(NavigationContext.Provider,{value:kt},reactExports.createElement(LocationContext.Provider,{children:yt,value:Kt}))}new Promise(()=>{});/**
 * React Router DOM v6.25.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function _extends$6(){return _extends$6=Object.assign?Object.assign.bind():function(ht){for(var Et=1;Et<arguments.length;Et++){var yt=arguments[Et];for(var Ct in yt)Object.prototype.hasOwnProperty.call(yt,Ct)&&(ht[Ct]=yt[Ct])}return ht},_extends$6.apply(this,arguments)}function _objectWithoutPropertiesLoose$3(ht,Et){if(ht==null)return{};var yt={},Ct=Object.keys(ht),$t,At;for(At=0;At<Ct.length;At++)$t=Ct[At],!(Et.indexOf($t)>=0)&&(yt[$t]=ht[$t]);return yt}function isModifiedEvent(ht){return!!(ht.metaKey||ht.altKey||ht.ctrlKey||ht.shiftKey)}function shouldProcessLinkClick(ht,Et){return ht.button===0&&(!Et||Et==="_self")&&!isModifiedEvent(ht)}function createSearchParams(ht){return ht===void 0&&(ht=""),new URLSearchParams(typeof ht=="string"||Array.isArray(ht)||ht instanceof URLSearchParams?ht:Object.keys(ht).reduce((Et,yt)=>{let Ct=ht[yt];return Et.concat(Array.isArray(Ct)?Ct.map($t=>[yt,$t]):[[yt,Ct]])},[]))}function getSearchParamsForLocation(ht,Et){let yt=createSearchParams(ht);return Et&&Et.forEach((Ct,$t)=>{yt.has($t)||Et.getAll($t).forEach(At=>{yt.append($t,At)})}),yt}const _excluded$Q=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],REACT_ROUTER_VERSION="6";try{window.__reactRouterVersion=REACT_ROUTER_VERSION}catch{}const START_TRANSITION="startTransition",startTransitionImpl=e$9[START_TRANSITION];function BrowserRouter(ht){let{basename:Et,children:yt,future:Ct,window:$t}=ht,At=reactExports.useRef();At.current==null&&(At.current=createBrowserHistory({window:$t,v5Compat:!0}));let Bt=At.current,[Dt,Ft]=reactExports.useState({action:Bt.action,location:Bt.location}),{v7_startTransition:kt}=Ct||{},Mt=reactExports.useCallback(Nt=>{kt&&startTransitionImpl?startTransitionImpl(()=>Ft(Nt)):Ft(Nt)},[Ft,kt]);return reactExports.useLayoutEffect(()=>Bt.listen(Mt),[Bt,Mt]),reactExports.createElement(Router,{basename:Et,children:yt,location:Dt.location,navigationType:Dt.action,navigator:Bt,future:Ct})}const isBrowser$3=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ABSOLUTE_URL_REGEX=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Link=reactExports.forwardRef(function(Et,yt){let{onClick:Ct,relative:$t,reloadDocument:At,replace:Bt,state:Dt,target:Ft,to:kt,preventScrollReset:Mt,unstable_viewTransition:Nt}=Et,jt=_objectWithoutPropertiesLoose$3(Et,_excluded$Q),{basename:zt}=reactExports.useContext(NavigationContext),Vt,Kt=!1;if(typeof kt=="string"&&ABSOLUTE_URL_REGEX.test(kt)&&(Vt=kt,isBrowser$3))try{let dr=new URL(window.location.href),cr=kt.startsWith("//")?new URL(dr.protocol+kt):new URL(kt),Er=stripBasename(cr.pathname,zt);cr.origin===dr.origin&&Er!=null?kt=Er+cr.search+cr.hash:Kt=!0}catch{}let Xt=useHref(kt,{relative:$t}),Qt=useLinkClickHandler(kt,{replace:Bt,state:Dt,target:Ft,preventScrollReset:Mt,relative:$t,unstable_viewTransition:Nt});function Zt(dr){Ct&&Ct(dr),dr.defaultPrevented||Qt(dr)}return reactExports.createElement("a",_extends$6({},jt,{href:Vt||Xt,onClick:Kt||At?Ct:Zt,ref:yt,target:Ft}))});var DataRouterHook;(function(ht){ht.UseScrollRestoration="useScrollRestoration",ht.UseSubmit="useSubmit",ht.UseSubmitFetcher="useSubmitFetcher",ht.UseFetcher="useFetcher",ht.useViewTransitionState="useViewTransitionState"})(DataRouterHook||(DataRouterHook={}));var DataRouterStateHook;(function(ht){ht.UseFetcher="useFetcher",ht.UseFetchers="useFetchers",ht.UseScrollRestoration="useScrollRestoration"})(DataRouterStateHook||(DataRouterStateHook={}));function useLinkClickHandler(ht,Et){let{target:yt,replace:Ct,state:$t,preventScrollReset:At,relative:Bt,unstable_viewTransition:Dt}=Et===void 0?{}:Et,Ft=useNavigate(),kt=useLocation(),Mt=useResolvedPath(ht,{relative:Bt});return reactExports.useCallback(Nt=>{if(shouldProcessLinkClick(Nt,yt)){Nt.preventDefault();let jt=Ct!==void 0?Ct:createPath(kt)===createPath(Mt);Ft(ht,{replace:jt,state:$t,preventScrollReset:At,relative:Bt,unstable_viewTransition:Dt})}},[kt,Ft,Mt,Ct,$t,yt,ht,At,Bt,Dt])}function useSearchParams(ht){let Et=reactExports.useRef(createSearchParams(ht)),yt=reactExports.useRef(!1),Ct=useLocation(),$t=reactExports.useMemo(()=>getSearchParamsForLocation(Ct.search,yt.current?null:Et.current),[Ct.search]),At=useNavigate(),Bt=reactExports.useCallback((Dt,Ft)=>{const kt=createSearchParams(typeof Dt=="function"?Dt($t):Dt);yt.current=!0,At("?"+kt,Ft)},[At,$t]);return[$t,Bt]}var dayjs_min={exports:{}};(function(ht,Et){(function(yt,Ct){ht.exports=Ct()})(commonjsGlobal,function(){var yt=1e3,Ct=6e4,$t=36e5,At="millisecond",Bt="second",Dt="minute",Ft="hour",kt="day",Mt="week",Nt="month",jt="quarter",zt="year",Vt="date",Kt="Invalid Date",Xt=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Qt=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Zt={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Wt){var Gt=["th","st","nd","rd"],Yt=Wt%100;return"["+Wt+(Gt[(Yt-20)%10]||Gt[Yt]||Gt[0])+"]"}},dr=function(Wt,Gt,Yt){var er=String(Wt);return!er||er.length>=Gt?Wt:""+Array(Gt+1-er.length).join(Yt)+Wt},cr={s:dr,z:function(Wt){var Gt=-Wt.utcOffset(),Yt=Math.abs(Gt),er=Math.floor(Yt/60),lr=Yt%60;return(Gt<=0?"+":"-")+dr(er,2,"0")+":"+dr(lr,2,"0")},m:function Wt(Gt,Yt){if(Gt.date()<Yt.date())return-Wt(Yt,Gt);var er=12*(Yt.year()-Gt.year())+(Yt.month()-Gt.month()),lr=Gt.clone().add(er,Nt),Jt=Yt-lr<0,Ut=Gt.clone().add(er+(Jt?-1:1),Nt);return+(-(er+(Yt-lr)/(Jt?lr-Ut:Ut-lr))||0)},a:function(Wt){return Wt<0?Math.ceil(Wt)||0:Math.floor(Wt)},p:function(Wt){return{M:Nt,y:zt,w:Mt,d:kt,D:Vt,h:Ft,m:Dt,s:Bt,ms:At,Q:jt}[Wt]||String(Wt||"").toLowerCase().replace(/s$/,"")},u:function(Wt){return Wt===void 0}},Er="en",pr={};pr[Er]=Zt;var gr="$isDayjsObject",vr=function(Wt){return Wt instanceof Lt||!(!Wt||!Wt[gr])},yr=function Wt(Gt,Yt,er){var lr;if(!Gt)return Er;if(typeof Gt=="string"){var Jt=Gt.toLowerCase();pr[Jt]&&(lr=Jt),Yt&&(pr[Jt]=Yt,lr=Jt);var Ut=Gt.split("-");if(!lr&&Ut.length>1)return Wt(Ut[0])}else{var ir=Gt.name;pr[ir]=Gt,lr=ir}return!er&&lr&&(Er=lr),lr||!er&&Er},xr=function(Wt,Gt){if(vr(Wt))return Wt.clone();var Yt=typeof Gt=="object"?Gt:{};return Yt.date=Wt,Yt.args=arguments,new Lt(Yt)},rr=cr;rr.l=yr,rr.i=vr,rr.w=function(Wt,Gt){return xr(Wt,{locale:Gt.$L,utc:Gt.$u,x:Gt.$x,$offset:Gt.$offset})};var Lt=function(){function Wt(Yt){this.$L=yr(Yt.locale,null,!0),this.parse(Yt),this.$x=this.$x||Yt.x||{},this[gr]=!0}var Gt=Wt.prototype;return Gt.parse=function(Yt){this.$d=function(er){var lr=er.date,Jt=er.utc;if(lr===null)return new Date(NaN);if(rr.u(lr))return new Date;if(lr instanceof Date)return new Date(lr);if(typeof lr=="string"&&!/Z$/i.test(lr)){var Ut=lr.match(Xt);if(Ut){var ir=Ut[2]-1||0,Cr=(Ut[7]||"0").substring(0,3);return Jt?new Date(Date.UTC(Ut[1],ir,Ut[3]||1,Ut[4]||0,Ut[5]||0,Ut[6]||0,Cr)):new Date(Ut[1],ir,Ut[3]||1,Ut[4]||0,Ut[5]||0,Ut[6]||0,Cr)}}return new Date(lr)}(Yt),this.init()},Gt.init=function(){var Yt=this.$d;this.$y=Yt.getFullYear(),this.$M=Yt.getMonth(),this.$D=Yt.getDate(),this.$W=Yt.getDay(),this.$H=Yt.getHours(),this.$m=Yt.getMinutes(),this.$s=Yt.getSeconds(),this.$ms=Yt.getMilliseconds()},Gt.$utils=function(){return rr},Gt.isValid=function(){return this.$d.toString()!==Kt},Gt.isSame=function(Yt,er){var lr=xr(Yt);return this.startOf(er)<=lr&&lr<=this.endOf(er)},Gt.isAfter=function(Yt,er){return xr(Yt)<this.startOf(er)},Gt.isBefore=function(Yt,er){return this.endOf(er)<xr(Yt)},Gt.$g=function(Yt,er,lr){return rr.u(Yt)?this[er]:this.set(lr,Yt)},Gt.unix=function(){return Math.floor(this.valueOf()/1e3)},Gt.valueOf=function(){return this.$d.getTime()},Gt.startOf=function(Yt,er){var lr=this,Jt=!!rr.u(er)||er,Ut=rr.p(Yt),ir=function(Rr,wr){var Sr=rr.w(lr.$u?Date.UTC(lr.$y,wr,Rr):new Date(lr.$y,wr,Rr),lr);return Jt?Sr:Sr.endOf(kt)},Cr=function(Rr,wr){return rr.w(lr.toDate()[Rr].apply(lr.toDate("s"),(Jt?[0,0,0,0]:[23,59,59,999]).slice(wr)),lr)},_r=this.$W,$r=this.$M,Tr=this.$D,Dr="set"+(this.$u?"UTC":"");switch(Ut){case zt:return Jt?ir(1,0):ir(31,11);case Nt:return Jt?ir(1,$r):ir(0,$r+1);case Mt:var Ar=this.$locale().weekStart||0,Fr=(_r<Ar?_r+7:_r)-Ar;return ir(Jt?Tr-Fr:Tr+(6-Fr),$r);case kt:case Vt:return Cr(Dr+"Hours",0);case Ft:return Cr(Dr+"Minutes",1);case Dt:return Cr(Dr+"Seconds",2);case Bt:return Cr(Dr+"Milliseconds",3);default:return this.clone()}},Gt.endOf=function(Yt){return this.startOf(Yt,!1)},Gt.$set=function(Yt,er){var lr,Jt=rr.p(Yt),Ut="set"+(this.$u?"UTC":""),ir=(lr={},lr[kt]=Ut+"Date",lr[Vt]=Ut+"Date",lr[Nt]=Ut+"Month",lr[zt]=Ut+"FullYear",lr[Ft]=Ut+"Hours",lr[Dt]=Ut+"Minutes",lr[Bt]=Ut+"Seconds",lr[At]=Ut+"Milliseconds",lr)[Jt],Cr=Jt===kt?this.$D+(er-this.$W):er;if(Jt===Nt||Jt===zt){var _r=this.clone().set(Vt,1);_r.$d[ir](Cr),_r.init(),this.$d=_r.set(Vt,Math.min(this.$D,_r.daysInMonth())).$d}else ir&&this.$d[ir](Cr);return this.init(),this},Gt.set=function(Yt,er){return this.clone().$set(Yt,er)},Gt.get=function(Yt){return this[rr.p(Yt)]()},Gt.add=function(Yt,er){var lr,Jt=this;Yt=Number(Yt);var Ut=rr.p(er),ir=function($r){var Tr=xr(Jt);return rr.w(Tr.date(Tr.date()+Math.round($r*Yt)),Jt)};if(Ut===Nt)return this.set(Nt,this.$M+Yt);if(Ut===zt)return this.set(zt,this.$y+Yt);if(Ut===kt)return ir(1);if(Ut===Mt)return ir(7);var Cr=(lr={},lr[Dt]=Ct,lr[Ft]=$t,lr[Bt]=yt,lr)[Ut]||1,_r=this.$d.getTime()+Yt*Cr;return rr.w(_r,this)},Gt.subtract=function(Yt,er){return this.add(-1*Yt,er)},Gt.format=function(Yt){var er=this,lr=this.$locale();if(!this.isValid())return lr.invalidDate||Kt;var Jt=Yt||"YYYY-MM-DDTHH:mm:ssZ",Ut=rr.z(this),ir=this.$H,Cr=this.$m,_r=this.$M,$r=lr.weekdays,Tr=lr.months,Dr=lr.meridiem,Ar=function(wr,Sr,Br,Or){return wr&&(wr[Sr]||wr(er,Jt))||Br[Sr].slice(0,Or)},Fr=function(wr){return rr.s(ir%12||12,wr,"0")},Rr=Dr||function(wr,Sr,Br){var Or=wr<12?"AM":"PM";return Br?Or.toLowerCase():Or};return Jt.replace(Qt,function(wr,Sr){return Sr||function(Br){switch(Br){case"YY":return String(er.$y).slice(-2);case"YYYY":return rr.s(er.$y,4,"0");case"M":return _r+1;case"MM":return rr.s(_r+1,2,"0");case"MMM":return Ar(lr.monthsShort,_r,Tr,3);case"MMMM":return Ar(Tr,_r);case"D":return er.$D;case"DD":return rr.s(er.$D,2,"0");case"d":return String(er.$W);case"dd":return Ar(lr.weekdaysMin,er.$W,$r,2);case"ddd":return Ar(lr.weekdaysShort,er.$W,$r,3);case"dddd":return $r[er.$W];case"H":return String(ir);case"HH":return rr.s(ir,2,"0");case"h":return Fr(1);case"hh":return Fr(2);case"a":return Rr(ir,Cr,!0);case"A":return Rr(ir,Cr,!1);case"m":return String(Cr);case"mm":return rr.s(Cr,2,"0");case"s":return String(er.$s);case"ss":return rr.s(er.$s,2,"0");case"SSS":return rr.s(er.$ms,3,"0");case"Z":return Ut}return null}(wr)||Ut.replace(":","")})},Gt.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Gt.diff=function(Yt,er,lr){var Jt,Ut=this,ir=rr.p(er),Cr=xr(Yt),_r=(Cr.utcOffset()-this.utcOffset())*Ct,$r=this-Cr,Tr=function(){return rr.m(Ut,Cr)};switch(ir){case zt:Jt=Tr()/12;break;case Nt:Jt=Tr();break;case jt:Jt=Tr()/3;break;case Mt:Jt=($r-_r)/6048e5;break;case kt:Jt=($r-_r)/864e5;break;case Ft:Jt=$r/$t;break;case Dt:Jt=$r/Ct;break;case Bt:Jt=$r/yt;break;default:Jt=$r}return lr?Jt:rr.a(Jt)},Gt.daysInMonth=function(){return this.endOf(Nt).$D},Gt.$locale=function(){return pr[this.$L]},Gt.locale=function(Yt,er){if(!Yt)return this.$L;var lr=this.clone(),Jt=yr(Yt,er,!0);return Jt&&(lr.$L=Jt),lr},Gt.clone=function(){return rr.w(this.$d,this)},Gt.toDate=function(){return new Date(this.valueOf())},Gt.toJSON=function(){return this.isValid()?this.toISOString():null},Gt.toISOString=function(){return this.$d.toISOString()},Gt.toString=function(){return this.$d.toUTCString()},Wt}(),Ht=Lt.prototype;return xr.prototype=Ht,[["$ms",At],["$s",Bt],["$m",Dt],["$H",Ft],["$W",kt],["$M",Nt],["$y",zt],["$D",Vt]].forEach(function(Wt){Ht[Wt[1]]=function(Gt){return this.$g(Gt,Wt[0],Wt[1])}}),xr.extend=function(Wt,Gt){return Wt.$i||(Wt(Gt,Lt,xr),Wt.$i=!0),xr},xr.locale=yr,xr.isDayjs=vr,xr.unix=function(Wt){return xr(1e3*Wt)},xr.en=pr[Er],xr.Ls=pr,xr.p={},xr})})(dayjs_min);var dayjs_minExports=dayjs_min.exports;const dayjs=getDefaultExportFromCjs$1(dayjs_minExports);var utc$1={exports:{}};(function(ht,Et){(function(yt,Ct){ht.exports=Ct()})(commonjsGlobal,function(){var yt="minute",Ct=/[+-]\d\d(?::?\d\d)?/g,$t=/([+-]|\d\d)/g;return function(At,Bt,Dt){var Ft=Bt.prototype;Dt.utc=function(Kt){var Xt={date:Kt,utc:!0,args:arguments};return new Bt(Xt)},Ft.utc=function(Kt){var Xt=Dt(this.toDate(),{locale:this.$L,utc:!0});return Kt?Xt.add(this.utcOffset(),yt):Xt},Ft.local=function(){return Dt(this.toDate(),{locale:this.$L,utc:!1})};var kt=Ft.parse;Ft.parse=function(Kt){Kt.utc&&(this.$u=!0),this.$utils().u(Kt.$offset)||(this.$offset=Kt.$offset),kt.call(this,Kt)};var Mt=Ft.init;Ft.init=function(){if(this.$u){var Kt=this.$d;this.$y=Kt.getUTCFullYear(),this.$M=Kt.getUTCMonth(),this.$D=Kt.getUTCDate(),this.$W=Kt.getUTCDay(),this.$H=Kt.getUTCHours(),this.$m=Kt.getUTCMinutes(),this.$s=Kt.getUTCSeconds(),this.$ms=Kt.getUTCMilliseconds()}else Mt.call(this)};var Nt=Ft.utcOffset;Ft.utcOffset=function(Kt,Xt){var Qt=this.$utils().u;if(Qt(Kt))return this.$u?0:Qt(this.$offset)?Nt.call(this):this.$offset;if(typeof Kt=="string"&&(Kt=function(Er){Er===void 0&&(Er="");var pr=Er.match(Ct);if(!pr)return null;var gr=(""+pr[0]).match($t)||["-",0,0],vr=gr[0],yr=60*+gr[1]+ +gr[2];return yr===0?0:vr==="+"?yr:-yr}(Kt),Kt===null))return this;var Zt=Math.abs(Kt)<=16?60*Kt:Kt,dr=this;if(Xt)return dr.$offset=Zt,dr.$u=Kt===0,dr;if(Kt!==0){var cr=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(dr=this.local().add(Zt+cr,yt)).$offset=Zt,dr.$x.$localOffset=cr}else dr=this.utc();return dr};var jt=Ft.format;Ft.format=function(Kt){var Xt=Kt||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return jt.call(this,Xt)},Ft.valueOf=function(){var Kt=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*Kt},Ft.isUTC=function(){return!!this.$u},Ft.toISOString=function(){return this.toDate().toISOString()},Ft.toString=function(){return this.toDate().toUTCString()};var zt=Ft.toDate;Ft.toDate=function(Kt){return Kt==="s"&&this.$offset?Dt(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():zt.call(this)};var Vt=Ft.diff;Ft.diff=function(Kt,Xt,Qt){if(Kt&&this.$u===Kt.$u)return Vt.call(this,Kt,Xt,Qt);var Zt=this.local(),dr=Dt(Kt).local();return Vt.call(Zt,dr,Xt,Qt)}}})})(utc$1);var utcExports=utc$1.exports;const utc=getDefaultExportFromCjs$1(utcExports);var timezone$1={exports:{}};(function(ht,Et){(function(yt,Ct){ht.exports=Ct()})(commonjsGlobal,function(){var yt={year:0,month:1,day:2,hour:3,minute:4,second:5},Ct={};return function($t,At,Bt){var Dt,Ft=function(jt,zt,Vt){Vt===void 0&&(Vt={});var Kt=new Date(jt),Xt=function(Qt,Zt){Zt===void 0&&(Zt={});var dr=Zt.timeZoneName||"short",cr=Qt+"|"+dr,Er=Ct[cr];return Er||(Er=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:Qt,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:dr}),Ct[cr]=Er),Er}(zt,Vt);return Xt.formatToParts(Kt)},kt=function(jt,zt){for(var Vt=Ft(jt,zt),Kt=[],Xt=0;Xt<Vt.length;Xt+=1){var Qt=Vt[Xt],Zt=Qt.type,dr=Qt.value,cr=yt[Zt];cr>=0&&(Kt[cr]=parseInt(dr,10))}var Er=Kt[3],pr=Er===24?0:Er,gr=Kt[0]+"-"+Kt[1]+"-"+Kt[2]+" "+pr+":"+Kt[4]+":"+Kt[5]+":000",vr=+jt;return(Bt.utc(gr).valueOf()-(vr-=vr%1e3))/6e4},Mt=At.prototype;Mt.tz=function(jt,zt){jt===void 0&&(jt=Dt);var Vt,Kt=this.utcOffset(),Xt=this.toDate(),Qt=Xt.toLocaleString("en-US",{timeZone:jt}),Zt=Math.round((Xt-new Date(Qt))/1e3/60),dr=15*-Math.round(Xt.getTimezoneOffset()/15)-Zt;if(!Number(dr))Vt=this.utcOffset(0,zt);else if(Vt=Bt(Qt,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(dr,!0),zt){var cr=Vt.utcOffset();Vt=Vt.add(Kt-cr,"minute")}return Vt.$x.$timezone=jt,Vt},Mt.offsetName=function(jt){var zt=this.$x.$timezone||Bt.tz.guess(),Vt=Ft(this.valueOf(),zt,{timeZoneName:jt}).find(function(Kt){return Kt.type.toLowerCase()==="timezonename"});return Vt&&Vt.value};var Nt=Mt.startOf;Mt.startOf=function(jt,zt){if(!this.$x||!this.$x.$timezone)return Nt.call(this,jt,zt);var Vt=Bt(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return Nt.call(Vt,jt,zt).tz(this.$x.$timezone,!0)},Bt.tz=function(jt,zt,Vt){var Kt=Vt&&zt,Xt=Vt||zt||Dt,Qt=kt(+Bt(),Xt);if(typeof jt!="string")return Bt(jt).tz(Xt);var Zt=function(pr,gr,vr){var yr=pr-60*gr*1e3,xr=kt(yr,vr);if(gr===xr)return[yr,gr];var rr=kt(yr-=60*(xr-gr)*1e3,vr);return xr===rr?[yr,xr]:[pr-60*Math.min(xr,rr)*1e3,Math.max(xr,rr)]}(Bt.utc(jt,Kt).valueOf(),Qt,Xt),dr=Zt[0],cr=Zt[1],Er=Bt(dr).utcOffset(cr);return Er.$x.$timezone=Xt,Er},Bt.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},Bt.tz.setDefault=function(jt){Dt=jt}}})})(timezone$1);var timezoneExports=timezone$1.exports;const timezone=getDefaultExportFromCjs$1(timezoneExports);var relativeTime$1={exports:{}};(function(ht,Et){(function(yt,Ct){ht.exports=Ct()})(commonjsGlobal,function(){return function(yt,Ct,$t){yt=yt||{};var At=Ct.prototype,Bt={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Dt(kt,Mt,Nt,jt){return At.fromToBase(kt,Mt,Nt,jt)}$t.en.relativeTime=Bt,At.fromToBase=function(kt,Mt,Nt,jt,zt){for(var Vt,Kt,Xt,Qt=Nt.$locale().relativeTime||Bt,Zt=yt.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],dr=Zt.length,cr=0;cr<dr;cr+=1){var Er=Zt[cr];Er.d&&(Vt=jt?$t(kt).diff(Nt,Er.d,!0):Nt.diff(kt,Er.d,!0));var pr=(yt.rounding||Math.round)(Math.abs(Vt));if(Xt=Vt>0,pr<=Er.r||!Er.r){pr<=1&&cr>0&&(Er=Zt[cr-1]);var gr=Qt[Er.l];zt&&(pr=zt(""+pr)),Kt=typeof gr=="string"?gr.replace("%d",pr):gr(pr,Mt,Er.l,Xt);break}}if(Mt)return Kt;var vr=Xt?Qt.future:Qt.past;return typeof vr=="function"?vr(Kt):vr.replace("%s",Kt)},At.to=function(kt,Mt){return Dt(kt,Mt,this,!0)},At.from=function(kt,Mt){return Dt(kt,Mt,this)};var Ft=function(kt){return kt.$u?$t.utc():$t()};At.toNow=function(kt){return this.to(Ft(this),kt)},At.fromNow=function(kt){return this.from(Ft(this),kt)}}})})(relativeTime$1);var relativeTimeExports=relativeTime$1.exports;const relativeTime=getDefaultExportFromCjs$1(relativeTimeExports);var lib$4={},metamaskProvider={},metamaskContext={},__createBinding$4=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(ht,Et,yt,Ct){Ct===void 0&&(Ct=yt);var $t=Object.getOwnPropertyDescriptor(Et,yt);(!$t||("get"in $t?!Et.__esModule:$t.writable||$t.configurable))&&($t={enumerable:!0,get:function(){return Et[yt]}}),Object.defineProperty(ht,Ct,$t)}:function(ht,Et,yt,Ct){Ct===void 0&&(Ct=yt),ht[Ct]=Et[yt]}),__setModuleDefault$3=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(ht,Et){Object.defineProperty(ht,"default",{enumerable:!0,value:Et})}:function(ht,Et){ht.default=Et}),__importStar$4=commonjsGlobal&&commonjsGlobal.__importStar||function(ht){if(ht&&ht.__esModule)return ht;var Et={};if(ht!=null)for(var yt in ht)yt!=="default"&&Object.prototype.hasOwnProperty.call(ht,yt)&&__createBinding$4(Et,ht,yt);return __setModuleDefault$3(Et,ht),Et};Object.defineProperty(metamaskContext,"__esModule",{value:!0});metamaskContext.MetamaskContext=void 0;var React$7=__importStar$4(reactExports);metamaskContext.MetamaskContext=React$7.createContext(void 0);var reducer$1={},__assign$7=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$7=Object.assign||function(ht){for(var Et,yt=1,Ct=arguments.length;yt<Ct;yt++){Et=arguments[yt];for(var $t in Et)Object.prototype.hasOwnProperty.call(Et,$t)&&(ht[$t]=Et[$t])}return ht},__assign$7.apply(this,arguments)};Object.defineProperty(reducer$1,"__esModule",{value:!0});reducer$1.reducer=void 0;function reducer(ht,Et){switch(Et.type){case"metaMaskUnavailable":return{chainId:null,account:null,status:"unavailable"};case"metaMaskNotConnected":return{chainId:Et.payload.chainId,account:null,status:"notConnected"};case"metaMaskConnected":var yt=Et.payload.accounts;return{chainId:Et.payload.chainId,account:yt[0],status:"connected"};case"metaMaskConnecting":return ht.status==="initializing"||ht.status==="unavailable"?(console.warn('Invalid state transition from "'.concat(ht.status,'" to "connecting". Please, file an issue.')),ht):__assign$7(__assign$7({},ht),{account:null,status:"connecting"});case"metaMaskPermissionRejected":return ht.status==="initializing"||ht.status==="unavailable"?(console.warn('Invalid state transition from "'.concat(ht.status,'" to "connecting". Please, file an issue.')),ht):__assign$7(__assign$7({},ht),{account:null,status:"notConnected"});case"metaMaskAccountsChanged":if(ht.status!=="connected")return console.warn('Invalid accounts change in "'.concat(ht.status,'". Please, file an issue.')),ht;var Ct=Et.payload;return Ct.length===0?__assign$7(__assign$7({},ht),{account:null,status:"notConnected"}):__assign$7(__assign$7({},ht),{account:Ct[0]});case"metaMaskChainChanged":return ht.status==="initializing"||ht.status==="unavailable"?(console.warn('Invalid chain ID change in "'.concat(ht.status,'". Please, file an issue.')),ht):__assign$7(__assign$7({},ht),{chainId:Et.payload})}}reducer$1.reducer=reducer;var useSafeDispatch$1={},__createBinding$3=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(ht,Et,yt,Ct){Ct===void 0&&(Ct=yt);var $t=Object.getOwnPropertyDescriptor(Et,yt);(!$t||("get"in $t?!Et.__esModule:$t.writable||$t.configurable))&&($t={enumerable:!0,get:function(){return Et[yt]}}),Object.defineProperty(ht,Ct,$t)}:function(ht,Et,yt,Ct){Ct===void 0&&(Ct=yt),ht[Ct]=Et[yt]}),__setModuleDefault$2=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(ht,Et){Object.defineProperty(ht,"default",{enumerable:!0,value:Et})}:function(ht,Et){ht.default=Et}),__importStar$3=commonjsGlobal&&commonjsGlobal.__importStar||function(ht){if(ht&&ht.__esModule)return ht;var Et={};if(ht!=null)for(var yt in ht)yt!=="default"&&Object.prototype.hasOwnProperty.call(ht,yt)&&__createBinding$3(Et,ht,yt);return __setModuleDefault$2(Et,ht),Et};Object.defineProperty(useSafeDispatch$1,"__esModule",{value:!0});useSafeDispatch$1.useSafeDispatch=void 0;var React$6=__importStar$3(reactExports),useIsomorphicLayoutEffect$3=typeof window<"u"?React$6.useLayoutEffect:React$6.useEffect;function useSafeDispatch(ht){var Et=React$6.useRef(!1);useIsomorphicLayoutEffect$3(function(){return Et.current=!0,function(){Et.current=!1}},[]);var yt=React$6.useCallback(function(Ct){Et.current&&ht(Ct)},[ht]);return yt}useSafeDispatch$1.useSafeDispatch=useSafeDispatch;var __assign$6=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$6=Object.assign||function(ht){for(var Et,yt=1,Ct=arguments.length;yt<Ct;yt++){Et=arguments[yt];for(var $t in Et)Object.prototype.hasOwnProperty.call(Et,$t)&&(ht[$t]=Et[$t])}return ht},__assign$6.apply(this,arguments)},__createBinding$2=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(ht,Et,yt,Ct){Ct===void 0&&(Ct=yt);var $t=Object.getOwnPropertyDescriptor(Et,yt);(!$t||("get"in $t?!Et.__esModule:$t.writable||$t.configurable))&&($t={enumerable:!0,get:function(){return Et[yt]}}),Object.defineProperty(ht,Ct,$t)}:function(ht,Et,yt,Ct){Ct===void 0&&(Ct=yt),ht[Ct]=Et[yt]}),__setModuleDefault$1=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(ht,Et){Object.defineProperty(ht,"default",{enumerable:!0,value:Et})}:function(ht,Et){ht.default=Et}),__importStar$2=commonjsGlobal&&commonjsGlobal.__importStar||function(ht){if(ht&&ht.__esModule)return ht;var Et={};if(ht!=null)for(var yt in ht)yt!=="default"&&Object.prototype.hasOwnProperty.call(ht,yt)&&__createBinding$2(Et,ht,yt);return __setModuleDefault$1(Et,ht),Et},__awaiter$5=commonjsGlobal&&commonjsGlobal.__awaiter||function(ht,Et,yt,Ct){function $t(At){return At instanceof yt?At:new yt(function(Bt){Bt(At)})}return new(yt||(yt=Promise))(function(At,Bt){function Dt(Mt){try{kt(Ct.next(Mt))}catch(Nt){Bt(Nt)}}function Ft(Mt){try{kt(Ct.throw(Mt))}catch(Nt){Bt(Nt)}}function kt(Mt){Mt.done?At(Mt.value):$t(Mt.value).then(Dt,Ft)}kt((Ct=Ct.apply(ht,Et||[])).next())})},__generator$4=commonjsGlobal&&commonjsGlobal.__generator||function(ht,Et){var yt={label:0,sent:function(){if(At[0]&1)throw At[1];return At[1]},trys:[],ops:[]},Ct,$t,At,Bt;return Bt={next:Dt(0),throw:Dt(1),return:Dt(2)},typeof Symbol=="function"&&(Bt[Symbol.iterator]=function(){return this}),Bt;function Dt(kt){return function(Mt){return Ft([kt,Mt])}}function Ft(kt){if(Ct)throw new TypeError("Generator is already executing.");for(;Bt&&(Bt=0,kt[0]&&(yt=0)),yt;)try{if(Ct=1,$t&&(At=kt[0]&2?$t.return:kt[0]?$t.throw||((At=$t.return)&&At.call($t),0):$t.next)&&!(At=At.call($t,kt[1])).done)return At;switch($t=0,At&&(kt=[kt[0]&2,At.value]),kt[0]){case 0:case 1:At=kt;break;case 4:return yt.label++,{value:kt[1],done:!1};case 5:yt.label++,$t=kt[1],kt=[0];continue;case 7:kt=yt.ops.pop(),yt.trys.pop();continue;default:if(At=yt.trys,!(At=At.length>0&&At[At.length-1])&&(kt[0]===6||kt[0]===2)){yt=0;continue}if(kt[0]===3&&(!At||kt[1]>At[0]&&kt[1]<At[3])){yt.label=kt[1];break}if(kt[0]===6&&yt.label<At[1]){yt.label=At[1],At=kt;break}if(At&&yt.label<At[2]){yt.label=At[2],yt.ops.push(kt);break}At[2]&&yt.ops.pop(),yt.trys.pop();continue}kt=Et.call(ht,yt)}catch(Mt){kt=[6,Mt],$t=0}finally{Ct=At=0}if(kt[0]&5)throw kt[1];return{value:kt[0]?kt[1]:void 0,done:!0}}};Object.defineProperty(metamaskProvider,"__esModule",{value:!0});metamaskProvider.MetaMaskProvider=void 0;var jsx_runtime_1=jsxRuntimeExports,React$5=__importStar$2(reactExports),metamask_context_1$1=metamaskContext,reducer_1=reducer$1,useSafeDispatch_1=useSafeDispatch$1,ERROR_CODE_REQUEST_PENDING=-32002;function getMetaMaskProvider(){var ht=window.ethereum;if(!ht)return null;if(Array.isArray(ht.providers)){var Et=ht.providers.find(function(Ct){return Ct.isMetaMask&&!Ct.isBraveWallet});if(Et)return Et;var yt=ht.providers.find(function(Ct){return Ct.isMetaMask&&Ct.isBraveWallet});return yt||null}return ht.isMetaMask?ht:null}function getSafeMetaMaskProvider(){var ht=getMetaMaskProvider();if(!ht)throw new Error("MetaMask provider must be present in order to use this method");return ht}function synchronize(ht){return __awaiter$5(this,void 0,void 0,function(){var Et,yt,Ct;return __generator$4(this,function($t){switch($t.label){case 0:return Et=getMetaMaskProvider(),Et?[4,Et.request({method:"eth_chainId"})]:(ht({type:"metaMaskUnavailable"}),[2]);case 1:return yt=$t.sent(),[4,Et.request({method:"eth_accounts"})];case 2:return Ct=$t.sent(),Ct.length===0?ht({type:"metaMaskNotConnected",payload:{chainId:yt}}):ht({type:"metaMaskConnected",payload:{accounts:Ct,chainId:yt}}),[2]}})})}function subscribeToManualConnection(ht){var Et=this,yt=getSafeMetaMaskProvider(),Ct=function($t){return __awaiter$5(Et,void 0,void 0,function(){var At;return __generator$4(this,function(Bt){switch(Bt.label){case 0:return $t.length===0?[2]:[4,yt.request({method:"eth_chainId"})];case 1:return At=Bt.sent(),ht({type:"metaMaskConnected",payload:{accounts:$t,chainId:At}}),[2]}})})};return yt.on("accountsChanged",Ct),function(){yt.removeListener("accountsChanged",Ct)}}function subsribeToAccountsChanged(ht){var Et=getSafeMetaMaskProvider(),yt=function(Ct){return ht({type:"metaMaskAccountsChanged",payload:Ct})};return Et.on("accountsChanged",yt),function(){Et.removeListener("accountsChanged",yt)}}function subscribeToChainChanged(ht){var Et=getSafeMetaMaskProvider(),yt=function(Ct){return ht({type:"metaMaskChainChanged",payload:Ct})};return Et.on("chainChanged",yt),function(){Et.removeListener("chainChanged",yt)}}function requestAccounts(ht){var Et=this,yt=getSafeMetaMaskProvider();return ht({type:"metaMaskConnecting"}),new Promise(function(Ct,$t){var At=setInterval(function(){return __awaiter$5(Et,void 0,void 0,function(){var Bt,Dt;return __generator$4(this,function(Ft){switch(Ft.label){case 0:return[4,yt.request({method:"eth_accounts"})];case 1:return Bt=Ft.sent(),Bt.length===0?[2]:(clearInterval(At),[4,yt.request({method:"eth_chainId"})]);case 2:return Dt=Ft.sent(),ht({type:"metaMaskConnected",payload:{accounts:Bt,chainId:Dt}}),Ct(Bt),[2]}})})},200);yt.request({method:"eth_requestAccounts"}).then(function(Bt){return __awaiter$5(Et,void 0,void 0,function(){var Dt;return __generator$4(this,function(Ft){switch(Ft.label){case 0:return clearInterval(At),[4,yt.request({method:"eth_chainId"})];case 1:return Dt=Ft.sent(),ht({type:"metaMaskConnected",payload:{accounts:Bt,chainId:Dt}}),Ct(Bt),[2]}})})}).catch(function(Bt){"code"in Bt&&Bt.code===ERROR_CODE_REQUEST_PENDING||(ht({type:"metaMaskPermissionRejected"}),clearInterval(At),$t(Bt))})})}function addEthereumChain(ht){return __awaiter$5(this,void 0,void 0,function(){var Et,yt;return __generator$4(this,function(Ct){switch(Ct.label){case 0:Et=getSafeMetaMaskProvider(),Ct.label=1;case 1:return Ct.trys.push([1,3,,4]),[4,Et.request({method:"wallet_addEthereumChain",params:[ht]})];case 2:return Ct.sent(),[3,4];case 3:if(yt=Ct.sent(),"code"in yt&&yt.code===ERROR_CODE_REQUEST_PENDING)return[2];throw yt;case 4:return[2]}})})}function switchEthereumChain(ht){return __awaiter$5(this,void 0,void 0,function(){var Et,yt;return __generator$4(this,function(Ct){switch(Ct.label){case 0:Et=getSafeMetaMaskProvider(),Ct.label=1;case 1:return Ct.trys.push([1,3,,4]),[4,Et.request({method:"wallet_switchEthereumChain",params:[{chainId:ht}]})];case 2:return Ct.sent(),[3,4];case 3:if(yt=Ct.sent(),"code"in yt&&yt.code===ERROR_CODE_REQUEST_PENDING)return[2];throw yt;case 4:return[2]}})})}var initialState={status:"initializing",account:null,chainId:null};function MetaMaskProvider(ht){var Et=React$5.useReducer(reducer_1.reducer,initialState),yt=Et[0],Ct=Et[1],$t=(0,useSafeDispatch_1.useSafeDispatch)(Ct),At=yt.status,Bt=At==="initializing";React$5.useEffect(function(){Bt&&synchronize($t)},[$t,Bt]);var Dt=At==="connected";React$5.useEffect(function(){if(!Dt)return function(){};var Vt=subsribeToAccountsChanged($t);return Vt},[$t,Dt]);var Ft=At!=="unavailable"&&At!=="initializing";React$5.useEffect(function(){if(!Ft)return function(){};var Vt=subscribeToChainChanged($t);return Vt},[$t,Ft]);var kt=At==="notConnected";React$5.useEffect(function(){if(!kt)return function(){};var Vt=subscribeToManualConnection($t);return Vt},[$t,kt]);var Mt=React$5.useCallback(function(){return Ft?requestAccounts($t):(console.warn("`enable` method has been called while MetaMask is not available or synchronising. Nothing will be done in this case."),Promise.resolve([]))},[$t,Ft]),Nt=React$5.useCallback(function(Vt){return Ft?addEthereumChain(Vt):(console.warn("`addChain` method has been called while MetaMask is not available or synchronising. Nothing will be done in this case."),Promise.resolve())},[Ft]),jt=React$5.useCallback(function(Vt){return Ft?switchEthereumChain(Vt):(console.warn("`switchChain` method has been called while MetaMask is not available or synchronising. Nothing will be done in this case."),Promise.resolve())},[Ft]),zt=React$5.useMemo(function(){return __assign$6(__assign$6({},yt),{connect:Mt,addChain:Nt,switchChain:jt,ethereum:Ft?getSafeMetaMaskProvider():null})},[Mt,Nt,jt,yt,Ft]);return(0,jsx_runtime_1.jsx)(metamask_context_1$1.MetamaskContext.Provider,__assign$6({value:zt},ht))}metamaskProvider.MetaMaskProvider=MetaMaskProvider;var useMetamask={},__createBinding$1=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(ht,Et,yt,Ct){Ct===void 0&&(Ct=yt);var $t=Object.getOwnPropertyDescriptor(Et,yt);(!$t||("get"in $t?!Et.__esModule:$t.writable||$t.configurable))&&($t={enumerable:!0,get:function(){return Et[yt]}}),Object.defineProperty(ht,Ct,$t)}:function(ht,Et,yt,Ct){Ct===void 0&&(Ct=yt),ht[Ct]=Et[yt]}),__setModuleDefault=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(ht,Et){Object.defineProperty(ht,"default",{enumerable:!0,value:Et})}:function(ht,Et){ht.default=Et}),__importStar$1=commonjsGlobal&&commonjsGlobal.__importStar||function(ht){if(ht&&ht.__esModule)return ht;var Et={};if(ht!=null)for(var yt in ht)yt!=="default"&&Object.prototype.hasOwnProperty.call(ht,yt)&&__createBinding$1(Et,ht,yt);return __setModuleDefault(Et,ht),Et};Object.defineProperty(useMetamask,"__esModule",{value:!0});useMetamask.useConnectedMetaMask=useMetamask.useMetaMask=void 0;var React$4=__importStar$1(reactExports),metamask_context_1=metamaskContext;function useMetaMask(){var ht=React$4.useContext(metamask_context_1.MetamaskContext);if(!ht)throw new Error("`useMetamask` should be used within a `MetaMaskProvider`");return ht}useMetamask.useMetaMask=useMetaMask;function useConnectedMetaMask(){var ht=useMetaMask();if(ht.status!=="connected")throw new Error("`useConnectedMetaMask` can only be used when the user is connected");return ht}useMetamask.useConnectedMetaMask=useConnectedMetaMask;(function(ht){var Et=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Ct,$t,At,Bt){Bt===void 0&&(Bt=At);var Dt=Object.getOwnPropertyDescriptor($t,At);(!Dt||("get"in Dt?!$t.__esModule:Dt.writable||Dt.configurable))&&(Dt={enumerable:!0,get:function(){return $t[At]}}),Object.defineProperty(Ct,Bt,Dt)}:function(Ct,$t,At,Bt){Bt===void 0&&(Bt=At),Ct[Bt]=$t[At]}),yt=commonjsGlobal&&commonjsGlobal.__exportStar||function(Ct,$t){for(var At in Ct)At!=="default"&&!Object.prototype.hasOwnProperty.call($t,At)&&Et($t,Ct,At)};Object.defineProperty(ht,"__esModule",{value:!0}),yt(metamaskProvider,ht),yt(useMetamask,ht)})(lib$4);function createSyncStoragePersister({storage:ht,key:Et="REACT_QUERY_OFFLINE_CACHE",throttleTime:yt=1e3,serialize:Ct=JSON.stringify,deserialize:$t=JSON.parse,retry:At}){if(ht){const Bt=Dt=>{try{ht.setItem(Et,Ct(Dt));return}catch(Ft){return Ft}};return{persistClient:throttle$2(Dt=>{let Ft=Dt,kt=Bt(Ft),Mt=0;for(;kt&&Ft;)Mt++,Ft=At==null?void 0:At({persistedClient:Ft,error:kt,errorCount:Mt}),Ft&&(kt=Bt(Ft))},yt),restoreClient:()=>{const Dt=ht.getItem(Et);if(Dt)return $t(Dt)},removeClient:()=>{ht.removeItem(Et)}}}return{persistClient:noop$c,restoreClient:()=>{},removeClient:noop$c}}function throttle$2(ht,Et=100){let yt=null,Ct;return function(...$t){Ct=$t,yt===null&&(yt=setTimeout(()=>{ht(...Ct),yt=null},Et))}}function noop$c(){}class Subscribable{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(Et){const yt={listener:Et};return this.listeners.add(yt),this.onSubscribe(),()=>{this.listeners.delete(yt),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const isServer=typeof window>"u"||"Deno"in window;function noop$b(){}function functionalUpdate(ht,Et){return typeof ht=="function"?ht(Et):ht}function isValidTimeout(ht){return typeof ht=="number"&&ht>=0&&ht!==1/0}function timeUntilStale(ht,Et){return Math.max(ht+(Et||0)-Date.now(),0)}function parseQueryArgs$1(ht,Et,yt){return isQueryKey$1(ht)?typeof Et=="function"?{...yt,queryKey:ht,queryFn:Et}:{...Et,queryKey:ht}:ht}function parseMutationArgs(ht,Et,yt){return isQueryKey$1(ht)?typeof Et=="function"?{...yt,mutationKey:ht,mutationFn:Et}:{...Et,mutationKey:ht}:typeof ht=="function"?{...Et,mutationFn:ht}:{...ht}}function parseFilterArgs(ht,Et,yt){return isQueryKey$1(ht)?[{...Et,queryKey:ht},yt]:[ht||{},Et]}function matchQuery(ht,Et){const{type:yt="all",exact:Ct,fetchStatus:$t,predicate:At,queryKey:Bt,stale:Dt}=ht;if(isQueryKey$1(Bt)){if(Ct){if(Et.queryHash!==hashQueryKeyByOptions(Bt,Et.options))return!1}else if(!partialMatchKey(Et.queryKey,Bt))return!1}if(yt!=="all"){const Ft=Et.isActive();if(yt==="active"&&!Ft||yt==="inactive"&&Ft)return!1}return!(typeof Dt=="boolean"&&Et.isStale()!==Dt||typeof $t<"u"&&$t!==Et.state.fetchStatus||At&&!At(Et))}function matchMutation(ht,Et){const{exact:yt,fetching:Ct,predicate:$t,mutationKey:At}=ht;if(isQueryKey$1(At)){if(!Et.options.mutationKey)return!1;if(yt){if(hashQueryKey(Et.options.mutationKey)!==hashQueryKey(At))return!1}else if(!partialMatchKey(Et.options.mutationKey,At))return!1}return!(typeof Ct=="boolean"&&Et.state.status==="loading"!==Ct||$t&&!$t(Et))}function hashQueryKeyByOptions(ht,Et){return((Et==null?void 0:Et.queryKeyHashFn)||hashQueryKey)(ht)}function hashQueryKey(ht){return JSON.stringify(ht,(Et,yt)=>isPlainObject$6(yt)?Object.keys(yt).sort().reduce((Ct,$t)=>(Ct[$t]=yt[$t],Ct),{}):yt)}function partialMatchKey(ht,Et){return partialDeepEqual(ht,Et)}function partialDeepEqual(ht,Et){return ht===Et?!0:typeof ht!=typeof Et?!1:ht&&Et&&typeof ht=="object"&&typeof Et=="object"?!Object.keys(Et).some(yt=>!partialDeepEqual(ht[yt],Et[yt])):!1}function replaceEqualDeep(ht,Et){if(ht===Et)return ht;const yt=isPlainArray(ht)&&isPlainArray(Et);if(yt||isPlainObject$6(ht)&&isPlainObject$6(Et)){const Ct=yt?ht.length:Object.keys(ht).length,$t=yt?Et:Object.keys(Et),At=$t.length,Bt=yt?[]:{};let Dt=0;for(let Ft=0;Ft<At;Ft++){const kt=yt?Ft:$t[Ft];Bt[kt]=replaceEqualDeep(ht[kt],Et[kt]),Bt[kt]===ht[kt]&&Dt++}return Ct===At&&Dt===Ct?ht:Bt}return Et}function shallowEqualObjects(ht,Et){if(ht&&!Et||Et&&!ht)return!1;for(const yt in ht)if(ht[yt]!==Et[yt])return!1;return!0}function isPlainArray(ht){return Array.isArray(ht)&&ht.length===Object.keys(ht).length}function isPlainObject$6(ht){if(!hasObjectPrototype$1(ht))return!1;const Et=ht.constructor;if(typeof Et>"u")return!0;const yt=Et.prototype;return!(!hasObjectPrototype$1(yt)||!yt.hasOwnProperty("isPrototypeOf"))}function hasObjectPrototype$1(ht){return Object.prototype.toString.call(ht)==="[object Object]"}function isQueryKey$1(ht){return Array.isArray(ht)}function sleep(ht){return new Promise(Et=>{setTimeout(Et,ht)})}function scheduleMicrotask(ht){sleep(0).then(ht)}function getAbortController(){if(typeof AbortController=="function")return new AbortController}function replaceData(ht,Et,yt){return yt.isDataEqual!=null&&yt.isDataEqual(ht,Et)?ht:typeof yt.structuralSharing=="function"?yt.structuralSharing(ht,Et):yt.structuralSharing!==!1?replaceEqualDeep(ht,Et):Et}class FocusManager extends Subscribable{constructor(){super(),this.setup=Et=>{if(!isServer&&window.addEventListener){const yt=()=>Et();return window.addEventListener("visibilitychange",yt,!1),window.addEventListener("focus",yt,!1),()=>{window.removeEventListener("visibilitychange",yt),window.removeEventListener("focus",yt)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var Et;(Et=this.cleanup)==null||Et.call(this),this.cleanup=void 0}}setEventListener(Et){var yt;this.setup=Et,(yt=this.cleanup)==null||yt.call(this),this.cleanup=Et(Ct=>{typeof Ct=="boolean"?this.setFocused(Ct):this.onFocus()})}setFocused(Et){this.focused!==Et&&(this.focused=Et,this.onFocus())}onFocus(){this.listeners.forEach(({listener:Et})=>{Et()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const focusManager=new FocusManager,onlineEvents=["online","offline"];class OnlineManager extends Subscribable{constructor(){super(),this.setup=Et=>{if(!isServer&&window.addEventListener){const yt=()=>Et();return onlineEvents.forEach(Ct=>{window.addEventListener(Ct,yt,!1)}),()=>{onlineEvents.forEach(Ct=>{window.removeEventListener(Ct,yt)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var Et;(Et=this.cleanup)==null||Et.call(this),this.cleanup=void 0}}setEventListener(Et){var yt;this.setup=Et,(yt=this.cleanup)==null||yt.call(this),this.cleanup=Et(Ct=>{typeof Ct=="boolean"?this.setOnline(Ct):this.onOnline()})}setOnline(Et){this.online!==Et&&(this.online=Et,this.onOnline())}onOnline(){this.listeners.forEach(({listener:Et})=>{Et()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const onlineManager=new OnlineManager;function defaultRetryDelay(ht){return Math.min(1e3*2**ht,3e4)}function canFetch(ht){return(ht??"online")==="online"?onlineManager.isOnline():!0}class CancelledError{constructor(Et){this.revert=Et==null?void 0:Et.revert,this.silent=Et==null?void 0:Et.silent}}function isCancelledError(ht){return ht instanceof CancelledError}function createRetryer(ht){let Et=!1,yt=0,Ct=!1,$t,At,Bt;const Dt=new Promise((Xt,Qt)=>{At=Xt,Bt=Qt}),Ft=Xt=>{Ct||(zt(new CancelledError(Xt)),ht.abort==null||ht.abort())},kt=()=>{Et=!0},Mt=()=>{Et=!1},Nt=()=>!focusManager.isFocused()||ht.networkMode!=="always"&&!onlineManager.isOnline(),jt=Xt=>{Ct||(Ct=!0,ht.onSuccess==null||ht.onSuccess(Xt),$t==null||$t(),At(Xt))},zt=Xt=>{Ct||(Ct=!0,ht.onError==null||ht.onError(Xt),$t==null||$t(),Bt(Xt))},Vt=()=>new Promise(Xt=>{$t=Qt=>{const Zt=Ct||!Nt();return Zt&&Xt(Qt),Zt},ht.onPause==null||ht.onPause()}).then(()=>{$t=void 0,Ct||ht.onContinue==null||ht.onContinue()}),Kt=()=>{if(Ct)return;let Xt;try{Xt=ht.fn()}catch(Qt){Xt=Promise.reject(Qt)}Promise.resolve(Xt).then(jt).catch(Qt=>{var Zt,dr;if(Ct)return;const cr=(Zt=ht.retry)!=null?Zt:3,Er=(dr=ht.retryDelay)!=null?dr:defaultRetryDelay,pr=typeof Er=="function"?Er(yt,Qt):Er,gr=cr===!0||typeof cr=="number"&&yt<cr||typeof cr=="function"&&cr(yt,Qt);if(Et||!gr){zt(Qt);return}yt++,ht.onFail==null||ht.onFail(yt,Qt),sleep(pr).then(()=>{if(Nt())return Vt()}).then(()=>{Et?zt(Qt):Kt()})})};return canFetch(ht.networkMode)?Kt():Vt().then(Kt),{promise:Dt,cancel:Ft,continue:()=>($t==null?void 0:$t())?Dt:Promise.resolve(),cancelRetry:kt,continueRetry:Mt}}const defaultLogger=console;function createNotifyManager(){let ht=[],Et=0,yt=Mt=>{Mt()},Ct=Mt=>{Mt()};const $t=Mt=>{let Nt;Et++;try{Nt=Mt()}finally{Et--,Et||Dt()}return Nt},At=Mt=>{Et?ht.push(Mt):scheduleMicrotask(()=>{yt(Mt)})},Bt=Mt=>(...Nt)=>{At(()=>{Mt(...Nt)})},Dt=()=>{const Mt=ht;ht=[],Mt.length&&scheduleMicrotask(()=>{Ct(()=>{Mt.forEach(Nt=>{yt(Nt)})})})};return{batch:$t,batchCalls:Bt,schedule:At,setNotifyFunction:Mt=>{yt=Mt},setBatchNotifyFunction:Mt=>{Ct=Mt}}}const notifyManager=createNotifyManager();class Removable{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),isValidTimeout(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(Et){this.cacheTime=Math.max(this.cacheTime||0,Et??(isServer?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class Query extends Removable{constructor(Et){super(),this.abortSignalConsumed=!1,this.defaultOptions=Et.defaultOptions,this.setOptions(Et.options),this.observers=[],this.cache=Et.cache,this.logger=Et.logger||defaultLogger,this.queryKey=Et.queryKey,this.queryHash=Et.queryHash,this.initialState=Et.state||getDefaultState$1(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(Et){this.options={...this.defaultOptions,...Et},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(Et,yt){const Ct=replaceData(this.state.data,Et,this.options);return this.dispatch({data:Ct,type:"success",dataUpdatedAt:yt==null?void 0:yt.updatedAt,manual:yt==null?void 0:yt.manual}),Ct}setState(Et,yt){this.dispatch({type:"setState",state:Et,setStateOptions:yt})}cancel(Et){var yt;const Ct=this.promise;return(yt=this.retryer)==null||yt.cancel(Et),Ct?Ct.then(noop$b).catch(noop$b):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(Et=>Et.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(Et=>Et.getCurrentResult().isStale)}isStaleByTime(Et=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!timeUntilStale(this.state.dataUpdatedAt,Et)}onFocus(){var Et;const yt=this.observers.find(Ct=>Ct.shouldFetchOnWindowFocus());yt&&yt.refetch({cancelRefetch:!1}),(Et=this.retryer)==null||Et.continue()}onOnline(){var Et;const yt=this.observers.find(Ct=>Ct.shouldFetchOnReconnect());yt&&yt.refetch({cancelRefetch:!1}),(Et=this.retryer)==null||Et.continue()}addObserver(Et){this.observers.includes(Et)||(this.observers.push(Et),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:Et}))}removeObserver(Et){this.observers.includes(Et)&&(this.observers=this.observers.filter(yt=>yt!==Et),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:Et}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(Et,yt){var Ct,$t;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&yt!=null&&yt.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var At;return(At=this.retryer)==null||At.continueRetry(),this.promise}}if(Et&&this.setOptions(Et),!this.options.queryFn){const zt=this.observers.find(Vt=>Vt.options.queryFn);zt&&this.setOptions(zt.options)}const Bt=getAbortController(),Dt={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},Ft=zt=>{Object.defineProperty(zt,"signal",{enumerable:!0,get:()=>{if(Bt)return this.abortSignalConsumed=!0,Bt.signal}})};Ft(Dt);const kt=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(Dt)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),Mt={fetchOptions:yt,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:kt};if(Ft(Mt),(Ct=this.options.behavior)==null||Ct.onFetch(Mt),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==(($t=Mt.fetchOptions)==null?void 0:$t.meta)){var Nt;this.dispatch({type:"fetch",meta:(Nt=Mt.fetchOptions)==null?void 0:Nt.meta})}const jt=zt=>{if(isCancelledError(zt)&&zt.silent||this.dispatch({type:"error",error:zt}),!isCancelledError(zt)){var Vt,Kt,Xt,Qt;(Vt=(Kt=this.cache.config).onError)==null||Vt.call(Kt,zt,this),(Xt=(Qt=this.cache.config).onSettled)==null||Xt.call(Qt,this.state.data,zt,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=createRetryer({fn:Mt.fetchFn,abort:Bt==null?void 0:Bt.abort.bind(Bt),onSuccess:zt=>{var Vt,Kt,Xt,Qt;if(typeof zt>"u"){jt(new Error(this.queryHash+" data is undefined"));return}this.setData(zt),(Vt=(Kt=this.cache.config).onSuccess)==null||Vt.call(Kt,zt,this),(Xt=(Qt=this.cache.config).onSettled)==null||Xt.call(Qt,zt,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:jt,onFail:(zt,Vt)=>{this.dispatch({type:"failed",failureCount:zt,error:Vt})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:Mt.options.retry,retryDelay:Mt.options.retryDelay,networkMode:Mt.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(Et){const yt=Ct=>{var $t,At;switch(Et.type){case"failed":return{...Ct,fetchFailureCount:Et.failureCount,fetchFailureReason:Et.error};case"pause":return{...Ct,fetchStatus:"paused"};case"continue":return{...Ct,fetchStatus:"fetching"};case"fetch":return{...Ct,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:($t=Et.meta)!=null?$t:null,fetchStatus:canFetch(this.options.networkMode)?"fetching":"paused",...!Ct.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...Ct,data:Et.data,dataUpdateCount:Ct.dataUpdateCount+1,dataUpdatedAt:(At=Et.dataUpdatedAt)!=null?At:Date.now(),error:null,isInvalidated:!1,status:"success",...!Et.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const Bt=Et.error;return isCancelledError(Bt)&&Bt.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...Ct,error:Bt,errorUpdateCount:Ct.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:Ct.fetchFailureCount+1,fetchFailureReason:Bt,fetchStatus:"idle",status:"error"};case"invalidate":return{...Ct,isInvalidated:!0};case"setState":return{...Ct,...Et.state}}};this.state=yt(this.state),notifyManager.batch(()=>{this.observers.forEach(Ct=>{Ct.onQueryUpdate(Et)}),this.cache.notify({query:this,type:"updated",action:Et})})}}function getDefaultState$1(ht){const Et=typeof ht.initialData=="function"?ht.initialData():ht.initialData,yt=typeof Et<"u",Ct=yt?typeof ht.initialDataUpdatedAt=="function"?ht.initialDataUpdatedAt():ht.initialDataUpdatedAt:0;return{data:Et,dataUpdateCount:0,dataUpdatedAt:yt?Ct??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:yt?"success":"loading",fetchStatus:"idle"}}class QueryCache extends Subscribable{constructor(Et){super(),this.config=Et||{},this.queries=[],this.queriesMap={}}build(Et,yt,Ct){var $t;const At=yt.queryKey,Bt=($t=yt.queryHash)!=null?$t:hashQueryKeyByOptions(At,yt);let Dt=this.get(Bt);return Dt||(Dt=new Query({cache:this,logger:Et.getLogger(),queryKey:At,queryHash:Bt,options:Et.defaultQueryOptions(yt),state:Ct,defaultOptions:Et.getQueryDefaults(At)}),this.add(Dt)),Dt}add(Et){this.queriesMap[Et.queryHash]||(this.queriesMap[Et.queryHash]=Et,this.queries.push(Et),this.notify({type:"added",query:Et}))}remove(Et){const yt=this.queriesMap[Et.queryHash];yt&&(Et.destroy(),this.queries=this.queries.filter(Ct=>Ct!==Et),yt===Et&&delete this.queriesMap[Et.queryHash],this.notify({type:"removed",query:Et}))}clear(){notifyManager.batch(()=>{this.queries.forEach(Et=>{this.remove(Et)})})}get(Et){return this.queriesMap[Et]}getAll(){return this.queries}find(Et,yt){const[Ct]=parseFilterArgs(Et,yt);return typeof Ct.exact>"u"&&(Ct.exact=!0),this.queries.find($t=>matchQuery(Ct,$t))}findAll(Et,yt){const[Ct]=parseFilterArgs(Et,yt);return Object.keys(Ct).length>0?this.queries.filter($t=>matchQuery(Ct,$t)):this.queries}notify(Et){notifyManager.batch(()=>{this.listeners.forEach(({listener:yt})=>{yt(Et)})})}onFocus(){notifyManager.batch(()=>{this.queries.forEach(Et=>{Et.onFocus()})})}onOnline(){notifyManager.batch(()=>{this.queries.forEach(Et=>{Et.onOnline()})})}}class Mutation extends Removable{constructor(Et){super(),this.defaultOptions=Et.defaultOptions,this.mutationId=Et.mutationId,this.mutationCache=Et.mutationCache,this.logger=Et.logger||defaultLogger,this.observers=[],this.state=Et.state||getDefaultState(),this.setOptions(Et.options),this.scheduleGc()}setOptions(Et){this.options={...this.defaultOptions,...Et},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(Et){this.dispatch({type:"setState",state:Et})}addObserver(Et){this.observers.includes(Et)||(this.observers.push(Et),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:Et}))}removeObserver(Et){this.observers=this.observers.filter(yt=>yt!==Et),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:Et})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var Et,yt;return(Et=(yt=this.retryer)==null?void 0:yt.continue())!=null?Et:this.execute()}async execute(){const Et=()=>{var gr;return this.retryer=createRetryer({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(vr,yr)=>{this.dispatch({type:"failed",failureCount:vr,error:yr})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(gr=this.options.retry)!=null?gr:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},yt=this.state.status==="loading";try{var Ct,$t,At,Bt,Dt,Ft,kt,Mt;if(!yt){var Nt,jt,zt,Vt;this.dispatch({type:"loading",variables:this.options.variables}),await((Nt=(jt=this.mutationCache.config).onMutate)==null?void 0:Nt.call(jt,this.state.variables,this));const vr=await((zt=(Vt=this.options).onMutate)==null?void 0:zt.call(Vt,this.state.variables));vr!==this.state.context&&this.dispatch({type:"loading",context:vr,variables:this.state.variables})}const gr=await Et();return await((Ct=($t=this.mutationCache.config).onSuccess)==null?void 0:Ct.call($t,gr,this.state.variables,this.state.context,this)),await((At=(Bt=this.options).onSuccess)==null?void 0:At.call(Bt,gr,this.state.variables,this.state.context)),await((Dt=(Ft=this.mutationCache.config).onSettled)==null?void 0:Dt.call(Ft,gr,null,this.state.variables,this.state.context,this)),await((kt=(Mt=this.options).onSettled)==null?void 0:kt.call(Mt,gr,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:gr}),gr}catch(gr){try{var Kt,Xt,Qt,Zt,dr,cr,Er,pr;throw await((Kt=(Xt=this.mutationCache.config).onError)==null?void 0:Kt.call(Xt,gr,this.state.variables,this.state.context,this)),await((Qt=(Zt=this.options).onError)==null?void 0:Qt.call(Zt,gr,this.state.variables,this.state.context)),await((dr=(cr=this.mutationCache.config).onSettled)==null?void 0:dr.call(cr,void 0,gr,this.state.variables,this.state.context,this)),await((Er=(pr=this.options).onSettled)==null?void 0:Er.call(pr,void 0,gr,this.state.variables,this.state.context)),gr}finally{this.dispatch({type:"error",error:gr})}}}dispatch(Et){const yt=Ct=>{switch(Et.type){case"failed":return{...Ct,failureCount:Et.failureCount,failureReason:Et.error};case"pause":return{...Ct,isPaused:!0};case"continue":return{...Ct,isPaused:!1};case"loading":return{...Ct,context:Et.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!canFetch(this.options.networkMode),status:"loading",variables:Et.variables};case"success":return{...Ct,data:Et.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...Ct,data:void 0,error:Et.error,failureCount:Ct.failureCount+1,failureReason:Et.error,isPaused:!1,status:"error"};case"setState":return{...Ct,...Et.state}}};this.state=yt(this.state),notifyManager.batch(()=>{this.observers.forEach(Ct=>{Ct.onMutationUpdate(Et)}),this.mutationCache.notify({mutation:this,type:"updated",action:Et})})}}function getDefaultState(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class MutationCache extends Subscribable{constructor(Et){super(),this.config=Et||{},this.mutations=[],this.mutationId=0}build(Et,yt,Ct){const $t=new Mutation({mutationCache:this,logger:Et.getLogger(),mutationId:++this.mutationId,options:Et.defaultMutationOptions(yt),state:Ct,defaultOptions:yt.mutationKey?Et.getMutationDefaults(yt.mutationKey):void 0});return this.add($t),$t}add(Et){this.mutations.push(Et),this.notify({type:"added",mutation:Et})}remove(Et){this.mutations=this.mutations.filter(yt=>yt!==Et),this.notify({type:"removed",mutation:Et})}clear(){notifyManager.batch(()=>{this.mutations.forEach(Et=>{this.remove(Et)})})}getAll(){return this.mutations}find(Et){return typeof Et.exact>"u"&&(Et.exact=!0),this.mutations.find(yt=>matchMutation(Et,yt))}findAll(Et){return this.mutations.filter(yt=>matchMutation(Et,yt))}notify(Et){notifyManager.batch(()=>{this.listeners.forEach(({listener:yt})=>{yt(Et)})})}resumePausedMutations(){var Et;return this.resuming=((Et=this.resuming)!=null?Et:Promise.resolve()).then(()=>{const yt=this.mutations.filter(Ct=>Ct.state.isPaused);return notifyManager.batch(()=>yt.reduce((Ct,$t)=>Ct.then(()=>$t.continue().catch(noop$b)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function infiniteQueryBehavior(){return{onFetch:ht=>{ht.fetchFn=()=>{var Et,yt,Ct,$t,At,Bt;const Dt=(Et=ht.fetchOptions)==null||(yt=Et.meta)==null?void 0:yt.refetchPage,Ft=(Ct=ht.fetchOptions)==null||($t=Ct.meta)==null?void 0:$t.fetchMore,kt=Ft==null?void 0:Ft.pageParam,Mt=(Ft==null?void 0:Ft.direction)==="forward",Nt=(Ft==null?void 0:Ft.direction)==="backward",jt=((At=ht.state.data)==null?void 0:At.pages)||[],zt=((Bt=ht.state.data)==null?void 0:Bt.pageParams)||[];let Vt=zt,Kt=!1;const Xt=pr=>{Object.defineProperty(pr,"signal",{enumerable:!0,get:()=>{var gr;if((gr=ht.signal)!=null&&gr.aborted)Kt=!0;else{var vr;(vr=ht.signal)==null||vr.addEventListener("abort",()=>{Kt=!0})}return ht.signal}})},Qt=ht.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+ht.options.queryHash+"'")),Zt=(pr,gr,vr,yr)=>(Vt=yr?[gr,...Vt]:[...Vt,gr],yr?[vr,...pr]:[...pr,vr]),dr=(pr,gr,vr,yr)=>{if(Kt)return Promise.reject("Cancelled");if(typeof vr>"u"&&!gr&&pr.length)return Promise.resolve(pr);const xr={queryKey:ht.queryKey,pageParam:vr,meta:ht.options.meta};Xt(xr);const rr=Qt(xr);return Promise.resolve(rr).then(Ht=>Zt(pr,vr,Ht,yr))};let cr;if(!jt.length)cr=dr([]);else if(Mt){const pr=typeof kt<"u",gr=pr?kt:getNextPageParam(ht.options,jt);cr=dr(jt,pr,gr)}else if(Nt){const pr=typeof kt<"u",gr=pr?kt:getPreviousPageParam(ht.options,jt);cr=dr(jt,pr,gr,!0)}else{Vt=[];const pr=typeof ht.options.getNextPageParam>"u";cr=(Dt&&jt[0]?Dt(jt[0],0,jt):!0)?dr([],pr,zt[0]):Promise.resolve(Zt([],zt[0],jt[0]));for(let vr=1;vr<jt.length;vr++)cr=cr.then(yr=>{if(Dt&&jt[vr]?Dt(jt[vr],vr,jt):!0){const rr=pr?zt[vr]:getNextPageParam(ht.options,yr);return dr(yr,pr,rr)}return Promise.resolve(Zt(yr,zt[vr],jt[vr]))})}return cr.then(pr=>({pages:pr,pageParams:Vt}))}}}}function getNextPageParam(ht,Et){return ht.getNextPageParam==null?void 0:ht.getNextPageParam(Et[Et.length-1],Et)}function getPreviousPageParam(ht,Et){return ht.getPreviousPageParam==null?void 0:ht.getPreviousPageParam(Et[0],Et)}class QueryClient{constructor(Et={}){this.queryCache=Et.queryCache||new QueryCache,this.mutationCache=Et.mutationCache||new MutationCache,this.logger=Et.logger||defaultLogger,this.defaultOptions=Et.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=focusManager.subscribe(()=>{focusManager.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=onlineManager.subscribe(()=>{onlineManager.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var Et,yt;this.mountCount--,this.mountCount===0&&((Et=this.unsubscribeFocus)==null||Et.call(this),this.unsubscribeFocus=void 0,(yt=this.unsubscribeOnline)==null||yt.call(this),this.unsubscribeOnline=void 0)}isFetching(Et,yt){const[Ct]=parseFilterArgs(Et,yt);return Ct.fetchStatus="fetching",this.queryCache.findAll(Ct).length}isMutating(Et){return this.mutationCache.findAll({...Et,fetching:!0}).length}getQueryData(Et,yt){var Ct;return(Ct=this.queryCache.find(Et,yt))==null?void 0:Ct.state.data}ensureQueryData(Et,yt,Ct){const $t=parseQueryArgs$1(Et,yt,Ct),At=this.getQueryData($t.queryKey);return At?Promise.resolve(At):this.fetchQuery($t)}getQueriesData(Et){return this.getQueryCache().findAll(Et).map(({queryKey:yt,state:Ct})=>{const $t=Ct.data;return[yt,$t]})}setQueryData(Et,yt,Ct){const $t=this.queryCache.find(Et),At=$t==null?void 0:$t.state.data,Bt=functionalUpdate(yt,At);if(typeof Bt>"u")return;const Dt=parseQueryArgs$1(Et),Ft=this.defaultQueryOptions(Dt);return this.queryCache.build(this,Ft).setData(Bt,{...Ct,manual:!0})}setQueriesData(Et,yt,Ct){return notifyManager.batch(()=>this.getQueryCache().findAll(Et).map(({queryKey:$t})=>[$t,this.setQueryData($t,yt,Ct)]))}getQueryState(Et,yt){var Ct;return(Ct=this.queryCache.find(Et,yt))==null?void 0:Ct.state}removeQueries(Et,yt){const[Ct]=parseFilterArgs(Et,yt),$t=this.queryCache;notifyManager.batch(()=>{$t.findAll(Ct).forEach(At=>{$t.remove(At)})})}resetQueries(Et,yt,Ct){const[$t,At]=parseFilterArgs(Et,yt,Ct),Bt=this.queryCache,Dt={type:"active",...$t};return notifyManager.batch(()=>(Bt.findAll($t).forEach(Ft=>{Ft.reset()}),this.refetchQueries(Dt,At)))}cancelQueries(Et,yt,Ct){const[$t,At={}]=parseFilterArgs(Et,yt,Ct);typeof At.revert>"u"&&(At.revert=!0);const Bt=notifyManager.batch(()=>this.queryCache.findAll($t).map(Dt=>Dt.cancel(At)));return Promise.all(Bt).then(noop$b).catch(noop$b)}invalidateQueries(Et,yt,Ct){const[$t,At]=parseFilterArgs(Et,yt,Ct);return notifyManager.batch(()=>{var Bt,Dt;if(this.queryCache.findAll($t).forEach(kt=>{kt.invalidate()}),$t.refetchType==="none")return Promise.resolve();const Ft={...$t,type:(Bt=(Dt=$t.refetchType)!=null?Dt:$t.type)!=null?Bt:"active"};return this.refetchQueries(Ft,At)})}refetchQueries(Et,yt,Ct){const[$t,At]=parseFilterArgs(Et,yt,Ct),Bt=notifyManager.batch(()=>this.queryCache.findAll($t).filter(Ft=>!Ft.isDisabled()).map(Ft=>{var kt;return Ft.fetch(void 0,{...At,cancelRefetch:(kt=At==null?void 0:At.cancelRefetch)!=null?kt:!0,meta:{refetchPage:$t.refetchPage}})}));let Dt=Promise.all(Bt).then(noop$b);return At!=null&&At.throwOnError||(Dt=Dt.catch(noop$b)),Dt}fetchQuery(Et,yt,Ct){const $t=parseQueryArgs$1(Et,yt,Ct),At=this.defaultQueryOptions($t);typeof At.retry>"u"&&(At.retry=!1);const Bt=this.queryCache.build(this,At);return Bt.isStaleByTime(At.staleTime)?Bt.fetch(At):Promise.resolve(Bt.state.data)}prefetchQuery(Et,yt,Ct){return this.fetchQuery(Et,yt,Ct).then(noop$b).catch(noop$b)}fetchInfiniteQuery(Et,yt,Ct){const $t=parseQueryArgs$1(Et,yt,Ct);return $t.behavior=infiniteQueryBehavior(),this.fetchQuery($t)}prefetchInfiniteQuery(Et,yt,Ct){return this.fetchInfiniteQuery(Et,yt,Ct).then(noop$b).catch(noop$b)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(Et){this.defaultOptions=Et}setQueryDefaults(Et,yt){const Ct=this.queryDefaults.find($t=>hashQueryKey(Et)===hashQueryKey($t.queryKey));Ct?Ct.defaultOptions=yt:this.queryDefaults.push({queryKey:Et,defaultOptions:yt})}getQueryDefaults(Et){if(!Et)return;const yt=this.queryDefaults.find(Ct=>partialMatchKey(Et,Ct.queryKey));return yt==null?void 0:yt.defaultOptions}setMutationDefaults(Et,yt){const Ct=this.mutationDefaults.find($t=>hashQueryKey(Et)===hashQueryKey($t.mutationKey));Ct?Ct.defaultOptions=yt:this.mutationDefaults.push({mutationKey:Et,defaultOptions:yt})}getMutationDefaults(Et){if(!Et)return;const yt=this.mutationDefaults.find(Ct=>partialMatchKey(Et,Ct.mutationKey));return yt==null?void 0:yt.defaultOptions}defaultQueryOptions(Et){if(Et!=null&&Et._defaulted)return Et;const yt={...this.defaultOptions.queries,...this.getQueryDefaults(Et==null?void 0:Et.queryKey),...Et,_defaulted:!0};return!yt.queryHash&&yt.queryKey&&(yt.queryHash=hashQueryKeyByOptions(yt.queryKey,yt)),typeof yt.refetchOnReconnect>"u"&&(yt.refetchOnReconnect=yt.networkMode!=="always"),typeof yt.useErrorBoundary>"u"&&(yt.useErrorBoundary=!!yt.suspense),yt}defaultMutationOptions(Et){return Et!=null&&Et._defaulted?Et:{...this.defaultOptions.mutations,...this.getMutationDefaults(Et==null?void 0:Et.mutationKey),...Et,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class QueryObserver extends Subscribable{constructor(Et,yt){super(),this.client=Et,this.options=yt,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(yt)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),shouldFetchOnMount(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return shouldFetchOn(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return shouldFetchOn(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(Et,yt){const Ct=this.options,$t=this.currentQuery;if(this.options=this.client.defaultQueryOptions(Et),shallowEqualObjects(Ct,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=Ct.queryKey),this.updateQuery();const At=this.hasListeners();At&&shouldFetchOptionally(this.currentQuery,$t,this.options,Ct)&&this.executeFetch(),this.updateResult(yt),At&&(this.currentQuery!==$t||this.options.enabled!==Ct.enabled||this.options.staleTime!==Ct.staleTime)&&this.updateStaleTimeout();const Bt=this.computeRefetchInterval();At&&(this.currentQuery!==$t||this.options.enabled!==Ct.enabled||Bt!==this.currentRefetchInterval)&&this.updateRefetchInterval(Bt)}getOptimisticResult(Et){const yt=this.client.getQueryCache().build(this.client,Et),Ct=this.createResult(yt,Et);return shouldAssignObserverCurrentProperties(this,Ct,Et)&&(this.currentResult=Ct,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),Ct}getCurrentResult(){return this.currentResult}trackResult(Et){const yt={};return Object.keys(Et).forEach(Ct=>{Object.defineProperty(yt,Ct,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(Ct),Et[Ct])})}),yt}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:Et,...yt}={}){return this.fetch({...yt,meta:{refetchPage:Et}})}fetchOptimistic(Et){const yt=this.client.defaultQueryOptions(Et),Ct=this.client.getQueryCache().build(this.client,yt);return Ct.isFetchingOptimistic=!0,Ct.fetch().then(()=>this.createResult(Ct,yt))}fetch(Et){var yt;return this.executeFetch({...Et,cancelRefetch:(yt=Et.cancelRefetch)!=null?yt:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(Et){this.updateQuery();let yt=this.currentQuery.fetch(this.options,Et);return Et!=null&&Et.throwOnError||(yt=yt.catch(noop$b)),yt}updateStaleTimeout(){if(this.clearStaleTimeout(),isServer||this.currentResult.isStale||!isValidTimeout(this.options.staleTime))return;const yt=timeUntilStale(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},yt)}computeRefetchInterval(){var Et;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(Et=this.options.refetchInterval)!=null?Et:!1}updateRefetchInterval(Et){this.clearRefetchInterval(),this.currentRefetchInterval=Et,!(isServer||this.options.enabled===!1||!isValidTimeout(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||focusManager.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(Et,yt){const Ct=this.currentQuery,$t=this.options,At=this.currentResult,Bt=this.currentResultState,Dt=this.currentResultOptions,Ft=Et!==Ct,kt=Ft?Et.state:this.currentQueryInitialState,Mt=Ft?this.currentResult:this.previousQueryResult,{state:Nt}=Et;let{dataUpdatedAt:jt,error:zt,errorUpdatedAt:Vt,fetchStatus:Kt,status:Xt}=Nt,Qt=!1,Zt=!1,dr;if(yt._optimisticResults){const vr=this.hasListeners(),yr=!vr&&shouldFetchOnMount(Et,yt),xr=vr&&shouldFetchOptionally(Et,Ct,yt,$t);(yr||xr)&&(Kt=canFetch(Et.options.networkMode)?"fetching":"paused",jt||(Xt="loading")),yt._optimisticResults==="isRestoring"&&(Kt="idle")}if(yt.keepPreviousData&&!Nt.dataUpdatedAt&&Mt!=null&&Mt.isSuccess&&Xt!=="error")dr=Mt.data,jt=Mt.dataUpdatedAt,Xt=Mt.status,Qt=!0;else if(yt.select&&typeof Nt.data<"u")if(At&&Nt.data===(Bt==null?void 0:Bt.data)&&yt.select===this.selectFn)dr=this.selectResult;else try{this.selectFn=yt.select,dr=yt.select(Nt.data),dr=replaceData(At==null?void 0:At.data,dr,yt),this.selectResult=dr,this.selectError=null}catch(vr){this.selectError=vr}else dr=Nt.data;if(typeof yt.placeholderData<"u"&&typeof dr>"u"&&Xt==="loading"){let vr;if(At!=null&&At.isPlaceholderData&&yt.placeholderData===(Dt==null?void 0:Dt.placeholderData))vr=At.data;else if(vr=typeof yt.placeholderData=="function"?yt.placeholderData():yt.placeholderData,yt.select&&typeof vr<"u")try{vr=yt.select(vr),this.selectError=null}catch(yr){this.selectError=yr}typeof vr<"u"&&(Xt="success",dr=replaceData(At==null?void 0:At.data,vr,yt),Zt=!0)}this.selectError&&(zt=this.selectError,dr=this.selectResult,Vt=Date.now(),Xt="error");const cr=Kt==="fetching",Er=Xt==="loading",pr=Xt==="error";return{status:Xt,fetchStatus:Kt,isLoading:Er,isSuccess:Xt==="success",isError:pr,isInitialLoading:Er&&cr,data:dr,dataUpdatedAt:jt,error:zt,errorUpdatedAt:Vt,failureCount:Nt.fetchFailureCount,failureReason:Nt.fetchFailureReason,errorUpdateCount:Nt.errorUpdateCount,isFetched:Nt.dataUpdateCount>0||Nt.errorUpdateCount>0,isFetchedAfterMount:Nt.dataUpdateCount>kt.dataUpdateCount||Nt.errorUpdateCount>kt.errorUpdateCount,isFetching:cr,isRefetching:cr&&!Er,isLoadingError:pr&&Nt.dataUpdatedAt===0,isPaused:Kt==="paused",isPlaceholderData:Zt,isPreviousData:Qt,isRefetchError:pr&&Nt.dataUpdatedAt!==0,isStale:isStale(Et,yt),refetch:this.refetch,remove:this.remove}}updateResult(Et){const yt=this.currentResult,Ct=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,shallowEqualObjects(Ct,yt))return;this.currentResult=Ct;const $t={cache:!0},At=()=>{if(!yt)return!0;const{notifyOnChangeProps:Bt}=this.options,Dt=typeof Bt=="function"?Bt():Bt;if(Dt==="all"||!Dt&&!this.trackedProps.size)return!0;const Ft=new Set(Dt??this.trackedProps);return this.options.useErrorBoundary&&Ft.add("error"),Object.keys(this.currentResult).some(kt=>{const Mt=kt;return this.currentResult[Mt]!==yt[Mt]&&Ft.has(Mt)})};(Et==null?void 0:Et.listeners)!==!1&&At()&&($t.listeners=!0),this.notify({...$t,...Et})}updateQuery(){const Et=this.client.getQueryCache().build(this.client,this.options);if(Et===this.currentQuery)return;const yt=this.currentQuery;this.currentQuery=Et,this.currentQueryInitialState=Et.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(yt==null||yt.removeObserver(this),Et.addObserver(this))}onQueryUpdate(Et){const yt={};Et.type==="success"?yt.onSuccess=!Et.manual:Et.type==="error"&&!isCancelledError(Et.error)&&(yt.onError=!0),this.updateResult(yt),this.hasListeners()&&this.updateTimers()}notify(Et){notifyManager.batch(()=>{if(Et.onSuccess){var yt,Ct,$t,At;(yt=(Ct=this.options).onSuccess)==null||yt.call(Ct,this.currentResult.data),($t=(At=this.options).onSettled)==null||$t.call(At,this.currentResult.data,null)}else if(Et.onError){var Bt,Dt,Ft,kt;(Bt=(Dt=this.options).onError)==null||Bt.call(Dt,this.currentResult.error),(Ft=(kt=this.options).onSettled)==null||Ft.call(kt,void 0,this.currentResult.error)}Et.listeners&&this.listeners.forEach(({listener:Mt})=>{Mt(this.currentResult)}),Et.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function shouldLoadOnMount(ht,Et){return Et.enabled!==!1&&!ht.state.dataUpdatedAt&&!(ht.state.status==="error"&&Et.retryOnMount===!1)}function shouldFetchOnMount(ht,Et){return shouldLoadOnMount(ht,Et)||ht.state.dataUpdatedAt>0&&shouldFetchOn(ht,Et,Et.refetchOnMount)}function shouldFetchOn(ht,Et,yt){if(Et.enabled!==!1){const Ct=typeof yt=="function"?yt(ht):yt;return Ct==="always"||Ct!==!1&&isStale(ht,Et)}return!1}function shouldFetchOptionally(ht,Et,yt,Ct){return yt.enabled!==!1&&(ht!==Et||Ct.enabled===!1)&&(!yt.suspense||ht.state.status!=="error")&&isStale(ht,yt)}function isStale(ht,Et){return ht.isStaleByTime(Et.staleTime)}function shouldAssignObserverCurrentProperties(ht,Et,yt){return yt.keepPreviousData?!1:yt.placeholderData!==void 0?Et.isPlaceholderData:!shallowEqualObjects(ht.getCurrentResult(),Et)}let MutationObserver$1=class extends Subscribable{constructor(Et,yt){super(),this.client=Et,this.setOptions(yt),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(Et){var yt;const Ct=this.options;this.options=this.client.defaultMutationOptions(Et),shallowEqualObjects(Ct,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(yt=this.currentMutation)==null||yt.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var Et;(Et=this.currentMutation)==null||Et.removeObserver(this)}}onMutationUpdate(Et){this.updateResult();const yt={listeners:!0};Et.type==="success"?yt.onSuccess=!0:Et.type==="error"&&(yt.onError=!0),this.notify(yt)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(Et,yt){return this.mutateOptions=yt,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof Et<"u"?Et:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const Et=this.currentMutation?this.currentMutation.state:getDefaultState(),yt={...Et,isLoading:Et.status==="loading",isSuccess:Et.status==="success",isError:Et.status==="error",isIdle:Et.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=yt}notify(Et){notifyManager.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(Et.onSuccess){var yt,Ct,$t,At;(yt=(Ct=this.mutateOptions).onSuccess)==null||yt.call(Ct,this.currentResult.data,this.currentResult.variables,this.currentResult.context),($t=(At=this.mutateOptions).onSettled)==null||$t.call(At,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(Et.onError){var Bt,Dt,Ft,kt;(Bt=(Dt=this.mutateOptions).onError)==null||Bt.call(Dt,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(Ft=(kt=this.mutateOptions).onSettled)==null||Ft.call(kt,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}Et.listeners&&this.listeners.forEach(({listener:Mt})=>{Mt(this.currentResult)})})}};function dehydrateMutation(ht){return{mutationKey:ht.options.mutationKey,state:ht.state}}function dehydrateQuery(ht){return{state:ht.state,queryKey:ht.queryKey,queryHash:ht.queryHash}}function defaultShouldDehydrateMutation(ht){return ht.state.isPaused}function defaultShouldDehydrateQuery(ht){return ht.state.status==="success"}function dehydrate(ht,Et={}){const yt=[],Ct=[];if(Et.dehydrateMutations!==!1){const $t=Et.shouldDehydrateMutation||defaultShouldDehydrateMutation;ht.getMutationCache().getAll().forEach(At=>{$t(At)&&yt.push(dehydrateMutation(At))})}if(Et.dehydrateQueries!==!1){const $t=Et.shouldDehydrateQuery||defaultShouldDehydrateQuery;ht.getQueryCache().getAll().forEach(At=>{$t(At)&&Ct.push(dehydrateQuery(At))})}return{mutations:yt,queries:Ct}}function hydrate(ht,Et,yt){if(typeof Et!="object"||Et===null)return;const Ct=ht.getMutationCache(),$t=ht.getQueryCache(),At=Et.mutations||[],Bt=Et.queries||[];At.forEach(Dt=>{var Ft;Ct.build(ht,{...yt==null||(Ft=yt.defaultOptions)==null?void 0:Ft.mutations,mutationKey:Dt.mutationKey},Dt.state)}),Bt.forEach(({queryKey:Dt,state:Ft,queryHash:kt})=>{var Mt;const Nt=$t.get(kt);if(Nt){if(Nt.state.dataUpdatedAt<Ft.dataUpdatedAt){const{fetchStatus:jt,...zt}=Ft;Nt.setState(zt)}return}$t.build(ht,{...yt==null||(Mt=yt.defaultOptions)==null?void 0:Mt.queries,queryKey:Dt,queryHash:kt},{...Ft,fetchStatus:"idle"})})}var shim$1={exports:{}},useSyncExternalStoreShim_production_min$1={};/**
 * @license React
 * use-sync-external-store-shim.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var e$8=reactExports;function h$9(ht,Et){return ht===Et&&(ht!==0||1/ht===1/Et)||ht!==ht&&Et!==Et}var k$5=typeof Object.is=="function"?Object.is:h$9,l$b=e$8.useState,m$7=e$8.useEffect,n$a=e$8.useLayoutEffect,p$c=e$8.useDebugValue;function q$6(ht,Et){var yt=Et(),Ct=l$b({inst:{value:yt,getSnapshot:Et}}),$t=Ct[0].inst,At=Ct[1];return n$a(function(){$t.value=yt,$t.getSnapshot=Et,r$b($t)&&At({inst:$t})},[ht,yt,Et]),m$7(function(){return r$b($t)&&At({inst:$t}),ht(function(){r$b($t)&&At({inst:$t})})},[ht]),p$c(yt),yt}function r$b(ht){var Et=ht.getSnapshot;ht=ht.value;try{var yt=Et();return!k$5(ht,yt)}catch{return!0}}function t$e(ht,Et){return Et()}var u$e=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?t$e:q$6;useSyncExternalStoreShim_production_min$1.useSyncExternalStore=e$8.useSyncExternalStore!==void 0?e$8.useSyncExternalStore:u$e;shim$1.exports=useSyncExternalStoreShim_production_min$1;var shimExports$1=shim$1.exports;const useSyncExternalStore=shimExports$1.useSyncExternalStore,defaultContext=reactExports.createContext(void 0),QueryClientSharingContext=reactExports.createContext(!1);function getQueryClientContext(ht,Et){return ht||(Et&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=defaultContext),window.ReactQueryClientContext):defaultContext)}const useQueryClient=({context:ht}={})=>{const Et=reactExports.useContext(getQueryClientContext(ht,reactExports.useContext(QueryClientSharingContext)));if(!Et)throw new Error("No QueryClient set, use QueryClientProvider to set one");return Et},QueryClientProvider=({client:ht,children:Et,context:yt,contextSharing:Ct=!1})=>{reactExports.useEffect(()=>(ht.mount(),()=>{ht.unmount()}),[ht]);const $t=getQueryClientContext(yt,Ct);return reactExports.createElement(QueryClientSharingContext.Provider,{value:!yt&&Ct},reactExports.createElement($t.Provider,{value:ht},Et))},IsRestoringContext=reactExports.createContext(!1),useIsRestoring=()=>reactExports.useContext(IsRestoringContext);IsRestoringContext.Provider;function createValue(){let ht=!1;return{clearReset:()=>{ht=!1},reset:()=>{ht=!0},isReset:()=>ht}}const QueryErrorResetBoundaryContext=reactExports.createContext(createValue()),useQueryErrorResetBoundary=()=>reactExports.useContext(QueryErrorResetBoundaryContext);function shouldThrowError$1(ht,Et){return typeof ht=="function"?ht(...Et):!!ht}function useMutation$1(ht,Et,yt){const Ct=parseMutationArgs(ht,Et,yt),$t=useQueryClient({context:Ct.context}),[At]=reactExports.useState(()=>new MutationObserver$1($t,Ct));reactExports.useEffect(()=>{At.setOptions(Ct)},[At,Ct]);const Bt=useSyncExternalStore(reactExports.useCallback(Ft=>At.subscribe(notifyManager.batchCalls(Ft)),[At]),()=>At.getCurrentResult(),()=>At.getCurrentResult()),Dt=reactExports.useCallback((Ft,kt)=>{At.mutate(Ft,kt).catch(noop$a)},[At]);if(Bt.error&&shouldThrowError$1(At.options.useErrorBoundary,[Bt.error]))throw Bt.error;return{...Bt,mutate:Dt,mutateAsync:Bt.mutate}}function noop$a(){}const cacheableEventTypes=["added","removed","updated"];function isCacheableEventType(ht){return cacheableEventTypes.includes(ht)}async function persistQueryClientRestore({queryClient:ht,persister:Et,maxAge:yt=1e3*60*60*24,buster:Ct="",hydrateOptions:$t}){try{const At=await Et.restoreClient();if(At)if(At.timestamp){const Bt=Date.now()-At.timestamp>yt,Dt=At.buster!==Ct;Bt||Dt?Et.removeClient():hydrate(ht,At.clientState,$t)}else Et.removeClient()}catch{Et.removeClient()}}async function persistQueryClientSave({queryClient:ht,persister:Et,buster:yt="",dehydrateOptions:Ct}){const $t={buster:yt,timestamp:Date.now(),clientState:dehydrate(ht,Ct)};await Et.persistClient($t)}function persistQueryClientSubscribe(ht){const Et=ht.queryClient.getQueryCache().subscribe(Ct=>{isCacheableEventType(Ct.type)&&persistQueryClientSave(ht)}),yt=ht.queryClient.getMutationCache().subscribe(Ct=>{isCacheableEventType(Ct.type)&&persistQueryClientSave(ht)});return()=>{Et(),yt()}}function persistQueryClient(ht){let Et=!1,yt;const Ct=()=>{Et=!0,yt==null||yt()},$t=persistQueryClientRestore(ht).then(()=>{Et||(yt=persistQueryClientSubscribe(ht))});return[Ct,$t]}function defineChain(ht,Et={}){const{fees:yt=ht.fees,formatters:Ct=ht.formatters,serializers:$t=ht.serializers}=Et;return{...ht,fees:yt,formatters:Ct,serializers:$t}}const version$6="1.20.0",getContractAddress=ht=>ht,getUrl=ht=>ht,getVersion=()=>`viem@${version$6}`;class BaseError extends Error{constructor(Et,yt={}){var At;super(),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ViemError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:getVersion()});const Ct=yt.cause instanceof BaseError?yt.cause.details:(At=yt.cause)!=null&&At.message?yt.cause.message:yt.details,$t=yt.cause instanceof BaseError&&yt.cause.docsPath||yt.docsPath;this.message=[Et||"An error occurred.","",...yt.metaMessages?[...yt.metaMessages,""]:[],...$t?[`Docs: https://viem.sh${$t}.html${yt.docsSlug?`#${yt.docsSlug}`:""}`]:[],...Ct?[`Details: ${Ct}`]:[],`Version: ${this.version}`].join(`
`),yt.cause&&(this.cause=yt.cause),this.details=Ct,this.docsPath=$t,this.metaMessages=yt.metaMessages,this.shortMessage=Et}walk(Et){return walk(this,Et)}}function walk(ht,Et){return Et!=null&&Et(ht)?ht:ht&&typeof ht=="object"&&"cause"in ht?walk(ht.cause,Et):Et?null:ht}class IntegerOutOfRangeError extends BaseError{constructor({max:Et,min:yt,signed:Ct,size:$t,value:At}){super(`Number "${At}" is not in safe ${$t?`${$t*8}-bit ${Ct?"signed":"unsigned"} `:""}integer range ${Et?`(${yt} to ${Et})`:`(above ${yt})`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntegerOutOfRangeError"})}}class InvalidHexBooleanError extends BaseError{constructor(Et){super(`Hex value "${Et}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidHexBooleanError"})}}class SizeOverflowError extends BaseError{constructor({givenSize:Et,maxSize:yt}){super(`Size cannot exceed ${yt} bytes. Given size: ${Et} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeOverflowError"})}}function isHex(ht,{strict:Et=!0}={}){return!ht||typeof ht!="string"?!1:Et?/^0x[0-9a-fA-F]*$/.test(ht):ht.startsWith("0x")}function size$1(ht){return isHex(ht,{strict:!1})?Math.ceil((ht.length-2)/2):ht.length}function trim$2(ht,{dir:Et="left"}={}){let yt=typeof ht=="string"?ht.replace("0x",""):ht,Ct=0;for(let $t=0;$t<yt.length-1&&yt[Et==="left"?$t:yt.length-$t-1].toString()==="0";$t++)Ct++;return yt=Et==="left"?yt.slice(Ct):yt.slice(0,yt.length-Ct),typeof ht=="string"?(yt.length===1&&Et==="right"&&(yt=`${yt}0`),`0x${yt.length%2===1?`0${yt}`:yt}`):yt}class SliceOffsetOutOfBoundsError extends BaseError{constructor({offset:Et,position:yt,size:Ct}){super(`Slice ${yt==="start"?"starting":"ending"} at offset "${Et}" is out-of-bounds (size: ${Ct}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SliceOffsetOutOfBoundsError"})}}class SizeExceedsPaddingSizeError extends BaseError{constructor({size:Et,targetSize:yt,type:Ct}){super(`${Ct.charAt(0).toUpperCase()}${Ct.slice(1).toLowerCase()} size (${Et}) exceeds padding size (${yt}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeExceedsPaddingSizeError"})}}function pad(ht,{dir:Et,size:yt=32}={}){return typeof ht=="string"?padHex(ht,{dir:Et,size:yt}):padBytes(ht,{dir:Et,size:yt})}function padHex(ht,{dir:Et,size:yt=32}={}){if(yt===null)return ht;const Ct=ht.replace("0x","");if(Ct.length>yt*2)throw new SizeExceedsPaddingSizeError({size:Math.ceil(Ct.length/2),targetSize:yt,type:"hex"});return`0x${Ct[Et==="right"?"padEnd":"padStart"](yt*2,"0")}`}function padBytes(ht,{dir:Et,size:yt=32}={}){if(yt===null)return ht;if(ht.length>yt)throw new SizeExceedsPaddingSizeError({size:ht.length,targetSize:yt,type:"bytes"});const Ct=new Uint8Array(yt);for(let $t=0;$t<yt;$t++){const At=Et==="right";Ct[At?$t:yt-$t-1]=ht[At?$t:ht.length-$t-1]}return Ct}const hexes$1=Array.from({length:256},(ht,Et)=>Et.toString(16).padStart(2,"0"));function toHex$2(ht,Et={}){return typeof ht=="number"||typeof ht=="bigint"?numberToHex(ht,Et):typeof ht=="string"?stringToHex(ht,Et):typeof ht=="boolean"?boolToHex(ht,Et):bytesToHex$1(ht,Et)}function boolToHex(ht,Et={}){const yt=`0x${Number(ht)}`;return typeof Et.size=="number"?(assertSize(yt,{size:Et.size}),pad(yt,{size:Et.size})):yt}function bytesToHex$1(ht,Et={}){let yt="";for(let $t=0;$t<ht.length;$t++)yt+=hexes$1[ht[$t]];const Ct=`0x${yt}`;return typeof Et.size=="number"?(assertSize(Ct,{size:Et.size}),pad(Ct,{dir:"right",size:Et.size})):Ct}function numberToHex(ht,Et={}){const{signed:yt,size:Ct}=Et,$t=BigInt(ht);let At;Ct?yt?At=(1n<<BigInt(Ct)*8n-1n)-1n:At=2n**(BigInt(Ct)*8n)-1n:typeof ht=="number"&&(At=BigInt(Number.MAX_SAFE_INTEGER));const Bt=typeof At=="bigint"&&yt?-At-1n:0;if(At&&$t>At||$t<Bt){const Ft=typeof ht=="bigint"?"n":"";throw new IntegerOutOfRangeError({max:At?`${At}${Ft}`:void 0,min:`${Bt}${Ft}`,signed:yt,size:Ct,value:`${ht}${Ft}`})}const Dt=`0x${(yt&&$t<0?(1n<<BigInt(Ct*8))+BigInt($t):$t).toString(16)}`;return Ct?pad(Dt,{size:Ct}):Dt}const encoder$2=new TextEncoder;function stringToHex(ht,Et={}){const yt=encoder$2.encode(ht);return bytesToHex$1(yt,Et)}const encoder$1=new TextEncoder;function toBytes$2(ht,Et={}){return typeof ht=="number"||typeof ht=="bigint"?numberToBytes(ht,Et):typeof ht=="boolean"?boolToBytes(ht,Et):isHex(ht)?hexToBytes$1(ht,Et):stringToBytes(ht,Et)}function boolToBytes(ht,Et={}){const yt=new Uint8Array(1);return yt[0]=Number(ht),typeof Et.size=="number"?(assertSize(yt,{size:Et.size}),pad(yt,{size:Et.size})):yt}const charCodeMap={zero:48,nine:57,A:65,F:70,a:97,f:102};function charCodeToBase16(ht){if(ht>=charCodeMap.zero&&ht<=charCodeMap.nine)return ht-charCodeMap.zero;if(ht>=charCodeMap.A&&ht<=charCodeMap.F)return ht-(charCodeMap.A-10);if(ht>=charCodeMap.a&&ht<=charCodeMap.f)return ht-(charCodeMap.a-10)}function hexToBytes$1(ht,Et={}){let yt=ht;Et.size&&(assertSize(yt,{size:Et.size}),yt=pad(yt,{dir:"right",size:Et.size}));let Ct=yt.slice(2);Ct.length%2&&(Ct=`0${Ct}`);const $t=Ct.length/2,At=new Uint8Array($t);for(let Bt=0,Dt=0;Bt<$t;Bt++){const Ft=charCodeToBase16(Ct.charCodeAt(Dt++)),kt=charCodeToBase16(Ct.charCodeAt(Dt++));if(Ft===void 0||kt===void 0)throw new BaseError(`Invalid byte sequence ("${Ct[Dt-2]}${Ct[Dt-1]}" in "${Ct}").`);At[Bt]=Ft*16+kt}return At}function numberToBytes(ht,Et){const yt=numberToHex(ht,Et);return hexToBytes$1(yt)}function stringToBytes(ht,Et={}){const yt=encoder$1.encode(ht);return typeof Et.size=="number"?(assertSize(yt,{size:Et.size}),pad(yt,{dir:"right",size:Et.size})):yt}function assertSize(ht,{size:Et}){if(size$1(ht)>Et)throw new SizeOverflowError({givenSize:size$1(ht),maxSize:Et})}function hexToBigInt(ht,Et={}){const{signed:yt}=Et;Et.size&&assertSize(ht,{size:Et.size});const Ct=BigInt(ht);if(!yt)return Ct;const $t=(ht.length-2)/2,At=(1n<<BigInt($t)*8n-1n)-1n;return Ct<=At?Ct:Ct-BigInt(`0x${"f".padStart($t*2,"f")}`)-1n}function hexToBool(ht,Et={}){let yt=ht;if(Et.size&&(assertSize(yt,{size:Et.size}),yt=trim$2(yt)),trim$2(yt)==="0x00")return!1;if(trim$2(yt)==="0x01")return!0;throw new InvalidHexBooleanError(yt)}function hexToNumber$1(ht,Et={}){return Number(hexToBigInt(ht,Et))}function hexToString(ht,Et={}){let yt=hexToBytes$1(ht);return Et.size&&(assertSize(yt,{size:Et.size}),yt=trim$2(yt,{dir:"right"})),new TextDecoder().decode(yt)}const transactionType={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559"};function formatTransaction(ht){const Et={...ht,blockHash:ht.blockHash?ht.blockHash:null,blockNumber:ht.blockNumber?BigInt(ht.blockNumber):null,chainId:ht.chainId?hexToNumber$1(ht.chainId):void 0,gas:ht.gas?BigInt(ht.gas):void 0,gasPrice:ht.gasPrice?BigInt(ht.gasPrice):void 0,maxFeePerGas:ht.maxFeePerGas?BigInt(ht.maxFeePerGas):void 0,maxPriorityFeePerGas:ht.maxPriorityFeePerGas?BigInt(ht.maxPriorityFeePerGas):void 0,nonce:ht.nonce?hexToNumber$1(ht.nonce):void 0,to:ht.to?ht.to:null,transactionIndex:ht.transactionIndex?Number(ht.transactionIndex):null,type:ht.type?transactionType[ht.type]:void 0,typeHex:ht.type?ht.type:void 0,value:ht.value?BigInt(ht.value):void 0,v:ht.v?BigInt(ht.v):void 0};return Et.yParity=(()=>{if(ht.yParity)return Number(ht.yParity);if(typeof Et.v=="bigint"){if(Et.v===0n||Et.v===27n)return 0;if(Et.v===1n||Et.v===28n)return 1;if(Et.v>=35n)return Et.v%2n===0n?1:0}})(),Et.type==="legacy"&&(delete Et.accessList,delete Et.maxFeePerGas,delete Et.maxPriorityFeePerGas,delete Et.yParity),Et.type==="eip2930"&&(delete Et.maxFeePerGas,delete Et.maxPriorityFeePerGas),Et}function formatBlock(ht){var yt;const Et=(yt=ht.transactions)==null?void 0:yt.map(Ct=>typeof Ct=="string"?Ct:formatTransaction(Ct));return{...ht,baseFeePerGas:ht.baseFeePerGas?BigInt(ht.baseFeePerGas):null,difficulty:ht.difficulty?BigInt(ht.difficulty):void 0,gasLimit:ht.gasLimit?BigInt(ht.gasLimit):void 0,gasUsed:ht.gasUsed?BigInt(ht.gasUsed):void 0,hash:ht.hash?ht.hash:null,logsBloom:ht.logsBloom?ht.logsBloom:null,nonce:ht.nonce?ht.nonce:null,number:ht.number?BigInt(ht.number):null,size:ht.size?BigInt(ht.size):void 0,timestamp:ht.timestamp?BigInt(ht.timestamp):void 0,transactions:Et,totalDifficulty:ht.totalDifficulty?BigInt(ht.totalDifficulty):null}}function formatLog(ht,{args:Et,eventName:yt}={}){return{...ht,blockHash:ht.blockHash?ht.blockHash:null,blockNumber:ht.blockNumber?BigInt(ht.blockNumber):null,logIndex:ht.logIndex?Number(ht.logIndex):null,transactionHash:ht.transactionHash?ht.transactionHash:null,transactionIndex:ht.transactionIndex?Number(ht.transactionIndex):null,...yt?{args:Et,eventName:yt}:{}}}const statuses={"0x0":"reverted","0x1":"success"};function formatTransactionReceipt(ht){return{...ht,blockNumber:ht.blockNumber?BigInt(ht.blockNumber):null,contractAddress:ht.contractAddress?ht.contractAddress:null,cumulativeGasUsed:ht.cumulativeGasUsed?BigInt(ht.cumulativeGasUsed):null,effectiveGasPrice:ht.effectiveGasPrice?BigInt(ht.effectiveGasPrice):null,gasUsed:ht.gasUsed?BigInt(ht.gasUsed):null,logs:ht.logs?ht.logs.map(Et=>formatLog(Et)):null,to:ht.to?ht.to:null,transactionIndex:ht.transactionIndex?hexToNumber$1(ht.transactionIndex):null,status:ht.status?statuses[ht.status]:null,type:ht.type?transactionType[ht.type]||ht.type:null}}const rpcTransactionType={legacy:"0x0",eip2930:"0x1",eip1559:"0x2"};function formatTransactionRequest(ht){return{...ht,gas:typeof ht.gas<"u"?numberToHex(ht.gas):void 0,gasPrice:typeof ht.gasPrice<"u"?numberToHex(ht.gasPrice):void 0,maxFeePerGas:typeof ht.maxFeePerGas<"u"?numberToHex(ht.maxFeePerGas):void 0,maxPriorityFeePerGas:typeof ht.maxPriorityFeePerGas<"u"?numberToHex(ht.maxPriorityFeePerGas):void 0,nonce:typeof ht.nonce<"u"?numberToHex(ht.nonce):void 0,type:typeof ht.type<"u"?rpcTransactionType[ht.type]:void 0,value:typeof ht.value<"u"?numberToHex(ht.value):void 0}}class InvalidAddressError extends BaseError{constructor({address:Et}){super(`Address "${Et}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAddressError"})}}class ChainDoesNotSupportContract extends BaseError{constructor({blockNumber:Et,chain:yt,contract:Ct}){super(`Chain "${yt.name}" does not support contract "${Ct.name}".`,{metaMessages:["This could be due to any of the following:",...Et&&Ct.blockCreated&&Ct.blockCreated>Et?[`- The contract "${Ct.name}" was not deployed until block ${Ct.blockCreated} (current block ${Et}).`]:[`- The chain does not have the contract "${Ct.name}" configured.`]]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDoesNotSupportContract"})}}let ChainMismatchError$1=class extends BaseError{constructor({chain:Et,currentChainId:yt}){super(`The current chain of the wallet (id: ${yt}) does not match the target chain for the transaction (id: ${Et.id} – ${Et.name}).`,{metaMessages:[`Current Chain ID:  ${yt}`,`Expected Chain ID: ${Et.id} – ${Et.name}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainMismatchError"})}};class ChainNotFoundError extends BaseError{constructor(){super(["No chain was provided to the request.","Please provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."].join(`
`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotFoundError"})}}class ClientChainNotConfiguredError extends BaseError{constructor(){super("No chain was provided to the Client."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ClientChainNotConfiguredError"})}}const etherUnits={gwei:9,wei:18},gweiUnits={ether:-9,wei:9},weiUnits={ether:-18,gwei:-9};function formatUnits$1(ht,Et){let yt=ht.toString();const Ct=yt.startsWith("-");Ct&&(yt=yt.slice(1)),yt=yt.padStart(Et,"0");let[$t,At]=[yt.slice(0,yt.length-Et),yt.slice(yt.length-Et)];return At=At.replace(/(0+)$/,""),`${Ct?"-":""}${$t||"0"}${At?`.${At}`:""}`}function formatGwei(ht,Et="wei"){return formatUnits$1(ht,gweiUnits[Et])}class ExecutionRevertedError extends BaseError{constructor({cause:Et,message:yt}={}){var $t;const Ct=($t=yt==null?void 0:yt.replace("execution reverted: ",""))==null?void 0:$t.replace("execution reverted","");super(`Execution reverted ${Ct?`with reason: ${Ct}`:"for an unknown reason"}.`,{cause:Et}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ExecutionRevertedError"})}}Object.defineProperty(ExecutionRevertedError,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(ExecutionRevertedError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class FeeCapTooHighError extends BaseError{constructor({cause:Et,maxFeePerGas:yt}={}){super(`The fee cap (\`maxFeePerGas\`${yt?` = ${formatGwei(yt)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:Et}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooHigh"})}}Object.defineProperty(FeeCapTooHighError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class FeeCapTooLowError extends BaseError{constructor({cause:Et,maxFeePerGas:yt}={}){super(`The fee cap (\`maxFeePerGas\`${yt?` = ${formatGwei(yt)}`:""} gwei) cannot be lower than the block base fee.`,{cause:Et}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooLow"})}}Object.defineProperty(FeeCapTooLowError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class NonceTooHighError extends BaseError{constructor({cause:Et,nonce:yt}={}){super(`Nonce provided for the transaction ${yt?`(${yt}) `:""}is higher than the next one expected.`,{cause:Et}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooHighError"})}}Object.defineProperty(NonceTooHighError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class NonceTooLowError extends BaseError{constructor({cause:Et,nonce:yt}={}){super([`Nonce provided for the transaction ${yt?`(${yt}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join(`
`),{cause:Et}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooLowError"})}}Object.defineProperty(NonceTooLowError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class NonceMaxValueError extends BaseError{constructor({cause:Et,nonce:yt}={}){super(`Nonce provided for the transaction ${yt?`(${yt}) `:""}exceeds the maximum allowed nonce.`,{cause:Et}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceMaxValueError"})}}Object.defineProperty(NonceMaxValueError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class InsufficientFundsError extends BaseError{constructor({cause:Et}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(`
`),{cause:Et,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InsufficientFundsError"})}}Object.defineProperty(InsufficientFundsError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds/});class IntrinsicGasTooHighError extends BaseError{constructor({cause:Et,gas:yt}={}){super(`The amount of gas ${yt?`(${yt}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:Et}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooHighError"})}}Object.defineProperty(IntrinsicGasTooHighError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class IntrinsicGasTooLowError extends BaseError{constructor({cause:Et,gas:yt}={}){super(`The amount of gas ${yt?`(${yt}) `:""}provided for the transaction is too low.`,{cause:Et}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooLowError"})}}Object.defineProperty(IntrinsicGasTooLowError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class TransactionTypeNotSupportedError extends BaseError{constructor({cause:Et}){super("The transaction type is not supported for this chain.",{cause:Et}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionTypeNotSupportedError"})}}Object.defineProperty(TransactionTypeNotSupportedError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class TipAboveFeeCapError extends BaseError{constructor({cause:Et,maxPriorityFeePerGas:yt,maxFeePerGas:Ct}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${yt?` = ${formatGwei(yt)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${Ct?` = ${formatGwei(Ct)} gwei`:""}).`].join(`
`),{cause:Et}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TipAboveFeeCapError"})}}Object.defineProperty(TipAboveFeeCapError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class UnknownNodeError extends BaseError{constructor({cause:Et}){super(`An error occurred while executing: ${Et==null?void 0:Et.shortMessage}`,{cause:Et}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownNodeError"})}}const addressRegex=/^0x[a-fA-F0-9]{40}$/;function isAddress$1(ht){return addressRegex.test(ht)}function concat$7(ht){return typeof ht[0]=="string"?concatHex(ht):concatBytes$1(ht)}function concatBytes$1(ht){let Et=0;for(const $t of ht)Et+=$t.length;const yt=new Uint8Array(Et);let Ct=0;for(const $t of ht)yt.set($t,Ct),Ct+=$t.length;return yt}function concatHex(ht){return`0x${ht.reduce((Et,yt)=>Et+yt.replace("0x",""),"")}`}function execTyped(ht,Et){const yt=ht.exec(Et);return yt==null?void 0:yt.groups}const tupleRegex=/^tuple(?<array>(\[(\d*)\])*)$/;function formatAbiParameter(ht){let Et=ht.type;if(tupleRegex.test(ht.type)&&"components"in ht){Et="(";const yt=ht.components.length;for(let $t=0;$t<yt;$t++){const At=ht.components[$t];Et+=formatAbiParameter(At),$t<yt-1&&(Et+=", ")}const Ct=execTyped(tupleRegex,ht.type);return Et+=`)${(Ct==null?void 0:Ct.array)??""}`,formatAbiParameter({...ht,type:Et})}return"indexed"in ht&&ht.indexed&&(Et=`${Et} indexed`),ht.name?`${Et} ${ht.name}`:Et}function formatAbiParameters(ht){let Et="";const yt=ht.length;for(let Ct=0;Ct<yt;Ct++){const $t=ht[Ct];Et+=formatAbiParameter($t),Ct!==yt-1&&(Et+=", ")}return Et}function formatAbiItem$1(ht){return ht.type==="function"?`function ${ht.name}(${formatAbiParameters(ht.inputs)})${ht.stateMutability&&ht.stateMutability!=="nonpayable"?` ${ht.stateMutability}`:""}${ht.outputs.length?` returns (${formatAbiParameters(ht.outputs)})`:""}`:ht.type==="event"?`event ${ht.name}(${formatAbiParameters(ht.inputs)})`:ht.type==="error"?`error ${ht.name}(${formatAbiParameters(ht.inputs)})`:ht.type==="constructor"?`constructor(${formatAbiParameters(ht.inputs)})${ht.stateMutability==="payable"?" payable":""}`:ht.type==="fallback"?"fallback()":"receive() external payable"}function getAction(ht,Et,yt){return Ct=>{var $t;return(($t=ht[Et.name||yt])==null?void 0:$t.call(ht,Ct))??Et(ht,Ct)}}function formatAbiItem(ht,{includeName:Et=!1}={}){if(ht.type!=="function"&&ht.type!=="event"&&ht.type!=="error")throw new InvalidDefinitionTypeError(ht.type);return`${ht.name}(${formatAbiParams(ht.inputs,{includeName:Et})})`}function formatAbiParams(ht,{includeName:Et=!1}={}){return ht?ht.map(yt=>formatAbiParam(yt,{includeName:Et})).join(Et?", ":","):""}function formatAbiParam(ht,{includeName:Et}){return ht.type.startsWith("tuple")?`(${formatAbiParams(ht.components,{includeName:Et})})${ht.type.slice(5)}`:ht.type+(Et&&ht.name?` ${ht.name}`:"")}class AbiConstructorNotFoundError extends BaseError{constructor({docsPath:Et}){super(["A constructor was not found on the ABI.","Make sure you are using the correct ABI and that the constructor exists on it."].join(`
`),{docsPath:Et}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorNotFoundError"})}}class AbiConstructorParamsNotFoundError extends BaseError{constructor({docsPath:Et}){super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join(`
`),{docsPath:Et}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorParamsNotFoundError"})}}class AbiDecodingDataSizeTooSmallError extends BaseError{constructor({data:Et,params:yt,size:Ct}){super([`Data size of ${Ct} bytes is too small for given parameters.`].join(`
`),{metaMessages:[`Params: (${formatAbiParams(yt,{includeName:!0})})`,`Data:   ${Et} (${Ct} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=Et,this.params=yt,this.size=Ct}}class AbiDecodingZeroDataError extends BaseError{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingZeroDataError"})}}class AbiEncodingArrayLengthMismatchError extends BaseError{constructor({expectedLength:Et,givenLength:yt,type:Ct}){super([`ABI encoding array length mismatch for type ${Ct}.`,`Expected length: ${Et}`,`Given length: ${yt}`].join(`
`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingArrayLengthMismatchError"})}}class AbiEncodingBytesSizeMismatchError extends BaseError{constructor({expectedSize:Et,value:yt}){super(`Size of bytes "${yt}" (bytes${size$1(yt)}) does not match expected size (bytes${Et}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingBytesSizeMismatchError"})}}class AbiEncodingLengthMismatchError extends BaseError{constructor({expectedLength:Et,givenLength:yt}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${Et}`,`Given length (values): ${yt}`].join(`
`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingLengthMismatchError"})}}class AbiErrorSignatureNotFoundError extends BaseError{constructor(Et,{docsPath:yt}){super([`Encoded error signature "${Et}" not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${Et}.`].join(`
`),{docsPath:yt}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=Et}}class AbiEventSignatureEmptyTopicsError extends BaseError{constructor({docsPath:Et}){super("Cannot extract event signature from empty topics.",{docsPath:Et}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureEmptyTopicsError"})}}class AbiEventSignatureNotFoundError extends BaseError{constructor(Et,{docsPath:yt}){super([`Encoded event signature "${Et}" not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${Et}.`].join(`
`),{docsPath:yt}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureNotFoundError"})}}class AbiEventNotFoundError extends BaseError{constructor(Et,{docsPath:yt}={}){super([`Event ${Et?`"${Et}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it."].join(`
`),{docsPath:yt}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventNotFoundError"})}}class AbiFunctionNotFoundError extends BaseError{constructor(Et,{docsPath:yt}={}){super([`Function ${Et?`"${Et}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join(`
`),{docsPath:yt}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionNotFoundError"})}}class AbiFunctionOutputsNotFoundError extends BaseError{constructor(Et,{docsPath:yt}){super([`Function "${Et}" does not contain any \`outputs\` on ABI.`,"Cannot decode function result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the function exists on it."].join(`
`),{docsPath:yt}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionOutputsNotFoundError"})}}class AbiItemAmbiguityError extends BaseError{constructor(Et,yt){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${Et.type}\` in \`${formatAbiItem(Et.abiItem)}\`, and`,`\`${yt.type}\` in \`${formatAbiItem(yt.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItemAmbiguityError"})}}class BytesSizeMismatchError extends BaseError{constructor({expectedSize:Et,givenSize:yt}){super(`Expected bytes${Et}, got bytes${yt}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BytesSizeMismatchError"})}}class DecodeLogDataMismatch extends BaseError{constructor({abiItem:Et,data:yt,params:Ct,size:$t}){super([`Data size of ${$t} bytes is too small for non-indexed event parameters.`].join(`
`),{metaMessages:[`Params: (${formatAbiParams(Ct,{includeName:!0})})`,`Data:   ${yt} (${$t} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=Et,this.data=yt,this.params=Ct,this.size=$t}}class DecodeLogTopicsMismatch extends BaseError{constructor({abiItem:Et,param:yt}){super([`Expected a topic for indexed event parameter${yt.name?` "${yt.name}"`:""} on event "${formatAbiItem(Et,{includeName:!0})}".`].join(`
`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=Et}}class InvalidAbiEncodingTypeError extends BaseError{constructor(Et,{docsPath:yt}){super([`Type "${Et}" is not a valid encoding type.`,"Please provide a valid ABI type."].join(`
`),{docsPath:yt}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiEncodingType"})}}class InvalidAbiDecodingTypeError extends BaseError{constructor(Et,{docsPath:yt}){super([`Type "${Et}" is not a valid decoding type.`,"Please provide a valid ABI type."].join(`
`),{docsPath:yt}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiDecodingType"})}}class InvalidArrayError extends BaseError{constructor(Et){super([`Value "${Et}" is not a valid array.`].join(`
`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidArrayError"})}}class InvalidDefinitionTypeError extends BaseError{constructor(Et){super([`"${Et}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join(`
`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidDefinitionTypeError"})}}class FilterTypeNotSupportedError extends BaseError{constructor(Et){super(`Filter type "${Et}" is not supported.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FilterTypeNotSupportedError"})}}function normalizeSignature(ht){let Et=!0,yt="",Ct=0,$t="",At=!1;for(let Bt=0;Bt<ht.length;Bt++){const Dt=ht[Bt];if(["(",")",","].includes(Dt)&&(Et=!0),Dt==="("&&Ct++,Dt===")"&&Ct--,!!Et){if(Ct===0){if(Dt===" "&&["event","function",""].includes($t))$t="";else if($t+=Dt,Dt===")"){At=!0;break}continue}if(Dt===" "){ht[Bt-1]!==","&&yt!==","&&yt!==",("&&(yt="",Et=!1);continue}$t+=Dt,yt+=Dt}}if(!At)throw new BaseError("Unable to normalize signature.");return $t}const getFunctionSignature=ht=>{const Et=typeof ht=="string"?ht:formatAbiItem$1(ht);return normalizeSignature(Et)},getEventSignature=ht=>getFunctionSignature(ht);function number$2(ht){if(!Number.isSafeInteger(ht)||ht<0)throw new Error(`Wrong positive integer: ${ht}`)}function bytes$1(ht,...Et){if(!(ht instanceof Uint8Array))throw new Error("Expected Uint8Array");if(Et.length>0&&!Et.includes(ht.length))throw new Error(`Expected Uint8Array of length ${Et}, not of length=${ht.length}`)}function exists$1(ht,Et=!0){if(ht.destroyed)throw new Error("Hash instance has been destroyed");if(Et&&ht.finished)throw new Error("Hash#digest() has already been called")}function output$1(ht,Et){bytes$1(ht);const yt=Et.outputLen;if(ht.length<yt)throw new Error(`digestInto() expects output buffer of length at least ${yt}`)}const U32_MASK64$1=BigInt(2**32-1),_32n$1=BigInt(32);function fromBig$1(ht,Et=!1){return Et?{h:Number(ht&U32_MASK64$1),l:Number(ht>>_32n$1&U32_MASK64$1)}:{h:Number(ht>>_32n$1&U32_MASK64$1)|0,l:Number(ht&U32_MASK64$1)|0}}function split$3(ht,Et=!1){let yt=new Uint32Array(ht.length),Ct=new Uint32Array(ht.length);for(let $t=0;$t<ht.length;$t++){const{h:At,l:Bt}=fromBig$1(ht[$t],Et);[yt[$t],Ct[$t]]=[At,Bt]}return[yt,Ct]}const rotlSH$1=(ht,Et,yt)=>ht<<yt|Et>>>32-yt,rotlSL$1=(ht,Et,yt)=>Et<<yt|ht>>>32-yt,rotlBH$1=(ht,Et,yt)=>Et<<yt-32|ht>>>64-yt,rotlBL$1=(ht,Et,yt)=>ht<<yt-32|Et>>>64-yt;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const u8a$2=ht=>ht instanceof Uint8Array,u32$1=ht=>new Uint32Array(ht.buffer,ht.byteOffset,Math.floor(ht.byteLength/4)),isLE$1=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!isLE$1)throw new Error("Non little-endian hardware is not supported");function utf8ToBytes$2(ht){if(typeof ht!="string")throw new Error(`utf8ToBytes expected string, got ${typeof ht}`);return new Uint8Array(new TextEncoder().encode(ht))}function toBytes$1(ht){if(typeof ht=="string"&&(ht=utf8ToBytes$2(ht)),!u8a$2(ht))throw new Error(`expected Uint8Array, got ${typeof ht}`);return ht}let Hash$d=class{clone(){return this._cloneInto()}};function wrapConstructor$2(ht){const Et=Ct=>ht().update(toBytes$1(Ct)).digest(),yt=ht();return Et.outputLen=yt.outputLen,Et.blockLen=yt.blockLen,Et.create=()=>ht(),Et}const[SHA3_PI$1,SHA3_ROTL$1,_SHA3_IOTA$1]=[[],[],[]],_0n$2=BigInt(0),_1n$2=BigInt(1),_2n$2=BigInt(2),_7n$1=BigInt(7),_256n$1=BigInt(256),_0x71n$1=BigInt(113);for(let ht=0,Et=_1n$2,yt=1,Ct=0;ht<24;ht++){[yt,Ct]=[Ct,(2*yt+3*Ct)%5],SHA3_PI$1.push(2*(5*Ct+yt)),SHA3_ROTL$1.push((ht+1)*(ht+2)/2%64);let $t=_0n$2;for(let At=0;At<7;At++)Et=(Et<<_1n$2^(Et>>_7n$1)*_0x71n$1)%_256n$1,Et&_2n$2&&($t^=_1n$2<<(_1n$2<<BigInt(At))-_1n$2);_SHA3_IOTA$1.push($t)}const[SHA3_IOTA_H$1,SHA3_IOTA_L$1]=split$3(_SHA3_IOTA$1,!0),rotlH$1=(ht,Et,yt)=>yt>32?rotlBH$1(ht,Et,yt):rotlSH$1(ht,Et,yt),rotlL$1=(ht,Et,yt)=>yt>32?rotlBL$1(ht,Et,yt):rotlSL$1(ht,Et,yt);function keccakP$1(ht,Et=24){const yt=new Uint32Array(10);for(let Ct=24-Et;Ct<24;Ct++){for(let Bt=0;Bt<10;Bt++)yt[Bt]=ht[Bt]^ht[Bt+10]^ht[Bt+20]^ht[Bt+30]^ht[Bt+40];for(let Bt=0;Bt<10;Bt+=2){const Dt=(Bt+8)%10,Ft=(Bt+2)%10,kt=yt[Ft],Mt=yt[Ft+1],Nt=rotlH$1(kt,Mt,1)^yt[Dt],jt=rotlL$1(kt,Mt,1)^yt[Dt+1];for(let zt=0;zt<50;zt+=10)ht[Bt+zt]^=Nt,ht[Bt+zt+1]^=jt}let $t=ht[2],At=ht[3];for(let Bt=0;Bt<24;Bt++){const Dt=SHA3_ROTL$1[Bt],Ft=rotlH$1($t,At,Dt),kt=rotlL$1($t,At,Dt),Mt=SHA3_PI$1[Bt];$t=ht[Mt],At=ht[Mt+1],ht[Mt]=Ft,ht[Mt+1]=kt}for(let Bt=0;Bt<50;Bt+=10){for(let Dt=0;Dt<10;Dt++)yt[Dt]=ht[Bt+Dt];for(let Dt=0;Dt<10;Dt++)ht[Bt+Dt]^=~yt[(Dt+2)%10]&yt[(Dt+4)%10]}ht[0]^=SHA3_IOTA_H$1[Ct],ht[1]^=SHA3_IOTA_L$1[Ct]}yt.fill(0)}let Keccak$1=class Qs extends Hash$d{constructor(Et,yt,Ct,$t=!1,At=24){if(super(),this.blockLen=Et,this.suffix=yt,this.outputLen=Ct,this.enableXOF=$t,this.rounds=At,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,number$2(Ct),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=u32$1(this.state)}keccak(){keccakP$1(this.state32,this.rounds),this.posOut=0,this.pos=0}update(Et){exists$1(this);const{blockLen:yt,state:Ct}=this;Et=toBytes$1(Et);const $t=Et.length;for(let At=0;At<$t;){const Bt=Math.min(yt-this.pos,$t-At);for(let Dt=0;Dt<Bt;Dt++)Ct[this.pos++]^=Et[At++];this.pos===yt&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:Et,suffix:yt,pos:Ct,blockLen:$t}=this;Et[Ct]^=yt,yt&128&&Ct===$t-1&&this.keccak(),Et[$t-1]^=128,this.keccak()}writeInto(Et){exists$1(this,!1),bytes$1(Et),this.finish();const yt=this.state,{blockLen:Ct}=this;for(let $t=0,At=Et.length;$t<At;){this.posOut>=Ct&&this.keccak();const Bt=Math.min(Ct-this.posOut,At-$t);Et.set(yt.subarray(this.posOut,this.posOut+Bt),$t),this.posOut+=Bt,$t+=Bt}return Et}xofInto(Et){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(Et)}xof(Et){return number$2(Et),this.xofInto(new Uint8Array(Et))}digestInto(Et){if(output$1(Et,this),this.finished)throw new Error("digest() was already called");return this.writeInto(Et),this.destroy(),Et}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(Et){const{blockLen:yt,suffix:Ct,outputLen:$t,rounds:At,enableXOF:Bt}=this;return Et||(Et=new Qs(yt,Ct,$t,Bt,At)),Et.state32.set(this.state32),Et.pos=this.pos,Et.posOut=this.posOut,Et.finished=this.finished,Et.rounds=At,Et.suffix=Ct,Et.outputLen=$t,Et.enableXOF=Bt,Et.destroyed=this.destroyed,Et}};const gen$1=(ht,Et,yt)=>wrapConstructor$2(()=>new Keccak$1(Et,ht,yt)),keccak_256$1=gen$1(1,136,256/8);function keccak256$1(ht,Et){const yt=Et||"hex",Ct=keccak_256$1(isHex(ht,{strict:!1})?toBytes$2(ht):ht);return yt==="bytes"?Ct:toHex$2(Ct)}const hash$7=ht=>keccak256$1(toBytes$2(ht)),getEventSelector=ht=>hash$7(getEventSignature(ht));function slice$4(ht,Et,yt,{strict:Ct}={}){return isHex(ht,{strict:!1})?sliceHex(ht,Et,yt,{strict:Ct}):sliceBytes(ht,Et,yt,{strict:Ct})}function assertStartOffset(ht,Et){if(typeof Et=="number"&&Et>0&&Et>size$1(ht)-1)throw new SliceOffsetOutOfBoundsError({offset:Et,position:"start",size:size$1(ht)})}function assertEndOffset(ht,Et,yt){if(typeof Et=="number"&&typeof yt=="number"&&size$1(ht)!==yt-Et)throw new SliceOffsetOutOfBoundsError({offset:yt,position:"end",size:size$1(ht)})}function sliceBytes(ht,Et,yt,{strict:Ct}={}){assertStartOffset(ht,Et);const $t=ht.slice(Et,yt);return Ct&&assertEndOffset($t,Et,yt),$t}function sliceHex(ht,Et,yt,{strict:Ct}={}){assertStartOffset(ht,Et);const $t=`0x${ht.replace("0x","").slice((Et??0)*2,(yt??ht.length)*2)}`;return Ct&&assertEndOffset($t,Et,yt),$t}function encodeAbiParameters(ht,Et){if(ht.length!==Et.length)throw new AbiEncodingLengthMismatchError({expectedLength:ht.length,givenLength:Et.length});const yt=prepareParams({params:ht,values:Et}),Ct=encodeParams(yt);return Ct.length===0?"0x":Ct}function prepareParams({params:ht,values:Et}){const yt=[];for(let Ct=0;Ct<ht.length;Ct++)yt.push(prepareParam({param:ht[Ct],value:Et[Ct]}));return yt}function prepareParam({param:ht,value:Et}){const yt=getArrayComponents(ht.type);if(yt){const[Ct,$t]=yt;return encodeArray(Et,{length:Ct,param:{...ht,type:$t}})}if(ht.type==="tuple")return encodeTuple(Et,{param:ht});if(ht.type==="address")return encodeAddress(Et);if(ht.type==="bool")return encodeBool(Et);if(ht.type.startsWith("uint")||ht.type.startsWith("int")){const Ct=ht.type.startsWith("int");return encodeNumber(Et,{signed:Ct})}if(ht.type.startsWith("bytes"))return encodeBytes(Et,{param:ht});if(ht.type==="string")return encodeString(Et);throw new InvalidAbiEncodingTypeError(ht.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function encodeParams(ht){let Et=0;for(let At=0;At<ht.length;At++){const{dynamic:Bt,encoded:Dt}=ht[At];Bt?Et+=32:Et+=size$1(Dt)}const yt=[],Ct=[];let $t=0;for(let At=0;At<ht.length;At++){const{dynamic:Bt,encoded:Dt}=ht[At];Bt?(yt.push(numberToHex(Et+$t,{size:32})),Ct.push(Dt),$t+=size$1(Dt)):yt.push(Dt)}return concat$7([...yt,...Ct])}function encodeAddress(ht){if(!isAddress$1(ht))throw new InvalidAddressError({address:ht});return{dynamic:!1,encoded:padHex(ht.toLowerCase())}}function encodeArray(ht,{length:Et,param:yt}){const Ct=Et===null;if(!Array.isArray(ht))throw new InvalidArrayError(ht);if(!Ct&&ht.length!==Et)throw new AbiEncodingArrayLengthMismatchError({expectedLength:Et,givenLength:ht.length,type:`${yt.type}[${Et}]`});let $t=!1;const At=[];for(let Bt=0;Bt<ht.length;Bt++){const Dt=prepareParam({param:yt,value:ht[Bt]});Dt.dynamic&&($t=!0),At.push(Dt)}if(Ct||$t){const Bt=encodeParams(At);if(Ct){const Dt=numberToHex(At.length,{size:32});return{dynamic:!0,encoded:At.length>0?concat$7([Dt,Bt]):Dt}}if($t)return{dynamic:!0,encoded:Bt}}return{dynamic:!1,encoded:concat$7(At.map(({encoded:Bt})=>Bt))}}function encodeBytes(ht,{param:Et}){const[,yt]=Et.type.split("bytes"),Ct=size$1(ht);if(!yt){let $t=ht;return Ct%32!==0&&($t=padHex($t,{dir:"right",size:Math.ceil((ht.length-2)/2/32)*32})),{dynamic:!0,encoded:concat$7([padHex(numberToHex(Ct,{size:32})),$t])}}if(Ct!==parseInt(yt))throw new AbiEncodingBytesSizeMismatchError({expectedSize:parseInt(yt),value:ht});return{dynamic:!1,encoded:padHex(ht,{dir:"right"})}}function encodeBool(ht){return{dynamic:!1,encoded:padHex(boolToHex(ht))}}function encodeNumber(ht,{signed:Et}){return{dynamic:!1,encoded:numberToHex(ht,{size:32,signed:Et})}}function encodeString(ht){const Et=stringToHex(ht),yt=Math.ceil(size$1(Et)/32),Ct=[];for(let $t=0;$t<yt;$t++)Ct.push(padHex(slice$4(Et,$t*32,($t+1)*32),{dir:"right"}));return{dynamic:!0,encoded:concat$7([padHex(numberToHex(size$1(Et),{size:32})),...Ct])}}function encodeTuple(ht,{param:Et}){let yt=!1;const Ct=[];for(let $t=0;$t<Et.components.length;$t++){const At=Et.components[$t],Bt=Array.isArray(ht)?$t:At.name,Dt=prepareParam({param:At,value:ht[Bt]});Ct.push(Dt),Dt.dynamic&&(yt=!0)}return{dynamic:yt,encoded:yt?encodeParams(Ct):concat$7(Ct.map(({encoded:$t})=>$t))}}function getArrayComponents(ht){const Et=ht.match(/^(.*)\[(\d+)?\]$/);return Et?[Et[2]?Number(Et[2]):null,Et[1]]:void 0}const hash$6=ht=>keccak256$1(toBytes$2(ht)),getFunctionSelector=ht=>slice$4(hash$6(getFunctionSignature(ht)),0,4);function getAbiItem({abi:ht,args:Et=[],name:yt}){const Ct=isHex(yt,{strict:!1}),$t=ht.filter(Bt=>Ct?Bt.type==="function"?getFunctionSelector(Bt)===yt:Bt.type==="event"?getEventSelector(Bt)===yt:!1:"name"in Bt&&Bt.name===yt);if($t.length===0)return;if($t.length===1)return $t[0];let At;for(const Bt of $t){if(!("inputs"in Bt))continue;if(!Et||Et.length===0){if(!Bt.inputs||Bt.inputs.length===0)return Bt;continue}if(!Bt.inputs||Bt.inputs.length===0||Bt.inputs.length!==Et.length)continue;if(Et.every((Ft,kt)=>{const Mt="inputs"in Bt&&Bt.inputs[kt];return Mt?isArgOfType(Ft,Mt):!1})){if(At&&"inputs"in At&&At.inputs){const Ft=getAmbiguousTypes(Bt.inputs,At.inputs,Et);if(Ft)throw new AbiItemAmbiguityError({abiItem:Bt,type:Ft[0]},{abiItem:At,type:Ft[1]})}At=Bt}}return At||$t[0]}function isArgOfType(ht,Et){const yt=typeof ht,Ct=Et.type;switch(Ct){case"address":return isAddress$1(ht);case"bool":return yt==="boolean";case"function":return yt==="string";case"string":return yt==="string";default:return Ct==="tuple"&&"components"in Et?Object.values(Et.components).every(($t,At)=>isArgOfType(Object.values(ht)[At],$t)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(Ct)?yt==="number"||yt==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(Ct)?yt==="string"||ht instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(Ct)?Array.isArray(ht)&&ht.every($t=>isArgOfType($t,{...Et,type:Ct.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function getAmbiguousTypes(ht,Et,yt){for(const Ct in ht){const $t=ht[Ct],At=Et[Ct];if($t.type==="tuple"&&At.type==="tuple"&&"components"in $t&&"components"in At)return getAmbiguousTypes($t.components,At.components,yt[Ct]);const Bt=[$t.type,At.type];if(Bt.includes("address")&&Bt.includes("bytes20")?!0:Bt.includes("address")&&Bt.includes("string")||Bt.includes("address")&&Bt.includes("bytes")?isAddress$1(yt[Ct]):!1)return Bt}}function encodeEventTopics({abi:ht,eventName:Et,args:yt}){var Dt;let Ct=ht[0];if(Et&&(Ct=getAbiItem({abi:ht,args:yt,name:Et}),!Ct))throw new AbiEventNotFoundError(Et,{docsPath:"/docs/contract/encodeEventTopics"});if(Ct.type!=="event")throw new AbiEventNotFoundError(void 0,{docsPath:"/docs/contract/encodeEventTopics"});const $t=formatAbiItem(Ct),At=getEventSelector($t);let Bt=[];if(yt&&"inputs"in Ct){const Ft=(Dt=Ct.inputs)==null?void 0:Dt.filter(Mt=>"indexed"in Mt&&Mt.indexed),kt=Array.isArray(yt)?yt:Object.values(yt).length>0?(Ft==null?void 0:Ft.map(Mt=>yt[Mt.name]))??[]:[];kt.length>0&&(Bt=(Ft==null?void 0:Ft.map((Mt,Nt)=>Array.isArray(kt[Nt])?kt[Nt].map((jt,zt)=>encodeArg({param:Mt,value:kt[Nt][zt]})):kt[Nt]?encodeArg({param:Mt,value:kt[Nt]}):null))??[])}return[At,...Bt]}function encodeArg({param:ht,value:Et}){if(ht.type==="string"||ht.type==="bytes")return keccak256$1(toBytes$2(Et));if(ht.type==="tuple"||ht.type.match(/^(.*)\[(\d+)?\]$/))throw new FilterTypeNotSupportedError(ht.type);return encodeAbiParameters([ht],[Et])}function createFilterRequestScope(ht,{method:Et}){var Ct,$t;const yt={};return ht.transport.type==="fallback"&&(($t=(Ct=ht.transport).onResponse)==null||$t.call(Ct,({method:At,response:Bt,status:Dt,transport:Ft})=>{Dt==="success"&&Et===At&&(yt[Bt]=Ft.request)})),At=>yt[At]||ht.request}async function createContractEventFilter(ht,{address:Et,abi:yt,args:Ct,eventName:$t,fromBlock:At,strict:Bt,toBlock:Dt}){const Ft=createFilterRequestScope(ht,{method:"eth_newFilter"}),kt=$t?encodeEventTopics({abi:yt,args:Ct,eventName:$t}):void 0,Mt=await ht.request({method:"eth_newFilter",params:[{address:Et,fromBlock:typeof At=="bigint"?numberToHex(At):At,toBlock:typeof Dt=="bigint"?numberToHex(Dt):Dt,topics:kt}]});return{abi:yt,args:Ct,eventName:$t,id:Mt,request:Ft(Mt),strict:Bt,type:"event"}}function parseAccount(ht){return typeof ht=="string"?{address:ht,type:"json-rpc"}:ht}function encodeFunctionData({abi:ht,args:Et,functionName:yt}){let Ct=ht[0];if(yt&&(Ct=getAbiItem({abi:ht,args:Et,name:yt}),!Ct))throw new AbiFunctionNotFoundError(yt,{docsPath:"/docs/contract/encodeFunctionData"});if(Ct.type!=="function")throw new AbiFunctionNotFoundError(void 0,{docsPath:"/docs/contract/encodeFunctionData"});const $t=formatAbiItem(Ct),At=getFunctionSelector($t),Bt="inputs"in Ct&&Ct.inputs?encodeAbiParameters(Ct.inputs,Et??[]):void 0;return concatHex([At,Bt??"0x"])}const panicReasons={1:"An `assert` condition failed.",17:"Arithmic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},solidityError={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},solidityPanic={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};function checksumAddress(ht,Et){const yt=ht.substring(2).toLowerCase(),Ct=keccak256$1(stringToBytes(yt),"bytes"),$t=yt.split("");for(let At=0;At<40;At+=2)Ct[At>>1]>>4>=8&&$t[At]&&($t[At]=$t[At].toUpperCase()),(Ct[At>>1]&15)>=8&&$t[At+1]&&($t[At+1]=$t[At+1].toUpperCase());return`0x${$t.join("")}`}function getAddress$1(ht,Et){if(!isAddress$1(ht))throw new InvalidAddressError({address:ht});return checksumAddress(ht)}function decodeAbiParameters(ht,Et){if(Et==="0x"&&ht.length>0)throw new AbiDecodingZeroDataError;if(size$1(Et)&&size$1(Et)<32)throw new AbiDecodingDataSizeTooSmallError({data:Et,params:ht,size:size$1(Et)});return decodeParams({data:Et,params:ht})}function decodeParams({data:ht,params:Et}){const yt=[];let Ct=0;for(let $t=0;$t<Et.length;$t++){if(Ct>=size$1(ht))throw new AbiDecodingDataSizeTooSmallError({data:ht,params:Et,size:size$1(ht)});const At=Et[$t],{consumed:Bt,value:Dt}=decodeParam({data:ht,param:At,position:Ct});yt.push(Dt),Ct+=Bt}return yt}function decodeParam({data:ht,param:Et,position:yt}){const Ct=getArrayComponents(Et.type);if(Ct){const[At,Bt]=Ct;return decodeArray(ht,{length:At,param:{...Et,type:Bt},position:yt})}if(Et.type==="tuple")return decodeTuple(ht,{param:Et,position:yt});if(Et.type==="string")return decodeString(ht,{position:yt});if(Et.type.startsWith("bytes"))return decodeBytes(ht,{param:Et,position:yt});const $t=slice$4(ht,yt,yt+32,{strict:!0});if(Et.type.startsWith("uint")||Et.type.startsWith("int"))return decodeNumber($t,{param:Et});if(Et.type==="address")return decodeAddress($t);if(Et.type==="bool")return decodeBool($t);throw new InvalidAbiDecodingTypeError(Et.type,{docsPath:"/docs/contract/decodeAbiParameters"})}function decodeAddress(ht){return{consumed:32,value:checksumAddress(slice$4(ht,-20))}}function decodeArray(ht,{param:Et,length:yt,position:Ct}){if(!yt){const Bt=hexToNumber$1(slice$4(ht,Ct,Ct+32,{strict:!0})),Dt=hexToNumber$1(slice$4(ht,Bt,Bt+32,{strict:!0}));let Ft=0;const kt=[];for(let Mt=0;Mt<Dt;++Mt){const Nt=decodeParam({data:slice$4(ht,Bt+32),param:Et,position:Ft});Ft+=Nt.consumed,kt.push(Nt.value)}return{value:kt,consumed:32}}if(hasDynamicChild(Et)){const Bt=getArrayComponents(Et.type),Dt=!(Bt!=null&&Bt[0]);let Ft=0;const kt=[];for(let Mt=0;Mt<yt;++Mt){const Nt=hexToNumber$1(slice$4(ht,Ct,Ct+32,{strict:!0})),jt=decodeParam({data:slice$4(ht,Nt),param:Et,position:Dt?Ft:Mt*32});Ft+=jt.consumed,kt.push(jt.value)}return{value:kt,consumed:32}}let $t=0;const At=[];for(let Bt=0;Bt<yt;++Bt){const Dt=decodeParam({data:ht,param:Et,position:Ct+$t});$t+=Dt.consumed,At.push(Dt.value)}return{value:At,consumed:$t}}function decodeBool(ht){return{consumed:32,value:hexToBool(ht)}}function decodeBytes(ht,{param:Et,position:yt}){const[Ct,$t]=Et.type.split("bytes");if(!$t){const Bt=hexToNumber$1(slice$4(ht,yt,yt+32,{strict:!0})),Dt=hexToNumber$1(slice$4(ht,Bt,Bt+32,{strict:!0}));return Dt===0?{consumed:32,value:"0x"}:{consumed:32,value:slice$4(ht,Bt+32,Bt+32+Dt,{strict:!0})}}return{consumed:32,value:slice$4(ht,yt,yt+parseInt($t),{strict:!0})}}function decodeNumber(ht,{param:Et}){const yt=Et.type.startsWith("int");return{consumed:32,value:parseInt(Et.type.split("int")[1]||"256")>48?hexToBigInt(ht,{signed:yt}):hexToNumber$1(ht,{signed:yt})}}function decodeString(ht,{position:Et}){const yt=hexToNumber$1(slice$4(ht,Et,Et+32,{strict:!0})),Ct=hexToNumber$1(slice$4(ht,yt,yt+32,{strict:!0}));return Ct===0?{consumed:32,value:""}:{consumed:32,value:hexToString(trim$2(slice$4(ht,yt+32,yt+32+Ct,{strict:!0})))}}function decodeTuple(ht,{param:Et,position:yt}){const Ct=Et.components.length===0||Et.components.some(({name:Bt})=>!Bt),$t=Ct?[]:{};let At=0;if(hasDynamicChild(Et)){const Bt=hexToNumber$1(slice$4(ht,yt,yt+32,{strict:!0}));for(let Dt=0;Dt<Et.components.length;++Dt){const Ft=Et.components[Dt],kt=decodeParam({data:slice$4(ht,Bt),param:Ft,position:At});At+=kt.consumed,$t[Ct?Dt:Ft==null?void 0:Ft.name]=kt.value}return{consumed:32,value:$t}}for(let Bt=0;Bt<Et.components.length;++Bt){const Dt=Et.components[Bt],Ft=decodeParam({data:ht,param:Dt,position:yt+At});At+=Ft.consumed,$t[Ct?Bt:Dt==null?void 0:Dt.name]=Ft.value}return{consumed:At,value:$t}}function hasDynamicChild(ht){var Ct;const{type:Et}=ht;if(Et==="string"||Et==="bytes"||Et.endsWith("[]"))return!0;if(Et==="tuple")return(Ct=ht.components)==null?void 0:Ct.some(hasDynamicChild);const yt=getArrayComponents(ht.type);return!!(yt&&hasDynamicChild({...ht,type:yt[1]}))}function decodeErrorResult({abi:ht,data:Et}){const yt=slice$4(Et,0,4);if(yt==="0x")throw new AbiDecodingZeroDataError;const $t=[...ht||[],solidityError,solidityPanic].find(At=>At.type==="error"&&yt===getFunctionSelector(formatAbiItem(At)));if(!$t)throw new AbiErrorSignatureNotFoundError(yt,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:$t,args:"inputs"in $t&&$t.inputs&&$t.inputs.length>0?decodeAbiParameters($t.inputs,slice$4(Et,4)):void 0,errorName:$t.name}}const stringify$9=(ht,Et,yt)=>JSON.stringify(ht,(Ct,$t)=>{const At=typeof $t=="bigint"?$t.toString():$t;return typeof Et=="function"?Et(Ct,At):At},yt);function formatAbiItemWithArgs({abiItem:ht,args:Et,includeFunctionName:yt=!0,includeName:Ct=!1}){if("name"in ht&&"inputs"in ht&&ht.inputs)return`${yt?ht.name:""}(${ht.inputs.map(($t,At)=>`${Ct&&$t.name?`${$t.name}: `:""}${typeof Et[At]=="object"?stringify$9(Et[At]):Et[At]}`).join(", ")})`}function formatEther$1(ht,Et="wei"){return formatUnits$1(ht,etherUnits[Et])}function prettyPrint(ht){const Et=Object.entries(ht).map(([Ct,$t])=>$t===void 0||$t===!1?null:[Ct,$t]).filter(Boolean),yt=Et.reduce((Ct,[$t])=>Math.max(Ct,$t.length),0);return Et.map(([Ct,$t])=>`  ${`${Ct}:`.padEnd(yt+1)}  ${$t}`).join(`
`)}class FeeConflictError extends BaseError{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join(`
`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeConflictError"})}}class InvalidSerializableTransactionError extends BaseError{constructor({transaction:Et}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",prettyPrint(Et),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- a Legacy Transaction with `gasPrice`"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializableTransactionError"})}}class TransactionExecutionError extends BaseError{constructor(Et,{account:yt,docsPath:Ct,chain:$t,data:At,gas:Bt,gasPrice:Dt,maxFeePerGas:Ft,maxPriorityFeePerGas:kt,nonce:Mt,to:Nt,value:jt}){var Vt;const zt=prettyPrint({chain:$t&&`${$t==null?void 0:$t.name} (id: ${$t==null?void 0:$t.id})`,from:yt==null?void 0:yt.address,to:Nt,value:typeof jt<"u"&&`${formatEther$1(jt)} ${((Vt=$t==null?void 0:$t.nativeCurrency)==null?void 0:Vt.symbol)||"ETH"}`,data:At,gas:Bt,gasPrice:typeof Dt<"u"&&`${formatGwei(Dt)} gwei`,maxFeePerGas:typeof Ft<"u"&&`${formatGwei(Ft)} gwei`,maxPriorityFeePerGas:typeof kt<"u"&&`${formatGwei(kt)} gwei`,nonce:Mt});super(Et.shortMessage,{cause:Et,docsPath:Ct,metaMessages:[...Et.metaMessages?[...Et.metaMessages," "]:[],"Request Arguments:",zt].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionExecutionError"}),this.cause=Et}}class TransactionNotFoundError extends BaseError{constructor({blockHash:Et,blockNumber:yt,blockTag:Ct,hash:$t,index:At}){let Bt="Transaction";Ct&&At!==void 0&&(Bt=`Transaction at block time "${Ct}" at index "${At}"`),Et&&At!==void 0&&(Bt=`Transaction at block hash "${Et}" at index "${At}"`),yt&&At!==void 0&&(Bt=`Transaction at block number "${yt}" at index "${At}"`),$t&&(Bt=`Transaction with hash "${$t}"`),super(`${Bt} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionNotFoundError"})}}class TransactionReceiptNotFoundError extends BaseError{constructor({hash:Et}){super(`Transaction receipt with hash "${Et}" could not be found. The Transaction may not be processed on a block yet.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionReceiptNotFoundError"})}}class WaitForTransactionReceiptTimeoutError extends BaseError{constructor({hash:Et}){super(`Timed out while waiting for transaction with hash "${Et}" to be confirmed.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WaitForTransactionReceiptTimeoutError"})}}class CallExecutionError extends BaseError{constructor(Et,{account:yt,docsPath:Ct,chain:$t,data:At,gas:Bt,gasPrice:Dt,maxFeePerGas:Ft,maxPriorityFeePerGas:kt,nonce:Mt,to:Nt,value:jt}){var Kt;const zt=yt?parseAccount(yt):void 0,Vt=prettyPrint({from:zt==null?void 0:zt.address,to:Nt,value:typeof jt<"u"&&`${formatEther$1(jt)} ${((Kt=$t==null?void 0:$t.nativeCurrency)==null?void 0:Kt.symbol)||"ETH"}`,data:At,gas:Bt,gasPrice:typeof Dt<"u"&&`${formatGwei(Dt)} gwei`,maxFeePerGas:typeof Ft<"u"&&`${formatGwei(Ft)} gwei`,maxPriorityFeePerGas:typeof kt<"u"&&`${formatGwei(kt)} gwei`,nonce:Mt});super(Et.shortMessage,{cause:Et,docsPath:Ct,metaMessages:[...Et.metaMessages?[...Et.metaMessages," "]:[],"Raw Call Arguments:",Vt].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CallExecutionError"}),this.cause=Et}}class ContractFunctionExecutionError extends BaseError{constructor(Et,{abi:yt,args:Ct,contractAddress:$t,docsPath:At,functionName:Bt,sender:Dt}){const Ft=getAbiItem({abi:yt,args:Ct,name:Bt}),kt=Ft?formatAbiItemWithArgs({abiItem:Ft,args:Ct,includeFunctionName:!1,includeName:!1}):void 0,Mt=Ft?formatAbiItem(Ft,{includeName:!0}):void 0,Nt=prettyPrint({address:$t&&getContractAddress($t),function:Mt,args:kt&&kt!=="()"&&`${[...Array((Bt==null?void 0:Bt.length)??0).keys()].map(()=>" ").join("")}${kt}`,sender:Dt});super(Et.shortMessage||`An unknown error occurred while executing the contract function "${Bt}".`,{cause:Et,docsPath:At,metaMessages:[...Et.metaMessages?[...Et.metaMessages," "]:[],"Contract Call:",Nt].filter(Boolean)}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionExecutionError"}),this.abi=yt,this.args=Ct,this.cause=Et,this.contractAddress=$t,this.functionName=Bt,this.sender=Dt}}class ContractFunctionRevertedError extends BaseError{constructor({abi:Et,data:yt,functionName:Ct,message:$t}){let At,Bt,Dt,Ft;if(yt&&yt!=="0x")try{Bt=decodeErrorResult({abi:Et,data:yt});const{abiItem:Mt,errorName:Nt,args:jt}=Bt;if(Nt==="Error")Ft=jt[0];else if(Nt==="Panic"){const[zt]=jt;Ft=panicReasons[zt]}else{const zt=Mt?formatAbiItem(Mt,{includeName:!0}):void 0,Vt=Mt&&jt?formatAbiItemWithArgs({abiItem:Mt,args:jt,includeFunctionName:!1,includeName:!1}):void 0;Dt=[zt?`Error: ${zt}`:"",Vt&&Vt!=="()"?`       ${[...Array((Nt==null?void 0:Nt.length)??0).keys()].map(()=>" ").join("")}${Vt}`:""]}}catch(Mt){At=Mt}else $t&&(Ft=$t);let kt;At instanceof AbiErrorSignatureNotFoundError&&(kt=At.signature,Dt=[`Unable to decode signature "${kt}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${kt}.`]),super(Ft&&Ft!=="execution reverted"||kt?[`The contract function "${Ct}" reverted with the following ${kt?"signature":"reason"}:`,Ft||kt].join(`
`):`The contract function "${Ct}" reverted.`,{cause:At,metaMessages:Dt}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=Bt,this.reason=Ft,this.signature=kt}}class ContractFunctionZeroDataError extends BaseError{constructor({functionName:Et}){super(`The contract function "${Et}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",`  - The contract does not have the function "${Et}",`,"  - The parameters passed to the contract function may be invalid, or","  - The address is not a contract."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionZeroDataError"})}}class RawContractError extends BaseError{constructor({data:Et,message:yt}){super(yt||""),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RawContractError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=Et}}class HttpRequestError extends BaseError{constructor({body:Et,details:yt,headers:Ct,status:$t,url:At}){super("HTTP request failed.",{details:yt,metaMessages:[$t&&`Status: ${$t}`,`URL: ${getUrl(At)}`,Et&&`Request body: ${stringify$9(Et)}`].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=Et,this.headers=Ct,this.status=$t,this.url=At}}class WebSocketRequestError extends BaseError{constructor({body:Et,details:yt,url:Ct}){super("WebSocket request failed.",{details:yt,metaMessages:[`URL: ${getUrl(Ct)}`,`Request body: ${stringify$9(Et)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WebSocketRequestError"})}}class RpcRequestError extends BaseError{constructor({body:Et,error:yt,url:Ct}){super("RPC Request failed.",{cause:yt,details:yt.message,metaMessages:[`URL: ${getUrl(Ct)}`,`Request body: ${stringify$9(Et)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=yt.code}}class TimeoutError extends BaseError{constructor({body:Et,url:yt}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${getUrl(yt)}`,`Request body: ${stringify$9(Et)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TimeoutError"})}}const unknownErrorCode=-1;class RpcError extends BaseError{constructor(Et,{code:yt,docsPath:Ct,metaMessages:$t,shortMessage:At}){super(At,{cause:Et,docsPath:Ct,metaMessages:$t||(Et==null?void 0:Et.metaMessages)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=Et.name,this.code=Et instanceof RpcRequestError?Et.code:yt??unknownErrorCode}}class ProviderRpcError extends RpcError{constructor(Et,yt){super(Et,yt),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderRpcError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=yt.data}}class ParseRpcError extends RpcError{constructor(Et){super(Et,{code:ParseRpcError.code,shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ParseRpcError"})}}Object.defineProperty(ParseRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class InvalidRequestRpcError extends RpcError{constructor(Et){super(Et,{code:InvalidRequestRpcError.code,shortMessage:"JSON is not a valid request object."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidRequestRpcError"})}}Object.defineProperty(InvalidRequestRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class MethodNotFoundRpcError extends RpcError{constructor(Et){super(Et,{code:MethodNotFoundRpcError.code,shortMessage:"The method does not exist / is not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotFoundRpcError"})}}Object.defineProperty(MethodNotFoundRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class InvalidParamsRpcError extends RpcError{constructor(Et){super(Et,{code:InvalidParamsRpcError.code,shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(`
`)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParamsRpcError"})}}Object.defineProperty(InvalidParamsRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class InternalRpcError extends RpcError{constructor(Et){super(Et,{code:InternalRpcError.code,shortMessage:"An internal error was received."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InternalRpcError"})}}Object.defineProperty(InternalRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class InvalidInputRpcError extends RpcError{constructor(Et){super(Et,{code:InvalidInputRpcError.code,shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join(`
`)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidInputRpcError"})}}Object.defineProperty(InvalidInputRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class ResourceNotFoundRpcError extends RpcError{constructor(Et){super(Et,{code:ResourceNotFoundRpcError.code,shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(ResourceNotFoundRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class ResourceUnavailableRpcError extends RpcError{constructor(Et){super(Et,{code:ResourceUnavailableRpcError.code,shortMessage:"Requested resource not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceUnavailableRpcError"})}}Object.defineProperty(ResourceUnavailableRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class TransactionRejectedRpcError extends RpcError{constructor(Et){super(Et,{code:TransactionRejectedRpcError.code,shortMessage:"Transaction creation failed."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionRejectedRpcError"})}}Object.defineProperty(TransactionRejectedRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class MethodNotSupportedRpcError extends RpcError{constructor(Et){super(Et,{code:MethodNotSupportedRpcError.code,shortMessage:"Method is not implemented."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotSupportedRpcError"})}}Object.defineProperty(MethodNotSupportedRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class LimitExceededRpcError extends RpcError{constructor(Et){super(Et,{code:LimitExceededRpcError.code,shortMessage:"Request exceeds defined limit."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"LimitExceededRpcError"})}}Object.defineProperty(LimitExceededRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class JsonRpcVersionUnsupportedError extends RpcError{constructor(Et){super(Et,{code:JsonRpcVersionUnsupportedError.code,shortMessage:"Version of JSON-RPC protocol is not supported."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"JsonRpcVersionUnsupportedError"})}}Object.defineProperty(JsonRpcVersionUnsupportedError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class UserRejectedRequestError extends ProviderRpcError{constructor(Et){super(Et,{code:UserRejectedRequestError.code,shortMessage:"User rejected the request."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UserRejectedRequestError"})}}Object.defineProperty(UserRejectedRequestError,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class UnauthorizedProviderError extends ProviderRpcError{constructor(Et){super(Et,{code:UnauthorizedProviderError.code,shortMessage:"The requested method and/or account has not been authorized by the user."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnauthorizedProviderError"})}}Object.defineProperty(UnauthorizedProviderError,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class UnsupportedProviderMethodError extends ProviderRpcError{constructor(Et){super(Et,{code:UnsupportedProviderMethodError.code,shortMessage:"The Provider does not support the requested method."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedProviderMethodError"})}}Object.defineProperty(UnsupportedProviderMethodError,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class ProviderDisconnectedError extends ProviderRpcError{constructor(Et){super(Et,{code:ProviderDisconnectedError.code,shortMessage:"The Provider is disconnected from all chains."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderDisconnectedError"})}}Object.defineProperty(ProviderDisconnectedError,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class ChainDisconnectedError extends ProviderRpcError{constructor(Et){super(Et,{code:ChainDisconnectedError.code,shortMessage:"The Provider is not connected to the requested chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDisconnectedError"})}}Object.defineProperty(ChainDisconnectedError,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class SwitchChainError extends ProviderRpcError{constructor(Et){super(Et,{code:SwitchChainError.code,shortMessage:"An error occurred when attempting to switch chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainError"})}}Object.defineProperty(SwitchChainError,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class UnknownRpcError extends RpcError{constructor(Et){super(Et,{shortMessage:"An unknown RPC error occurred."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownRpcError"})}}const EXECUTION_REVERTED_ERROR_CODE=3;function getContractError(ht,{abi:Et,address:yt,args:Ct,docsPath:$t,functionName:At,sender:Bt}){const{code:Dt,data:Ft,message:kt,shortMessage:Mt}=ht instanceof RawContractError?ht:ht instanceof BaseError?ht.walk(jt=>"data"in jt)||ht.walk():{},Nt=ht instanceof AbiDecodingZeroDataError?new ContractFunctionZeroDataError({functionName:At}):[EXECUTION_REVERTED_ERROR_CODE,InternalRpcError.code].includes(Dt)&&(Ft||kt||Mt)?new ContractFunctionRevertedError({abi:Et,data:typeof Ft=="object"?Ft.data:Ft,functionName:At,message:Mt??kt}):ht;return new ContractFunctionExecutionError(Nt,{abi:Et,args:Ct,contractAddress:yt,docsPath:$t,functionName:At,sender:Bt})}class AccountNotFoundError extends BaseError{constructor({docsPath:Et}={}){super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the WalletClient."].join(`
`),{docsPath:Et,docsSlug:"account"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccountNotFoundError"})}}class EstimateGasExecutionError extends BaseError{constructor(Et,{account:yt,docsPath:Ct,chain:$t,data:At,gas:Bt,gasPrice:Dt,maxFeePerGas:Ft,maxPriorityFeePerGas:kt,nonce:Mt,to:Nt,value:jt}){var Vt;const zt=prettyPrint({from:yt==null?void 0:yt.address,to:Nt,value:typeof jt<"u"&&`${formatEther$1(jt)} ${((Vt=$t==null?void 0:$t.nativeCurrency)==null?void 0:Vt.symbol)||"ETH"}`,data:At,gas:Bt,gasPrice:typeof Dt<"u"&&`${formatGwei(Dt)} gwei`,maxFeePerGas:typeof Ft<"u"&&`${formatGwei(Ft)} gwei`,maxPriorityFeePerGas:typeof kt<"u"&&`${formatGwei(kt)} gwei`,nonce:Mt});super(Et.shortMessage,{cause:Et,docsPath:Ct,metaMessages:[...Et.metaMessages?[...Et.metaMessages," "]:[],"Estimate Gas Arguments:",zt].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EstimateGasExecutionError"}),this.cause=Et}}function getNodeError(ht,Et){const yt=(ht.details||"").toLowerCase(),Ct=ht.walk($t=>$t.code===ExecutionRevertedError.code);return Ct instanceof BaseError?new ExecutionRevertedError({cause:ht,message:Ct.details}):ExecutionRevertedError.nodeMessage.test(yt)?new ExecutionRevertedError({cause:ht,message:ht.details}):FeeCapTooHighError.nodeMessage.test(yt)?new FeeCapTooHighError({cause:ht,maxFeePerGas:Et==null?void 0:Et.maxFeePerGas}):FeeCapTooLowError.nodeMessage.test(yt)?new FeeCapTooLowError({cause:ht,maxFeePerGas:Et==null?void 0:Et.maxFeePerGas}):NonceTooHighError.nodeMessage.test(yt)?new NonceTooHighError({cause:ht,nonce:Et==null?void 0:Et.nonce}):NonceTooLowError.nodeMessage.test(yt)?new NonceTooLowError({cause:ht,nonce:Et==null?void 0:Et.nonce}):NonceMaxValueError.nodeMessage.test(yt)?new NonceMaxValueError({cause:ht,nonce:Et==null?void 0:Et.nonce}):InsufficientFundsError.nodeMessage.test(yt)?new InsufficientFundsError({cause:ht}):IntrinsicGasTooHighError.nodeMessage.test(yt)?new IntrinsicGasTooHighError({cause:ht,gas:Et==null?void 0:Et.gas}):IntrinsicGasTooLowError.nodeMessage.test(yt)?new IntrinsicGasTooLowError({cause:ht,gas:Et==null?void 0:Et.gas}):TransactionTypeNotSupportedError.nodeMessage.test(yt)?new TransactionTypeNotSupportedError({cause:ht}):TipAboveFeeCapError.nodeMessage.test(yt)?new TipAboveFeeCapError({cause:ht,maxFeePerGas:Et==null?void 0:Et.maxFeePerGas,maxPriorityFeePerGas:Et==null?void 0:Et.maxPriorityFeePerGas}):new UnknownNodeError({cause:ht})}function getEstimateGasError(ht,{docsPath:Et,...yt}){const Ct=(()=>{const $t=getNodeError(ht,yt);return $t instanceof UnknownNodeError?ht:$t})();return new EstimateGasExecutionError(Ct,{docsPath:Et,...yt})}function extract$4(ht,{format:Et}){if(!Et)return{};const yt={};function Ct(At){const Bt=Object.keys(At);for(const Dt of Bt)Dt in ht&&(yt[Dt]=ht[Dt]),At[Dt]&&typeof At[Dt]=="object"&&!Array.isArray(At[Dt])&&Ct(At[Dt])}const $t=Et(ht||{});return Ct($t),yt}function assertRequest(ht){const{account:Et,gasPrice:yt,maxFeePerGas:Ct,maxPriorityFeePerGas:$t,to:At}=ht,Bt=Et?parseAccount(Et):void 0;if(Bt&&!isAddress$1(Bt.address))throw new InvalidAddressError({address:Bt.address});if(At&&!isAddress$1(At))throw new InvalidAddressError({address:At});if(typeof yt<"u"&&(typeof Ct<"u"||typeof $t<"u"))throw new FeeConflictError;if(Ct&&Ct>2n**256n-1n)throw new FeeCapTooHighError({maxFeePerGas:Ct});if($t&&Ct&&$t>Ct)throw new TipAboveFeeCapError({maxFeePerGas:Ct,maxPriorityFeePerGas:$t})}class BaseFeeScalarError extends BaseError{constructor(){super("`baseFeeMultiplier` must be greater than 1."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseFeeScalarError"})}}class Eip1559FeesNotSupportedError extends BaseError{constructor(){super("Chain does not support EIP-1559 fees."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Eip1559FeesNotSupportedError"})}}class MaxFeePerGasTooLowError extends BaseError{constructor({maxPriorityFeePerGas:Et}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${formatGwei(Et)} gwei).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MaxFeePerGasTooLowError"})}}class BlockNotFoundError extends BaseError{constructor({blockHash:Et,blockNumber:yt}){let Ct="Block";Et&&(Ct=`Block at hash "${Et}"`),yt&&(Ct=`Block at number "${yt}"`),super(`${Ct} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlockNotFoundError"})}}async function getBlock(ht,{blockHash:Et,blockNumber:yt,blockTag:Ct,includeTransactions:$t}={}){var Mt,Nt,jt;const At=Ct??"latest",Bt=$t??!1,Dt=yt!==void 0?numberToHex(yt):void 0;let Ft=null;if(Et?Ft=await ht.request({method:"eth_getBlockByHash",params:[Et,Bt]}):Ft=await ht.request({method:"eth_getBlockByNumber",params:[Dt||At,Bt]}),!Ft)throw new BlockNotFoundError({blockHash:Et,blockNumber:yt});return(((jt=(Nt=(Mt=ht.chain)==null?void 0:Mt.formatters)==null?void 0:Nt.block)==null?void 0:jt.format)||formatBlock)(Ft)}async function getGasPrice(ht){const Et=await ht.request({method:"eth_gasPrice"});return BigInt(Et)}async function estimateMaxPriorityFeePerGas(ht,Et){return internal_estimateMaxPriorityFeePerGas(ht,Et)}async function internal_estimateMaxPriorityFeePerGas(ht,Et){var At,Bt,Dt;const{block:yt,chain:Ct=ht.chain,request:$t}=Et||{};if(typeof((At=Ct==null?void 0:Ct.fees)==null?void 0:At.defaultPriorityFee)=="function"){const Ft=yt||await getAction(ht,getBlock,"getBlock")({});return Ct.fees.defaultPriorityFee({block:Ft,client:ht,request:$t})}if(typeof((Bt=Ct==null?void 0:Ct.fees)==null?void 0:Bt.defaultPriorityFee)<"u")return(Dt=Ct==null?void 0:Ct.fees)==null?void 0:Dt.defaultPriorityFee;try{const Ft=await ht.request({method:"eth_maxPriorityFeePerGas"});return hexToBigInt(Ft)}catch{const[Ft,kt]=await Promise.all([yt?Promise.resolve(yt):getAction(ht,getBlock,"getBlock")({}),getAction(ht,getGasPrice,"getGasPrice")({})]);if(typeof Ft.baseFeePerGas!="bigint")throw new Eip1559FeesNotSupportedError;const Mt=kt-Ft.baseFeePerGas;return Mt<0n?0n:Mt}}async function estimateFeesPerGas(ht,Et){return internal_estimateFeesPerGas(ht,Et)}async function internal_estimateFeesPerGas(ht,Et){var jt,zt;const{block:yt,chain:Ct=ht.chain,request:$t,type:At="eip1559"}=Et||{},Bt=await(async()=>{var Vt,Kt;return typeof((Vt=Ct==null?void 0:Ct.fees)==null?void 0:Vt.baseFeeMultiplier)=="function"?Ct.fees.baseFeeMultiplier({block:yt,client:ht,request:$t}):((Kt=Ct==null?void 0:Ct.fees)==null?void 0:Kt.baseFeeMultiplier)??1.2})();if(Bt<1)throw new BaseFeeScalarError;const Ft=10**(((jt=Bt.toString().split(".")[1])==null?void 0:jt.length)??0),kt=Vt=>Vt*BigInt(Math.ceil(Bt*Ft))/BigInt(Ft),Mt=yt||await getAction(ht,getBlock,"getBlock")({});if(typeof((zt=Ct==null?void 0:Ct.fees)==null?void 0:zt.estimateFeesPerGas)=="function")return Ct.fees.estimateFeesPerGas({block:yt,client:ht,multiply:kt,request:$t,type:At});if(At==="eip1559"){if(typeof Mt.baseFeePerGas!="bigint")throw new Eip1559FeesNotSupportedError;const Vt=$t!=null&&$t.maxPriorityFeePerGas?$t.maxPriorityFeePerGas:await internal_estimateMaxPriorityFeePerGas(ht,{block:Mt,chain:Ct,request:$t}),Kt=kt(Mt.baseFeePerGas);return{maxFeePerGas:($t==null?void 0:$t.maxFeePerGas)??Kt+Vt,maxPriorityFeePerGas:Vt}}return{gasPrice:($t==null?void 0:$t.gasPrice)??kt(await getAction(ht,getGasPrice,"getGasPrice")({}))}}async function getTransactionCount(ht,{address:Et,blockTag:yt="latest",blockNumber:Ct}){const $t=await ht.request({method:"eth_getTransactionCount",params:[Et,Ct?numberToHex(Ct):yt]});return hexToNumber$1($t)}function getTransactionType(ht){if(ht.type)return ht.type;if(typeof ht.maxFeePerGas<"u"||typeof ht.maxPriorityFeePerGas<"u")return"eip1559";if(typeof ht.gasPrice<"u")return typeof ht.accessList<"u"?"eip2930":"legacy";throw new InvalidSerializableTransactionError({transaction:ht})}async function prepareTransactionRequest(ht,Et){const{account:yt=ht.account,chain:Ct,gas:$t,nonce:At,type:Bt}=Et;if(!yt)throw new AccountNotFoundError;const Dt=parseAccount(yt),Ft=await getAction(ht,getBlock,"getBlock")({blockTag:"latest"}),kt={...Et,from:Dt.address};if(typeof At>"u"&&(kt.nonce=await getAction(ht,getTransactionCount,"getTransactionCount")({address:Dt.address,blockTag:"pending"})),typeof Bt>"u")try{kt.type=getTransactionType(kt)}catch{kt.type=typeof Ft.baseFeePerGas=="bigint"?"eip1559":"legacy"}if(kt.type==="eip1559"){const{maxFeePerGas:Mt,maxPriorityFeePerGas:Nt}=await internal_estimateFeesPerGas(ht,{block:Ft,chain:Ct,request:kt});if(typeof Et.maxPriorityFeePerGas>"u"&&Et.maxFeePerGas&&Et.maxFeePerGas<Nt)throw new MaxFeePerGasTooLowError({maxPriorityFeePerGas:Nt});kt.maxPriorityFeePerGas=Nt,kt.maxFeePerGas=Mt}else{if(typeof Et.maxFeePerGas<"u"||typeof Et.maxPriorityFeePerGas<"u")throw new Eip1559FeesNotSupportedError;const{gasPrice:Mt}=await internal_estimateFeesPerGas(ht,{block:Ft,chain:Ct,request:kt,type:"legacy"});kt.gasPrice=Mt}return typeof $t>"u"&&(kt.gas=await getAction(ht,estimateGas,"estimateGas")({...kt,account:{address:Dt.address,type:"json-rpc"}})),assertRequest(kt),kt}async function estimateGas(ht,Et){var $t,At,Bt;const yt=Et.account??ht.account;if(!yt)throw new AccountNotFoundError({docsPath:"/docs/actions/public/estimateGas"});const Ct=parseAccount(yt);try{const{accessList:Dt,blockNumber:Ft,blockTag:kt,data:Mt,gas:Nt,gasPrice:jt,maxFeePerGas:zt,maxPriorityFeePerGas:Vt,nonce:Kt,to:Xt,value:Qt,...Zt}=Ct.type==="local"?await prepareTransactionRequest(ht,Et):Et,cr=(Ft?numberToHex(Ft):void 0)||kt;assertRequest(Et);const Er=(Bt=(At=($t=ht.chain)==null?void 0:$t.formatters)==null?void 0:At.transactionRequest)==null?void 0:Bt.format,gr=(Er||formatTransactionRequest)({...extract$4(Zt,{format:Er}),from:Ct.address,accessList:Dt,data:Mt,gas:Nt,gasPrice:jt,maxFeePerGas:zt,maxPriorityFeePerGas:Vt,nonce:Kt,to:Xt,value:Qt}),vr=await ht.request({method:"eth_estimateGas",params:cr?[gr,cr]:[gr]});return BigInt(vr)}catch(Dt){throw getEstimateGasError(Dt,{...Et,account:Ct,chain:ht.chain})}}async function estimateContractGas(ht,{abi:Et,address:yt,args:Ct,functionName:$t,...At}){const Bt=encodeFunctionData({abi:Et,args:Ct,functionName:$t});try{return await getAction(ht,estimateGas,"estimateGas")({data:Bt,to:yt,...At})}catch(Dt){const Ft=At.account?parseAccount(At.account):void 0;throw getContractError(Dt,{abi:Et,address:yt,args:Ct,docsPath:"/docs/contract/estimateContractGas",functionName:$t,sender:Ft==null?void 0:Ft.address})}}const docsPath$2="/docs/contract/decodeEventLog";function decodeEventLog({abi:ht,data:Et,strict:yt,topics:Ct}){const $t=yt??!0,[At,...Bt]=Ct;if(!At)throw new AbiEventSignatureEmptyTopicsError({docsPath:docsPath$2});const Dt=ht.find(Vt=>Vt.type==="event"&&At===getEventSelector(formatAbiItem(Vt)));if(!(Dt&&"name"in Dt)||Dt.type!=="event")throw new AbiEventSignatureNotFoundError(At,{docsPath:docsPath$2});const{name:Ft,inputs:kt}=Dt,Mt=kt==null?void 0:kt.some(Vt=>!("name"in Vt&&Vt.name));let Nt=Mt?[]:{};const jt=kt.filter(Vt=>"indexed"in Vt&&Vt.indexed);for(let Vt=0;Vt<jt.length;Vt++){const Kt=jt[Vt],Xt=Bt[Vt];if(!Xt)throw new DecodeLogTopicsMismatch({abiItem:Dt,param:Kt});Nt[Kt.name||Vt]=decodeTopic({param:Kt,value:Xt})}const zt=kt.filter(Vt=>!("indexed"in Vt&&Vt.indexed));if(zt.length>0){if(Et&&Et!=="0x")try{const Vt=decodeAbiParameters(zt,Et);if(Vt)if(Mt)Nt=[...Nt,...Vt];else for(let Kt=0;Kt<zt.length;Kt++)Nt[zt[Kt].name]=Vt[Kt]}catch(Vt){if($t)throw Vt instanceof AbiDecodingDataSizeTooSmallError?new DecodeLogDataMismatch({abiItem:Dt,data:Vt.data,params:Vt.params,size:Vt.size}):Vt}else if($t)throw new DecodeLogDataMismatch({abiItem:Dt,data:"0x",params:zt,size:0})}return{eventName:Ft,args:Object.values(Nt).length>0?Nt:void 0}}function decodeTopic({param:ht,value:Et}){return ht.type==="string"||ht.type==="bytes"||ht.type==="tuple"||ht.type.match(/^(.*)\[(\d+)?\]$/)?Et:(decodeAbiParameters([ht],Et)||[])[0]}async function getLogs(ht,{address:Et,blockHash:yt,fromBlock:Ct,toBlock:$t,event:At,events:Bt,args:Dt,strict:Ft}={}){const kt=Ft??!1,Mt=Bt??(At?[At]:void 0);let Nt=[];Mt&&(Nt=[Mt.flatMap(zt=>encodeEventTopics({abi:[zt],eventName:zt.name,args:Dt}))],At&&(Nt=Nt[0]));let jt;return yt?jt=await ht.request({method:"eth_getLogs",params:[{address:Et,topics:Nt,blockHash:yt}]}):jt=await ht.request({method:"eth_getLogs",params:[{address:Et,topics:Nt,fromBlock:typeof Ct=="bigint"?numberToHex(Ct):Ct,toBlock:typeof $t=="bigint"?numberToHex($t):$t}]}),jt.map(zt=>{var Vt;try{const{eventName:Kt,args:Xt}=Mt?decodeEventLog({abi:Mt,data:zt.data,topics:zt.topics,strict:kt}):{eventName:void 0,args:void 0};return formatLog(zt,{args:Xt,eventName:Kt})}catch(Kt){let Xt,Qt;if(Kt instanceof DecodeLogDataMismatch||Kt instanceof DecodeLogTopicsMismatch){if(kt)return;Xt=Kt.abiItem.name,Qt=(Vt=Kt.abiItem.inputs)==null?void 0:Vt.some(Zt=>!("name"in Zt&&Zt.name))}return formatLog(zt,{args:Qt?[]:{},eventName:Xt})}}).filter(Boolean)}async function getContractEvents(ht,{abi:Et,address:yt,args:Ct,blockHash:$t,eventName:At,fromBlock:Bt,toBlock:Dt,strict:Ft}){const kt=At?getAbiItem({abi:Et,name:At}):void 0,Mt=kt?void 0:Et.filter(Nt=>Nt.type==="event");return getAction(ht,getLogs,"getLogs")({address:yt,args:Ct,blockHash:$t,event:kt,events:Mt,fromBlock:Bt,toBlock:Dt,strict:Ft})}const docsPath$1="/docs/contract/decodeFunctionResult";function decodeFunctionResult({abi:ht,args:Et,functionName:yt,data:Ct}){let $t=ht[0];if(yt&&($t=getAbiItem({abi:ht,args:Et,name:yt}),!$t))throw new AbiFunctionNotFoundError(yt,{docsPath:docsPath$1});if($t.type!=="function")throw new AbiFunctionNotFoundError(void 0,{docsPath:docsPath$1});if(!$t.outputs)throw new AbiFunctionOutputsNotFoundError($t.name,{docsPath:docsPath$1});const At=decodeAbiParameters($t.outputs,Ct);if(At&&At.length>1)return At;if(At&&At.length===1)return At[0]}const scriptRel="modulepreload",assetsURL=function(ht){return"/"+ht},seen={},__vitePreload=function(Et,yt,Ct){let $t=Promise.resolve();if(yt&&yt.length>0){document.getElementsByTagName("link");const At=document.querySelector("meta[property=csp-nonce]"),Bt=(At==null?void 0:At.nonce)||(At==null?void 0:At.getAttribute("nonce"));$t=Promise.all(yt.map(Dt=>{if(Dt=assetsURL(Dt),Dt in seen)return;seen[Dt]=!0;const Ft=Dt.endsWith(".css"),kt=Ft?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${Dt}"]${kt}`))return;const Mt=document.createElement("link");if(Mt.rel=Ft?"stylesheet":scriptRel,Ft||(Mt.as="script",Mt.crossOrigin=""),Mt.href=Dt,Bt&&Mt.setAttribute("nonce",Bt),document.head.appendChild(Mt),Ft)return new Promise((Nt,jt)=>{Mt.addEventListener("load",Nt),Mt.addEventListener("error",()=>jt(new Error(`Unable to preload CSS for ${Dt}`)))})}))}return $t.then(()=>Et()).catch(At=>{const Bt=new Event("vite:preloadError",{cancelable:!0});if(Bt.payload=At,window.dispatchEvent(Bt),!Bt.defaultPrevented)throw At})},multicall3Abi=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"}],universalResolverErrors=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"}],universalResolverResolveAbi=[...universalResolverErrors,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],universalResolverReverseAbi=[...universalResolverErrors,{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}],textResolverAbi=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],addressResolverAbi=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],universalSignatureValidatorAbi=[{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"}],aggregate3Signature="0x82ad56cb";function getChainContractAddress({blockNumber:ht,chain:Et,contract:yt}){var $t;const Ct=($t=Et==null?void 0:Et.contracts)==null?void 0:$t[yt];if(!Ct)throw new ChainDoesNotSupportContract({chain:Et,contract:{name:yt}});if(ht&&Ct.blockCreated&&Ct.blockCreated>ht)throw new ChainDoesNotSupportContract({blockNumber:ht,chain:Et,contract:{name:yt,blockCreated:Ct.blockCreated}});return Ct.address}function getCallError(ht,{docsPath:Et,...yt}){const Ct=(()=>{const $t=getNodeError(ht,yt);return $t instanceof UnknownNodeError?ht:$t})();return new CallExecutionError(Ct,{docsPath:Et,...yt})}const schedulerCache=new Map;function createBatchScheduler({fn:ht,id:Et,shouldSplitBatch:yt,wait:Ct=0,sort:$t}){const At=async()=>{const Mt=Ft();Bt();const Nt=Mt.map(({args:jt})=>jt);Nt.length!==0&&ht(Nt).then(jt=>{var zt;$t&&Array.isArray(jt)&&jt.sort($t);for(let Vt=0;Vt<Mt.length;Vt++){const{pendingPromise:Kt}=Mt[Vt];(zt=Kt.resolve)==null||zt.call(Kt,[jt[Vt],jt])}}).catch(jt=>{var zt;for(let Vt=0;Vt<Mt.length;Vt++){const{pendingPromise:Kt}=Mt[Vt];(zt=Kt.reject)==null||zt.call(Kt,jt)}})},Bt=()=>schedulerCache.delete(Et),Dt=()=>Ft().map(({args:Mt})=>Mt),Ft=()=>schedulerCache.get(Et)||[],kt=Mt=>schedulerCache.set(Et,[...Ft(),Mt]);return{flush:Bt,async schedule(Mt){const Nt={},jt=new Promise((Kt,Xt)=>{Nt.resolve=Kt,Nt.reject=Xt});return(yt==null?void 0:yt([...Dt(),Mt]))&&At(),Ft().length>0?(kt({args:Mt,pendingPromise:Nt}),jt):(kt({args:Mt,pendingPromise:Nt}),setTimeout(At,Ct),jt)}}}async function call$d(ht,Et){var Qt,Zt,dr,cr;const{account:yt=ht.account,batch:Ct=!!((Qt=ht.batch)!=null&&Qt.multicall),blockNumber:$t,blockTag:At="latest",accessList:Bt,data:Dt,gas:Ft,gasPrice:kt,maxFeePerGas:Mt,maxPriorityFeePerGas:Nt,nonce:jt,to:zt,value:Vt,...Kt}=Et,Xt=yt?parseAccount(yt):void 0;try{assertRequest(Et);const pr=($t?numberToHex($t):void 0)||At,gr=(cr=(dr=(Zt=ht.chain)==null?void 0:Zt.formatters)==null?void 0:dr.transactionRequest)==null?void 0:cr.format,yr=(gr||formatTransactionRequest)({...extract$4(Kt,{format:gr}),from:Xt==null?void 0:Xt.address,accessList:Bt,data:Dt,gas:Ft,gasPrice:kt,maxFeePerGas:Mt,maxPriorityFeePerGas:Nt,nonce:jt,to:zt,value:Vt});if(Ct&&shouldPerformMulticall({request:yr}))try{return await scheduleMulticall(ht,{...yr,blockNumber:$t,blockTag:At})}catch(rr){if(!(rr instanceof ClientChainNotConfiguredError)&&!(rr instanceof ChainDoesNotSupportContract))throw rr}const xr=await ht.request({method:"eth_call",params:pr?[yr,pr]:[yr]});return xr==="0x"?{data:void 0}:{data:xr}}catch(Er){const pr=getRevertErrorData(Er),{offchainLookup:gr,offchainLookupSignature:vr}=await __vitePreload(async()=>{const{offchainLookup:yr,offchainLookupSignature:xr}=await import("./ccip-Ciw8A6ZP.js");return{offchainLookup:yr,offchainLookupSignature:xr}},[]);if((pr==null?void 0:pr.slice(0,10))===vr&&zt)return{data:await gr(ht,{data:pr,to:zt})};throw getCallError(Er,{...Et,account:Xt,chain:ht.chain})}}function shouldPerformMulticall({request:ht}){const{data:Et,to:yt,...Ct}=ht;return!(!Et||Et.startsWith(aggregate3Signature)||!yt||Object.values(Ct).filter($t=>typeof $t<"u").length>0)}async function scheduleMulticall(ht,Et){var Kt;const{batchSize:yt=1024,wait:Ct=0}=typeof((Kt=ht.batch)==null?void 0:Kt.multicall)=="object"?ht.batch.multicall:{},{blockNumber:$t,blockTag:At="latest",data:Bt,multicallAddress:Dt,to:Ft}=Et;let kt=Dt;if(!kt){if(!ht.chain)throw new ClientChainNotConfiguredError;kt=getChainContractAddress({blockNumber:$t,chain:ht.chain,contract:"multicall3"})}const Nt=($t?numberToHex($t):void 0)||At,{schedule:jt}=createBatchScheduler({id:`${ht.uid}.${Nt}`,wait:Ct,shouldSplitBatch(Xt){return Xt.reduce((Zt,{data:dr})=>Zt+(dr.length-2),0)>yt*2},fn:async Xt=>{const Qt=Xt.map(cr=>({allowFailure:!0,callData:cr.data,target:cr.to})),Zt=encodeFunctionData({abi:multicall3Abi,args:[Qt],functionName:"aggregate3"}),dr=await ht.request({method:"eth_call",params:[{data:Zt,to:kt},Nt]});return decodeFunctionResult({abi:multicall3Abi,args:[Qt],functionName:"aggregate3",data:dr||"0x"})}}),[{returnData:zt,success:Vt}]=await jt({data:Bt,to:Ft});if(!Vt)throw new RawContractError({data:zt});return zt==="0x"?{data:void 0}:{data:zt}}function getRevertErrorData(ht){if(!(ht instanceof BaseError))return;const Et=ht.walk();return typeof Et.data=="object"?Et.data.data:Et.data}async function readContract$1(ht,{abi:Et,address:yt,args:Ct,functionName:$t,...At}){const Bt=encodeFunctionData({abi:Et,args:Ct,functionName:$t});try{const{data:Dt}=await getAction(ht,call$d,"call")({data:Bt,to:yt,...At});return decodeFunctionResult({abi:Et,args:Ct,functionName:$t,data:Dt||"0x"})}catch(Dt){throw getContractError(Dt,{abi:Et,address:yt,args:Ct,docsPath:"/docs/contract/readContract",functionName:$t})}}async function simulateContract(ht,{abi:Et,address:yt,args:Ct,dataSuffix:$t,functionName:At,...Bt}){const Dt=Bt.account?parseAccount(Bt.account):void 0,Ft=encodeFunctionData({abi:Et,args:Ct,functionName:At});try{const{data:kt}=await getAction(ht,call$d,"call")({batch:!1,data:`${Ft}${$t?$t.replace("0x",""):""}`,to:yt,...Bt});return{result:decodeFunctionResult({abi:Et,args:Ct,functionName:At,data:kt||"0x"}),request:{abi:Et,address:yt,args:Ct,dataSuffix:$t,functionName:At,...Bt}}}catch(kt){throw getContractError(kt,{abi:Et,address:yt,args:Ct,docsPath:"/docs/contract/simulateContract",functionName:At,sender:Dt==null?void 0:Dt.address})}}const listenersCache=new Map,cleanupCache=new Map;let callbackCount=0;function observe$1(ht,Et,yt){const Ct=++callbackCount,$t=()=>listenersCache.get(ht)||[],At=()=>{const Mt=$t();listenersCache.set(ht,Mt.filter(Nt=>Nt.id!==Ct))},Bt=()=>{const Mt=cleanupCache.get(ht);$t().length===1&&Mt&&Mt(),At()},Dt=$t();if(listenersCache.set(ht,[...Dt,{id:Ct,fns:Et}]),Dt&&Dt.length>0)return Bt;const Ft={};for(const Mt in Et)Ft[Mt]=(...Nt)=>{var zt,Vt;const jt=$t();if(jt.length!==0)for(const Kt of jt)(Vt=(zt=Kt.fns)[Mt])==null||Vt.call(zt,...Nt)};const kt=yt(Ft);return typeof kt=="function"&&cleanupCache.set(ht,kt),Bt}async function wait(ht){return new Promise(Et=>setTimeout(Et,ht))}function poll(ht,{emitOnBegin:Et,initialWaitTime:yt,interval:Ct}){let $t=!0;const At=()=>$t=!1;return(async()=>{let Dt;Et&&(Dt=await ht({unpoll:At}));const Ft=await(yt==null?void 0:yt(Dt))??Ct;await wait(Ft);const kt=async()=>{$t&&(await ht({unpoll:At}),await wait(Ct),kt())};kt()})(),At}const promiseCache=new Map,responseCache=new Map;function getCache(ht){const Et=($t,At)=>({clear:()=>At.delete($t),get:()=>At.get($t),set:Bt=>At.set($t,Bt)}),yt=Et(ht,promiseCache),Ct=Et(ht,responseCache);return{clear:()=>{yt.clear(),Ct.clear()},promise:yt,response:Ct}}async function withCache(ht,{cacheKey:Et,cacheTime:yt=1/0}){const Ct=getCache(Et),$t=Ct.response.get();if($t&&yt>0&&new Date().getTime()-$t.created.getTime()<yt)return $t.data;let At=Ct.promise.get();At||(At=ht(),Ct.promise.set(At));try{const Bt=await At;return Ct.response.set({created:new Date,data:Bt}),Bt}finally{Ct.promise.clear()}}const cacheKey=ht=>`blockNumber.${ht}`;async function getBlockNumber(ht,{cacheTime:Et=ht.cacheTime,maxAge:yt}={}){const Ct=await withCache(()=>ht.request({method:"eth_blockNumber"}),{cacheKey:cacheKey(ht.uid),cacheTime:yt??Et});return BigInt(Ct)}async function getFilterChanges(ht,{filter:Et}){const yt="strict"in Et&&Et.strict;return(await Et.request({method:"eth_getFilterChanges",params:[Et.id]})).map($t=>{var At;if(typeof $t=="string")return $t;try{const{eventName:Bt,args:Dt}="abi"in Et&&Et.abi?decodeEventLog({abi:Et.abi,data:$t.data,topics:$t.topics,strict:yt}):{eventName:void 0,args:void 0};return formatLog($t,{args:Dt,eventName:Bt})}catch(Bt){let Dt,Ft;if(Bt instanceof DecodeLogDataMismatch||Bt instanceof DecodeLogTopicsMismatch){if("strict"in Et&&Et.strict)return;Dt=Bt.abiItem.name,Ft=(At=Bt.abiItem.inputs)==null?void 0:At.some(kt=>!("name"in kt&&kt.name))}return formatLog($t,{args:Ft?[]:{},eventName:Dt})}}).filter(Boolean)}async function uninstallFilter(ht,{filter:Et}){return Et.request({method:"eth_uninstallFilter",params:[Et.id]})}function watchContractEvent(ht,{abi:Et,address:yt,args:Ct,batch:$t=!0,eventName:At,onError:Bt,onLogs:Dt,poll:Ft,pollingInterval:kt=ht.pollingInterval,strict:Mt}){return(typeof Ft<"u"?Ft:ht.transport.type!=="webSocket")?(()=>{const Vt=stringify$9(["watchContractEvent",yt,Ct,$t,ht.uid,At,kt]),Kt=Mt??!1;return observe$1(Vt,{onLogs:Dt,onError:Bt},Xt=>{let Qt,Zt,dr=!1;const cr=poll(async()=>{var Er;if(!dr){try{Zt=await getAction(ht,createContractEventFilter,"createContractEventFilter")({abi:Et,address:yt,args:Ct,eventName:At,strict:Kt})}catch{}dr=!0;return}try{let pr;if(Zt)pr=await getAction(ht,getFilterChanges,"getFilterChanges")({filter:Zt});else{const gr=await getAction(ht,getBlockNumber,"getBlockNumber")({});Qt&&Qt!==gr?pr=await getAction(ht,getContractEvents,"getContractEvents")({abi:Et,address:yt,args:Ct,eventName:At,fromBlock:Qt+1n,toBlock:gr,strict:Kt}):pr=[],Qt=gr}if(pr.length===0)return;if($t)Xt.onLogs(pr);else for(const gr of pr)Xt.onLogs([gr])}catch(pr){Zt&&pr instanceof InvalidInputRpcError&&(dr=!1),(Er=Xt.onError)==null||Er.call(Xt,pr)}},{emitOnBegin:!0,interval:kt});return async()=>{Zt&&await getAction(ht,uninstallFilter,"uninstallFilter")({filter:Zt}),cr()}})})():(()=>{let Vt=!0,Kt=()=>Vt=!1;return(async()=>{try{const Xt=At?encodeEventTopics({abi:Et,eventName:At,args:Ct}):[],{unsubscribe:Qt}=await ht.transport.subscribe({params:["logs",{address:yt,topics:Xt}],onData(Zt){var cr;if(!Vt)return;const dr=Zt.result;try{const{eventName:Er,args:pr}=decodeEventLog({abi:Et,data:dr.data,topics:dr.topics,strict:Mt}),gr=formatLog(dr,{args:pr,eventName:Er});Dt([gr])}catch(Er){let pr,gr;if(Er instanceof DecodeLogDataMismatch||Er instanceof DecodeLogTopicsMismatch){if(Mt)return;pr=Er.abiItem.name,gr=(cr=Er.abiItem.inputs)==null?void 0:cr.some(yr=>!("name"in yr&&yr.name))}const vr=formatLog(dr,{args:gr?[]:{},eventName:pr});Dt([vr])}},onError(Zt){Bt==null||Bt(Zt)}});Kt=Qt,Vt||Kt()}catch(Xt){Bt==null||Bt(Xt)}})(),Kt})()}function assertCurrentChain({chain:ht,currentChainId:Et}){if(!ht)throw new ChainNotFoundError;if(Et!==ht.id)throw new ChainMismatchError$1({chain:ht,currentChainId:Et})}function getTransactionError(ht,{docsPath:Et,...yt}){const Ct=(()=>{const $t=getNodeError(ht,yt);return $t instanceof UnknownNodeError?ht:$t})();return new TransactionExecutionError(Ct,{docsPath:Et,...yt})}async function getChainId(ht){const Et=await ht.request({method:"eth_chainId"});return hexToNumber$1(Et)}async function sendRawTransaction(ht,{serializedTransaction:Et}){return ht.request({method:"eth_sendRawTransaction",params:[Et]})}async function sendTransaction$1(ht,Et){var Kt,Xt,Qt,Zt;const{account:yt=ht.account,chain:Ct=ht.chain,accessList:$t,data:At,gas:Bt,gasPrice:Dt,maxFeePerGas:Ft,maxPriorityFeePerGas:kt,nonce:Mt,to:Nt,value:jt,...zt}=Et;if(!yt)throw new AccountNotFoundError({docsPath:"/docs/actions/wallet/sendTransaction"});const Vt=parseAccount(yt);try{assertRequest(Et);let dr;if(Ct!==null&&(dr=await getAction(ht,getChainId,"getChainId")({}),assertCurrentChain({currentChainId:dr,chain:Ct})),Vt.type==="local"){const gr=await getAction(ht,prepareTransactionRequest,"prepareTransactionRequest")({account:Vt,accessList:$t,chain:Ct,data:At,gas:Bt,gasPrice:Dt,maxFeePerGas:Ft,maxPriorityFeePerGas:kt,nonce:Mt,to:Nt,value:jt,...zt});dr||(dr=await getAction(ht,getChainId,"getChainId")({}));const vr=(Kt=Ct==null?void 0:Ct.serializers)==null?void 0:Kt.transaction,yr=await Vt.signTransaction({...gr,chainId:dr},{serializer:vr});return await getAction(ht,sendRawTransaction,"sendRawTransaction")({serializedTransaction:yr})}const cr=(Zt=(Qt=(Xt=ht.chain)==null?void 0:Xt.formatters)==null?void 0:Qt.transactionRequest)==null?void 0:Zt.format,pr=(cr||formatTransactionRequest)({...extract$4(zt,{format:cr}),accessList:$t,data:At,from:Vt.address,gas:Bt,gasPrice:Dt,maxFeePerGas:Ft,maxPriorityFeePerGas:kt,nonce:Mt,to:Nt,value:jt});return await ht.request({method:"eth_sendTransaction",params:[pr]})}catch(dr){throw getTransactionError(dr,{...Et,account:Vt,chain:Et.chain||void 0})}}async function writeContract(ht,{abi:Et,address:yt,args:Ct,dataSuffix:$t,functionName:At,...Bt}){const Dt=encodeFunctionData({abi:Et,args:Ct,functionName:At});return await getAction(ht,sendTransaction$1,"sendTransaction")({data:`${Dt}${$t?$t.replace("0x",""):""}`,to:yt,...Bt})}async function addChain(ht,{chain:Et}){const{id:yt,name:Ct,nativeCurrency:$t,rpcUrls:At,blockExplorers:Bt}=Et;await ht.request({method:"wallet_addEthereumChain",params:[{chainId:numberToHex(yt),chainName:Ct,nativeCurrency:$t,rpcUrls:At.default.http,blockExplorerUrls:Bt?Object.values(Bt).map(({url:Dt})=>Dt):void 0}]})}const size=256;let index$1=size,buffer$2;function uid$4(ht=11){if(!buffer$2||index$1+ht>size*2){buffer$2="",index$1=0;for(let Et=0;Et<size;Et++)buffer$2+=(256+Math.random()*256|0).toString(16).substring(1)}return buffer$2.substring(index$1,index$1+++ht)}function createClient(ht){const{batch:Et,cacheTime:yt=ht.pollingInterval??4e3,key:Ct="base",name:$t="Base Client",pollingInterval:At=4e3,type:Bt="base"}=ht,Dt=ht.chain,Ft=ht.account?parseAccount(ht.account):void 0,{config:kt,request:Mt,value:Nt}=ht.transport({chain:Dt,pollingInterval:At}),jt={...kt,...Nt},zt={account:Ft,batch:Et,cacheTime:yt,chain:Dt,key:Ct,name:$t,pollingInterval:At,request:Mt,transport:jt,type:Bt,uid:uid$4()};function Vt(Kt){return Xt=>{const Qt=Xt(Kt);for(const dr in zt)delete Qt[dr];const Zt={...Kt,...Qt};return Object.assign(Zt,{extend:Vt(Zt)})}}return Object.assign(zt,{extend:Vt(zt)})}function withRetry(ht,{delay:Et=100,retryCount:yt=2,shouldRetry:Ct=()=>!0}={}){return new Promise(($t,At)=>{const Bt=async({count:Dt=0}={})=>{const Ft=async({error:kt})=>{const Mt=typeof Et=="function"?Et({count:Dt,error:kt}):Et;Mt&&await wait(Mt),Bt({count:Dt+1})};try{const kt=await ht();$t(kt)}catch(kt){if(Dt<yt&&await Ct({count:Dt,error:kt}))return Ft({error:kt});At(kt)}};Bt()})}const isDeterministicError=ht=>"code"in ht?ht.code!==-1&&ht.code!==-32004&&ht.code!==-32005&&ht.code!==-32042&&ht.code!==-32603:ht instanceof HttpRequestError&&ht.status?ht.status!==403&&ht.status!==408&&ht.status!==413&&ht.status!==429&&ht.status!==500&&ht.status!==502&&ht.status!==503&&ht.status!==504:!1;function buildRequest(ht,{retryDelay:Et=150,retryCount:yt=3}={}){return async Ct=>withRetry(async()=>{try{return await ht(Ct)}catch($t){const At=$t;switch(At.code){case ParseRpcError.code:throw new ParseRpcError(At);case InvalidRequestRpcError.code:throw new InvalidRequestRpcError(At);case MethodNotFoundRpcError.code:throw new MethodNotFoundRpcError(At);case InvalidParamsRpcError.code:throw new InvalidParamsRpcError(At);case InternalRpcError.code:throw new InternalRpcError(At);case InvalidInputRpcError.code:throw new InvalidInputRpcError(At);case ResourceNotFoundRpcError.code:throw new ResourceNotFoundRpcError(At);case ResourceUnavailableRpcError.code:throw new ResourceUnavailableRpcError(At);case TransactionRejectedRpcError.code:throw new TransactionRejectedRpcError(At);case MethodNotSupportedRpcError.code:throw new MethodNotSupportedRpcError(At);case LimitExceededRpcError.code:throw new LimitExceededRpcError(At);case JsonRpcVersionUnsupportedError.code:throw new JsonRpcVersionUnsupportedError(At);case UserRejectedRequestError.code:throw new UserRejectedRequestError(At);case UnauthorizedProviderError.code:throw new UnauthorizedProviderError(At);case UnsupportedProviderMethodError.code:throw new UnsupportedProviderMethodError(At);case ProviderDisconnectedError.code:throw new ProviderDisconnectedError(At);case ChainDisconnectedError.code:throw new ChainDisconnectedError(At);case SwitchChainError.code:throw new SwitchChainError(At);case 5e3:throw new UserRejectedRequestError(At);default:throw $t instanceof BaseError?$t:new UnknownRpcError(At)}}},{delay:({count:$t,error:At})=>{var Bt;if(At&&At instanceof HttpRequestError){const Dt=(Bt=At==null?void 0:At.headers)==null?void 0:Bt.get("Retry-After");if(Dt!=null&&Dt.match(/\d/))return parseInt(Dt)*1e3}return~~(1<<$t)*Et},retryCount:yt,shouldRetry:({error:$t})=>!isDeterministicError($t)})}function createTransport({key:ht,name:Et,request:yt,retryCount:Ct=3,retryDelay:$t=150,timeout:At,type:Bt},Dt){return{config:{key:ht,name:Et,request:yt,retryCount:Ct,retryDelay:$t,timeout:At,type:Bt},request:buildRequest(yt,{retryCount:Ct,retryDelay:$t}),value:Dt}}function custom(ht,Et={}){const{key:yt="custom",name:Ct="Custom Provider",retryDelay:$t}=Et;return({retryCount:At})=>createTransport({key:yt,name:Ct,request:ht.request.bind(ht),retryCount:Et.retryCount??At,retryDelay:$t,type:"custom"})}function fallback(ht,Et={}){const{key:yt="fallback",name:Ct="Fallback",rank:$t=!1,retryCount:At,retryDelay:Bt}=Et;return({chain:Dt,pollingInterval:Ft=4e3,timeout:kt})=>{let Mt=ht,Nt=()=>{};const jt=createTransport({key:yt,name:Ct,async request({method:zt,params:Vt}){const Kt=async(Xt=0)=>{const Qt=Mt[Xt]({chain:Dt,retryCount:0,timeout:kt});try{const Zt=await Qt.request({method:zt,params:Vt});return Nt({method:zt,params:Vt,response:Zt,transport:Qt,status:"success"}),Zt}catch(Zt){if(Nt({error:Zt,method:zt,params:Vt,transport:Qt,status:"error"}),isDeterministicError(Zt)||Xt===Mt.length-1)throw Zt;return Kt(Xt+1)}};return Kt()},retryCount:At,retryDelay:Bt,type:"fallback"},{onResponse:zt=>Nt=zt,transports:Mt.map(zt=>zt({chain:Dt,retryCount:0}))});if($t){const zt=typeof $t=="object"?$t:{};rankTransports({chain:Dt,interval:zt.interval??Ft,onTransports:Vt=>Mt=Vt,sampleCount:zt.sampleCount,timeout:zt.timeout,transports:Mt,weights:zt.weights})}return jt}}function rankTransports({chain:ht,interval:Et=4e3,onTransports:yt,sampleCount:Ct=10,timeout:$t=1e3,transports:At,weights:Bt={}}){const{stability:Dt=.7,latency:Ft=.3}=Bt,kt=[],Mt=async()=>{const Nt=await Promise.all(At.map(async Vt=>{const Kt=Vt({chain:ht,retryCount:0,timeout:$t}),Xt=Date.now();let Qt,Zt;try{await Kt.request({method:"net_listening"}),Zt=1}catch{Zt=0}finally{Qt=Date.now()}return{latency:Qt-Xt,success:Zt}}));kt.push(Nt),kt.length>Ct&&kt.shift();const jt=Math.max(...kt.map(Vt=>Math.max(...Vt.map(({latency:Kt})=>Kt)))),zt=At.map((Vt,Kt)=>{const Xt=kt.map(Er=>Er[Kt].latency),Zt=1-Xt.reduce((Er,pr)=>Er+pr,0)/Xt.length/jt,dr=kt.map(Er=>Er[Kt].success),cr=dr.reduce((Er,pr)=>Er+pr,0)/dr.length;return cr===0?[0,Kt]:[Ft*Zt+Dt*cr,Kt]}).sort((Vt,Kt)=>Kt[0]-Vt[0]);yt(zt.map(([,Vt])=>At[Vt])),await wait(Et),Mt()};Mt()}class UrlRequiredError extends BaseError{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro"})}}const global$g=globalThis||void 0||self;function getNativeWebSocket(){if(typeof WebSocket<"u")return WebSocket;if(typeof global$g.WebSocket<"u")return global$g.WebSocket;if(typeof window.WebSocket<"u")return window.WebSocket;if(typeof self.WebSocket<"u")return self.WebSocket;throw new Error("`WebSocket` is not supported in this environment")}const WebSocket$1=getNativeWebSocket();function withTimeout(ht,{errorInstance:Et=new Error("timed out"),timeout:yt,signal:Ct}){return new Promise(($t,At)=>{(async()=>{let Bt;try{const Dt=new AbortController;yt>0&&(Bt=setTimeout(()=>{Ct?Dt.abort():At(Et)},yt)),$t(await ht({signal:Dt==null?void 0:Dt.signal}))}catch(Dt){Dt.name==="AbortError"&&At(Et),At(Dt)}finally{clearTimeout(Bt)}})()})}let id$4=0;async function http$1(ht,{body:Et,fetchOptions:yt={},timeout:Ct=1e4}){var Dt;const{headers:$t,method:At,signal:Bt}=yt;try{const Ft=await withTimeout(async({signal:Mt})=>await fetch(ht,{...yt,body:Array.isArray(Et)?stringify$9(Et.map(jt=>({jsonrpc:"2.0",id:jt.id??id$4++,...jt}))):stringify$9({jsonrpc:"2.0",id:Et.id??id$4++,...Et}),headers:{...$t,"Content-Type":"application/json"},method:At||"POST",signal:Bt||(Ct>0?Mt:void 0)}),{errorInstance:new TimeoutError({body:Et,url:ht}),timeout:Ct,signal:!0});let kt;if((Dt=Ft.headers.get("Content-Type"))!=null&&Dt.startsWith("application/json")?kt=await Ft.json():kt=await Ft.text(),!Ft.ok)throw new HttpRequestError({body:Et,details:stringify$9(kt.error)||Ft.statusText,headers:Ft.headers,status:Ft.status,url:ht});return kt}catch(Ft){throw Ft instanceof HttpRequestError||Ft instanceof TimeoutError?Ft:new HttpRequestError({body:Et,details:Ft.message,url:ht})}}const socketsCache=new Map;async function getSocket(ht){let Et=socketsCache.get(ht);if(Et)return Et;const{schedule:yt}=createBatchScheduler({id:ht,fn:async()=>{const At=new WebSocket$1(ht),Bt=new Map,Dt=new Map,Ft=({data:Mt})=>{const Nt=JSON.parse(Mt),jt=Nt.method==="eth_subscription",zt=jt?Nt.params.subscription:Nt.id,Vt=jt?Dt:Bt,Kt=Vt.get(zt);Kt&&Kt({data:Mt}),jt||Vt.delete(zt)},kt=()=>{socketsCache.delete(ht),At.removeEventListener("close",kt),At.removeEventListener("message",Ft)};return At.addEventListener("close",kt),At.addEventListener("message",Ft),At.readyState===WebSocket$1.CONNECTING&&await new Promise((Mt,Nt)=>{At&&(At.onopen=Mt,At.onerror=Nt)}),Et=Object.assign(At,{requests:Bt,subscriptions:Dt}),socketsCache.set(ht,Et),[Et]}}),[Ct,[$t]]=await yt();return $t}function webSocket$1(ht,{body:Et,onResponse:yt}){if(ht.readyState===ht.CLOSED||ht.readyState===ht.CLOSING)throw new WebSocketRequestError({body:Et,url:ht.url,details:"Socket is closed."});const Ct=id$4++,$t=({data:At})=>{var Dt;const Bt=JSON.parse(At);typeof Bt.id=="number"&&Ct!==Bt.id||(yt==null||yt(Bt),Et.method==="eth_subscribe"&&typeof Bt.result=="string"&&ht.subscriptions.set(Bt.result,$t),Et.method==="eth_unsubscribe"&&ht.subscriptions.delete((Dt=Et.params)==null?void 0:Dt[0]))};return ht.requests.set(Ct,$t),ht.send(JSON.stringify({jsonrpc:"2.0",...Et,id:Ct})),ht}async function webSocketAsync(ht,{body:Et,timeout:yt=1e4}){return withTimeout(()=>new Promise(Ct=>rpc.webSocket(ht,{body:Et,onResponse:Ct})),{errorInstance:new TimeoutError({body:Et,url:ht.url}),timeout:yt})}const rpc={http:http$1,webSocket:webSocket$1,webSocketAsync};function http(ht,Et={}){const{batch:yt,fetchOptions:Ct,key:$t="http",name:At="HTTP JSON-RPC",retryDelay:Bt}=Et;return({chain:Dt,retryCount:Ft,timeout:kt})=>{const{batchSize:Mt=1e3,wait:Nt=0}=typeof yt=="object"?yt:{},jt=Et.retryCount??Ft,zt=kt??Et.timeout??1e4,Vt=ht||(Dt==null?void 0:Dt.rpcUrls.default.http[0]);if(!Vt)throw new UrlRequiredError;return createTransport({key:$t,name:At,async request({method:Kt,params:Xt}){const Qt={method:Kt,params:Xt},{schedule:Zt}=createBatchScheduler({id:`${ht}`,wait:Nt,shouldSplitBatch(pr){return pr.length>Mt},fn:pr=>rpc.http(Vt,{body:pr,fetchOptions:Ct,timeout:zt}),sort:(pr,gr)=>pr.id-gr.id}),dr=async pr=>yt?Zt(pr):[await rpc.http(Vt,{body:pr,fetchOptions:Ct,timeout:zt})],[{error:cr,result:Er}]=await dr(Qt);if(cr)throw new RpcRequestError({body:Qt,error:cr,url:Vt});return Er},retryCount:jt,retryDelay:Bt,timeout:zt,type:"http"},{fetchOptions:Ct,url:ht})}}function isNullUniversalResolverError(ht,Et){var Ct,$t,At;if(!(ht instanceof BaseError))return!1;const yt=ht.walk(Bt=>Bt instanceof ContractFunctionRevertedError);return yt instanceof ContractFunctionRevertedError?!!(((Ct=yt.data)==null?void 0:Ct.errorName)==="ResolverNotFound"||(($t=yt.data)==null?void 0:$t.errorName)==="ResolverWildcardNotSupported"||(At=yt.reason)!=null&&At.includes("Wildcard on non-extended resolvers is not supported")||Et==="reverse"&&yt.reason===panicReasons[50]):!1}function encodedLabelToLabelhash(ht){if(ht.length!==66||ht.indexOf("[")!==0||ht.indexOf("]")!==65)return null;const Et=`0x${ht.slice(1,65)}`;return isHex(Et)?Et:null}function namehash(ht){let Et=new Uint8Array(32).fill(0);if(!ht)return bytesToHex$1(Et);const yt=ht.split(".");for(let Ct=yt.length-1;Ct>=0;Ct-=1){const $t=encodedLabelToLabelhash(yt[Ct]),At=$t?toBytes$2($t):keccak256$1(stringToBytes(yt[Ct]),"bytes");Et=keccak256$1(concat$7([Et,At]),"bytes")}return bytesToHex$1(Et)}function encodeLabelhash(ht){return`[${ht.slice(2)}]`}function labelhash(ht){const Et=new Uint8Array(32).fill(0);return ht?encodedLabelToLabelhash(ht)||keccak256$1(stringToBytes(ht)):bytesToHex$1(Et)}function packetToBytes(ht){const Et=ht.replace(/^\.|\.$/gm,"");if(Et.length===0)return new Uint8Array(1);const yt=new Uint8Array(stringToBytes(Et).byteLength+2);let Ct=0;const $t=Et.split(".");for(let At=0;At<$t.length;At++){let Bt=stringToBytes($t[At]);Bt.byteLength>255&&(Bt=stringToBytes(encodeLabelhash(labelhash($t[At])))),yt[Ct]=Bt.length,yt.set(Bt,Ct+1),Ct+=Bt.length+1}return yt.byteLength!==Ct+1?yt.slice(0,Ct+1):yt}async function getEnsAddress(ht,{blockNumber:Et,blockTag:yt,coinType:Ct,name:$t,universalResolverAddress:At}){let Bt=At;if(!Bt){if(!ht.chain)throw new Error("client chain not configured. universalResolverAddress is required.");Bt=getChainContractAddress({blockNumber:Et,chain:ht.chain,contract:"ensUniversalResolver"})}try{const Dt=encodeFunctionData({abi:addressResolverAbi,functionName:"addr",...Ct!=null?{args:[namehash($t),BigInt(Ct)]}:{args:[namehash($t)]}}),Ft=await getAction(ht,readContract$1,"readContract")({address:Bt,abi:universalResolverResolveAbi,functionName:"resolve",args:[toHex$2(packetToBytes($t)),Dt],blockNumber:Et,blockTag:yt});if(Ft[0]==="0x")return null;const kt=decodeFunctionResult({abi:addressResolverAbi,args:Ct!=null?[namehash($t),BigInt(Ct)]:void 0,functionName:"addr",data:Ft[0]});return kt==="0x"||trim$2(kt)==="0x00"?null:kt}catch(Dt){if(isNullUniversalResolverError(Dt,"resolve"))return null;throw Dt}}class EnsAvatarInvalidMetadataError extends BaseError{constructor({data:Et}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(Et)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidMetadataError"})}}class EnsAvatarInvalidNftUriError extends BaseError{constructor({reason:Et}){super(`ENS NFT avatar URI is invalid. ${Et}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidNftUriError"})}}class EnsAvatarUriResolutionError extends BaseError{constructor({uri:Et}){super(`Unable to resolve ENS avatar URI "${Et}". The URI may be malformed, invalid, or does not respond with a valid image.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUriResolutionError"})}}class EnsAvatarUnsupportedNamespaceError extends BaseError{constructor({namespace:Et}){super(`ENS NFT avatar namespace "${Et}" is not supported. Must be "erc721" or "erc1155".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUnsupportedNamespaceError"})}}const networkRegex=/(?<protocol>https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,ipfsHashRegex=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?<target>[\w\-.]+))?(?<subtarget>\/.*)?$/,base64Regex=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,dataURIRegex=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function isImageUri(ht){try{const Et=await fetch(ht,{method:"HEAD"});if(Et.status===200){const yt=Et.headers.get("content-type");return yt==null?void 0:yt.startsWith("image/")}return!1}catch(Et){return typeof Et=="object"&&typeof Et.response<"u"||!globalThis.hasOwnProperty("Image")?!1:new Promise(yt=>{const Ct=new Image;Ct.onload=()=>{yt(!0)},Ct.onerror=()=>{yt(!1)},Ct.src=ht})}}function getGateway(ht,Et){return ht?ht.endsWith("/")?ht.slice(0,-1):ht:Et}function resolveAvatarUri({uri:ht,gatewayUrls:Et}){const yt=base64Regex.test(ht);if(yt)return{uri:ht,isOnChain:!0,isEncoded:yt};const Ct=getGateway(Et==null?void 0:Et.ipfs,"https://ipfs.io"),$t=getGateway(Et==null?void 0:Et.arweave,"https://arweave.net"),At=ht.match(networkRegex),{protocol:Bt,subpath:Dt,target:Ft,subtarget:kt=""}=(At==null?void 0:At.groups)||{},Mt=Bt==="ipns:/"||Dt==="ipns/",Nt=Bt==="ipfs:/"||Dt==="ipfs/"||ipfsHashRegex.test(ht);if(ht.startsWith("http")&&!Mt&&!Nt){let zt=ht;return Et!=null&&Et.arweave&&(zt=ht.replace(/https:\/\/arweave.net/g,Et==null?void 0:Et.arweave)),{uri:zt,isOnChain:!1,isEncoded:!1}}if((Mt||Nt)&&Ft)return{uri:`${Ct}/${Mt?"ipns":"ipfs"}/${Ft}${kt}`,isOnChain:!1,isEncoded:!1};if(Bt==="ar:/"&&Ft)return{uri:`${$t}/${Ft}${kt||""}`,isOnChain:!1,isEncoded:!1};let jt=ht.replace(dataURIRegex,"");if(jt.startsWith("<svg")&&(jt=`data:image/svg+xml;base64,${btoa(jt)}`),jt.startsWith("data:")||jt.startsWith("{"))return{uri:jt,isOnChain:!0,isEncoded:!1};throw new EnsAvatarUriResolutionError({uri:ht})}function getJsonImage(ht){if(typeof ht!="object"||!("image"in ht)&&!("image_url"in ht)&&!("image_data"in ht))throw new EnsAvatarInvalidMetadataError({data:ht});return ht.image||ht.image_url||ht.image_data}async function getMetadataAvatarUri({gatewayUrls:ht,uri:Et}){try{const yt=await fetch(Et).then($t=>$t.json());return await parseAvatarUri({gatewayUrls:ht,uri:getJsonImage(yt)})}catch{throw new EnsAvatarUriResolutionError({uri:Et})}}async function parseAvatarUri({gatewayUrls:ht,uri:Et}){const{uri:yt,isOnChain:Ct}=resolveAvatarUri({uri:Et,gatewayUrls:ht});if(Ct||await isImageUri(yt))return yt;throw new EnsAvatarUriResolutionError({uri:Et})}function parseNftUri(ht){let Et=ht;Et.startsWith("did:nft:")&&(Et=Et.replace("did:nft:","").replace(/_/g,"/"));const[yt,Ct,$t]=Et.split("/"),[At,Bt]=yt.split(":"),[Dt,Ft]=Ct.split(":");if(!At||At.toLowerCase()!=="eip155")throw new EnsAvatarInvalidNftUriError({reason:"Only EIP-155 supported"});if(!Bt)throw new EnsAvatarInvalidNftUriError({reason:"Chain ID not found"});if(!Ft)throw new EnsAvatarInvalidNftUriError({reason:"Contract address not found"});if(!$t)throw new EnsAvatarInvalidNftUriError({reason:"Token ID not found"});if(!Dt)throw new EnsAvatarInvalidNftUriError({reason:"ERC namespace not found"});return{chainID:parseInt(Bt),namespace:Dt.toLowerCase(),contractAddress:Ft,tokenID:$t}}async function getNftTokenUri(ht,{nft:Et}){if(Et.namespace==="erc721")return readContract$1(ht,{address:Et.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(Et.tokenID)]});if(Et.namespace==="erc1155")return readContract$1(ht,{address:Et.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(Et.tokenID)]});throw new EnsAvatarUnsupportedNamespaceError({namespace:Et.namespace})}async function parseAvatarRecord(ht,{gatewayUrls:Et,record:yt}){return/eip155:/i.test(yt)?parseNftAvatarUri(ht,{gatewayUrls:Et,record:yt}):parseAvatarUri({uri:yt,gatewayUrls:Et})}async function parseNftAvatarUri(ht,{gatewayUrls:Et,record:yt}){const Ct=parseNftUri(yt),$t=await getNftTokenUri(ht,{nft:Ct}),{uri:At,isOnChain:Bt,isEncoded:Dt}=resolveAvatarUri({uri:$t,gatewayUrls:Et});if(Bt&&(At.includes("data:application/json;base64,")||At.startsWith("{"))){const kt=Dt?atob(At.replace("data:application/json;base64,","")):At,Mt=JSON.parse(kt);return parseAvatarUri({uri:getJsonImage(Mt),gatewayUrls:Et})}let Ft=Ct.tokenID;return Ct.namespace==="erc1155"&&(Ft=Ft.replace("0x","").padStart(64,"0")),getMetadataAvatarUri({gatewayUrls:Et,uri:At.replace(/(?:0x)?{id}/,Ft)})}async function getEnsText(ht,{blockNumber:Et,blockTag:yt,name:Ct,key:$t,universalResolverAddress:At}){let Bt=At;if(!Bt){if(!ht.chain)throw new Error("client chain not configured. universalResolverAddress is required.");Bt=getChainContractAddress({blockNumber:Et,chain:ht.chain,contract:"ensUniversalResolver"})}try{const Dt=await getAction(ht,readContract$1,"readContract")({address:Bt,abi:universalResolverResolveAbi,functionName:"resolve",args:[toHex$2(packetToBytes(Ct)),encodeFunctionData({abi:textResolverAbi,functionName:"text",args:[namehash(Ct),$t]})],blockNumber:Et,blockTag:yt});if(Dt[0]==="0x")return null;const Ft=decodeFunctionResult({abi:textResolverAbi,functionName:"text",data:Dt[0]});return Ft===""?null:Ft}catch(Dt){if(isNullUniversalResolverError(Dt,"resolve"))return null;throw Dt}}async function getEnsAvatar(ht,{blockNumber:Et,blockTag:yt,gatewayUrls:Ct,name:$t,universalResolverAddress:At}){const Bt=await getAction(ht,getEnsText,"getEnsText")({blockNumber:Et,blockTag:yt,key:"avatar",name:$t,universalResolverAddress:At});if(!Bt)return null;try{return await parseAvatarRecord(ht,{record:Bt,gatewayUrls:Ct})}catch{return null}}async function getEnsName(ht,{address:Et,blockNumber:yt,blockTag:Ct,universalResolverAddress:$t}){let At=$t;if(!At){if(!ht.chain)throw new Error("client chain not configured. universalResolverAddress is required.");At=getChainContractAddress({blockNumber:yt,chain:ht.chain,contract:"ensUniversalResolver"})}const Bt=`${Et.toLowerCase().substring(2)}.addr.reverse`;try{const[Dt,Ft]=await getAction(ht,readContract$1,"readContract")({address:At,abi:universalResolverReverseAbi,functionName:"reverse",args:[toHex$2(packetToBytes(Bt))],blockNumber:yt,blockTag:Ct});return Et.toLowerCase()!==Ft.toLowerCase()?null:Dt}catch(Dt){if(isNullUniversalResolverError(Dt,"reverse"))return null;throw Dt}}async function getEnsResolver(ht,{blockNumber:Et,blockTag:yt,name:Ct,universalResolverAddress:$t}){let At=$t;if(!At){if(!ht.chain)throw new Error("client chain not configured. universalResolverAddress is required.");At=getChainContractAddress({blockNumber:Et,chain:ht.chain,contract:"ensUniversalResolver"})}const[Bt]=await getAction(ht,readContract$1,"readContract")({address:At,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[toHex$2(packetToBytes(Ct))],blockNumber:Et,blockTag:yt});return Bt}async function createBlockFilter(ht){const Et=createFilterRequestScope(ht,{method:"eth_newBlockFilter"}),yt=await ht.request({method:"eth_newBlockFilter"});return{id:yt,request:Et(yt),type:"block"}}async function createEventFilter(ht,{address:Et,args:yt,event:Ct,events:$t,fromBlock:At,strict:Bt,toBlock:Dt}={}){const Ft=$t??(Ct?[Ct]:void 0),kt=createFilterRequestScope(ht,{method:"eth_newFilter"});let Mt=[];Ft&&(Mt=[Ft.flatMap(jt=>encodeEventTopics({abi:[jt],eventName:jt.name,args:yt}))],Ct&&(Mt=Mt[0]));const Nt=await ht.request({method:"eth_newFilter",params:[{address:Et,fromBlock:typeof At=="bigint"?numberToHex(At):At,toBlock:typeof Dt=="bigint"?numberToHex(Dt):Dt,...Mt.length?{topics:Mt}:{}}]});return{abi:Ft,args:yt,eventName:Ct?Ct.name:void 0,fromBlock:At,id:Nt,request:kt(Nt),strict:Bt,toBlock:Dt,type:"event"}}async function createPendingTransactionFilter(ht){const Et=createFilterRequestScope(ht,{method:"eth_newPendingTransactionFilter"}),yt=await ht.request({method:"eth_newPendingTransactionFilter"});return{id:yt,request:Et(yt),type:"transaction"}}async function getBalance(ht,{address:Et,blockNumber:yt,blockTag:Ct="latest"}){const $t=yt?numberToHex(yt):void 0,At=await ht.request({method:"eth_getBalance",params:[Et,$t||Ct]});return BigInt(At)}async function getBlockTransactionCount(ht,{blockHash:Et,blockNumber:yt,blockTag:Ct="latest"}={}){const $t=yt!==void 0?numberToHex(yt):void 0;let At;return Et?At=await ht.request({method:"eth_getBlockTransactionCountByHash",params:[Et]}):At=await ht.request({method:"eth_getBlockTransactionCountByNumber",params:[$t||Ct]}),hexToNumber$1(At)}async function getBytecode(ht,{address:Et,blockNumber:yt,blockTag:Ct="latest"}){const $t=yt!==void 0?numberToHex(yt):void 0,At=await ht.request({method:"eth_getCode",params:[Et,$t||Ct]});if(At!=="0x")return At}function formatFeeHistory(ht){var Et;return{baseFeePerGas:ht.baseFeePerGas.map(yt=>BigInt(yt)),gasUsedRatio:ht.gasUsedRatio,oldestBlock:BigInt(ht.oldestBlock),reward:(Et=ht.reward)==null?void 0:Et.map(yt=>yt.map(Ct=>BigInt(Ct)))}}async function getFeeHistory(ht,{blockCount:Et,blockNumber:yt,blockTag:Ct="latest",rewardPercentiles:$t}){const At=yt?numberToHex(yt):void 0,Bt=await ht.request({method:"eth_feeHistory",params:[numberToHex(Et),At||Ct,$t]});return formatFeeHistory(Bt)}async function getFilterLogs(ht,{filter:Et}){const yt=Et.strict??!1;return(await Et.request({method:"eth_getFilterLogs",params:[Et.id]})).map($t=>{var At;try{const{eventName:Bt,args:Dt}="abi"in Et&&Et.abi?decodeEventLog({abi:Et.abi,data:$t.data,topics:$t.topics,strict:yt}):{eventName:void 0,args:void 0};return formatLog($t,{args:Dt,eventName:Bt})}catch(Bt){let Dt,Ft;if(Bt instanceof DecodeLogDataMismatch||Bt instanceof DecodeLogTopicsMismatch){if("strict"in Et&&Et.strict)return;Dt=Bt.abiItem.name,Ft=(At=Bt.abiItem.inputs)==null?void 0:At.some(kt=>!("name"in kt&&kt.name))}return formatLog($t,{args:Ft?[]:{},eventName:Dt})}}).filter(Boolean)}const bytesRegex=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,integerRegex=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function hashTypedData({domain:ht,message:Et,primaryType:yt,types:Ct}){const $t=typeof ht>"u"?{}:ht,At={EIP712Domain:getTypesForEIP712Domain({domain:$t}),...Ct};validateTypedData({domain:$t,message:Et,primaryType:yt,types:At});const Bt=["0x1901"];return $t&&Bt.push(hashDomain({domain:$t,types:At})),yt!=="EIP712Domain"&&Bt.push(hashStruct({data:Et,primaryType:yt,types:At})),keccak256$1(concat$7(Bt))}function hashDomain({domain:ht,types:Et}){return hashStruct({data:ht,primaryType:"EIP712Domain",types:Et})}function hashStruct({data:ht,primaryType:Et,types:yt}){const Ct=encodeData({data:ht,primaryType:Et,types:yt});return keccak256$1(Ct)}function encodeData({data:ht,primaryType:Et,types:yt}){const Ct=[{type:"bytes32"}],$t=[hashType({primaryType:Et,types:yt})];for(const At of yt[Et]){const[Bt,Dt]=encodeField({types:yt,name:At.name,type:At.type,value:ht[At.name]});Ct.push(Bt),$t.push(Dt)}return encodeAbiParameters(Ct,$t)}function hashType({primaryType:ht,types:Et}){const yt=toHex$2(encodeType({primaryType:ht,types:Et}));return keccak256$1(yt)}function encodeType({primaryType:ht,types:Et}){let yt="";const Ct=findTypeDependencies({primaryType:ht,types:Et});Ct.delete(ht);const $t=[ht,...Array.from(Ct).sort()];for(const At of $t)yt+=`${At}(${Et[At].map(({name:Bt,type:Dt})=>`${Dt} ${Bt}`).join(",")})`;return yt}function findTypeDependencies({primaryType:ht,types:Et},yt=new Set){const Ct=ht.match(/^\w*/u),$t=Ct==null?void 0:Ct[0];if(yt.has($t)||Et[$t]===void 0)return yt;yt.add($t);for(const At of Et[$t])findTypeDependencies({primaryType:At.type,types:Et},yt);return yt}function encodeField({types:ht,name:Et,type:yt,value:Ct}){if(ht[yt]!==void 0)return[{type:"bytes32"},keccak256$1(encodeData({data:Ct,primaryType:yt,types:ht}))];if(yt==="bytes")return Ct=`0x${(Ct.length%2?"0":"")+Ct.slice(2)}`,[{type:"bytes32"},keccak256$1(Ct)];if(yt==="string")return[{type:"bytes32"},keccak256$1(toHex$2(Ct))];if(yt.lastIndexOf("]")===yt.length-1){const $t=yt.slice(0,yt.lastIndexOf("[")),At=Ct.map(Bt=>encodeField({name:Et,type:$t,types:ht,value:Bt}));return[{type:"bytes32"},keccak256$1(encodeAbiParameters(At.map(([Bt])=>Bt),At.map(([,Bt])=>Bt)))]}return[{type:yt},Ct]}function validateTypedData({domain:ht,message:Et,primaryType:yt,types:Ct}){const $t=Ct,At=(Bt,Dt)=>{for(const Ft of Bt){const{name:kt,type:Mt}=Ft,Nt=Mt,jt=Dt[kt],zt=Nt.match(integerRegex);if(zt&&(typeof jt=="number"||typeof jt=="bigint")){const[Xt,Qt,Zt]=zt;numberToHex(jt,{signed:Qt==="int",size:parseInt(Zt)/8})}if(Nt==="address"&&typeof jt=="string"&&!isAddress$1(jt))throw new InvalidAddressError({address:jt});const Vt=Nt.match(bytesRegex);if(Vt){const[Xt,Qt]=Vt;if(Qt&&size$1(jt)!==parseInt(Qt))throw new BytesSizeMismatchError({expectedSize:parseInt(Qt),givenSize:size$1(jt)})}const Kt=$t[Nt];Kt&&At(Kt,jt)}};if($t.EIP712Domain&&ht&&At($t.EIP712Domain,ht),yt!=="EIP712Domain"){const Bt=$t[yt];At(Bt,Et)}}function getTypesForEIP712Domain({domain:ht}){return[typeof(ht==null?void 0:ht.name)=="string"&&{name:"name",type:"string"},(ht==null?void 0:ht.version)&&{name:"version",type:"string"},typeof(ht==null?void 0:ht.chainId)=="number"&&{name:"chainId",type:"uint256"},(ht==null?void 0:ht.verifyingContract)&&{name:"verifyingContract",type:"address"},(ht==null?void 0:ht.salt)&&{name:"salt",type:"bytes32"}].filter(Boolean)}const docsPath="/docs/contract/encodeDeployData";function encodeDeployData({abi:ht,args:Et,bytecode:yt}){if(!Et||Et.length===0)return yt;const Ct=ht.find(At=>"type"in At&&At.type==="constructor");if(!Ct)throw new AbiConstructorNotFoundError({docsPath});if(!("inputs"in Ct))throw new AbiConstructorParamsNotFoundError({docsPath});if(!Ct.inputs||Ct.inputs.length===0)throw new AbiConstructorParamsNotFoundError({docsPath});const $t=encodeAbiParameters(Ct.inputs,Et);return concatHex([yt,$t])}const presignMessagePrefix=`Ethereum Signed Message:
`;function hashMessage(ht,Et){const yt=typeof ht=="string"?stringToBytes(ht):ht.raw instanceof Uint8Array?ht.raw:toBytes$2(ht.raw),Ct=stringToBytes(`${presignMessagePrefix}${yt.length}`);return keccak256$1(concat$7([Ct,yt]),Et)}function formatStorageProof(ht){return ht.map(Et=>({...Et,value:BigInt(Et.value)}))}function formatProof(ht){return{...ht,balance:ht.balance?BigInt(ht.balance):void 0,nonce:ht.nonce?hexToNumber$1(ht.nonce):void 0,storageProof:ht.storageProof?formatStorageProof(ht.storageProof):void 0}}async function getProof(ht,{address:Et,blockNumber:yt,blockTag:Ct,storageKeys:$t}){const At=Ct??"latest",Bt=yt!==void 0?numberToHex(yt):void 0,Dt=await ht.request({method:"eth_getProof",params:[Et,$t,Bt||At]});return formatProof(Dt)}async function getStorageAt(ht,{address:Et,blockNumber:yt,blockTag:Ct="latest",slot:$t}){const At=yt!==void 0?numberToHex(yt):void 0;return await ht.request({method:"eth_getStorageAt",params:[Et,$t,At||Ct]})}async function getTransaction(ht,{blockHash:Et,blockNumber:yt,blockTag:Ct,hash:$t,index:At}){var Mt,Nt,jt;const Bt=Ct||"latest",Dt=yt!==void 0?numberToHex(yt):void 0;let Ft=null;if($t?Ft=await ht.request({method:"eth_getTransactionByHash",params:[$t]}):Et?Ft=await ht.request({method:"eth_getTransactionByBlockHashAndIndex",params:[Et,numberToHex(At)]}):(Dt||Bt)&&(Ft=await ht.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[Dt||Bt,numberToHex(At)]})),!Ft)throw new TransactionNotFoundError({blockHash:Et,blockNumber:yt,blockTag:Bt,hash:$t,index:At});return(((jt=(Nt=(Mt=ht.chain)==null?void 0:Mt.formatters)==null?void 0:Nt.transaction)==null?void 0:jt.format)||formatTransaction)(Ft)}async function getTransactionConfirmations(ht,{hash:Et,transactionReceipt:yt}){const[Ct,$t]=await Promise.all([getAction(ht,getBlockNumber,"getBlockNumber")({}),Et?getAction(ht,getTransaction,"getBlockNumber")({hash:Et}):void 0]),At=(yt==null?void 0:yt.blockNumber)||($t==null?void 0:$t.blockNumber);return At?Ct-At+1n:0n}async function getTransactionReceipt(ht,{hash:Et}){var $t,At,Bt;const yt=await ht.request({method:"eth_getTransactionReceipt",params:[Et]});if(!yt)throw new TransactionReceiptNotFoundError({hash:Et});return(((Bt=(At=($t=ht.chain)==null?void 0:$t.formatters)==null?void 0:At.transactionReceipt)==null?void 0:Bt.format)||formatTransactionReceipt)(yt)}async function multicall$1(ht,Et){var Kt;const{allowFailure:yt=!0,batchSize:Ct,blockNumber:$t,blockTag:At,contracts:Bt,multicallAddress:Dt}=Et,Ft=Ct??(typeof((Kt=ht.batch)==null?void 0:Kt.multicall)=="object"&&ht.batch.multicall.batchSize||1024);let kt=Dt;if(!kt){if(!ht.chain)throw new Error("client chain not configured. multicallAddress is required.");kt=getChainContractAddress({blockNumber:$t,chain:ht.chain,contract:"multicall3"})}const Mt=[[]];let Nt=0,jt=0;for(let Xt=0;Xt<Bt.length;Xt++){const{abi:Qt,address:Zt,args:dr,functionName:cr}=Bt[Xt];try{const Er=encodeFunctionData({abi:Qt,args:dr,functionName:cr});jt+=(Er.length-2)/2,Ft>0&&jt>Ft&&Mt[Nt].length>0&&(Nt++,jt=(Er.length-2)/2,Mt[Nt]=[]),Mt[Nt]=[...Mt[Nt],{allowFailure:!0,callData:Er,target:Zt}]}catch(Er){const pr=getContractError(Er,{abi:Qt,address:Zt,args:dr,docsPath:"/docs/contract/multicall",functionName:cr});if(!yt)throw pr;Mt[Nt]=[...Mt[Nt],{allowFailure:!0,callData:"0x",target:Zt}]}}const zt=await Promise.allSettled(Mt.map(Xt=>getAction(ht,readContract$1,"readContract")({abi:multicall3Abi,address:kt,args:[Xt],blockNumber:$t,blockTag:At,functionName:"aggregate3"}))),Vt=[];for(let Xt=0;Xt<zt.length;Xt++){const Qt=zt[Xt];if(Qt.status==="rejected"){if(!yt)throw Qt.reason;for(let dr=0;dr<Mt[Xt].length;dr++)Vt.push({status:"failure",error:Qt.reason,result:void 0});continue}const Zt=Qt.value;for(let dr=0;dr<Zt.length;dr++){const{returnData:cr,success:Er}=Zt[dr],{callData:pr}=Mt[Xt][dr],{abi:gr,address:vr,functionName:yr,args:xr}=Bt[Vt.length];try{if(pr==="0x")throw new AbiDecodingZeroDataError;if(!Er)throw new RawContractError({data:cr});const rr=decodeFunctionResult({abi:gr,args:xr,data:cr,functionName:yr});Vt.push(yt?{result:rr,status:"success"}:rr)}catch(rr){const Lt=getContractError(rr,{abi:gr,address:vr,args:xr,docsPath:"/docs/contract/multicall",functionName:yr});if(!yt)throw Lt;Vt.push({error:Lt,result:void 0,status:"failure"})}}}if(Vt.length!==Bt.length)throw new BaseError("multicall results mismatch");return Vt}const universalSignatureValidatorByteCode="0x60806040523480156200001157600080fd5b50604051620007003803806200070083398101604081905262000034916200056f565b6000620000438484846200004f565b9050806000526001601ff35b600080846001600160a01b0316803b806020016040519081016040528181526000908060200190933c90507f6492649264926492649264926492649264926492649264926492649264926492620000a68462000451565b036200021f57600060608085806020019051810190620000c79190620005ce565b8651929550909350915060000362000192576000836001600160a01b031683604051620000f5919062000643565b6000604051808303816000865af19150503d806000811462000134576040519150601f19603f3d011682016040523d82523d6000602084013e62000139565b606091505b5050905080620001905760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b505b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90620001c4908b90869060040162000661565b602060405180830381865afa158015620001e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200020891906200069d565b6001600160e01b031916149450505050506200044a565b805115620002b157604051630b135d3f60e11b808252906001600160a01b03871690631626ba7e9062000259908890889060040162000661565b602060405180830381865afa15801562000277573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200029d91906200069d565b6001600160e01b031916149150506200044a565b8251604114620003195760405162461bcd60e51b815260206004820152603a6024820152600080516020620006e083398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e677468000000000000606482015260840162000187565b620003236200046b565b506020830151604080850151855186939260009185919081106200034b576200034b620006c9565b016020015160f81c9050601b81148015906200036b57508060ff16601c14155b15620003cf5760405162461bcd60e51b815260206004820152603b6024820152600080516020620006e083398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c75650000000000606482015260840162000187565b6040805160008152602081018083528a905260ff83169181019190915260608101849052608081018390526001600160a01b038a169060019060a0016020604051602081039080840390855afa1580156200042e573d6000803e3d6000fd5b505050602060405103516001600160a01b031614955050505050505b9392505050565b60006020825110156200046357600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b03811681146200049f57600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620004d5578181015183820152602001620004bb565b50506000910152565b600082601f830112620004f057600080fd5b81516001600160401b03808211156200050d576200050d620004a2565b604051601f8301601f19908116603f01168101908282118183101715620005385762000538620004a2565b816040528381528660208588010111156200055257600080fd5b62000565846020830160208901620004b8565b9695505050505050565b6000806000606084860312156200058557600080fd5b8351620005928162000489565b6020850151604086015191945092506001600160401b03811115620005b657600080fd5b620005c486828701620004de565b9150509250925092565b600080600060608486031215620005e457600080fd5b8351620005f18162000489565b60208501519093506001600160401b03808211156200060f57600080fd5b6200061d87838801620004de565b935060408601519150808211156200063457600080fd5b50620005c486828701620004de565b6000825162000657818460208701620004b8565b9190910192915050565b828152604060208201526000825180604084015262000688816060850160208701620004b8565b601f01601f1916919091016060019392505050565b600060208284031215620006b057600080fd5b81516001600160e01b0319811681146200044a57600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572";/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const _0n$1=BigInt(0),_1n$1=BigInt(1),_2n$1=BigInt(2),u8a$1=ht=>ht instanceof Uint8Array,hexes=Array.from({length:256},(ht,Et)=>Et.toString(16).padStart(2,"0"));function bytesToHex(ht){if(!u8a$1(ht))throw new Error("Uint8Array expected");let Et="";for(let yt=0;yt<ht.length;yt++)Et+=hexes[ht[yt]];return Et}function numberToHexUnpadded(ht){const Et=ht.toString(16);return Et.length&1?`0${Et}`:Et}function hexToNumber(ht){if(typeof ht!="string")throw new Error("hex string expected, got "+typeof ht);return BigInt(ht===""?"0":`0x${ht}`)}function hexToBytes(ht){if(typeof ht!="string")throw new Error("hex string expected, got "+typeof ht);const Et=ht.length;if(Et%2)throw new Error("padded hex string expected, got unpadded hex of length "+Et);const yt=new Uint8Array(Et/2);for(let Ct=0;Ct<yt.length;Ct++){const $t=Ct*2,At=ht.slice($t,$t+2),Bt=Number.parseInt(At,16);if(Number.isNaN(Bt)||Bt<0)throw new Error("Invalid byte sequence");yt[Ct]=Bt}return yt}function bytesToNumberBE(ht){return hexToNumber(bytesToHex(ht))}function bytesToNumberLE(ht){if(!u8a$1(ht))throw new Error("Uint8Array expected");return hexToNumber(bytesToHex(Uint8Array.from(ht).reverse()))}function numberToBytesBE(ht,Et){return hexToBytes(ht.toString(16).padStart(Et*2,"0"))}function numberToBytesLE(ht,Et){return numberToBytesBE(ht,Et).reverse()}function numberToVarBytesBE(ht){return hexToBytes(numberToHexUnpadded(ht))}function ensureBytes(ht,Et,yt){let Ct;if(typeof Et=="string")try{Ct=hexToBytes(Et)}catch(At){throw new Error(`${ht} must be valid hex string, got "${Et}". Cause: ${At}`)}else if(u8a$1(Et))Ct=Uint8Array.from(Et);else throw new Error(`${ht} must be hex string or Uint8Array`);const $t=Ct.length;if(typeof yt=="number"&&$t!==yt)throw new Error(`${ht} expected ${yt} bytes, got ${$t}`);return Ct}function concatBytes(...ht){const Et=new Uint8Array(ht.reduce((Ct,$t)=>Ct+$t.length,0));let yt=0;return ht.forEach(Ct=>{if(!u8a$1(Ct))throw new Error("Uint8Array expected");Et.set(Ct,yt),yt+=Ct.length}),Et}function equalBytes(ht,Et){if(ht.length!==Et.length)return!1;for(let yt=0;yt<ht.length;yt++)if(ht[yt]!==Et[yt])return!1;return!0}function utf8ToBytes$1(ht){if(typeof ht!="string")throw new Error(`utf8ToBytes expected string, got ${typeof ht}`);return new Uint8Array(new TextEncoder().encode(ht))}function bitLen(ht){let Et;for(Et=0;ht>_0n$1;ht>>=_1n$1,Et+=1);return Et}function bitGet(ht,Et){return ht>>BigInt(Et)&_1n$1}const bitSet=(ht,Et,yt)=>ht|(yt?_1n$1:_0n$1)<<BigInt(Et),bitMask=ht=>(_2n$1<<BigInt(ht-1))-_1n$1,u8n=ht=>new Uint8Array(ht),u8fr=ht=>Uint8Array.from(ht);function createHmacDrbg(ht,Et,yt){if(typeof ht!="number"||ht<2)throw new Error("hashLen must be a number");if(typeof Et!="number"||Et<2)throw new Error("qByteLen must be a number");if(typeof yt!="function")throw new Error("hmacFn must be a function");let Ct=u8n(ht),$t=u8n(ht),At=0;const Bt=()=>{Ct.fill(1),$t.fill(0),At=0},Dt=(...Nt)=>yt($t,Ct,...Nt),Ft=(Nt=u8n())=>{$t=Dt(u8fr([0]),Nt),Ct=Dt(),Nt.length!==0&&($t=Dt(u8fr([1]),Nt),Ct=Dt())},kt=()=>{if(At++>=1e3)throw new Error("drbg: tried 1000 values");let Nt=0;const jt=[];for(;Nt<Et;){Ct=Dt();const zt=Ct.slice();jt.push(zt),Nt+=Ct.length}return concatBytes(...jt)};return(Nt,jt)=>{Bt(),Ft(Nt);let zt;for(;!(zt=jt(kt()));)Ft();return Bt(),zt}}const validatorFns={bigint:ht=>typeof ht=="bigint",function:ht=>typeof ht=="function",boolean:ht=>typeof ht=="boolean",string:ht=>typeof ht=="string",stringOrUint8Array:ht=>typeof ht=="string"||ht instanceof Uint8Array,isSafeInteger:ht=>Number.isSafeInteger(ht),array:ht=>Array.isArray(ht),field:(ht,Et)=>Et.Fp.isValid(ht),hash:ht=>typeof ht=="function"&&Number.isSafeInteger(ht.outputLen)};function validateObject(ht,Et,yt={}){const Ct=($t,At,Bt)=>{const Dt=validatorFns[At];if(typeof Dt!="function")throw new Error(`Invalid validator "${At}", expected function`);const Ft=ht[$t];if(!(Bt&&Ft===void 0)&&!Dt(Ft,ht))throw new Error(`Invalid param ${String($t)}=${Ft} (${typeof Ft}), expected ${At}`)};for(const[$t,At]of Object.entries(Et))Ct($t,At,!1);for(const[$t,At]of Object.entries(yt))Ct($t,At,!0);return ht}const utils$r=Object.freeze(Object.defineProperty({__proto__:null,bitGet,bitLen,bitMask,bitSet,bytesToHex,bytesToNumberBE,bytesToNumberLE,concatBytes,createHmacDrbg,ensureBytes,equalBytes,hexToBytes,hexToNumber,numberToBytesBE,numberToBytesLE,numberToHexUnpadded,numberToVarBytesBE,utf8ToBytes:utf8ToBytes$1,validateObject},Symbol.toStringTag,{value:"Module"}));function isBytesEqual(ht,Et){const yt=isHex(ht)?toBytes$2(ht):ht,Ct=isHex(Et)?toBytes$2(Et):Et;return equalBytes(yt,Ct)}async function verifyHash(ht,{address:Et,hash:yt,signature:Ct,...$t}){const At=isHex(Ct)?Ct:toHex$2(Ct);try{const{data:Bt}=await getAction(ht,call$d,"call")({data:encodeDeployData({abi:universalSignatureValidatorAbi,args:[Et,yt,At],bytecode:universalSignatureValidatorByteCode}),...$t});return isBytesEqual(Bt??"0x0","0x1")}catch(Bt){if(Bt instanceof CallExecutionError)return!1;throw Bt}}async function verifyMessage(ht,{address:Et,message:yt,signature:Ct,...$t}){const At=hashMessage(yt);return verifyHash(ht,{address:Et,hash:At,signature:Ct,...$t})}async function verifyTypedData(ht,{address:Et,signature:yt,message:Ct,primaryType:$t,types:At,domain:Bt,...Dt}){const Ft=hashTypedData({message:Ct,primaryType:$t,types:At,domain:Bt});return verifyHash(ht,{address:Et,hash:Ft,signature:yt,...Dt})}function watchBlockNumber(ht,{emitOnBegin:Et=!1,emitMissed:yt=!1,onBlockNumber:Ct,onError:$t,poll:At,pollingInterval:Bt=ht.pollingInterval}){const Dt=typeof At<"u"?At:ht.transport.type!=="webSocket";let Ft;return Dt?(()=>{const Nt=stringify$9(["watchBlockNumber",ht.uid,Et,yt,Bt]);return observe$1(Nt,{onBlockNumber:Ct,onError:$t},jt=>poll(async()=>{var zt;try{const Vt=await getAction(ht,getBlockNumber,"getBlockNumber")({cacheTime:0});if(Ft){if(Vt===Ft)return;if(Vt-Ft>1&&yt)for(let Kt=Ft+1n;Kt<Vt;Kt++)jt.onBlockNumber(Kt,Ft),Ft=Kt}(!Ft||Vt>Ft)&&(jt.onBlockNumber(Vt,Ft),Ft=Vt)}catch(Vt){(zt=jt.onError)==null||zt.call(jt,Vt)}},{emitOnBegin:Et,interval:Bt}))})():(()=>{let Nt=!0,jt=()=>Nt=!1;return(async()=>{try{const{unsubscribe:zt}=await ht.transport.subscribe({params:["newHeads"],onData(Vt){var Xt;if(!Nt)return;const Kt=hexToBigInt((Xt=Vt.result)==null?void 0:Xt.number);Ct(Kt,Ft),Ft=Kt},onError(Vt){$t==null||$t(Vt)}});jt=zt,Nt||jt()}catch(zt){$t==null||$t(zt)}})(),jt})()}async function waitForTransactionReceipt(ht,{confirmations:Et=1,hash:yt,onReplaced:Ct,pollingInterval:$t=ht.pollingInterval,timeout:At}){const Bt=stringify$9(["waitForTransactionReceipt",ht.uid,yt]);let Dt,Ft,kt,Mt=!1;return new Promise((Nt,jt)=>{At&&setTimeout(()=>jt(new WaitForTransactionReceiptTimeoutError({hash:yt})),At);const zt=observe$1(Bt,{onReplaced:Ct,resolve:Nt,reject:jt},Vt=>{const Kt=getAction(ht,watchBlockNumber,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:$t,async onBlockNumber(Xt){if(Mt)return;let Qt=Xt;const Zt=dr=>{Kt(),dr(),zt()};try{if(kt){if(Et>1&&(!kt.blockNumber||Qt-kt.blockNumber+1n<Et))return;Zt(()=>Vt.resolve(kt));return}if(Dt||(Mt=!0,await withRetry(async()=>{Dt=await getAction(ht,getTransaction,"getTransaction")({hash:yt}),Dt.blockNumber&&(Qt=Dt.blockNumber)},{delay:({count:dr})=>~~(1<<dr)*200,retryCount:6}),Mt=!1),kt=await getAction(ht,getTransactionReceipt,"getTransactionReceipt")({hash:yt}),Et>1&&(!kt.blockNumber||Qt-kt.blockNumber+1n<Et))return;Zt(()=>Vt.resolve(kt))}catch(dr){if(Dt&&(dr instanceof TransactionNotFoundError||dr instanceof TransactionReceiptNotFoundError))try{Ft=Dt,Mt=!0;const cr=await withRetry(()=>getAction(ht,getBlock,"getBlock")({blockNumber:Qt,includeTransactions:!0}),{delay:({count:gr})=>~~(1<<gr)*200,retryCount:6,shouldRetry:({error:gr})=>gr instanceof BlockNotFoundError});Mt=!1;const Er=cr.transactions.find(({from:gr,nonce:vr})=>gr===Ft.from&&vr===Ft.nonce);if(!Er||(kt=await getAction(ht,getTransactionReceipt,"getTransactionReceipt")({hash:Er.hash}),Et>1&&(!kt.blockNumber||Qt-kt.blockNumber+1n<Et)))return;let pr="replaced";Er.to===Ft.to&&Er.value===Ft.value?pr="repriced":Er.from===Er.to&&Er.value===0n&&(pr="cancelled"),Zt(()=>{var gr;(gr=Vt.onReplaced)==null||gr.call(Vt,{reason:pr,replacedTransaction:Ft,transaction:Er,transactionReceipt:kt}),Vt.resolve(kt)})}catch(cr){Zt(()=>Vt.reject(cr))}else Zt(()=>Vt.reject(dr))}}})})})}function watchBlocks(ht,{blockTag:Et="latest",emitMissed:yt=!1,emitOnBegin:Ct=!1,onBlock:$t,onError:At,includeTransactions:Bt,poll:Dt,pollingInterval:Ft=ht.pollingInterval}){const kt=typeof Dt<"u"?Dt:ht.transport.type!=="webSocket",Mt=Bt??!1;let Nt;return kt?(()=>{const Vt=stringify$9(["watchBlocks",ht.uid,yt,Ct,Mt,Ft]);return observe$1(Vt,{onBlock:$t,onError:At},Kt=>poll(async()=>{var Xt;try{const Qt=await getAction(ht,getBlock,"getBlock")({blockTag:Et,includeTransactions:Mt});if(Qt.number&&(Nt!=null&&Nt.number)){if(Qt.number===Nt.number)return;if(Qt.number-Nt.number>1&&yt)for(let Zt=(Nt==null?void 0:Nt.number)+1n;Zt<Qt.number;Zt++){const dr=await getAction(ht,getBlock,"getBlock")({blockNumber:Zt,includeTransactions:Mt});Kt.onBlock(dr,Nt),Nt=dr}}(!(Nt!=null&&Nt.number)||Et==="pending"&&!(Qt!=null&&Qt.number)||Qt.number&&Qt.number>Nt.number)&&(Kt.onBlock(Qt,Nt),Nt=Qt)}catch(Qt){(Xt=Kt.onError)==null||Xt.call(Kt,Qt)}},{emitOnBegin:Ct,interval:Ft}))})():(()=>{let Vt=!0,Kt=()=>Vt=!1;return(async()=>{try{const{unsubscribe:Xt}=await ht.transport.subscribe({params:["newHeads"],onData(Qt){var cr,Er,pr;if(!Vt)return;const dr=(((pr=(Er=(cr=ht.chain)==null?void 0:cr.formatters)==null?void 0:Er.block)==null?void 0:pr.format)||formatBlock)(Qt.result);$t(dr,Nt),Nt=dr},onError(Qt){At==null||At(Qt)}});Kt=Xt,Vt||Kt()}catch(Xt){At==null||At(Xt)}})(),Kt})()}function watchEvent(ht,{address:Et,args:yt,batch:Ct=!0,event:$t,events:At,onError:Bt,onLogs:Dt,poll:Ft,pollingInterval:kt=ht.pollingInterval,strict:Mt}){const Nt=typeof Ft<"u"?Ft:ht.transport.type!=="webSocket",jt=Mt??!1;return Nt?(()=>{const Kt=stringify$9(["watchEvent",Et,yt,Ct,ht.uid,$t,kt]);return observe$1(Kt,{onLogs:Dt,onError:Bt},Xt=>{let Qt,Zt,dr=!1;const cr=poll(async()=>{var Er;if(!dr){try{Zt=await getAction(ht,createEventFilter,"createEventFilter")({address:Et,args:yt,event:$t,events:At,strict:jt})}catch{}dr=!0;return}try{let pr;if(Zt)pr=await getAction(ht,getFilterChanges,"getFilterChanges")({filter:Zt});else{const gr=await getAction(ht,getBlockNumber,"getBlockNumber")({});Qt&&Qt!==gr?pr=await getAction(ht,getLogs,"getLogs")({address:Et,args:yt,event:$t,events:At,fromBlock:Qt+1n,toBlock:gr}):pr=[],Qt=gr}if(pr.length===0)return;if(Ct)Xt.onLogs(pr);else for(const gr of pr)Xt.onLogs([gr])}catch(pr){Zt&&pr instanceof InvalidInputRpcError&&(dr=!1),(Er=Xt.onError)==null||Er.call(Xt,pr)}},{emitOnBegin:!0,interval:kt});return async()=>{Zt&&await getAction(ht,uninstallFilter,"uninstallFilter")({filter:Zt}),cr()}})})():(()=>{let Kt=!0,Xt=()=>Kt=!1;return(async()=>{try{const Qt=At??($t?[$t]:void 0);let Zt=[];Qt&&(Zt=[Qt.flatMap(cr=>encodeEventTopics({abi:[cr],eventName:cr.name,args:yt}))],$t&&(Zt=Zt[0]));const{unsubscribe:dr}=await ht.transport.subscribe({params:["logs",{address:Et,topics:Zt}],onData(cr){var pr;if(!Kt)return;const Er=cr.result;try{const{eventName:gr,args:vr}=decodeEventLog({abi:Qt,data:Er.data,topics:Er.topics,strict:jt}),yr=formatLog(Er,{args:vr,eventName:gr});Dt([yr])}catch(gr){let vr,yr;if(gr instanceof DecodeLogDataMismatch||gr instanceof DecodeLogTopicsMismatch){if(Mt)return;vr=gr.abiItem.name,yr=(pr=gr.abiItem.inputs)==null?void 0:pr.some(rr=>!("name"in rr&&rr.name))}const xr=formatLog(Er,{args:yr?[]:{},eventName:vr});Dt([xr])}},onError(cr){Bt==null||Bt(cr)}});Xt=dr,Kt||Xt()}catch(Qt){Bt==null||Bt(Qt)}})(),Xt})()}function watchPendingTransactions(ht,{batch:Et=!0,onError:yt,onTransactions:Ct,poll:$t,pollingInterval:At=ht.pollingInterval}){return(typeof $t<"u"?$t:ht.transport.type!=="webSocket")?(()=>{const kt=stringify$9(["watchPendingTransactions",ht.uid,Et,At]);return observe$1(kt,{onTransactions:Ct,onError:yt},Mt=>{let Nt;const jt=poll(async()=>{var zt;try{if(!Nt)try{Nt=await getAction(ht,createPendingTransactionFilter,"createPendingTransactionFilter")({});return}catch(Kt){throw jt(),Kt}const Vt=await getAction(ht,getFilterChanges,"getFilterChanges")({filter:Nt});if(Vt.length===0)return;if(Et)Mt.onTransactions(Vt);else for(const Kt of Vt)Mt.onTransactions([Kt])}catch(Vt){(zt=Mt.onError)==null||zt.call(Mt,Vt)}},{emitOnBegin:!0,interval:At});return async()=>{Nt&&await getAction(ht,uninstallFilter,"uninstallFilter")({filter:Nt}),jt()}})})():(()=>{let kt=!0,Mt=()=>kt=!1;return(async()=>{try{const{unsubscribe:Nt}=await ht.transport.subscribe({params:["newPendingTransactions"],onData(jt){if(!kt)return;const zt=jt.result;Ct([zt])},onError(jt){yt==null||yt(jt)}});Mt=Nt,kt||Mt()}catch(Nt){yt==null||yt(Nt)}})(),Mt})()}function publicActions(ht){return{call:Et=>call$d(ht,Et),createBlockFilter:()=>createBlockFilter(ht),createContractEventFilter:Et=>createContractEventFilter(ht,Et),createEventFilter:Et=>createEventFilter(ht,Et),createPendingTransactionFilter:()=>createPendingTransactionFilter(ht),estimateContractGas:Et=>estimateContractGas(ht,Et),estimateGas:Et=>estimateGas(ht,Et),getBalance:Et=>getBalance(ht,Et),getBlock:Et=>getBlock(ht,Et),getBlockNumber:Et=>getBlockNumber(ht,Et),getBlockTransactionCount:Et=>getBlockTransactionCount(ht,Et),getBytecode:Et=>getBytecode(ht,Et),getChainId:()=>getChainId(ht),getContractEvents:Et=>getContractEvents(ht,Et),getEnsAddress:Et=>getEnsAddress(ht,Et),getEnsAvatar:Et=>getEnsAvatar(ht,Et),getEnsName:Et=>getEnsName(ht,Et),getEnsResolver:Et=>getEnsResolver(ht,Et),getEnsText:Et=>getEnsText(ht,Et),getFeeHistory:Et=>getFeeHistory(ht,Et),estimateFeesPerGas:Et=>estimateFeesPerGas(ht,Et),getFilterChanges:Et=>getFilterChanges(ht,Et),getFilterLogs:Et=>getFilterLogs(ht,Et),getGasPrice:()=>getGasPrice(ht),getLogs:Et=>getLogs(ht,Et),getProof:Et=>getProof(ht,Et),estimateMaxPriorityFeePerGas:Et=>estimateMaxPriorityFeePerGas(ht,Et),getStorageAt:Et=>getStorageAt(ht,Et),getTransaction:Et=>getTransaction(ht,Et),getTransactionConfirmations:Et=>getTransactionConfirmations(ht,Et),getTransactionCount:Et=>getTransactionCount(ht,Et),getTransactionReceipt:Et=>getTransactionReceipt(ht,Et),multicall:Et=>multicall$1(ht,Et),prepareTransactionRequest:Et=>prepareTransactionRequest(ht,Et),readContract:Et=>readContract$1(ht,Et),sendRawTransaction:Et=>sendRawTransaction(ht,Et),simulateContract:Et=>simulateContract(ht,Et),verifyMessage:Et=>verifyMessage(ht,Et),verifyTypedData:Et=>verifyTypedData(ht,Et),uninstallFilter:Et=>uninstallFilter(ht,Et),waitForTransactionReceipt:Et=>waitForTransactionReceipt(ht,Et),watchBlocks:Et=>watchBlocks(ht,Et),watchBlockNumber:Et=>watchBlockNumber(ht,Et),watchContractEvent:Et=>watchContractEvent(ht,Et),watchEvent:Et=>watchEvent(ht,Et),watchPendingTransactions:Et=>watchPendingTransactions(ht,Et)}}function createPublicClient(ht){const{key:Et="public",name:yt="Public Client"}=ht;return createClient({...ht,key:Et,name:yt,type:"publicClient"}).extend(publicActions)}function deployContract(ht,{abi:Et,args:yt,bytecode:Ct,...$t}){const At=encodeDeployData({abi:Et,args:yt,bytecode:Ct});return sendTransaction$1(ht,{...$t,data:At})}async function getAddresses(ht){var yt;return((yt=ht.account)==null?void 0:yt.type)==="local"?[ht.account.address]:(await ht.request({method:"eth_accounts"})).map(Ct=>checksumAddress(Ct))}async function getPermissions(ht){return await ht.request({method:"wallet_getPermissions"})}async function requestAddresses(ht){return(await ht.request({method:"eth_requestAccounts"})).map(yt=>getAddress$1(yt))}async function requestPermissions(ht,Et){return ht.request({method:"wallet_requestPermissions",params:[Et]})}async function signMessage$1(ht,{account:Et=ht.account,message:yt}){if(!Et)throw new AccountNotFoundError({docsPath:"/docs/actions/wallet/signMessage"});const Ct=parseAccount(Et);if(Ct.type==="local")return Ct.signMessage({message:yt});const $t=typeof yt=="string"?stringToHex(yt):yt.raw instanceof Uint8Array?toHex$2(yt.raw):yt.raw;return ht.request({method:"personal_sign",params:[$t,Ct.address]})}async function signTransaction(ht,Et){var kt,Mt,Nt,jt;const{account:yt=ht.account,chain:Ct=ht.chain,...$t}=Et;if(!yt)throw new AccountNotFoundError({docsPath:"/docs/actions/wallet/signTransaction"});const At=parseAccount(yt);assertRequest({account:At,...Et});const Bt=await getAction(ht,getChainId,"getChainId")({});Ct!==null&&assertCurrentChain({currentChainId:Bt,chain:Ct});const Dt=(Ct==null?void 0:Ct.formatters)||((kt=ht.chain)==null?void 0:kt.formatters),Ft=((Mt=Dt==null?void 0:Dt.transactionRequest)==null?void 0:Mt.format)||formatTransactionRequest;return At.type==="local"?At.signTransaction({...$t,chainId:Bt},{serializer:(jt=(Nt=ht.chain)==null?void 0:Nt.serializers)==null?void 0:jt.transaction}):await ht.request({method:"eth_signTransaction",params:[{...Ft($t),chainId:numberToHex(Bt),from:At.address}]})}async function signTypedData(ht,{account:Et=ht.account,domain:yt,message:Ct,primaryType:$t,types:At}){if(!Et)throw new AccountNotFoundError({docsPath:"/docs/actions/wallet/signTypedData"});const Bt=parseAccount(Et),Dt={EIP712Domain:getTypesForEIP712Domain({domain:yt}),...At};if(validateTypedData({domain:yt,message:Ct,primaryType:$t,types:Dt}),Bt.type==="local")return Bt.signTypedData({domain:yt,primaryType:$t,types:Dt,message:Ct});const Ft=stringify$9({domain:yt??{},primaryType:$t,types:Dt,message:Ct},(kt,Mt)=>isHex(Mt)?Mt.toLowerCase():Mt);return ht.request({method:"eth_signTypedData_v4",params:[Bt.address,Ft]})}async function switchChain(ht,{id:Et}){await ht.request({method:"wallet_switchEthereumChain",params:[{chainId:numberToHex(Et)}]})}async function watchAsset(ht,Et){return await ht.request({method:"wallet_watchAsset",params:Et})}function walletActions(ht){return{addChain:Et=>addChain(ht,Et),deployContract:Et=>deployContract(ht,Et),getAddresses:()=>getAddresses(ht),getChainId:()=>getChainId(ht),getPermissions:()=>getPermissions(ht),prepareTransactionRequest:Et=>prepareTransactionRequest(ht,Et),requestAddresses:()=>requestAddresses(ht),requestPermissions:Et=>requestPermissions(ht,Et),sendRawTransaction:Et=>sendRawTransaction(ht,Et),sendTransaction:Et=>sendTransaction$1(ht,Et),signMessage:Et=>signMessage$1(ht,Et),signTransaction:Et=>signTransaction(ht,Et),signTypedData:Et=>signTypedData(ht,Et),switchChain:Et=>switchChain(ht,Et),watchAsset:Et=>watchAsset(ht,Et),writeContract:Et=>writeContract(ht,Et)}}function createWalletClient(ht){const{key:Et="wallet",name:yt="Wallet Client",transport:Ct}=ht;return createClient({...ht,key:Et,name:yt,transport:At=>Ct({...At,retryCount:0}),type:"walletClient"}).extend(walletActions)}function webSocket(ht,Et={}){const{key:yt="webSocket",name:Ct="WebSocket JSON-RPC",retryDelay:$t}=Et;return({chain:At,retryCount:Bt,timeout:Dt})=>{var Nt;const Ft=Et.retryCount??Bt,kt=Dt??Et.timeout??1e4,Mt=ht||((Nt=At==null?void 0:At.rpcUrls.default.webSocket)==null?void 0:Nt[0]);if(!Mt)throw new UrlRequiredError;return createTransport({key:yt,name:Ct,async request({method:jt,params:zt}){const Vt={method:jt,params:zt},Kt=await getSocket(Mt),{error:Xt,result:Qt}=await rpc.webSocketAsync(Kt,{body:Vt,timeout:kt});if(Xt)throw new RpcRequestError({body:Vt,error:Xt,url:Mt});return Qt},retryCount:Ft,retryDelay:$t,timeout:kt,type:"webSocket"},{getSocket(){return getSocket(Mt)},async subscribe({params:jt,onData:zt,onError:Vt}){const Kt=await getSocket(Mt),{result:Xt}=await new Promise((Qt,Zt)=>rpc.webSocket(Kt,{body:{method:"eth_subscribe",params:jt},onResponse(dr){if(dr.error){Zt(dr.error),Vt==null||Vt(dr.error);return}if(typeof dr.id=="number"){Qt(dr);return}dr.method==="eth_subscription"&&zt(dr.params)}}));return{subscriptionId:Xt,async unsubscribe(){return new Promise(Qt=>rpc.webSocket(Kt,{body:{method:"eth_unsubscribe",params:[Xt]},onResponse:Qt}))}}}})}}const goerli=defineChain({id:5,network:"goerli",name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-goerli.g.alchemy.com/v2"],webSocket:["wss://eth-goerli.g.alchemy.com/v2"]},infura:{http:["https://goerli.infura.io/v3"],webSocket:["wss://goerli.infura.io/ws/v3"]},default:{http:["https://rpc.ankr.com/eth_goerli"]},public:{http:["https://rpc.ankr.com/eth_goerli"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://goerli.etherscan.io"},default:{name:"Etherscan",url:"https://goerli.etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0x56522D00C410a43BFfDF00a9A569489297385790",blockCreated:8765204},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0}),mainnet$1=defineChain({id:1,network:"homestead",name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-mainnet.g.alchemy.com/v2"],webSocket:["wss://eth-mainnet.g.alchemy.com/v2"]},infura:{http:["https://mainnet.infura.io/v3"],webSocket:["wss://mainnet.infura.io/ws/v3"]},default:{http:["https://cloudflare-eth.com"]},public:{http:["https://cloudflare-eth.com"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://etherscan.io"},default:{name:"Etherscan",url:"https://etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc0497E381f536Be9ce14B0dD3817cBcAe57d2F62",blockCreated:16966585},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}});var ChainNotConfiguredForConnectorError=class extends Error{constructor({chainId:ht,connectorId:Et}){super(`Chain "${ht}" not configured for connector "${Et}".`),this.name="ChainNotConfiguredForConnectorError"}},ConnectorNotFoundError=class extends Error{constructor(){super(...arguments),this.name="ConnectorNotFoundError",this.message="Connector not found"}};function normalizeChainId(ht){return typeof ht=="string"?Number.parseInt(ht,ht.trim().substring(0,2)==="0x"?16:10):typeof ht=="bigint"?Number(ht):ht}var eventemitter3={exports:{}};(function(ht){var Et=Object.prototype.hasOwnProperty,yt="~";function Ct(){}Object.create&&(Ct.prototype=Object.create(null),new Ct().__proto__||(yt=!1));function $t(Ft,kt,Mt){this.fn=Ft,this.context=kt,this.once=Mt||!1}function At(Ft,kt,Mt,Nt,jt){if(typeof Mt!="function")throw new TypeError("The listener must be a function");var zt=new $t(Mt,Nt||Ft,jt),Vt=yt?yt+kt:kt;return Ft._events[Vt]?Ft._events[Vt].fn?Ft._events[Vt]=[Ft._events[Vt],zt]:Ft._events[Vt].push(zt):(Ft._events[Vt]=zt,Ft._eventsCount++),Ft}function Bt(Ft,kt){--Ft._eventsCount===0?Ft._events=new Ct:delete Ft._events[kt]}function Dt(){this._events=new Ct,this._eventsCount=0}Dt.prototype.eventNames=function(){var kt=[],Mt,Nt;if(this._eventsCount===0)return kt;for(Nt in Mt=this._events)Et.call(Mt,Nt)&&kt.push(yt?Nt.slice(1):Nt);return Object.getOwnPropertySymbols?kt.concat(Object.getOwnPropertySymbols(Mt)):kt},Dt.prototype.listeners=function(kt){var Mt=yt?yt+kt:kt,Nt=this._events[Mt];if(!Nt)return[];if(Nt.fn)return[Nt.fn];for(var jt=0,zt=Nt.length,Vt=new Array(zt);jt<zt;jt++)Vt[jt]=Nt[jt].fn;return Vt},Dt.prototype.listenerCount=function(kt){var Mt=yt?yt+kt:kt,Nt=this._events[Mt];return Nt?Nt.fn?1:Nt.length:0},Dt.prototype.emit=function(kt,Mt,Nt,jt,zt,Vt){var Kt=yt?yt+kt:kt;if(!this._events[Kt])return!1;var Xt=this._events[Kt],Qt=arguments.length,Zt,dr;if(Xt.fn){switch(Xt.once&&this.removeListener(kt,Xt.fn,void 0,!0),Qt){case 1:return Xt.fn.call(Xt.context),!0;case 2:return Xt.fn.call(Xt.context,Mt),!0;case 3:return Xt.fn.call(Xt.context,Mt,Nt),!0;case 4:return Xt.fn.call(Xt.context,Mt,Nt,jt),!0;case 5:return Xt.fn.call(Xt.context,Mt,Nt,jt,zt),!0;case 6:return Xt.fn.call(Xt.context,Mt,Nt,jt,zt,Vt),!0}for(dr=1,Zt=new Array(Qt-1);dr<Qt;dr++)Zt[dr-1]=arguments[dr];Xt.fn.apply(Xt.context,Zt)}else{var cr=Xt.length,Er;for(dr=0;dr<cr;dr++)switch(Xt[dr].once&&this.removeListener(kt,Xt[dr].fn,void 0,!0),Qt){case 1:Xt[dr].fn.call(Xt[dr].context);break;case 2:Xt[dr].fn.call(Xt[dr].context,Mt);break;case 3:Xt[dr].fn.call(Xt[dr].context,Mt,Nt);break;case 4:Xt[dr].fn.call(Xt[dr].context,Mt,Nt,jt);break;default:if(!Zt)for(Er=1,Zt=new Array(Qt-1);Er<Qt;Er++)Zt[Er-1]=arguments[Er];Xt[dr].fn.apply(Xt[dr].context,Zt)}}return!0},Dt.prototype.on=function(kt,Mt,Nt){return At(this,kt,Mt,Nt,!1)},Dt.prototype.once=function(kt,Mt,Nt){return At(this,kt,Mt,Nt,!0)},Dt.prototype.removeListener=function(kt,Mt,Nt,jt){var zt=yt?yt+kt:kt;if(!this._events[zt])return this;if(!Mt)return Bt(this,zt),this;var Vt=this._events[zt];if(Vt.fn)Vt.fn===Mt&&(!jt||Vt.once)&&(!Nt||Vt.context===Nt)&&Bt(this,zt);else{for(var Kt=0,Xt=[],Qt=Vt.length;Kt<Qt;Kt++)(Vt[Kt].fn!==Mt||jt&&!Vt[Kt].once||Nt&&Vt[Kt].context!==Nt)&&Xt.push(Vt[Kt]);Xt.length?this._events[zt]=Xt.length===1?Xt[0]:Xt:Bt(this,zt)}return this},Dt.prototype.removeAllListeners=function(kt){var Mt;return kt?(Mt=yt?yt+kt:kt,this._events[Mt]&&Bt(this,Mt)):(this._events=new Ct,this._eventsCount=0),this},Dt.prototype.off=Dt.prototype.removeListener,Dt.prototype.addListener=Dt.prototype.on,Dt.prefixed=yt,Dt.EventEmitter=Dt,ht.exports=Dt})(eventemitter3);var eventemitter3Exports=eventemitter3.exports;const EventEmitter$2=getDefaultExportFromCjs$1(eventemitter3Exports);var __accessCheck$1=(ht,Et,yt)=>{if(!Et.has(ht))throw TypeError("Cannot "+yt)},__privateGet$1=(ht,Et,yt)=>(__accessCheck$1(ht,Et,"read from private field"),yt?yt.call(ht):Et.get(ht)),__privateAdd$1=(ht,Et,yt)=>{if(Et.has(ht))throw TypeError("Cannot add the same private member more than once");Et instanceof WeakSet?Et.add(ht):Et.set(ht,yt)},__privateSet$1=(ht,Et,yt,Ct)=>(__accessCheck$1(ht,Et,"write to private field"),Et.set(ht,yt),yt),__privateMethod$1=(ht,Et,yt)=>(__accessCheck$1(ht,Et,"access private method"),yt),Connector=class extends EventEmitter$2{constructor({chains:ht=[mainnet$1,goerli],options:Et}){super(),this.chains=ht,this.options=Et}getBlockExplorerUrls(ht){const{default:Et,...yt}=ht.blockExplorers??{};if(Et)return[Et.url,...Object.values(yt).map(Ct=>Ct.url)]}isChainUnsupported(ht){return!this.chains.some(Et=>Et.id===ht)}setStorage(ht){this.storage=ht}};function getInjectedName(ht){var yt;if(!ht)return"Injected";const Et=Ct=>{if(Ct.isApexWallet)return"Apex Wallet";if(Ct.isAvalanche)return"Core Wallet";if(Ct.isBackpack)return"Backpack";if(Ct.isBifrost)return"Bifrost Wallet";if(Ct.isBitKeep)return"BitKeep";if(Ct.isBitski)return"Bitski";if(Ct.isBlockWallet)return"BlockWallet";if(Ct.isBraveWallet)return"Brave Wallet";if(Ct.isCoin98)return"Coin98 Wallet";if(Ct.isCoinbaseWallet)return"Coinbase Wallet";if(Ct.isDawn)return"Dawn Wallet";if(Ct.isDefiant)return"Defiant";if(Ct.isDesig)return"Desig Wallet";if(Ct.isEnkrypt)return"Enkrypt";if(Ct.isExodus)return"Exodus";if(Ct.isFordefi)return"Fordefi";if(Ct.isFrame)return"Frame";if(Ct.isFrontier)return"Frontier Wallet";if(Ct.isGamestop)return"GameStop Wallet";if(Ct.isHaqqWallet)return"HAQQ Wallet";if(Ct.isHyperPay)return"HyperPay Wallet";if(Ct.isImToken)return"ImToken";if(Ct.isHaloWallet)return"Halo Wallet";if(Ct.isKuCoinWallet)return"KuCoin Wallet";if(Ct.isMathWallet)return"MathWallet";if(Ct.isNovaWallet)return"Nova Wallet";if(Ct.isOkxWallet||Ct.isOKExWallet)return"OKX Wallet";if(Ct.isOktoWallet)return"Okto Wallet";if(Ct.isOneInchIOSWallet||Ct.isOneInchAndroidWallet)return"1inch Wallet";if(Ct.isOneKey)return"OneKey Wallet";if(Ct.isOpera)return"Opera";if(Ct.isPhantom)return"Phantom";if(Ct.isPortal)return"Ripio Portal";if(Ct.isRabby)return"Rabby Wallet";if(Ct.isRainbow)return"Rainbow";if(Ct.isSafePal)return"SafePal Wallet";if(Ct.isStatus)return"Status";if(Ct.isSubWallet)return"SubWallet";if(Ct.isTalisman)return"Talisman";if(Ct.isTally)return"Taho";if(Ct.isTokenPocket)return"TokenPocket";if(Ct.isTokenary)return"Tokenary";if(Ct.isTrust||Ct.isTrustWallet)return"Trust Wallet";if(Ct.isTTWallet)return"TTWallet";if(Ct.isXDEFI)return"XDEFI Wallet";if(Ct.isZeal)return"Zeal";if(Ct.isZerion)return"Zerion";if(Ct.isMetaMask)return"MetaMask"};if((yt=ht.providers)!=null&&yt.length){const Ct=new Set;let $t=1;for(const Bt of ht.providers){let Dt=Et(Bt);Dt||(Dt=`Unknown Wallet #${$t}`,$t+=1),Ct.add(Dt)}const At=[...Ct];return At.length?At:At[0]??"Injected"}return Et(ht)??"Injected"}var _provider$2,InjectedConnector=class extends Connector{constructor({chains:ht,options:Et}={}){const yt={shimDisconnect:!0,getProvider(){if(typeof window>"u")return;const $t=window.ethereum;return $t!=null&&$t.providers&&$t.providers.length>0?$t.providers[0]:$t},...Et};super({chains:ht,options:yt}),this.id="injected",__privateAdd$1(this,_provider$2,void 0),this.shimDisconnectKey=`${this.id}.shimDisconnect`,this.onAccountsChanged=$t=>{$t.length===0?this.emit("disconnect"):this.emit("change",{account:getAddress$1($t[0])})},this.onChainChanged=$t=>{const At=normalizeChainId($t),Bt=this.isChainUnsupported(At);this.emit("change",{chain:{id:At,unsupported:Bt}})},this.onDisconnect=async $t=>{var At;$t.code===1013&&await this.getProvider()&&await this.getAccount()||(this.emit("disconnect"),this.options.shimDisconnect&&((At=this.storage)==null||At.removeItem(this.shimDisconnectKey)))};const Ct=yt.getProvider();if(typeof yt.name=="string")this.name=yt.name;else if(Ct){const $t=getInjectedName(Ct);yt.name?this.name=yt.name($t):typeof $t=="string"?this.name=$t:this.name=$t[0]}else this.name="Injected";this.ready=!!Ct}async connect({chainId:ht}={}){var Et;try{const yt=await this.getProvider();if(!yt)throw new ConnectorNotFoundError;yt.on&&(yt.on("accountsChanged",this.onAccountsChanged),yt.on("chainChanged",this.onChainChanged),yt.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});const Ct=await yt.request({method:"eth_requestAccounts"}),$t=getAddress$1(Ct[0]);let At=await this.getChainId(),Bt=this.isChainUnsupported(At);return ht&&At!==ht&&(At=(await this.switchChain(ht)).id,Bt=this.isChainUnsupported(At)),this.options.shimDisconnect&&((Et=this.storage)==null||Et.setItem(this.shimDisconnectKey,!0)),{account:$t,chain:{id:At,unsupported:Bt}}}catch(yt){throw this.isUserRejectedRequestError(yt)?new UserRejectedRequestError(yt):yt.code===-32002?new ResourceUnavailableRpcError(yt):yt}}async disconnect(){var Et;const ht=await this.getProvider();ht!=null&&ht.removeListener&&(ht.removeListener("accountsChanged",this.onAccountsChanged),ht.removeListener("chainChanged",this.onChainChanged),ht.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&((Et=this.storage)==null||Et.removeItem(this.shimDisconnectKey)))}async getAccount(){const ht=await this.getProvider();if(!ht)throw new ConnectorNotFoundError;const Et=await ht.request({method:"eth_accounts"});return getAddress$1(Et[0])}async getChainId(){const ht=await this.getProvider();if(!ht)throw new ConnectorNotFoundError;return ht.request({method:"eth_chainId"}).then(normalizeChainId)}async getProvider(){const ht=this.options.getProvider();return ht&&__privateSet$1(this,_provider$2,ht),__privateGet$1(this,_provider$2)}async getWalletClient({chainId:ht}={}){const[Et,yt]=await Promise.all([this.getProvider(),this.getAccount()]),Ct=this.chains.find($t=>$t.id===ht);if(!Et)throw new Error("provider is required.");return createWalletClient({account:yt,chain:Ct,transport:custom(Et)})}async isAuthorized(){var ht;try{if(this.options.shimDisconnect&&!((ht=this.storage)!=null&&ht.getItem(this.shimDisconnectKey)))return!1;if(!await this.getProvider())throw new ConnectorNotFoundError;return!!await this.getAccount()}catch{return!1}}async switchChain(ht){var Ct,$t,At;const Et=await this.getProvider();if(!Et)throw new ConnectorNotFoundError;const yt=numberToHex(ht);try{return await Promise.all([Et.request({method:"wallet_switchEthereumChain",params:[{chainId:yt}]}),new Promise(Bt=>this.on("change",({chain:Dt})=>{(Dt==null?void 0:Dt.id)===ht&&Bt()}))]),this.chains.find(Bt=>Bt.id===ht)??{id:ht,name:`Chain ${yt}`,network:`${yt}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(Bt){const Dt=this.chains.find(Ft=>Ft.id===ht);if(!Dt)throw new ChainNotConfiguredForConnectorError({chainId:ht,connectorId:this.id});if(Bt.code===4902||(($t=(Ct=Bt==null?void 0:Bt.data)==null?void 0:Ct.originalError)==null?void 0:$t.code)===4902)try{if(await Et.request({method:"wallet_addEthereumChain",params:[{chainId:yt,chainName:Dt.name,nativeCurrency:Dt.nativeCurrency,rpcUrls:[((At=Dt.rpcUrls.public)==null?void 0:At.http[0])??""],blockExplorerUrls:this.getBlockExplorerUrls(Dt)}]}),await this.getChainId()!==ht)throw new UserRejectedRequestError(new Error("User rejected switch after adding network."));return Dt}catch(Ft){throw new UserRejectedRequestError(Ft)}throw this.isUserRejectedRequestError(Bt)?new UserRejectedRequestError(Bt):new SwitchChainError(Bt)}}async watchAsset({address:ht,decimals:Et=18,image:yt,symbol:Ct}){const $t=await this.getProvider();if(!$t)throw new ConnectorNotFoundError;return $t.request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:ht,decimals:Et,image:yt,symbol:Ct}}})}isUserRejectedRequestError(ht){return ht.code===4001}};_provider$2=new WeakMap;var __accessCheck=(ht,Et,yt)=>{if(!Et.has(ht))throw TypeError("Cannot "+yt)},__privateGet=(ht,Et,yt)=>(__accessCheck(ht,Et,"read from private field"),Et.get(ht)),__privateAdd=(ht,Et,yt)=>{if(Et.has(ht))throw TypeError("Cannot add the same private member more than once");Et instanceof WeakSet?Et.add(ht):Et.set(ht,yt)},__privateSet=(ht,Et,yt,Ct)=>(__accessCheck(ht,Et,"write to private field"),Et.set(ht,yt),yt),__privateMethod=(ht,Et,yt)=>(__accessCheck(ht,Et,"access private method"),yt),define_import_meta_env_default$1={VITE_APP_ENV:"prod",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const subscribeWithSelectorImpl=ht=>(Et,yt,Ct)=>{const $t=Ct.subscribe;return Ct.subscribe=(Bt,Dt,Ft)=>{let kt=Bt;if(Dt){const Mt=(Ft==null?void 0:Ft.equalityFn)||Object.is;let Nt=Bt(Ct.getState());kt=jt=>{const zt=Bt(jt);if(!Mt(Nt,zt)){const Vt=Nt;Dt(Nt=zt,Vt)}},Ft!=null&&Ft.fireImmediately&&Dt(Nt,Nt)}return $t(kt)},ht(Et,yt,Ct)},subscribeWithSelector=subscribeWithSelectorImpl;function createJSONStorage(ht,Et){let yt;try{yt=ht()}catch{return}return{getItem:$t=>{var At;const Bt=Ft=>Ft===null?null:JSON.parse(Ft,void 0),Dt=(At=yt.getItem($t))!=null?At:null;return Dt instanceof Promise?Dt.then(Bt):Bt(Dt)},setItem:($t,At)=>yt.setItem($t,JSON.stringify(At,void 0)),removeItem:$t=>yt.removeItem($t)}}const toThenable=ht=>Et=>{try{const yt=ht(Et);return yt instanceof Promise?yt:{then(Ct){return toThenable(Ct)(yt)},catch(Ct){return this}}}catch(yt){return{then(Ct){return this},catch(Ct){return toThenable(Ct)(yt)}}}},oldImpl=(ht,Et)=>(yt,Ct,$t)=>{let At={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:Xt=>Xt,version:0,merge:(Xt,Qt)=>({...Qt,...Xt}),...Et},Bt=!1;const Dt=new Set,Ft=new Set;let kt;try{kt=At.getStorage()}catch{}if(!kt)return ht((...Xt)=>{console.warn(`[zustand persist middleware] Unable to update item '${At.name}', the given storage is currently unavailable.`),yt(...Xt)},Ct,$t);const Mt=toThenable(At.serialize),Nt=()=>{const Xt=At.partialize({...Ct()});let Qt;const Zt=Mt({state:Xt,version:At.version}).then(dr=>kt.setItem(At.name,dr)).catch(dr=>{Qt=dr});if(Qt)throw Qt;return Zt},jt=$t.setState;$t.setState=(Xt,Qt)=>{jt(Xt,Qt),Nt()};const zt=ht((...Xt)=>{yt(...Xt),Nt()},Ct,$t);let Vt;const Kt=()=>{var Xt;if(!kt)return;Bt=!1,Dt.forEach(Zt=>Zt(Ct()));const Qt=((Xt=At.onRehydrateStorage)==null?void 0:Xt.call(At,Ct()))||void 0;return toThenable(kt.getItem.bind(kt))(At.name).then(Zt=>{if(Zt)return At.deserialize(Zt)}).then(Zt=>{if(Zt)if(typeof Zt.version=="number"&&Zt.version!==At.version){if(At.migrate)return At.migrate(Zt.state,Zt.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return Zt.state}).then(Zt=>{var dr;return Vt=At.merge(Zt,(dr=Ct())!=null?dr:zt),yt(Vt,!0),Nt()}).then(()=>{Qt==null||Qt(Vt,void 0),Bt=!0,Ft.forEach(Zt=>Zt(Vt))}).catch(Zt=>{Qt==null||Qt(void 0,Zt)})};return $t.persist={setOptions:Xt=>{At={...At,...Xt},Xt.getStorage&&(kt=Xt.getStorage())},clearStorage:()=>{kt==null||kt.removeItem(At.name)},getOptions:()=>At,rehydrate:()=>Kt(),hasHydrated:()=>Bt,onHydrate:Xt=>(Dt.add(Xt),()=>{Dt.delete(Xt)}),onFinishHydration:Xt=>(Ft.add(Xt),()=>{Ft.delete(Xt)})},Kt(),Vt||zt},newImpl=(ht,Et)=>(yt,Ct,$t)=>{let At={storage:createJSONStorage(()=>localStorage),partialize:Kt=>Kt,version:0,merge:(Kt,Xt)=>({...Xt,...Kt}),...Et},Bt=!1;const Dt=new Set,Ft=new Set;let kt=At.storage;if(!kt)return ht((...Kt)=>{console.warn(`[zustand persist middleware] Unable to update item '${At.name}', the given storage is currently unavailable.`),yt(...Kt)},Ct,$t);const Mt=()=>{const Kt=At.partialize({...Ct()});return kt.setItem(At.name,{state:Kt,version:At.version})},Nt=$t.setState;$t.setState=(Kt,Xt)=>{Nt(Kt,Xt),Mt()};const jt=ht((...Kt)=>{yt(...Kt),Mt()},Ct,$t);$t.getInitialState=()=>jt;let zt;const Vt=()=>{var Kt,Xt;if(!kt)return;Bt=!1,Dt.forEach(Zt=>{var dr;return Zt((dr=Ct())!=null?dr:jt)});const Qt=((Xt=At.onRehydrateStorage)==null?void 0:Xt.call(At,(Kt=Ct())!=null?Kt:jt))||void 0;return toThenable(kt.getItem.bind(kt))(At.name).then(Zt=>{if(Zt)if(typeof Zt.version=="number"&&Zt.version!==At.version){if(At.migrate)return At.migrate(Zt.state,Zt.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return Zt.state}).then(Zt=>{var dr;return zt=At.merge(Zt,(dr=Ct())!=null?dr:jt),yt(zt,!0),Mt()}).then(()=>{Qt==null||Qt(zt,void 0),zt=Ct(),Bt=!0,Ft.forEach(Zt=>Zt(zt))}).catch(Zt=>{Qt==null||Qt(void 0,Zt)})};return $t.persist={setOptions:Kt=>{At={...At,...Kt},Kt.storage&&(kt=Kt.storage)},clearStorage:()=>{kt==null||kt.removeItem(At.name)},getOptions:()=>At,rehydrate:()=>Vt(),hasHydrated:()=>Bt,onHydrate:Kt=>(Dt.add(Kt),()=>{Dt.delete(Kt)}),onFinishHydration:Kt=>(Ft.add(Kt),()=>{Ft.delete(Kt)})},At.skipHydration||Vt(),zt||jt},persistImpl=(ht,Et)=>"getStorage"in Et||"serialize"in Et||"deserialize"in Et?((define_import_meta_env_default$1?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),oldImpl(ht,Et)):newImpl(ht,Et),persist=persistImpl;var define_import_meta_env_default={VITE_APP_ENV:"prod",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const createStoreImpl=ht=>{let Et;const yt=new Set,Ct=(Mt,Nt)=>{const jt=typeof Mt=="function"?Mt(Et):Mt;if(!Object.is(jt,Et)){const zt=Et;Et=Nt??(typeof jt!="object"||jt===null)?jt:Object.assign({},Et,jt),yt.forEach(Vt=>Vt(Et,zt))}},$t=()=>Et,Ft={setState:Ct,getState:$t,getInitialState:()=>kt,subscribe:Mt=>(yt.add(Mt),()=>yt.delete(Mt)),destroy:()=>{(define_import_meta_env_default?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),yt.clear()}},kt=Et=ht(Ct,$t,Ft);return Ft},createStore=ht=>ht?createStoreImpl(ht):createStoreImpl;function shallow$1(ht,Et){if(Object.is(ht,Et))return!0;if(typeof ht!="object"||ht===null||typeof Et!="object"||Et===null)return!1;if(ht instanceof Map&&Et instanceof Map){if(ht.size!==Et.size)return!1;for(const[Ct,$t]of ht)if(!Object.is($t,Et.get(Ct)))return!1;return!0}if(ht instanceof Set&&Et instanceof Set){if(ht.size!==Et.size)return!1;for(const Ct of ht)if(!Et.has(Ct))return!1;return!0}const yt=Object.keys(ht);if(yt.length!==Object.keys(Et).length)return!1;for(const Ct of yt)if(!Object.prototype.hasOwnProperty.call(Et,Ct)||!Object.is(ht[Ct],Et[Ct]))return!1;return!0}function configureChains(ht,Et,{batch:yt={multicall:{wait:32}},pollingInterval:Ct=4e3,rank:$t,retryCount:At,retryDelay:Bt,stallTimeout:Dt}={}){if(!ht.length)throw new Error("must have at least one chain");let Ft=[];const kt={},Mt={};for(const Nt of ht){let jt=!1;for(const zt of Et){const Vt=zt(Nt);Vt&&(jt=!0,Ft.some(({id:Kt})=>Kt===Nt.id)||(Ft=[...Ft,Vt.chain]),kt[Nt.id]=[...kt[Nt.id]||[],...Vt.rpcUrls.http],Vt.rpcUrls.webSocket&&(Mt[Nt.id]=[...Mt[Nt.id]||[],...Vt.rpcUrls.webSocket]))}if(!jt)throw new Error([`Could not find valid provider configuration for chain "${Nt.name}".
`,"You may need to add `jsonRpcProvider` to `configureChains` with the chain's RPC URLs.","Read more: https://wagmi.sh/core/providers/jsonRpc"].join(`
`))}return{chains:Ft,publicClient:({chainId:Nt})=>{const jt=Ft.find(Kt=>Kt.id===Nt)??ht[0],zt=kt[jt.id];if(!zt||!zt[0])throw new Error(`No providers configured for chain "${jt.id}"`);const Vt=createPublicClient({batch:yt,chain:jt,transport:fallback(zt.map(Kt=>http(Kt,{timeout:Dt})),{rank:$t,retryCount:At,retryDelay:Bt}),pollingInterval:Ct});return Object.assign(Vt,{chains:Ft})},webSocketPublicClient:({chainId:Nt})=>{const jt=Ft.find(Kt=>Kt.id===Nt)??ht[0],zt=Mt[jt.id];if(!zt||!zt[0])return;const Vt=createPublicClient({batch:yt,chain:jt,transport:fallback(zt.map(Kt=>webSocket(Kt,{timeout:Dt})),{rank:$t,retryCount:At,retryDelay:Bt}),pollingInterval:Ct});return Object.assign(Vt,{chains:Ft})}}}var ChainMismatchError=class extends Error{constructor({activeChain:ht,targetChain:Et}){super(`Chain mismatch: Expected "${Et}", received "${ht}".`),this.name="ChainMismatchError"}},ChainNotConfiguredError=class extends Error{constructor({chainId:ht,connectorId:Et}){super(`Chain "${ht}" not configured${Et?` for connector "${Et}"`:""}.`),this.name="ChainNotConfigured"}},ConnectorAlreadyConnectedError=class extends Error{constructor(){super(...arguments),this.name="ConnectorAlreadyConnectedError",this.message="Connector already connected"}},ConfigChainsNotFound=class extends Error{constructor(){super(...arguments),this.name="ConfigChainsNotFound",this.message="No chains were found on the wagmi config. Some functions that require a chain may not work."}},SwitchChainNotSupportedError=class extends Error{constructor({connector:ht}){super(`"${ht.name}" does not support programmatic chain switching.`),this.name="SwitchChainNotSupportedError"}};function deepEqual$1(ht,Et){if(ht===Et)return!0;if(ht&&Et&&typeof ht=="object"&&typeof Et=="object"){if(ht.constructor!==Et.constructor)return!1;let yt,Ct;if(Array.isArray(ht)&&Array.isArray(Et)){if(yt=ht.length,yt!=Et.length)return!1;for(Ct=yt;Ct--!==0;)if(!deepEqual$1(ht[Ct],Et[Ct]))return!1;return!0}if(ht.valueOf!==Object.prototype.valueOf)return ht.valueOf()===Et.valueOf();if(ht.toString!==Object.prototype.toString)return ht.toString()===Et.toString();const $t=Object.keys(ht);if(yt=$t.length,yt!==Object.keys(Et).length)return!1;for(Ct=yt;Ct--!==0;)if(!Object.prototype.hasOwnProperty.call(Et,$t[Ct]))return!1;for(Ct=yt;Ct--!==0;){const At=$t[Ct];if(At&&!deepEqual$1(ht[At],Et[At]))return!1}return!0}return ht!==ht&&Et!==Et}var findAndReplace=(ht,{find:Et,replace:yt})=>ht&&Et(ht)?yt(ht):typeof ht!="object"?ht:Array.isArray(ht)?ht.map(Ct=>findAndReplace(Ct,{find:Et,replace:yt})):ht instanceof Object?Object.entries(ht).reduce((Ct,[$t,At])=>({...Ct,[$t]:findAndReplace(At,{find:Et,replace:yt})}),{}):ht;function deserialize(ht){const Et=JSON.parse(ht);return findAndReplace(Et,{find:Ct=>typeof Ct=="string"&&Ct.startsWith("#bigint."),replace:Ct=>BigInt(Ct.replace("#bigint.",""))})}function getUnit(ht){return typeof ht=="number"?ht:ht==="wei"?0:Math.abs(weiUnits[ht])}function getReferenceKey(ht,Et){return ht.slice(0,Et).join(".")||"."}function getCutoff(ht,Et){const{length:yt}=ht;for(let Ct=0;Ct<yt;++Ct)if(ht[Ct]===Et)return Ct+1;return 0}function createReplacer(ht,Et){const yt=typeof ht=="function",Ct=typeof Et=="function",$t=[],At=[];return function(Dt,Ft){if(typeof Ft=="object")if($t.length){const kt=getCutoff($t,this);kt===0?$t[$t.length]=this:($t.splice(kt),At.splice(kt)),At[At.length]=Dt;const Mt=getCutoff($t,Ft);if(Mt!==0)return Ct?Et.call(this,Dt,Ft,getReferenceKey(At,Mt)):`[ref=${getReferenceKey(At,Mt)}]`}else $t[0]=Ft,At[0]=Dt;return yt?ht.call(this,Dt,Ft):Ft}}function serialize$1(ht,Et,yt,Ct){return JSON.stringify(ht,createReplacer(($t,At)=>{const Bt=typeof At=="bigint"?`#bigint.${At.toString()}`:At;return(Et==null?void 0:Et($t,Bt))||Bt},Ct),yt??void 0)}var noopStorage={getItem:ht=>"",setItem:(ht,Et)=>null,removeItem:ht=>null};function createStorage({deserialize:ht=deserialize,key:Et="wagmi",serialize:yt=serialize$1,storage:Ct}){return{...Ct,getItem:($t,At=null)=>{const Bt=Ct.getItem(`${Et}.${$t}`);try{return Bt?ht(Bt):At}catch(Dt){return console.warn(Dt),At}},setItem:($t,At)=>{if(At===null)Ct.removeItem(`${Et}.${$t}`);else try{Ct.setItem(`${Et}.${$t}`,yt(At))}catch(Bt){console.error(Bt)}},removeItem:$t=>Ct.removeItem(`${Et}.${$t}`)}}var storeKey="store",_isAutoConnecting,_lastUsedConnector,_addEffects,addEffects_fn,Config=class{constructor({autoConnect:ht=!1,connectors:Et=[new InjectedConnector],publicClient:yt,storage:Ct=createStorage({storage:typeof window<"u"?window.localStorage:noopStorage}),logger:$t={warn:console.warn},webSocketPublicClient:At}){var kt,Mt;__privateAdd(this,_addEffects),this.publicClients=new Map,this.webSocketPublicClients=new Map,__privateAdd(this,_isAutoConnecting,void 0),__privateAdd(this,_lastUsedConnector,void 0),this.args={autoConnect:ht,connectors:Et,logger:$t,publicClient:yt,storage:Ct,webSocketPublicClient:At};let Bt="disconnected",Dt;if(ht)try{const Nt=Ct.getItem(storeKey),jt=(kt=Nt==null?void 0:Nt.state)==null?void 0:kt.data;Bt=jt!=null&&jt.account?"reconnecting":"connecting",Dt=(Mt=jt==null?void 0:jt.chain)==null?void 0:Mt.id}catch{}const Ft=typeof Et=="function"?Et():Et;Ft.forEach(Nt=>Nt.setStorage(Ct)),this.store=createStore(subscribeWithSelector(persist(()=>({connectors:Ft,publicClient:this.getPublicClient({chainId:Dt}),status:Bt,webSocketPublicClient:this.getWebSocketPublicClient({chainId:Dt})}),{name:storeKey,storage:Ct,partialize:Nt=>{var jt,zt;return{...ht&&{data:{account:(jt=Nt==null?void 0:Nt.data)==null?void 0:jt.account,chain:(zt=Nt==null?void 0:Nt.data)==null?void 0:zt.chain}},chains:Nt==null?void 0:Nt.chains}},version:2}))),this.storage=Ct,__privateSet(this,_lastUsedConnector,Ct==null?void 0:Ct.getItem("wallet")),__privateMethod(this,_addEffects,addEffects_fn).call(this),ht&&typeof window<"u"&&setTimeout(async()=>await this.autoConnect(),0)}get chains(){return this.store.getState().chains}get connectors(){return this.store.getState().connectors}get connector(){return this.store.getState().connector}get data(){return this.store.getState().data}get error(){return this.store.getState().error}get lastUsedChainId(){var ht,Et;return(Et=(ht=this.data)==null?void 0:ht.chain)==null?void 0:Et.id}get publicClient(){return this.store.getState().publicClient}get status(){return this.store.getState().status}get subscribe(){return this.store.subscribe}get webSocketPublicClient(){return this.store.getState().webSocketPublicClient}setState(ht){const Et=typeof ht=="function"?ht(this.store.getState()):ht;this.store.setState(Et,!0)}clearState(){this.setState(ht=>({...ht,chains:void 0,connector:void 0,data:void 0,error:void 0,status:"disconnected"}))}async destroy(){var ht,Et;this.connector&&await((Et=(ht=this.connector).disconnect)==null?void 0:Et.call(ht)),__privateSet(this,_isAutoConnecting,!1),this.clearState(),this.store.destroy()}async autoConnect(){if(__privateGet(this,_isAutoConnecting))return;__privateSet(this,_isAutoConnecting,!0),this.setState(yt=>{var Ct;return{...yt,status:(Ct=yt.data)!=null&&Ct.account?"reconnecting":"connecting"}});const ht=__privateGet(this,_lastUsedConnector)?[...this.connectors].sort(yt=>yt.id===__privateGet(this,_lastUsedConnector)?-1:1):this.connectors;let Et=!1;for(const yt of ht){if(!yt.ready||!yt.isAuthorized||!await yt.isAuthorized())continue;const $t=await yt.connect();this.setState(At=>({...At,connector:yt,chains:yt==null?void 0:yt.chains,data:$t,status:"connected"})),Et=!0;break}return Et||this.setState(yt=>({...yt,data:void 0,status:"disconnected"})),__privateSet(this,_isAutoConnecting,!1),this.data}setConnectors(ht){this.args={...this.args,connectors:ht};const Et=typeof ht=="function"?ht():ht;Et.forEach(yt=>yt.setStorage(this.args.storage)),this.setState(yt=>({...yt,connectors:Et}))}getPublicClient({chainId:ht}={}){let Et=this.publicClients.get(-1);if(Et&&(Et==null?void 0:Et.chain.id)===ht||(Et=this.publicClients.get(ht??-1),Et))return Et;const{publicClient:yt}=this.args;return Et=typeof yt=="function"?yt({chainId:ht}):yt,this.publicClients.set(ht??-1,Et),Et}setPublicClient(ht){var yt,Ct;const Et=(Ct=(yt=this.data)==null?void 0:yt.chain)==null?void 0:Ct.id;this.args={...this.args,publicClient:ht},this.publicClients.clear(),this.setState($t=>({...$t,publicClient:this.getPublicClient({chainId:Et})}))}getWebSocketPublicClient({chainId:ht}={}){let Et=this.webSocketPublicClients.get(-1);if(Et&&(Et==null?void 0:Et.chain.id)===ht||(Et=this.webSocketPublicClients.get(ht??-1),Et))return Et;const{webSocketPublicClient:yt}=this.args;return Et=typeof yt=="function"?yt({chainId:ht}):yt,Et&&this.webSocketPublicClients.set(ht??-1,Et),Et}setWebSocketPublicClient(ht){var yt,Ct;const Et=(Ct=(yt=this.data)==null?void 0:yt.chain)==null?void 0:Ct.id;this.args={...this.args,webSocketPublicClient:ht},this.webSocketPublicClients.clear(),this.setState($t=>({...$t,webSocketPublicClient:this.getWebSocketPublicClient({chainId:Et})}))}setLastUsedConnector(ht=null){var Et;(Et=this.storage)==null||Et.setItem("wallet",ht)}};_isAutoConnecting=new WeakMap;_lastUsedConnector=new WeakMap;_addEffects=new WeakSet;addEffects_fn=function(){const ht=Dt=>{this.setState(Ft=>({...Ft,data:{...Ft.data,...Dt}}))},Et=()=>{this.clearState()},yt=Dt=>{this.setState(Ft=>({...Ft,error:Dt}))};this.store.subscribe(({connector:Dt})=>Dt,(Dt,Ft)=>{var kt,Mt,Nt,jt,zt,Vt;(kt=Ft==null?void 0:Ft.off)==null||kt.call(Ft,"change",ht),(Mt=Ft==null?void 0:Ft.off)==null||Mt.call(Ft,"disconnect",Et),(Nt=Ft==null?void 0:Ft.off)==null||Nt.call(Ft,"error",yt),Dt&&((jt=Dt.on)==null||jt.call(Dt,"change",ht),(zt=Dt.on)==null||zt.call(Dt,"disconnect",Et),(Vt=Dt.on)==null||Vt.call(Dt,"error",yt))});const{publicClient:Ct,webSocketPublicClient:$t}=this.args;(typeof Ct=="function"||typeof $t=="function")&&this.store.subscribe(({data:Dt})=>{var Ft;return(Ft=Dt==null?void 0:Dt.chain)==null?void 0:Ft.id},Dt=>{this.setState(Ft=>({...Ft,publicClient:this.getPublicClient({chainId:Dt}),webSocketPublicClient:this.getWebSocketPublicClient({chainId:Dt})}))})};var config$2;function createConfig$1(ht){const Et=new Config(ht);return config$2=Et,Et}function getConfig(){if(!config$2)throw new Error("No wagmi config found. Ensure you have set up a config: https://wagmi.sh/react/config");return config$2}async function connect$1({chainId:ht,connector:Et}){const yt=getConfig(),Ct=yt.connector;if(Ct&&Et.id===Ct.id)throw new ConnectorAlreadyConnectedError;try{yt.setState(At=>({...At,status:"connecting"}));const $t=await Et.connect({chainId:ht});return yt.setLastUsedConnector(Et.id),yt.setState(At=>({...At,connector:Et,chains:Et==null?void 0:Et.chains,data:$t,status:"connected"})),yt.storage.setItem("connected",!0),{...$t,connector:Et}}catch($t){throw yt.setState(At=>({...At,status:At.connector?"connected":"disconnected"})),$t}}async function disconnect(){const ht=getConfig();ht.connector&&await ht.connector.disconnect(),ht.clearState(),ht.storage.removeItem("connected")}var erc20ABI=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}],erc20ABI_bytes32=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{name:"",type:"bytes32"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{name:"",type:"bytes32"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}];function getPublicClient({chainId:ht}={}){const Et=getConfig();return ht&&Et.getPublicClient({chainId:ht})||Et.publicClient}async function getWalletClient({chainId:ht}={}){var Ct,$t;return await(($t=(Ct=getConfig().connector)==null?void 0:Ct.getWalletClient)==null?void 0:$t.call(Ct,{chainId:ht}))||null}function getWebSocketPublicClient({chainId:ht}={}){const Et=getConfig();return ht&&Et.getWebSocketPublicClient({chainId:ht})||Et.webSocketPublicClient}function watchPublicClient(ht,Et){const yt=getConfig(),Ct=async()=>Et(getPublicClient(ht));return yt.subscribe(({publicClient:At})=>At,Ct)}function watchWalletClient({chainId:ht},Et){const yt=getConfig(),Ct=async({chainId:At})=>{if(ht&&At&&ht!==At)return;const Bt=await getWalletClient({chainId:ht});return getConfig().connector?Et(Bt):Et(null)};return yt.subscribe(({data:At,connector:Bt})=>{var Dt;return{account:At==null?void 0:At.account,chainId:(Dt=At==null?void 0:At.chain)==null?void 0:Dt.id,connector:Bt}},Ct,{equalityFn:shallow$1})}function watchWebSocketPublicClient(ht,Et){const yt=getConfig(),Ct=async()=>Et(getWebSocketPublicClient(ht));return yt.subscribe(({webSocketPublicClient:At})=>At,Ct)}async function multicall({chainId:ht,contracts:Et,blockNumber:yt,blockTag:Ct,...$t}){const At=getPublicClient({chainId:ht});if(!At.chains)throw new ConfigChainsNotFound;if(ht&&At.chain.id!==ht)throw new ChainNotConfiguredError({chainId:ht});return At.multicall({allowFailure:$t.allowFailure??!0,blockNumber:yt,blockTag:Ct,contracts:Et})}async function readContract({address:ht,account:Et,chainId:yt,abi:Ct,args:$t,functionName:At,blockNumber:Bt,blockTag:Dt}){return getPublicClient({chainId:yt}).readContract({abi:Ct,address:ht,account:Et,functionName:At,args:$t,blockNumber:Bt,blockTag:Dt})}async function readContracts({contracts:ht,blockNumber:Et,blockTag:yt,...Ct}){const{allowFailure:$t=!0}=Ct;try{const At=getPublicClient(),Bt=ht.reduce((Mt,Nt,jt)=>{const zt=Nt.chainId??At.chain.id;return{...Mt,[zt]:[...Mt[zt]||[],{contract:Nt,index:jt}]}},{}),Dt=()=>Object.entries(Bt).map(([Mt,Nt])=>multicall({allowFailure:$t,chainId:parseInt(Mt),contracts:Nt.map(({contract:jt})=>jt),blockNumber:Et,blockTag:yt})),Ft=(await Promise.all(Dt())).flat(),kt=Object.values(Bt).flatMap(Mt=>Mt.map(({index:Nt})=>Nt));return Ft.reduce((Mt,Nt,jt)=>(Mt&&(Mt[kt[jt]]=Nt),Mt),[])}catch(At){if(At instanceof ContractFunctionExecutionError)throw At;const Bt=()=>ht.map(Dt=>readContract({...Dt,blockNumber:Et,blockTag:yt}));return $t?(await Promise.allSettled(Bt())).map(Dt=>Dt.status==="fulfilled"?{result:Dt.value,status:"success"}:{error:Dt.reason,result:void 0,status:"failure"}):await Promise.all(Bt())}}async function fetchBalance({address:ht,chainId:Et,formatUnits:yt,token:Ct}){const $t=getConfig(),At=getPublicClient({chainId:Et});if(Ct){const kt=async({abi:Mt})=>{const Nt={abi:Mt,address:Ct,chainId:Et},[jt,zt,Vt]=await readContracts({allowFailure:!1,contracts:[{...Nt,functionName:"balanceOf",args:[ht]},{...Nt,functionName:"decimals"},{...Nt,functionName:"symbol"}]});return{decimals:zt,formatted:formatUnits$1(jt??"0",getUnit(yt??zt)),symbol:Vt,value:jt}};try{return await kt({abi:erc20ABI})}catch(Mt){if(Mt instanceof ContractFunctionExecutionError){const{symbol:Nt,...jt}=await kt({abi:erc20ABI_bytes32});return{symbol:hexToString(trim$2(Nt,{dir:"right"})),...jt}}throw Mt}}const Bt=[...$t.publicClient.chains||[],...$t.chains??[]],Dt=await At.getBalance({address:ht}),Ft=Bt.find(kt=>kt.id===At.chain.id);return{decimals:(Ft==null?void 0:Ft.nativeCurrency.decimals)??18,formatted:formatUnits$1(Dt??"0",getUnit(yt??18)),symbol:(Ft==null?void 0:Ft.nativeCurrency.symbol)??"ETH",value:Dt}}function getAccount(){const{data:ht,connector:Et,status:yt}=getConfig();switch(yt){case"connected":return{address:ht==null?void 0:ht.account,connector:Et,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:yt};case"reconnecting":return{address:ht==null?void 0:ht.account,connector:Et,isConnected:!!(ht!=null&&ht.account),isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:yt};case"connecting":return{address:ht==null?void 0:ht.account,connector:Et,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:yt};case"disconnected":return{address:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:yt}}}function getNetwork(){var $t,At,Bt,Dt;const ht=getConfig(),Et=(At=($t=ht.data)==null?void 0:$t.chain)==null?void 0:At.id,yt=ht.chains??[],Ct=[...((Bt=ht.publicClient)==null?void 0:Bt.chains)||[],...yt].find(Ft=>Ft.id===Et)??{id:Et,name:`Chain ${Et}`,network:`${Et}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}};return{chain:Et?{...Ct,...(Dt=ht.data)==null?void 0:Dt.chain,id:Et}:void 0,chains:yt}}async function signMessage(ht){const Et=await getWalletClient();if(!Et)throw new ConnectorNotFoundError;return await Et.signMessage({message:ht.message})}async function switchNetwork({chainId:ht}){const{connector:Et}=getConfig();if(!Et)throw new ConnectorNotFoundError;if(!Et.switchChain)throw new SwitchChainNotSupportedError({connector:Et});return Et.switchChain(ht)}function watchAccount(ht,{selector:Et=yt=>yt}={}){const yt=getConfig(),Ct=()=>ht(getAccount());return yt.subscribe(({data:At,connector:Bt,status:Dt})=>Et({address:At==null?void 0:At.account,connector:Bt,status:Dt}),Ct,{equalityFn:shallow$1})}function watchNetwork(ht,{selector:Et=yt=>yt}={}){const yt=getConfig(),Ct=()=>ht(getNetwork());return yt.subscribe(({data:At,chains:Bt})=>{var Dt;return Et({chainId:(Dt=At==null?void 0:At.chain)==null?void 0:Dt.id,chains:Bt})},Ct,{equalityFn:shallow$1})}async function fetchEnsAddress({chainId:ht,name:Et}){const{normalize:yt}=await __vitePreload(async()=>{const{normalize:At}=await import("./index-BcN0R1K6.js");return{normalize:At}},[]),$t=await getPublicClient({chainId:ht}).getEnsAddress({name:yt(Et)});try{return $t==="0x0000000000000000000000000000000000000000"?null:$t?getAddress$1($t):null}catch{return null}}async function fetchEnsAvatar({name:ht,chainId:Et}){const{normalize:yt}=await __vitePreload(async()=>{const{normalize:At}=await import("./index-BcN0R1K6.js");return{normalize:At}},[]);return await getPublicClient({chainId:Et}).getEnsAvatar({name:yt(ht)})}async function fetchEnsName({address:ht,chainId:Et}){return getPublicClient({chainId:Et}).getEnsName({address:getAddress$1(ht)})}async function fetchBlockNumber({chainId:ht}={}){return await getPublicClient({chainId:ht}).getBlockNumber()}async function prepareSendTransaction({accessList:ht,account:Et,chainId:yt,data:Ct,gas:$t,gasPrice:At,maxFeePerGas:Bt,maxPriorityFeePerGas:Dt,nonce:Ft,to:kt,value:Mt,walletClient:Nt}){const jt=getPublicClient({chainId:yt}),zt=Nt??await getWalletClient({chainId:yt});if(!zt)throw new ConnectorNotFoundError;yt&&assertActiveChain({chainId:yt});const Vt=(kt&&!isAddress$1(kt)?await fetchEnsAddress({name:kt}):kt)||void 0;if(Vt&&!isAddress$1(Vt))throw new Error("Invalid address");const Kt=typeof $t>"u"?await jt.estimateGas({accessList:ht,account:zt.account,data:Ct,gas:$t??void 0,gasPrice:At,maxFeePerGas:Bt,maxPriorityFeePerGas:Dt,nonce:Ft,to:Vt,value:Mt}):$t||void 0;return{accessList:ht,account:Et,data:Ct,gas:Kt,gasPrice:At,maxFeePerGas:Bt,maxPriorityFeePerGas:Dt,mode:"prepared",nonce:Ft,to:Vt,value:Mt,...yt?{chainId:yt}:{}}}async function sendTransaction({accessList:ht,account:Et,chainId:yt,data:Ct,gas:$t,gasPrice:At,maxFeePerGas:Bt,maxPriorityFeePerGas:Dt,mode:Ft,nonce:kt,to:Mt,value:Nt}){const jt=await getWalletClient({chainId:yt});if(!jt)throw new ConnectorNotFoundError;yt&&assertActiveChain({chainId:yt});let zt;return Ft==="prepared"?zt={account:Et,accessList:ht,chain:null,data:Ct,gas:$t,gasPrice:At,maxFeePerGas:Bt,maxPriorityFeePerGas:Dt,nonce:kt,to:Mt,value:Nt}:zt=await prepareSendTransaction({accessList:ht,account:Et,chainId:yt,data:Ct,gas:$t||null,gasPrice:At,maxFeePerGas:Bt,maxPriorityFeePerGas:Dt,nonce:kt,to:Mt,value:Nt}),{hash:await jt.sendTransaction({...zt,chain:yt?{id:yt}:null})}}function assertActiveChain({chainId:ht}){var $t,At;const{chain:Et,chains:yt}=getNetwork(),Ct=Et==null?void 0:Et.id;if(Ct&&ht!==Ct)throw new ChainMismatchError({activeChain:(($t=yt.find(Bt=>Bt.id===Ct))==null?void 0:$t.name)??`Chain ${Ct}`,targetChain:((At=yt.find(Bt=>Bt.id===ht))==null?void 0:At.name)??`Chain ${ht}`})}var shim={exports:{}},useSyncExternalStoreShim_production_min={};/**
 * @license React
 * use-sync-external-store-shim.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var e$7=reactExports;function h$8(ht,Et){return ht===Et&&(ht!==0||1/ht===1/Et)||ht!==ht&&Et!==Et}var k$4=typeof Object.is=="function"?Object.is:h$8,l$a=e$7.useState,m$6=e$7.useEffect,n$9=e$7.useLayoutEffect,p$b=e$7.useDebugValue;function q$5(ht,Et){var yt=Et(),Ct=l$a({inst:{value:yt,getSnapshot:Et}}),$t=Ct[0].inst,At=Ct[1];return n$9(function(){$t.value=yt,$t.getSnapshot=Et,r$a($t)&&At({inst:$t})},[ht,yt,Et]),m$6(function(){return r$a($t)&&At({inst:$t}),ht(function(){r$a($t)&&At({inst:$t})})},[ht]),p$b(yt),yt}function r$a(ht){var Et=ht.getSnapshot;ht=ht.value;try{var yt=Et();return!k$4(ht,yt)}catch{return!0}}function t$d(ht,Et){return Et()}var u$d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?t$d:q$5;useSyncExternalStoreShim_production_min.useSyncExternalStore=e$7.useSyncExternalStore!==void 0?e$7.useSyncExternalStore:u$d;shim.exports=useSyncExternalStoreShim_production_min;var shimExports=shim.exports,withSelector={exports:{}},withSelector_production_min={};/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var h$7=reactExports,n$8=shimExports;function p$a(ht,Et){return ht===Et&&(ht!==0||1/ht===1/Et)||ht!==ht&&Et!==Et}var q$4=typeof Object.is=="function"?Object.is:p$a,r$9=n$8.useSyncExternalStore,t$c=h$7.useRef,u$c=h$7.useEffect,v$6=h$7.useMemo,w$5=h$7.useDebugValue;withSelector_production_min.useSyncExternalStoreWithSelector=function(ht,Et,yt,Ct,$t){var At=t$c(null);if(At.current===null){var Bt={hasValue:!1,value:null};At.current=Bt}else Bt=At.current;At=v$6(function(){function Ft(zt){if(!kt){if(kt=!0,Mt=zt,zt=Ct(zt),$t!==void 0&&Bt.hasValue){var Vt=Bt.value;if($t(Vt,zt))return Nt=Vt}return Nt=zt}if(Vt=Nt,q$4(Mt,zt))return Vt;var Kt=Ct(zt);return $t!==void 0&&$t(Vt,Kt)?Vt:(Mt=zt,Nt=Kt)}var kt=!1,Mt,Nt,jt=yt===void 0?null:yt;return[function(){return Ft(Et())},jt===null?void 0:function(){return Ft(jt())}]},[Et,yt,Ct,$t]);var Dt=r$9(ht,At[0],At[1]);return u$c(function(){Bt.hasValue=!0,Bt.value=Dt},[Dt]),w$5(Dt),Dt};withSelector.exports=withSelector_production_min;var withSelectorExports=withSelector.exports;function createConfig({queryClient:ht=new QueryClient({defaultOptions:{queries:{cacheTime:1e3*60*60*24,networkMode:"offlineFirst",refetchOnWindowFocus:!1,retry:0},mutations:{networkMode:"offlineFirst"}}}),storage:Et=createStorage({storage:typeof window<"u"&&window.localStorage?window.localStorage:noopStorage}),persister:yt=typeof window<"u"?createSyncStoragePersister({key:"cache",storage:Et,serialize:$t=>$t,deserialize:$t=>$t}):void 0,...Ct}){const $t=createConfig$1({...Ct,storage:Et});return yt&&persistQueryClient({queryClient:ht,persister:yt,dehydrateOptions:{shouldDehydrateQuery:At=>At.cacheTime!==0&&At.queryKey[0].persist!==!1}}),Object.assign($t,{queryClient:ht})}var Context$2=reactExports.createContext(void 0),queryClientContext=reactExports.createContext(void 0);function WagmiConfig({children:ht,config:Et}){return reactExports.createElement(Context$2.Provider,{children:reactExports.createElement(QueryClientProvider,{children:ht,client:Et.queryClient,context:queryClientContext}),value:Et})}function useConfig$1(){const ht=reactExports.useContext(Context$2);if(!ht)throw new Error(["`useConfig` must be used within `WagmiConfig`.\n","Read more: https://wagmi.sh/react/WagmiConfig"].join(`
`));return ht}var useSyncExternalStore2=shimExports.useSyncExternalStore;function isQueryKey(ht){return Array.isArray(ht)}function isPlainObject$5(ht){if(!hasObjectPrototype(ht))return!1;const Et=ht.constructor;if(typeof Et>"u")return!0;const yt=Et.prototype;return!(!hasObjectPrototype(yt)||!yt.hasOwnProperty("isPrototypeOf"))}function hasObjectPrototype(ht){return Object.prototype.toString.call(ht)==="[object Object]"}function parseQueryArgs(ht,Et,yt){return isQueryKey(ht)?typeof Et=="function"?{...yt,queryKey:ht,queryFn:Et}:{...Et,queryKey:ht}:ht}function queryKeyHashFn(ht){return JSON.stringify(ht,(Et,yt)=>isPlainObject$5(yt)?Object.keys(yt).sort().reduce((Ct,$t)=>(Ct[$t]=yt[$t],Ct),{}):typeof yt=="bigint"?yt.toString():yt)}function shouldThrowError(ht,Et){return typeof ht=="function"?ht(...Et):!!ht}function trackResult(ht,Et){const yt={};return Object.keys(ht).forEach(Ct=>{Object.defineProperty(yt,Ct,{configurable:!1,enumerable:!0,get:()=>(Et.trackedProps.add(Ct),ht[Ct])})}),yt}function useBaseQuery(ht,Et){const yt=useQueryClient({context:ht.context}),Ct=useIsRestoring(),$t=useQueryErrorResetBoundary(),At=yt.defaultQueryOptions({...ht,queryKeyHashFn});At._optimisticResults=Ct?"isRestoring":"optimistic",At.onError&&(At.onError=notifyManager.batchCalls(At.onError)),At.onSuccess&&(At.onSuccess=notifyManager.batchCalls(At.onSuccess)),At.onSettled&&(At.onSettled=notifyManager.batchCalls(At.onSettled)),At.suspense&&typeof At.staleTime!="number"&&(At.staleTime=1e3),(At.suspense||At.useErrorBoundary)&&($t.isReset()||(At.retryOnMount=!1));const[Bt]=reactExports.useState(()=>new Et(yt,At)),Dt=Bt.getOptimisticResult(At);if(useSyncExternalStore2(reactExports.useCallback(Nt=>Ct?()=>{}:Bt.subscribe(notifyManager.batchCalls(Nt)),[Bt,Ct]),()=>Bt.getCurrentResult(),()=>Bt.getCurrentResult()),reactExports.useEffect(()=>{$t.clearReset()},[$t]),reactExports.useEffect(()=>{Bt.setOptions(At,{listeners:!1})},[At,Bt]),At.suspense&&Dt.isLoading&&Dt.isFetching&&!Ct)throw Bt.fetchOptimistic(At).then(({data:Nt})=>{var jt,zt;(jt=At.onSuccess)==null||jt.call(At,Nt),(zt=At.onSettled)==null||zt.call(At,Nt,null)}).catch(Nt=>{var jt,zt;$t.clearReset(),(jt=At.onError)==null||jt.call(At,Nt),(zt=At.onSettled)==null||zt.call(At,void 0,Nt)});if(Dt.isError&&!$t.isReset()&&!Dt.isFetching&&shouldThrowError(At.useErrorBoundary,[Dt.error,Bt.getCurrentQuery()]))throw Dt.error;const Ft=Dt.status==="loading"&&Dt.fetchStatus==="idle"?"idle":Dt.status,kt=Ft==="idle",Mt=Ft==="loading"&&Dt.fetchStatus==="fetching";return{...Dt,defaultedOptions:At,isIdle:kt,isLoading:Mt,observer:Bt,status:Ft}}function useMutation(ht,Et,yt){const Ct=parseMutationArgs(ht,Et,yt);return useMutation$1({context:queryClientContext,...Ct})}function useQuery(ht,Et,yt){const Ct=parseQueryArgs(ht,Et,yt),$t=useBaseQuery({context:queryClientContext,...Ct},QueryObserver),At={data:$t.data,error:$t.error,fetchStatus:$t.fetchStatus,isError:$t.isError,isFetched:$t.isFetched,isFetchedAfterMount:$t.isFetchedAfterMount,isFetching:$t.isFetching,isIdle:$t.isIdle,isLoading:$t.isLoading,isRefetching:$t.isRefetching,isSuccess:$t.isSuccess,refetch:$t.refetch,status:$t.status,internal:{dataUpdatedAt:$t.dataUpdatedAt,errorUpdatedAt:$t.errorUpdatedAt,failureCount:$t.failureCount,isFetchedAfterMount:$t.isFetchedAfterMount,isLoadingError:$t.isLoadingError,isPaused:$t.isPaused,isPlaceholderData:$t.isPlaceholderData,isPreviousData:$t.isPreviousData,isRefetchError:$t.isRefetchError,isStale:$t.isStale,remove:$t.remove}};return $t.defaultedOptions.notifyOnChangeProps?At:trackResult(At,$t.observer)}var useQueryClient2=()=>useQueryClient({context:queryClientContext});function usePublicClient({chainId:ht}={}){return withSelectorExports.useSyncExternalStoreWithSelector(Et=>watchPublicClient({chainId:ht},Et),()=>getPublicClient({chainId:ht}),()=>getPublicClient({chainId:ht}),Et=>Et,(Et,yt)=>Et.uid===yt.uid)}function queryKey({chainId:ht}){return[{entity:"walletClient",chainId:ht,persist:!1}]}function queryFn({queryKey:[{chainId:ht}]}){return getWalletClient({chainId:ht})}function useWalletClient({chainId:ht,suspense:Et,onError:yt,onSettled:Ct,onSuccess:$t}={}){const{connector:At}=useAccount(),Bt=useChainId$1({chainId:ht}),Dt=useQuery(queryKey({chainId:Bt}),queryFn,{cacheTime:0,enabled:!!At,staleTime:1/0,suspense:Et,onError:yt,onSettled:Ct,onSuccess:$t}),Ft=useQueryClient2();return reactExports.useEffect(()=>watchWalletClient({chainId:Bt},Mt=>{Mt?Ft.invalidateQueries(queryKey({chainId:Bt})):Ft.removeQueries(queryKey({chainId:Bt}))}),[Ft,Bt]),Dt}function useWebSocketPublicClient({chainId:ht}={}){return withSelectorExports.useSyncExternalStoreWithSelector(Et=>watchWebSocketPublicClient({chainId:ht},Et),()=>getWebSocketPublicClient({chainId:ht}),()=>getWebSocketPublicClient({chainId:ht}),Et=>Et,(Et,yt)=>(Et==null?void 0:Et.uid)===(yt==null?void 0:yt.uid))}function useChainId$1({chainId:ht}={}){return usePublicClient({chainId:ht}).chain.id}function useForceUpdate$2(){const[,ht]=reactExports.useReducer(Et=>Et+1,0);return ht}function queryKey2({chainId:ht,scopeKey:Et}){return[{entity:"blockNumber",chainId:ht,scopeKey:Et}]}function queryFn2({queryKey:[{chainId:ht}]}){return fetchBlockNumber({chainId:ht})}function useBlockNumber({cacheTime:ht=0,chainId:Et,enabled:yt=!0,scopeKey:Ct,staleTime:$t,suspense:At,watch:Bt=!1,onBlock:Dt,onError:Ft,onSettled:kt,onSuccess:Mt}={}){const Nt=useChainId$1({chainId:Et}),jt=usePublicClient({chainId:Nt}),zt=useWebSocketPublicClient({chainId:Nt}),Vt=useQueryClient2();return reactExports.useEffect(()=>!yt||!Bt&&!Dt?void 0:(zt??jt).watchBlockNumber({onBlockNumber:Qt=>{Bt&&Vt.setQueryData(queryKey2({chainId:Nt,scopeKey:Ct}),Qt),Dt&&Dt(Qt)},emitOnBegin:!0}),[Nt,Ct,Dt,jt,Vt,Bt,zt,yt]),useQuery(queryKey2({scopeKey:Ct,chainId:Nt}),queryFn2,{cacheTime:ht,enabled:yt,staleTime:$t,suspense:At,onError:Ft,onSettled:kt,onSuccess:Mt})}function useInvalidateOnBlock({chainId:ht,enabled:Et,queryKey:yt}){const Ct=useQueryClient2(),$t=reactExports.useCallback(()=>Ct.invalidateQueries({queryKey:yt},{cancelRefetch:!1}),[Ct,yt]);useBlockNumber({chainId:ht,enabled:Et,onBlock:Et?$t:void 0,scopeKey:Et?void 0:"idle"})}var isPlainObject2=ht=>typeof ht=="object"&&!Array.isArray(ht);function useSyncExternalStoreWithTracked(ht,Et,yt=Et,Ct=deepEqual$1){const $t=reactExports.useRef([]),At=withSelectorExports.useSyncExternalStoreWithSelector(ht,Et,yt,Bt=>Bt,(Bt,Dt)=>{if(isPlainObject2(Bt)&&isPlainObject2(Dt)&&$t.current.length){for(const Ft of $t.current)if(!Ct(Bt[Ft],Dt[Ft]))return!1;return!0}return Ct(Bt,Dt)});if(isPlainObject2(At)){const Bt={...At};return Object.defineProperties(Bt,Object.entries(Bt).reduce((Dt,[Ft,kt])=>({...Dt,[Ft]:{configurable:!1,enumerable:!0,get:()=>($t.current.includes(Ft)||$t.current.push(Ft),kt)}}),{})),Bt}return At}function useAccount({onConnect:ht,onDisconnect:Et}={}){const yt=useConfig$1(),Ct=reactExports.useCallback(Dt=>watchAccount(Dt),[yt]),$t=useSyncExternalStoreWithTracked(Ct,getAccount),At=reactExports.useRef(),Bt=At.current;return reactExports.useEffect(()=>{(Bt==null?void 0:Bt.status)!=="connected"&&$t.status==="connected"&&(ht==null||ht({address:$t.address,connector:$t.connector,isReconnected:(Bt==null?void 0:Bt.status)==="reconnecting"||(Bt==null?void 0:Bt.status)===void 0})),(Bt==null?void 0:Bt.status)==="connected"&&$t.status==="disconnected"&&(Et==null||Et()),At.current=$t},[ht,Et,Bt,$t]),$t}function queryKey4({address:ht,chainId:Et,formatUnits:yt,scopeKey:Ct,token:$t}){return[{entity:"balance",address:ht,chainId:Et,formatUnits:yt,scopeKey:Ct,token:$t}]}function queryFn4({queryKey:[{address:ht,chainId:Et,formatUnits:yt,token:Ct}]}){if(!ht)throw new Error("address is required");return fetchBalance({address:ht,chainId:Et,formatUnits:yt,token:Ct})}function useBalance({address:ht,cacheTime:Et,chainId:yt,enabled:Ct=!0,formatUnits:$t,scopeKey:At,staleTime:Bt,suspense:Dt,token:Ft,watch:kt,onError:Mt,onSettled:Nt,onSuccess:jt}={}){const zt=useChainId$1({chainId:yt}),Vt=reactExports.useMemo(()=>queryKey4({address:ht,chainId:zt,formatUnits:$t,scopeKey:At,token:Ft}),[ht,zt,$t,At,Ft]),Kt=useQuery(Vt,queryFn4,{cacheTime:Et,enabled:!!(Ct&&ht),staleTime:Bt,suspense:Dt,onError:Mt,onSettled:Nt,onSuccess:jt});return useInvalidateOnBlock({chainId:zt,enabled:!!(Ct&&kt&&ht),queryKey:Vt}),Kt}var mutationKey=ht=>[{entity:"connect",...ht}],mutationFn=ht=>{const{connector:Et,chainId:yt}=ht;if(!Et)throw new Error("connector is required");return connect$1({connector:Et,chainId:yt})};function useConnect({chainId:ht,connector:Et,onError:yt,onMutate:Ct,onSettled:$t,onSuccess:At}={}){const Bt=useConfig$1(),{data:Dt,error:Ft,isError:kt,isIdle:Mt,isLoading:Nt,isSuccess:jt,mutate:zt,mutateAsync:Vt,reset:Kt,status:Xt,variables:Qt}=useMutation(mutationKey({connector:Et,chainId:ht}),mutationFn,{onError:yt,onMutate:Ct,onSettled:$t,onSuccess:At}),Zt=reactExports.useCallback(cr=>zt({chainId:(cr==null?void 0:cr.chainId)??ht,connector:(cr==null?void 0:cr.connector)??Et}),[ht,Et,zt]),dr=reactExports.useCallback(cr=>Vt({chainId:(cr==null?void 0:cr.chainId)??ht,connector:(cr==null?void 0:cr.connector)??Et}),[ht,Et,Vt]);return{connect:Zt,connectAsync:dr,connectors:Bt.connectors,data:Dt,error:Ft,isError:kt,isIdle:Mt,isLoading:Nt,isSuccess:jt,pendingConnector:Qt==null?void 0:Qt.connector,reset:Kt,status:Xt,variables:Qt}}var mutationKey2=[{entity:"disconnect"}],mutationFn2=()=>disconnect();function useDisconnect({onError:ht,onMutate:Et,onSettled:yt,onSuccess:Ct}={}){const{error:$t,isError:At,isIdle:Bt,isLoading:Dt,isSuccess:Ft,mutate:kt,mutateAsync:Mt,reset:Nt,status:jt}=useMutation(mutationKey2,mutationFn2,{...ht?{onError(zt,Vt,Kt){ht(zt,Kt)}}:{},onMutate:Et,...yt?{onSettled(zt,Vt,Kt,Xt){yt(Vt,Xt)}}:{},...Ct?{onSuccess(zt,Vt,Kt){Ct(Kt)}}:{}});return{disconnect:kt,disconnectAsync:Mt,error:$t,isError:At,isIdle:Bt,isLoading:Dt,isSuccess:Ft,reset:Nt,status:jt}}function useNetwork(){const ht=useConfig$1(),Et=reactExports.useCallback(yt=>watchNetwork(yt),[ht]);return useSyncExternalStoreWithTracked(Et,getNetwork)}var mutationKey3=ht=>[{entity:"signMessage",...ht}],mutationFn3=ht=>{const{message:Et}=ht;if(!Et)throw new Error("message is required");return signMessage({message:Et})};function useSignMessage({message:ht,onError:Et,onMutate:yt,onSettled:Ct,onSuccess:$t}={}){const{data:At,error:Bt,isError:Dt,isIdle:Ft,isLoading:kt,isSuccess:Mt,mutate:Nt,mutateAsync:jt,reset:zt,status:Vt,variables:Kt}=useMutation(mutationKey3({message:ht}),mutationFn3,{onError:Et,onMutate:yt,onSettled:Ct,onSuccess:$t}),Xt=reactExports.useCallback(Zt=>Nt(Zt||{message:ht}),[ht,Nt]),Qt=reactExports.useCallback(Zt=>jt(Zt||{message:ht}),[ht,jt]);return{data:At,error:Bt,isError:Dt,isIdle:Ft,isLoading:kt,isSuccess:Mt,reset:zt,signMessage:Xt,signMessageAsync:Qt,status:Vt,variables:Kt}}var mutationKey5=ht=>[{entity:"switchNetwork",...ht}],mutationFn5=ht=>{const{chainId:Et}=ht;if(!Et)throw new Error("chainId is required");return switchNetwork({chainId:Et})};function useSwitchNetwork({chainId:ht,throwForSwitchChainNotSupported:Et,onError:yt,onMutate:Ct,onSettled:$t,onSuccess:At}={}){var vr;const Bt=useConfig$1(),Dt=useForceUpdate$2(),{data:Ft,error:kt,isError:Mt,isIdle:Nt,isLoading:jt,isSuccess:zt,mutate:Vt,mutateAsync:Kt,reset:Xt,status:Qt,variables:Zt}=useMutation(mutationKey5({chainId:ht}),mutationFn5,{onError:yt,onMutate:Ct,onSettled:$t,onSuccess:At}),dr=reactExports.useCallback(yr=>Vt({chainId:yr??ht}),[ht,Vt]),cr=reactExports.useCallback(yr=>Kt({chainId:yr??ht}),[ht,Kt]);reactExports.useEffect(()=>Bt.subscribe(({chains:xr,connector:rr})=>({chains:xr,connector:rr}),Dt),[Bt,Dt]);let Er,pr;const gr=!!((vr=Bt.connector)!=null&&vr.switchChain);return(Et||gr)&&(Er=dr,pr=cr),{chains:Bt.chains??[],data:Ft,error:kt,isError:Mt,isIdle:Nt,isLoading:jt,isSuccess:zt,pendingChainId:Zt==null?void 0:Zt.chainId,reset:Xt,status:Qt,switchNetwork:Er,switchNetworkAsync:pr,variables:Zt}}function queryKey11({name:ht,chainId:Et,scopeKey:yt}){return[{entity:"ensAvatar",name:ht,chainId:Et,scopeKey:yt}]}function queryFn11({queryKey:[{name:ht,chainId:Et}]}){if(!ht)throw new Error("name is required");return fetchEnsAvatar({name:ht,chainId:Et})}function useEnsAvatar({cacheTime:ht,chainId:Et,enabled:yt=!0,name:Ct,scopeKey:$t,staleTime:At=1e3*60*60*24,suspense:Bt,onError:Dt,onSettled:Ft,onSuccess:kt}={}){const Mt=useChainId$1({chainId:Et});return useQuery(queryKey11({name:Ct,chainId:Mt,scopeKey:$t}),queryFn11,{cacheTime:ht,enabled:!!(yt&&Ct&&Mt),staleTime:At,suspense:Bt,onError:Dt,onSettled:Ft,onSuccess:kt})}function queryKey12({address:ht,chainId:Et,scopeKey:yt}){return[{entity:"ensName",address:ht,chainId:Et,scopeKey:yt}]}function queryFn12({queryKey:[{address:ht,chainId:Et}]}){if(!ht)throw new Error("address is required");return fetchEnsName({address:ht,chainId:Et})}function useEnsName({address:ht,cacheTime:Et,chainId:yt,enabled:Ct=!0,scopeKey:$t,staleTime:At=1e3*60*60*24,suspense:Bt,onError:Dt,onSettled:Ft,onSuccess:kt}={}){const Mt=useChainId$1({chainId:yt});return useQuery(queryKey12({address:ht,chainId:Mt,scopeKey:$t}),queryFn12,{cacheTime:Et,enabled:!!(Ct&&ht&&Mt),staleTime:At,suspense:Bt,onError:Dt,onSettled:Ft,onSuccess:kt})}var mutationKey7=ht=>[{entity:"sendTransaction",...ht}],mutationFn7=({accessList:ht,account:Et,chainId:yt,data:Ct,gas:$t,gasPrice:At,maxFeePerGas:Bt,maxPriorityFeePerGas:Dt,mode:Ft,nonce:kt,to:Mt,value:Nt})=>{if(!Mt)throw new Error("to is required.");return sendTransaction({accessList:ht,account:Et,chainId:yt,data:Ct,gas:$t,gasPrice:At,maxFeePerGas:Bt,maxPriorityFeePerGas:Dt,mode:Ft,nonce:kt,to:Mt,value:Nt})};function useSendTransaction({accessList:ht,account:Et,chainId:yt,data:Ct,gas:$t,gasPrice:At,maxFeePerGas:Bt,maxPriorityFeePerGas:Dt,mode:Ft,nonce:kt,to:Mt,value:Nt,onError:jt,onMutate:zt,onSettled:Vt,onSuccess:Kt}={}){const{data:Xt,error:Qt,isError:Zt,isIdle:dr,isLoading:cr,isSuccess:Er,mutate:pr,mutateAsync:gr,reset:vr,status:yr,variables:xr}=useMutation(mutationKey7({accessList:ht,account:Et,chainId:yt,data:Ct,gas:$t,gasPrice:At,maxFeePerGas:Bt,maxPriorityFeePerGas:Dt,mode:Ft,nonce:kt,to:Mt,value:Nt}),mutationFn7,{onError:jt,onMutate:zt,onSettled:Vt,onSuccess:Kt}),rr=reactExports.useCallback(Ht=>pr({chainId:yt,mode:Ft,...Ht||{accessList:ht,account:Et,chainId:yt,data:Ct,gas:$t,gasPrice:At,maxFeePerGas:Bt,maxPriorityFeePerGas:Dt,mode:Ft,nonce:kt,value:Nt,to:Mt}}),[ht,Et,yt,Ct,$t,At,Bt,Dt,Ft,pr,kt,Mt,Nt]),Lt=reactExports.useCallback(Ht=>gr({chainId:yt,mode:Ft,...Ht||{accessList:ht,account:Et,chainId:yt,data:Ct,gas:$t,gasPrice:At,maxFeePerGas:Bt,maxPriorityFeePerGas:Dt,mode:Ft,nonce:kt,value:Nt,to:Mt}}),[ht,Et,yt,Ct,$t,At,Bt,Dt,Ft,gr,kt,Mt,Nt]);return{data:Xt,error:Qt,isError:Zt,isIdle:dr,isLoading:cr,isSuccess:Er,reset:vr,sendTransaction:Ft==="prepared"&&!Mt?void 0:rr,sendTransactionAsync:Ft==="prepared"&&!Mt?void 0:Lt,status:yr,variables:xr}}function publicProvider(){return function(ht){return ht.rpcUrls.public.http[0]?{chain:ht,rpcUrls:ht.rpcUrls.public}:null}}function getDefaultExportFromCjs(ht){return ht&&ht.__esModule&&Object.prototype.hasOwnProperty.call(ht,"default")?ht.default:ht}var browser$e={exports:{}},process$1=browser$e.exports={},cachedSetTimeout,cachedClearTimeout;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?cachedSetTimeout=setTimeout:cachedSetTimeout=defaultSetTimout}catch{cachedSetTimeout=defaultSetTimout}try{typeof clearTimeout=="function"?cachedClearTimeout=clearTimeout:cachedClearTimeout=defaultClearTimeout}catch{cachedClearTimeout=defaultClearTimeout}})();function runTimeout(ht){if(cachedSetTimeout===setTimeout)return setTimeout(ht,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(ht,0);try{return cachedSetTimeout(ht,0)}catch{try{return cachedSetTimeout.call(null,ht,0)}catch{return cachedSetTimeout.call(this,ht,0)}}}function runClearTimeout(ht){if(cachedClearTimeout===clearTimeout)return clearTimeout(ht);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(ht);try{return cachedClearTimeout(ht)}catch{try{return cachedClearTimeout.call(null,ht)}catch{return cachedClearTimeout.call(this,ht)}}}var queue$1=[],draining=!1,currentQueue,queueIndex=-1;function cleanUpNextTick(){!draining||!currentQueue||(draining=!1,currentQueue.length?queue$1=currentQueue.concat(queue$1):queueIndex=-1,queue$1.length&&drainQueue())}function drainQueue(){if(!draining){var ht=runTimeout(cleanUpNextTick);draining=!0;for(var Et=queue$1.length;Et;){for(currentQueue=queue$1,queue$1=[];++queueIndex<Et;)currentQueue&&currentQueue[queueIndex].run();queueIndex=-1,Et=queue$1.length}currentQueue=null,draining=!1,runClearTimeout(ht)}}process$1.nextTick=function(ht){var Et=new Array(arguments.length-1);if(arguments.length>1)for(var yt=1;yt<arguments.length;yt++)Et[yt-1]=arguments[yt];queue$1.push(new Item$3(ht,Et)),queue$1.length===1&&!draining&&runTimeout(drainQueue)};function Item$3(ht,Et){this.fun=ht,this.array=Et}Item$3.prototype.run=function(){this.fun.apply(null,this.array)};process$1.title="browser";process$1.browser=!0;process$1.env={};process$1.argv=[];process$1.version="";process$1.versions={};function noop$9(){}process$1.on=noop$9;process$1.addListener=noop$9;process$1.once=noop$9;process$1.off=noop$9;process$1.removeListener=noop$9;process$1.removeAllListeners=noop$9;process$1.emit=noop$9;process$1.prependListener=noop$9;process$1.prependOnceListener=noop$9;process$1.listeners=function(ht){return[]};process$1.binding=function(ht){throw new Error("process.binding is not supported")};process$1.cwd=function(){return"/"};process$1.chdir=function(ht){throw new Error("process.chdir is not supported")};process$1.umask=function(){return 0};var browserExports$1=browser$e.exports;const process$1$1=getDefaultExportFromCjs(browserExports$1);var chacha20poly1305={},chacha={},binary={},int={};(function(ht){Object.defineProperty(ht,"__esModule",{value:!0});function Et(Dt,Ft){var kt=Dt>>>16&65535,Mt=Dt&65535,Nt=Ft>>>16&65535,jt=Ft&65535;return Mt*jt+(kt*jt+Mt*Nt<<16>>>0)|0}ht.mul=Math.imul||Et;function yt(Dt,Ft){return Dt+Ft|0}ht.add=yt;function Ct(Dt,Ft){return Dt-Ft|0}ht.sub=Ct;function $t(Dt,Ft){return Dt<<Ft|Dt>>>32-Ft}ht.rotl=$t;function At(Dt,Ft){return Dt<<32-Ft|Dt>>>Ft}ht.rotr=At;function Bt(Dt){return typeof Dt=="number"&&isFinite(Dt)&&Math.floor(Dt)===Dt}ht.isInteger=Number.isInteger||Bt,ht.MAX_SAFE_INTEGER=9007199254740991,ht.isSafeInteger=function(Dt){return ht.isInteger(Dt)&&Dt>=-ht.MAX_SAFE_INTEGER&&Dt<=ht.MAX_SAFE_INTEGER}})(int);Object.defineProperty(binary,"__esModule",{value:!0});var int_1=int;function readInt16BE(ht,Et){return Et===void 0&&(Et=0),(ht[Et+0]<<8|ht[Et+1])<<16>>16}binary.readInt16BE=readInt16BE;function readUint16BE(ht,Et){return Et===void 0&&(Et=0),(ht[Et+0]<<8|ht[Et+1])>>>0}binary.readUint16BE=readUint16BE;function readInt16LE(ht,Et){return Et===void 0&&(Et=0),(ht[Et+1]<<8|ht[Et])<<16>>16}binary.readInt16LE=readInt16LE;function readUint16LE(ht,Et){return Et===void 0&&(Et=0),(ht[Et+1]<<8|ht[Et])>>>0}binary.readUint16LE=readUint16LE;function writeUint16BE(ht,Et,yt){return Et===void 0&&(Et=new Uint8Array(2)),yt===void 0&&(yt=0),Et[yt+0]=ht>>>8,Et[yt+1]=ht>>>0,Et}binary.writeUint16BE=writeUint16BE;binary.writeInt16BE=writeUint16BE;function writeUint16LE(ht,Et,yt){return Et===void 0&&(Et=new Uint8Array(2)),yt===void 0&&(yt=0),Et[yt+0]=ht>>>0,Et[yt+1]=ht>>>8,Et}binary.writeUint16LE=writeUint16LE;binary.writeInt16LE=writeUint16LE;function readInt32BE(ht,Et){return Et===void 0&&(Et=0),ht[Et]<<24|ht[Et+1]<<16|ht[Et+2]<<8|ht[Et+3]}binary.readInt32BE=readInt32BE;function readUint32BE(ht,Et){return Et===void 0&&(Et=0),(ht[Et]<<24|ht[Et+1]<<16|ht[Et+2]<<8|ht[Et+3])>>>0}binary.readUint32BE=readUint32BE;function readInt32LE(ht,Et){return Et===void 0&&(Et=0),ht[Et+3]<<24|ht[Et+2]<<16|ht[Et+1]<<8|ht[Et]}binary.readInt32LE=readInt32LE;function readUint32LE(ht,Et){return Et===void 0&&(Et=0),(ht[Et+3]<<24|ht[Et+2]<<16|ht[Et+1]<<8|ht[Et])>>>0}binary.readUint32LE=readUint32LE;function writeUint32BE(ht,Et,yt){return Et===void 0&&(Et=new Uint8Array(4)),yt===void 0&&(yt=0),Et[yt+0]=ht>>>24,Et[yt+1]=ht>>>16,Et[yt+2]=ht>>>8,Et[yt+3]=ht>>>0,Et}binary.writeUint32BE=writeUint32BE;binary.writeInt32BE=writeUint32BE;function writeUint32LE(ht,Et,yt){return Et===void 0&&(Et=new Uint8Array(4)),yt===void 0&&(yt=0),Et[yt+0]=ht>>>0,Et[yt+1]=ht>>>8,Et[yt+2]=ht>>>16,Et[yt+3]=ht>>>24,Et}binary.writeUint32LE=writeUint32LE;binary.writeInt32LE=writeUint32LE;function readInt64BE(ht,Et){Et===void 0&&(Et=0);var yt=readInt32BE(ht,Et),Ct=readInt32BE(ht,Et+4);return yt*4294967296+Ct-(Ct>>31)*4294967296}binary.readInt64BE=readInt64BE;function readUint64BE(ht,Et){Et===void 0&&(Et=0);var yt=readUint32BE(ht,Et),Ct=readUint32BE(ht,Et+4);return yt*4294967296+Ct}binary.readUint64BE=readUint64BE;function readInt64LE(ht,Et){Et===void 0&&(Et=0);var yt=readInt32LE(ht,Et),Ct=readInt32LE(ht,Et+4);return Ct*4294967296+yt-(yt>>31)*4294967296}binary.readInt64LE=readInt64LE;function readUint64LE(ht,Et){Et===void 0&&(Et=0);var yt=readUint32LE(ht,Et),Ct=readUint32LE(ht,Et+4);return Ct*4294967296+yt}binary.readUint64LE=readUint64LE;function writeUint64BE(ht,Et,yt){return Et===void 0&&(Et=new Uint8Array(8)),yt===void 0&&(yt=0),writeUint32BE(ht/4294967296>>>0,Et,yt),writeUint32BE(ht>>>0,Et,yt+4),Et}binary.writeUint64BE=writeUint64BE;binary.writeInt64BE=writeUint64BE;function writeUint64LE(ht,Et,yt){return Et===void 0&&(Et=new Uint8Array(8)),yt===void 0&&(yt=0),writeUint32LE(ht>>>0,Et,yt),writeUint32LE(ht/4294967296>>>0,Et,yt+4),Et}binary.writeUint64LE=writeUint64LE;binary.writeInt64LE=writeUint64LE;function readUintBE(ht,Et,yt){if(yt===void 0&&(yt=0),ht%8!==0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(ht/8>Et.length-yt)throw new Error("readUintBE: array is too short for the given bitLength");for(var Ct=0,$t=1,At=ht/8+yt-1;At>=yt;At--)Ct+=Et[At]*$t,$t*=256;return Ct}binary.readUintBE=readUintBE;function readUintLE(ht,Et,yt){if(yt===void 0&&(yt=0),ht%8!==0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(ht/8>Et.length-yt)throw new Error("readUintLE: array is too short for the given bitLength");for(var Ct=0,$t=1,At=yt;At<yt+ht/8;At++)Ct+=Et[At]*$t,$t*=256;return Ct}binary.readUintLE=readUintLE;function writeUintBE(ht,Et,yt,Ct){if(yt===void 0&&(yt=new Uint8Array(ht/8)),Ct===void 0&&(Ct=0),ht%8!==0)throw new Error("writeUintBE supports only bitLengths divisible by 8");if(!int_1.isSafeInteger(Et))throw new Error("writeUintBE value must be an integer");for(var $t=1,At=ht/8+Ct-1;At>=Ct;At--)yt[At]=Et/$t&255,$t*=256;return yt}binary.writeUintBE=writeUintBE;function writeUintLE(ht,Et,yt,Ct){if(yt===void 0&&(yt=new Uint8Array(ht/8)),Ct===void 0&&(Ct=0),ht%8!==0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!int_1.isSafeInteger(Et))throw new Error("writeUintLE value must be an integer");for(var $t=1,At=Ct;At<Ct+ht/8;At++)yt[At]=Et/$t&255,$t*=256;return yt}binary.writeUintLE=writeUintLE;function readFloat32BE(ht,Et){Et===void 0&&(Et=0);var yt=new DataView(ht.buffer,ht.byteOffset,ht.byteLength);return yt.getFloat32(Et)}binary.readFloat32BE=readFloat32BE;function readFloat32LE(ht,Et){Et===void 0&&(Et=0);var yt=new DataView(ht.buffer,ht.byteOffset,ht.byteLength);return yt.getFloat32(Et,!0)}binary.readFloat32LE=readFloat32LE;function readFloat64BE(ht,Et){Et===void 0&&(Et=0);var yt=new DataView(ht.buffer,ht.byteOffset,ht.byteLength);return yt.getFloat64(Et)}binary.readFloat64BE=readFloat64BE;function readFloat64LE(ht,Et){Et===void 0&&(Et=0);var yt=new DataView(ht.buffer,ht.byteOffset,ht.byteLength);return yt.getFloat64(Et,!0)}binary.readFloat64LE=readFloat64LE;function writeFloat32BE(ht,Et,yt){Et===void 0&&(Et=new Uint8Array(4)),yt===void 0&&(yt=0);var Ct=new DataView(Et.buffer,Et.byteOffset,Et.byteLength);return Ct.setFloat32(yt,ht),Et}binary.writeFloat32BE=writeFloat32BE;function writeFloat32LE(ht,Et,yt){Et===void 0&&(Et=new Uint8Array(4)),yt===void 0&&(yt=0);var Ct=new DataView(Et.buffer,Et.byteOffset,Et.byteLength);return Ct.setFloat32(yt,ht,!0),Et}binary.writeFloat32LE=writeFloat32LE;function writeFloat64BE(ht,Et,yt){Et===void 0&&(Et=new Uint8Array(8)),yt===void 0&&(yt=0);var Ct=new DataView(Et.buffer,Et.byteOffset,Et.byteLength);return Ct.setFloat64(yt,ht),Et}binary.writeFloat64BE=writeFloat64BE;function writeFloat64LE(ht,Et,yt){Et===void 0&&(Et=new Uint8Array(8)),yt===void 0&&(yt=0);var Ct=new DataView(Et.buffer,Et.byteOffset,Et.byteLength);return Ct.setFloat64(yt,ht,!0),Et}binary.writeFloat64LE=writeFloat64LE;var wipe$1={};Object.defineProperty(wipe$1,"__esModule",{value:!0});function wipe(ht){for(var Et=0;Et<ht.length;Et++)ht[Et]=0;return ht}wipe$1.wipe=wipe;Object.defineProperty(chacha,"__esModule",{value:!0});var binary_1=binary,wipe_1$3=wipe$1,ROUNDS=20;function core(ht,Et,yt){for(var Ct=1634760805,$t=857760878,At=2036477234,Bt=1797285236,Dt=yt[3]<<24|yt[2]<<16|yt[1]<<8|yt[0],Ft=yt[7]<<24|yt[6]<<16|yt[5]<<8|yt[4],kt=yt[11]<<24|yt[10]<<16|yt[9]<<8|yt[8],Mt=yt[15]<<24|yt[14]<<16|yt[13]<<8|yt[12],Nt=yt[19]<<24|yt[18]<<16|yt[17]<<8|yt[16],jt=yt[23]<<24|yt[22]<<16|yt[21]<<8|yt[20],zt=yt[27]<<24|yt[26]<<16|yt[25]<<8|yt[24],Vt=yt[31]<<24|yt[30]<<16|yt[29]<<8|yt[28],Kt=Et[3]<<24|Et[2]<<16|Et[1]<<8|Et[0],Xt=Et[7]<<24|Et[6]<<16|Et[5]<<8|Et[4],Qt=Et[11]<<24|Et[10]<<16|Et[9]<<8|Et[8],Zt=Et[15]<<24|Et[14]<<16|Et[13]<<8|Et[12],dr=Ct,cr=$t,Er=At,pr=Bt,gr=Dt,vr=Ft,yr=kt,xr=Mt,rr=Nt,Lt=jt,Ht=zt,Wt=Vt,Gt=Kt,Yt=Xt,er=Qt,lr=Zt,Jt=0;Jt<ROUNDS;Jt+=2)dr=dr+gr|0,Gt^=dr,Gt=Gt>>>16|Gt<<16,rr=rr+Gt|0,gr^=rr,gr=gr>>>20|gr<<12,cr=cr+vr|0,Yt^=cr,Yt=Yt>>>16|Yt<<16,Lt=Lt+Yt|0,vr^=Lt,vr=vr>>>20|vr<<12,Er=Er+yr|0,er^=Er,er=er>>>16|er<<16,Ht=Ht+er|0,yr^=Ht,yr=yr>>>20|yr<<12,pr=pr+xr|0,lr^=pr,lr=lr>>>16|lr<<16,Wt=Wt+lr|0,xr^=Wt,xr=xr>>>20|xr<<12,Er=Er+yr|0,er^=Er,er=er>>>24|er<<8,Ht=Ht+er|0,yr^=Ht,yr=yr>>>25|yr<<7,pr=pr+xr|0,lr^=pr,lr=lr>>>24|lr<<8,Wt=Wt+lr|0,xr^=Wt,xr=xr>>>25|xr<<7,cr=cr+vr|0,Yt^=cr,Yt=Yt>>>24|Yt<<8,Lt=Lt+Yt|0,vr^=Lt,vr=vr>>>25|vr<<7,dr=dr+gr|0,Gt^=dr,Gt=Gt>>>24|Gt<<8,rr=rr+Gt|0,gr^=rr,gr=gr>>>25|gr<<7,dr=dr+vr|0,lr^=dr,lr=lr>>>16|lr<<16,Ht=Ht+lr|0,vr^=Ht,vr=vr>>>20|vr<<12,cr=cr+yr|0,Gt^=cr,Gt=Gt>>>16|Gt<<16,Wt=Wt+Gt|0,yr^=Wt,yr=yr>>>20|yr<<12,Er=Er+xr|0,Yt^=Er,Yt=Yt>>>16|Yt<<16,rr=rr+Yt|0,xr^=rr,xr=xr>>>20|xr<<12,pr=pr+gr|0,er^=pr,er=er>>>16|er<<16,Lt=Lt+er|0,gr^=Lt,gr=gr>>>20|gr<<12,Er=Er+xr|0,Yt^=Er,Yt=Yt>>>24|Yt<<8,rr=rr+Yt|0,xr^=rr,xr=xr>>>25|xr<<7,pr=pr+gr|0,er^=pr,er=er>>>24|er<<8,Lt=Lt+er|0,gr^=Lt,gr=gr>>>25|gr<<7,cr=cr+yr|0,Gt^=cr,Gt=Gt>>>24|Gt<<8,Wt=Wt+Gt|0,yr^=Wt,yr=yr>>>25|yr<<7,dr=dr+vr|0,lr^=dr,lr=lr>>>24|lr<<8,Ht=Ht+lr|0,vr^=Ht,vr=vr>>>25|vr<<7;binary_1.writeUint32LE(dr+Ct|0,ht,0),binary_1.writeUint32LE(cr+$t|0,ht,4),binary_1.writeUint32LE(Er+At|0,ht,8),binary_1.writeUint32LE(pr+Bt|0,ht,12),binary_1.writeUint32LE(gr+Dt|0,ht,16),binary_1.writeUint32LE(vr+Ft|0,ht,20),binary_1.writeUint32LE(yr+kt|0,ht,24),binary_1.writeUint32LE(xr+Mt|0,ht,28),binary_1.writeUint32LE(rr+Nt|0,ht,32),binary_1.writeUint32LE(Lt+jt|0,ht,36),binary_1.writeUint32LE(Ht+zt|0,ht,40),binary_1.writeUint32LE(Wt+Vt|0,ht,44),binary_1.writeUint32LE(Gt+Kt|0,ht,48),binary_1.writeUint32LE(Yt+Xt|0,ht,52),binary_1.writeUint32LE(er+Qt|0,ht,56),binary_1.writeUint32LE(lr+Zt|0,ht,60)}function streamXOR(ht,Et,yt,Ct,$t){if($t===void 0&&($t=0),ht.length!==32)throw new Error("ChaCha: key size must be 32 bytes");if(Ct.length<yt.length)throw new Error("ChaCha: destination is shorter than source");var At,Bt;if($t===0){if(Et.length!==8&&Et.length!==12)throw new Error("ChaCha nonce must be 8 or 12 bytes");At=new Uint8Array(16),Bt=At.length-Et.length,At.set(Et,Bt)}else{if(Et.length!==16)throw new Error("ChaCha nonce with counter must be 16 bytes");At=Et,Bt=$t}for(var Dt=new Uint8Array(64),Ft=0;Ft<yt.length;Ft+=64){core(Dt,At,ht);for(var kt=Ft;kt<Ft+64&&kt<yt.length;kt++)Ct[kt]=yt[kt]^Dt[kt-Ft];incrementCounter(At,0,Bt)}return wipe_1$3.wipe(Dt),$t===0&&wipe_1$3.wipe(At),Ct}chacha.streamXOR=streamXOR;function stream(ht,Et,yt,Ct){return Ct===void 0&&(Ct=0),wipe_1$3.wipe(yt),streamXOR(ht,Et,yt,yt,Ct)}chacha.stream=stream;function incrementCounter(ht,Et,yt){for(var Ct=1;yt--;)Ct=Ct+(ht[Et]&255)|0,ht[Et]=Ct&255,Ct>>>=8,Et++;if(Ct>0)throw new Error("ChaCha: counter overflow")}var poly1305={},constantTime={};Object.defineProperty(constantTime,"__esModule",{value:!0});function select(ht,Et,yt){return~(ht-1)&Et|ht-1&yt}constantTime.select=select;function lessOrEqual(ht,Et){return(ht|0)-(Et|0)-1>>>31&1}constantTime.lessOrEqual=lessOrEqual;function compare(ht,Et){if(ht.length!==Et.length)return 0;for(var yt=0,Ct=0;Ct<ht.length;Ct++)yt|=ht[Ct]^Et[Ct];return 1&yt-1>>>8}constantTime.compare=compare;function equal$1(ht,Et){return ht.length===0||Et.length===0?!1:compare(ht,Et)!==0}constantTime.equal=equal$1;(function(ht){Object.defineProperty(ht,"__esModule",{value:!0});var Et=constantTime,yt=wipe$1;ht.DIGEST_LENGTH=16;var Ct=function(){function Bt(Dt){this.digestLength=ht.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var Ft=Dt[0]|Dt[1]<<8;this._r[0]=Ft&8191;var kt=Dt[2]|Dt[3]<<8;this._r[1]=(Ft>>>13|kt<<3)&8191;var Mt=Dt[4]|Dt[5]<<8;this._r[2]=(kt>>>10|Mt<<6)&7939;var Nt=Dt[6]|Dt[7]<<8;this._r[3]=(Mt>>>7|Nt<<9)&8191;var jt=Dt[8]|Dt[9]<<8;this._r[4]=(Nt>>>4|jt<<12)&255,this._r[5]=jt>>>1&8190;var zt=Dt[10]|Dt[11]<<8;this._r[6]=(jt>>>14|zt<<2)&8191;var Vt=Dt[12]|Dt[13]<<8;this._r[7]=(zt>>>11|Vt<<5)&8065;var Kt=Dt[14]|Dt[15]<<8;this._r[8]=(Vt>>>8|Kt<<8)&8191,this._r[9]=Kt>>>5&127,this._pad[0]=Dt[16]|Dt[17]<<8,this._pad[1]=Dt[18]|Dt[19]<<8,this._pad[2]=Dt[20]|Dt[21]<<8,this._pad[3]=Dt[22]|Dt[23]<<8,this._pad[4]=Dt[24]|Dt[25]<<8,this._pad[5]=Dt[26]|Dt[27]<<8,this._pad[6]=Dt[28]|Dt[29]<<8,this._pad[7]=Dt[30]|Dt[31]<<8}return Bt.prototype._blocks=function(Dt,Ft,kt){for(var Mt=this._fin?0:2048,Nt=this._h[0],jt=this._h[1],zt=this._h[2],Vt=this._h[3],Kt=this._h[4],Xt=this._h[5],Qt=this._h[6],Zt=this._h[7],dr=this._h[8],cr=this._h[9],Er=this._r[0],pr=this._r[1],gr=this._r[2],vr=this._r[3],yr=this._r[4],xr=this._r[5],rr=this._r[6],Lt=this._r[7],Ht=this._r[8],Wt=this._r[9];kt>=16;){var Gt=Dt[Ft+0]|Dt[Ft+1]<<8;Nt+=Gt&8191;var Yt=Dt[Ft+2]|Dt[Ft+3]<<8;jt+=(Gt>>>13|Yt<<3)&8191;var er=Dt[Ft+4]|Dt[Ft+5]<<8;zt+=(Yt>>>10|er<<6)&8191;var lr=Dt[Ft+6]|Dt[Ft+7]<<8;Vt+=(er>>>7|lr<<9)&8191;var Jt=Dt[Ft+8]|Dt[Ft+9]<<8;Kt+=(lr>>>4|Jt<<12)&8191,Xt+=Jt>>>1&8191;var Ut=Dt[Ft+10]|Dt[Ft+11]<<8;Qt+=(Jt>>>14|Ut<<2)&8191;var ir=Dt[Ft+12]|Dt[Ft+13]<<8;Zt+=(Ut>>>11|ir<<5)&8191;var Cr=Dt[Ft+14]|Dt[Ft+15]<<8;dr+=(ir>>>8|Cr<<8)&8191,cr+=Cr>>>5|Mt;var _r=0,$r=_r;$r+=Nt*Er,$r+=jt*(5*Wt),$r+=zt*(5*Ht),$r+=Vt*(5*Lt),$r+=Kt*(5*rr),_r=$r>>>13,$r&=8191,$r+=Xt*(5*xr),$r+=Qt*(5*yr),$r+=Zt*(5*vr),$r+=dr*(5*gr),$r+=cr*(5*pr),_r+=$r>>>13,$r&=8191;var Tr=_r;Tr+=Nt*pr,Tr+=jt*Er,Tr+=zt*(5*Wt),Tr+=Vt*(5*Ht),Tr+=Kt*(5*Lt),_r=Tr>>>13,Tr&=8191,Tr+=Xt*(5*rr),Tr+=Qt*(5*xr),Tr+=Zt*(5*yr),Tr+=dr*(5*vr),Tr+=cr*(5*gr),_r+=Tr>>>13,Tr&=8191;var Dr=_r;Dr+=Nt*gr,Dr+=jt*pr,Dr+=zt*Er,Dr+=Vt*(5*Wt),Dr+=Kt*(5*Ht),_r=Dr>>>13,Dr&=8191,Dr+=Xt*(5*Lt),Dr+=Qt*(5*rr),Dr+=Zt*(5*xr),Dr+=dr*(5*yr),Dr+=cr*(5*vr),_r+=Dr>>>13,Dr&=8191;var Ar=_r;Ar+=Nt*vr,Ar+=jt*gr,Ar+=zt*pr,Ar+=Vt*Er,Ar+=Kt*(5*Wt),_r=Ar>>>13,Ar&=8191,Ar+=Xt*(5*Ht),Ar+=Qt*(5*Lt),Ar+=Zt*(5*rr),Ar+=dr*(5*xr),Ar+=cr*(5*yr),_r+=Ar>>>13,Ar&=8191;var Fr=_r;Fr+=Nt*yr,Fr+=jt*vr,Fr+=zt*gr,Fr+=Vt*pr,Fr+=Kt*Er,_r=Fr>>>13,Fr&=8191,Fr+=Xt*(5*Wt),Fr+=Qt*(5*Ht),Fr+=Zt*(5*Lt),Fr+=dr*(5*rr),Fr+=cr*(5*xr),_r+=Fr>>>13,Fr&=8191;var Rr=_r;Rr+=Nt*xr,Rr+=jt*yr,Rr+=zt*vr,Rr+=Vt*gr,Rr+=Kt*pr,_r=Rr>>>13,Rr&=8191,Rr+=Xt*Er,Rr+=Qt*(5*Wt),Rr+=Zt*(5*Ht),Rr+=dr*(5*Lt),Rr+=cr*(5*rr),_r+=Rr>>>13,Rr&=8191;var wr=_r;wr+=Nt*rr,wr+=jt*xr,wr+=zt*yr,wr+=Vt*vr,wr+=Kt*gr,_r=wr>>>13,wr&=8191,wr+=Xt*pr,wr+=Qt*Er,wr+=Zt*(5*Wt),wr+=dr*(5*Ht),wr+=cr*(5*Lt),_r+=wr>>>13,wr&=8191;var Sr=_r;Sr+=Nt*Lt,Sr+=jt*rr,Sr+=zt*xr,Sr+=Vt*yr,Sr+=Kt*vr,_r=Sr>>>13,Sr&=8191,Sr+=Xt*gr,Sr+=Qt*pr,Sr+=Zt*Er,Sr+=dr*(5*Wt),Sr+=cr*(5*Ht),_r+=Sr>>>13,Sr&=8191;var Br=_r;Br+=Nt*Ht,Br+=jt*Lt,Br+=zt*rr,Br+=Vt*xr,Br+=Kt*yr,_r=Br>>>13,Br&=8191,Br+=Xt*vr,Br+=Qt*gr,Br+=Zt*pr,Br+=dr*Er,Br+=cr*(5*Wt),_r+=Br>>>13,Br&=8191;var Or=_r;Or+=Nt*Wt,Or+=jt*Ht,Or+=zt*Lt,Or+=Vt*rr,Or+=Kt*xr,_r=Or>>>13,Or&=8191,Or+=Xt*yr,Or+=Qt*vr,Or+=Zt*gr,Or+=dr*pr,Or+=cr*Er,_r+=Or>>>13,Or&=8191,_r=(_r<<2)+_r|0,_r=_r+$r|0,$r=_r&8191,_r=_r>>>13,Tr+=_r,Nt=$r,jt=Tr,zt=Dr,Vt=Ar,Kt=Fr,Xt=Rr,Qt=wr,Zt=Sr,dr=Br,cr=Or,Ft+=16,kt-=16}this._h[0]=Nt,this._h[1]=jt,this._h[2]=zt,this._h[3]=Vt,this._h[4]=Kt,this._h[5]=Xt,this._h[6]=Qt,this._h[7]=Zt,this._h[8]=dr,this._h[9]=cr},Bt.prototype.finish=function(Dt,Ft){Ft===void 0&&(Ft=0);var kt=new Uint16Array(10),Mt,Nt,jt,zt;if(this._leftover){for(zt=this._leftover,this._buffer[zt++]=1;zt<16;zt++)this._buffer[zt]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(Mt=this._h[1]>>>13,this._h[1]&=8191,zt=2;zt<10;zt++)this._h[zt]+=Mt,Mt=this._h[zt]>>>13,this._h[zt]&=8191;for(this._h[0]+=Mt*5,Mt=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=Mt,Mt=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=Mt,kt[0]=this._h[0]+5,Mt=kt[0]>>>13,kt[0]&=8191,zt=1;zt<10;zt++)kt[zt]=this._h[zt]+Mt,Mt=kt[zt]>>>13,kt[zt]&=8191;for(kt[9]-=8192,Nt=(Mt^1)-1,zt=0;zt<10;zt++)kt[zt]&=Nt;for(Nt=~Nt,zt=0;zt<10;zt++)this._h[zt]=this._h[zt]&Nt|kt[zt];for(this._h[0]=(this._h[0]|this._h[1]<<13)&65535,this._h[1]=(this._h[1]>>>3|this._h[2]<<10)&65535,this._h[2]=(this._h[2]>>>6|this._h[3]<<7)&65535,this._h[3]=(this._h[3]>>>9|this._h[4]<<4)&65535,this._h[4]=(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14)&65535,this._h[5]=(this._h[6]>>>2|this._h[7]<<11)&65535,this._h[6]=(this._h[7]>>>5|this._h[8]<<8)&65535,this._h[7]=(this._h[8]>>>8|this._h[9]<<5)&65535,jt=this._h[0]+this._pad[0],this._h[0]=jt&65535,zt=1;zt<8;zt++)jt=(this._h[zt]+this._pad[zt]|0)+(jt>>>16)|0,this._h[zt]=jt&65535;return Dt[Ft+0]=this._h[0]>>>0,Dt[Ft+1]=this._h[0]>>>8,Dt[Ft+2]=this._h[1]>>>0,Dt[Ft+3]=this._h[1]>>>8,Dt[Ft+4]=this._h[2]>>>0,Dt[Ft+5]=this._h[2]>>>8,Dt[Ft+6]=this._h[3]>>>0,Dt[Ft+7]=this._h[3]>>>8,Dt[Ft+8]=this._h[4]>>>0,Dt[Ft+9]=this._h[4]>>>8,Dt[Ft+10]=this._h[5]>>>0,Dt[Ft+11]=this._h[5]>>>8,Dt[Ft+12]=this._h[6]>>>0,Dt[Ft+13]=this._h[6]>>>8,Dt[Ft+14]=this._h[7]>>>0,Dt[Ft+15]=this._h[7]>>>8,this._finished=!0,this},Bt.prototype.update=function(Dt){var Ft=0,kt=Dt.length,Mt;if(this._leftover){Mt=16-this._leftover,Mt>kt&&(Mt=kt);for(var Nt=0;Nt<Mt;Nt++)this._buffer[this._leftover+Nt]=Dt[Ft+Nt];if(kt-=Mt,Ft+=Mt,this._leftover+=Mt,this._leftover<16)return this;this._blocks(this._buffer,0,16),this._leftover=0}if(kt>=16&&(Mt=kt-kt%16,this._blocks(Dt,Ft,Mt),Ft+=Mt,kt-=Mt),kt){for(var Nt=0;Nt<kt;Nt++)this._buffer[this._leftover+Nt]=Dt[Ft+Nt];this._leftover+=kt}return this},Bt.prototype.digest=function(){if(this._finished)throw new Error("Poly1305 was finished");var Dt=new Uint8Array(16);return this.finish(Dt),Dt},Bt.prototype.clean=function(){return yt.wipe(this._buffer),yt.wipe(this._r),yt.wipe(this._h),yt.wipe(this._pad),this._leftover=0,this._fin=0,this._finished=!0,this},Bt}();ht.Poly1305=Ct;function $t(Bt,Dt){var Ft=new Ct(Bt);Ft.update(Dt);var kt=Ft.digest();return Ft.clean(),kt}ht.oneTimeAuth=$t;function At(Bt,Dt){return Bt.length!==ht.DIGEST_LENGTH||Dt.length!==ht.DIGEST_LENGTH?!1:Et.equal(Bt,Dt)}ht.equal=At})(poly1305);(function(ht){Object.defineProperty(ht,"__esModule",{value:!0});var Et=chacha,yt=poly1305,Ct=wipe$1,$t=binary,At=constantTime;ht.KEY_LENGTH=32,ht.NONCE_LENGTH=12,ht.TAG_LENGTH=16;var Bt=new Uint8Array(16),Dt=function(){function Ft(kt){if(this.nonceLength=ht.NONCE_LENGTH,this.tagLength=ht.TAG_LENGTH,kt.length!==ht.KEY_LENGTH)throw new Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(kt)}return Ft.prototype.seal=function(kt,Mt,Nt,jt){if(kt.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var zt=new Uint8Array(16);zt.set(kt,zt.length-kt.length);var Vt=new Uint8Array(32);Et.stream(this._key,zt,Vt,4);var Kt=Mt.length+this.tagLength,Xt;if(jt){if(jt.length!==Kt)throw new Error("ChaCha20Poly1305: incorrect destination length");Xt=jt}else Xt=new Uint8Array(Kt);return Et.streamXOR(this._key,zt,Mt,Xt,4),this._authenticate(Xt.subarray(Xt.length-this.tagLength,Xt.length),Vt,Xt.subarray(0,Xt.length-this.tagLength),Nt),Ct.wipe(zt),Xt},Ft.prototype.open=function(kt,Mt,Nt,jt){if(kt.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(Mt.length<this.tagLength)return null;var zt=new Uint8Array(16);zt.set(kt,zt.length-kt.length);var Vt=new Uint8Array(32);Et.stream(this._key,zt,Vt,4);var Kt=new Uint8Array(this.tagLength);if(this._authenticate(Kt,Vt,Mt.subarray(0,Mt.length-this.tagLength),Nt),!At.equal(Kt,Mt.subarray(Mt.length-this.tagLength,Mt.length)))return null;var Xt=Mt.length-this.tagLength,Qt;if(jt){if(jt.length!==Xt)throw new Error("ChaCha20Poly1305: incorrect destination length");Qt=jt}else Qt=new Uint8Array(Xt);return Et.streamXOR(this._key,zt,Mt.subarray(0,Mt.length-this.tagLength),Qt,4),Ct.wipe(zt),Qt},Ft.prototype.clean=function(){return Ct.wipe(this._key),this},Ft.prototype._authenticate=function(kt,Mt,Nt,jt){var zt=new yt.Poly1305(Mt);jt&&(zt.update(jt),jt.length%16>0&&zt.update(Bt.subarray(jt.length%16))),zt.update(Nt),Nt.length%16>0&&zt.update(Bt.subarray(Nt.length%16));var Vt=new Uint8Array(8);jt&&$t.writeUint64LE(jt.length,Vt),zt.update(Vt),$t.writeUint64LE(Nt.length,Vt),zt.update(Vt);for(var Kt=zt.digest(),Xt=0;Xt<Kt.length;Xt++)kt[Xt]=Kt[Xt];zt.clean(),Ct.wipe(Kt),Ct.wipe(Vt)},Ft}();ht.ChaCha20Poly1305=Dt})(chacha20poly1305);var hkdf={},hmac$2={},hash$5={};Object.defineProperty(hash$5,"__esModule",{value:!0});function isSerializableHash(ht){return typeof ht.saveState<"u"&&typeof ht.restoreState<"u"&&typeof ht.cleanSavedState<"u"}hash$5.isSerializableHash=isSerializableHash;Object.defineProperty(hmac$2,"__esModule",{value:!0});var hash_1=hash$5,constant_time_1=constantTime,wipe_1$2=wipe$1,HMAC=function(){function ht(Et,yt){this._finished=!1,this._inner=new Et,this._outer=new Et,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var Ct=new Uint8Array(this.blockSize);yt.length>this.blockSize?this._inner.update(yt).finish(Ct).clean():Ct.set(yt);for(var $t=0;$t<Ct.length;$t++)Ct[$t]^=54;this._inner.update(Ct);for(var $t=0;$t<Ct.length;$t++)Ct[$t]^=106;this._outer.update(Ct),hash_1.isSerializableHash(this._inner)&&hash_1.isSerializableHash(this._outer)&&(this._innerKeyedState=this._inner.saveState(),this._outerKeyedState=this._outer.saveState()),wipe_1$2.wipe(Ct)}return ht.prototype.reset=function(){if(!hash_1.isSerializableHash(this._inner)||!hash_1.isSerializableHash(this._outer))throw new Error("hmac: can't reset() because hash doesn't implement restoreState()");return this._inner.restoreState(this._innerKeyedState),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},ht.prototype.clean=function(){hash_1.isSerializableHash(this._inner)&&this._inner.cleanSavedState(this._innerKeyedState),hash_1.isSerializableHash(this._outer)&&this._outer.cleanSavedState(this._outerKeyedState),this._inner.clean(),this._outer.clean()},ht.prototype.update=function(Et){return this._inner.update(Et),this},ht.prototype.finish=function(Et){return this._finished?(this._outer.finish(Et),this):(this._inner.finish(Et),this._outer.update(Et.subarray(0,this.digestLength)).finish(Et),this._finished=!0,this)},ht.prototype.digest=function(){var Et=new Uint8Array(this.digestLength);return this.finish(Et),Et},ht.prototype.saveState=function(){if(!hash_1.isSerializableHash(this._inner))throw new Error("hmac: can't saveState() because hash doesn't implement it");return this._inner.saveState()},ht.prototype.restoreState=function(Et){if(!hash_1.isSerializableHash(this._inner)||!hash_1.isSerializableHash(this._outer))throw new Error("hmac: can't restoreState() because hash doesn't implement it");return this._inner.restoreState(Et),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},ht.prototype.cleanSavedState=function(Et){if(!hash_1.isSerializableHash(this._inner))throw new Error("hmac: can't cleanSavedState() because hash doesn't implement it");this._inner.cleanSavedState(Et)},ht}();hmac$2.HMAC=HMAC;function hmac$1(ht,Et,yt){var Ct=new HMAC(ht,Et);Ct.update(yt);var $t=Ct.digest();return Ct.clean(),$t}hmac$2.hmac=hmac$1;hmac$2.equal=constant_time_1.equal;Object.defineProperty(hkdf,"__esModule",{value:!0});var hmac_1=hmac$2,wipe_1$1=wipe$1,HKDF=function(){function ht(Et,yt,Ct,$t){Ct===void 0&&(Ct=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=Et,this._info=$t;var At=hmac_1.hmac(this._hash,Ct,yt);this._hmac=new hmac_1.HMAC(Et,At),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return ht.prototype._fillBuffer=function(){this._counter[0]++;var Et=this._counter[0];if(Et===0)throw new Error("hkdf: cannot expand more");this._hmac.reset(),Et>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},ht.prototype.expand=function(Et){for(var yt=new Uint8Array(Et),Ct=0;Ct<yt.length;Ct++)this._bufpos===this._buffer.length&&this._fillBuffer(),yt[Ct]=this._buffer[this._bufpos++];return yt},ht.prototype.clean=function(){this._hmac.clean(),wipe_1$1.wipe(this._buffer),wipe_1$1.wipe(this._counter),this._bufpos=0},ht}(),HKDF_1=hkdf.HKDF=HKDF,random={},system={},browser$d={};Object.defineProperty(browser$d,"__esModule",{value:!0});browser$d.BrowserRandomSource=void 0;const QUOTA=65536;class BrowserRandomSource{constructor(){this.isAvailable=!1,this.isInstantiated=!1;const Et=typeof self<"u"?self.crypto||self.msCrypto:null;Et&&Et.getRandomValues!==void 0&&(this._crypto=Et,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(Et){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");const yt=new Uint8Array(Et);for(let Ct=0;Ct<yt.length;Ct+=QUOTA)this._crypto.getRandomValues(yt.subarray(Ct,Ct+Math.min(yt.length-Ct,QUOTA)));return yt}}browser$d.BrowserRandomSource=BrowserRandomSource;function commonjsRequire(ht){throw new Error('Could not dynamically require "'+ht+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var node$2={},cryptoBrowserify={},browser$c={exports:{}},safeBuffer$1={exports:{}},buffer$1={},base64Js={};base64Js.byteLength=byteLength;base64Js.toByteArray=toByteArray;base64Js.fromByteArray=fromByteArray;var lookup$2=[],revLookup=[],Arr=typeof Uint8Array<"u"?Uint8Array:Array,code$1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var i$8=0,len=code$1.length;i$8<len;++i$8)lookup$2[i$8]=code$1[i$8],revLookup[code$1.charCodeAt(i$8)]=i$8;revLookup[45]=62;revLookup[95]=63;function getLens(ht){var Et=ht.length;if(Et%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var yt=ht.indexOf("=");yt===-1&&(yt=Et);var Ct=yt===Et?0:4-yt%4;return[yt,Ct]}function byteLength(ht){var Et=getLens(ht),yt=Et[0],Ct=Et[1];return(yt+Ct)*3/4-Ct}function _byteLength(ht,Et,yt){return(Et+yt)*3/4-yt}function toByteArray(ht){var Et,yt=getLens(ht),Ct=yt[0],$t=yt[1],At=new Arr(_byteLength(ht,Ct,$t)),Bt=0,Dt=$t>0?Ct-4:Ct,Ft;for(Ft=0;Ft<Dt;Ft+=4)Et=revLookup[ht.charCodeAt(Ft)]<<18|revLookup[ht.charCodeAt(Ft+1)]<<12|revLookup[ht.charCodeAt(Ft+2)]<<6|revLookup[ht.charCodeAt(Ft+3)],At[Bt++]=Et>>16&255,At[Bt++]=Et>>8&255,At[Bt++]=Et&255;return $t===2&&(Et=revLookup[ht.charCodeAt(Ft)]<<2|revLookup[ht.charCodeAt(Ft+1)]>>4,At[Bt++]=Et&255),$t===1&&(Et=revLookup[ht.charCodeAt(Ft)]<<10|revLookup[ht.charCodeAt(Ft+1)]<<4|revLookup[ht.charCodeAt(Ft+2)]>>2,At[Bt++]=Et>>8&255,At[Bt++]=Et&255),At}function tripletToBase64(ht){return lookup$2[ht>>18&63]+lookup$2[ht>>12&63]+lookup$2[ht>>6&63]+lookup$2[ht&63]}function encodeChunk(ht,Et,yt){for(var Ct,$t=[],At=Et;At<yt;At+=3)Ct=(ht[At]<<16&16711680)+(ht[At+1]<<8&65280)+(ht[At+2]&255),$t.push(tripletToBase64(Ct));return $t.join("")}function fromByteArray(ht){for(var Et,yt=ht.length,Ct=yt%3,$t=[],At=16383,Bt=0,Dt=yt-Ct;Bt<Dt;Bt+=At)$t.push(encodeChunk(ht,Bt,Bt+At>Dt?Dt:Bt+At));return Ct===1?(Et=ht[yt-1],$t.push(lookup$2[Et>>2]+lookup$2[Et<<4&63]+"==")):Ct===2&&(Et=(ht[yt-2]<<8)+ht[yt-1],$t.push(lookup$2[Et>>10]+lookup$2[Et>>4&63]+lookup$2[Et<<2&63]+"=")),$t.join("")}var ieee754={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ieee754.read=function(ht,Et,yt,Ct,$t){var At,Bt,Dt=$t*8-Ct-1,Ft=(1<<Dt)-1,kt=Ft>>1,Mt=-7,Nt=yt?$t-1:0,jt=yt?-1:1,zt=ht[Et+Nt];for(Nt+=jt,At=zt&(1<<-Mt)-1,zt>>=-Mt,Mt+=Dt;Mt>0;At=At*256+ht[Et+Nt],Nt+=jt,Mt-=8);for(Bt=At&(1<<-Mt)-1,At>>=-Mt,Mt+=Ct;Mt>0;Bt=Bt*256+ht[Et+Nt],Nt+=jt,Mt-=8);if(At===0)At=1-kt;else{if(At===Ft)return Bt?NaN:(zt?-1:1)*(1/0);Bt=Bt+Math.pow(2,Ct),At=At-kt}return(zt?-1:1)*Bt*Math.pow(2,At-Ct)};ieee754.write=function(ht,Et,yt,Ct,$t,At){var Bt,Dt,Ft,kt=At*8-$t-1,Mt=(1<<kt)-1,Nt=Mt>>1,jt=$t===23?Math.pow(2,-24)-Math.pow(2,-77):0,zt=Ct?0:At-1,Vt=Ct?1:-1,Kt=Et<0||Et===0&&1/Et<0?1:0;for(Et=Math.abs(Et),isNaN(Et)||Et===1/0?(Dt=isNaN(Et)?1:0,Bt=Mt):(Bt=Math.floor(Math.log(Et)/Math.LN2),Et*(Ft=Math.pow(2,-Bt))<1&&(Bt--,Ft*=2),Bt+Nt>=1?Et+=jt/Ft:Et+=jt*Math.pow(2,1-Nt),Et*Ft>=2&&(Bt++,Ft/=2),Bt+Nt>=Mt?(Dt=0,Bt=Mt):Bt+Nt>=1?(Dt=(Et*Ft-1)*Math.pow(2,$t),Bt=Bt+Nt):(Dt=Et*Math.pow(2,Nt-1)*Math.pow(2,$t),Bt=0));$t>=8;ht[yt+zt]=Dt&255,zt+=Vt,Dt/=256,$t-=8);for(Bt=Bt<<$t|Dt,kt+=$t;kt>0;ht[yt+zt]=Bt&255,zt+=Vt,Bt/=256,kt-=8);ht[yt+zt-Vt]|=Kt*128};/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */(function(ht){const Et=base64Js,yt=ieee754,Ct=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ht.Buffer=Mt,ht.SlowBuffer=Er,ht.INSPECT_MAX_BYTES=50;const $t=2147483647;ht.kMaxLength=$t;const{Uint8Array:At,ArrayBuffer:Bt,SharedArrayBuffer:Dt}=globalThis;Mt.TYPED_ARRAY_SUPPORT=Ft(),!Mt.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Ft(){try{const kr=new At(1),Mr={foo:function(){return 42}};return Object.setPrototypeOf(Mr,At.prototype),Object.setPrototypeOf(kr,Mr),kr.foo()===42}catch{return!1}}Object.defineProperty(Mt.prototype,"parent",{enumerable:!0,get:function(){if(Mt.isBuffer(this))return this.buffer}}),Object.defineProperty(Mt.prototype,"offset",{enumerable:!0,get:function(){if(Mt.isBuffer(this))return this.byteOffset}});function kt(kr){if(kr>$t)throw new RangeError('The value "'+kr+'" is invalid for option "size"');const Mr=new At(kr);return Object.setPrototypeOf(Mr,Mt.prototype),Mr}function Mt(kr,Mr,Ir){if(typeof kr=="number"){if(typeof Mr=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Vt(kr)}return Nt(kr,Mr,Ir)}Mt.poolSize=8192;function Nt(kr,Mr,Ir){if(typeof kr=="string")return Kt(kr,Mr);if(Bt.isView(kr))return Qt(kr);if(kr==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof kr);if(un(kr,Bt)||kr&&un(kr.buffer,Bt)||typeof Dt<"u"&&(un(kr,Dt)||kr&&un(kr.buffer,Dt)))return Zt(kr,Mr,Ir);if(typeof kr=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Hr=kr.valueOf&&kr.valueOf();if(Hr!=null&&Hr!==kr)return Mt.from(Hr,Mr,Ir);const Vr=dr(kr);if(Vr)return Vr;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof kr[Symbol.toPrimitive]=="function")return Mt.from(kr[Symbol.toPrimitive]("string"),Mr,Ir);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof kr)}Mt.from=function(kr,Mr,Ir){return Nt(kr,Mr,Ir)},Object.setPrototypeOf(Mt.prototype,At.prototype),Object.setPrototypeOf(Mt,At);function jt(kr){if(typeof kr!="number")throw new TypeError('"size" argument must be of type number');if(kr<0)throw new RangeError('The value "'+kr+'" is invalid for option "size"')}function zt(kr,Mr,Ir){return jt(kr),kr<=0?kt(kr):Mr!==void 0?typeof Ir=="string"?kt(kr).fill(Mr,Ir):kt(kr).fill(Mr):kt(kr)}Mt.alloc=function(kr,Mr,Ir){return zt(kr,Mr,Ir)};function Vt(kr){return jt(kr),kt(kr<0?0:cr(kr)|0)}Mt.allocUnsafe=function(kr){return Vt(kr)},Mt.allocUnsafeSlow=function(kr){return Vt(kr)};function Kt(kr,Mr){if((typeof Mr!="string"||Mr==="")&&(Mr="utf8"),!Mt.isEncoding(Mr))throw new TypeError("Unknown encoding: "+Mr);const Ir=pr(kr,Mr)|0;let Hr=kt(Ir);const Vr=Hr.write(kr,Mr);return Vr!==Ir&&(Hr=Hr.slice(0,Vr)),Hr}function Xt(kr){const Mr=kr.length<0?0:cr(kr.length)|0,Ir=kt(Mr);for(let Hr=0;Hr<Mr;Hr+=1)Ir[Hr]=kr[Hr]&255;return Ir}function Qt(kr){if(un(kr,At)){const Mr=new At(kr);return Zt(Mr.buffer,Mr.byteOffset,Mr.byteLength)}return Xt(kr)}function Zt(kr,Mr,Ir){if(Mr<0||kr.byteLength<Mr)throw new RangeError('"offset" is outside of buffer bounds');if(kr.byteLength<Mr+(Ir||0))throw new RangeError('"length" is outside of buffer bounds');let Hr;return Mr===void 0&&Ir===void 0?Hr=new At(kr):Ir===void 0?Hr=new At(kr,Mr):Hr=new At(kr,Mr,Ir),Object.setPrototypeOf(Hr,Mt.prototype),Hr}function dr(kr){if(Mt.isBuffer(kr)){const Mr=cr(kr.length)|0,Ir=kt(Mr);return Ir.length===0||kr.copy(Ir,0,0,Mr),Ir}if(kr.length!==void 0)return typeof kr.length!="number"||Yr(kr.length)?kt(0):Xt(kr);if(kr.type==="Buffer"&&Array.isArray(kr.data))return Xt(kr.data)}function cr(kr){if(kr>=$t)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+$t.toString(16)+" bytes");return kr|0}function Er(kr){return+kr!=kr&&(kr=0),Mt.alloc(+kr)}Mt.isBuffer=function(Mr){return Mr!=null&&Mr._isBuffer===!0&&Mr!==Mt.prototype},Mt.compare=function(Mr,Ir){if(un(Mr,At)&&(Mr=Mt.from(Mr,Mr.offset,Mr.byteLength)),un(Ir,At)&&(Ir=Mt.from(Ir,Ir.offset,Ir.byteLength)),!Mt.isBuffer(Mr)||!Mt.isBuffer(Ir))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Mr===Ir)return 0;let Hr=Mr.length,Vr=Ir.length;for(let on=0,Qr=Math.min(Hr,Vr);on<Qr;++on)if(Mr[on]!==Ir[on]){Hr=Mr[on],Vr=Ir[on];break}return Hr<Vr?-1:Vr<Hr?1:0},Mt.isEncoding=function(Mr){switch(String(Mr).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Mt.concat=function(Mr,Ir){if(!Array.isArray(Mr))throw new TypeError('"list" argument must be an Array of Buffers');if(Mr.length===0)return Mt.alloc(0);let Hr;if(Ir===void 0)for(Ir=0,Hr=0;Hr<Mr.length;++Hr)Ir+=Mr[Hr].length;const Vr=Mt.allocUnsafe(Ir);let on=0;for(Hr=0;Hr<Mr.length;++Hr){let Qr=Mr[Hr];if(un(Qr,At))on+Qr.length>Vr.length?(Mt.isBuffer(Qr)||(Qr=Mt.from(Qr)),Qr.copy(Vr,on)):At.prototype.set.call(Vr,Qr,on);else if(Mt.isBuffer(Qr))Qr.copy(Vr,on);else throw new TypeError('"list" argument must be an Array of Buffers');on+=Qr.length}return Vr};function pr(kr,Mr){if(Mt.isBuffer(kr))return kr.length;if(Bt.isView(kr)||un(kr,Bt))return kr.byteLength;if(typeof kr!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof kr);const Ir=kr.length,Hr=arguments.length>2&&arguments[2]===!0;if(!Hr&&Ir===0)return 0;let Vr=!1;for(;;)switch(Mr){case"ascii":case"latin1":case"binary":return Ir;case"utf8":case"utf-8":return Kr(kr).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ir*2;case"hex":return Ir>>>1;case"base64":return dn(kr).length;default:if(Vr)return Hr?-1:Kr(kr).length;Mr=(""+Mr).toLowerCase(),Vr=!0}}Mt.byteLength=pr;function gr(kr,Mr,Ir){let Hr=!1;if((Mr===void 0||Mr<0)&&(Mr=0),Mr>this.length||((Ir===void 0||Ir>this.length)&&(Ir=this.length),Ir<=0)||(Ir>>>=0,Mr>>>=0,Ir<=Mr))return"";for(kr||(kr="utf8");;)switch(kr){case"hex":return Cr(this,Mr,Ir);case"utf8":case"utf-8":return er(this,Mr,Ir);case"ascii":return Ut(this,Mr,Ir);case"latin1":case"binary":return ir(this,Mr,Ir);case"base64":return Yt(this,Mr,Ir);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _r(this,Mr,Ir);default:if(Hr)throw new TypeError("Unknown encoding: "+kr);kr=(kr+"").toLowerCase(),Hr=!0}}Mt.prototype._isBuffer=!0;function vr(kr,Mr,Ir){const Hr=kr[Mr];kr[Mr]=kr[Ir],kr[Ir]=Hr}Mt.prototype.swap16=function(){const Mr=this.length;if(Mr%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let Ir=0;Ir<Mr;Ir+=2)vr(this,Ir,Ir+1);return this},Mt.prototype.swap32=function(){const Mr=this.length;if(Mr%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let Ir=0;Ir<Mr;Ir+=4)vr(this,Ir,Ir+3),vr(this,Ir+1,Ir+2);return this},Mt.prototype.swap64=function(){const Mr=this.length;if(Mr%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let Ir=0;Ir<Mr;Ir+=8)vr(this,Ir,Ir+7),vr(this,Ir+1,Ir+6),vr(this,Ir+2,Ir+5),vr(this,Ir+3,Ir+4);return this},Mt.prototype.toString=function(){const Mr=this.length;return Mr===0?"":arguments.length===0?er(this,0,Mr):gr.apply(this,arguments)},Mt.prototype.toLocaleString=Mt.prototype.toString,Mt.prototype.equals=function(Mr){if(!Mt.isBuffer(Mr))throw new TypeError("Argument must be a Buffer");return this===Mr?!0:Mt.compare(this,Mr)===0},Mt.prototype.inspect=function(){let Mr="";const Ir=ht.INSPECT_MAX_BYTES;return Mr=this.toString("hex",0,Ir).replace(/(.{2})/g,"$1 ").trim(),this.length>Ir&&(Mr+=" ... "),"<Buffer "+Mr+">"},Ct&&(Mt.prototype[Ct]=Mt.prototype.inspect),Mt.prototype.compare=function(Mr,Ir,Hr,Vr,on){if(un(Mr,At)&&(Mr=Mt.from(Mr,Mr.offset,Mr.byteLength)),!Mt.isBuffer(Mr))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Mr);if(Ir===void 0&&(Ir=0),Hr===void 0&&(Hr=Mr?Mr.length:0),Vr===void 0&&(Vr=0),on===void 0&&(on=this.length),Ir<0||Hr>Mr.length||Vr<0||on>this.length)throw new RangeError("out of range index");if(Vr>=on&&Ir>=Hr)return 0;if(Vr>=on)return-1;if(Ir>=Hr)return 1;if(Ir>>>=0,Hr>>>=0,Vr>>>=0,on>>>=0,this===Mr)return 0;let Qr=on-Vr,hn=Hr-Ir;const Wn=Math.min(Qr,hn),_n=this.slice(Vr,on),An=Mr.slice(Ir,Hr);for(let Yn=0;Yn<Wn;++Yn)if(_n[Yn]!==An[Yn]){Qr=_n[Yn],hn=An[Yn];break}return Qr<hn?-1:hn<Qr?1:0};function yr(kr,Mr,Ir,Hr,Vr){if(kr.length===0)return-1;if(typeof Ir=="string"?(Hr=Ir,Ir=0):Ir>2147483647?Ir=2147483647:Ir<-2147483648&&(Ir=-2147483648),Ir=+Ir,Yr(Ir)&&(Ir=Vr?0:kr.length-1),Ir<0&&(Ir=kr.length+Ir),Ir>=kr.length){if(Vr)return-1;Ir=kr.length-1}else if(Ir<0)if(Vr)Ir=0;else return-1;if(typeof Mr=="string"&&(Mr=Mt.from(Mr,Hr)),Mt.isBuffer(Mr))return Mr.length===0?-1:xr(kr,Mr,Ir,Hr,Vr);if(typeof Mr=="number")return Mr=Mr&255,typeof At.prototype.indexOf=="function"?Vr?At.prototype.indexOf.call(kr,Mr,Ir):At.prototype.lastIndexOf.call(kr,Mr,Ir):xr(kr,[Mr],Ir,Hr,Vr);throw new TypeError("val must be string, number or Buffer")}function xr(kr,Mr,Ir,Hr,Vr){let on=1,Qr=kr.length,hn=Mr.length;if(Hr!==void 0&&(Hr=String(Hr).toLowerCase(),Hr==="ucs2"||Hr==="ucs-2"||Hr==="utf16le"||Hr==="utf-16le")){if(kr.length<2||Mr.length<2)return-1;on=2,Qr/=2,hn/=2,Ir/=2}function Wn(An,Yn){return on===1?An[Yn]:An.readUInt16BE(Yn*on)}let _n;if(Vr){let An=-1;for(_n=Ir;_n<Qr;_n++)if(Wn(kr,_n)===Wn(Mr,An===-1?0:_n-An)){if(An===-1&&(An=_n),_n-An+1===hn)return An*on}else An!==-1&&(_n-=_n-An),An=-1}else for(Ir+hn>Qr&&(Ir=Qr-hn),_n=Ir;_n>=0;_n--){let An=!0;for(let Yn=0;Yn<hn;Yn++)if(Wn(kr,_n+Yn)!==Wn(Mr,Yn)){An=!1;break}if(An)return _n}return-1}Mt.prototype.includes=function(Mr,Ir,Hr){return this.indexOf(Mr,Ir,Hr)!==-1},Mt.prototype.indexOf=function(Mr,Ir,Hr){return yr(this,Mr,Ir,Hr,!0)},Mt.prototype.lastIndexOf=function(Mr,Ir,Hr){return yr(this,Mr,Ir,Hr,!1)};function rr(kr,Mr,Ir,Hr){Ir=Number(Ir)||0;const Vr=kr.length-Ir;Hr?(Hr=Number(Hr),Hr>Vr&&(Hr=Vr)):Hr=Vr;const on=Mr.length;Hr>on/2&&(Hr=on/2);let Qr;for(Qr=0;Qr<Hr;++Qr){const hn=parseInt(Mr.substr(Qr*2,2),16);if(Yr(hn))return Qr;kr[Ir+Qr]=hn}return Qr}function Lt(kr,Mr,Ir,Hr){return Xr(Kr(Mr,kr.length-Ir),kr,Ir,Hr)}function Ht(kr,Mr,Ir,Hr){return Xr(qr(Mr),kr,Ir,Hr)}function Wt(kr,Mr,Ir,Hr){return Xr(dn(Mr),kr,Ir,Hr)}function Gt(kr,Mr,Ir,Hr){return Xr(Zr(Mr,kr.length-Ir),kr,Ir,Hr)}Mt.prototype.write=function(Mr,Ir,Hr,Vr){if(Ir===void 0)Vr="utf8",Hr=this.length,Ir=0;else if(Hr===void 0&&typeof Ir=="string")Vr=Ir,Hr=this.length,Ir=0;else if(isFinite(Ir))Ir=Ir>>>0,isFinite(Hr)?(Hr=Hr>>>0,Vr===void 0&&(Vr="utf8")):(Vr=Hr,Hr=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const on=this.length-Ir;if((Hr===void 0||Hr>on)&&(Hr=on),Mr.length>0&&(Hr<0||Ir<0)||Ir>this.length)throw new RangeError("Attempt to write outside buffer bounds");Vr||(Vr="utf8");let Qr=!1;for(;;)switch(Vr){case"hex":return rr(this,Mr,Ir,Hr);case"utf8":case"utf-8":return Lt(this,Mr,Ir,Hr);case"ascii":case"latin1":case"binary":return Ht(this,Mr,Ir,Hr);case"base64":return Wt(this,Mr,Ir,Hr);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Gt(this,Mr,Ir,Hr);default:if(Qr)throw new TypeError("Unknown encoding: "+Vr);Vr=(""+Vr).toLowerCase(),Qr=!0}},Mt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Yt(kr,Mr,Ir){return Mr===0&&Ir===kr.length?Et.fromByteArray(kr):Et.fromByteArray(kr.slice(Mr,Ir))}function er(kr,Mr,Ir){Ir=Math.min(kr.length,Ir);const Hr=[];let Vr=Mr;for(;Vr<Ir;){const on=kr[Vr];let Qr=null,hn=on>239?4:on>223?3:on>191?2:1;if(Vr+hn<=Ir){let Wn,_n,An,Yn;switch(hn){case 1:on<128&&(Qr=on);break;case 2:Wn=kr[Vr+1],(Wn&192)===128&&(Yn=(on&31)<<6|Wn&63,Yn>127&&(Qr=Yn));break;case 3:Wn=kr[Vr+1],_n=kr[Vr+2],(Wn&192)===128&&(_n&192)===128&&(Yn=(on&15)<<12|(Wn&63)<<6|_n&63,Yn>2047&&(Yn<55296||Yn>57343)&&(Qr=Yn));break;case 4:Wn=kr[Vr+1],_n=kr[Vr+2],An=kr[Vr+3],(Wn&192)===128&&(_n&192)===128&&(An&192)===128&&(Yn=(on&15)<<18|(Wn&63)<<12|(_n&63)<<6|An&63,Yn>65535&&Yn<1114112&&(Qr=Yn))}}Qr===null?(Qr=65533,hn=1):Qr>65535&&(Qr-=65536,Hr.push(Qr>>>10&1023|55296),Qr=56320|Qr&1023),Hr.push(Qr),Vr+=hn}return Jt(Hr)}const lr=4096;function Jt(kr){const Mr=kr.length;if(Mr<=lr)return String.fromCharCode.apply(String,kr);let Ir="",Hr=0;for(;Hr<Mr;)Ir+=String.fromCharCode.apply(String,kr.slice(Hr,Hr+=lr));return Ir}function Ut(kr,Mr,Ir){let Hr="";Ir=Math.min(kr.length,Ir);for(let Vr=Mr;Vr<Ir;++Vr)Hr+=String.fromCharCode(kr[Vr]&127);return Hr}function ir(kr,Mr,Ir){let Hr="";Ir=Math.min(kr.length,Ir);for(let Vr=Mr;Vr<Ir;++Vr)Hr+=String.fromCharCode(kr[Vr]);return Hr}function Cr(kr,Mr,Ir){const Hr=kr.length;(!Mr||Mr<0)&&(Mr=0),(!Ir||Ir<0||Ir>Hr)&&(Ir=Hr);let Vr="";for(let on=Mr;on<Ir;++on)Vr+=Gr[kr[on]];return Vr}function _r(kr,Mr,Ir){const Hr=kr.slice(Mr,Ir);let Vr="";for(let on=0;on<Hr.length-1;on+=2)Vr+=String.fromCharCode(Hr[on]+Hr[on+1]*256);return Vr}Mt.prototype.slice=function(Mr,Ir){const Hr=this.length;Mr=~~Mr,Ir=Ir===void 0?Hr:~~Ir,Mr<0?(Mr+=Hr,Mr<0&&(Mr=0)):Mr>Hr&&(Mr=Hr),Ir<0?(Ir+=Hr,Ir<0&&(Ir=0)):Ir>Hr&&(Ir=Hr),Ir<Mr&&(Ir=Mr);const Vr=this.subarray(Mr,Ir);return Object.setPrototypeOf(Vr,Mt.prototype),Vr};function $r(kr,Mr,Ir){if(kr%1!==0||kr<0)throw new RangeError("offset is not uint");if(kr+Mr>Ir)throw new RangeError("Trying to access beyond buffer length")}Mt.prototype.readUintLE=Mt.prototype.readUIntLE=function(Mr,Ir,Hr){Mr=Mr>>>0,Ir=Ir>>>0,Hr||$r(Mr,Ir,this.length);let Vr=this[Mr],on=1,Qr=0;for(;++Qr<Ir&&(on*=256);)Vr+=this[Mr+Qr]*on;return Vr},Mt.prototype.readUintBE=Mt.prototype.readUIntBE=function(Mr,Ir,Hr){Mr=Mr>>>0,Ir=Ir>>>0,Hr||$r(Mr,Ir,this.length);let Vr=this[Mr+--Ir],on=1;for(;Ir>0&&(on*=256);)Vr+=this[Mr+--Ir]*on;return Vr},Mt.prototype.readUint8=Mt.prototype.readUInt8=function(Mr,Ir){return Mr=Mr>>>0,Ir||$r(Mr,1,this.length),this[Mr]},Mt.prototype.readUint16LE=Mt.prototype.readUInt16LE=function(Mr,Ir){return Mr=Mr>>>0,Ir||$r(Mr,2,this.length),this[Mr]|this[Mr+1]<<8},Mt.prototype.readUint16BE=Mt.prototype.readUInt16BE=function(Mr,Ir){return Mr=Mr>>>0,Ir||$r(Mr,2,this.length),this[Mr]<<8|this[Mr+1]},Mt.prototype.readUint32LE=Mt.prototype.readUInt32LE=function(Mr,Ir){return Mr=Mr>>>0,Ir||$r(Mr,4,this.length),(this[Mr]|this[Mr+1]<<8|this[Mr+2]<<16)+this[Mr+3]*16777216},Mt.prototype.readUint32BE=Mt.prototype.readUInt32BE=function(Mr,Ir){return Mr=Mr>>>0,Ir||$r(Mr,4,this.length),this[Mr]*16777216+(this[Mr+1]<<16|this[Mr+2]<<8|this[Mr+3])},Mt.prototype.readBigUInt64LE=Jr(function(Mr){Mr=Mr>>>0,Lr(Mr,"offset");const Ir=this[Mr],Hr=this[Mr+7];(Ir===void 0||Hr===void 0)&&Wr(Mr,this.length-8);const Vr=Ir+this[++Mr]*2**8+this[++Mr]*2**16+this[++Mr]*2**24,on=this[++Mr]+this[++Mr]*2**8+this[++Mr]*2**16+Hr*2**24;return BigInt(Vr)+(BigInt(on)<<BigInt(32))}),Mt.prototype.readBigUInt64BE=Jr(function(Mr){Mr=Mr>>>0,Lr(Mr,"offset");const Ir=this[Mr],Hr=this[Mr+7];(Ir===void 0||Hr===void 0)&&Wr(Mr,this.length-8);const Vr=Ir*2**24+this[++Mr]*2**16+this[++Mr]*2**8+this[++Mr],on=this[++Mr]*2**24+this[++Mr]*2**16+this[++Mr]*2**8+Hr;return(BigInt(Vr)<<BigInt(32))+BigInt(on)}),Mt.prototype.readIntLE=function(Mr,Ir,Hr){Mr=Mr>>>0,Ir=Ir>>>0,Hr||$r(Mr,Ir,this.length);let Vr=this[Mr],on=1,Qr=0;for(;++Qr<Ir&&(on*=256);)Vr+=this[Mr+Qr]*on;return on*=128,Vr>=on&&(Vr-=Math.pow(2,8*Ir)),Vr},Mt.prototype.readIntBE=function(Mr,Ir,Hr){Mr=Mr>>>0,Ir=Ir>>>0,Hr||$r(Mr,Ir,this.length);let Vr=Ir,on=1,Qr=this[Mr+--Vr];for(;Vr>0&&(on*=256);)Qr+=this[Mr+--Vr]*on;return on*=128,Qr>=on&&(Qr-=Math.pow(2,8*Ir)),Qr},Mt.prototype.readInt8=function(Mr,Ir){return Mr=Mr>>>0,Ir||$r(Mr,1,this.length),this[Mr]&128?(255-this[Mr]+1)*-1:this[Mr]},Mt.prototype.readInt16LE=function(Mr,Ir){Mr=Mr>>>0,Ir||$r(Mr,2,this.length);const Hr=this[Mr]|this[Mr+1]<<8;return Hr&32768?Hr|4294901760:Hr},Mt.prototype.readInt16BE=function(Mr,Ir){Mr=Mr>>>0,Ir||$r(Mr,2,this.length);const Hr=this[Mr+1]|this[Mr]<<8;return Hr&32768?Hr|4294901760:Hr},Mt.prototype.readInt32LE=function(Mr,Ir){return Mr=Mr>>>0,Ir||$r(Mr,4,this.length),this[Mr]|this[Mr+1]<<8|this[Mr+2]<<16|this[Mr+3]<<24},Mt.prototype.readInt32BE=function(Mr,Ir){return Mr=Mr>>>0,Ir||$r(Mr,4,this.length),this[Mr]<<24|this[Mr+1]<<16|this[Mr+2]<<8|this[Mr+3]},Mt.prototype.readBigInt64LE=Jr(function(Mr){Mr=Mr>>>0,Lr(Mr,"offset");const Ir=this[Mr],Hr=this[Mr+7];(Ir===void 0||Hr===void 0)&&Wr(Mr,this.length-8);const Vr=this[Mr+4]+this[Mr+5]*2**8+this[Mr+6]*2**16+(Hr<<24);return(BigInt(Vr)<<BigInt(32))+BigInt(Ir+this[++Mr]*2**8+this[++Mr]*2**16+this[++Mr]*2**24)}),Mt.prototype.readBigInt64BE=Jr(function(Mr){Mr=Mr>>>0,Lr(Mr,"offset");const Ir=this[Mr],Hr=this[Mr+7];(Ir===void 0||Hr===void 0)&&Wr(Mr,this.length-8);const Vr=(Ir<<24)+this[++Mr]*2**16+this[++Mr]*2**8+this[++Mr];return(BigInt(Vr)<<BigInt(32))+BigInt(this[++Mr]*2**24+this[++Mr]*2**16+this[++Mr]*2**8+Hr)}),Mt.prototype.readFloatLE=function(Mr,Ir){return Mr=Mr>>>0,Ir||$r(Mr,4,this.length),yt.read(this,Mr,!0,23,4)},Mt.prototype.readFloatBE=function(Mr,Ir){return Mr=Mr>>>0,Ir||$r(Mr,4,this.length),yt.read(this,Mr,!1,23,4)},Mt.prototype.readDoubleLE=function(Mr,Ir){return Mr=Mr>>>0,Ir||$r(Mr,8,this.length),yt.read(this,Mr,!0,52,8)},Mt.prototype.readDoubleBE=function(Mr,Ir){return Mr=Mr>>>0,Ir||$r(Mr,8,this.length),yt.read(this,Mr,!1,52,8)};function Tr(kr,Mr,Ir,Hr,Vr,on){if(!Mt.isBuffer(kr))throw new TypeError('"buffer" argument must be a Buffer instance');if(Mr>Vr||Mr<on)throw new RangeError('"value" argument is out of bounds');if(Ir+Hr>kr.length)throw new RangeError("Index out of range")}Mt.prototype.writeUintLE=Mt.prototype.writeUIntLE=function(Mr,Ir,Hr,Vr){if(Mr=+Mr,Ir=Ir>>>0,Hr=Hr>>>0,!Vr){const hn=Math.pow(2,8*Hr)-1;Tr(this,Mr,Ir,Hr,hn,0)}let on=1,Qr=0;for(this[Ir]=Mr&255;++Qr<Hr&&(on*=256);)this[Ir+Qr]=Mr/on&255;return Ir+Hr},Mt.prototype.writeUintBE=Mt.prototype.writeUIntBE=function(Mr,Ir,Hr,Vr){if(Mr=+Mr,Ir=Ir>>>0,Hr=Hr>>>0,!Vr){const hn=Math.pow(2,8*Hr)-1;Tr(this,Mr,Ir,Hr,hn,0)}let on=Hr-1,Qr=1;for(this[Ir+on]=Mr&255;--on>=0&&(Qr*=256);)this[Ir+on]=Mr/Qr&255;return Ir+Hr},Mt.prototype.writeUint8=Mt.prototype.writeUInt8=function(Mr,Ir,Hr){return Mr=+Mr,Ir=Ir>>>0,Hr||Tr(this,Mr,Ir,1,255,0),this[Ir]=Mr&255,Ir+1},Mt.prototype.writeUint16LE=Mt.prototype.writeUInt16LE=function(Mr,Ir,Hr){return Mr=+Mr,Ir=Ir>>>0,Hr||Tr(this,Mr,Ir,2,65535,0),this[Ir]=Mr&255,this[Ir+1]=Mr>>>8,Ir+2},Mt.prototype.writeUint16BE=Mt.prototype.writeUInt16BE=function(Mr,Ir,Hr){return Mr=+Mr,Ir=Ir>>>0,Hr||Tr(this,Mr,Ir,2,65535,0),this[Ir]=Mr>>>8,this[Ir+1]=Mr&255,Ir+2},Mt.prototype.writeUint32LE=Mt.prototype.writeUInt32LE=function(Mr,Ir,Hr){return Mr=+Mr,Ir=Ir>>>0,Hr||Tr(this,Mr,Ir,4,4294967295,0),this[Ir+3]=Mr>>>24,this[Ir+2]=Mr>>>16,this[Ir+1]=Mr>>>8,this[Ir]=Mr&255,Ir+4},Mt.prototype.writeUint32BE=Mt.prototype.writeUInt32BE=function(Mr,Ir,Hr){return Mr=+Mr,Ir=Ir>>>0,Hr||Tr(this,Mr,Ir,4,4294967295,0),this[Ir]=Mr>>>24,this[Ir+1]=Mr>>>16,this[Ir+2]=Mr>>>8,this[Ir+3]=Mr&255,Ir+4};function Dr(kr,Mr,Ir,Hr,Vr){Nr(Mr,Hr,Vr,kr,Ir,7);let on=Number(Mr&BigInt(4294967295));kr[Ir++]=on,on=on>>8,kr[Ir++]=on,on=on>>8,kr[Ir++]=on,on=on>>8,kr[Ir++]=on;let Qr=Number(Mr>>BigInt(32)&BigInt(4294967295));return kr[Ir++]=Qr,Qr=Qr>>8,kr[Ir++]=Qr,Qr=Qr>>8,kr[Ir++]=Qr,Qr=Qr>>8,kr[Ir++]=Qr,Ir}function Ar(kr,Mr,Ir,Hr,Vr){Nr(Mr,Hr,Vr,kr,Ir,7);let on=Number(Mr&BigInt(4294967295));kr[Ir+7]=on,on=on>>8,kr[Ir+6]=on,on=on>>8,kr[Ir+5]=on,on=on>>8,kr[Ir+4]=on;let Qr=Number(Mr>>BigInt(32)&BigInt(4294967295));return kr[Ir+3]=Qr,Qr=Qr>>8,kr[Ir+2]=Qr,Qr=Qr>>8,kr[Ir+1]=Qr,Qr=Qr>>8,kr[Ir]=Qr,Ir+8}Mt.prototype.writeBigUInt64LE=Jr(function(Mr,Ir=0){return Dr(this,Mr,Ir,BigInt(0),BigInt("0xffffffffffffffff"))}),Mt.prototype.writeBigUInt64BE=Jr(function(Mr,Ir=0){return Ar(this,Mr,Ir,BigInt(0),BigInt("0xffffffffffffffff"))}),Mt.prototype.writeIntLE=function(Mr,Ir,Hr,Vr){if(Mr=+Mr,Ir=Ir>>>0,!Vr){const Wn=Math.pow(2,8*Hr-1);Tr(this,Mr,Ir,Hr,Wn-1,-Wn)}let on=0,Qr=1,hn=0;for(this[Ir]=Mr&255;++on<Hr&&(Qr*=256);)Mr<0&&hn===0&&this[Ir+on-1]!==0&&(hn=1),this[Ir+on]=(Mr/Qr>>0)-hn&255;return Ir+Hr},Mt.prototype.writeIntBE=function(Mr,Ir,Hr,Vr){if(Mr=+Mr,Ir=Ir>>>0,!Vr){const Wn=Math.pow(2,8*Hr-1);Tr(this,Mr,Ir,Hr,Wn-1,-Wn)}let on=Hr-1,Qr=1,hn=0;for(this[Ir+on]=Mr&255;--on>=0&&(Qr*=256);)Mr<0&&hn===0&&this[Ir+on+1]!==0&&(hn=1),this[Ir+on]=(Mr/Qr>>0)-hn&255;return Ir+Hr},Mt.prototype.writeInt8=function(Mr,Ir,Hr){return Mr=+Mr,Ir=Ir>>>0,Hr||Tr(this,Mr,Ir,1,127,-128),Mr<0&&(Mr=255+Mr+1),this[Ir]=Mr&255,Ir+1},Mt.prototype.writeInt16LE=function(Mr,Ir,Hr){return Mr=+Mr,Ir=Ir>>>0,Hr||Tr(this,Mr,Ir,2,32767,-32768),this[Ir]=Mr&255,this[Ir+1]=Mr>>>8,Ir+2},Mt.prototype.writeInt16BE=function(Mr,Ir,Hr){return Mr=+Mr,Ir=Ir>>>0,Hr||Tr(this,Mr,Ir,2,32767,-32768),this[Ir]=Mr>>>8,this[Ir+1]=Mr&255,Ir+2},Mt.prototype.writeInt32LE=function(Mr,Ir,Hr){return Mr=+Mr,Ir=Ir>>>0,Hr||Tr(this,Mr,Ir,4,2147483647,-2147483648),this[Ir]=Mr&255,this[Ir+1]=Mr>>>8,this[Ir+2]=Mr>>>16,this[Ir+3]=Mr>>>24,Ir+4},Mt.prototype.writeInt32BE=function(Mr,Ir,Hr){return Mr=+Mr,Ir=Ir>>>0,Hr||Tr(this,Mr,Ir,4,2147483647,-2147483648),Mr<0&&(Mr=4294967295+Mr+1),this[Ir]=Mr>>>24,this[Ir+1]=Mr>>>16,this[Ir+2]=Mr>>>8,this[Ir+3]=Mr&255,Ir+4},Mt.prototype.writeBigInt64LE=Jr(function(Mr,Ir=0){return Dr(this,Mr,Ir,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),Mt.prototype.writeBigInt64BE=Jr(function(Mr,Ir=0){return Ar(this,Mr,Ir,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Fr(kr,Mr,Ir,Hr,Vr,on){if(Ir+Hr>kr.length)throw new RangeError("Index out of range");if(Ir<0)throw new RangeError("Index out of range")}function Rr(kr,Mr,Ir,Hr,Vr){return Mr=+Mr,Ir=Ir>>>0,Vr||Fr(kr,Mr,Ir,4),yt.write(kr,Mr,Ir,Hr,23,4),Ir+4}Mt.prototype.writeFloatLE=function(Mr,Ir,Hr){return Rr(this,Mr,Ir,!0,Hr)},Mt.prototype.writeFloatBE=function(Mr,Ir,Hr){return Rr(this,Mr,Ir,!1,Hr)};function wr(kr,Mr,Ir,Hr,Vr){return Mr=+Mr,Ir=Ir>>>0,Vr||Fr(kr,Mr,Ir,8),yt.write(kr,Mr,Ir,Hr,52,8),Ir+8}Mt.prototype.writeDoubleLE=function(Mr,Ir,Hr){return wr(this,Mr,Ir,!0,Hr)},Mt.prototype.writeDoubleBE=function(Mr,Ir,Hr){return wr(this,Mr,Ir,!1,Hr)},Mt.prototype.copy=function(Mr,Ir,Hr,Vr){if(!Mt.isBuffer(Mr))throw new TypeError("argument should be a Buffer");if(Hr||(Hr=0),!Vr&&Vr!==0&&(Vr=this.length),Ir>=Mr.length&&(Ir=Mr.length),Ir||(Ir=0),Vr>0&&Vr<Hr&&(Vr=Hr),Vr===Hr||Mr.length===0||this.length===0)return 0;if(Ir<0)throw new RangeError("targetStart out of bounds");if(Hr<0||Hr>=this.length)throw new RangeError("Index out of range");if(Vr<0)throw new RangeError("sourceEnd out of bounds");Vr>this.length&&(Vr=this.length),Mr.length-Ir<Vr-Hr&&(Vr=Mr.length-Ir+Hr);const on=Vr-Hr;return this===Mr&&typeof At.prototype.copyWithin=="function"?this.copyWithin(Ir,Hr,Vr):At.prototype.set.call(Mr,this.subarray(Hr,Vr),Ir),on},Mt.prototype.fill=function(Mr,Ir,Hr,Vr){if(typeof Mr=="string"){if(typeof Ir=="string"?(Vr=Ir,Ir=0,Hr=this.length):typeof Hr=="string"&&(Vr=Hr,Hr=this.length),Vr!==void 0&&typeof Vr!="string")throw new TypeError("encoding must be a string");if(typeof Vr=="string"&&!Mt.isEncoding(Vr))throw new TypeError("Unknown encoding: "+Vr);if(Mr.length===1){const Qr=Mr.charCodeAt(0);(Vr==="utf8"&&Qr<128||Vr==="latin1")&&(Mr=Qr)}}else typeof Mr=="number"?Mr=Mr&255:typeof Mr=="boolean"&&(Mr=Number(Mr));if(Ir<0||this.length<Ir||this.length<Hr)throw new RangeError("Out of range index");if(Hr<=Ir)return this;Ir=Ir>>>0,Hr=Hr===void 0?this.length:Hr>>>0,Mr||(Mr=0);let on;if(typeof Mr=="number")for(on=Ir;on<Hr;++on)this[on]=Mr;else{const Qr=Mt.isBuffer(Mr)?Mr:Mt.from(Mr,Vr),hn=Qr.length;if(hn===0)throw new TypeError('The value "'+Mr+'" is invalid for argument "value"');for(on=0;on<Hr-Ir;++on)this[on+Ir]=Qr[on%hn]}return this};const Sr={};function Br(kr,Mr,Ir){Sr[kr]=class extends Ir{constructor(){super(),Object.defineProperty(this,"message",{value:Mr.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${kr}]`,this.stack,delete this.name}get code(){return kr}set code(Vr){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:Vr,writable:!0})}toString(){return`${this.name} [${kr}]: ${this.message}`}}}Br("ERR_BUFFER_OUT_OF_BOUNDS",function(kr){return kr?`${kr} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Br("ERR_INVALID_ARG_TYPE",function(kr,Mr){return`The "${kr}" argument must be of type number. Received type ${typeof Mr}`},TypeError),Br("ERR_OUT_OF_RANGE",function(kr,Mr,Ir){let Hr=`The value of "${kr}" is out of range.`,Vr=Ir;return Number.isInteger(Ir)&&Math.abs(Ir)>2**32?Vr=Or(String(Ir)):typeof Ir=="bigint"&&(Vr=String(Ir),(Ir>BigInt(2)**BigInt(32)||Ir<-(BigInt(2)**BigInt(32)))&&(Vr=Or(Vr)),Vr+="n"),Hr+=` It must be ${Mr}. Received ${Vr}`,Hr},RangeError);function Or(kr){let Mr="",Ir=kr.length;const Hr=kr[0]==="-"?1:0;for(;Ir>=Hr+4;Ir-=3)Mr=`_${kr.slice(Ir-3,Ir)}${Mr}`;return`${kr.slice(0,Ir)}${Mr}`}function Pr(kr,Mr,Ir){Lr(Mr,"offset"),(kr[Mr]===void 0||kr[Mr+Ir]===void 0)&&Wr(Mr,kr.length-(Ir+1))}function Nr(kr,Mr,Ir,Hr,Vr,on){if(kr>Ir||kr<Mr){const Qr=typeof Mr=="bigint"?"n":"";let hn;throw Mr===0||Mr===BigInt(0)?hn=`>= 0${Qr} and < 2${Qr} ** ${(on+1)*8}${Qr}`:hn=`>= -(2${Qr} ** ${(on+1)*8-1}${Qr}) and < 2 ** ${(on+1)*8-1}${Qr}`,new Sr.ERR_OUT_OF_RANGE("value",hn,kr)}Pr(Hr,Vr,on)}function Lr(kr,Mr){if(typeof kr!="number")throw new Sr.ERR_INVALID_ARG_TYPE(Mr,"number",kr)}function Wr(kr,Mr,Ir){throw Math.floor(kr)!==kr?(Lr(kr,Ir),new Sr.ERR_OUT_OF_RANGE("offset","an integer",kr)):Mr<0?new Sr.ERR_BUFFER_OUT_OF_BOUNDS:new Sr.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${Mr}`,kr)}const Ur=/[^+/0-9A-Za-z-_]/g;function jr(kr){if(kr=kr.split("=")[0],kr=kr.trim().replace(Ur,""),kr.length<2)return"";for(;kr.length%4!==0;)kr=kr+"=";return kr}function Kr(kr,Mr){Mr=Mr||1/0;let Ir;const Hr=kr.length;let Vr=null;const on=[];for(let Qr=0;Qr<Hr;++Qr){if(Ir=kr.charCodeAt(Qr),Ir>55295&&Ir<57344){if(!Vr){if(Ir>56319){(Mr-=3)>-1&&on.push(239,191,189);continue}else if(Qr+1===Hr){(Mr-=3)>-1&&on.push(239,191,189);continue}Vr=Ir;continue}if(Ir<56320){(Mr-=3)>-1&&on.push(239,191,189),Vr=Ir;continue}Ir=(Vr-55296<<10|Ir-56320)+65536}else Vr&&(Mr-=3)>-1&&on.push(239,191,189);if(Vr=null,Ir<128){if((Mr-=1)<0)break;on.push(Ir)}else if(Ir<2048){if((Mr-=2)<0)break;on.push(Ir>>6|192,Ir&63|128)}else if(Ir<65536){if((Mr-=3)<0)break;on.push(Ir>>12|224,Ir>>6&63|128,Ir&63|128)}else if(Ir<1114112){if((Mr-=4)<0)break;on.push(Ir>>18|240,Ir>>12&63|128,Ir>>6&63|128,Ir&63|128)}else throw new Error("Invalid code point")}return on}function qr(kr){const Mr=[];for(let Ir=0;Ir<kr.length;++Ir)Mr.push(kr.charCodeAt(Ir)&255);return Mr}function Zr(kr,Mr){let Ir,Hr,Vr;const on=[];for(let Qr=0;Qr<kr.length&&!((Mr-=2)<0);++Qr)Ir=kr.charCodeAt(Qr),Hr=Ir>>8,Vr=Ir%256,on.push(Vr),on.push(Hr);return on}function dn(kr){return Et.toByteArray(jr(kr))}function Xr(kr,Mr,Ir,Hr){let Vr;for(Vr=0;Vr<Hr&&!(Vr+Ir>=Mr.length||Vr>=kr.length);++Vr)Mr[Vr+Ir]=kr[Vr];return Vr}function un(kr,Mr){return kr instanceof Mr||kr!=null&&kr.constructor!=null&&kr.constructor.name!=null&&kr.constructor.name===Mr.name}function Yr(kr){return kr!==kr}const Gr=function(){const kr="0123456789abcdef",Mr=new Array(256);for(let Ir=0;Ir<16;++Ir){const Hr=Ir*16;for(let Vr=0;Vr<16;++Vr)Mr[Hr+Vr]=kr[Ir]+kr[Vr]}return Mr}();function Jr(kr){return typeof BigInt>"u"?wn:kr}function wn(){throw new Error("BigInt not supported")}})(buffer$1);const Buffer$g=buffer$1.Buffer,Blob$1=buffer$1.Blob,BlobOptions=buffer$1.BlobOptions,Buffer$1$1=buffer$1.Buffer,File=buffer$1.File,FileOptions=buffer$1.FileOptions,INSPECT_MAX_BYTES=buffer$1.INSPECT_MAX_BYTES,SlowBuffer=buffer$1.SlowBuffer,TranscodeEncoding=buffer$1.TranscodeEncoding,atob$1=buffer$1.atob,btoa$1=buffer$1.btoa,constants$2=buffer$1.constants,isAscii=buffer$1.isAscii,isUtf8=buffer$1.isUtf8,kMaxLength=buffer$1.kMaxLength,kStringMaxLength=buffer$1.kStringMaxLength,resolveObjectURL=buffer$1.resolveObjectURL,transcode=buffer$1.transcode,dist$2=Object.freeze(Object.defineProperty({__proto__:null,Blob:Blob$1,BlobOptions,Buffer:Buffer$1$1,File,FileOptions,INSPECT_MAX_BYTES,SlowBuffer,TranscodeEncoding,atob:atob$1,btoa:btoa$1,constants:constants$2,default:Buffer$g,isAscii,isUtf8,kMaxLength,kStringMaxLength,resolveObjectURL,transcode},Symbol.toStringTag,{value:"Module"})),require$$0$3=getAugmentedNamespace(dist$2);/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */(function(ht,Et){var yt=require$$0$3,Ct=yt.Buffer;function $t(Bt,Dt){for(var Ft in Bt)Dt[Ft]=Bt[Ft]}Ct.from&&Ct.alloc&&Ct.allocUnsafe&&Ct.allocUnsafeSlow?ht.exports=yt:($t(yt,Et),Et.Buffer=At);function At(Bt,Dt,Ft){return Ct(Bt,Dt,Ft)}At.prototype=Object.create(Ct.prototype),$t(Ct,At),At.from=function(Bt,Dt,Ft){if(typeof Bt=="number")throw new TypeError("Argument must not be a number");return Ct(Bt,Dt,Ft)},At.alloc=function(Bt,Dt,Ft){if(typeof Bt!="number")throw new TypeError("Argument must be a number");var kt=Ct(Bt);return Dt!==void 0?typeof Ft=="string"?kt.fill(Dt,Ft):kt.fill(Dt):kt.fill(0),kt},At.allocUnsafe=function(Bt){if(typeof Bt!="number")throw new TypeError("Argument must be a number");return Ct(Bt)},At.allocUnsafeSlow=function(Bt){if(typeof Bt!="number")throw new TypeError("Argument must be a number");return yt.SlowBuffer(Bt)}})(safeBuffer$1,safeBuffer$1.exports);var safeBufferExports=safeBuffer$1.exports,MAX_BYTES=65536,MAX_UINT32=4294967295;function oldBrowser(){throw new Error(`Secure random number generation is not supported by this browser.
Use Chrome, Firefox or Internet Explorer 11`)}var Buffer$f=safeBufferExports.Buffer,crypto$1=commonjsGlobal.crypto||commonjsGlobal.msCrypto;crypto$1&&crypto$1.getRandomValues?browser$c.exports=randomBytes:browser$c.exports=oldBrowser;function randomBytes(ht,Et){if(ht>MAX_UINT32)throw new RangeError("requested too many random bytes");var yt=Buffer$f.allocUnsafe(ht);if(ht>0)if(ht>MAX_BYTES)for(var Ct=0;Ct<ht;Ct+=MAX_BYTES)crypto$1.getRandomValues(yt.slice(Ct,Ct+MAX_BYTES));else crypto$1.getRandomValues(yt);return typeof Et=="function"?process$1$1.nextTick(function(){Et(null,yt)}):yt}var browserExports=browser$c.exports,inherits_browser={exports:{}};typeof Object.create=="function"?inherits_browser.exports=function(Et,yt){yt&&(Et.super_=yt,Et.prototype=Object.create(yt.prototype,{constructor:{value:Et,enumerable:!1,writable:!0,configurable:!0}}))}:inherits_browser.exports=function(Et,yt){if(yt){Et.super_=yt;var Ct=function(){};Ct.prototype=yt.prototype,Et.prototype=new Ct,Et.prototype.constructor=Et}};var inherits_browserExports=inherits_browser.exports,readableBrowser$1={exports:{}},events={exports:{}},R$2=typeof Reflect=="object"?Reflect:null,ReflectApply=R$2&&typeof R$2.apply=="function"?R$2.apply:function(Et,yt,Ct){return Function.prototype.apply.call(Et,yt,Ct)},ReflectOwnKeys;R$2&&typeof R$2.ownKeys=="function"?ReflectOwnKeys=R$2.ownKeys:Object.getOwnPropertySymbols?ReflectOwnKeys=function(Et){return Object.getOwnPropertyNames(Et).concat(Object.getOwnPropertySymbols(Et))}:ReflectOwnKeys=function(Et){return Object.getOwnPropertyNames(Et)};function ProcessEmitWarning(ht){console&&console.warn&&console.warn(ht)}var NumberIsNaN=Number.isNaN||function(Et){return Et!==Et};function EventEmitter(){EventEmitter.init.call(this)}events.exports=EventEmitter;events.exports.once=once$1;EventEmitter.EventEmitter=EventEmitter;EventEmitter.prototype._events=void 0;EventEmitter.prototype._eventsCount=0;EventEmitter.prototype._maxListeners=void 0;var defaultMaxListeners=10;function checkListener(ht){if(typeof ht!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof ht)}Object.defineProperty(EventEmitter,"defaultMaxListeners",{enumerable:!0,get:function(){return defaultMaxListeners},set:function(ht){if(typeof ht!="number"||ht<0||NumberIsNaN(ht))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+ht+".");defaultMaxListeners=ht}});EventEmitter.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};EventEmitter.prototype.setMaxListeners=function(Et){if(typeof Et!="number"||Et<0||NumberIsNaN(Et))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+Et+".");return this._maxListeners=Et,this};function _getMaxListeners(ht){return ht._maxListeners===void 0?EventEmitter.defaultMaxListeners:ht._maxListeners}EventEmitter.prototype.getMaxListeners=function(){return _getMaxListeners(this)};EventEmitter.prototype.emit=function(Et){for(var yt=[],Ct=1;Ct<arguments.length;Ct++)yt.push(arguments[Ct]);var $t=Et==="error",At=this._events;if(At!==void 0)$t=$t&&At.error===void 0;else if(!$t)return!1;if($t){var Bt;if(yt.length>0&&(Bt=yt[0]),Bt instanceof Error)throw Bt;var Dt=new Error("Unhandled error."+(Bt?" ("+Bt.message+")":""));throw Dt.context=Bt,Dt}var Ft=At[Et];if(Ft===void 0)return!1;if(typeof Ft=="function")ReflectApply(Ft,this,yt);else for(var kt=Ft.length,Mt=arrayClone(Ft,kt),Ct=0;Ct<kt;++Ct)ReflectApply(Mt[Ct],this,yt);return!0};function _addListener(ht,Et,yt,Ct){var $t,At,Bt;if(checkListener(yt),At=ht._events,At===void 0?(At=ht._events=Object.create(null),ht._eventsCount=0):(At.newListener!==void 0&&(ht.emit("newListener",Et,yt.listener?yt.listener:yt),At=ht._events),Bt=At[Et]),Bt===void 0)Bt=At[Et]=yt,++ht._eventsCount;else if(typeof Bt=="function"?Bt=At[Et]=Ct?[yt,Bt]:[Bt,yt]:Ct?Bt.unshift(yt):Bt.push(yt),$t=_getMaxListeners(ht),$t>0&&Bt.length>$t&&!Bt.warned){Bt.warned=!0;var Dt=new Error("Possible EventEmitter memory leak detected. "+Bt.length+" "+String(Et)+" listeners added. Use emitter.setMaxListeners() to increase limit");Dt.name="MaxListenersExceededWarning",Dt.emitter=ht,Dt.type=Et,Dt.count=Bt.length,ProcessEmitWarning(Dt)}return ht}EventEmitter.prototype.addListener=function(Et,yt){return _addListener(this,Et,yt,!1)};EventEmitter.prototype.on=EventEmitter.prototype.addListener;EventEmitter.prototype.prependListener=function(Et,yt){return _addListener(this,Et,yt,!0)};function onceWrapper(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _onceWrap(ht,Et,yt){var Ct={fired:!1,wrapFn:void 0,target:ht,type:Et,listener:yt},$t=onceWrapper.bind(Ct);return $t.listener=yt,Ct.wrapFn=$t,$t}EventEmitter.prototype.once=function(Et,yt){return checkListener(yt),this.on(Et,_onceWrap(this,Et,yt)),this};EventEmitter.prototype.prependOnceListener=function(Et,yt){return checkListener(yt),this.prependListener(Et,_onceWrap(this,Et,yt)),this};EventEmitter.prototype.removeListener=function(Et,yt){var Ct,$t,At,Bt,Dt;if(checkListener(yt),$t=this._events,$t===void 0)return this;if(Ct=$t[Et],Ct===void 0)return this;if(Ct===yt||Ct.listener===yt)--this._eventsCount===0?this._events=Object.create(null):(delete $t[Et],$t.removeListener&&this.emit("removeListener",Et,Ct.listener||yt));else if(typeof Ct!="function"){for(At=-1,Bt=Ct.length-1;Bt>=0;Bt--)if(Ct[Bt]===yt||Ct[Bt].listener===yt){Dt=Ct[Bt].listener,At=Bt;break}if(At<0)return this;At===0?Ct.shift():spliceOne(Ct,At),Ct.length===1&&($t[Et]=Ct[0]),$t.removeListener!==void 0&&this.emit("removeListener",Et,Dt||yt)}return this};EventEmitter.prototype.off=EventEmitter.prototype.removeListener;EventEmitter.prototype.removeAllListeners=function(Et){var yt,Ct,$t;if(Ct=this._events,Ct===void 0)return this;if(Ct.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):Ct[Et]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete Ct[Et]),this;if(arguments.length===0){var At=Object.keys(Ct),Bt;for($t=0;$t<At.length;++$t)Bt=At[$t],Bt!=="removeListener"&&this.removeAllListeners(Bt);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(yt=Ct[Et],typeof yt=="function")this.removeListener(Et,yt);else if(yt!==void 0)for($t=yt.length-1;$t>=0;$t--)this.removeListener(Et,yt[$t]);return this};function _listeners(ht,Et,yt){var Ct=ht._events;if(Ct===void 0)return[];var $t=Ct[Et];return $t===void 0?[]:typeof $t=="function"?yt?[$t.listener||$t]:[$t]:yt?unwrapListeners($t):arrayClone($t,$t.length)}EventEmitter.prototype.listeners=function(Et){return _listeners(this,Et,!0)};EventEmitter.prototype.rawListeners=function(Et){return _listeners(this,Et,!1)};EventEmitter.listenerCount=function(ht,Et){return typeof ht.listenerCount=="function"?ht.listenerCount(Et):listenerCount.call(ht,Et)};EventEmitter.prototype.listenerCount=listenerCount;function listenerCount(ht){var Et=this._events;if(Et!==void 0){var yt=Et[ht];if(typeof yt=="function")return 1;if(yt!==void 0)return yt.length}return 0}EventEmitter.prototype.eventNames=function(){return this._eventsCount>0?ReflectOwnKeys(this._events):[]};function arrayClone(ht,Et){for(var yt=new Array(Et),Ct=0;Ct<Et;++Ct)yt[Ct]=ht[Ct];return yt}function spliceOne(ht,Et){for(;Et+1<ht.length;Et++)ht[Et]=ht[Et+1];ht.pop()}function unwrapListeners(ht){for(var Et=new Array(ht.length),yt=0;yt<Et.length;++yt)Et[yt]=ht[yt].listener||ht[yt];return Et}function once$1(ht,Et){return new Promise(function(yt,Ct){function $t(Bt){ht.removeListener(Et,At),Ct(Bt)}function At(){typeof ht.removeListener=="function"&&ht.removeListener("error",$t),yt([].slice.call(arguments))}eventTargetAgnosticAddListener(ht,Et,At,{once:!0}),Et!=="error"&&addErrorHandlerIfEventEmitter(ht,$t,{once:!0})})}function addErrorHandlerIfEventEmitter(ht,Et,yt){typeof ht.on=="function"&&eventTargetAgnosticAddListener(ht,"error",Et,yt)}function eventTargetAgnosticAddListener(ht,Et,yt,Ct){if(typeof ht.on=="function")Ct.once?ht.once(Et,yt):ht.on(Et,yt);else if(typeof ht.addEventListener=="function")ht.addEventListener(Et,function $t(At){Ct.once&&ht.removeEventListener(Et,$t),yt(At)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof ht)}var eventsExports=events.exports;const EventEmitter$1=getDefaultExportFromCjs$1(eventsExports);var streamBrowser$1,hasRequiredStreamBrowser$1;function requireStreamBrowser$1(){return hasRequiredStreamBrowser$1||(hasRequiredStreamBrowser$1=1,streamBrowser$1=eventsExports.EventEmitter),streamBrowser$1}var util$1={},types$2={},shams$1=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var Et={},yt=Symbol("test"),Ct=Object(yt);if(typeof yt=="string"||Object.prototype.toString.call(yt)!=="[object Symbol]"||Object.prototype.toString.call(Ct)!=="[object Symbol]")return!1;var $t=42;Et[yt]=$t;for(yt in Et)return!1;if(typeof Object.keys=="function"&&Object.keys(Et).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(Et).length!==0)return!1;var At=Object.getOwnPropertySymbols(Et);if(At.length!==1||At[0]!==yt||!Object.prototype.propertyIsEnumerable.call(Et,yt))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var Bt=Object.getOwnPropertyDescriptor(Et,yt);if(Bt.value!==$t||Bt.enumerable!==!0)return!1}return!0},hasSymbols$2=shams$1,shams=function(){return hasSymbols$2()&&!!Symbol.toStringTag},esErrors=Error,_eval=EvalError,range$2=RangeError,ref=ReferenceError,syntax=SyntaxError,type$2=TypeError,uri=URIError,origSymbol=typeof Symbol<"u"&&Symbol,hasSymbolSham=shams$1,hasSymbols$1=function(){return typeof origSymbol!="function"||typeof Symbol!="function"||typeof origSymbol("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:hasSymbolSham()},test$1={__proto__:null,foo:{}},$Object$4=Object,hasProto$1=function(){return{__proto__:test$1}.foo===test$1.foo&&!(test$1 instanceof $Object$4)},ERROR_MESSAGE="Function.prototype.bind called on incompatible ",toStr$4=Object.prototype.toString,max$2=Math.max,funcType="[object Function]",concatty=function(Et,yt){for(var Ct=[],$t=0;$t<Et.length;$t+=1)Ct[$t]=Et[$t];for(var At=0;At<yt.length;At+=1)Ct[At+Et.length]=yt[At];return Ct},slicy=function(Et,yt){for(var Ct=[],$t=yt,At=0;$t<Et.length;$t+=1,At+=1)Ct[At]=Et[$t];return Ct},joiny=function(ht,Et){for(var yt="",Ct=0;Ct<ht.length;Ct+=1)yt+=ht[Ct],Ct+1<ht.length&&(yt+=Et);return yt},implementation$1=function(Et){var yt=this;if(typeof yt!="function"||toStr$4.apply(yt)!==funcType)throw new TypeError(ERROR_MESSAGE+yt);for(var Ct=slicy(arguments,1),$t,At=function(){if(this instanceof $t){var Mt=yt.apply(this,concatty(Ct,arguments));return Object(Mt)===Mt?Mt:this}return yt.apply(Et,concatty(Ct,arguments))},Bt=max$2(0,yt.length-Ct.length),Dt=[],Ft=0;Ft<Bt;Ft++)Dt[Ft]="$"+Ft;if($t=Function("binder","return function ("+joiny(Dt,",")+"){ return binder.apply(this,arguments); }")(At),yt.prototype){var kt=function(){};kt.prototype=yt.prototype,$t.prototype=new kt,kt.prototype=null}return $t},implementation=implementation$1,functionBind$1=Function.prototype.bind||implementation,call$c=Function.prototype.call,$hasOwn=Object.prototype.hasOwnProperty,bind$5=functionBind$1,hasown=bind$5.call(call$c,$hasOwn),undefined$1,$Error=esErrors,$EvalError=_eval,$RangeError$2=range$2,$ReferenceError=ref,$SyntaxError$1=syntax,$TypeError$b=type$2,$URIError=uri,$Function$1=Function,getEvalledConstructor=function(ht){try{return $Function$1('"use strict"; return ('+ht+").constructor;")()}catch{}},$gOPD$1=Object.getOwnPropertyDescriptor;if($gOPD$1)try{$gOPD$1({},"")}catch{$gOPD$1=null}var throwTypeError=function(){throw new $TypeError$b},ThrowTypeError=$gOPD$1?function(){try{return arguments.callee,throwTypeError}catch{try{return $gOPD$1(arguments,"callee").get}catch{return throwTypeError}}}():throwTypeError,hasSymbols=hasSymbols$1(),hasProto=hasProto$1(),getProto$1=Object.getPrototypeOf||(hasProto?function(ht){return ht.__proto__}:null),needsEval={},TypedArray=typeof Uint8Array>"u"||!getProto$1?undefined$1:getProto$1(Uint8Array),INTRINSICS={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols&&getProto$1?getProto$1([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics>"u"?undefined$1:Atomics,"%BigInt%":typeof BigInt>"u"?undefined$1:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?undefined$1:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":$Error,"%eval%":eval,"%EvalError%":$EvalError,"%Float32Array%":typeof Float32Array>"u"?undefined$1:Float32Array,"%Float64Array%":typeof Float64Array>"u"?undefined$1:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?undefined$1:FinalizationRegistry,"%Function%":$Function$1,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array>"u"?undefined$1:Int8Array,"%Int16Array%":typeof Int16Array>"u"?undefined$1:Int16Array,"%Int32Array%":typeof Int32Array>"u"?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols&&getProto$1?getProto$1(getProto$1([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON=="object"?JSON:undefined$1,"%Map%":typeof Map>"u"?undefined$1:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hasSymbols||!getProto$1?undefined$1:getProto$1(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?undefined$1:Promise,"%Proxy%":typeof Proxy>"u"?undefined$1:Proxy,"%RangeError%":$RangeError$2,"%ReferenceError%":$ReferenceError,"%Reflect%":typeof Reflect>"u"?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?undefined$1:Set,"%SetIteratorPrototype%":typeof Set>"u"||!hasSymbols||!getProto$1?undefined$1:getProto$1(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols&&getProto$1?getProto$1(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols?Symbol:undefined$1,"%SyntaxError%":$SyntaxError$1,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$b,"%Uint8Array%":typeof Uint8Array>"u"?undefined$1:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?undefined$1:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?undefined$1:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?undefined$1:Uint32Array,"%URIError%":$URIError,"%WeakMap%":typeof WeakMap>"u"?undefined$1:WeakMap,"%WeakRef%":typeof WeakRef>"u"?undefined$1:WeakRef,"%WeakSet%":typeof WeakSet>"u"?undefined$1:WeakSet};if(getProto$1)try{null.error}catch(ht){var errorProto=getProto$1(getProto$1(ht));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function ht(Et){var yt;if(Et==="%AsyncFunction%")yt=getEvalledConstructor("async function () {}");else if(Et==="%GeneratorFunction%")yt=getEvalledConstructor("function* () {}");else if(Et==="%AsyncGeneratorFunction%")yt=getEvalledConstructor("async function* () {}");else if(Et==="%AsyncGenerator%"){var Ct=ht("%AsyncGeneratorFunction%");Ct&&(yt=Ct.prototype)}else if(Et==="%AsyncIteratorPrototype%"){var $t=ht("%AsyncGenerator%");$t&&getProto$1&&(yt=getProto$1($t.prototype))}return INTRINSICS[Et]=yt,yt},LEGACY_ALIASES={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bind$4=functionBind$1,hasOwn$b=hasown,$concat=bind$4.call(Function.call,Array.prototype.concat),$spliceApply=bind$4.call(Function.apply,Array.prototype.splice),$replace=bind$4.call(Function.call,String.prototype.replace),$strSlice=bind$4.call(Function.call,String.prototype.slice),$exec=bind$4.call(Function.call,RegExp.prototype.exec),rePropName$3=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar$3=/\\(\\)?/g,stringToPath$4=function(Et){var yt=$strSlice(Et,0,1),Ct=$strSlice(Et,-1);if(yt==="%"&&Ct!=="%")throw new $SyntaxError$1("invalid intrinsic syntax, expected closing `%`");if(Ct==="%"&&yt!=="%")throw new $SyntaxError$1("invalid intrinsic syntax, expected opening `%`");var $t=[];return $replace(Et,rePropName$3,function(At,Bt,Dt,Ft){$t[$t.length]=Dt?$replace(Ft,reEscapeChar$3,"$1"):Bt||At}),$t},getBaseIntrinsic=function(Et,yt){var Ct=Et,$t;if(hasOwn$b(LEGACY_ALIASES,Ct)&&($t=LEGACY_ALIASES[Ct],Ct="%"+$t[0]+"%"),hasOwn$b(INTRINSICS,Ct)){var At=INTRINSICS[Ct];if(At===needsEval&&(At=doEval(Ct)),typeof At>"u"&&!yt)throw new $TypeError$b("intrinsic "+Et+" exists, but is not available. Please file an issue!");return{alias:$t,name:Ct,value:At}}throw new $SyntaxError$1("intrinsic "+Et+" does not exist!")},getIntrinsic=function(Et,yt){if(typeof Et!="string"||Et.length===0)throw new $TypeError$b("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof yt!="boolean")throw new $TypeError$b('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,Et)===null)throw new $SyntaxError$1("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Ct=stringToPath$4(Et),$t=Ct.length>0?Ct[0]:"",At=getBaseIntrinsic("%"+$t+"%",yt),Bt=At.name,Dt=At.value,Ft=!1,kt=At.alias;kt&&($t=kt[0],$spliceApply(Ct,$concat([0,1],kt)));for(var Mt=1,Nt=!0;Mt<Ct.length;Mt+=1){var jt=Ct[Mt],zt=$strSlice(jt,0,1),Vt=$strSlice(jt,-1);if((zt==='"'||zt==="'"||zt==="`"||Vt==='"'||Vt==="'"||Vt==="`")&&zt!==Vt)throw new $SyntaxError$1("property names with quotes must have matching quotes");if((jt==="constructor"||!Nt)&&(Ft=!0),$t+="."+jt,Bt="%"+$t+"%",hasOwn$b(INTRINSICS,Bt))Dt=INTRINSICS[Bt];else if(Dt!=null){if(!(jt in Dt)){if(!yt)throw new $TypeError$b("base intrinsic for "+Et+" exists, but the property is not available.");return}if($gOPD$1&&Mt+1>=Ct.length){var Kt=$gOPD$1(Dt,jt);Nt=!!Kt,Nt&&"get"in Kt&&!("originalValue"in Kt.get)?Dt=Kt.get:Dt=Dt[jt]}else Nt=hasOwn$b(Dt,jt),Dt=Dt[jt];Nt&&!Ft&&(INTRINSICS[Bt]=Dt)}}return Dt},callBind$2={exports:{}},esDefineProperty,hasRequiredEsDefineProperty;function requireEsDefineProperty(){if(hasRequiredEsDefineProperty)return esDefineProperty;hasRequiredEsDefineProperty=1;var ht=getIntrinsic,Et=ht("%Object.defineProperty%",!0)||!1;if(Et)try{Et({},"a",{value:1})}catch{Et=!1}return esDefineProperty=Et,esDefineProperty}var GetIntrinsic$2=getIntrinsic,$gOPD=GetIntrinsic$2("%Object.getOwnPropertyDescriptor%",!0);if($gOPD)try{$gOPD([],"length")}catch{$gOPD=null}var gopd$1=$gOPD,$defineProperty$3=requireEsDefineProperty(),$SyntaxError=syntax,$TypeError$a=type$2,gopd=gopd$1,defineDataProperty=function(Et,yt,Ct){if(!Et||typeof Et!="object"&&typeof Et!="function")throw new $TypeError$a("`obj` must be an object or a function`");if(typeof yt!="string"&&typeof yt!="symbol")throw new $TypeError$a("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new $TypeError$a("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new $TypeError$a("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new $TypeError$a("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new $TypeError$a("`loose`, if provided, must be a boolean");var $t=arguments.length>3?arguments[3]:null,At=arguments.length>4?arguments[4]:null,Bt=arguments.length>5?arguments[5]:null,Dt=arguments.length>6?arguments[6]:!1,Ft=!!gopd&&gopd(Et,yt);if($defineProperty$3)$defineProperty$3(Et,yt,{configurable:Bt===null&&Ft?Ft.configurable:!Bt,enumerable:$t===null&&Ft?Ft.enumerable:!$t,value:Ct,writable:At===null&&Ft?Ft.writable:!At});else if(Dt||!$t&&!At&&!Bt)Et[yt]=Ct;else throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},$defineProperty$2=requireEsDefineProperty(),hasPropertyDescriptors=function(){return!!$defineProperty$2};hasPropertyDescriptors.hasArrayLengthDefineBug=function(){if(!$defineProperty$2)return null;try{return $defineProperty$2([],"length",{value:1}).length!==1}catch{return!0}};var hasPropertyDescriptors_1=hasPropertyDescriptors,GetIntrinsic$1=getIntrinsic,define=defineDataProperty,hasDescriptors=hasPropertyDescriptors_1(),gOPD$1=gopd$1,$TypeError$9=type$2,$floor=GetIntrinsic$1("%Math.floor%"),setFunctionLength=function(Et,yt){if(typeof Et!="function")throw new $TypeError$9("`fn` is not a function");if(typeof yt!="number"||yt<0||yt>4294967295||$floor(yt)!==yt)throw new $TypeError$9("`length` must be a positive 32-bit integer");var Ct=arguments.length>2&&!!arguments[2],$t=!0,At=!0;if("length"in Et&&gOPD$1){var Bt=gOPD$1(Et,"length");Bt&&!Bt.configurable&&($t=!1),Bt&&!Bt.writable&&(At=!1)}return($t||At||!Ct)&&(hasDescriptors?define(Et,"length",yt,!0,!0):define(Et,"length",yt)),Et};(function(ht){var Et=functionBind$1,yt=getIntrinsic,Ct=setFunctionLength,$t=type$2,At=yt("%Function.prototype.apply%"),Bt=yt("%Function.prototype.call%"),Dt=yt("%Reflect.apply%",!0)||Et.call(Bt,At),Ft=requireEsDefineProperty(),kt=yt("%Math.max%");ht.exports=function(jt){if(typeof jt!="function")throw new $t("a function is required");var zt=Dt(Et,Bt,arguments);return Ct(zt,1+kt(0,jt.length-(arguments.length-1)),!0)};var Mt=function(){return Dt(Et,At,arguments)};Ft?Ft(ht.exports,"apply",{value:Mt}):ht.exports.apply=Mt})(callBind$2);var callBindExports=callBind$2.exports,GetIntrinsic=getIntrinsic,callBind$1=callBindExports,$indexOf$1=callBind$1(GetIntrinsic("String.prototype.indexOf")),callBound$2=function(Et,yt){var Ct=GetIntrinsic(Et,!!yt);return typeof Ct=="function"&&$indexOf$1(Et,".prototype.")>-1?callBind$1(Ct):Ct},hasToStringTag$3=shams(),callBound$1=callBound$2,$toString$2=callBound$1("Object.prototype.toString"),isStandardArguments=function(Et){return hasToStringTag$3&&Et&&typeof Et=="object"&&Symbol.toStringTag in Et?!1:$toString$2(Et)==="[object Arguments]"},isLegacyArguments=function(Et){return isStandardArguments(Et)?!0:Et!==null&&typeof Et=="object"&&typeof Et.length=="number"&&Et.length>=0&&$toString$2(Et)!=="[object Array]"&&$toString$2(Et.callee)==="[object Function]"},supportsStandardArguments=function(){return isStandardArguments(arguments)}();isStandardArguments.isLegacyArguments=isLegacyArguments;var isArguments$6=supportsStandardArguments?isStandardArguments:isLegacyArguments,toStr$3=Object.prototype.toString,fnToStr$1=Function.prototype.toString,isFnRegex=/^\s*(?:function)?\*/,hasToStringTag$2=shams(),getProto=Object.getPrototypeOf,getGeneratorFunc=function(){if(!hasToStringTag$2)return!1;try{return Function("return function*() {}")()}catch{}},GeneratorFunction,isGeneratorFunction=function(Et){if(typeof Et!="function")return!1;if(isFnRegex.test(fnToStr$1.call(Et)))return!0;if(!hasToStringTag$2){var yt=toStr$3.call(Et);return yt==="[object GeneratorFunction]"}if(!getProto)return!1;if(typeof GeneratorFunction>"u"){var Ct=getGeneratorFunc();GeneratorFunction=Ct?getProto(Ct):!1}return getProto(Et)===GeneratorFunction},fnToStr=Function.prototype.toString,reflectApply=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,badArrayLike,isCallableMarker;if(typeof reflectApply=="function"&&typeof Object.defineProperty=="function")try{badArrayLike=Object.defineProperty({},"length",{get:function(){throw isCallableMarker}}),isCallableMarker={},reflectApply(function(){throw 42},null,badArrayLike)}catch(ht){ht!==isCallableMarker&&(reflectApply=null)}else reflectApply=null;var constructorRegex=/^\s*class\b/,isES6ClassFn=function(Et){try{var yt=fnToStr.call(Et);return constructorRegex.test(yt)}catch{return!1}},tryFunctionObject=function(Et){try{return isES6ClassFn(Et)?!1:(fnToStr.call(Et),!0)}catch{return!1}},toStr$2=Object.prototype.toString,objectClass="[object Object]",fnClass="[object Function]",genClass="[object GeneratorFunction]",ddaClass="[object HTMLAllCollection]",ddaClass2="[object HTML document.all class]",ddaClass3="[object HTMLCollection]",hasToStringTag$1=typeof Symbol=="function"&&!!Symbol.toStringTag,isIE68=!(0 in[,]),isDDA=function(){return!1};if(typeof document=="object"){var all=document.all;toStr$2.call(all)===toStr$2.call(document.all)&&(isDDA=function(Et){if((isIE68||!Et)&&(typeof Et>"u"||typeof Et=="object"))try{var yt=toStr$2.call(Et);return(yt===ddaClass||yt===ddaClass2||yt===ddaClass3||yt===objectClass)&&Et("")==null}catch{}return!1})}var isCallable$f=reflectApply?function(Et){if(isDDA(Et))return!0;if(!Et||typeof Et!="function"&&typeof Et!="object")return!1;try{reflectApply(Et,null,badArrayLike)}catch(yt){if(yt!==isCallableMarker)return!1}return!isES6ClassFn(Et)&&tryFunctionObject(Et)}:function(Et){if(isDDA(Et))return!0;if(!Et||typeof Et!="function"&&typeof Et!="object")return!1;if(hasToStringTag$1)return tryFunctionObject(Et);if(isES6ClassFn(Et))return!1;var yt=toStr$2.call(Et);return yt!==fnClass&&yt!==genClass&&!/^\[object HTML/.test(yt)?!1:tryFunctionObject(Et)},isCallable$e=isCallable$f,toStr$1=Object.prototype.toString,hasOwnProperty$s=Object.prototype.hasOwnProperty,forEachArray=function(Et,yt,Ct){for(var $t=0,At=Et.length;$t<At;$t++)hasOwnProperty$s.call(Et,$t)&&(Ct==null?yt(Et[$t],$t,Et):yt.call(Ct,Et[$t],$t,Et))},forEachString=function(Et,yt,Ct){for(var $t=0,At=Et.length;$t<At;$t++)Ct==null?yt(Et.charAt($t),$t,Et):yt.call(Ct,Et.charAt($t),$t,Et)},forEachObject=function(Et,yt,Ct){for(var $t in Et)hasOwnProperty$s.call(Et,$t)&&(Ct==null?yt(Et[$t],$t,Et):yt.call(Ct,Et[$t],$t,Et))},forEach$1=function(Et,yt,Ct){if(!isCallable$e(yt))throw new TypeError("iterator must be a function");var $t;arguments.length>=3&&($t=Ct),toStr$1.call(Et)==="[object Array]"?forEachArray(Et,yt,$t):typeof Et=="string"?forEachString(Et,yt,$t):forEachObject(Et,yt,$t)},forEach_1=forEach$1,possibleTypedArrayNames=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],possibleNames=possibleTypedArrayNames,g$5=typeof globalThis>"u"?commonjsGlobal:globalThis,availableTypedArrays$1=function(){for(var Et=[],yt=0;yt<possibleNames.length;yt++)typeof g$5[possibleNames[yt]]=="function"&&(Et[Et.length]=possibleNames[yt]);return Et},forEach=forEach_1,availableTypedArrays=availableTypedArrays$1,callBind=callBindExports,callBound=callBound$2,gOPD=gopd$1,$toString$1=callBound("Object.prototype.toString"),hasToStringTag=shams(),g$4=typeof globalThis>"u"?commonjsGlobal:globalThis,typedArrays=availableTypedArrays(),$slice=callBound("String.prototype.slice"),getPrototypeOf$1=Object.getPrototypeOf,$indexOf=callBound("Array.prototype.indexOf",!0)||function(Et,yt){for(var Ct=0;Ct<Et.length;Ct+=1)if(Et[Ct]===yt)return Ct;return-1},cache$2={__proto__:null};hasToStringTag&&gOPD&&getPrototypeOf$1?forEach(typedArrays,function(ht){var Et=new g$4[ht];if(Symbol.toStringTag in Et){var yt=getPrototypeOf$1(Et),Ct=gOPD(yt,Symbol.toStringTag);if(!Ct){var $t=getPrototypeOf$1(yt);Ct=gOPD($t,Symbol.toStringTag)}cache$2["$"+ht]=callBind(Ct.get)}}):forEach(typedArrays,function(ht){var Et=new g$4[ht],yt=Et.slice||Et.set;yt&&(cache$2["$"+ht]=callBind(yt))});var tryTypedArrays=function(Et){var yt=!1;return forEach(cache$2,function(Ct,$t){if(!yt)try{"$"+Ct(Et)===$t&&(yt=$slice($t,1))}catch{}}),yt},trySlices=function(Et){var yt=!1;return forEach(cache$2,function(Ct,$t){if(!yt)try{Ct(Et),yt=$slice($t,1)}catch{}}),yt},whichTypedArray$1=function(Et){if(!Et||typeof Et!="object")return!1;if(!hasToStringTag){var yt=$slice($toString$1(Et),8,-1);return $indexOf(typedArrays,yt)>-1?yt:yt!=="Object"?!1:trySlices(Et)}return gOPD?tryTypedArrays(Et):null},whichTypedArray=whichTypedArray$1,isTypedArray$5=function(Et){return!!whichTypedArray(Et)};(function(ht){var Et=isArguments$6,yt=isGeneratorFunction,Ct=whichTypedArray$1,$t=isTypedArray$5;function At(jr){return jr.call.bind(jr)}var Bt=typeof BigInt<"u",Dt=typeof Symbol<"u",Ft=At(Object.prototype.toString),kt=At(Number.prototype.valueOf),Mt=At(String.prototype.valueOf),Nt=At(Boolean.prototype.valueOf);if(Bt)var jt=At(BigInt.prototype.valueOf);if(Dt)var zt=At(Symbol.prototype.valueOf);function Vt(jr,Kr){if(typeof jr!="object")return!1;try{return Kr(jr),!0}catch{return!1}}ht.isArgumentsObject=Et,ht.isGeneratorFunction=yt,ht.isTypedArray=$t;function Kt(jr){return typeof Promise<"u"&&jr instanceof Promise||jr!==null&&typeof jr=="object"&&typeof jr.then=="function"&&typeof jr.catch=="function"}ht.isPromise=Kt;function Xt(jr){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(jr):$t(jr)||_r(jr)}ht.isArrayBufferView=Xt;function Qt(jr){return Ct(jr)==="Uint8Array"}ht.isUint8Array=Qt;function Zt(jr){return Ct(jr)==="Uint8ClampedArray"}ht.isUint8ClampedArray=Zt;function dr(jr){return Ct(jr)==="Uint16Array"}ht.isUint16Array=dr;function cr(jr){return Ct(jr)==="Uint32Array"}ht.isUint32Array=cr;function Er(jr){return Ct(jr)==="Int8Array"}ht.isInt8Array=Er;function pr(jr){return Ct(jr)==="Int16Array"}ht.isInt16Array=pr;function gr(jr){return Ct(jr)==="Int32Array"}ht.isInt32Array=gr;function vr(jr){return Ct(jr)==="Float32Array"}ht.isFloat32Array=vr;function yr(jr){return Ct(jr)==="Float64Array"}ht.isFloat64Array=yr;function xr(jr){return Ct(jr)==="BigInt64Array"}ht.isBigInt64Array=xr;function rr(jr){return Ct(jr)==="BigUint64Array"}ht.isBigUint64Array=rr;function Lt(jr){return Ft(jr)==="[object Map]"}Lt.working=typeof Map<"u"&&Lt(new Map);function Ht(jr){return typeof Map>"u"?!1:Lt.working?Lt(jr):jr instanceof Map}ht.isMap=Ht;function Wt(jr){return Ft(jr)==="[object Set]"}Wt.working=typeof Set<"u"&&Wt(new Set);function Gt(jr){return typeof Set>"u"?!1:Wt.working?Wt(jr):jr instanceof Set}ht.isSet=Gt;function Yt(jr){return Ft(jr)==="[object WeakMap]"}Yt.working=typeof WeakMap<"u"&&Yt(new WeakMap);function er(jr){return typeof WeakMap>"u"?!1:Yt.working?Yt(jr):jr instanceof WeakMap}ht.isWeakMap=er;function lr(jr){return Ft(jr)==="[object WeakSet]"}lr.working=typeof WeakSet<"u"&&lr(new WeakSet);function Jt(jr){return lr(jr)}ht.isWeakSet=Jt;function Ut(jr){return Ft(jr)==="[object ArrayBuffer]"}Ut.working=typeof ArrayBuffer<"u"&&Ut(new ArrayBuffer);function ir(jr){return typeof ArrayBuffer>"u"?!1:Ut.working?Ut(jr):jr instanceof ArrayBuffer}ht.isArrayBuffer=ir;function Cr(jr){return Ft(jr)==="[object DataView]"}Cr.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Cr(new DataView(new ArrayBuffer(1),0,1));function _r(jr){return typeof DataView>"u"?!1:Cr.working?Cr(jr):jr instanceof DataView}ht.isDataView=_r;var $r=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function Tr(jr){return Ft(jr)==="[object SharedArrayBuffer]"}function Dr(jr){return typeof $r>"u"?!1:(typeof Tr.working>"u"&&(Tr.working=Tr(new $r)),Tr.working?Tr(jr):jr instanceof $r)}ht.isSharedArrayBuffer=Dr;function Ar(jr){return Ft(jr)==="[object AsyncFunction]"}ht.isAsyncFunction=Ar;function Fr(jr){return Ft(jr)==="[object Map Iterator]"}ht.isMapIterator=Fr;function Rr(jr){return Ft(jr)==="[object Set Iterator]"}ht.isSetIterator=Rr;function wr(jr){return Ft(jr)==="[object Generator]"}ht.isGeneratorObject=wr;function Sr(jr){return Ft(jr)==="[object WebAssembly.Module]"}ht.isWebAssemblyCompiledModule=Sr;function Br(jr){return Vt(jr,kt)}ht.isNumberObject=Br;function Or(jr){return Vt(jr,Mt)}ht.isStringObject=Or;function Pr(jr){return Vt(jr,Nt)}ht.isBooleanObject=Pr;function Nr(jr){return Bt&&Vt(jr,jt)}ht.isBigIntObject=Nr;function Lr(jr){return Dt&&Vt(jr,zt)}ht.isSymbolObject=Lr;function Wr(jr){return Br(jr)||Or(jr)||Pr(jr)||Nr(jr)||Lr(jr)}ht.isBoxedPrimitive=Wr;function Ur(jr){return typeof Uint8Array<"u"&&(ir(jr)||Dr(jr))}ht.isAnyArrayBuffer=Ur,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(jr){Object.defineProperty(ht,jr,{enumerable:!1,value:function(){throw new Error(jr+" is not supported in userland")}})})})(types$2);var isBufferBrowser=function(Et){return Et&&typeof Et=="object"&&typeof Et.copy=="function"&&typeof Et.fill=="function"&&typeof Et.readUInt8=="function"};(function(ht){var Et={},yt=Object.getOwnPropertyDescriptors||function($r){for(var Tr=Object.keys($r),Dr={},Ar=0;Ar<Tr.length;Ar++)Dr[Tr[Ar]]=Object.getOwnPropertyDescriptor($r,Tr[Ar]);return Dr},Ct=/%[sdj%]/g;ht.format=function(_r){if(!pr(_r)){for(var $r=[],Tr=0;Tr<arguments.length;Tr++)$r.push(Dt(arguments[Tr]));return $r.join(" ")}for(var Tr=1,Dr=arguments,Ar=Dr.length,Fr=String(_r).replace(Ct,function(wr){if(wr==="%%")return"%";if(Tr>=Ar)return wr;switch(wr){case"%s":return String(Dr[Tr++]);case"%d":return Number(Dr[Tr++]);case"%j":try{return JSON.stringify(Dr[Tr++])}catch{return"[Circular]"}default:return wr}}),Rr=Dr[Tr];Tr<Ar;Rr=Dr[++Tr])dr(Rr)||!xr(Rr)?Fr+=" "+Rr:Fr+=" "+Dt(Rr);return Fr},ht.deprecate=function(_r,$r){if(typeof process$1$1<"u"&&process$1$1.noDeprecation===!0)return _r;if(typeof process$1$1>"u")return function(){return ht.deprecate(_r,$r).apply(this,arguments)};var Tr=!1;function Dr(){if(!Tr){if(process$1$1.throwDeprecation)throw new Error($r);process$1$1.traceDeprecation?console.trace($r):console.error($r),Tr=!0}return _r.apply(this,arguments)}return Dr};var $t={},At=/^$/;if(Et.NODE_DEBUG){var Bt=Et.NODE_DEBUG;Bt=Bt.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),At=new RegExp("^"+Bt+"$","i")}ht.debuglog=function(_r){if(_r=_r.toUpperCase(),!$t[_r])if(At.test(_r)){var $r=process$1$1.pid;$t[_r]=function(){var Tr=ht.format.apply(ht,arguments);console.error("%s %d: %s",_r,$r,Tr)}}else $t[_r]=function(){};return $t[_r]};function Dt(_r,$r){var Tr={seen:[],stylize:kt};return arguments.length>=3&&(Tr.depth=arguments[2]),arguments.length>=4&&(Tr.colors=arguments[3]),Zt($r)?Tr.showHidden=$r:$r&&ht._extend(Tr,$r),vr(Tr.showHidden)&&(Tr.showHidden=!1),vr(Tr.depth)&&(Tr.depth=2),vr(Tr.colors)&&(Tr.colors=!1),vr(Tr.customInspect)&&(Tr.customInspect=!0),Tr.colors&&(Tr.stylize=Ft),Nt(Tr,_r,Tr.depth)}ht.inspect=Dt,Dt.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},Dt.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function Ft(_r,$r){var Tr=Dt.styles[$r];return Tr?"\x1B["+Dt.colors[Tr][0]+"m"+_r+"\x1B["+Dt.colors[Tr][1]+"m":_r}function kt(_r,$r){return _r}function Mt(_r){var $r={};return _r.forEach(function(Tr,Dr){$r[Tr]=!0}),$r}function Nt(_r,$r,Tr){if(_r.customInspect&&$r&&Ht($r.inspect)&&$r.inspect!==ht.inspect&&!($r.constructor&&$r.constructor.prototype===$r)){var Dr=$r.inspect(Tr,_r);return pr(Dr)||(Dr=Nt(_r,Dr,Tr)),Dr}var Ar=jt(_r,$r);if(Ar)return Ar;var Fr=Object.keys($r),Rr=Mt(Fr);if(_r.showHidden&&(Fr=Object.getOwnPropertyNames($r)),Lt($r)&&(Fr.indexOf("message")>=0||Fr.indexOf("description")>=0))return zt($r);if(Fr.length===0){if(Ht($r)){var wr=$r.name?": "+$r.name:"";return _r.stylize("[Function"+wr+"]","special")}if(yr($r))return _r.stylize(RegExp.prototype.toString.call($r),"regexp");if(rr($r))return _r.stylize(Date.prototype.toString.call($r),"date");if(Lt($r))return zt($r)}var Sr="",Br=!1,Or=["{","}"];if(Qt($r)&&(Br=!0,Or=["[","]"]),Ht($r)){var Pr=$r.name?": "+$r.name:"";Sr=" [Function"+Pr+"]"}if(yr($r)&&(Sr=" "+RegExp.prototype.toString.call($r)),rr($r)&&(Sr=" "+Date.prototype.toUTCString.call($r)),Lt($r)&&(Sr=" "+zt($r)),Fr.length===0&&(!Br||$r.length==0))return Or[0]+Sr+Or[1];if(Tr<0)return yr($r)?_r.stylize(RegExp.prototype.toString.call($r),"regexp"):_r.stylize("[Object]","special");_r.seen.push($r);var Nr;return Br?Nr=Vt(_r,$r,Tr,Rr,Fr):Nr=Fr.map(function(Lr){return Kt(_r,$r,Tr,Rr,Lr,Br)}),_r.seen.pop(),Xt(Nr,Sr,Or)}function jt(_r,$r){if(vr($r))return _r.stylize("undefined","undefined");if(pr($r)){var Tr="'"+JSON.stringify($r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return _r.stylize(Tr,"string")}if(Er($r))return _r.stylize(""+$r,"number");if(Zt($r))return _r.stylize(""+$r,"boolean");if(dr($r))return _r.stylize("null","null")}function zt(_r){return"["+Error.prototype.toString.call(_r)+"]"}function Vt(_r,$r,Tr,Dr,Ar){for(var Fr=[],Rr=0,wr=$r.length;Rr<wr;++Rr)Jt($r,String(Rr))?Fr.push(Kt(_r,$r,Tr,Dr,String(Rr),!0)):Fr.push("");return Ar.forEach(function(Sr){Sr.match(/^\d+$/)||Fr.push(Kt(_r,$r,Tr,Dr,Sr,!0))}),Fr}function Kt(_r,$r,Tr,Dr,Ar,Fr){var Rr,wr,Sr;if(Sr=Object.getOwnPropertyDescriptor($r,Ar)||{value:$r[Ar]},Sr.get?Sr.set?wr=_r.stylize("[Getter/Setter]","special"):wr=_r.stylize("[Getter]","special"):Sr.set&&(wr=_r.stylize("[Setter]","special")),Jt(Dr,Ar)||(Rr="["+Ar+"]"),wr||(_r.seen.indexOf(Sr.value)<0?(dr(Tr)?wr=Nt(_r,Sr.value,null):wr=Nt(_r,Sr.value,Tr-1),wr.indexOf(`
`)>-1&&(Fr?wr=wr.split(`
`).map(function(Br){return"  "+Br}).join(`
`).slice(2):wr=`
`+wr.split(`
`).map(function(Br){return"   "+Br}).join(`
`))):wr=_r.stylize("[Circular]","special")),vr(Rr)){if(Fr&&Ar.match(/^\d+$/))return wr;Rr=JSON.stringify(""+Ar),Rr.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Rr=Rr.slice(1,-1),Rr=_r.stylize(Rr,"name")):(Rr=Rr.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Rr=_r.stylize(Rr,"string"))}return Rr+": "+wr}function Xt(_r,$r,Tr){var Dr=_r.reduce(function(Ar,Fr){return Fr.indexOf(`
`)>=0,Ar+Fr.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Dr>60?Tr[0]+($r===""?"":$r+`
 `)+" "+_r.join(`,
  `)+" "+Tr[1]:Tr[0]+$r+" "+_r.join(", ")+" "+Tr[1]}ht.types=types$2;function Qt(_r){return Array.isArray(_r)}ht.isArray=Qt;function Zt(_r){return typeof _r=="boolean"}ht.isBoolean=Zt;function dr(_r){return _r===null}ht.isNull=dr;function cr(_r){return _r==null}ht.isNullOrUndefined=cr;function Er(_r){return typeof _r=="number"}ht.isNumber=Er;function pr(_r){return typeof _r=="string"}ht.isString=pr;function gr(_r){return typeof _r=="symbol"}ht.isSymbol=gr;function vr(_r){return _r===void 0}ht.isUndefined=vr;function yr(_r){return xr(_r)&&Gt(_r)==="[object RegExp]"}ht.isRegExp=yr,ht.types.isRegExp=yr;function xr(_r){return typeof _r=="object"&&_r!==null}ht.isObject=xr;function rr(_r){return xr(_r)&&Gt(_r)==="[object Date]"}ht.isDate=rr,ht.types.isDate=rr;function Lt(_r){return xr(_r)&&(Gt(_r)==="[object Error]"||_r instanceof Error)}ht.isError=Lt,ht.types.isNativeError=Lt;function Ht(_r){return typeof _r=="function"}ht.isFunction=Ht;function Wt(_r){return _r===null||typeof _r=="boolean"||typeof _r=="number"||typeof _r=="string"||typeof _r=="symbol"||typeof _r>"u"}ht.isPrimitive=Wt,ht.isBuffer=isBufferBrowser;function Gt(_r){return Object.prototype.toString.call(_r)}function Yt(_r){return _r<10?"0"+_r.toString(10):_r.toString(10)}var er=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function lr(){var _r=new Date,$r=[Yt(_r.getHours()),Yt(_r.getMinutes()),Yt(_r.getSeconds())].join(":");return[_r.getDate(),er[_r.getMonth()],$r].join(" ")}ht.log=function(){console.log("%s - %s",lr(),ht.format.apply(ht,arguments))},ht.inherits=inherits_browserExports,ht._extend=function(_r,$r){if(!$r||!xr($r))return _r;for(var Tr=Object.keys($r),Dr=Tr.length;Dr--;)_r[Tr[Dr]]=$r[Tr[Dr]];return _r};function Jt(_r,$r){return Object.prototype.hasOwnProperty.call(_r,$r)}var Ut=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;ht.promisify=function($r){if(typeof $r!="function")throw new TypeError('The "original" argument must be of type Function');if(Ut&&$r[Ut]){var Tr=$r[Ut];if(typeof Tr!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Tr,Ut,{value:Tr,enumerable:!1,writable:!1,configurable:!0}),Tr}function Tr(){for(var Dr,Ar,Fr=new Promise(function(Sr,Br){Dr=Sr,Ar=Br}),Rr=[],wr=0;wr<arguments.length;wr++)Rr.push(arguments[wr]);Rr.push(function(Sr,Br){Sr?Ar(Sr):Dr(Br)});try{$r.apply(this,Rr)}catch(Sr){Ar(Sr)}return Fr}return Object.setPrototypeOf(Tr,Object.getPrototypeOf($r)),Ut&&Object.defineProperty(Tr,Ut,{value:Tr,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Tr,yt($r))},ht.promisify.custom=Ut;function ir(_r,$r){if(!_r){var Tr=new Error("Promise was rejected with a falsy value");Tr.reason=_r,_r=Tr}return $r(_r)}function Cr(_r){if(typeof _r!="function")throw new TypeError('The "original" argument must be of type Function');function $r(){for(var Tr=[],Dr=0;Dr<arguments.length;Dr++)Tr.push(arguments[Dr]);var Ar=Tr.pop();if(typeof Ar!="function")throw new TypeError("The last argument must be of type Function");var Fr=this,Rr=function(){return Ar.apply(Fr,arguments)};_r.apply(this,Tr).then(function(wr){process$1$1.nextTick(Rr.bind(null,null,wr))},function(wr){process$1$1.nextTick(ir.bind(null,wr,Rr))})}return Object.setPrototypeOf($r,Object.getPrototypeOf(_r)),Object.defineProperties($r,yt(_r)),$r}ht.callbackify=Cr})(util$1);var buffer_list,hasRequiredBuffer_list;function requireBuffer_list(){if(hasRequiredBuffer_list)return buffer_list;hasRequiredBuffer_list=1;function ht(Vt,Kt){var Xt=Object.keys(Vt);if(Object.getOwnPropertySymbols){var Qt=Object.getOwnPropertySymbols(Vt);Kt&&(Qt=Qt.filter(function(Zt){return Object.getOwnPropertyDescriptor(Vt,Zt).enumerable})),Xt.push.apply(Xt,Qt)}return Xt}function Et(Vt){for(var Kt=1;Kt<arguments.length;Kt++){var Xt=arguments[Kt]!=null?arguments[Kt]:{};Kt%2?ht(Object(Xt),!0).forEach(function(Qt){yt(Vt,Qt,Xt[Qt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Vt,Object.getOwnPropertyDescriptors(Xt)):ht(Object(Xt)).forEach(function(Qt){Object.defineProperty(Vt,Qt,Object.getOwnPropertyDescriptor(Xt,Qt))})}return Vt}function yt(Vt,Kt,Xt){return Kt=Bt(Kt),Kt in Vt?Object.defineProperty(Vt,Kt,{value:Xt,enumerable:!0,configurable:!0,writable:!0}):Vt[Kt]=Xt,Vt}function Ct(Vt,Kt){if(!(Vt instanceof Kt))throw new TypeError("Cannot call a class as a function")}function $t(Vt,Kt){for(var Xt=0;Xt<Kt.length;Xt++){var Qt=Kt[Xt];Qt.enumerable=Qt.enumerable||!1,Qt.configurable=!0,"value"in Qt&&(Qt.writable=!0),Object.defineProperty(Vt,Bt(Qt.key),Qt)}}function At(Vt,Kt,Xt){return Kt&&$t(Vt.prototype,Kt),Object.defineProperty(Vt,"prototype",{writable:!1}),Vt}function Bt(Vt){var Kt=Dt(Vt,"string");return typeof Kt=="symbol"?Kt:String(Kt)}function Dt(Vt,Kt){if(typeof Vt!="object"||Vt===null)return Vt;var Xt=Vt[Symbol.toPrimitive];if(Xt!==void 0){var Qt=Xt.call(Vt,Kt||"default");if(typeof Qt!="object")return Qt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Kt==="string"?String:Number)(Vt)}var Ft=require$$0$3,kt=Ft.Buffer,Mt=util$1,Nt=Mt.inspect,jt=Nt&&Nt.custom||"inspect";function zt(Vt,Kt,Xt){kt.prototype.copy.call(Vt,Kt,Xt)}return buffer_list=function(){function Vt(){Ct(this,Vt),this.head=null,this.tail=null,this.length=0}return At(Vt,[{key:"push",value:function(Xt){var Qt={data:Xt,next:null};this.length>0?this.tail.next=Qt:this.head=Qt,this.tail=Qt,++this.length}},{key:"unshift",value:function(Xt){var Qt={data:Xt,next:this.head};this.length===0&&(this.tail=Qt),this.head=Qt,++this.length}},{key:"shift",value:function(){if(this.length!==0){var Xt=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,Xt}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(Xt){if(this.length===0)return"";for(var Qt=this.head,Zt=""+Qt.data;Qt=Qt.next;)Zt+=Xt+Qt.data;return Zt}},{key:"concat",value:function(Xt){if(this.length===0)return kt.alloc(0);for(var Qt=kt.allocUnsafe(Xt>>>0),Zt=this.head,dr=0;Zt;)zt(Zt.data,Qt,dr),dr+=Zt.data.length,Zt=Zt.next;return Qt}},{key:"consume",value:function(Xt,Qt){var Zt;return Xt<this.head.data.length?(Zt=this.head.data.slice(0,Xt),this.head.data=this.head.data.slice(Xt)):Xt===this.head.data.length?Zt=this.shift():Zt=Qt?this._getString(Xt):this._getBuffer(Xt),Zt}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(Xt){var Qt=this.head,Zt=1,dr=Qt.data;for(Xt-=dr.length;Qt=Qt.next;){var cr=Qt.data,Er=Xt>cr.length?cr.length:Xt;if(Er===cr.length?dr+=cr:dr+=cr.slice(0,Xt),Xt-=Er,Xt===0){Er===cr.length?(++Zt,Qt.next?this.head=Qt.next:this.head=this.tail=null):(this.head=Qt,Qt.data=cr.slice(Er));break}++Zt}return this.length-=Zt,dr}},{key:"_getBuffer",value:function(Xt){var Qt=kt.allocUnsafe(Xt),Zt=this.head,dr=1;for(Zt.data.copy(Qt),Xt-=Zt.data.length;Zt=Zt.next;){var cr=Zt.data,Er=Xt>cr.length?cr.length:Xt;if(cr.copy(Qt,Qt.length-Xt,0,Er),Xt-=Er,Xt===0){Er===cr.length?(++dr,Zt.next?this.head=Zt.next:this.head=this.tail=null):(this.head=Zt,Zt.data=cr.slice(Er));break}++dr}return this.length-=dr,Qt}},{key:jt,value:function(Xt,Qt){return Nt(this,Et(Et({},Qt),{},{depth:0,customInspect:!1}))}}]),Vt}(),buffer_list}var destroy_1$1,hasRequiredDestroy$1;function requireDestroy$1(){if(hasRequiredDestroy$1)return destroy_1$1;hasRequiredDestroy$1=1;function ht(Bt,Dt){var Ft=this,kt=this._readableState&&this._readableState.destroyed,Mt=this._writableState&&this._writableState.destroyed;return kt||Mt?(Dt?Dt(Bt):Bt&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process$1$1.nextTick($t,this,Bt)):process$1$1.nextTick($t,this,Bt)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(Bt||null,function(Nt){!Dt&&Nt?Ft._writableState?Ft._writableState.errorEmitted?process$1$1.nextTick(yt,Ft):(Ft._writableState.errorEmitted=!0,process$1$1.nextTick(Et,Ft,Nt)):process$1$1.nextTick(Et,Ft,Nt):Dt?(process$1$1.nextTick(yt,Ft),Dt(Nt)):process$1$1.nextTick(yt,Ft)}),this)}function Et(Bt,Dt){$t(Bt,Dt),yt(Bt)}function yt(Bt){Bt._writableState&&!Bt._writableState.emitClose||Bt._readableState&&!Bt._readableState.emitClose||Bt.emit("close")}function Ct(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function $t(Bt,Dt){Bt.emit("error",Dt)}function At(Bt,Dt){var Ft=Bt._readableState,kt=Bt._writableState;Ft&&Ft.autoDestroy||kt&&kt.autoDestroy?Bt.destroy(Dt):Bt.emit("error",Dt)}return destroy_1$1={destroy:ht,undestroy:Ct,errorOrDestroy:At},destroy_1$1}var errorsBrowser={},hasRequiredErrorsBrowser;function requireErrorsBrowser(){if(hasRequiredErrorsBrowser)return errorsBrowser;hasRequiredErrorsBrowser=1;function ht(Dt,Ft){Dt.prototype=Object.create(Ft.prototype),Dt.prototype.constructor=Dt,Dt.__proto__=Ft}var Et={};function yt(Dt,Ft,kt){kt||(kt=Error);function Mt(jt,zt,Vt){return typeof Ft=="string"?Ft:Ft(jt,zt,Vt)}var Nt=function(jt){ht(zt,jt);function zt(Vt,Kt,Xt){return jt.call(this,Mt(Vt,Kt,Xt))||this}return zt}(kt);Nt.prototype.name=kt.name,Nt.prototype.code=Dt,Et[Dt]=Nt}function Ct(Dt,Ft){if(Array.isArray(Dt)){var kt=Dt.length;return Dt=Dt.map(function(Mt){return String(Mt)}),kt>2?"one of ".concat(Ft," ").concat(Dt.slice(0,kt-1).join(", "),", or ")+Dt[kt-1]:kt===2?"one of ".concat(Ft," ").concat(Dt[0]," or ").concat(Dt[1]):"of ".concat(Ft," ").concat(Dt[0])}else return"of ".concat(Ft," ").concat(String(Dt))}function $t(Dt,Ft,kt){return Dt.substr(0,Ft.length)===Ft}function At(Dt,Ft,kt){return(kt===void 0||kt>Dt.length)&&(kt=Dt.length),Dt.substring(kt-Ft.length,kt)===Ft}function Bt(Dt,Ft,kt){return typeof kt!="number"&&(kt=0),kt+Ft.length>Dt.length?!1:Dt.indexOf(Ft,kt)!==-1}return yt("ERR_INVALID_OPT_VALUE",function(Dt,Ft){return'The value "'+Ft+'" is invalid for option "'+Dt+'"'},TypeError),yt("ERR_INVALID_ARG_TYPE",function(Dt,Ft,kt){var Mt;typeof Ft=="string"&&$t(Ft,"not ")?(Mt="must not be",Ft=Ft.replace(/^not /,"")):Mt="must be";var Nt;if(At(Dt," argument"))Nt="The ".concat(Dt," ").concat(Mt," ").concat(Ct(Ft,"type"));else{var jt=Bt(Dt,".")?"property":"argument";Nt='The "'.concat(Dt,'" ').concat(jt," ").concat(Mt," ").concat(Ct(Ft,"type"))}return Nt+=". Received type ".concat(typeof kt),Nt},TypeError),yt("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),yt("ERR_METHOD_NOT_IMPLEMENTED",function(Dt){return"The "+Dt+" method is not implemented"}),yt("ERR_STREAM_PREMATURE_CLOSE","Premature close"),yt("ERR_STREAM_DESTROYED",function(Dt){return"Cannot call "+Dt+" after a stream was destroyed"}),yt("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),yt("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),yt("ERR_STREAM_WRITE_AFTER_END","write after end"),yt("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),yt("ERR_UNKNOWN_ENCODING",function(Dt){return"Unknown encoding: "+Dt},TypeError),yt("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),errorsBrowser.codes=Et,errorsBrowser}var state,hasRequiredState;function requireState(){if(hasRequiredState)return state;hasRequiredState=1;var ht=requireErrorsBrowser().codes.ERR_INVALID_OPT_VALUE;function Et(Ct,$t,At){return Ct.highWaterMark!=null?Ct.highWaterMark:$t?Ct[At]:null}function yt(Ct,$t,At,Bt){var Dt=Et($t,Bt,At);if(Dt!=null){if(!(isFinite(Dt)&&Math.floor(Dt)===Dt)||Dt<0){var Ft=Bt?At:"highWaterMark";throw new ht(Ft,Dt)}return Math.floor(Dt)}return Ct.objectMode?16:16*1024}return state={getHighWaterMark:yt},state}var browser$b,hasRequiredBrowser$9;function requireBrowser$9(){if(hasRequiredBrowser$9)return browser$b;hasRequiredBrowser$9=1,browser$b=ht;function ht(yt,Ct){if(Et("noDeprecation"))return yt;var $t=!1;function At(){if(!$t){if(Et("throwDeprecation"))throw new Error(Ct);Et("traceDeprecation")?console.trace(Ct):console.warn(Ct),$t=!0}return yt.apply(this,arguments)}return At}function Et(yt){try{if(!commonjsGlobal.localStorage)return!1}catch{return!1}var Ct=commonjsGlobal.localStorage[yt];return Ct==null?!1:String(Ct).toLowerCase()==="true"}return browser$b}var _stream_writable$1,hasRequired_stream_writable$1;function require_stream_writable$1(){if(hasRequired_stream_writable$1)return _stream_writable$1;hasRequired_stream_writable$1=1,_stream_writable$1=vr;function ht(Dr){var Ar=this;this.next=null,this.entry=null,this.finish=function(){Tr(Ar,Dr)}}var Et;vr.WritableState=pr;var yt={deprecate:requireBrowser$9()},Ct=requireStreamBrowser$1(),$t=require$$0$3.Buffer,At=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Bt(Dr){return $t.from(Dr)}function Dt(Dr){return $t.isBuffer(Dr)||Dr instanceof At}var Ft=requireDestroy$1(),kt=requireState(),Mt=kt.getHighWaterMark,Nt=requireErrorsBrowser().codes,jt=Nt.ERR_INVALID_ARG_TYPE,zt=Nt.ERR_METHOD_NOT_IMPLEMENTED,Vt=Nt.ERR_MULTIPLE_CALLBACK,Kt=Nt.ERR_STREAM_CANNOT_PIPE,Xt=Nt.ERR_STREAM_DESTROYED,Qt=Nt.ERR_STREAM_NULL_VALUES,Zt=Nt.ERR_STREAM_WRITE_AFTER_END,dr=Nt.ERR_UNKNOWN_ENCODING,cr=Ft.errorOrDestroy;inherits_browserExports(vr,Ct);function Er(){}function pr(Dr,Ar,Fr){Et=Et||require_stream_duplex$1(),Dr=Dr||{},typeof Fr!="boolean"&&(Fr=Ar instanceof Et),this.objectMode=!!Dr.objectMode,Fr&&(this.objectMode=this.objectMode||!!Dr.writableObjectMode),this.highWaterMark=Mt(this,Dr,"writableHighWaterMark",Fr),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Rr=Dr.decodeStrings===!1;this.decodeStrings=!Rr,this.defaultEncoding=Dr.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(wr){Yt(Ar,wr)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Dr.emitClose!==!1,this.autoDestroy=!!Dr.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new ht(this)}pr.prototype.getBuffer=function(){for(var Ar=this.bufferedRequest,Fr=[];Ar;)Fr.push(Ar),Ar=Ar.next;return Fr},function(){try{Object.defineProperty(pr.prototype,"buffer",{get:yt.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var gr;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(gr=Function.prototype[Symbol.hasInstance],Object.defineProperty(vr,Symbol.hasInstance,{value:function(Ar){return gr.call(this,Ar)?!0:this!==vr?!1:Ar&&Ar._writableState instanceof pr}})):gr=function(Ar){return Ar instanceof this};function vr(Dr){Et=Et||require_stream_duplex$1();var Ar=this instanceof Et;if(!Ar&&!gr.call(vr,this))return new vr(Dr);this._writableState=new pr(Dr,this,Ar),this.writable=!0,Dr&&(typeof Dr.write=="function"&&(this._write=Dr.write),typeof Dr.writev=="function"&&(this._writev=Dr.writev),typeof Dr.destroy=="function"&&(this._destroy=Dr.destroy),typeof Dr.final=="function"&&(this._final=Dr.final)),Ct.call(this)}vr.prototype.pipe=function(){cr(this,new Kt)};function yr(Dr,Ar){var Fr=new Zt;cr(Dr,Fr),process$1$1.nextTick(Ar,Fr)}function xr(Dr,Ar,Fr,Rr){var wr;return Fr===null?wr=new Qt:typeof Fr!="string"&&!Ar.objectMode&&(wr=new jt("chunk",["string","Buffer"],Fr)),wr?(cr(Dr,wr),process$1$1.nextTick(Rr,wr),!1):!0}vr.prototype.write=function(Dr,Ar,Fr){var Rr=this._writableState,wr=!1,Sr=!Rr.objectMode&&Dt(Dr);return Sr&&!$t.isBuffer(Dr)&&(Dr=Bt(Dr)),typeof Ar=="function"&&(Fr=Ar,Ar=null),Sr?Ar="buffer":Ar||(Ar=Rr.defaultEncoding),typeof Fr!="function"&&(Fr=Er),Rr.ending?yr(this,Fr):(Sr||xr(this,Rr,Dr,Fr))&&(Rr.pendingcb++,wr=Lt(this,Rr,Sr,Dr,Ar,Fr)),wr},vr.prototype.cork=function(){this._writableState.corked++},vr.prototype.uncork=function(){var Dr=this._writableState;Dr.corked&&(Dr.corked--,!Dr.writing&&!Dr.corked&&!Dr.bufferProcessing&&Dr.bufferedRequest&&Jt(this,Dr))},vr.prototype.setDefaultEncoding=function(Ar){if(typeof Ar=="string"&&(Ar=Ar.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Ar+"").toLowerCase())>-1))throw new dr(Ar);return this._writableState.defaultEncoding=Ar,this},Object.defineProperty(vr.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function rr(Dr,Ar,Fr){return!Dr.objectMode&&Dr.decodeStrings!==!1&&typeof Ar=="string"&&(Ar=$t.from(Ar,Fr)),Ar}Object.defineProperty(vr.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Lt(Dr,Ar,Fr,Rr,wr,Sr){if(!Fr){var Br=rr(Ar,Rr,wr);Rr!==Br&&(Fr=!0,wr="buffer",Rr=Br)}var Or=Ar.objectMode?1:Rr.length;Ar.length+=Or;var Pr=Ar.length<Ar.highWaterMark;if(Pr||(Ar.needDrain=!0),Ar.writing||Ar.corked){var Nr=Ar.lastBufferedRequest;Ar.lastBufferedRequest={chunk:Rr,encoding:wr,isBuf:Fr,callback:Sr,next:null},Nr?Nr.next=Ar.lastBufferedRequest:Ar.bufferedRequest=Ar.lastBufferedRequest,Ar.bufferedRequestCount+=1}else Ht(Dr,Ar,!1,Or,Rr,wr,Sr);return Pr}function Ht(Dr,Ar,Fr,Rr,wr,Sr,Br){Ar.writelen=Rr,Ar.writecb=Br,Ar.writing=!0,Ar.sync=!0,Ar.destroyed?Ar.onwrite(new Xt("write")):Fr?Dr._writev(wr,Ar.onwrite):Dr._write(wr,Sr,Ar.onwrite),Ar.sync=!1}function Wt(Dr,Ar,Fr,Rr,wr){--Ar.pendingcb,Fr?(process$1$1.nextTick(wr,Rr),process$1$1.nextTick(_r,Dr,Ar),Dr._writableState.errorEmitted=!0,cr(Dr,Rr)):(wr(Rr),Dr._writableState.errorEmitted=!0,cr(Dr,Rr),_r(Dr,Ar))}function Gt(Dr){Dr.writing=!1,Dr.writecb=null,Dr.length-=Dr.writelen,Dr.writelen=0}function Yt(Dr,Ar){var Fr=Dr._writableState,Rr=Fr.sync,wr=Fr.writecb;if(typeof wr!="function")throw new Vt;if(Gt(Fr),Ar)Wt(Dr,Fr,Rr,Ar,wr);else{var Sr=Ut(Fr)||Dr.destroyed;!Sr&&!Fr.corked&&!Fr.bufferProcessing&&Fr.bufferedRequest&&Jt(Dr,Fr),Rr?process$1$1.nextTick(er,Dr,Fr,Sr,wr):er(Dr,Fr,Sr,wr)}}function er(Dr,Ar,Fr,Rr){Fr||lr(Dr,Ar),Ar.pendingcb--,Rr(),_r(Dr,Ar)}function lr(Dr,Ar){Ar.length===0&&Ar.needDrain&&(Ar.needDrain=!1,Dr.emit("drain"))}function Jt(Dr,Ar){Ar.bufferProcessing=!0;var Fr=Ar.bufferedRequest;if(Dr._writev&&Fr&&Fr.next){var Rr=Ar.bufferedRequestCount,wr=new Array(Rr),Sr=Ar.corkedRequestsFree;Sr.entry=Fr;for(var Br=0,Or=!0;Fr;)wr[Br]=Fr,Fr.isBuf||(Or=!1),Fr=Fr.next,Br+=1;wr.allBuffers=Or,Ht(Dr,Ar,!0,Ar.length,wr,"",Sr.finish),Ar.pendingcb++,Ar.lastBufferedRequest=null,Sr.next?(Ar.corkedRequestsFree=Sr.next,Sr.next=null):Ar.corkedRequestsFree=new ht(Ar),Ar.bufferedRequestCount=0}else{for(;Fr;){var Pr=Fr.chunk,Nr=Fr.encoding,Lr=Fr.callback,Wr=Ar.objectMode?1:Pr.length;if(Ht(Dr,Ar,!1,Wr,Pr,Nr,Lr),Fr=Fr.next,Ar.bufferedRequestCount--,Ar.writing)break}Fr===null&&(Ar.lastBufferedRequest=null)}Ar.bufferedRequest=Fr,Ar.bufferProcessing=!1}vr.prototype._write=function(Dr,Ar,Fr){Fr(new zt("_write()"))},vr.prototype._writev=null,vr.prototype.end=function(Dr,Ar,Fr){var Rr=this._writableState;return typeof Dr=="function"?(Fr=Dr,Dr=null,Ar=null):typeof Ar=="function"&&(Fr=Ar,Ar=null),Dr!=null&&this.write(Dr,Ar),Rr.corked&&(Rr.corked=1,this.uncork()),Rr.ending||$r(this,Rr,Fr),this},Object.defineProperty(vr.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Ut(Dr){return Dr.ending&&Dr.length===0&&Dr.bufferedRequest===null&&!Dr.finished&&!Dr.writing}function ir(Dr,Ar){Dr._final(function(Fr){Ar.pendingcb--,Fr&&cr(Dr,Fr),Ar.prefinished=!0,Dr.emit("prefinish"),_r(Dr,Ar)})}function Cr(Dr,Ar){!Ar.prefinished&&!Ar.finalCalled&&(typeof Dr._final=="function"&&!Ar.destroyed?(Ar.pendingcb++,Ar.finalCalled=!0,process$1$1.nextTick(ir,Dr,Ar)):(Ar.prefinished=!0,Dr.emit("prefinish")))}function _r(Dr,Ar){var Fr=Ut(Ar);if(Fr&&(Cr(Dr,Ar),Ar.pendingcb===0&&(Ar.finished=!0,Dr.emit("finish"),Ar.autoDestroy))){var Rr=Dr._readableState;(!Rr||Rr.autoDestroy&&Rr.endEmitted)&&Dr.destroy()}return Fr}function $r(Dr,Ar,Fr){Ar.ending=!0,_r(Dr,Ar),Fr&&(Ar.finished?process$1$1.nextTick(Fr):Dr.once("finish",Fr)),Ar.ended=!0,Dr.writable=!1}function Tr(Dr,Ar,Fr){var Rr=Dr.entry;for(Dr.entry=null;Rr;){var wr=Rr.callback;Ar.pendingcb--,wr(Fr),Rr=Rr.next}Ar.corkedRequestsFree.next=Dr}return Object.defineProperty(vr.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Ar){this._writableState&&(this._writableState.destroyed=Ar)}}),vr.prototype.destroy=Ft.destroy,vr.prototype._undestroy=Ft.undestroy,vr.prototype._destroy=function(Dr,Ar){Ar(Dr)},_stream_writable$1}var _stream_duplex$1,hasRequired_stream_duplex$1;function require_stream_duplex$1(){if(hasRequired_stream_duplex$1)return _stream_duplex$1;hasRequired_stream_duplex$1=1;var ht=Object.keys||function(kt){var Mt=[];for(var Nt in kt)Mt.push(Nt);return Mt};_stream_duplex$1=Bt;var Et=require_stream_readable$1(),yt=require_stream_writable$1();inherits_browserExports(Bt,Et);for(var Ct=ht(yt.prototype),$t=0;$t<Ct.length;$t++){var At=Ct[$t];Bt.prototype[At]||(Bt.prototype[At]=yt.prototype[At])}function Bt(kt){if(!(this instanceof Bt))return new Bt(kt);Et.call(this,kt),yt.call(this,kt),this.allowHalfOpen=!0,kt&&(kt.readable===!1&&(this.readable=!1),kt.writable===!1&&(this.writable=!1),kt.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",Dt)))}Object.defineProperty(Bt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(Bt.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(Bt.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Dt(){this._writableState.ended||process$1$1.nextTick(Ft,this)}function Ft(kt){kt.end()}return Object.defineProperty(Bt.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(Mt){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=Mt,this._writableState.destroyed=Mt)}}),_stream_duplex$1}var string_decoder={},Buffer$e=safeBufferExports.Buffer,isEncoding=Buffer$e.isEncoding||function(ht){switch(ht=""+ht,ht&&ht.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function _normalizeEncoding(ht){if(!ht)return"utf8";for(var Et;;)switch(ht){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return ht;default:if(Et)return;ht=(""+ht).toLowerCase(),Et=!0}}function normalizeEncoding(ht){var Et=_normalizeEncoding(ht);if(typeof Et!="string"&&(Buffer$e.isEncoding===isEncoding||!isEncoding(ht)))throw new Error("Unknown encoding: "+ht);return Et||ht}string_decoder.StringDecoder=StringDecoder$1;function StringDecoder$1(ht){this.encoding=normalizeEncoding(ht);var Et;switch(this.encoding){case"utf16le":this.text=utf16Text,this.end=utf16End,Et=4;break;case"utf8":this.fillLast=utf8FillLast,Et=4;break;case"base64":this.text=base64Text,this.end=base64End,Et=3;break;default:this.write=simpleWrite,this.end=simpleEnd;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Buffer$e.allocUnsafe(Et)}StringDecoder$1.prototype.write=function(ht){if(ht.length===0)return"";var Et,yt;if(this.lastNeed){if(Et=this.fillLast(ht),Et===void 0)return"";yt=this.lastNeed,this.lastNeed=0}else yt=0;return yt<ht.length?Et?Et+this.text(ht,yt):this.text(ht,yt):Et||""};StringDecoder$1.prototype.end=utf8End;StringDecoder$1.prototype.text=utf8Text;StringDecoder$1.prototype.fillLast=function(ht){if(this.lastNeed<=ht.length)return ht.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);ht.copy(this.lastChar,this.lastTotal-this.lastNeed,0,ht.length),this.lastNeed-=ht.length};function utf8CheckByte(ht){return ht<=127?0:ht>>5===6?2:ht>>4===14?3:ht>>3===30?4:ht>>6===2?-1:-2}function utf8CheckIncomplete(ht,Et,yt){var Ct=Et.length-1;if(Ct<yt)return 0;var $t=utf8CheckByte(Et[Ct]);return $t>=0?($t>0&&(ht.lastNeed=$t-1),$t):--Ct<yt||$t===-2?0:($t=utf8CheckByte(Et[Ct]),$t>=0?($t>0&&(ht.lastNeed=$t-2),$t):--Ct<yt||$t===-2?0:($t=utf8CheckByte(Et[Ct]),$t>=0?($t>0&&($t===2?$t=0:ht.lastNeed=$t-3),$t):0))}function utf8CheckExtraBytes(ht,Et,yt){if((Et[0]&192)!==128)return ht.lastNeed=0,"�";if(ht.lastNeed>1&&Et.length>1){if((Et[1]&192)!==128)return ht.lastNeed=1,"�";if(ht.lastNeed>2&&Et.length>2&&(Et[2]&192)!==128)return ht.lastNeed=2,"�"}}function utf8FillLast(ht){var Et=this.lastTotal-this.lastNeed,yt=utf8CheckExtraBytes(this,ht);if(yt!==void 0)return yt;if(this.lastNeed<=ht.length)return ht.copy(this.lastChar,Et,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);ht.copy(this.lastChar,Et,0,ht.length),this.lastNeed-=ht.length}function utf8Text(ht,Et){var yt=utf8CheckIncomplete(this,ht,Et);if(!this.lastNeed)return ht.toString("utf8",Et);this.lastTotal=yt;var Ct=ht.length-(yt-this.lastNeed);return ht.copy(this.lastChar,0,Ct),ht.toString("utf8",Et,Ct)}function utf8End(ht){var Et=ht&&ht.length?this.write(ht):"";return this.lastNeed?Et+"�":Et}function utf16Text(ht,Et){if((ht.length-Et)%2===0){var yt=ht.toString("utf16le",Et);if(yt){var Ct=yt.charCodeAt(yt.length-1);if(Ct>=55296&&Ct<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=ht[ht.length-2],this.lastChar[1]=ht[ht.length-1],yt.slice(0,-1)}return yt}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=ht[ht.length-1],ht.toString("utf16le",Et,ht.length-1)}function utf16End(ht){var Et=ht&&ht.length?this.write(ht):"";if(this.lastNeed){var yt=this.lastTotal-this.lastNeed;return Et+this.lastChar.toString("utf16le",0,yt)}return Et}function base64Text(ht,Et){var yt=(ht.length-Et)%3;return yt===0?ht.toString("base64",Et):(this.lastNeed=3-yt,this.lastTotal=3,yt===1?this.lastChar[0]=ht[ht.length-1]:(this.lastChar[0]=ht[ht.length-2],this.lastChar[1]=ht[ht.length-1]),ht.toString("base64",Et,ht.length-yt))}function base64End(ht){var Et=ht&&ht.length?this.write(ht):"";return this.lastNeed?Et+this.lastChar.toString("base64",0,3-this.lastNeed):Et}function simpleWrite(ht){return ht.toString(this.encoding)}function simpleEnd(ht){return ht&&ht.length?this.write(ht):""}var endOfStream,hasRequiredEndOfStream;function requireEndOfStream(){if(hasRequiredEndOfStream)return endOfStream;hasRequiredEndOfStream=1;var ht=requireErrorsBrowser().codes.ERR_STREAM_PREMATURE_CLOSE;function Et(At){var Bt=!1;return function(){if(!Bt){Bt=!0;for(var Dt=arguments.length,Ft=new Array(Dt),kt=0;kt<Dt;kt++)Ft[kt]=arguments[kt];At.apply(this,Ft)}}}function yt(){}function Ct(At){return At.setHeader&&typeof At.abort=="function"}function $t(At,Bt,Dt){if(typeof Bt=="function")return $t(At,null,Bt);Bt||(Bt={}),Dt=Et(Dt||yt);var Ft=Bt.readable||Bt.readable!==!1&&At.readable,kt=Bt.writable||Bt.writable!==!1&&At.writable,Mt=function(){At.writable||jt()},Nt=At._writableState&&At._writableState.finished,jt=function(){kt=!1,Nt=!0,Ft||Dt.call(At)},zt=At._readableState&&At._readableState.endEmitted,Vt=function(){Ft=!1,zt=!0,kt||Dt.call(At)},Kt=function(dr){Dt.call(At,dr)},Xt=function(){var dr;if(Ft&&!zt)return(!At._readableState||!At._readableState.ended)&&(dr=new ht),Dt.call(At,dr);if(kt&&!Nt)return(!At._writableState||!At._writableState.ended)&&(dr=new ht),Dt.call(At,dr)},Qt=function(){At.req.on("finish",jt)};return Ct(At)?(At.on("complete",jt),At.on("abort",Xt),At.req?Qt():At.on("request",Qt)):kt&&!At._writableState&&(At.on("end",Mt),At.on("close",Mt)),At.on("end",Vt),At.on("finish",jt),Bt.error!==!1&&At.on("error",Kt),At.on("close",Xt),function(){At.removeListener("complete",jt),At.removeListener("abort",Xt),At.removeListener("request",Qt),At.req&&At.req.removeListener("finish",jt),At.removeListener("end",Mt),At.removeListener("close",Mt),At.removeListener("finish",jt),At.removeListener("end",Vt),At.removeListener("error",Kt),At.removeListener("close",Xt)}}return endOfStream=$t,endOfStream}var async_iterator,hasRequiredAsync_iterator;function requireAsync_iterator(){if(hasRequiredAsync_iterator)return async_iterator;hasRequiredAsync_iterator=1;var ht;function Et(dr,cr,Er){return cr=yt(cr),cr in dr?Object.defineProperty(dr,cr,{value:Er,enumerable:!0,configurable:!0,writable:!0}):dr[cr]=Er,dr}function yt(dr){var cr=Ct(dr,"string");return typeof cr=="symbol"?cr:String(cr)}function Ct(dr,cr){if(typeof dr!="object"||dr===null)return dr;var Er=dr[Symbol.toPrimitive];if(Er!==void 0){var pr=Er.call(dr,cr||"default");if(typeof pr!="object")return pr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(cr==="string"?String:Number)(dr)}var $t=requireEndOfStream(),At=Symbol("lastResolve"),Bt=Symbol("lastReject"),Dt=Symbol("error"),Ft=Symbol("ended"),kt=Symbol("lastPromise"),Mt=Symbol("handlePromise"),Nt=Symbol("stream");function jt(dr,cr){return{value:dr,done:cr}}function zt(dr){var cr=dr[At];if(cr!==null){var Er=dr[Nt].read();Er!==null&&(dr[kt]=null,dr[At]=null,dr[Bt]=null,cr(jt(Er,!1)))}}function Vt(dr){process$1$1.nextTick(zt,dr)}function Kt(dr,cr){return function(Er,pr){dr.then(function(){if(cr[Ft]){Er(jt(void 0,!0));return}cr[Mt](Er,pr)},pr)}}var Xt=Object.getPrototypeOf(function(){}),Qt=Object.setPrototypeOf((ht={get stream(){return this[Nt]},next:function(){var cr=this,Er=this[Dt];if(Er!==null)return Promise.reject(Er);if(this[Ft])return Promise.resolve(jt(void 0,!0));if(this[Nt].destroyed)return new Promise(function(yr,xr){process$1$1.nextTick(function(){cr[Dt]?xr(cr[Dt]):yr(jt(void 0,!0))})});var pr=this[kt],gr;if(pr)gr=new Promise(Kt(pr,this));else{var vr=this[Nt].read();if(vr!==null)return Promise.resolve(jt(vr,!1));gr=new Promise(this[Mt])}return this[kt]=gr,gr}},Et(ht,Symbol.asyncIterator,function(){return this}),Et(ht,"return",function(){var cr=this;return new Promise(function(Er,pr){cr[Nt].destroy(null,function(gr){if(gr){pr(gr);return}Er(jt(void 0,!0))})})}),ht),Xt),Zt=function(cr){var Er,pr=Object.create(Qt,(Er={},Et(Er,Nt,{value:cr,writable:!0}),Et(Er,At,{value:null,writable:!0}),Et(Er,Bt,{value:null,writable:!0}),Et(Er,Dt,{value:null,writable:!0}),Et(Er,Ft,{value:cr._readableState.endEmitted,writable:!0}),Et(Er,Mt,{value:function(vr,yr){var xr=pr[Nt].read();xr?(pr[kt]=null,pr[At]=null,pr[Bt]=null,vr(jt(xr,!1))):(pr[At]=vr,pr[Bt]=yr)},writable:!0}),Er));return pr[kt]=null,$t(cr,function(gr){if(gr&&gr.code!=="ERR_STREAM_PREMATURE_CLOSE"){var vr=pr[Bt];vr!==null&&(pr[kt]=null,pr[At]=null,pr[Bt]=null,vr(gr)),pr[Dt]=gr;return}var yr=pr[At];yr!==null&&(pr[kt]=null,pr[At]=null,pr[Bt]=null,yr(jt(void 0,!0))),pr[Ft]=!0}),cr.on("readable",Vt.bind(null,pr)),pr};return async_iterator=Zt,async_iterator}var fromBrowser,hasRequiredFromBrowser;function requireFromBrowser(){return hasRequiredFromBrowser||(hasRequiredFromBrowser=1,fromBrowser=function(){throw new Error("Readable.from is not available in the browser")}),fromBrowser}var _stream_readable$1,hasRequired_stream_readable$1;function require_stream_readable$1(){if(hasRequired_stream_readable$1)return _stream_readable$1;hasRequired_stream_readable$1=1,_stream_readable$1=yr;var ht;yr.ReadableState=vr,eventsExports.EventEmitter;var Et=function(Br,Or){return Br.listeners(Or).length},yt=requireStreamBrowser$1(),Ct=require$$0$3.Buffer,$t=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function At(Sr){return Ct.from(Sr)}function Bt(Sr){return Ct.isBuffer(Sr)||Sr instanceof $t}var Dt=util$1,Ft;Dt&&Dt.debuglog?Ft=Dt.debuglog("stream"):Ft=function(){};var kt=requireBuffer_list(),Mt=requireDestroy$1(),Nt=requireState(),jt=Nt.getHighWaterMark,zt=requireErrorsBrowser().codes,Vt=zt.ERR_INVALID_ARG_TYPE,Kt=zt.ERR_STREAM_PUSH_AFTER_EOF,Xt=zt.ERR_METHOD_NOT_IMPLEMENTED,Qt=zt.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Zt,dr,cr;inherits_browserExports(yr,yt);var Er=Mt.errorOrDestroy,pr=["error","close","destroy","pause","resume"];function gr(Sr,Br,Or){if(typeof Sr.prependListener=="function")return Sr.prependListener(Br,Or);!Sr._events||!Sr._events[Br]?Sr.on(Br,Or):Array.isArray(Sr._events[Br])?Sr._events[Br].unshift(Or):Sr._events[Br]=[Or,Sr._events[Br]]}function vr(Sr,Br,Or){ht=ht||require_stream_duplex$1(),Sr=Sr||{},typeof Or!="boolean"&&(Or=Br instanceof ht),this.objectMode=!!Sr.objectMode,Or&&(this.objectMode=this.objectMode||!!Sr.readableObjectMode),this.highWaterMark=jt(this,Sr,"readableHighWaterMark",Or),this.buffer=new kt,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=Sr.emitClose!==!1,this.autoDestroy=!!Sr.autoDestroy,this.destroyed=!1,this.defaultEncoding=Sr.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Sr.encoding&&(Zt||(Zt=string_decoder.StringDecoder),this.decoder=new Zt(Sr.encoding),this.encoding=Sr.encoding)}function yr(Sr){if(ht=ht||require_stream_duplex$1(),!(this instanceof yr))return new yr(Sr);var Br=this instanceof ht;this._readableState=new vr(Sr,this,Br),this.readable=!0,Sr&&(typeof Sr.read=="function"&&(this._read=Sr.read),typeof Sr.destroy=="function"&&(this._destroy=Sr.destroy)),yt.call(this)}Object.defineProperty(yr.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Br){this._readableState&&(this._readableState.destroyed=Br)}}),yr.prototype.destroy=Mt.destroy,yr.prototype._undestroy=Mt.undestroy,yr.prototype._destroy=function(Sr,Br){Br(Sr)},yr.prototype.push=function(Sr,Br){var Or=this._readableState,Pr;return Or.objectMode?Pr=!0:typeof Sr=="string"&&(Br=Br||Or.defaultEncoding,Br!==Or.encoding&&(Sr=Ct.from(Sr,Br),Br=""),Pr=!0),xr(this,Sr,Br,!1,Pr)},yr.prototype.unshift=function(Sr){return xr(this,Sr,null,!0,!1)};function xr(Sr,Br,Or,Pr,Nr){Ft("readableAddChunk",Br);var Lr=Sr._readableState;if(Br===null)Lr.reading=!1,Yt(Sr,Lr);else{var Wr;if(Nr||(Wr=Lt(Lr,Br)),Wr)Er(Sr,Wr);else if(Lr.objectMode||Br&&Br.length>0)if(typeof Br!="string"&&!Lr.objectMode&&Object.getPrototypeOf(Br)!==Ct.prototype&&(Br=At(Br)),Pr)Lr.endEmitted?Er(Sr,new Qt):rr(Sr,Lr,Br,!0);else if(Lr.ended)Er(Sr,new Kt);else{if(Lr.destroyed)return!1;Lr.reading=!1,Lr.decoder&&!Or?(Br=Lr.decoder.write(Br),Lr.objectMode||Br.length!==0?rr(Sr,Lr,Br,!1):Jt(Sr,Lr)):rr(Sr,Lr,Br,!1)}else Pr||(Lr.reading=!1,Jt(Sr,Lr))}return!Lr.ended&&(Lr.length<Lr.highWaterMark||Lr.length===0)}function rr(Sr,Br,Or,Pr){Br.flowing&&Br.length===0&&!Br.sync?(Br.awaitDrain=0,Sr.emit("data",Or)):(Br.length+=Br.objectMode?1:Or.length,Pr?Br.buffer.unshift(Or):Br.buffer.push(Or),Br.needReadable&&er(Sr)),Jt(Sr,Br)}function Lt(Sr,Br){var Or;return!Bt(Br)&&typeof Br!="string"&&Br!==void 0&&!Sr.objectMode&&(Or=new Vt("chunk",["string","Buffer","Uint8Array"],Br)),Or}yr.prototype.isPaused=function(){return this._readableState.flowing===!1},yr.prototype.setEncoding=function(Sr){Zt||(Zt=string_decoder.StringDecoder);var Br=new Zt(Sr);this._readableState.decoder=Br,this._readableState.encoding=this._readableState.decoder.encoding;for(var Or=this._readableState.buffer.head,Pr="";Or!==null;)Pr+=Br.write(Or.data),Or=Or.next;return this._readableState.buffer.clear(),Pr!==""&&this._readableState.buffer.push(Pr),this._readableState.length=Pr.length,this};var Ht=1073741824;function Wt(Sr){return Sr>=Ht?Sr=Ht:(Sr--,Sr|=Sr>>>1,Sr|=Sr>>>2,Sr|=Sr>>>4,Sr|=Sr>>>8,Sr|=Sr>>>16,Sr++),Sr}function Gt(Sr,Br){return Sr<=0||Br.length===0&&Br.ended?0:Br.objectMode?1:Sr!==Sr?Br.flowing&&Br.length?Br.buffer.head.data.length:Br.length:(Sr>Br.highWaterMark&&(Br.highWaterMark=Wt(Sr)),Sr<=Br.length?Sr:Br.ended?Br.length:(Br.needReadable=!0,0))}yr.prototype.read=function(Sr){Ft("read",Sr),Sr=parseInt(Sr,10);var Br=this._readableState,Or=Sr;if(Sr!==0&&(Br.emittedReadable=!1),Sr===0&&Br.needReadable&&((Br.highWaterMark!==0?Br.length>=Br.highWaterMark:Br.length>0)||Br.ended))return Ft("read: emitReadable",Br.length,Br.ended),Br.length===0&&Br.ended?Fr(this):er(this),null;if(Sr=Gt(Sr,Br),Sr===0&&Br.ended)return Br.length===0&&Fr(this),null;var Pr=Br.needReadable;Ft("need readable",Pr),(Br.length===0||Br.length-Sr<Br.highWaterMark)&&(Pr=!0,Ft("length less than watermark",Pr)),Br.ended||Br.reading?(Pr=!1,Ft("reading or ended",Pr)):Pr&&(Ft("do read"),Br.reading=!0,Br.sync=!0,Br.length===0&&(Br.needReadable=!0),this._read(Br.highWaterMark),Br.sync=!1,Br.reading||(Sr=Gt(Or,Br)));var Nr;return Sr>0?Nr=Ar(Sr,Br):Nr=null,Nr===null?(Br.needReadable=Br.length<=Br.highWaterMark,Sr=0):(Br.length-=Sr,Br.awaitDrain=0),Br.length===0&&(Br.ended||(Br.needReadable=!0),Or!==Sr&&Br.ended&&Fr(this)),Nr!==null&&this.emit("data",Nr),Nr};function Yt(Sr,Br){if(Ft("onEofChunk"),!Br.ended){if(Br.decoder){var Or=Br.decoder.end();Or&&Or.length&&(Br.buffer.push(Or),Br.length+=Br.objectMode?1:Or.length)}Br.ended=!0,Br.sync?er(Sr):(Br.needReadable=!1,Br.emittedReadable||(Br.emittedReadable=!0,lr(Sr)))}}function er(Sr){var Br=Sr._readableState;Ft("emitReadable",Br.needReadable,Br.emittedReadable),Br.needReadable=!1,Br.emittedReadable||(Ft("emitReadable",Br.flowing),Br.emittedReadable=!0,process$1$1.nextTick(lr,Sr))}function lr(Sr){var Br=Sr._readableState;Ft("emitReadable_",Br.destroyed,Br.length,Br.ended),!Br.destroyed&&(Br.length||Br.ended)&&(Sr.emit("readable"),Br.emittedReadable=!1),Br.needReadable=!Br.flowing&&!Br.ended&&Br.length<=Br.highWaterMark,Dr(Sr)}function Jt(Sr,Br){Br.readingMore||(Br.readingMore=!0,process$1$1.nextTick(Ut,Sr,Br))}function Ut(Sr,Br){for(;!Br.reading&&!Br.ended&&(Br.length<Br.highWaterMark||Br.flowing&&Br.length===0);){var Or=Br.length;if(Ft("maybeReadMore read 0"),Sr.read(0),Or===Br.length)break}Br.readingMore=!1}yr.prototype._read=function(Sr){Er(this,new Xt("_read()"))},yr.prototype.pipe=function(Sr,Br){var Or=this,Pr=this._readableState;switch(Pr.pipesCount){case 0:Pr.pipes=Sr;break;case 1:Pr.pipes=[Pr.pipes,Sr];break;default:Pr.pipes.push(Sr);break}Pr.pipesCount+=1,Ft("pipe count=%d opts=%j",Pr.pipesCount,Br);var Nr=(!Br||Br.end!==!1)&&Sr!==process$1$1.stdout&&Sr!==process$1$1.stderr,Lr=Nr?Ur:Yr;Pr.endEmitted?process$1$1.nextTick(Lr):Or.once("end",Lr),Sr.on("unpipe",Wr);function Wr(Gr,Jr){Ft("onunpipe"),Gr===Or&&Jr&&Jr.hasUnpiped===!1&&(Jr.hasUnpiped=!0,qr())}function Ur(){Ft("onend"),Sr.end()}var jr=ir(Or);Sr.on("drain",jr);var Kr=!1;function qr(){Ft("cleanup"),Sr.removeListener("close",Xr),Sr.removeListener("finish",un),Sr.removeListener("drain",jr),Sr.removeListener("error",dn),Sr.removeListener("unpipe",Wr),Or.removeListener("end",Ur),Or.removeListener("end",Yr),Or.removeListener("data",Zr),Kr=!0,Pr.awaitDrain&&(!Sr._writableState||Sr._writableState.needDrain)&&jr()}Or.on("data",Zr);function Zr(Gr){Ft("ondata");var Jr=Sr.write(Gr);Ft("dest.write",Jr),Jr===!1&&((Pr.pipesCount===1&&Pr.pipes===Sr||Pr.pipesCount>1&&wr(Pr.pipes,Sr)!==-1)&&!Kr&&(Ft("false write response, pause",Pr.awaitDrain),Pr.awaitDrain++),Or.pause())}function dn(Gr){Ft("onerror",Gr),Yr(),Sr.removeListener("error",dn),Et(Sr,"error")===0&&Er(Sr,Gr)}gr(Sr,"error",dn);function Xr(){Sr.removeListener("finish",un),Yr()}Sr.once("close",Xr);function un(){Ft("onfinish"),Sr.removeListener("close",Xr),Yr()}Sr.once("finish",un);function Yr(){Ft("unpipe"),Or.unpipe(Sr)}return Sr.emit("pipe",Or),Pr.flowing||(Ft("pipe resume"),Or.resume()),Sr};function ir(Sr){return function(){var Or=Sr._readableState;Ft("pipeOnDrain",Or.awaitDrain),Or.awaitDrain&&Or.awaitDrain--,Or.awaitDrain===0&&Et(Sr,"data")&&(Or.flowing=!0,Dr(Sr))}}yr.prototype.unpipe=function(Sr){var Br=this._readableState,Or={hasUnpiped:!1};if(Br.pipesCount===0)return this;if(Br.pipesCount===1)return Sr&&Sr!==Br.pipes?this:(Sr||(Sr=Br.pipes),Br.pipes=null,Br.pipesCount=0,Br.flowing=!1,Sr&&Sr.emit("unpipe",this,Or),this);if(!Sr){var Pr=Br.pipes,Nr=Br.pipesCount;Br.pipes=null,Br.pipesCount=0,Br.flowing=!1;for(var Lr=0;Lr<Nr;Lr++)Pr[Lr].emit("unpipe",this,{hasUnpiped:!1});return this}var Wr=wr(Br.pipes,Sr);return Wr===-1?this:(Br.pipes.splice(Wr,1),Br.pipesCount-=1,Br.pipesCount===1&&(Br.pipes=Br.pipes[0]),Sr.emit("unpipe",this,Or),this)},yr.prototype.on=function(Sr,Br){var Or=yt.prototype.on.call(this,Sr,Br),Pr=this._readableState;return Sr==="data"?(Pr.readableListening=this.listenerCount("readable")>0,Pr.flowing!==!1&&this.resume()):Sr==="readable"&&!Pr.endEmitted&&!Pr.readableListening&&(Pr.readableListening=Pr.needReadable=!0,Pr.flowing=!1,Pr.emittedReadable=!1,Ft("on readable",Pr.length,Pr.reading),Pr.length?er(this):Pr.reading||process$1$1.nextTick(_r,this)),Or},yr.prototype.addListener=yr.prototype.on,yr.prototype.removeListener=function(Sr,Br){var Or=yt.prototype.removeListener.call(this,Sr,Br);return Sr==="readable"&&process$1$1.nextTick(Cr,this),Or},yr.prototype.removeAllListeners=function(Sr){var Br=yt.prototype.removeAllListeners.apply(this,arguments);return(Sr==="readable"||Sr===void 0)&&process$1$1.nextTick(Cr,this),Br};function Cr(Sr){var Br=Sr._readableState;Br.readableListening=Sr.listenerCount("readable")>0,Br.resumeScheduled&&!Br.paused?Br.flowing=!0:Sr.listenerCount("data")>0&&Sr.resume()}function _r(Sr){Ft("readable nexttick read 0"),Sr.read(0)}yr.prototype.resume=function(){var Sr=this._readableState;return Sr.flowing||(Ft("resume"),Sr.flowing=!Sr.readableListening,$r(this,Sr)),Sr.paused=!1,this};function $r(Sr,Br){Br.resumeScheduled||(Br.resumeScheduled=!0,process$1$1.nextTick(Tr,Sr,Br))}function Tr(Sr,Br){Ft("resume",Br.reading),Br.reading||Sr.read(0),Br.resumeScheduled=!1,Sr.emit("resume"),Dr(Sr),Br.flowing&&!Br.reading&&Sr.read(0)}yr.prototype.pause=function(){return Ft("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Ft("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Dr(Sr){var Br=Sr._readableState;for(Ft("flow",Br.flowing);Br.flowing&&Sr.read()!==null;);}yr.prototype.wrap=function(Sr){var Br=this,Or=this._readableState,Pr=!1;Sr.on("end",function(){if(Ft("wrapped end"),Or.decoder&&!Or.ended){var Wr=Or.decoder.end();Wr&&Wr.length&&Br.push(Wr)}Br.push(null)}),Sr.on("data",function(Wr){if(Ft("wrapped data"),Or.decoder&&(Wr=Or.decoder.write(Wr)),!(Or.objectMode&&Wr==null)&&!(!Or.objectMode&&(!Wr||!Wr.length))){var Ur=Br.push(Wr);Ur||(Pr=!0,Sr.pause())}});for(var Nr in Sr)this[Nr]===void 0&&typeof Sr[Nr]=="function"&&(this[Nr]=function(Ur){return function(){return Sr[Ur].apply(Sr,arguments)}}(Nr));for(var Lr=0;Lr<pr.length;Lr++)Sr.on(pr[Lr],this.emit.bind(this,pr[Lr]));return this._read=function(Wr){Ft("wrapped _read",Wr),Pr&&(Pr=!1,Sr.resume())},this},typeof Symbol=="function"&&(yr.prototype[Symbol.asyncIterator]=function(){return dr===void 0&&(dr=requireAsync_iterator()),dr(this)}),Object.defineProperty(yr.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(yr.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(yr.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(Br){this._readableState&&(this._readableState.flowing=Br)}}),yr._fromList=Ar,Object.defineProperty(yr.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Ar(Sr,Br){if(Br.length===0)return null;var Or;return Br.objectMode?Or=Br.buffer.shift():!Sr||Sr>=Br.length?(Br.decoder?Or=Br.buffer.join(""):Br.buffer.length===1?Or=Br.buffer.first():Or=Br.buffer.concat(Br.length),Br.buffer.clear()):Or=Br.buffer.consume(Sr,Br.decoder),Or}function Fr(Sr){var Br=Sr._readableState;Ft("endReadable",Br.endEmitted),Br.endEmitted||(Br.ended=!0,process$1$1.nextTick(Rr,Br,Sr))}function Rr(Sr,Br){if(Ft("endReadableNT",Sr.endEmitted,Sr.length),!Sr.endEmitted&&Sr.length===0&&(Sr.endEmitted=!0,Br.readable=!1,Br.emit("end"),Sr.autoDestroy)){var Or=Br._writableState;(!Or||Or.autoDestroy&&Or.finished)&&Br.destroy()}}typeof Symbol=="function"&&(yr.from=function(Sr,Br){return cr===void 0&&(cr=requireFromBrowser()),cr(yr,Sr,Br)});function wr(Sr,Br){for(var Or=0,Pr=Sr.length;Or<Pr;Or++)if(Sr[Or]===Br)return Or;return-1}return _stream_readable$1}var _stream_transform$1,hasRequired_stream_transform$1;function require_stream_transform$1(){if(hasRequired_stream_transform$1)return _stream_transform$1;hasRequired_stream_transform$1=1,_stream_transform$1=Dt;var ht=requireErrorsBrowser().codes,Et=ht.ERR_METHOD_NOT_IMPLEMENTED,yt=ht.ERR_MULTIPLE_CALLBACK,Ct=ht.ERR_TRANSFORM_ALREADY_TRANSFORMING,$t=ht.ERR_TRANSFORM_WITH_LENGTH_0,At=require_stream_duplex$1();inherits_browserExports(Dt,At);function Bt(Mt,Nt){var jt=this._transformState;jt.transforming=!1;var zt=jt.writecb;if(zt===null)return this.emit("error",new yt);jt.writechunk=null,jt.writecb=null,Nt!=null&&this.push(Nt),zt(Mt);var Vt=this._readableState;Vt.reading=!1,(Vt.needReadable||Vt.length<Vt.highWaterMark)&&this._read(Vt.highWaterMark)}function Dt(Mt){if(!(this instanceof Dt))return new Dt(Mt);At.call(this,Mt),this._transformState={afterTransform:Bt.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,Mt&&(typeof Mt.transform=="function"&&(this._transform=Mt.transform),typeof Mt.flush=="function"&&(this._flush=Mt.flush)),this.on("prefinish",Ft)}function Ft(){var Mt=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(Nt,jt){kt(Mt,Nt,jt)}):kt(this,null,null)}Dt.prototype.push=function(Mt,Nt){return this._transformState.needTransform=!1,At.prototype.push.call(this,Mt,Nt)},Dt.prototype._transform=function(Mt,Nt,jt){jt(new Et("_transform()"))},Dt.prototype._write=function(Mt,Nt,jt){var zt=this._transformState;if(zt.writecb=jt,zt.writechunk=Mt,zt.writeencoding=Nt,!zt.transforming){var Vt=this._readableState;(zt.needTransform||Vt.needReadable||Vt.length<Vt.highWaterMark)&&this._read(Vt.highWaterMark)}},Dt.prototype._read=function(Mt){var Nt=this._transformState;Nt.writechunk!==null&&!Nt.transforming?(Nt.transforming=!0,this._transform(Nt.writechunk,Nt.writeencoding,Nt.afterTransform)):Nt.needTransform=!0},Dt.prototype._destroy=function(Mt,Nt){At.prototype._destroy.call(this,Mt,function(jt){Nt(jt)})};function kt(Mt,Nt,jt){if(Nt)return Mt.emit("error",Nt);if(jt!=null&&Mt.push(jt),Mt._writableState.length)throw new $t;if(Mt._transformState.transforming)throw new Ct;return Mt.push(null)}return _stream_transform$1}var _stream_passthrough$1,hasRequired_stream_passthrough$1;function require_stream_passthrough$1(){if(hasRequired_stream_passthrough$1)return _stream_passthrough$1;hasRequired_stream_passthrough$1=1,_stream_passthrough$1=Et;var ht=require_stream_transform$1();inherits_browserExports(Et,ht);function Et(yt){if(!(this instanceof Et))return new Et(yt);ht.call(this,yt)}return Et.prototype._transform=function(yt,Ct,$t){$t(null,yt)},_stream_passthrough$1}var pipeline_1,hasRequiredPipeline;function requirePipeline(){if(hasRequiredPipeline)return pipeline_1;hasRequiredPipeline=1;var ht;function Et(jt){var zt=!1;return function(){zt||(zt=!0,jt.apply(void 0,arguments))}}var yt=requireErrorsBrowser().codes,Ct=yt.ERR_MISSING_ARGS,$t=yt.ERR_STREAM_DESTROYED;function At(jt){if(jt)throw jt}function Bt(jt){return jt.setHeader&&typeof jt.abort=="function"}function Dt(jt,zt,Vt,Kt){Kt=Et(Kt);var Xt=!1;jt.on("close",function(){Xt=!0}),ht===void 0&&(ht=requireEndOfStream()),ht(jt,{readable:zt,writable:Vt},function(Zt){if(Zt)return Kt(Zt);Xt=!0,Kt()});var Qt=!1;return function(Zt){if(!Xt&&!Qt){if(Qt=!0,Bt(jt))return jt.abort();if(typeof jt.destroy=="function")return jt.destroy();Kt(Zt||new $t("pipe"))}}}function Ft(jt){jt()}function kt(jt,zt){return jt.pipe(zt)}function Mt(jt){return!jt.length||typeof jt[jt.length-1]!="function"?At:jt.pop()}function Nt(){for(var jt=arguments.length,zt=new Array(jt),Vt=0;Vt<jt;Vt++)zt[Vt]=arguments[Vt];var Kt=Mt(zt);if(Array.isArray(zt[0])&&(zt=zt[0]),zt.length<2)throw new Ct("streams");var Xt,Qt=zt.map(function(Zt,dr){var cr=dr<zt.length-1,Er=dr>0;return Dt(Zt,cr,Er,function(pr){Xt||(Xt=pr),pr&&Qt.forEach(Ft),!cr&&(Qt.forEach(Ft),Kt(Xt))})});return zt.reduce(kt)}return pipeline_1=Nt,pipeline_1}(function(ht,Et){Et=ht.exports=require_stream_readable$1(),Et.Stream=Et,Et.Readable=Et,Et.Writable=require_stream_writable$1(),Et.Duplex=require_stream_duplex$1(),Et.Transform=require_stream_transform$1(),Et.PassThrough=require_stream_passthrough$1(),Et.finished=requireEndOfStream(),Et.pipeline=requirePipeline()})(readableBrowser$1,readableBrowser$1.exports);var readableBrowserExports=readableBrowser$1.exports,Buffer$d=safeBufferExports.Buffer,Transform$2=readableBrowserExports.Transform,inherits$h=inherits_browserExports;function throwIfNotStringOrBuffer$1(ht,Et){if(!Buffer$d.isBuffer(ht)&&typeof ht!="string")throw new TypeError(Et+" must be a string or a buffer")}function HashBase$3(ht){Transform$2.call(this),this._block=Buffer$d.allocUnsafe(ht),this._blockSize=ht,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}inherits$h(HashBase$3,Transform$2);HashBase$3.prototype._transform=function(ht,Et,yt){var Ct=null;try{this.update(ht,Et)}catch($t){Ct=$t}yt(Ct)};HashBase$3.prototype._flush=function(ht){var Et=null;try{this.push(this.digest())}catch(yt){Et=yt}ht(Et)};HashBase$3.prototype.update=function(ht,Et){if(throwIfNotStringOrBuffer$1(ht,"Data"),this._finalized)throw new Error("Digest already called");Buffer$d.isBuffer(ht)||(ht=Buffer$d.from(ht,Et));for(var yt=this._block,Ct=0;this._blockOffset+ht.length-Ct>=this._blockSize;){for(var $t=this._blockOffset;$t<this._blockSize;)yt[$t++]=ht[Ct++];this._update(),this._blockOffset=0}for(;Ct<ht.length;)yt[this._blockOffset++]=ht[Ct++];for(var At=0,Bt=ht.length*8;Bt>0;++At)this._length[At]+=Bt,Bt=this._length[At]/4294967296|0,Bt>0&&(this._length[At]-=4294967296*Bt);return this};HashBase$3.prototype._update=function(){throw new Error("_update is not implemented")};HashBase$3.prototype.digest=function(ht){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var Et=this._digest();ht!==void 0&&(Et=Et.toString(ht)),this._block.fill(0),this._blockOffset=0;for(var yt=0;yt<4;++yt)this._length[yt]=0;return Et};HashBase$3.prototype._digest=function(){throw new Error("_digest is not implemented")};var hashBase$1=HashBase$3,inherits$g=inherits_browserExports,HashBase$2=hashBase$1,Buffer$c=safeBufferExports.Buffer,ARRAY16$1=new Array(16);function MD5$1(){HashBase$2.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}inherits$g(MD5$1,HashBase$2);MD5$1.prototype._update=function(){for(var ht=ARRAY16$1,Et=0;Et<16;++Et)ht[Et]=this._block.readInt32LE(Et*4);var yt=this._a,Ct=this._b,$t=this._c,At=this._d;yt=fnF(yt,Ct,$t,At,ht[0],3614090360,7),At=fnF(At,yt,Ct,$t,ht[1],3905402710,12),$t=fnF($t,At,yt,Ct,ht[2],606105819,17),Ct=fnF(Ct,$t,At,yt,ht[3],3250441966,22),yt=fnF(yt,Ct,$t,At,ht[4],4118548399,7),At=fnF(At,yt,Ct,$t,ht[5],1200080426,12),$t=fnF($t,At,yt,Ct,ht[6],2821735955,17),Ct=fnF(Ct,$t,At,yt,ht[7],4249261313,22),yt=fnF(yt,Ct,$t,At,ht[8],1770035416,7),At=fnF(At,yt,Ct,$t,ht[9],2336552879,12),$t=fnF($t,At,yt,Ct,ht[10],4294925233,17),Ct=fnF(Ct,$t,At,yt,ht[11],2304563134,22),yt=fnF(yt,Ct,$t,At,ht[12],1804603682,7),At=fnF(At,yt,Ct,$t,ht[13],4254626195,12),$t=fnF($t,At,yt,Ct,ht[14],2792965006,17),Ct=fnF(Ct,$t,At,yt,ht[15],1236535329,22),yt=fnG(yt,Ct,$t,At,ht[1],4129170786,5),At=fnG(At,yt,Ct,$t,ht[6],3225465664,9),$t=fnG($t,At,yt,Ct,ht[11],643717713,14),Ct=fnG(Ct,$t,At,yt,ht[0],3921069994,20),yt=fnG(yt,Ct,$t,At,ht[5],3593408605,5),At=fnG(At,yt,Ct,$t,ht[10],38016083,9),$t=fnG($t,At,yt,Ct,ht[15],3634488961,14),Ct=fnG(Ct,$t,At,yt,ht[4],3889429448,20),yt=fnG(yt,Ct,$t,At,ht[9],568446438,5),At=fnG(At,yt,Ct,$t,ht[14],3275163606,9),$t=fnG($t,At,yt,Ct,ht[3],4107603335,14),Ct=fnG(Ct,$t,At,yt,ht[8],1163531501,20),yt=fnG(yt,Ct,$t,At,ht[13],2850285829,5),At=fnG(At,yt,Ct,$t,ht[2],4243563512,9),$t=fnG($t,At,yt,Ct,ht[7],1735328473,14),Ct=fnG(Ct,$t,At,yt,ht[12],2368359562,20),yt=fnH(yt,Ct,$t,At,ht[5],4294588738,4),At=fnH(At,yt,Ct,$t,ht[8],2272392833,11),$t=fnH($t,At,yt,Ct,ht[11],1839030562,16),Ct=fnH(Ct,$t,At,yt,ht[14],4259657740,23),yt=fnH(yt,Ct,$t,At,ht[1],2763975236,4),At=fnH(At,yt,Ct,$t,ht[4],1272893353,11),$t=fnH($t,At,yt,Ct,ht[7],4139469664,16),Ct=fnH(Ct,$t,At,yt,ht[10],3200236656,23),yt=fnH(yt,Ct,$t,At,ht[13],681279174,4),At=fnH(At,yt,Ct,$t,ht[0],3936430074,11),$t=fnH($t,At,yt,Ct,ht[3],3572445317,16),Ct=fnH(Ct,$t,At,yt,ht[6],76029189,23),yt=fnH(yt,Ct,$t,At,ht[9],3654602809,4),At=fnH(At,yt,Ct,$t,ht[12],3873151461,11),$t=fnH($t,At,yt,Ct,ht[15],530742520,16),Ct=fnH(Ct,$t,At,yt,ht[2],3299628645,23),yt=fnI(yt,Ct,$t,At,ht[0],4096336452,6),At=fnI(At,yt,Ct,$t,ht[7],1126891415,10),$t=fnI($t,At,yt,Ct,ht[14],2878612391,15),Ct=fnI(Ct,$t,At,yt,ht[5],4237533241,21),yt=fnI(yt,Ct,$t,At,ht[12],1700485571,6),At=fnI(At,yt,Ct,$t,ht[3],2399980690,10),$t=fnI($t,At,yt,Ct,ht[10],4293915773,15),Ct=fnI(Ct,$t,At,yt,ht[1],2240044497,21),yt=fnI(yt,Ct,$t,At,ht[8],1873313359,6),At=fnI(At,yt,Ct,$t,ht[15],4264355552,10),$t=fnI($t,At,yt,Ct,ht[6],2734768916,15),Ct=fnI(Ct,$t,At,yt,ht[13],1309151649,21),yt=fnI(yt,Ct,$t,At,ht[4],4149444226,6),At=fnI(At,yt,Ct,$t,ht[11],3174756917,10),$t=fnI($t,At,yt,Ct,ht[2],718787259,15),Ct=fnI(Ct,$t,At,yt,ht[9],3951481745,21),this._a=this._a+yt|0,this._b=this._b+Ct|0,this._c=this._c+$t|0,this._d=this._d+At|0};MD5$1.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var ht=Buffer$c.allocUnsafe(16);return ht.writeInt32LE(this._a,0),ht.writeInt32LE(this._b,4),ht.writeInt32LE(this._c,8),ht.writeInt32LE(this._d,12),ht};function rotl$1(ht,Et){return ht<<Et|ht>>>32-Et}function fnF(ht,Et,yt,Ct,$t,At,Bt){return rotl$1(ht+(Et&yt|~Et&Ct)+$t+At|0,Bt)+Et|0}function fnG(ht,Et,yt,Ct,$t,At,Bt){return rotl$1(ht+(Et&Ct|yt&~Ct)+$t+At|0,Bt)+Et|0}function fnH(ht,Et,yt,Ct,$t,At,Bt){return rotl$1(ht+(Et^yt^Ct)+$t+At|0,Bt)+Et|0}function fnI(ht,Et,yt,Ct,$t,At,Bt){return rotl$1(ht+(yt^(Et|~Ct))+$t+At|0,Bt)+Et|0}var md5_js=MD5$1,Buffer$b=safeBufferExports.Buffer,Transform$1=readableBrowserExports.Transform,inherits$f=inherits_browserExports;function throwIfNotStringOrBuffer(ht,Et){if(!Buffer$b.isBuffer(ht)&&typeof ht!="string")throw new TypeError(Et+" must be a string or a buffer")}function HashBase$1(ht){Transform$1.call(this),this._block=Buffer$b.allocUnsafe(ht),this._blockSize=ht,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}inherits$f(HashBase$1,Transform$1);HashBase$1.prototype._transform=function(ht,Et,yt){var Ct=null;try{this.update(ht,Et)}catch($t){Ct=$t}yt(Ct)};HashBase$1.prototype._flush=function(ht){var Et=null;try{this.push(this.digest())}catch(yt){Et=yt}ht(Et)};HashBase$1.prototype.update=function(ht,Et){if(throwIfNotStringOrBuffer(ht,"Data"),this._finalized)throw new Error("Digest already called");Buffer$b.isBuffer(ht)||(ht=Buffer$b.from(ht,Et));for(var yt=this._block,Ct=0;this._blockOffset+ht.length-Ct>=this._blockSize;){for(var $t=this._blockOffset;$t<this._blockSize;)yt[$t++]=ht[Ct++];this._update(),this._blockOffset=0}for(;Ct<ht.length;)yt[this._blockOffset++]=ht[Ct++];for(var At=0,Bt=ht.length*8;Bt>0;++At)this._length[At]+=Bt,Bt=this._length[At]/4294967296|0,Bt>0&&(this._length[At]-=4294967296*Bt);return this};HashBase$1.prototype._update=function(){throw new Error("_update is not implemented")};HashBase$1.prototype.digest=function(ht){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var Et=this._digest();ht!==void 0&&(Et=Et.toString(ht)),this._block.fill(0),this._blockOffset=0;for(var yt=0;yt<4;++yt)this._length[yt]=0;return Et};HashBase$1.prototype._digest=function(){throw new Error("_digest is not implemented")};var hashBase=HashBase$1,Buffer$a=require$$0$3.Buffer,inherits$e=inherits_browserExports,HashBase=hashBase,ARRAY16=new Array(16),zl=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],zr=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],sl$1=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],sr$1=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],hl=[0,1518500249,1859775393,2400959708,2840853838],hr$2=[1352829926,1548603684,1836072691,2053994217,0];function RIPEMD160$2(){HashBase.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}inherits$e(RIPEMD160$2,HashBase);RIPEMD160$2.prototype._update=function(){for(var ht=ARRAY16,Et=0;Et<16;++Et)ht[Et]=this._block.readInt32LE(Et*4);for(var yt=this._a|0,Ct=this._b|0,$t=this._c|0,At=this._d|0,Bt=this._e|0,Dt=this._a|0,Ft=this._b|0,kt=this._c|0,Mt=this._d|0,Nt=this._e|0,jt=0;jt<80;jt+=1){var zt,Vt;jt<16?(zt=fn1(yt,Ct,$t,At,Bt,ht[zl[jt]],hl[0],sl$1[jt]),Vt=fn5(Dt,Ft,kt,Mt,Nt,ht[zr[jt]],hr$2[0],sr$1[jt])):jt<32?(zt=fn2(yt,Ct,$t,At,Bt,ht[zl[jt]],hl[1],sl$1[jt]),Vt=fn4(Dt,Ft,kt,Mt,Nt,ht[zr[jt]],hr$2[1],sr$1[jt])):jt<48?(zt=fn3(yt,Ct,$t,At,Bt,ht[zl[jt]],hl[2],sl$1[jt]),Vt=fn3(Dt,Ft,kt,Mt,Nt,ht[zr[jt]],hr$2[2],sr$1[jt])):jt<64?(zt=fn4(yt,Ct,$t,At,Bt,ht[zl[jt]],hl[3],sl$1[jt]),Vt=fn2(Dt,Ft,kt,Mt,Nt,ht[zr[jt]],hr$2[3],sr$1[jt])):(zt=fn5(yt,Ct,$t,At,Bt,ht[zl[jt]],hl[4],sl$1[jt]),Vt=fn1(Dt,Ft,kt,Mt,Nt,ht[zr[jt]],hr$2[4],sr$1[jt])),yt=Bt,Bt=At,At=rotl($t,10),$t=Ct,Ct=zt,Dt=Nt,Nt=Mt,Mt=rotl(kt,10),kt=Ft,Ft=Vt}var Kt=this._b+$t+Mt|0;this._b=this._c+At+Nt|0,this._c=this._d+Bt+Dt|0,this._d=this._e+yt+Ft|0,this._e=this._a+Ct+kt|0,this._a=Kt};RIPEMD160$2.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var ht=Buffer$a.alloc?Buffer$a.alloc(20):new Buffer$a(20);return ht.writeInt32LE(this._a,0),ht.writeInt32LE(this._b,4),ht.writeInt32LE(this._c,8),ht.writeInt32LE(this._d,12),ht.writeInt32LE(this._e,16),ht};function rotl(ht,Et){return ht<<Et|ht>>>32-Et}function fn1(ht,Et,yt,Ct,$t,At,Bt,Dt){return rotl(ht+(Et^yt^Ct)+At+Bt|0,Dt)+$t|0}function fn2(ht,Et,yt,Ct,$t,At,Bt,Dt){return rotl(ht+(Et&yt|~Et&Ct)+At+Bt|0,Dt)+$t|0}function fn3(ht,Et,yt,Ct,$t,At,Bt,Dt){return rotl(ht+((Et|~yt)^Ct)+At+Bt|0,Dt)+$t|0}function fn4(ht,Et,yt,Ct,$t,At,Bt,Dt){return rotl(ht+(Et&Ct|yt&~Ct)+At+Bt|0,Dt)+$t|0}function fn5(ht,Et,yt,Ct,$t,At,Bt,Dt){return rotl(ht+(Et^(yt|~Ct))+At+Bt|0,Dt)+$t|0}var ripemd160=RIPEMD160$2,sha_js={exports:{}},Buffer$9=safeBufferExports.Buffer;function Hash$c(ht,Et){this._block=Buffer$9.alloc(ht),this._finalSize=Et,this._blockSize=ht,this._len=0}Hash$c.prototype.update=function(ht,Et){typeof ht=="string"&&(Et=Et||"utf8",ht=Buffer$9.from(ht,Et));for(var yt=this._block,Ct=this._blockSize,$t=ht.length,At=this._len,Bt=0;Bt<$t;){for(var Dt=At%Ct,Ft=Math.min($t-Bt,Ct-Dt),kt=0;kt<Ft;kt++)yt[Dt+kt]=ht[Bt+kt];At+=Ft,Bt+=Ft,At%Ct===0&&this._update(yt)}return this._len+=$t,this};Hash$c.prototype.digest=function(ht){var Et=this._len%this._blockSize;this._block[Et]=128,this._block.fill(0,Et+1),Et>=this._finalSize&&(this._update(this._block),this._block.fill(0));var yt=this._len*8;if(yt<=4294967295)this._block.writeUInt32BE(yt,this._blockSize-4);else{var Ct=(yt&4294967295)>>>0,$t=(yt-Ct)/4294967296;this._block.writeUInt32BE($t,this._blockSize-8),this._block.writeUInt32BE(Ct,this._blockSize-4)}this._update(this._block);var At=this._hash();return ht?At.toString(ht):At};Hash$c.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var hash$4=Hash$c,inherits$d=inherits_browserExports,Hash$b=hash$4,Buffer$8=safeBufferExports.Buffer,K$4=[1518500249,1859775393,-1894007588,-899497514],W$5=new Array(80);function Sha(){this.init(),this._w=W$5,Hash$b.call(this,64,56)}inherits$d(Sha,Hash$b);Sha.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function rotl5$1(ht){return ht<<5|ht>>>27}function rotl30$1(ht){return ht<<30|ht>>>2}function ft$2(ht,Et,yt,Ct){return ht===0?Et&yt|~Et&Ct:ht===2?Et&yt|Et&Ct|yt&Ct:Et^yt^Ct}Sha.prototype._update=function(ht){for(var Et=this._w,yt=this._a|0,Ct=this._b|0,$t=this._c|0,At=this._d|0,Bt=this._e|0,Dt=0;Dt<16;++Dt)Et[Dt]=ht.readInt32BE(Dt*4);for(;Dt<80;++Dt)Et[Dt]=Et[Dt-3]^Et[Dt-8]^Et[Dt-14]^Et[Dt-16];for(var Ft=0;Ft<80;++Ft){var kt=~~(Ft/20),Mt=rotl5$1(yt)+ft$2(kt,Ct,$t,At)+Bt+Et[Ft]+K$4[kt]|0;Bt=At,At=$t,$t=rotl30$1(Ct),Ct=yt,yt=Mt}this._a=yt+this._a|0,this._b=Ct+this._b|0,this._c=$t+this._c|0,this._d=At+this._d|0,this._e=Bt+this._e|0};Sha.prototype._hash=function(){var ht=Buffer$8.allocUnsafe(20);return ht.writeInt32BE(this._a|0,0),ht.writeInt32BE(this._b|0,4),ht.writeInt32BE(this._c|0,8),ht.writeInt32BE(this._d|0,12),ht.writeInt32BE(this._e|0,16),ht};var sha$2=Sha,inherits$c=inherits_browserExports,Hash$a=hash$4,Buffer$7=safeBufferExports.Buffer,K$3=[1518500249,1859775393,-1894007588,-899497514],W$4=new Array(80);function Sha1(){this.init(),this._w=W$4,Hash$a.call(this,64,56)}inherits$c(Sha1,Hash$a);Sha1.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function rotl1(ht){return ht<<1|ht>>>31}function rotl5(ht){return ht<<5|ht>>>27}function rotl30(ht){return ht<<30|ht>>>2}function ft$1(ht,Et,yt,Ct){return ht===0?Et&yt|~Et&Ct:ht===2?Et&yt|Et&Ct|yt&Ct:Et^yt^Ct}Sha1.prototype._update=function(ht){for(var Et=this._w,yt=this._a|0,Ct=this._b|0,$t=this._c|0,At=this._d|0,Bt=this._e|0,Dt=0;Dt<16;++Dt)Et[Dt]=ht.readInt32BE(Dt*4);for(;Dt<80;++Dt)Et[Dt]=rotl1(Et[Dt-3]^Et[Dt-8]^Et[Dt-14]^Et[Dt-16]);for(var Ft=0;Ft<80;++Ft){var kt=~~(Ft/20),Mt=rotl5(yt)+ft$1(kt,Ct,$t,At)+Bt+Et[Ft]+K$3[kt]|0;Bt=At,At=$t,$t=rotl30(Ct),Ct=yt,yt=Mt}this._a=yt+this._a|0,this._b=Ct+this._b|0,this._c=$t+this._c|0,this._d=At+this._d|0,this._e=Bt+this._e|0};Sha1.prototype._hash=function(){var ht=Buffer$7.allocUnsafe(20);return ht.writeInt32BE(this._a|0,0),ht.writeInt32BE(this._b|0,4),ht.writeInt32BE(this._c|0,8),ht.writeInt32BE(this._d|0,12),ht.writeInt32BE(this._e|0,16),ht};var sha1=Sha1,inherits$b=inherits_browserExports,Hash$9=hash$4,Buffer$6=safeBufferExports.Buffer,K$2=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],W$3=new Array(64);function Sha256$1(){this.init(),this._w=W$3,Hash$9.call(this,64,56)}inherits$b(Sha256$1,Hash$9);Sha256$1.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function ch(ht,Et,yt){return yt^ht&(Et^yt)}function maj$1(ht,Et,yt){return ht&Et|yt&(ht|Et)}function sigma0$1(ht){return(ht>>>2|ht<<30)^(ht>>>13|ht<<19)^(ht>>>22|ht<<10)}function sigma1$1(ht){return(ht>>>6|ht<<26)^(ht>>>11|ht<<21)^(ht>>>25|ht<<7)}function gamma0(ht){return(ht>>>7|ht<<25)^(ht>>>18|ht<<14)^ht>>>3}function gamma1(ht){return(ht>>>17|ht<<15)^(ht>>>19|ht<<13)^ht>>>10}Sha256$1.prototype._update=function(ht){for(var Et=this._w,yt=this._a|0,Ct=this._b|0,$t=this._c|0,At=this._d|0,Bt=this._e|0,Dt=this._f|0,Ft=this._g|0,kt=this._h|0,Mt=0;Mt<16;++Mt)Et[Mt]=ht.readInt32BE(Mt*4);for(;Mt<64;++Mt)Et[Mt]=gamma1(Et[Mt-2])+Et[Mt-7]+gamma0(Et[Mt-15])+Et[Mt-16]|0;for(var Nt=0;Nt<64;++Nt){var jt=kt+sigma1$1(Bt)+ch(Bt,Dt,Ft)+K$2[Nt]+Et[Nt]|0,zt=sigma0$1(yt)+maj$1(yt,Ct,$t)|0;kt=Ft,Ft=Dt,Dt=Bt,Bt=At+jt|0,At=$t,$t=Ct,Ct=yt,yt=jt+zt|0}this._a=yt+this._a|0,this._b=Ct+this._b|0,this._c=$t+this._c|0,this._d=At+this._d|0,this._e=Bt+this._e|0,this._f=Dt+this._f|0,this._g=Ft+this._g|0,this._h=kt+this._h|0};Sha256$1.prototype._hash=function(){var ht=Buffer$6.allocUnsafe(32);return ht.writeInt32BE(this._a,0),ht.writeInt32BE(this._b,4),ht.writeInt32BE(this._c,8),ht.writeInt32BE(this._d,12),ht.writeInt32BE(this._e,16),ht.writeInt32BE(this._f,20),ht.writeInt32BE(this._g,24),ht.writeInt32BE(this._h,28),ht};var sha256$2=Sha256$1,inherits$a=inherits_browserExports,Sha256=sha256$2,Hash$8=hash$4,Buffer$5=safeBufferExports.Buffer,W$2=new Array(64);function Sha224(){this.init(),this._w=W$2,Hash$8.call(this,64,56)}inherits$a(Sha224,Sha256);Sha224.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this};Sha224.prototype._hash=function(){var ht=Buffer$5.allocUnsafe(28);return ht.writeInt32BE(this._a,0),ht.writeInt32BE(this._b,4),ht.writeInt32BE(this._c,8),ht.writeInt32BE(this._d,12),ht.writeInt32BE(this._e,16),ht.writeInt32BE(this._f,20),ht.writeInt32BE(this._g,24),ht};var sha224$1=Sha224,inherits$9=inherits_browserExports,Hash$7=hash$4,Buffer$4=safeBufferExports.Buffer,K$1=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],W$1=new Array(160);function Sha512(){this.init(),this._w=W$1,Hash$7.call(this,128,112)}inherits$9(Sha512,Hash$7);Sha512.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function Ch(ht,Et,yt){return yt^ht&(Et^yt)}function maj(ht,Et,yt){return ht&Et|yt&(ht|Et)}function sigma0(ht,Et){return(ht>>>28|Et<<4)^(Et>>>2|ht<<30)^(Et>>>7|ht<<25)}function sigma1(ht,Et){return(ht>>>14|Et<<18)^(ht>>>18|Et<<14)^(Et>>>9|ht<<23)}function Gamma0(ht,Et){return(ht>>>1|Et<<31)^(ht>>>8|Et<<24)^ht>>>7}function Gamma0l(ht,Et){return(ht>>>1|Et<<31)^(ht>>>8|Et<<24)^(ht>>>7|Et<<25)}function Gamma1(ht,Et){return(ht>>>19|Et<<13)^(Et>>>29|ht<<3)^ht>>>6}function Gamma1l(ht,Et){return(ht>>>19|Et<<13)^(Et>>>29|ht<<3)^(ht>>>6|Et<<26)}function getCarry(ht,Et){return ht>>>0<Et>>>0?1:0}Sha512.prototype._update=function(ht){for(var Et=this._w,yt=this._ah|0,Ct=this._bh|0,$t=this._ch|0,At=this._dh|0,Bt=this._eh|0,Dt=this._fh|0,Ft=this._gh|0,kt=this._hh|0,Mt=this._al|0,Nt=this._bl|0,jt=this._cl|0,zt=this._dl|0,Vt=this._el|0,Kt=this._fl|0,Xt=this._gl|0,Qt=this._hl|0,Zt=0;Zt<32;Zt+=2)Et[Zt]=ht.readInt32BE(Zt*4),Et[Zt+1]=ht.readInt32BE(Zt*4+4);for(;Zt<160;Zt+=2){var dr=Et[Zt-30],cr=Et[Zt-15*2+1],Er=Gamma0(dr,cr),pr=Gamma0l(cr,dr);dr=Et[Zt-2*2],cr=Et[Zt-2*2+1];var gr=Gamma1(dr,cr),vr=Gamma1l(cr,dr),yr=Et[Zt-7*2],xr=Et[Zt-7*2+1],rr=Et[Zt-16*2],Lt=Et[Zt-16*2+1],Ht=pr+xr|0,Wt=Er+yr+getCarry(Ht,pr)|0;Ht=Ht+vr|0,Wt=Wt+gr+getCarry(Ht,vr)|0,Ht=Ht+Lt|0,Wt=Wt+rr+getCarry(Ht,Lt)|0,Et[Zt]=Wt,Et[Zt+1]=Ht}for(var Gt=0;Gt<160;Gt+=2){Wt=Et[Gt],Ht=Et[Gt+1];var Yt=maj(yt,Ct,$t),er=maj(Mt,Nt,jt),lr=sigma0(yt,Mt),Jt=sigma0(Mt,yt),Ut=sigma1(Bt,Vt),ir=sigma1(Vt,Bt),Cr=K$1[Gt],_r=K$1[Gt+1],$r=Ch(Bt,Dt,Ft),Tr=Ch(Vt,Kt,Xt),Dr=Qt+ir|0,Ar=kt+Ut+getCarry(Dr,Qt)|0;Dr=Dr+Tr|0,Ar=Ar+$r+getCarry(Dr,Tr)|0,Dr=Dr+_r|0,Ar=Ar+Cr+getCarry(Dr,_r)|0,Dr=Dr+Ht|0,Ar=Ar+Wt+getCarry(Dr,Ht)|0;var Fr=Jt+er|0,Rr=lr+Yt+getCarry(Fr,Jt)|0;kt=Ft,Qt=Xt,Ft=Dt,Xt=Kt,Dt=Bt,Kt=Vt,Vt=zt+Dr|0,Bt=At+Ar+getCarry(Vt,zt)|0,At=$t,zt=jt,$t=Ct,jt=Nt,Ct=yt,Nt=Mt,Mt=Dr+Fr|0,yt=Ar+Rr+getCarry(Mt,Dr)|0}this._al=this._al+Mt|0,this._bl=this._bl+Nt|0,this._cl=this._cl+jt|0,this._dl=this._dl+zt|0,this._el=this._el+Vt|0,this._fl=this._fl+Kt|0,this._gl=this._gl+Xt|0,this._hl=this._hl+Qt|0,this._ah=this._ah+yt+getCarry(this._al,Mt)|0,this._bh=this._bh+Ct+getCarry(this._bl,Nt)|0,this._ch=this._ch+$t+getCarry(this._cl,jt)|0,this._dh=this._dh+At+getCarry(this._dl,zt)|0,this._eh=this._eh+Bt+getCarry(this._el,Vt)|0,this._fh=this._fh+Dt+getCarry(this._fl,Kt)|0,this._gh=this._gh+Ft+getCarry(this._gl,Xt)|0,this._hh=this._hh+kt+getCarry(this._hl,Qt)|0};Sha512.prototype._hash=function(){var ht=Buffer$4.allocUnsafe(64);function Et(yt,Ct,$t){ht.writeInt32BE(yt,$t),ht.writeInt32BE(Ct,$t+4)}return Et(this._ah,this._al,0),Et(this._bh,this._bl,8),Et(this._ch,this._cl,16),Et(this._dh,this._dl,24),Et(this._eh,this._el,32),Et(this._fh,this._fl,40),Et(this._gh,this._gl,48),Et(this._hh,this._hl,56),ht};var sha512$1=Sha512,inherits$8=inherits_browserExports,SHA512$2=sha512$1,Hash$6=hash$4,Buffer$3=safeBufferExports.Buffer,W=new Array(160);function Sha384(){this.init(),this._w=W,Hash$6.call(this,128,112)}inherits$8(Sha384,SHA512$2);Sha384.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this};Sha384.prototype._hash=function(){var ht=Buffer$3.allocUnsafe(48);function Et(yt,Ct,$t){ht.writeInt32BE(yt,$t),ht.writeInt32BE(Ct,$t+4)}return Et(this._ah,this._al,0),Et(this._bh,this._bl,8),Et(this._ch,this._cl,16),Et(this._dh,this._dl,24),Et(this._eh,this._el,32),Et(this._fh,this._fl,40),ht};var sha384$1=Sha384,exports$1=sha_js.exports=function(Et){Et=Et.toLowerCase();var yt=exports$1[Et];if(!yt)throw new Error(Et+" is not supported (we accept pull requests)");return new yt};exports$1.sha=sha$2;exports$1.sha1=sha1;exports$1.sha224=sha224$1;exports$1.sha256=sha256$2;exports$1.sha384=sha384$1;exports$1.sha512=sha512$1;var sha_jsExports=sha_js.exports,streamBrowserify=Stream,EE=eventsExports.EventEmitter,inherits$7=inherits_browserExports;inherits$7(Stream,EE);Stream.Readable=require_stream_readable$1();Stream.Writable=require_stream_writable$1();Stream.Duplex=require_stream_duplex$1();Stream.Transform=require_stream_transform$1();Stream.PassThrough=require_stream_passthrough$1();Stream.finished=requireEndOfStream();Stream.pipeline=requirePipeline();Stream.Stream=Stream;function Stream(){EE.call(this)}Stream.prototype.pipe=function(ht,Et){var yt=this;function Ct(Mt){ht.writable&&ht.write(Mt)===!1&&yt.pause&&yt.pause()}yt.on("data",Ct);function $t(){yt.readable&&yt.resume&&yt.resume()}ht.on("drain",$t),!ht._isStdio&&(!Et||Et.end!==!1)&&(yt.on("end",Bt),yt.on("close",Dt));var At=!1;function Bt(){At||(At=!0,ht.end())}function Dt(){At||(At=!0,typeof ht.destroy=="function"&&ht.destroy())}function Ft(Mt){if(kt(),EE.listenerCount(this,"error")===0)throw Mt}yt.on("error",Ft),ht.on("error",Ft);function kt(){yt.removeListener("data",Ct),ht.removeListener("drain",$t),yt.removeListener("end",Bt),yt.removeListener("close",Dt),yt.removeListener("error",Ft),ht.removeListener("error",Ft),yt.removeListener("end",kt),yt.removeListener("close",kt),ht.removeListener("close",kt)}return yt.on("end",kt),yt.on("close",kt),ht.on("close",kt),ht.emit("pipe",yt),ht};const Stream$1=getDefaultExportFromCjs$1(streamBrowserify);var Buffer$2=safeBufferExports.Buffer,Transform=streamBrowserify.Transform,StringDecoder=string_decoder.StringDecoder,inherits$6=inherits_browserExports;function CipherBase(ht){Transform.call(this),this.hashMode=typeof ht=="string",this.hashMode?this[ht]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}inherits$6(CipherBase,Transform);CipherBase.prototype.update=function(ht,Et,yt){typeof ht=="string"&&(ht=Buffer$2.from(ht,Et));var Ct=this._update(ht);return this.hashMode?this:(yt&&(Ct=this._toString(Ct,yt)),Ct)};CipherBase.prototype.setAutoPadding=function(){};CipherBase.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};CipherBase.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};CipherBase.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};CipherBase.prototype._transform=function(ht,Et,yt){var Ct;try{this.hashMode?this._update(ht):this.push(this._update(ht))}catch($t){Ct=$t}finally{yt(Ct)}};CipherBase.prototype._flush=function(ht){var Et;try{this.push(this.__final())}catch(yt){Et=yt}ht(Et)};CipherBase.prototype._finalOrDigest=function(ht){var Et=this.__final()||Buffer$2.alloc(0);return ht&&(Et=this._toString(Et,ht,!0)),Et};CipherBase.prototype._toString=function(ht,Et,yt){if(this._decoder||(this._decoder=new StringDecoder(Et),this._encoding=Et),this._encoding!==Et)throw new Error("can't switch encodings");var Ct=this._decoder.write(ht);return yt&&(Ct+=this._decoder.end()),Ct};var cipherBase=CipherBase,inherits$5=inherits_browserExports,MD5=md5_js,RIPEMD160$1=ripemd160,sha$1=sha_jsExports,Base$3=cipherBase;function Hash$5(ht){Base$3.call(this,"digest"),this._hash=ht}inherits$5(Hash$5,Base$3);Hash$5.prototype._update=function(ht){this._hash.update(ht)};Hash$5.prototype._final=function(){return this._hash.digest()};var browser$a=function(Et){return Et=Et.toLowerCase(),Et==="md5"?new MD5:Et==="rmd160"||Et==="ripemd160"?new RIPEMD160$1:new Hash$5(sha$1(Et))},legacy,hasRequiredLegacy;function requireLegacy(){if(hasRequiredLegacy)return legacy;hasRequiredLegacy=1;var ht=inherits_browserExports,Et=safeBufferExports.Buffer,yt=cipherBase,Ct=Et.alloc(128),$t=64;function At(Bt,Dt){yt.call(this,"digest"),typeof Dt=="string"&&(Dt=Et.from(Dt)),this._alg=Bt,this._key=Dt,Dt.length>$t?Dt=Bt(Dt):Dt.length<$t&&(Dt=Et.concat([Dt,Ct],$t));for(var Ft=this._ipad=Et.allocUnsafe($t),kt=this._opad=Et.allocUnsafe($t),Mt=0;Mt<$t;Mt++)Ft[Mt]=Dt[Mt]^54,kt[Mt]=Dt[Mt]^92;this._hash=[Ft]}return ht(At,yt),At.prototype._update=function(Bt){this._hash.push(Bt)},At.prototype._final=function(){var Bt=this._alg(Et.concat(this._hash));return this._alg(Et.concat([this._opad,Bt]))},legacy=At,legacy}var md5$2,hasRequiredMd5;function requireMd5(){if(hasRequiredMd5)return md5$2;hasRequiredMd5=1;var ht=md5_js;return md5$2=function(Et){return new ht().update(Et).digest()},md5$2}var browser$9,hasRequiredBrowser$8;function requireBrowser$8(){if(hasRequiredBrowser$8)return browser$9;hasRequiredBrowser$8=1;var ht=inherits_browserExports,Et=requireLegacy(),yt=cipherBase,Ct=safeBufferExports.Buffer,$t=requireMd5(),At=ripemd160,Bt=sha_jsExports,Dt=Ct.alloc(128);function Ft(kt,Mt){yt.call(this,"digest"),typeof Mt=="string"&&(Mt=Ct.from(Mt));var Nt=kt==="sha512"||kt==="sha384"?128:64;if(this._alg=kt,this._key=Mt,Mt.length>Nt){var jt=kt==="rmd160"?new At:Bt(kt);Mt=jt.update(Mt).digest()}else Mt.length<Nt&&(Mt=Ct.concat([Mt,Dt],Nt));for(var zt=this._ipad=Ct.allocUnsafe(Nt),Vt=this._opad=Ct.allocUnsafe(Nt),Kt=0;Kt<Nt;Kt++)zt[Kt]=Mt[Kt]^54,Vt[Kt]=Mt[Kt]^92;this._hash=kt==="rmd160"?new At:Bt(kt),this._hash.update(zt)}return ht(Ft,yt),Ft.prototype._update=function(kt){this._hash.update(kt)},Ft.prototype._final=function(){var kt=this._hash.digest(),Mt=this._alg==="rmd160"?new At:Bt(this._alg);return Mt.update(this._opad).update(kt).digest()},browser$9=function(Mt,Nt){return Mt=Mt.toLowerCase(),Mt==="rmd160"||Mt==="ripemd160"?new Ft("rmd160",Nt):Mt==="md5"?new Et($t,Nt):new Ft(Mt,Nt)},browser$9}const sha224WithRSAEncryption={sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption={sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption={sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption={sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},sha256$1={sign:"ecdsa",hash:"sha256",id:""},sha224={sign:"ecdsa",hash:"sha224",id:""},sha384={sign:"ecdsa",hash:"sha384",id:""},sha512={sign:"ecdsa",hash:"sha512",id:""},DSA={sign:"dsa",hash:"sha1",id:""},ripemd160WithRSA={sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption={sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},require$$6={sha224WithRSAEncryption,"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption,"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption,"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption,"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:sha256$1,sha224,sha384,sha512,"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA,"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA,"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption,"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}};var algos,hasRequiredAlgos;function requireAlgos(){return hasRequiredAlgos||(hasRequiredAlgos=1,algos=require$$6),algos}var browser$8={},precondition,hasRequiredPrecondition;function requirePrecondition(){if(hasRequiredPrecondition)return precondition;hasRequiredPrecondition=1;var ht=Math.pow(2,30)-1;return precondition=function(Et,yt){if(typeof Et!="number")throw new TypeError("Iterations not a number");if(Et<0)throw new TypeError("Bad iterations");if(typeof yt!="number")throw new TypeError("Key length not a number");if(yt<0||yt>ht||yt!==yt)throw new TypeError("Bad key length")},precondition}var defaultEncoding_1,hasRequiredDefaultEncoding;function requireDefaultEncoding(){if(hasRequiredDefaultEncoding)return defaultEncoding_1;hasRequiredDefaultEncoding=1;var ht;if(commonjsGlobal.process&&commonjsGlobal.process.browser)ht="utf-8";else if(commonjsGlobal.process&&commonjsGlobal.process.version){var Et=parseInt(process$1$1.version.split(".")[0].slice(1),10);ht=Et>=6?"utf-8":"binary"}else ht="utf-8";return defaultEncoding_1=ht,defaultEncoding_1}var toBuffer,hasRequiredToBuffer;function requireToBuffer(){if(hasRequiredToBuffer)return toBuffer;hasRequiredToBuffer=1;var ht=safeBufferExports.Buffer;return toBuffer=function(Et,yt,Ct){if(ht.isBuffer(Et))return Et;if(typeof Et=="string")return ht.from(Et,yt);if(ArrayBuffer.isView(Et))return ht.from(Et.buffer);throw new TypeError(Ct+" must be a string, a Buffer, a typed array or a DataView")},toBuffer}var syncBrowser,hasRequiredSyncBrowser;function requireSyncBrowser(){if(hasRequiredSyncBrowser)return syncBrowser;hasRequiredSyncBrowser=1;var ht=requireMd5(),Et=ripemd160,yt=sha_jsExports,Ct=safeBufferExports.Buffer,$t=requirePrecondition(),At=requireDefaultEncoding(),Bt=requireToBuffer(),Dt=Ct.alloc(128),Ft={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function kt(jt,zt,Vt){var Kt=Mt(jt),Xt=jt==="sha512"||jt==="sha384"?128:64;zt.length>Xt?zt=Kt(zt):zt.length<Xt&&(zt=Ct.concat([zt,Dt],Xt));for(var Qt=Ct.allocUnsafe(Xt+Ft[jt]),Zt=Ct.allocUnsafe(Xt+Ft[jt]),dr=0;dr<Xt;dr++)Qt[dr]=zt[dr]^54,Zt[dr]=zt[dr]^92;var cr=Ct.allocUnsafe(Xt+Vt+4);Qt.copy(cr,0,0,Xt),this.ipad1=cr,this.ipad2=Qt,this.opad=Zt,this.alg=jt,this.blocksize=Xt,this.hash=Kt,this.size=Ft[jt]}kt.prototype.run=function(jt,zt){jt.copy(zt,this.blocksize);var Vt=this.hash(zt);return Vt.copy(this.opad,this.blocksize),this.hash(this.opad)};function Mt(jt){function zt(Kt){return yt(jt).update(Kt).digest()}function Vt(Kt){return new Et().update(Kt).digest()}return jt==="rmd160"||jt==="ripemd160"?Vt:jt==="md5"?ht:zt}function Nt(jt,zt,Vt,Kt,Xt){$t(Vt,Kt),jt=Bt(jt,At,"Password"),zt=Bt(zt,At,"Salt"),Xt=Xt||"sha1";var Qt=new kt(Xt,jt,zt.length),Zt=Ct.allocUnsafe(Kt),dr=Ct.allocUnsafe(zt.length+4);zt.copy(dr,0,0,zt.length);for(var cr=0,Er=Ft[Xt],pr=Math.ceil(Kt/Er),gr=1;gr<=pr;gr++){dr.writeUInt32BE(gr,zt.length);for(var vr=Qt.run(dr,Qt.ipad1),yr=vr,xr=1;xr<Vt;xr++){yr=Qt.run(yr,Qt.ipad2);for(var rr=0;rr<Er;rr++)vr[rr]^=yr[rr]}vr.copy(Zt,cr),cr+=Er}return Zt}return syncBrowser=Nt,syncBrowser}var async,hasRequiredAsync;function requireAsync(){if(hasRequiredAsync)return async;hasRequiredAsync=1;var ht=safeBufferExports.Buffer,Et=requirePrecondition(),yt=requireDefaultEncoding(),Ct=requireSyncBrowser(),$t=requireToBuffer(),At,Bt=commonjsGlobal.crypto&&commonjsGlobal.crypto.subtle,Dt={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},Ft=[];function kt(Vt){if(commonjsGlobal.process&&!commonjsGlobal.process.browser||!Bt||!Bt.importKey||!Bt.deriveBits)return Promise.resolve(!1);if(Ft[Vt]!==void 0)return Ft[Vt];At=At||ht.alloc(8);var Kt=jt(At,At,10,128,Vt).then(function(){return!0}).catch(function(){return!1});return Ft[Vt]=Kt,Kt}var Mt;function Nt(){return Mt||(commonjsGlobal.process&&commonjsGlobal.process.nextTick?Mt=commonjsGlobal.process.nextTick:commonjsGlobal.queueMicrotask?Mt=commonjsGlobal.queueMicrotask:commonjsGlobal.setImmediate?Mt=commonjsGlobal.setImmediate:Mt=commonjsGlobal.setTimeout,Mt)}function jt(Vt,Kt,Xt,Qt,Zt){return Bt.importKey("raw",Vt,{name:"PBKDF2"},!1,["deriveBits"]).then(function(dr){return Bt.deriveBits({name:"PBKDF2",salt:Kt,iterations:Xt,hash:{name:Zt}},dr,Qt<<3)}).then(function(dr){return ht.from(dr)})}function zt(Vt,Kt){Vt.then(function(Xt){Nt()(function(){Kt(null,Xt)})},function(Xt){Nt()(function(){Kt(Xt)})})}return async=function(Vt,Kt,Xt,Qt,Zt,dr){typeof Zt=="function"&&(dr=Zt,Zt=void 0),Zt=Zt||"sha1";var cr=Dt[Zt.toLowerCase()];if(!cr||typeof commonjsGlobal.Promise!="function"){Nt()(function(){var Er;try{Er=Ct(Vt,Kt,Xt,Qt,Zt)}catch(pr){return dr(pr)}dr(null,Er)});return}if(Et(Xt,Qt),Vt=$t(Vt,yt,"Password"),Kt=$t(Kt,yt,"Salt"),typeof dr!="function")throw new Error("No callback provided to pbkdf2");zt(kt(cr).then(function(Er){return Er?jt(Vt,Kt,Xt,Qt,cr):Ct(Vt,Kt,Xt,Qt,Zt)}),dr)},async}var hasRequiredBrowser$7;function requireBrowser$7(){return hasRequiredBrowser$7||(hasRequiredBrowser$7=1,browser$8.pbkdf2=requireAsync(),browser$8.pbkdf2Sync=requireSyncBrowser()),browser$8}var browser$7={},des$1={},utils$q={},hasRequiredUtils$1;function requireUtils$1(){if(hasRequiredUtils$1)return utils$q;hasRequiredUtils$1=1,utils$q.readUInt32BE=function($t,At){var Bt=$t[0+At]<<24|$t[1+At]<<16|$t[2+At]<<8|$t[3+At];return Bt>>>0},utils$q.writeUInt32BE=function($t,At,Bt){$t[0+Bt]=At>>>24,$t[1+Bt]=At>>>16&255,$t[2+Bt]=At>>>8&255,$t[3+Bt]=At&255},utils$q.ip=function($t,At,Bt,Dt){for(var Ft=0,kt=0,Mt=6;Mt>=0;Mt-=2){for(var Nt=0;Nt<=24;Nt+=8)Ft<<=1,Ft|=At>>>Nt+Mt&1;for(var Nt=0;Nt<=24;Nt+=8)Ft<<=1,Ft|=$t>>>Nt+Mt&1}for(var Mt=6;Mt>=0;Mt-=2){for(var Nt=1;Nt<=25;Nt+=8)kt<<=1,kt|=At>>>Nt+Mt&1;for(var Nt=1;Nt<=25;Nt+=8)kt<<=1,kt|=$t>>>Nt+Mt&1}Bt[Dt+0]=Ft>>>0,Bt[Dt+1]=kt>>>0},utils$q.rip=function($t,At,Bt,Dt){for(var Ft=0,kt=0,Mt=0;Mt<4;Mt++)for(var Nt=24;Nt>=0;Nt-=8)Ft<<=1,Ft|=At>>>Nt+Mt&1,Ft<<=1,Ft|=$t>>>Nt+Mt&1;for(var Mt=4;Mt<8;Mt++)for(var Nt=24;Nt>=0;Nt-=8)kt<<=1,kt|=At>>>Nt+Mt&1,kt<<=1,kt|=$t>>>Nt+Mt&1;Bt[Dt+0]=Ft>>>0,Bt[Dt+1]=kt>>>0},utils$q.pc1=function($t,At,Bt,Dt){for(var Ft=0,kt=0,Mt=7;Mt>=5;Mt--){for(var Nt=0;Nt<=24;Nt+=8)Ft<<=1,Ft|=At>>Nt+Mt&1;for(var Nt=0;Nt<=24;Nt+=8)Ft<<=1,Ft|=$t>>Nt+Mt&1}for(var Nt=0;Nt<=24;Nt+=8)Ft<<=1,Ft|=At>>Nt+Mt&1;for(var Mt=1;Mt<=3;Mt++){for(var Nt=0;Nt<=24;Nt+=8)kt<<=1,kt|=At>>Nt+Mt&1;for(var Nt=0;Nt<=24;Nt+=8)kt<<=1,kt|=$t>>Nt+Mt&1}for(var Nt=0;Nt<=24;Nt+=8)kt<<=1,kt|=$t>>Nt+Mt&1;Bt[Dt+0]=Ft>>>0,Bt[Dt+1]=kt>>>0},utils$q.r28shl=function($t,At){return $t<<At&268435455|$t>>>28-At};var ht=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];utils$q.pc2=function($t,At,Bt,Dt){for(var Ft=0,kt=0,Mt=ht.length>>>1,Nt=0;Nt<Mt;Nt++)Ft<<=1,Ft|=$t>>>ht[Nt]&1;for(var Nt=Mt;Nt<ht.length;Nt++)kt<<=1,kt|=At>>>ht[Nt]&1;Bt[Dt+0]=Ft>>>0,Bt[Dt+1]=kt>>>0},utils$q.expand=function($t,At,Bt){var Dt=0,Ft=0;Dt=($t&1)<<5|$t>>>27;for(var kt=23;kt>=15;kt-=4)Dt<<=6,Dt|=$t>>>kt&63;for(var kt=11;kt>=3;kt-=4)Ft|=$t>>>kt&63,Ft<<=6;Ft|=($t&31)<<1|$t>>>31,At[Bt+0]=Dt>>>0,At[Bt+1]=Ft>>>0};var Et=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];utils$q.substitute=function($t,At){for(var Bt=0,Dt=0;Dt<4;Dt++){var Ft=$t>>>18-Dt*6&63,kt=Et[Dt*64+Ft];Bt<<=4,Bt|=kt}for(var Dt=0;Dt<4;Dt++){var Ft=At>>>18-Dt*6&63,kt=Et[4*64+Dt*64+Ft];Bt<<=4,Bt|=kt}return Bt>>>0};var yt=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];return utils$q.permute=function($t){for(var At=0,Bt=0;Bt<yt.length;Bt++)At<<=1,At|=$t>>>yt[Bt]&1;return At>>>0},utils$q.padSplit=function($t,At,Bt){for(var Dt=$t.toString(2);Dt.length<At;)Dt="0"+Dt;for(var Ft=[],kt=0;kt<At;kt+=Bt)Ft.push(Dt.slice(kt,kt+Bt));return Ft.join(" ")},utils$q}var minimalisticAssert=assert$f;function assert$f(ht,Et){if(!ht)throw new Error(Et||"Assertion failed")}assert$f.equal=function(Et,yt,Ct){if(Et!=yt)throw new Error(Ct||"Assertion failed: "+Et+" != "+yt)};var cipher,hasRequiredCipher;function requireCipher(){if(hasRequiredCipher)return cipher;hasRequiredCipher=1;var ht=minimalisticAssert;function Et(yt){this.options=yt,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=yt.padding!==!1}return cipher=Et,Et.prototype._init=function(){},Et.prototype.update=function(Ct){return Ct.length===0?[]:this.type==="decrypt"?this._updateDecrypt(Ct):this._updateEncrypt(Ct)},Et.prototype._buffer=function(Ct,$t){for(var At=Math.min(this.buffer.length-this.bufferOff,Ct.length-$t),Bt=0;Bt<At;Bt++)this.buffer[this.bufferOff+Bt]=Ct[$t+Bt];return this.bufferOff+=At,At},Et.prototype._flushBuffer=function(Ct,$t){return this._update(this.buffer,0,Ct,$t),this.bufferOff=0,this.blockSize},Et.prototype._updateEncrypt=function(Ct){var $t=0,At=0,Bt=(this.bufferOff+Ct.length)/this.blockSize|0,Dt=new Array(Bt*this.blockSize);this.bufferOff!==0&&($t+=this._buffer(Ct,$t),this.bufferOff===this.buffer.length&&(At+=this._flushBuffer(Dt,At)));for(var Ft=Ct.length-(Ct.length-$t)%this.blockSize;$t<Ft;$t+=this.blockSize)this._update(Ct,$t,Dt,At),At+=this.blockSize;for(;$t<Ct.length;$t++,this.bufferOff++)this.buffer[this.bufferOff]=Ct[$t];return Dt},Et.prototype._updateDecrypt=function(Ct){for(var $t=0,At=0,Bt=Math.ceil((this.bufferOff+Ct.length)/this.blockSize)-1,Dt=new Array(Bt*this.blockSize);Bt>0;Bt--)$t+=this._buffer(Ct,$t),At+=this._flushBuffer(Dt,At);return $t+=this._buffer(Ct,$t),Dt},Et.prototype.final=function(Ct){var $t;Ct&&($t=this.update(Ct));var At;return this.type==="encrypt"?At=this._finalEncrypt():At=this._finalDecrypt(),$t?$t.concat(At):At},Et.prototype._pad=function(Ct,$t){if($t===0)return!1;for(;$t<Ct.length;)Ct[$t++]=0;return!0},Et.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var Ct=new Array(this.blockSize);return this._update(this.buffer,0,Ct,0),Ct},Et.prototype._unpad=function(Ct){return Ct},Et.prototype._finalDecrypt=function(){ht.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var Ct=new Array(this.blockSize);return this._flushBuffer(Ct,0),this._unpad(Ct)},cipher}var des,hasRequiredDes$1;function requireDes$1(){if(hasRequiredDes$1)return des;hasRequiredDes$1=1;var ht=minimalisticAssert,Et=inherits_browserExports,yt=requireUtils$1(),Ct=requireCipher();function $t(){this.tmp=new Array(2),this.keys=null}function At(Dt){Ct.call(this,Dt);var Ft=new $t;this._desState=Ft,this.deriveKeys(Ft,Dt.key)}Et(At,Ct),des=At,At.create=function(Ft){return new At(Ft)};var Bt=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];return At.prototype.deriveKeys=function(Ft,kt){Ft.keys=new Array(16*2),ht.equal(kt.length,this.blockSize,"Invalid key length");var Mt=yt.readUInt32BE(kt,0),Nt=yt.readUInt32BE(kt,4);yt.pc1(Mt,Nt,Ft.tmp,0),Mt=Ft.tmp[0],Nt=Ft.tmp[1];for(var jt=0;jt<Ft.keys.length;jt+=2){var zt=Bt[jt>>>1];Mt=yt.r28shl(Mt,zt),Nt=yt.r28shl(Nt,zt),yt.pc2(Mt,Nt,Ft.keys,jt)}},At.prototype._update=function(Ft,kt,Mt,Nt){var jt=this._desState,zt=yt.readUInt32BE(Ft,kt),Vt=yt.readUInt32BE(Ft,kt+4);yt.ip(zt,Vt,jt.tmp,0),zt=jt.tmp[0],Vt=jt.tmp[1],this.type==="encrypt"?this._encrypt(jt,zt,Vt,jt.tmp,0):this._decrypt(jt,zt,Vt,jt.tmp,0),zt=jt.tmp[0],Vt=jt.tmp[1],yt.writeUInt32BE(Mt,zt,Nt),yt.writeUInt32BE(Mt,Vt,Nt+4)},At.prototype._pad=function(Ft,kt){if(this.padding===!1)return!1;for(var Mt=Ft.length-kt,Nt=kt;Nt<Ft.length;Nt++)Ft[Nt]=Mt;return!0},At.prototype._unpad=function(Ft){if(this.padding===!1)return Ft;for(var kt=Ft[Ft.length-1],Mt=Ft.length-kt;Mt<Ft.length;Mt++)ht.equal(Ft[Mt],kt);return Ft.slice(0,Ft.length-kt)},At.prototype._encrypt=function(Ft,kt,Mt,Nt,jt){for(var zt=kt,Vt=Mt,Kt=0;Kt<Ft.keys.length;Kt+=2){var Xt=Ft.keys[Kt],Qt=Ft.keys[Kt+1];yt.expand(Vt,Ft.tmp,0),Xt^=Ft.tmp[0],Qt^=Ft.tmp[1];var Zt=yt.substitute(Xt,Qt),dr=yt.permute(Zt),cr=Vt;Vt=(zt^dr)>>>0,zt=cr}yt.rip(Vt,zt,Nt,jt)},At.prototype._decrypt=function(Ft,kt,Mt,Nt,jt){for(var zt=Mt,Vt=kt,Kt=Ft.keys.length-2;Kt>=0;Kt-=2){var Xt=Ft.keys[Kt],Qt=Ft.keys[Kt+1];yt.expand(zt,Ft.tmp,0),Xt^=Ft.tmp[0],Qt^=Ft.tmp[1];var Zt=yt.substitute(Xt,Qt),dr=yt.permute(Zt),cr=zt;zt=(Vt^dr)>>>0,Vt=cr}yt.rip(zt,Vt,Nt,jt)},des}var cbc$1={},hasRequiredCbc$1;function requireCbc$1(){if(hasRequiredCbc$1)return cbc$1;hasRequiredCbc$1=1;var ht=minimalisticAssert,Et=inherits_browserExports,yt={};function Ct(At){ht.equal(At.length,8,"Invalid IV length"),this.iv=new Array(8);for(var Bt=0;Bt<this.iv.length;Bt++)this.iv[Bt]=At[Bt]}function $t(At){function Bt(Mt){At.call(this,Mt),this._cbcInit()}Et(Bt,At);for(var Dt=Object.keys(yt),Ft=0;Ft<Dt.length;Ft++){var kt=Dt[Ft];Bt.prototype[kt]=yt[kt]}return Bt.create=function(Nt){return new Bt(Nt)},Bt}return cbc$1.instantiate=$t,yt._cbcInit=function(){var Bt=new Ct(this.options.iv);this._cbcState=Bt},yt._update=function(Bt,Dt,Ft,kt){var Mt=this._cbcState,Nt=this.constructor.super_.prototype,jt=Mt.iv;if(this.type==="encrypt"){for(var zt=0;zt<this.blockSize;zt++)jt[zt]^=Bt[Dt+zt];Nt._update.call(this,jt,0,Ft,kt);for(var zt=0;zt<this.blockSize;zt++)jt[zt]=Ft[kt+zt]}else{Nt._update.call(this,Bt,Dt,Ft,kt);for(var zt=0;zt<this.blockSize;zt++)Ft[kt+zt]^=jt[zt];for(var zt=0;zt<this.blockSize;zt++)jt[zt]=Bt[Dt+zt]}},cbc$1}var ede,hasRequiredEde;function requireEde(){if(hasRequiredEde)return ede;hasRequiredEde=1;var ht=minimalisticAssert,Et=inherits_browserExports,yt=requireCipher(),Ct=requireDes$1();function $t(Bt,Dt){ht.equal(Dt.length,24,"Invalid key length");var Ft=Dt.slice(0,8),kt=Dt.slice(8,16),Mt=Dt.slice(16,24);Bt==="encrypt"?this.ciphers=[Ct.create({type:"encrypt",key:Ft}),Ct.create({type:"decrypt",key:kt}),Ct.create({type:"encrypt",key:Mt})]:this.ciphers=[Ct.create({type:"decrypt",key:Mt}),Ct.create({type:"encrypt",key:kt}),Ct.create({type:"decrypt",key:Ft})]}function At(Bt){yt.call(this,Bt);var Dt=new $t(this.type,this.options.key);this._edeState=Dt}return Et(At,yt),ede=At,At.create=function(Dt){return new At(Dt)},At.prototype._update=function(Dt,Ft,kt,Mt){var Nt=this._edeState;Nt.ciphers[0]._update(Dt,Ft,kt,Mt),Nt.ciphers[1]._update(kt,Mt,kt,Mt),Nt.ciphers[2]._update(kt,Mt,kt,Mt)},At.prototype._pad=Ct.prototype._pad,At.prototype._unpad=Ct.prototype._unpad,ede}var hasRequiredDes;function requireDes(){return hasRequiredDes||(hasRequiredDes=1,des$1.utils=requireUtils$1(),des$1.Cipher=requireCipher(),des$1.DES=requireDes$1(),des$1.CBC=requireCbc$1(),des$1.EDE=requireEde()),des$1}var browserifyDes,hasRequiredBrowserifyDes;function requireBrowserifyDes(){if(hasRequiredBrowserifyDes)return browserifyDes;hasRequiredBrowserifyDes=1;var ht=cipherBase,Et=requireDes(),yt=inherits_browserExports,Ct=safeBufferExports.Buffer,$t={"des-ede3-cbc":Et.CBC.instantiate(Et.EDE),"des-ede3":Et.EDE,"des-ede-cbc":Et.CBC.instantiate(Et.EDE),"des-ede":Et.EDE,"des-cbc":Et.CBC.instantiate(Et.DES),"des-ecb":Et.DES};$t.des=$t["des-cbc"],$t.des3=$t["des-ede3-cbc"],browserifyDes=At,yt(At,ht);function At(Bt){ht.call(this);var Dt=Bt.mode.toLowerCase(),Ft=$t[Dt],kt;Bt.decrypt?kt="decrypt":kt="encrypt";var Mt=Bt.key;Ct.isBuffer(Mt)||(Mt=Ct.from(Mt)),(Dt==="des-ede"||Dt==="des-ede-cbc")&&(Mt=Ct.concat([Mt,Mt.slice(0,8)]));var Nt=Bt.iv;Ct.isBuffer(Nt)||(Nt=Ct.from(Nt)),this._des=Ft.create({key:Mt,iv:Nt,type:kt})}return At.prototype._update=function(Bt){return Ct.from(this._des.update(Bt))},At.prototype._final=function(){return Ct.from(this._des.final())},browserifyDes}var browser$6={},encrypter={},ecb={},hasRequiredEcb;function requireEcb(){return hasRequiredEcb||(hasRequiredEcb=1,ecb.encrypt=function(ht,Et){return ht._cipher.encryptBlock(Et)},ecb.decrypt=function(ht,Et){return ht._cipher.decryptBlock(Et)}),ecb}var cbc={},bufferXor,hasRequiredBufferXor;function requireBufferXor(){return hasRequiredBufferXor||(hasRequiredBufferXor=1,bufferXor=function(Et,yt){for(var Ct=Math.min(Et.length,yt.length),$t=new Buffer$g(Ct),At=0;At<Ct;++At)$t[At]=Et[At]^yt[At];return $t}),bufferXor}var hasRequiredCbc;function requireCbc(){if(hasRequiredCbc)return cbc;hasRequiredCbc=1;var ht=requireBufferXor();return cbc.encrypt=function(Et,yt){var Ct=ht(yt,Et._prev);return Et._prev=Et._cipher.encryptBlock(Ct),Et._prev},cbc.decrypt=function(Et,yt){var Ct=Et._prev;Et._prev=yt;var $t=Et._cipher.decryptBlock(yt);return ht($t,Ct)},cbc}var cfb={},hasRequiredCfb;function requireCfb(){if(hasRequiredCfb)return cfb;hasRequiredCfb=1;var ht=safeBufferExports.Buffer,Et=requireBufferXor();function yt(Ct,$t,At){var Bt=$t.length,Dt=Et($t,Ct._cache);return Ct._cache=Ct._cache.slice(Bt),Ct._prev=ht.concat([Ct._prev,At?$t:Dt]),Dt}return cfb.encrypt=function(Ct,$t,At){for(var Bt=ht.allocUnsafe(0),Dt;$t.length;)if(Ct._cache.length===0&&(Ct._cache=Ct._cipher.encryptBlock(Ct._prev),Ct._prev=ht.allocUnsafe(0)),Ct._cache.length<=$t.length)Dt=Ct._cache.length,Bt=ht.concat([Bt,yt(Ct,$t.slice(0,Dt),At)]),$t=$t.slice(Dt);else{Bt=ht.concat([Bt,yt(Ct,$t,At)]);break}return Bt},cfb}var cfb8={},hasRequiredCfb8;function requireCfb8(){if(hasRequiredCfb8)return cfb8;hasRequiredCfb8=1;var ht=safeBufferExports.Buffer;function Et(yt,Ct,$t){var At=yt._cipher.encryptBlock(yt._prev),Bt=At[0]^Ct;return yt._prev=ht.concat([yt._prev.slice(1),ht.from([$t?Ct:Bt])]),Bt}return cfb8.encrypt=function(yt,Ct,$t){for(var At=Ct.length,Bt=ht.allocUnsafe(At),Dt=-1;++Dt<At;)Bt[Dt]=Et(yt,Ct[Dt],$t);return Bt},cfb8}var cfb1={},hasRequiredCfb1;function requireCfb1(){if(hasRequiredCfb1)return cfb1;hasRequiredCfb1=1;var ht=safeBufferExports.Buffer;function Et(Ct,$t,At){for(var Bt,Dt=-1,Ft=8,kt=0,Mt,Nt;++Dt<Ft;)Bt=Ct._cipher.encryptBlock(Ct._prev),Mt=$t&1<<7-Dt?128:0,Nt=Bt[0]^Mt,kt+=(Nt&128)>>Dt%8,Ct._prev=yt(Ct._prev,At?Mt:Nt);return kt}function yt(Ct,$t){var At=Ct.length,Bt=-1,Dt=ht.allocUnsafe(Ct.length);for(Ct=ht.concat([Ct,ht.from([$t])]);++Bt<At;)Dt[Bt]=Ct[Bt]<<1|Ct[Bt+1]>>7;return Dt}return cfb1.encrypt=function(Ct,$t,At){for(var Bt=$t.length,Dt=ht.allocUnsafe(Bt),Ft=-1;++Ft<Bt;)Dt[Ft]=Et(Ct,$t[Ft],At);return Dt},cfb1}var ofb={},hasRequiredOfb;function requireOfb(){if(hasRequiredOfb)return ofb;hasRequiredOfb=1;var ht=requireBufferXor();function Et(yt){return yt._prev=yt._cipher.encryptBlock(yt._prev),yt._prev}return ofb.encrypt=function(yt,Ct){for(;yt._cache.length<Ct.length;)yt._cache=Buffer$g.concat([yt._cache,Et(yt)]);var $t=yt._cache.slice(0,Ct.length);return yt._cache=yt._cache.slice(Ct.length),ht(Ct,$t)},ofb}var ctr={},incr32_1,hasRequiredIncr32;function requireIncr32(){if(hasRequiredIncr32)return incr32_1;hasRequiredIncr32=1;function ht(Et){for(var yt=Et.length,Ct;yt--;)if(Ct=Et.readUInt8(yt),Ct===255)Et.writeUInt8(0,yt);else{Ct++,Et.writeUInt8(Ct,yt);break}}return incr32_1=ht,incr32_1}var hasRequiredCtr;function requireCtr(){if(hasRequiredCtr)return ctr;hasRequiredCtr=1;var ht=requireBufferXor(),Et=safeBufferExports.Buffer,yt=requireIncr32();function Ct(At){var Bt=At._cipher.encryptBlockRaw(At._prev);return yt(At._prev),Bt}var $t=16;return ctr.encrypt=function(At,Bt){var Dt=Math.ceil(Bt.length/$t),Ft=At._cache.length;At._cache=Et.concat([At._cache,Et.allocUnsafe(Dt*$t)]);for(var kt=0;kt<Dt;kt++){var Mt=Ct(At),Nt=Ft+kt*$t;At._cache.writeUInt32BE(Mt[0],Nt+0),At._cache.writeUInt32BE(Mt[1],Nt+4),At._cache.writeUInt32BE(Mt[2],Nt+8),At._cache.writeUInt32BE(Mt[3],Nt+12)}var jt=At._cache.slice(0,Bt.length);return At._cache=At._cache.slice(Bt.length),ht(Bt,jt)},ctr}const aes128={cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192={cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256={cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},require$$2={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128,aes192,aes256,"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}};var modes_1,hasRequiredModes$1;function requireModes$1(){if(hasRequiredModes$1)return modes_1;hasRequiredModes$1=1;var ht={ECB:requireEcb(),CBC:requireCbc(),CFB:requireCfb(),CFB8:requireCfb8(),CFB1:requireCfb1(),OFB:requireOfb(),CTR:requireCtr(),GCM:requireCtr()},Et=require$$2;for(var yt in Et)Et[yt].module=ht[Et[yt].mode];return modes_1=Et,modes_1}var aes={},hasRequiredAes;function requireAes(){if(hasRequiredAes)return aes;hasRequiredAes=1;var ht=safeBufferExports.Buffer;function Et(Dt){ht.isBuffer(Dt)||(Dt=ht.from(Dt));for(var Ft=Dt.length/4|0,kt=new Array(Ft),Mt=0;Mt<Ft;Mt++)kt[Mt]=Dt.readUInt32BE(Mt*4);return kt}function yt(Dt){for(var Ft=0;Ft<Dt.length;Dt++)Dt[Ft]=0}function Ct(Dt,Ft,kt,Mt,Nt){for(var jt=kt[0],zt=kt[1],Vt=kt[2],Kt=kt[3],Xt=Dt[0]^Ft[0],Qt=Dt[1]^Ft[1],Zt=Dt[2]^Ft[2],dr=Dt[3]^Ft[3],cr,Er,pr,gr,vr=4,yr=1;yr<Nt;yr++)cr=jt[Xt>>>24]^zt[Qt>>>16&255]^Vt[Zt>>>8&255]^Kt[dr&255]^Ft[vr++],Er=jt[Qt>>>24]^zt[Zt>>>16&255]^Vt[dr>>>8&255]^Kt[Xt&255]^Ft[vr++],pr=jt[Zt>>>24]^zt[dr>>>16&255]^Vt[Xt>>>8&255]^Kt[Qt&255]^Ft[vr++],gr=jt[dr>>>24]^zt[Xt>>>16&255]^Vt[Qt>>>8&255]^Kt[Zt&255]^Ft[vr++],Xt=cr,Qt=Er,Zt=pr,dr=gr;return cr=(Mt[Xt>>>24]<<24|Mt[Qt>>>16&255]<<16|Mt[Zt>>>8&255]<<8|Mt[dr&255])^Ft[vr++],Er=(Mt[Qt>>>24]<<24|Mt[Zt>>>16&255]<<16|Mt[dr>>>8&255]<<8|Mt[Xt&255])^Ft[vr++],pr=(Mt[Zt>>>24]<<24|Mt[dr>>>16&255]<<16|Mt[Xt>>>8&255]<<8|Mt[Qt&255])^Ft[vr++],gr=(Mt[dr>>>24]<<24|Mt[Xt>>>16&255]<<16|Mt[Qt>>>8&255]<<8|Mt[Zt&255])^Ft[vr++],cr=cr>>>0,Er=Er>>>0,pr=pr>>>0,gr=gr>>>0,[cr,Er,pr,gr]}var $t=[0,1,2,4,8,16,32,64,128,27,54],At=function(){for(var Dt=new Array(256),Ft=0;Ft<256;Ft++)Ft<128?Dt[Ft]=Ft<<1:Dt[Ft]=Ft<<1^283;for(var kt=[],Mt=[],Nt=[[],[],[],[]],jt=[[],[],[],[]],zt=0,Vt=0,Kt=0;Kt<256;++Kt){var Xt=Vt^Vt<<1^Vt<<2^Vt<<3^Vt<<4;Xt=Xt>>>8^Xt&255^99,kt[zt]=Xt,Mt[Xt]=zt;var Qt=Dt[zt],Zt=Dt[Qt],dr=Dt[Zt],cr=Dt[Xt]*257^Xt*16843008;Nt[0][zt]=cr<<24|cr>>>8,Nt[1][zt]=cr<<16|cr>>>16,Nt[2][zt]=cr<<8|cr>>>24,Nt[3][zt]=cr,cr=dr*16843009^Zt*65537^Qt*257^zt*16843008,jt[0][Xt]=cr<<24|cr>>>8,jt[1][Xt]=cr<<16|cr>>>16,jt[2][Xt]=cr<<8|cr>>>24,jt[3][Xt]=cr,zt===0?zt=Vt=1:(zt=Qt^Dt[Dt[Dt[dr^Qt]]],Vt^=Dt[Dt[Vt]])}return{SBOX:kt,INV_SBOX:Mt,SUB_MIX:Nt,INV_SUB_MIX:jt}}();function Bt(Dt){this._key=Et(Dt),this._reset()}return Bt.blockSize=4*4,Bt.keySize=256/8,Bt.prototype.blockSize=Bt.blockSize,Bt.prototype.keySize=Bt.keySize,Bt.prototype._reset=function(){for(var Dt=this._key,Ft=Dt.length,kt=Ft+6,Mt=(kt+1)*4,Nt=[],jt=0;jt<Ft;jt++)Nt[jt]=Dt[jt];for(jt=Ft;jt<Mt;jt++){var zt=Nt[jt-1];jt%Ft===0?(zt=zt<<8|zt>>>24,zt=At.SBOX[zt>>>24]<<24|At.SBOX[zt>>>16&255]<<16|At.SBOX[zt>>>8&255]<<8|At.SBOX[zt&255],zt^=$t[jt/Ft|0]<<24):Ft>6&&jt%Ft===4&&(zt=At.SBOX[zt>>>24]<<24|At.SBOX[zt>>>16&255]<<16|At.SBOX[zt>>>8&255]<<8|At.SBOX[zt&255]),Nt[jt]=Nt[jt-Ft]^zt}for(var Vt=[],Kt=0;Kt<Mt;Kt++){var Xt=Mt-Kt,Qt=Nt[Xt-(Kt%4?0:4)];Kt<4||Xt<=4?Vt[Kt]=Qt:Vt[Kt]=At.INV_SUB_MIX[0][At.SBOX[Qt>>>24]]^At.INV_SUB_MIX[1][At.SBOX[Qt>>>16&255]]^At.INV_SUB_MIX[2][At.SBOX[Qt>>>8&255]]^At.INV_SUB_MIX[3][At.SBOX[Qt&255]]}this._nRounds=kt,this._keySchedule=Nt,this._invKeySchedule=Vt},Bt.prototype.encryptBlockRaw=function(Dt){return Dt=Et(Dt),Ct(Dt,this._keySchedule,At.SUB_MIX,At.SBOX,this._nRounds)},Bt.prototype.encryptBlock=function(Dt){var Ft=this.encryptBlockRaw(Dt),kt=ht.allocUnsafe(16);return kt.writeUInt32BE(Ft[0],0),kt.writeUInt32BE(Ft[1],4),kt.writeUInt32BE(Ft[2],8),kt.writeUInt32BE(Ft[3],12),kt},Bt.prototype.decryptBlock=function(Dt){Dt=Et(Dt);var Ft=Dt[1];Dt[1]=Dt[3],Dt[3]=Ft;var kt=Ct(Dt,this._invKeySchedule,At.INV_SUB_MIX,At.INV_SBOX,this._nRounds),Mt=ht.allocUnsafe(16);return Mt.writeUInt32BE(kt[0],0),Mt.writeUInt32BE(kt[3],4),Mt.writeUInt32BE(kt[2],8),Mt.writeUInt32BE(kt[1],12),Mt},Bt.prototype.scrub=function(){yt(this._keySchedule),yt(this._invKeySchedule),yt(this._key)},aes.AES=Bt,aes}var ghash,hasRequiredGhash;function requireGhash(){if(hasRequiredGhash)return ghash;hasRequiredGhash=1;var ht=safeBufferExports.Buffer,Et=ht.alloc(16,0);function yt(At){return[At.readUInt32BE(0),At.readUInt32BE(4),At.readUInt32BE(8),At.readUInt32BE(12)]}function Ct(At){var Bt=ht.allocUnsafe(16);return Bt.writeUInt32BE(At[0]>>>0,0),Bt.writeUInt32BE(At[1]>>>0,4),Bt.writeUInt32BE(At[2]>>>0,8),Bt.writeUInt32BE(At[3]>>>0,12),Bt}function $t(At){this.h=At,this.state=ht.alloc(16,0),this.cache=ht.allocUnsafe(0)}return $t.prototype.ghash=function(At){for(var Bt=-1;++Bt<At.length;)this.state[Bt]^=At[Bt];this._multiply()},$t.prototype._multiply=function(){for(var At=yt(this.h),Bt=[0,0,0,0],Dt,Ft,kt,Mt=-1;++Mt<128;){for(Ft=(this.state[~~(Mt/8)]&1<<7-Mt%8)!==0,Ft&&(Bt[0]^=At[0],Bt[1]^=At[1],Bt[2]^=At[2],Bt[3]^=At[3]),kt=(At[3]&1)!==0,Dt=3;Dt>0;Dt--)At[Dt]=At[Dt]>>>1|(At[Dt-1]&1)<<31;At[0]=At[0]>>>1,kt&&(At[0]=At[0]^225<<24)}this.state=Ct(Bt)},$t.prototype.update=function(At){this.cache=ht.concat([this.cache,At]);for(var Bt;this.cache.length>=16;)Bt=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(Bt)},$t.prototype.final=function(At,Bt){return this.cache.length&&this.ghash(ht.concat([this.cache,Et],16)),this.ghash(Ct([0,At,0,Bt])),this.state},ghash=$t,ghash}var authCipher,hasRequiredAuthCipher;function requireAuthCipher(){if(hasRequiredAuthCipher)return authCipher;hasRequiredAuthCipher=1;var ht=requireAes(),Et=safeBufferExports.Buffer,yt=cipherBase,Ct=inherits_browserExports,$t=requireGhash(),At=requireBufferXor(),Bt=requireIncr32();function Dt(Mt,Nt){var jt=0;Mt.length!==Nt.length&&jt++;for(var zt=Math.min(Mt.length,Nt.length),Vt=0;Vt<zt;++Vt)jt+=Mt[Vt]^Nt[Vt];return jt}function Ft(Mt,Nt,jt){if(Nt.length===12)return Mt._finID=Et.concat([Nt,Et.from([0,0,0,1])]),Et.concat([Nt,Et.from([0,0,0,2])]);var zt=new $t(jt),Vt=Nt.length,Kt=Vt%16;zt.update(Nt),Kt&&(Kt=16-Kt,zt.update(Et.alloc(Kt,0))),zt.update(Et.alloc(8,0));var Xt=Vt*8,Qt=Et.alloc(8);Qt.writeUIntBE(Xt,0,8),zt.update(Qt),Mt._finID=zt.state;var Zt=Et.from(Mt._finID);return Bt(Zt),Zt}function kt(Mt,Nt,jt,zt){yt.call(this);var Vt=Et.alloc(4,0);this._cipher=new ht.AES(Nt);var Kt=this._cipher.encryptBlock(Vt);this._ghash=new $t(Kt),jt=Ft(this,jt,Kt),this._prev=Et.from(jt),this._cache=Et.allocUnsafe(0),this._secCache=Et.allocUnsafe(0),this._decrypt=zt,this._alen=0,this._len=0,this._mode=Mt,this._authTag=null,this._called=!1}return Ct(kt,yt),kt.prototype._update=function(Mt){if(!this._called&&this._alen){var Nt=16-this._alen%16;Nt<16&&(Nt=Et.alloc(Nt,0),this._ghash.update(Nt))}this._called=!0;var jt=this._mode.encrypt(this,Mt);return this._decrypt?this._ghash.update(Mt):this._ghash.update(jt),this._len+=Mt.length,jt},kt.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var Mt=At(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&Dt(Mt,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=Mt,this._cipher.scrub()},kt.prototype.getAuthTag=function(){if(this._decrypt||!Et.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},kt.prototype.setAuthTag=function(Nt){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=Nt},kt.prototype.setAAD=function(Nt){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(Nt),this._alen+=Nt.length},authCipher=kt,authCipher}var streamCipher,hasRequiredStreamCipher;function requireStreamCipher(){if(hasRequiredStreamCipher)return streamCipher;hasRequiredStreamCipher=1;var ht=requireAes(),Et=safeBufferExports.Buffer,yt=cipherBase,Ct=inherits_browserExports;function $t(At,Bt,Dt,Ft){yt.call(this),this._cipher=new ht.AES(Bt),this._prev=Et.from(Dt),this._cache=Et.allocUnsafe(0),this._secCache=Et.allocUnsafe(0),this._decrypt=Ft,this._mode=At}return Ct($t,yt),$t.prototype._update=function(At){return this._mode.encrypt(this,At,this._decrypt)},$t.prototype._final=function(){this._cipher.scrub()},streamCipher=$t,streamCipher}var evp_bytestokey,hasRequiredEvp_bytestokey;function requireEvp_bytestokey(){if(hasRequiredEvp_bytestokey)return evp_bytestokey;hasRequiredEvp_bytestokey=1;var ht=safeBufferExports.Buffer,Et=md5_js;function yt(Ct,$t,At,Bt){if(ht.isBuffer(Ct)||(Ct=ht.from(Ct,"binary")),$t&&(ht.isBuffer($t)||($t=ht.from($t,"binary")),$t.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var Dt=At/8,Ft=ht.alloc(Dt),kt=ht.alloc(Bt||0),Mt=ht.alloc(0);Dt>0||Bt>0;){var Nt=new Et;Nt.update(Mt),Nt.update(Ct),$t&&Nt.update($t),Mt=Nt.digest();var jt=0;if(Dt>0){var zt=Ft.length-Dt;jt=Math.min(Dt,Mt.length),Mt.copy(Ft,zt,0,jt),Dt-=jt}if(jt<Mt.length&&Bt>0){var Vt=kt.length-Bt,Kt=Math.min(Bt,Mt.length-jt);Mt.copy(kt,Vt,jt,jt+Kt),Bt-=Kt}}return Mt.fill(0),{key:Ft,iv:kt}}return evp_bytestokey=yt,evp_bytestokey}var hasRequiredEncrypter;function requireEncrypter(){if(hasRequiredEncrypter)return encrypter;hasRequiredEncrypter=1;var ht=requireModes$1(),Et=requireAuthCipher(),yt=safeBufferExports.Buffer,Ct=requireStreamCipher(),$t=cipherBase,At=requireAes(),Bt=requireEvp_bytestokey(),Dt=inherits_browserExports;function Ft(zt,Vt,Kt){$t.call(this),this._cache=new Mt,this._cipher=new At.AES(Vt),this._prev=yt.from(Kt),this._mode=zt,this._autopadding=!0}Dt(Ft,$t),Ft.prototype._update=function(zt){this._cache.add(zt);for(var Vt,Kt,Xt=[];Vt=this._cache.get();)Kt=this._mode.encrypt(this,Vt),Xt.push(Kt);return yt.concat(Xt)};var kt=yt.alloc(16,16);Ft.prototype._final=function(){var zt=this._cache.flush();if(this._autopadding)return zt=this._mode.encrypt(this,zt),this._cipher.scrub(),zt;if(!zt.equals(kt))throw this._cipher.scrub(),new Error("data not multiple of block length")},Ft.prototype.setAutoPadding=function(zt){return this._autopadding=!!zt,this};function Mt(){this.cache=yt.allocUnsafe(0)}Mt.prototype.add=function(zt){this.cache=yt.concat([this.cache,zt])},Mt.prototype.get=function(){if(this.cache.length>15){var zt=this.cache.slice(0,16);return this.cache=this.cache.slice(16),zt}return null},Mt.prototype.flush=function(){for(var zt=16-this.cache.length,Vt=yt.allocUnsafe(zt),Kt=-1;++Kt<zt;)Vt.writeUInt8(zt,Kt);return yt.concat([this.cache,Vt])};function Nt(zt,Vt,Kt){var Xt=ht[zt.toLowerCase()];if(!Xt)throw new TypeError("invalid suite type");if(typeof Vt=="string"&&(Vt=yt.from(Vt)),Vt.length!==Xt.key/8)throw new TypeError("invalid key length "+Vt.length);if(typeof Kt=="string"&&(Kt=yt.from(Kt)),Xt.mode!=="GCM"&&Kt.length!==Xt.iv)throw new TypeError("invalid iv length "+Kt.length);return Xt.type==="stream"?new Ct(Xt.module,Vt,Kt):Xt.type==="auth"?new Et(Xt.module,Vt,Kt):new Ft(Xt.module,Vt,Kt)}function jt(zt,Vt){var Kt=ht[zt.toLowerCase()];if(!Kt)throw new TypeError("invalid suite type");var Xt=Bt(Vt,!1,Kt.key,Kt.iv);return Nt(zt,Xt.key,Xt.iv)}return encrypter.createCipheriv=Nt,encrypter.createCipher=jt,encrypter}var decrypter={},hasRequiredDecrypter;function requireDecrypter(){if(hasRequiredDecrypter)return decrypter;hasRequiredDecrypter=1;var ht=requireAuthCipher(),Et=safeBufferExports.Buffer,yt=requireModes$1(),Ct=requireStreamCipher(),$t=cipherBase,At=requireAes(),Bt=requireEvp_bytestokey(),Dt=inherits_browserExports;function Ft(zt,Vt,Kt){$t.call(this),this._cache=new kt,this._last=void 0,this._cipher=new At.AES(Vt),this._prev=Et.from(Kt),this._mode=zt,this._autopadding=!0}Dt(Ft,$t),Ft.prototype._update=function(zt){this._cache.add(zt);for(var Vt,Kt,Xt=[];Vt=this._cache.get(this._autopadding);)Kt=this._mode.decrypt(this,Vt),Xt.push(Kt);return Et.concat(Xt)},Ft.prototype._final=function(){var zt=this._cache.flush();if(this._autopadding)return Mt(this._mode.decrypt(this,zt));if(zt)throw new Error("data not multiple of block length")},Ft.prototype.setAutoPadding=function(zt){return this._autopadding=!!zt,this};function kt(){this.cache=Et.allocUnsafe(0)}kt.prototype.add=function(zt){this.cache=Et.concat([this.cache,zt])},kt.prototype.get=function(zt){var Vt;if(zt){if(this.cache.length>16)return Vt=this.cache.slice(0,16),this.cache=this.cache.slice(16),Vt}else if(this.cache.length>=16)return Vt=this.cache.slice(0,16),this.cache=this.cache.slice(16),Vt;return null},kt.prototype.flush=function(){if(this.cache.length)return this.cache};function Mt(zt){var Vt=zt[15];if(Vt<1||Vt>16)throw new Error("unable to decrypt data");for(var Kt=-1;++Kt<Vt;)if(zt[Kt+(16-Vt)]!==Vt)throw new Error("unable to decrypt data");if(Vt!==16)return zt.slice(0,16-Vt)}function Nt(zt,Vt,Kt){var Xt=yt[zt.toLowerCase()];if(!Xt)throw new TypeError("invalid suite type");if(typeof Kt=="string"&&(Kt=Et.from(Kt)),Xt.mode!=="GCM"&&Kt.length!==Xt.iv)throw new TypeError("invalid iv length "+Kt.length);if(typeof Vt=="string"&&(Vt=Et.from(Vt)),Vt.length!==Xt.key/8)throw new TypeError("invalid key length "+Vt.length);return Xt.type==="stream"?new Ct(Xt.module,Vt,Kt,!0):Xt.type==="auth"?new ht(Xt.module,Vt,Kt,!0):new Ft(Xt.module,Vt,Kt)}function jt(zt,Vt){var Kt=yt[zt.toLowerCase()];if(!Kt)throw new TypeError("invalid suite type");var Xt=Bt(Vt,!1,Kt.key,Kt.iv);return Nt(zt,Xt.key,Xt.iv)}return decrypter.createDecipher=jt,decrypter.createDecipheriv=Nt,decrypter}var hasRequiredBrowser$6;function requireBrowser$6(){if(hasRequiredBrowser$6)return browser$6;hasRequiredBrowser$6=1;var ht=requireEncrypter(),Et=requireDecrypter(),yt=require$$2;function Ct(){return Object.keys(yt)}return browser$6.createCipher=browser$6.Cipher=ht.createCipher,browser$6.createCipheriv=browser$6.Cipheriv=ht.createCipheriv,browser$6.createDecipher=browser$6.Decipher=Et.createDecipher,browser$6.createDecipheriv=browser$6.Decipheriv=Et.createDecipheriv,browser$6.listCiphers=browser$6.getCiphers=Ct,browser$6}var modes={},hasRequiredModes;function requireModes(){return hasRequiredModes||(hasRequiredModes=1,function(ht){ht["des-ecb"]={key:8,iv:0},ht["des-cbc"]=ht.des={key:8,iv:8},ht["des-ede3-cbc"]=ht.des3={key:24,iv:8},ht["des-ede3"]={key:24,iv:0},ht["des-ede-cbc"]={key:16,iv:8},ht["des-ede"]={key:16,iv:0}}(modes)),modes}var hasRequiredBrowser$5;function requireBrowser$5(){if(hasRequiredBrowser$5)return browser$7;hasRequiredBrowser$5=1;var ht=requireBrowserifyDes(),Et=requireBrowser$6(),yt=requireModes$1(),Ct=requireModes(),$t=requireEvp_bytestokey();function At(Mt,Nt){Mt=Mt.toLowerCase();var jt,zt;if(yt[Mt])jt=yt[Mt].key,zt=yt[Mt].iv;else if(Ct[Mt])jt=Ct[Mt].key*8,zt=Ct[Mt].iv;else throw new TypeError("invalid suite type");var Vt=$t(Nt,!1,jt,zt);return Dt(Mt,Vt.key,Vt.iv)}function Bt(Mt,Nt){Mt=Mt.toLowerCase();var jt,zt;if(yt[Mt])jt=yt[Mt].key,zt=yt[Mt].iv;else if(Ct[Mt])jt=Ct[Mt].key*8,zt=Ct[Mt].iv;else throw new TypeError("invalid suite type");var Vt=$t(Nt,!1,jt,zt);return Ft(Mt,Vt.key,Vt.iv)}function Dt(Mt,Nt,jt){if(Mt=Mt.toLowerCase(),yt[Mt])return Et.createCipheriv(Mt,Nt,jt);if(Ct[Mt])return new ht({key:Nt,iv:jt,mode:Mt});throw new TypeError("invalid suite type")}function Ft(Mt,Nt,jt){if(Mt=Mt.toLowerCase(),yt[Mt])return Et.createDecipheriv(Mt,Nt,jt);if(Ct[Mt])return new ht({key:Nt,iv:jt,mode:Mt,decrypt:!0});throw new TypeError("invalid suite type")}function kt(){return Object.keys(Ct).concat(Et.getCiphers())}return browser$7.createCipher=browser$7.Cipher=At,browser$7.createCipheriv=browser$7.Cipheriv=Dt,browser$7.createDecipher=browser$7.Decipher=Bt,browser$7.createDecipheriv=browser$7.Decipheriv=Ft,browser$7.listCiphers=browser$7.getCiphers=kt,browser$7}var browser$5={},bn$7={exports:{}};bn$7.exports;var hasRequiredBn$4;function requireBn$4(){return hasRequiredBn$4||(hasRequiredBn$4=1,function(ht){(function(Et,yt){function Ct(rr,Lt){if(!rr)throw new Error(Lt||"Assertion failed")}function $t(rr,Lt){rr.super_=Lt;var Ht=function(){};Ht.prototype=Lt.prototype,rr.prototype=new Ht,rr.prototype.constructor=rr}function At(rr,Lt,Ht){if(At.isBN(rr))return rr;this.negative=0,this.words=null,this.length=0,this.red=null,rr!==null&&((Lt==="le"||Lt==="be")&&(Ht=Lt,Lt=10),this._init(rr||0,Lt||10,Ht||"be"))}typeof Et=="object"?Et.exports=At:yt.BN=At,At.BN=At,At.wordSize=26;var Bt;try{typeof window<"u"&&typeof window.Buffer<"u"?Bt=window.Buffer:Bt=require$$0$3.Buffer}catch{}At.isBN=function(Lt){return Lt instanceof At?!0:Lt!==null&&typeof Lt=="object"&&Lt.constructor.wordSize===At.wordSize&&Array.isArray(Lt.words)},At.max=function(Lt,Ht){return Lt.cmp(Ht)>0?Lt:Ht},At.min=function(Lt,Ht){return Lt.cmp(Ht)<0?Lt:Ht},At.prototype._init=function(Lt,Ht,Wt){if(typeof Lt=="number")return this._initNumber(Lt,Ht,Wt);if(typeof Lt=="object")return this._initArray(Lt,Ht,Wt);Ht==="hex"&&(Ht=16),Ct(Ht===(Ht|0)&&Ht>=2&&Ht<=36),Lt=Lt.toString().replace(/\s+/g,"");var Gt=0;Lt[0]==="-"&&(Gt++,this.negative=1),Gt<Lt.length&&(Ht===16?this._parseHex(Lt,Gt,Wt):(this._parseBase(Lt,Ht,Gt),Wt==="le"&&this._initArray(this.toArray(),Ht,Wt)))},At.prototype._initNumber=function(Lt,Ht,Wt){Lt<0&&(this.negative=1,Lt=-Lt),Lt<67108864?(this.words=[Lt&67108863],this.length=1):Lt<4503599627370496?(this.words=[Lt&67108863,Lt/67108864&67108863],this.length=2):(Ct(Lt<9007199254740992),this.words=[Lt&67108863,Lt/67108864&67108863,1],this.length=3),Wt==="le"&&this._initArray(this.toArray(),Ht,Wt)},At.prototype._initArray=function(Lt,Ht,Wt){if(Ct(typeof Lt.length=="number"),Lt.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(Lt.length/3),this.words=new Array(this.length);for(var Gt=0;Gt<this.length;Gt++)this.words[Gt]=0;var Yt,er,lr=0;if(Wt==="be")for(Gt=Lt.length-1,Yt=0;Gt>=0;Gt-=3)er=Lt[Gt]|Lt[Gt-1]<<8|Lt[Gt-2]<<16,this.words[Yt]|=er<<lr&67108863,this.words[Yt+1]=er>>>26-lr&67108863,lr+=24,lr>=26&&(lr-=26,Yt++);else if(Wt==="le")for(Gt=0,Yt=0;Gt<Lt.length;Gt+=3)er=Lt[Gt]|Lt[Gt+1]<<8|Lt[Gt+2]<<16,this.words[Yt]|=er<<lr&67108863,this.words[Yt+1]=er>>>26-lr&67108863,lr+=24,lr>=26&&(lr-=26,Yt++);return this.strip()};function Dt(rr,Lt){var Ht=rr.charCodeAt(Lt);return Ht>=65&&Ht<=70?Ht-55:Ht>=97&&Ht<=102?Ht-87:Ht-48&15}function Ft(rr,Lt,Ht){var Wt=Dt(rr,Ht);return Ht-1>=Lt&&(Wt|=Dt(rr,Ht-1)<<4),Wt}At.prototype._parseHex=function(Lt,Ht,Wt){this.length=Math.ceil((Lt.length-Ht)/6),this.words=new Array(this.length);for(var Gt=0;Gt<this.length;Gt++)this.words[Gt]=0;var Yt=0,er=0,lr;if(Wt==="be")for(Gt=Lt.length-1;Gt>=Ht;Gt-=2)lr=Ft(Lt,Ht,Gt)<<Yt,this.words[er]|=lr&67108863,Yt>=18?(Yt-=18,er+=1,this.words[er]|=lr>>>26):Yt+=8;else{var Jt=Lt.length-Ht;for(Gt=Jt%2===0?Ht+1:Ht;Gt<Lt.length;Gt+=2)lr=Ft(Lt,Ht,Gt)<<Yt,this.words[er]|=lr&67108863,Yt>=18?(Yt-=18,er+=1,this.words[er]|=lr>>>26):Yt+=8}this.strip()};function kt(rr,Lt,Ht,Wt){for(var Gt=0,Yt=Math.min(rr.length,Ht),er=Lt;er<Yt;er++){var lr=rr.charCodeAt(er)-48;Gt*=Wt,lr>=49?Gt+=lr-49+10:lr>=17?Gt+=lr-17+10:Gt+=lr}return Gt}At.prototype._parseBase=function(Lt,Ht,Wt){this.words=[0],this.length=1;for(var Gt=0,Yt=1;Yt<=67108863;Yt*=Ht)Gt++;Gt--,Yt=Yt/Ht|0;for(var er=Lt.length-Wt,lr=er%Gt,Jt=Math.min(er,er-lr)+Wt,Ut=0,ir=Wt;ir<Jt;ir+=Gt)Ut=kt(Lt,ir,ir+Gt,Ht),this.imuln(Yt),this.words[0]+Ut<67108864?this.words[0]+=Ut:this._iaddn(Ut);if(lr!==0){var Cr=1;for(Ut=kt(Lt,ir,Lt.length,Ht),ir=0;ir<lr;ir++)Cr*=Ht;this.imuln(Cr),this.words[0]+Ut<67108864?this.words[0]+=Ut:this._iaddn(Ut)}this.strip()},At.prototype.copy=function(Lt){Lt.words=new Array(this.length);for(var Ht=0;Ht<this.length;Ht++)Lt.words[Ht]=this.words[Ht];Lt.length=this.length,Lt.negative=this.negative,Lt.red=this.red},At.prototype.clone=function(){var Lt=new At(null);return this.copy(Lt),Lt},At.prototype._expand=function(Lt){for(;this.length<Lt;)this.words[this.length++]=0;return this},At.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},At.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},At.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var Mt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],Nt=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],jt=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];At.prototype.toString=function(Lt,Ht){Lt=Lt||10,Ht=Ht|0||1;var Wt;if(Lt===16||Lt==="hex"){Wt="";for(var Gt=0,Yt=0,er=0;er<this.length;er++){var lr=this.words[er],Jt=((lr<<Gt|Yt)&16777215).toString(16);Yt=lr>>>24-Gt&16777215,Yt!==0||er!==this.length-1?Wt=Mt[6-Jt.length]+Jt+Wt:Wt=Jt+Wt,Gt+=2,Gt>=26&&(Gt-=26,er--)}for(Yt!==0&&(Wt=Yt.toString(16)+Wt);Wt.length%Ht!==0;)Wt="0"+Wt;return this.negative!==0&&(Wt="-"+Wt),Wt}if(Lt===(Lt|0)&&Lt>=2&&Lt<=36){var Ut=Nt[Lt],ir=jt[Lt];Wt="";var Cr=this.clone();for(Cr.negative=0;!Cr.isZero();){var _r=Cr.modn(ir).toString(Lt);Cr=Cr.idivn(ir),Cr.isZero()?Wt=_r+Wt:Wt=Mt[Ut-_r.length]+_r+Wt}for(this.isZero()&&(Wt="0"+Wt);Wt.length%Ht!==0;)Wt="0"+Wt;return this.negative!==0&&(Wt="-"+Wt),Wt}Ct(!1,"Base should be between 2 and 36")},At.prototype.toNumber=function(){var Lt=this.words[0];return this.length===2?Lt+=this.words[1]*67108864:this.length===3&&this.words[2]===1?Lt+=4503599627370496+this.words[1]*67108864:this.length>2&&Ct(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-Lt:Lt},At.prototype.toJSON=function(){return this.toString(16)},At.prototype.toBuffer=function(Lt,Ht){return Ct(typeof Bt<"u"),this.toArrayLike(Bt,Lt,Ht)},At.prototype.toArray=function(Lt,Ht){return this.toArrayLike(Array,Lt,Ht)},At.prototype.toArrayLike=function(Lt,Ht,Wt){var Gt=this.byteLength(),Yt=Wt||Math.max(1,Gt);Ct(Gt<=Yt,"byte array longer than desired length"),Ct(Yt>0,"Requested array length <= 0"),this.strip();var er=Ht==="le",lr=new Lt(Yt),Jt,Ut,ir=this.clone();if(er){for(Ut=0;!ir.isZero();Ut++)Jt=ir.andln(255),ir.iushrn(8),lr[Ut]=Jt;for(;Ut<Yt;Ut++)lr[Ut]=0}else{for(Ut=0;Ut<Yt-Gt;Ut++)lr[Ut]=0;for(Ut=0;!ir.isZero();Ut++)Jt=ir.andln(255),ir.iushrn(8),lr[Yt-Ut-1]=Jt}return lr},Math.clz32?At.prototype._countBits=function(Lt){return 32-Math.clz32(Lt)}:At.prototype._countBits=function(Lt){var Ht=Lt,Wt=0;return Ht>=4096&&(Wt+=13,Ht>>>=13),Ht>=64&&(Wt+=7,Ht>>>=7),Ht>=8&&(Wt+=4,Ht>>>=4),Ht>=2&&(Wt+=2,Ht>>>=2),Wt+Ht},At.prototype._zeroBits=function(Lt){if(Lt===0)return 26;var Ht=Lt,Wt=0;return Ht&8191||(Wt+=13,Ht>>>=13),Ht&127||(Wt+=7,Ht>>>=7),Ht&15||(Wt+=4,Ht>>>=4),Ht&3||(Wt+=2,Ht>>>=2),Ht&1||Wt++,Wt},At.prototype.bitLength=function(){var Lt=this.words[this.length-1],Ht=this._countBits(Lt);return(this.length-1)*26+Ht};function zt(rr){for(var Lt=new Array(rr.bitLength()),Ht=0;Ht<Lt.length;Ht++){var Wt=Ht/26|0,Gt=Ht%26;Lt[Ht]=(rr.words[Wt]&1<<Gt)>>>Gt}return Lt}At.prototype.zeroBits=function(){if(this.isZero())return 0;for(var Lt=0,Ht=0;Ht<this.length;Ht++){var Wt=this._zeroBits(this.words[Ht]);if(Lt+=Wt,Wt!==26)break}return Lt},At.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},At.prototype.toTwos=function(Lt){return this.negative!==0?this.abs().inotn(Lt).iaddn(1):this.clone()},At.prototype.fromTwos=function(Lt){return this.testn(Lt-1)?this.notn(Lt).iaddn(1).ineg():this.clone()},At.prototype.isNeg=function(){return this.negative!==0},At.prototype.neg=function(){return this.clone().ineg()},At.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},At.prototype.iuor=function(Lt){for(;this.length<Lt.length;)this.words[this.length++]=0;for(var Ht=0;Ht<Lt.length;Ht++)this.words[Ht]=this.words[Ht]|Lt.words[Ht];return this.strip()},At.prototype.ior=function(Lt){return Ct((this.negative|Lt.negative)===0),this.iuor(Lt)},At.prototype.or=function(Lt){return this.length>Lt.length?this.clone().ior(Lt):Lt.clone().ior(this)},At.prototype.uor=function(Lt){return this.length>Lt.length?this.clone().iuor(Lt):Lt.clone().iuor(this)},At.prototype.iuand=function(Lt){var Ht;this.length>Lt.length?Ht=Lt:Ht=this;for(var Wt=0;Wt<Ht.length;Wt++)this.words[Wt]=this.words[Wt]&Lt.words[Wt];return this.length=Ht.length,this.strip()},At.prototype.iand=function(Lt){return Ct((this.negative|Lt.negative)===0),this.iuand(Lt)},At.prototype.and=function(Lt){return this.length>Lt.length?this.clone().iand(Lt):Lt.clone().iand(this)},At.prototype.uand=function(Lt){return this.length>Lt.length?this.clone().iuand(Lt):Lt.clone().iuand(this)},At.prototype.iuxor=function(Lt){var Ht,Wt;this.length>Lt.length?(Ht=this,Wt=Lt):(Ht=Lt,Wt=this);for(var Gt=0;Gt<Wt.length;Gt++)this.words[Gt]=Ht.words[Gt]^Wt.words[Gt];if(this!==Ht)for(;Gt<Ht.length;Gt++)this.words[Gt]=Ht.words[Gt];return this.length=Ht.length,this.strip()},At.prototype.ixor=function(Lt){return Ct((this.negative|Lt.negative)===0),this.iuxor(Lt)},At.prototype.xor=function(Lt){return this.length>Lt.length?this.clone().ixor(Lt):Lt.clone().ixor(this)},At.prototype.uxor=function(Lt){return this.length>Lt.length?this.clone().iuxor(Lt):Lt.clone().iuxor(this)},At.prototype.inotn=function(Lt){Ct(typeof Lt=="number"&&Lt>=0);var Ht=Math.ceil(Lt/26)|0,Wt=Lt%26;this._expand(Ht),Wt>0&&Ht--;for(var Gt=0;Gt<Ht;Gt++)this.words[Gt]=~this.words[Gt]&67108863;return Wt>0&&(this.words[Gt]=~this.words[Gt]&67108863>>26-Wt),this.strip()},At.prototype.notn=function(Lt){return this.clone().inotn(Lt)},At.prototype.setn=function(Lt,Ht){Ct(typeof Lt=="number"&&Lt>=0);var Wt=Lt/26|0,Gt=Lt%26;return this._expand(Wt+1),Ht?this.words[Wt]=this.words[Wt]|1<<Gt:this.words[Wt]=this.words[Wt]&~(1<<Gt),this.strip()},At.prototype.iadd=function(Lt){var Ht;if(this.negative!==0&&Lt.negative===0)return this.negative=0,Ht=this.isub(Lt),this.negative^=1,this._normSign();if(this.negative===0&&Lt.negative!==0)return Lt.negative=0,Ht=this.isub(Lt),Lt.negative=1,Ht._normSign();var Wt,Gt;this.length>Lt.length?(Wt=this,Gt=Lt):(Wt=Lt,Gt=this);for(var Yt=0,er=0;er<Gt.length;er++)Ht=(Wt.words[er]|0)+(Gt.words[er]|0)+Yt,this.words[er]=Ht&67108863,Yt=Ht>>>26;for(;Yt!==0&&er<Wt.length;er++)Ht=(Wt.words[er]|0)+Yt,this.words[er]=Ht&67108863,Yt=Ht>>>26;if(this.length=Wt.length,Yt!==0)this.words[this.length]=Yt,this.length++;else if(Wt!==this)for(;er<Wt.length;er++)this.words[er]=Wt.words[er];return this},At.prototype.add=function(Lt){var Ht;return Lt.negative!==0&&this.negative===0?(Lt.negative=0,Ht=this.sub(Lt),Lt.negative^=1,Ht):Lt.negative===0&&this.negative!==0?(this.negative=0,Ht=Lt.sub(this),this.negative=1,Ht):this.length>Lt.length?this.clone().iadd(Lt):Lt.clone().iadd(this)},At.prototype.isub=function(Lt){if(Lt.negative!==0){Lt.negative=0;var Ht=this.iadd(Lt);return Lt.negative=1,Ht._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(Lt),this.negative=1,this._normSign();var Wt=this.cmp(Lt);if(Wt===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Gt,Yt;Wt>0?(Gt=this,Yt=Lt):(Gt=Lt,Yt=this);for(var er=0,lr=0;lr<Yt.length;lr++)Ht=(Gt.words[lr]|0)-(Yt.words[lr]|0)+er,er=Ht>>26,this.words[lr]=Ht&67108863;for(;er!==0&&lr<Gt.length;lr++)Ht=(Gt.words[lr]|0)+er,er=Ht>>26,this.words[lr]=Ht&67108863;if(er===0&&lr<Gt.length&&Gt!==this)for(;lr<Gt.length;lr++)this.words[lr]=Gt.words[lr];return this.length=Math.max(this.length,lr),Gt!==this&&(this.negative=1),this.strip()},At.prototype.sub=function(Lt){return this.clone().isub(Lt)};function Vt(rr,Lt,Ht){Ht.negative=Lt.negative^rr.negative;var Wt=rr.length+Lt.length|0;Ht.length=Wt,Wt=Wt-1|0;var Gt=rr.words[0]|0,Yt=Lt.words[0]|0,er=Gt*Yt,lr=er&67108863,Jt=er/67108864|0;Ht.words[0]=lr;for(var Ut=1;Ut<Wt;Ut++){for(var ir=Jt>>>26,Cr=Jt&67108863,_r=Math.min(Ut,Lt.length-1),$r=Math.max(0,Ut-rr.length+1);$r<=_r;$r++){var Tr=Ut-$r|0;Gt=rr.words[Tr]|0,Yt=Lt.words[$r]|0,er=Gt*Yt+Cr,ir+=er/67108864|0,Cr=er&67108863}Ht.words[Ut]=Cr|0,Jt=ir|0}return Jt!==0?Ht.words[Ut]=Jt|0:Ht.length--,Ht.strip()}var Kt=function(Lt,Ht,Wt){var Gt=Lt.words,Yt=Ht.words,er=Wt.words,lr=0,Jt,Ut,ir,Cr=Gt[0]|0,_r=Cr&8191,$r=Cr>>>13,Tr=Gt[1]|0,Dr=Tr&8191,Ar=Tr>>>13,Fr=Gt[2]|0,Rr=Fr&8191,wr=Fr>>>13,Sr=Gt[3]|0,Br=Sr&8191,Or=Sr>>>13,Pr=Gt[4]|0,Nr=Pr&8191,Lr=Pr>>>13,Wr=Gt[5]|0,Ur=Wr&8191,jr=Wr>>>13,Kr=Gt[6]|0,qr=Kr&8191,Zr=Kr>>>13,dn=Gt[7]|0,Xr=dn&8191,un=dn>>>13,Yr=Gt[8]|0,Gr=Yr&8191,Jr=Yr>>>13,wn=Gt[9]|0,kr=wn&8191,Mr=wn>>>13,Ir=Yt[0]|0,Hr=Ir&8191,Vr=Ir>>>13,on=Yt[1]|0,Qr=on&8191,hn=on>>>13,Wn=Yt[2]|0,_n=Wn&8191,An=Wn>>>13,Yn=Yt[3]|0,Tn=Yn&8191,Nn=Yn>>>13,Zn=Yt[4]|0,$n=Zn&8191,Fn=Zn>>>13,Gn=Yt[5]|0,gn=Gn&8191,Rn=Gn>>>13,nu=Yt[6]|0,pn=nu&8191,yn=nu>>>13,jn=Yt[7]|0,Cn=jn&8191,On=jn>>>13,au=Yt[8]|0,In=au&8191,Bn=au>>>13,Vn=Yt[9]|0,En=Vn&8191,Sn=Vn>>>13;Wt.negative=Lt.negative^Ht.negative,Wt.length=19,Jt=Math.imul(_r,Hr),Ut=Math.imul(_r,Vr),Ut=Ut+Math.imul($r,Hr)|0,ir=Math.imul($r,Vr);var Xn=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Xn>>>26)|0,Xn&=67108863,Jt=Math.imul(Dr,Hr),Ut=Math.imul(Dr,Vr),Ut=Ut+Math.imul(Ar,Hr)|0,ir=Math.imul(Ar,Vr),Jt=Jt+Math.imul(_r,Qr)|0,Ut=Ut+Math.imul(_r,hn)|0,Ut=Ut+Math.imul($r,Qr)|0,ir=ir+Math.imul($r,hn)|0;var uu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(uu>>>26)|0,uu&=67108863,Jt=Math.imul(Rr,Hr),Ut=Math.imul(Rr,Vr),Ut=Ut+Math.imul(wr,Hr)|0,ir=Math.imul(wr,Vr),Jt=Jt+Math.imul(Dr,Qr)|0,Ut=Ut+Math.imul(Dr,hn)|0,Ut=Ut+Math.imul(Ar,Qr)|0,ir=ir+Math.imul(Ar,hn)|0,Jt=Jt+Math.imul(_r,_n)|0,Ut=Ut+Math.imul(_r,An)|0,Ut=Ut+Math.imul($r,_n)|0,ir=ir+Math.imul($r,An)|0;var Eu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Eu>>>26)|0,Eu&=67108863,Jt=Math.imul(Br,Hr),Ut=Math.imul(Br,Vr),Ut=Ut+Math.imul(Or,Hr)|0,ir=Math.imul(Or,Vr),Jt=Jt+Math.imul(Rr,Qr)|0,Ut=Ut+Math.imul(Rr,hn)|0,Ut=Ut+Math.imul(wr,Qr)|0,ir=ir+Math.imul(wr,hn)|0,Jt=Jt+Math.imul(Dr,_n)|0,Ut=Ut+Math.imul(Dr,An)|0,Ut=Ut+Math.imul(Ar,_n)|0,ir=ir+Math.imul(Ar,An)|0,Jt=Jt+Math.imul(_r,Tn)|0,Ut=Ut+Math.imul(_r,Nn)|0,Ut=Ut+Math.imul($r,Tn)|0,ir=ir+Math.imul($r,Nn)|0;var pu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(pu>>>26)|0,pu&=67108863,Jt=Math.imul(Nr,Hr),Ut=Math.imul(Nr,Vr),Ut=Ut+Math.imul(Lr,Hr)|0,ir=Math.imul(Lr,Vr),Jt=Jt+Math.imul(Br,Qr)|0,Ut=Ut+Math.imul(Br,hn)|0,Ut=Ut+Math.imul(Or,Qr)|0,ir=ir+Math.imul(Or,hn)|0,Jt=Jt+Math.imul(Rr,_n)|0,Ut=Ut+Math.imul(Rr,An)|0,Ut=Ut+Math.imul(wr,_n)|0,ir=ir+Math.imul(wr,An)|0,Jt=Jt+Math.imul(Dr,Tn)|0,Ut=Ut+Math.imul(Dr,Nn)|0,Ut=Ut+Math.imul(Ar,Tn)|0,ir=ir+Math.imul(Ar,Nn)|0,Jt=Jt+Math.imul(_r,$n)|0,Ut=Ut+Math.imul(_r,Fn)|0,Ut=Ut+Math.imul($r,$n)|0,ir=ir+Math.imul($r,Fn)|0;var Qn=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Qn>>>26)|0,Qn&=67108863,Jt=Math.imul(Ur,Hr),Ut=Math.imul(Ur,Vr),Ut=Ut+Math.imul(jr,Hr)|0,ir=Math.imul(jr,Vr),Jt=Jt+Math.imul(Nr,Qr)|0,Ut=Ut+Math.imul(Nr,hn)|0,Ut=Ut+Math.imul(Lr,Qr)|0,ir=ir+Math.imul(Lr,hn)|0,Jt=Jt+Math.imul(Br,_n)|0,Ut=Ut+Math.imul(Br,An)|0,Ut=Ut+Math.imul(Or,_n)|0,ir=ir+Math.imul(Or,An)|0,Jt=Jt+Math.imul(Rr,Tn)|0,Ut=Ut+Math.imul(Rr,Nn)|0,Ut=Ut+Math.imul(wr,Tn)|0,ir=ir+Math.imul(wr,Nn)|0,Jt=Jt+Math.imul(Dr,$n)|0,Ut=Ut+Math.imul(Dr,Fn)|0,Ut=Ut+Math.imul(Ar,$n)|0,ir=ir+Math.imul(Ar,Fn)|0,Jt=Jt+Math.imul(_r,gn)|0,Ut=Ut+Math.imul(_r,Rn)|0,Ut=Ut+Math.imul($r,gn)|0,ir=ir+Math.imul($r,Rn)|0;var Jn=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Jn>>>26)|0,Jn&=67108863,Jt=Math.imul(qr,Hr),Ut=Math.imul(qr,Vr),Ut=Ut+Math.imul(Zr,Hr)|0,ir=Math.imul(Zr,Vr),Jt=Jt+Math.imul(Ur,Qr)|0,Ut=Ut+Math.imul(Ur,hn)|0,Ut=Ut+Math.imul(jr,Qr)|0,ir=ir+Math.imul(jr,hn)|0,Jt=Jt+Math.imul(Nr,_n)|0,Ut=Ut+Math.imul(Nr,An)|0,Ut=Ut+Math.imul(Lr,_n)|0,ir=ir+Math.imul(Lr,An)|0,Jt=Jt+Math.imul(Br,Tn)|0,Ut=Ut+Math.imul(Br,Nn)|0,Ut=Ut+Math.imul(Or,Tn)|0,ir=ir+Math.imul(Or,Nn)|0,Jt=Jt+Math.imul(Rr,$n)|0,Ut=Ut+Math.imul(Rr,Fn)|0,Ut=Ut+Math.imul(wr,$n)|0,ir=ir+Math.imul(wr,Fn)|0,Jt=Jt+Math.imul(Dr,gn)|0,Ut=Ut+Math.imul(Dr,Rn)|0,Ut=Ut+Math.imul(Ar,gn)|0,ir=ir+Math.imul(Ar,Rn)|0,Jt=Jt+Math.imul(_r,pn)|0,Ut=Ut+Math.imul(_r,yn)|0,Ut=Ut+Math.imul($r,pn)|0,ir=ir+Math.imul($r,yn)|0;var ou=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(ou>>>26)|0,ou&=67108863,Jt=Math.imul(Xr,Hr),Ut=Math.imul(Xr,Vr),Ut=Ut+Math.imul(un,Hr)|0,ir=Math.imul(un,Vr),Jt=Jt+Math.imul(qr,Qr)|0,Ut=Ut+Math.imul(qr,hn)|0,Ut=Ut+Math.imul(Zr,Qr)|0,ir=ir+Math.imul(Zr,hn)|0,Jt=Jt+Math.imul(Ur,_n)|0,Ut=Ut+Math.imul(Ur,An)|0,Ut=Ut+Math.imul(jr,_n)|0,ir=ir+Math.imul(jr,An)|0,Jt=Jt+Math.imul(Nr,Tn)|0,Ut=Ut+Math.imul(Nr,Nn)|0,Ut=Ut+Math.imul(Lr,Tn)|0,ir=ir+Math.imul(Lr,Nn)|0,Jt=Jt+Math.imul(Br,$n)|0,Ut=Ut+Math.imul(Br,Fn)|0,Ut=Ut+Math.imul(Or,$n)|0,ir=ir+Math.imul(Or,Fn)|0,Jt=Jt+Math.imul(Rr,gn)|0,Ut=Ut+Math.imul(Rr,Rn)|0,Ut=Ut+Math.imul(wr,gn)|0,ir=ir+Math.imul(wr,Rn)|0,Jt=Jt+Math.imul(Dr,pn)|0,Ut=Ut+Math.imul(Dr,yn)|0,Ut=Ut+Math.imul(Ar,pn)|0,ir=ir+Math.imul(Ar,yn)|0,Jt=Jt+Math.imul(_r,Cn)|0,Ut=Ut+Math.imul(_r,On)|0,Ut=Ut+Math.imul($r,Cn)|0,ir=ir+Math.imul($r,On)|0;var mu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(mu>>>26)|0,mu&=67108863,Jt=Math.imul(Gr,Hr),Ut=Math.imul(Gr,Vr),Ut=Ut+Math.imul(Jr,Hr)|0,ir=Math.imul(Jr,Vr),Jt=Jt+Math.imul(Xr,Qr)|0,Ut=Ut+Math.imul(Xr,hn)|0,Ut=Ut+Math.imul(un,Qr)|0,ir=ir+Math.imul(un,hn)|0,Jt=Jt+Math.imul(qr,_n)|0,Ut=Ut+Math.imul(qr,An)|0,Ut=Ut+Math.imul(Zr,_n)|0,ir=ir+Math.imul(Zr,An)|0,Jt=Jt+Math.imul(Ur,Tn)|0,Ut=Ut+Math.imul(Ur,Nn)|0,Ut=Ut+Math.imul(jr,Tn)|0,ir=ir+Math.imul(jr,Nn)|0,Jt=Jt+Math.imul(Nr,$n)|0,Ut=Ut+Math.imul(Nr,Fn)|0,Ut=Ut+Math.imul(Lr,$n)|0,ir=ir+Math.imul(Lr,Fn)|0,Jt=Jt+Math.imul(Br,gn)|0,Ut=Ut+Math.imul(Br,Rn)|0,Ut=Ut+Math.imul(Or,gn)|0,ir=ir+Math.imul(Or,Rn)|0,Jt=Jt+Math.imul(Rr,pn)|0,Ut=Ut+Math.imul(Rr,yn)|0,Ut=Ut+Math.imul(wr,pn)|0,ir=ir+Math.imul(wr,yn)|0,Jt=Jt+Math.imul(Dr,Cn)|0,Ut=Ut+Math.imul(Dr,On)|0,Ut=Ut+Math.imul(Ar,Cn)|0,ir=ir+Math.imul(Ar,On)|0,Jt=Jt+Math.imul(_r,In)|0,Ut=Ut+Math.imul(_r,Bn)|0,Ut=Ut+Math.imul($r,In)|0,ir=ir+Math.imul($r,Bn)|0;var xu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(xu>>>26)|0,xu&=67108863,Jt=Math.imul(kr,Hr),Ut=Math.imul(kr,Vr),Ut=Ut+Math.imul(Mr,Hr)|0,ir=Math.imul(Mr,Vr),Jt=Jt+Math.imul(Gr,Qr)|0,Ut=Ut+Math.imul(Gr,hn)|0,Ut=Ut+Math.imul(Jr,Qr)|0,ir=ir+Math.imul(Jr,hn)|0,Jt=Jt+Math.imul(Xr,_n)|0,Ut=Ut+Math.imul(Xr,An)|0,Ut=Ut+Math.imul(un,_n)|0,ir=ir+Math.imul(un,An)|0,Jt=Jt+Math.imul(qr,Tn)|0,Ut=Ut+Math.imul(qr,Nn)|0,Ut=Ut+Math.imul(Zr,Tn)|0,ir=ir+Math.imul(Zr,Nn)|0,Jt=Jt+Math.imul(Ur,$n)|0,Ut=Ut+Math.imul(Ur,Fn)|0,Ut=Ut+Math.imul(jr,$n)|0,ir=ir+Math.imul(jr,Fn)|0,Jt=Jt+Math.imul(Nr,gn)|0,Ut=Ut+Math.imul(Nr,Rn)|0,Ut=Ut+Math.imul(Lr,gn)|0,ir=ir+Math.imul(Lr,Rn)|0,Jt=Jt+Math.imul(Br,pn)|0,Ut=Ut+Math.imul(Br,yn)|0,Ut=Ut+Math.imul(Or,pn)|0,ir=ir+Math.imul(Or,yn)|0,Jt=Jt+Math.imul(Rr,Cn)|0,Ut=Ut+Math.imul(Rr,On)|0,Ut=Ut+Math.imul(wr,Cn)|0,ir=ir+Math.imul(wr,On)|0,Jt=Jt+Math.imul(Dr,In)|0,Ut=Ut+Math.imul(Dr,Bn)|0,Ut=Ut+Math.imul(Ar,In)|0,ir=ir+Math.imul(Ar,Bn)|0,Jt=Jt+Math.imul(_r,En)|0,Ut=Ut+Math.imul(_r,Sn)|0,Ut=Ut+Math.imul($r,En)|0,ir=ir+Math.imul($r,Sn)|0;var _u=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(_u>>>26)|0,_u&=67108863,Jt=Math.imul(kr,Qr),Ut=Math.imul(kr,hn),Ut=Ut+Math.imul(Mr,Qr)|0,ir=Math.imul(Mr,hn),Jt=Jt+Math.imul(Gr,_n)|0,Ut=Ut+Math.imul(Gr,An)|0,Ut=Ut+Math.imul(Jr,_n)|0,ir=ir+Math.imul(Jr,An)|0,Jt=Jt+Math.imul(Xr,Tn)|0,Ut=Ut+Math.imul(Xr,Nn)|0,Ut=Ut+Math.imul(un,Tn)|0,ir=ir+Math.imul(un,Nn)|0,Jt=Jt+Math.imul(qr,$n)|0,Ut=Ut+Math.imul(qr,Fn)|0,Ut=Ut+Math.imul(Zr,$n)|0,ir=ir+Math.imul(Zr,Fn)|0,Jt=Jt+Math.imul(Ur,gn)|0,Ut=Ut+Math.imul(Ur,Rn)|0,Ut=Ut+Math.imul(jr,gn)|0,ir=ir+Math.imul(jr,Rn)|0,Jt=Jt+Math.imul(Nr,pn)|0,Ut=Ut+Math.imul(Nr,yn)|0,Ut=Ut+Math.imul(Lr,pn)|0,ir=ir+Math.imul(Lr,yn)|0,Jt=Jt+Math.imul(Br,Cn)|0,Ut=Ut+Math.imul(Br,On)|0,Ut=Ut+Math.imul(Or,Cn)|0,ir=ir+Math.imul(Or,On)|0,Jt=Jt+Math.imul(Rr,In)|0,Ut=Ut+Math.imul(Rr,Bn)|0,Ut=Ut+Math.imul(wr,In)|0,ir=ir+Math.imul(wr,Bn)|0,Jt=Jt+Math.imul(Dr,En)|0,Ut=Ut+Math.imul(Dr,Sn)|0,Ut=Ut+Math.imul(Ar,En)|0,ir=ir+Math.imul(Ar,Sn)|0;var $u=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+($u>>>26)|0,$u&=67108863,Jt=Math.imul(kr,_n),Ut=Math.imul(kr,An),Ut=Ut+Math.imul(Mr,_n)|0,ir=Math.imul(Mr,An),Jt=Jt+Math.imul(Gr,Tn)|0,Ut=Ut+Math.imul(Gr,Nn)|0,Ut=Ut+Math.imul(Jr,Tn)|0,ir=ir+Math.imul(Jr,Nn)|0,Jt=Jt+Math.imul(Xr,$n)|0,Ut=Ut+Math.imul(Xr,Fn)|0,Ut=Ut+Math.imul(un,$n)|0,ir=ir+Math.imul(un,Fn)|0,Jt=Jt+Math.imul(qr,gn)|0,Ut=Ut+Math.imul(qr,Rn)|0,Ut=Ut+Math.imul(Zr,gn)|0,ir=ir+Math.imul(Zr,Rn)|0,Jt=Jt+Math.imul(Ur,pn)|0,Ut=Ut+Math.imul(Ur,yn)|0,Ut=Ut+Math.imul(jr,pn)|0,ir=ir+Math.imul(jr,yn)|0,Jt=Jt+Math.imul(Nr,Cn)|0,Ut=Ut+Math.imul(Nr,On)|0,Ut=Ut+Math.imul(Lr,Cn)|0,ir=ir+Math.imul(Lr,On)|0,Jt=Jt+Math.imul(Br,In)|0,Ut=Ut+Math.imul(Br,Bn)|0,Ut=Ut+Math.imul(Or,In)|0,ir=ir+Math.imul(Or,Bn)|0,Jt=Jt+Math.imul(Rr,En)|0,Ut=Ut+Math.imul(Rr,Sn)|0,Ut=Ut+Math.imul(wr,En)|0,ir=ir+Math.imul(wr,Sn)|0;var Au=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Au>>>26)|0,Au&=67108863,Jt=Math.imul(kr,Tn),Ut=Math.imul(kr,Nn),Ut=Ut+Math.imul(Mr,Tn)|0,ir=Math.imul(Mr,Nn),Jt=Jt+Math.imul(Gr,$n)|0,Ut=Ut+Math.imul(Gr,Fn)|0,Ut=Ut+Math.imul(Jr,$n)|0,ir=ir+Math.imul(Jr,Fn)|0,Jt=Jt+Math.imul(Xr,gn)|0,Ut=Ut+Math.imul(Xr,Rn)|0,Ut=Ut+Math.imul(un,gn)|0,ir=ir+Math.imul(un,Rn)|0,Jt=Jt+Math.imul(qr,pn)|0,Ut=Ut+Math.imul(qr,yn)|0,Ut=Ut+Math.imul(Zr,pn)|0,ir=ir+Math.imul(Zr,yn)|0,Jt=Jt+Math.imul(Ur,Cn)|0,Ut=Ut+Math.imul(Ur,On)|0,Ut=Ut+Math.imul(jr,Cn)|0,ir=ir+Math.imul(jr,On)|0,Jt=Jt+Math.imul(Nr,In)|0,Ut=Ut+Math.imul(Nr,Bn)|0,Ut=Ut+Math.imul(Lr,In)|0,ir=ir+Math.imul(Lr,Bn)|0,Jt=Jt+Math.imul(Br,En)|0,Ut=Ut+Math.imul(Br,Sn)|0,Ut=Ut+Math.imul(Or,En)|0,ir=ir+Math.imul(Or,Sn)|0;var Bu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Bu>>>26)|0,Bu&=67108863,Jt=Math.imul(kr,$n),Ut=Math.imul(kr,Fn),Ut=Ut+Math.imul(Mr,$n)|0,ir=Math.imul(Mr,Fn),Jt=Jt+Math.imul(Gr,gn)|0,Ut=Ut+Math.imul(Gr,Rn)|0,Ut=Ut+Math.imul(Jr,gn)|0,ir=ir+Math.imul(Jr,Rn)|0,Jt=Jt+Math.imul(Xr,pn)|0,Ut=Ut+Math.imul(Xr,yn)|0,Ut=Ut+Math.imul(un,pn)|0,ir=ir+Math.imul(un,yn)|0,Jt=Jt+Math.imul(qr,Cn)|0,Ut=Ut+Math.imul(qr,On)|0,Ut=Ut+Math.imul(Zr,Cn)|0,ir=ir+Math.imul(Zr,On)|0,Jt=Jt+Math.imul(Ur,In)|0,Ut=Ut+Math.imul(Ur,Bn)|0,Ut=Ut+Math.imul(jr,In)|0,ir=ir+Math.imul(jr,Bn)|0,Jt=Jt+Math.imul(Nr,En)|0,Ut=Ut+Math.imul(Nr,Sn)|0,Ut=Ut+Math.imul(Lr,En)|0,ir=ir+Math.imul(Lr,Sn)|0;var Su=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Su>>>26)|0,Su&=67108863,Jt=Math.imul(kr,gn),Ut=Math.imul(kr,Rn),Ut=Ut+Math.imul(Mr,gn)|0,ir=Math.imul(Mr,Rn),Jt=Jt+Math.imul(Gr,pn)|0,Ut=Ut+Math.imul(Gr,yn)|0,Ut=Ut+Math.imul(Jr,pn)|0,ir=ir+Math.imul(Jr,yn)|0,Jt=Jt+Math.imul(Xr,Cn)|0,Ut=Ut+Math.imul(Xr,On)|0,Ut=Ut+Math.imul(un,Cn)|0,ir=ir+Math.imul(un,On)|0,Jt=Jt+Math.imul(qr,In)|0,Ut=Ut+Math.imul(qr,Bn)|0,Ut=Ut+Math.imul(Zr,In)|0,ir=ir+Math.imul(Zr,Bn)|0,Jt=Jt+Math.imul(Ur,En)|0,Ut=Ut+Math.imul(Ur,Sn)|0,Ut=Ut+Math.imul(jr,En)|0,ir=ir+Math.imul(jr,Sn)|0;var Ru=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Ru>>>26)|0,Ru&=67108863,Jt=Math.imul(kr,pn),Ut=Math.imul(kr,yn),Ut=Ut+Math.imul(Mr,pn)|0,ir=Math.imul(Mr,yn),Jt=Jt+Math.imul(Gr,Cn)|0,Ut=Ut+Math.imul(Gr,On)|0,Ut=Ut+Math.imul(Jr,Cn)|0,ir=ir+Math.imul(Jr,On)|0,Jt=Jt+Math.imul(Xr,In)|0,Ut=Ut+Math.imul(Xr,Bn)|0,Ut=Ut+Math.imul(un,In)|0,ir=ir+Math.imul(un,Bn)|0,Jt=Jt+Math.imul(qr,En)|0,Ut=Ut+Math.imul(qr,Sn)|0,Ut=Ut+Math.imul(Zr,En)|0,ir=ir+Math.imul(Zr,Sn)|0;var lu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(lu>>>26)|0,lu&=67108863,Jt=Math.imul(kr,Cn),Ut=Math.imul(kr,On),Ut=Ut+Math.imul(Mr,Cn)|0,ir=Math.imul(Mr,On),Jt=Jt+Math.imul(Gr,In)|0,Ut=Ut+Math.imul(Gr,Bn)|0,Ut=Ut+Math.imul(Jr,In)|0,ir=ir+Math.imul(Jr,Bn)|0,Jt=Jt+Math.imul(Xr,En)|0,Ut=Ut+Math.imul(Xr,Sn)|0,Ut=Ut+Math.imul(un,En)|0,ir=ir+Math.imul(un,Sn)|0;var du=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(du>>>26)|0,du&=67108863,Jt=Math.imul(kr,In),Ut=Math.imul(kr,Bn),Ut=Ut+Math.imul(Mr,In)|0,ir=Math.imul(Mr,Bn),Jt=Jt+Math.imul(Gr,En)|0,Ut=Ut+Math.imul(Gr,Sn)|0,Ut=Ut+Math.imul(Jr,En)|0,ir=ir+Math.imul(Jr,Sn)|0;var fu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(fu>>>26)|0,fu&=67108863,Jt=Math.imul(kr,En),Ut=Math.imul(kr,Sn),Ut=Ut+Math.imul(Mr,En)|0,ir=Math.imul(Mr,Sn);var Tu=(lr+Jt|0)+((Ut&8191)<<13)|0;return lr=(ir+(Ut>>>13)|0)+(Tu>>>26)|0,Tu&=67108863,er[0]=Xn,er[1]=uu,er[2]=Eu,er[3]=pu,er[4]=Qn,er[5]=Jn,er[6]=ou,er[7]=mu,er[8]=xu,er[9]=_u,er[10]=$u,er[11]=Au,er[12]=Bu,er[13]=Su,er[14]=Ru,er[15]=lu,er[16]=du,er[17]=fu,er[18]=Tu,lr!==0&&(er[19]=lr,Wt.length++),Wt};Math.imul||(Kt=Vt);function Xt(rr,Lt,Ht){Ht.negative=Lt.negative^rr.negative,Ht.length=rr.length+Lt.length;for(var Wt=0,Gt=0,Yt=0;Yt<Ht.length-1;Yt++){var er=Gt;Gt=0;for(var lr=Wt&67108863,Jt=Math.min(Yt,Lt.length-1),Ut=Math.max(0,Yt-rr.length+1);Ut<=Jt;Ut++){var ir=Yt-Ut,Cr=rr.words[ir]|0,_r=Lt.words[Ut]|0,$r=Cr*_r,Tr=$r&67108863;er=er+($r/67108864|0)|0,Tr=Tr+lr|0,lr=Tr&67108863,er=er+(Tr>>>26)|0,Gt+=er>>>26,er&=67108863}Ht.words[Yt]=lr,Wt=er,er=Gt}return Wt!==0?Ht.words[Yt]=Wt:Ht.length--,Ht.strip()}function Qt(rr,Lt,Ht){var Wt=new Zt;return Wt.mulp(rr,Lt,Ht)}At.prototype.mulTo=function(Lt,Ht){var Wt,Gt=this.length+Lt.length;return this.length===10&&Lt.length===10?Wt=Kt(this,Lt,Ht):Gt<63?Wt=Vt(this,Lt,Ht):Gt<1024?Wt=Xt(this,Lt,Ht):Wt=Qt(this,Lt,Ht),Wt};function Zt(rr,Lt){this.x=rr,this.y=Lt}Zt.prototype.makeRBT=function(Lt){for(var Ht=new Array(Lt),Wt=At.prototype._countBits(Lt)-1,Gt=0;Gt<Lt;Gt++)Ht[Gt]=this.revBin(Gt,Wt,Lt);return Ht},Zt.prototype.revBin=function(Lt,Ht,Wt){if(Lt===0||Lt===Wt-1)return Lt;for(var Gt=0,Yt=0;Yt<Ht;Yt++)Gt|=(Lt&1)<<Ht-Yt-1,Lt>>=1;return Gt},Zt.prototype.permute=function(Lt,Ht,Wt,Gt,Yt,er){for(var lr=0;lr<er;lr++)Gt[lr]=Ht[Lt[lr]],Yt[lr]=Wt[Lt[lr]]},Zt.prototype.transform=function(Lt,Ht,Wt,Gt,Yt,er){this.permute(er,Lt,Ht,Wt,Gt,Yt);for(var lr=1;lr<Yt;lr<<=1)for(var Jt=lr<<1,Ut=Math.cos(2*Math.PI/Jt),ir=Math.sin(2*Math.PI/Jt),Cr=0;Cr<Yt;Cr+=Jt)for(var _r=Ut,$r=ir,Tr=0;Tr<lr;Tr++){var Dr=Wt[Cr+Tr],Ar=Gt[Cr+Tr],Fr=Wt[Cr+Tr+lr],Rr=Gt[Cr+Tr+lr],wr=_r*Fr-$r*Rr;Rr=_r*Rr+$r*Fr,Fr=wr,Wt[Cr+Tr]=Dr+Fr,Gt[Cr+Tr]=Ar+Rr,Wt[Cr+Tr+lr]=Dr-Fr,Gt[Cr+Tr+lr]=Ar-Rr,Tr!==Jt&&(wr=Ut*_r-ir*$r,$r=Ut*$r+ir*_r,_r=wr)}},Zt.prototype.guessLen13b=function(Lt,Ht){var Wt=Math.max(Ht,Lt)|1,Gt=Wt&1,Yt=0;for(Wt=Wt/2|0;Wt;Wt=Wt>>>1)Yt++;return 1<<Yt+1+Gt},Zt.prototype.conjugate=function(Lt,Ht,Wt){if(!(Wt<=1))for(var Gt=0;Gt<Wt/2;Gt++){var Yt=Lt[Gt];Lt[Gt]=Lt[Wt-Gt-1],Lt[Wt-Gt-1]=Yt,Yt=Ht[Gt],Ht[Gt]=-Ht[Wt-Gt-1],Ht[Wt-Gt-1]=-Yt}},Zt.prototype.normalize13b=function(Lt,Ht){for(var Wt=0,Gt=0;Gt<Ht/2;Gt++){var Yt=Math.round(Lt[2*Gt+1]/Ht)*8192+Math.round(Lt[2*Gt]/Ht)+Wt;Lt[Gt]=Yt&67108863,Yt<67108864?Wt=0:Wt=Yt/67108864|0}return Lt},Zt.prototype.convert13b=function(Lt,Ht,Wt,Gt){for(var Yt=0,er=0;er<Ht;er++)Yt=Yt+(Lt[er]|0),Wt[2*er]=Yt&8191,Yt=Yt>>>13,Wt[2*er+1]=Yt&8191,Yt=Yt>>>13;for(er=2*Ht;er<Gt;++er)Wt[er]=0;Ct(Yt===0),Ct((Yt&-8192)===0)},Zt.prototype.stub=function(Lt){for(var Ht=new Array(Lt),Wt=0;Wt<Lt;Wt++)Ht[Wt]=0;return Ht},Zt.prototype.mulp=function(Lt,Ht,Wt){var Gt=2*this.guessLen13b(Lt.length,Ht.length),Yt=this.makeRBT(Gt),er=this.stub(Gt),lr=new Array(Gt),Jt=new Array(Gt),Ut=new Array(Gt),ir=new Array(Gt),Cr=new Array(Gt),_r=new Array(Gt),$r=Wt.words;$r.length=Gt,this.convert13b(Lt.words,Lt.length,lr,Gt),this.convert13b(Ht.words,Ht.length,ir,Gt),this.transform(lr,er,Jt,Ut,Gt,Yt),this.transform(ir,er,Cr,_r,Gt,Yt);for(var Tr=0;Tr<Gt;Tr++){var Dr=Jt[Tr]*Cr[Tr]-Ut[Tr]*_r[Tr];Ut[Tr]=Jt[Tr]*_r[Tr]+Ut[Tr]*Cr[Tr],Jt[Tr]=Dr}return this.conjugate(Jt,Ut,Gt),this.transform(Jt,Ut,$r,er,Gt,Yt),this.conjugate($r,er,Gt),this.normalize13b($r,Gt),Wt.negative=Lt.negative^Ht.negative,Wt.length=Lt.length+Ht.length,Wt.strip()},At.prototype.mul=function(Lt){var Ht=new At(null);return Ht.words=new Array(this.length+Lt.length),this.mulTo(Lt,Ht)},At.prototype.mulf=function(Lt){var Ht=new At(null);return Ht.words=new Array(this.length+Lt.length),Qt(this,Lt,Ht)},At.prototype.imul=function(Lt){return this.clone().mulTo(Lt,this)},At.prototype.imuln=function(Lt){Ct(typeof Lt=="number"),Ct(Lt<67108864);for(var Ht=0,Wt=0;Wt<this.length;Wt++){var Gt=(this.words[Wt]|0)*Lt,Yt=(Gt&67108863)+(Ht&67108863);Ht>>=26,Ht+=Gt/67108864|0,Ht+=Yt>>>26,this.words[Wt]=Yt&67108863}return Ht!==0&&(this.words[Wt]=Ht,this.length++),this},At.prototype.muln=function(Lt){return this.clone().imuln(Lt)},At.prototype.sqr=function(){return this.mul(this)},At.prototype.isqr=function(){return this.imul(this.clone())},At.prototype.pow=function(Lt){var Ht=zt(Lt);if(Ht.length===0)return new At(1);for(var Wt=this,Gt=0;Gt<Ht.length&&Ht[Gt]===0;Gt++,Wt=Wt.sqr());if(++Gt<Ht.length)for(var Yt=Wt.sqr();Gt<Ht.length;Gt++,Yt=Yt.sqr())Ht[Gt]!==0&&(Wt=Wt.mul(Yt));return Wt},At.prototype.iushln=function(Lt){Ct(typeof Lt=="number"&&Lt>=0);var Ht=Lt%26,Wt=(Lt-Ht)/26,Gt=67108863>>>26-Ht<<26-Ht,Yt;if(Ht!==0){var er=0;for(Yt=0;Yt<this.length;Yt++){var lr=this.words[Yt]&Gt,Jt=(this.words[Yt]|0)-lr<<Ht;this.words[Yt]=Jt|er,er=lr>>>26-Ht}er&&(this.words[Yt]=er,this.length++)}if(Wt!==0){for(Yt=this.length-1;Yt>=0;Yt--)this.words[Yt+Wt]=this.words[Yt];for(Yt=0;Yt<Wt;Yt++)this.words[Yt]=0;this.length+=Wt}return this.strip()},At.prototype.ishln=function(Lt){return Ct(this.negative===0),this.iushln(Lt)},At.prototype.iushrn=function(Lt,Ht,Wt){Ct(typeof Lt=="number"&&Lt>=0);var Gt;Ht?Gt=(Ht-Ht%26)/26:Gt=0;var Yt=Lt%26,er=Math.min((Lt-Yt)/26,this.length),lr=67108863^67108863>>>Yt<<Yt,Jt=Wt;if(Gt-=er,Gt=Math.max(0,Gt),Jt){for(var Ut=0;Ut<er;Ut++)Jt.words[Ut]=this.words[Ut];Jt.length=er}if(er!==0)if(this.length>er)for(this.length-=er,Ut=0;Ut<this.length;Ut++)this.words[Ut]=this.words[Ut+er];else this.words[0]=0,this.length=1;var ir=0;for(Ut=this.length-1;Ut>=0&&(ir!==0||Ut>=Gt);Ut--){var Cr=this.words[Ut]|0;this.words[Ut]=ir<<26-Yt|Cr>>>Yt,ir=Cr&lr}return Jt&&ir!==0&&(Jt.words[Jt.length++]=ir),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},At.prototype.ishrn=function(Lt,Ht,Wt){return Ct(this.negative===0),this.iushrn(Lt,Ht,Wt)},At.prototype.shln=function(Lt){return this.clone().ishln(Lt)},At.prototype.ushln=function(Lt){return this.clone().iushln(Lt)},At.prototype.shrn=function(Lt){return this.clone().ishrn(Lt)},At.prototype.ushrn=function(Lt){return this.clone().iushrn(Lt)},At.prototype.testn=function(Lt){Ct(typeof Lt=="number"&&Lt>=0);var Ht=Lt%26,Wt=(Lt-Ht)/26,Gt=1<<Ht;if(this.length<=Wt)return!1;var Yt=this.words[Wt];return!!(Yt&Gt)},At.prototype.imaskn=function(Lt){Ct(typeof Lt=="number"&&Lt>=0);var Ht=Lt%26,Wt=(Lt-Ht)/26;if(Ct(this.negative===0,"imaskn works only with positive numbers"),this.length<=Wt)return this;if(Ht!==0&&Wt++,this.length=Math.min(Wt,this.length),Ht!==0){var Gt=67108863^67108863>>>Ht<<Ht;this.words[this.length-1]&=Gt}return this.strip()},At.prototype.maskn=function(Lt){return this.clone().imaskn(Lt)},At.prototype.iaddn=function(Lt){return Ct(typeof Lt=="number"),Ct(Lt<67108864),Lt<0?this.isubn(-Lt):this.negative!==0?this.length===1&&(this.words[0]|0)<Lt?(this.words[0]=Lt-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(Lt),this.negative=1,this):this._iaddn(Lt)},At.prototype._iaddn=function(Lt){this.words[0]+=Lt;for(var Ht=0;Ht<this.length&&this.words[Ht]>=67108864;Ht++)this.words[Ht]-=67108864,Ht===this.length-1?this.words[Ht+1]=1:this.words[Ht+1]++;return this.length=Math.max(this.length,Ht+1),this},At.prototype.isubn=function(Lt){if(Ct(typeof Lt=="number"),Ct(Lt<67108864),Lt<0)return this.iaddn(-Lt);if(this.negative!==0)return this.negative=0,this.iaddn(Lt),this.negative=1,this;if(this.words[0]-=Lt,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Ht=0;Ht<this.length&&this.words[Ht]<0;Ht++)this.words[Ht]+=67108864,this.words[Ht+1]-=1;return this.strip()},At.prototype.addn=function(Lt){return this.clone().iaddn(Lt)},At.prototype.subn=function(Lt){return this.clone().isubn(Lt)},At.prototype.iabs=function(){return this.negative=0,this},At.prototype.abs=function(){return this.clone().iabs()},At.prototype._ishlnsubmul=function(Lt,Ht,Wt){var Gt=Lt.length+Wt,Yt;this._expand(Gt);var er,lr=0;for(Yt=0;Yt<Lt.length;Yt++){er=(this.words[Yt+Wt]|0)+lr;var Jt=(Lt.words[Yt]|0)*Ht;er-=Jt&67108863,lr=(er>>26)-(Jt/67108864|0),this.words[Yt+Wt]=er&67108863}for(;Yt<this.length-Wt;Yt++)er=(this.words[Yt+Wt]|0)+lr,lr=er>>26,this.words[Yt+Wt]=er&67108863;if(lr===0)return this.strip();for(Ct(lr===-1),lr=0,Yt=0;Yt<this.length;Yt++)er=-(this.words[Yt]|0)+lr,lr=er>>26,this.words[Yt]=er&67108863;return this.negative=1,this.strip()},At.prototype._wordDiv=function(Lt,Ht){var Wt=this.length-Lt.length,Gt=this.clone(),Yt=Lt,er=Yt.words[Yt.length-1]|0,lr=this._countBits(er);Wt=26-lr,Wt!==0&&(Yt=Yt.ushln(Wt),Gt.iushln(Wt),er=Yt.words[Yt.length-1]|0);var Jt=Gt.length-Yt.length,Ut;if(Ht!=="mod"){Ut=new At(null),Ut.length=Jt+1,Ut.words=new Array(Ut.length);for(var ir=0;ir<Ut.length;ir++)Ut.words[ir]=0}var Cr=Gt.clone()._ishlnsubmul(Yt,1,Jt);Cr.negative===0&&(Gt=Cr,Ut&&(Ut.words[Jt]=1));for(var _r=Jt-1;_r>=0;_r--){var $r=(Gt.words[Yt.length+_r]|0)*67108864+(Gt.words[Yt.length+_r-1]|0);for($r=Math.min($r/er|0,67108863),Gt._ishlnsubmul(Yt,$r,_r);Gt.negative!==0;)$r--,Gt.negative=0,Gt._ishlnsubmul(Yt,1,_r),Gt.isZero()||(Gt.negative^=1);Ut&&(Ut.words[_r]=$r)}return Ut&&Ut.strip(),Gt.strip(),Ht!=="div"&&Wt!==0&&Gt.iushrn(Wt),{div:Ut||null,mod:Gt}},At.prototype.divmod=function(Lt,Ht,Wt){if(Ct(!Lt.isZero()),this.isZero())return{div:new At(0),mod:new At(0)};var Gt,Yt,er;return this.negative!==0&&Lt.negative===0?(er=this.neg().divmod(Lt,Ht),Ht!=="mod"&&(Gt=er.div.neg()),Ht!=="div"&&(Yt=er.mod.neg(),Wt&&Yt.negative!==0&&Yt.iadd(Lt)),{div:Gt,mod:Yt}):this.negative===0&&Lt.negative!==0?(er=this.divmod(Lt.neg(),Ht),Ht!=="mod"&&(Gt=er.div.neg()),{div:Gt,mod:er.mod}):this.negative&Lt.negative?(er=this.neg().divmod(Lt.neg(),Ht),Ht!=="div"&&(Yt=er.mod.neg(),Wt&&Yt.negative!==0&&Yt.isub(Lt)),{div:er.div,mod:Yt}):Lt.length>this.length||this.cmp(Lt)<0?{div:new At(0),mod:this}:Lt.length===1?Ht==="div"?{div:this.divn(Lt.words[0]),mod:null}:Ht==="mod"?{div:null,mod:new At(this.modn(Lt.words[0]))}:{div:this.divn(Lt.words[0]),mod:new At(this.modn(Lt.words[0]))}:this._wordDiv(Lt,Ht)},At.prototype.div=function(Lt){return this.divmod(Lt,"div",!1).div},At.prototype.mod=function(Lt){return this.divmod(Lt,"mod",!1).mod},At.prototype.umod=function(Lt){return this.divmod(Lt,"mod",!0).mod},At.prototype.divRound=function(Lt){var Ht=this.divmod(Lt);if(Ht.mod.isZero())return Ht.div;var Wt=Ht.div.negative!==0?Ht.mod.isub(Lt):Ht.mod,Gt=Lt.ushrn(1),Yt=Lt.andln(1),er=Wt.cmp(Gt);return er<0||Yt===1&&er===0?Ht.div:Ht.div.negative!==0?Ht.div.isubn(1):Ht.div.iaddn(1)},At.prototype.modn=function(Lt){Ct(Lt<=67108863);for(var Ht=(1<<26)%Lt,Wt=0,Gt=this.length-1;Gt>=0;Gt--)Wt=(Ht*Wt+(this.words[Gt]|0))%Lt;return Wt},At.prototype.idivn=function(Lt){Ct(Lt<=67108863);for(var Ht=0,Wt=this.length-1;Wt>=0;Wt--){var Gt=(this.words[Wt]|0)+Ht*67108864;this.words[Wt]=Gt/Lt|0,Ht=Gt%Lt}return this.strip()},At.prototype.divn=function(Lt){return this.clone().idivn(Lt)},At.prototype.egcd=function(Lt){Ct(Lt.negative===0),Ct(!Lt.isZero());var Ht=this,Wt=Lt.clone();Ht.negative!==0?Ht=Ht.umod(Lt):Ht=Ht.clone();for(var Gt=new At(1),Yt=new At(0),er=new At(0),lr=new At(1),Jt=0;Ht.isEven()&&Wt.isEven();)Ht.iushrn(1),Wt.iushrn(1),++Jt;for(var Ut=Wt.clone(),ir=Ht.clone();!Ht.isZero();){for(var Cr=0,_r=1;!(Ht.words[0]&_r)&&Cr<26;++Cr,_r<<=1);if(Cr>0)for(Ht.iushrn(Cr);Cr-- >0;)(Gt.isOdd()||Yt.isOdd())&&(Gt.iadd(Ut),Yt.isub(ir)),Gt.iushrn(1),Yt.iushrn(1);for(var $r=0,Tr=1;!(Wt.words[0]&Tr)&&$r<26;++$r,Tr<<=1);if($r>0)for(Wt.iushrn($r);$r-- >0;)(er.isOdd()||lr.isOdd())&&(er.iadd(Ut),lr.isub(ir)),er.iushrn(1),lr.iushrn(1);Ht.cmp(Wt)>=0?(Ht.isub(Wt),Gt.isub(er),Yt.isub(lr)):(Wt.isub(Ht),er.isub(Gt),lr.isub(Yt))}return{a:er,b:lr,gcd:Wt.iushln(Jt)}},At.prototype._invmp=function(Lt){Ct(Lt.negative===0),Ct(!Lt.isZero());var Ht=this,Wt=Lt.clone();Ht.negative!==0?Ht=Ht.umod(Lt):Ht=Ht.clone();for(var Gt=new At(1),Yt=new At(0),er=Wt.clone();Ht.cmpn(1)>0&&Wt.cmpn(1)>0;){for(var lr=0,Jt=1;!(Ht.words[0]&Jt)&&lr<26;++lr,Jt<<=1);if(lr>0)for(Ht.iushrn(lr);lr-- >0;)Gt.isOdd()&&Gt.iadd(er),Gt.iushrn(1);for(var Ut=0,ir=1;!(Wt.words[0]&ir)&&Ut<26;++Ut,ir<<=1);if(Ut>0)for(Wt.iushrn(Ut);Ut-- >0;)Yt.isOdd()&&Yt.iadd(er),Yt.iushrn(1);Ht.cmp(Wt)>=0?(Ht.isub(Wt),Gt.isub(Yt)):(Wt.isub(Ht),Yt.isub(Gt))}var Cr;return Ht.cmpn(1)===0?Cr=Gt:Cr=Yt,Cr.cmpn(0)<0&&Cr.iadd(Lt),Cr},At.prototype.gcd=function(Lt){if(this.isZero())return Lt.abs();if(Lt.isZero())return this.abs();var Ht=this.clone(),Wt=Lt.clone();Ht.negative=0,Wt.negative=0;for(var Gt=0;Ht.isEven()&&Wt.isEven();Gt++)Ht.iushrn(1),Wt.iushrn(1);do{for(;Ht.isEven();)Ht.iushrn(1);for(;Wt.isEven();)Wt.iushrn(1);var Yt=Ht.cmp(Wt);if(Yt<0){var er=Ht;Ht=Wt,Wt=er}else if(Yt===0||Wt.cmpn(1)===0)break;Ht.isub(Wt)}while(!0);return Wt.iushln(Gt)},At.prototype.invm=function(Lt){return this.egcd(Lt).a.umod(Lt)},At.prototype.isEven=function(){return(this.words[0]&1)===0},At.prototype.isOdd=function(){return(this.words[0]&1)===1},At.prototype.andln=function(Lt){return this.words[0]&Lt},At.prototype.bincn=function(Lt){Ct(typeof Lt=="number");var Ht=Lt%26,Wt=(Lt-Ht)/26,Gt=1<<Ht;if(this.length<=Wt)return this._expand(Wt+1),this.words[Wt]|=Gt,this;for(var Yt=Gt,er=Wt;Yt!==0&&er<this.length;er++){var lr=this.words[er]|0;lr+=Yt,Yt=lr>>>26,lr&=67108863,this.words[er]=lr}return Yt!==0&&(this.words[er]=Yt,this.length++),this},At.prototype.isZero=function(){return this.length===1&&this.words[0]===0},At.prototype.cmpn=function(Lt){var Ht=Lt<0;if(this.negative!==0&&!Ht)return-1;if(this.negative===0&&Ht)return 1;this.strip();var Wt;if(this.length>1)Wt=1;else{Ht&&(Lt=-Lt),Ct(Lt<=67108863,"Number is too big");var Gt=this.words[0]|0;Wt=Gt===Lt?0:Gt<Lt?-1:1}return this.negative!==0?-Wt|0:Wt},At.prototype.cmp=function(Lt){if(this.negative!==0&&Lt.negative===0)return-1;if(this.negative===0&&Lt.negative!==0)return 1;var Ht=this.ucmp(Lt);return this.negative!==0?-Ht|0:Ht},At.prototype.ucmp=function(Lt){if(this.length>Lt.length)return 1;if(this.length<Lt.length)return-1;for(var Ht=0,Wt=this.length-1;Wt>=0;Wt--){var Gt=this.words[Wt]|0,Yt=Lt.words[Wt]|0;if(Gt!==Yt){Gt<Yt?Ht=-1:Gt>Yt&&(Ht=1);break}}return Ht},At.prototype.gtn=function(Lt){return this.cmpn(Lt)===1},At.prototype.gt=function(Lt){return this.cmp(Lt)===1},At.prototype.gten=function(Lt){return this.cmpn(Lt)>=0},At.prototype.gte=function(Lt){return this.cmp(Lt)>=0},At.prototype.ltn=function(Lt){return this.cmpn(Lt)===-1},At.prototype.lt=function(Lt){return this.cmp(Lt)===-1},At.prototype.lten=function(Lt){return this.cmpn(Lt)<=0},At.prototype.lte=function(Lt){return this.cmp(Lt)<=0},At.prototype.eqn=function(Lt){return this.cmpn(Lt)===0},At.prototype.eq=function(Lt){return this.cmp(Lt)===0},At.red=function(Lt){return new yr(Lt)},At.prototype.toRed=function(Lt){return Ct(!this.red,"Already a number in reduction context"),Ct(this.negative===0,"red works only with positives"),Lt.convertTo(this)._forceRed(Lt)},At.prototype.fromRed=function(){return Ct(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},At.prototype._forceRed=function(Lt){return this.red=Lt,this},At.prototype.forceRed=function(Lt){return Ct(!this.red,"Already a number in reduction context"),this._forceRed(Lt)},At.prototype.redAdd=function(Lt){return Ct(this.red,"redAdd works only with red numbers"),this.red.add(this,Lt)},At.prototype.redIAdd=function(Lt){return Ct(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,Lt)},At.prototype.redSub=function(Lt){return Ct(this.red,"redSub works only with red numbers"),this.red.sub(this,Lt)},At.prototype.redISub=function(Lt){return Ct(this.red,"redISub works only with red numbers"),this.red.isub(this,Lt)},At.prototype.redShl=function(Lt){return Ct(this.red,"redShl works only with red numbers"),this.red.shl(this,Lt)},At.prototype.redMul=function(Lt){return Ct(this.red,"redMul works only with red numbers"),this.red._verify2(this,Lt),this.red.mul(this,Lt)},At.prototype.redIMul=function(Lt){return Ct(this.red,"redMul works only with red numbers"),this.red._verify2(this,Lt),this.red.imul(this,Lt)},At.prototype.redSqr=function(){return Ct(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},At.prototype.redISqr=function(){return Ct(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},At.prototype.redSqrt=function(){return Ct(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},At.prototype.redInvm=function(){return Ct(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},At.prototype.redNeg=function(){return Ct(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},At.prototype.redPow=function(Lt){return Ct(this.red&&!Lt.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,Lt)};var dr={k256:null,p224:null,p192:null,p25519:null};function cr(rr,Lt){this.name=rr,this.p=new At(Lt,16),this.n=this.p.bitLength(),this.k=new At(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}cr.prototype._tmp=function(){var Lt=new At(null);return Lt.words=new Array(Math.ceil(this.n/13)),Lt},cr.prototype.ireduce=function(Lt){var Ht=Lt,Wt;do this.split(Ht,this.tmp),Ht=this.imulK(Ht),Ht=Ht.iadd(this.tmp),Wt=Ht.bitLength();while(Wt>this.n);var Gt=Wt<this.n?-1:Ht.ucmp(this.p);return Gt===0?(Ht.words[0]=0,Ht.length=1):Gt>0?Ht.isub(this.p):Ht.strip!==void 0?Ht.strip():Ht._strip(),Ht},cr.prototype.split=function(Lt,Ht){Lt.iushrn(this.n,0,Ht)},cr.prototype.imulK=function(Lt){return Lt.imul(this.k)};function Er(){cr.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}$t(Er,cr),Er.prototype.split=function(Lt,Ht){for(var Wt=4194303,Gt=Math.min(Lt.length,9),Yt=0;Yt<Gt;Yt++)Ht.words[Yt]=Lt.words[Yt];if(Ht.length=Gt,Lt.length<=9){Lt.words[0]=0,Lt.length=1;return}var er=Lt.words[9];for(Ht.words[Ht.length++]=er&Wt,Yt=10;Yt<Lt.length;Yt++){var lr=Lt.words[Yt]|0;Lt.words[Yt-10]=(lr&Wt)<<4|er>>>22,er=lr}er>>>=22,Lt.words[Yt-10]=er,er===0&&Lt.length>10?Lt.length-=10:Lt.length-=9},Er.prototype.imulK=function(Lt){Lt.words[Lt.length]=0,Lt.words[Lt.length+1]=0,Lt.length+=2;for(var Ht=0,Wt=0;Wt<Lt.length;Wt++){var Gt=Lt.words[Wt]|0;Ht+=Gt*977,Lt.words[Wt]=Ht&67108863,Ht=Gt*64+(Ht/67108864|0)}return Lt.words[Lt.length-1]===0&&(Lt.length--,Lt.words[Lt.length-1]===0&&Lt.length--),Lt};function pr(){cr.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}$t(pr,cr);function gr(){cr.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}$t(gr,cr);function vr(){cr.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}$t(vr,cr),vr.prototype.imulK=function(Lt){for(var Ht=0,Wt=0;Wt<Lt.length;Wt++){var Gt=(Lt.words[Wt]|0)*19+Ht,Yt=Gt&67108863;Gt>>>=26,Lt.words[Wt]=Yt,Ht=Gt}return Ht!==0&&(Lt.words[Lt.length++]=Ht),Lt},At._prime=function(Lt){if(dr[Lt])return dr[Lt];var Ht;if(Lt==="k256")Ht=new Er;else if(Lt==="p224")Ht=new pr;else if(Lt==="p192")Ht=new gr;else if(Lt==="p25519")Ht=new vr;else throw new Error("Unknown prime "+Lt);return dr[Lt]=Ht,Ht};function yr(rr){if(typeof rr=="string"){var Lt=At._prime(rr);this.m=Lt.p,this.prime=Lt}else Ct(rr.gtn(1),"modulus must be greater than 1"),this.m=rr,this.prime=null}yr.prototype._verify1=function(Lt){Ct(Lt.negative===0,"red works only with positives"),Ct(Lt.red,"red works only with red numbers")},yr.prototype._verify2=function(Lt,Ht){Ct((Lt.negative|Ht.negative)===0,"red works only with positives"),Ct(Lt.red&&Lt.red===Ht.red,"red works only with red numbers")},yr.prototype.imod=function(Lt){return this.prime?this.prime.ireduce(Lt)._forceRed(this):Lt.umod(this.m)._forceRed(this)},yr.prototype.neg=function(Lt){return Lt.isZero()?Lt.clone():this.m.sub(Lt)._forceRed(this)},yr.prototype.add=function(Lt,Ht){this._verify2(Lt,Ht);var Wt=Lt.add(Ht);return Wt.cmp(this.m)>=0&&Wt.isub(this.m),Wt._forceRed(this)},yr.prototype.iadd=function(Lt,Ht){this._verify2(Lt,Ht);var Wt=Lt.iadd(Ht);return Wt.cmp(this.m)>=0&&Wt.isub(this.m),Wt},yr.prototype.sub=function(Lt,Ht){this._verify2(Lt,Ht);var Wt=Lt.sub(Ht);return Wt.cmpn(0)<0&&Wt.iadd(this.m),Wt._forceRed(this)},yr.prototype.isub=function(Lt,Ht){this._verify2(Lt,Ht);var Wt=Lt.isub(Ht);return Wt.cmpn(0)<0&&Wt.iadd(this.m),Wt},yr.prototype.shl=function(Lt,Ht){return this._verify1(Lt),this.imod(Lt.ushln(Ht))},yr.prototype.imul=function(Lt,Ht){return this._verify2(Lt,Ht),this.imod(Lt.imul(Ht))},yr.prototype.mul=function(Lt,Ht){return this._verify2(Lt,Ht),this.imod(Lt.mul(Ht))},yr.prototype.isqr=function(Lt){return this.imul(Lt,Lt.clone())},yr.prototype.sqr=function(Lt){return this.mul(Lt,Lt)},yr.prototype.sqrt=function(Lt){if(Lt.isZero())return Lt.clone();var Ht=this.m.andln(3);if(Ct(Ht%2===1),Ht===3){var Wt=this.m.add(new At(1)).iushrn(2);return this.pow(Lt,Wt)}for(var Gt=this.m.subn(1),Yt=0;!Gt.isZero()&&Gt.andln(1)===0;)Yt++,Gt.iushrn(1);Ct(!Gt.isZero());var er=new At(1).toRed(this),lr=er.redNeg(),Jt=this.m.subn(1).iushrn(1),Ut=this.m.bitLength();for(Ut=new At(2*Ut*Ut).toRed(this);this.pow(Ut,Jt).cmp(lr)!==0;)Ut.redIAdd(lr);for(var ir=this.pow(Ut,Gt),Cr=this.pow(Lt,Gt.addn(1).iushrn(1)),_r=this.pow(Lt,Gt),$r=Yt;_r.cmp(er)!==0;){for(var Tr=_r,Dr=0;Tr.cmp(er)!==0;Dr++)Tr=Tr.redSqr();Ct(Dr<$r);var Ar=this.pow(ir,new At(1).iushln($r-Dr-1));Cr=Cr.redMul(Ar),ir=Ar.redSqr(),_r=_r.redMul(ir),$r=Dr}return Cr},yr.prototype.invm=function(Lt){var Ht=Lt._invmp(this.m);return Ht.negative!==0?(Ht.negative=0,this.imod(Ht).redNeg()):this.imod(Ht)},yr.prototype.pow=function(Lt,Ht){if(Ht.isZero())return new At(1).toRed(this);if(Ht.cmpn(1)===0)return Lt.clone();var Wt=4,Gt=new Array(1<<Wt);Gt[0]=new At(1).toRed(this),Gt[1]=Lt;for(var Yt=2;Yt<Gt.length;Yt++)Gt[Yt]=this.mul(Gt[Yt-1],Lt);var er=Gt[0],lr=0,Jt=0,Ut=Ht.bitLength()%26;for(Ut===0&&(Ut=26),Yt=Ht.length-1;Yt>=0;Yt--){for(var ir=Ht.words[Yt],Cr=Ut-1;Cr>=0;Cr--){var _r=ir>>Cr&1;if(er!==Gt[0]&&(er=this.sqr(er)),_r===0&&lr===0){Jt=0;continue}lr<<=1,lr|=_r,Jt++,!(Jt!==Wt&&(Yt!==0||Cr!==0))&&(er=this.mul(er,Gt[lr]),Jt=0,lr=0)}Ut=26}return er},yr.prototype.convertTo=function(Lt){var Ht=Lt.umod(this.m);return Ht===Lt?Ht.clone():Ht},yr.prototype.convertFrom=function(Lt){var Ht=Lt.clone();return Ht.red=null,Ht},At.mont=function(Lt){return new xr(Lt)};function xr(rr){yr.call(this,rr),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new At(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}$t(xr,yr),xr.prototype.convertTo=function(Lt){return this.imod(Lt.ushln(this.shift))},xr.prototype.convertFrom=function(Lt){var Ht=this.imod(Lt.mul(this.rinv));return Ht.red=null,Ht},xr.prototype.imul=function(Lt,Ht){if(Lt.isZero()||Ht.isZero())return Lt.words[0]=0,Lt.length=1,Lt;var Wt=Lt.imul(Ht),Gt=Wt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Yt=Wt.isub(Gt).iushrn(this.shift),er=Yt;return Yt.cmp(this.m)>=0?er=Yt.isub(this.m):Yt.cmpn(0)<0&&(er=Yt.iadd(this.m)),er._forceRed(this)},xr.prototype.mul=function(Lt,Ht){if(Lt.isZero()||Ht.isZero())return new At(0)._forceRed(this);var Wt=Lt.mul(Ht),Gt=Wt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Yt=Wt.isub(Gt).iushrn(this.shift),er=Yt;return Yt.cmp(this.m)>=0?er=Yt.isub(this.m):Yt.cmpn(0)<0&&(er=Yt.iadd(this.m)),er._forceRed(this)},xr.prototype.invm=function(Lt){var Ht=this.imod(Lt._invmp(this.m).mul(this.r2));return Ht._forceRed(this)}})(ht,commonjsGlobal)}(bn$7)),bn$7.exports}var bn$6={exports:{}};bn$6.exports;var hasRequiredBn$3;function requireBn$3(){return hasRequiredBn$3||(hasRequiredBn$3=1,function(ht){(function(Et,yt){function Ct(rr,Lt){if(!rr)throw new Error(Lt||"Assertion failed")}function $t(rr,Lt){rr.super_=Lt;var Ht=function(){};Ht.prototype=Lt.prototype,rr.prototype=new Ht,rr.prototype.constructor=rr}function At(rr,Lt,Ht){if(At.isBN(rr))return rr;this.negative=0,this.words=null,this.length=0,this.red=null,rr!==null&&((Lt==="le"||Lt==="be")&&(Ht=Lt,Lt=10),this._init(rr||0,Lt||10,Ht||"be"))}typeof Et=="object"?Et.exports=At:yt.BN=At,At.BN=At,At.wordSize=26;var Bt;try{typeof window<"u"&&typeof window.Buffer<"u"?Bt=window.Buffer:Bt=require$$0$3.Buffer}catch{}At.isBN=function(Lt){return Lt instanceof At?!0:Lt!==null&&typeof Lt=="object"&&Lt.constructor.wordSize===At.wordSize&&Array.isArray(Lt.words)},At.max=function(Lt,Ht){return Lt.cmp(Ht)>0?Lt:Ht},At.min=function(Lt,Ht){return Lt.cmp(Ht)<0?Lt:Ht},At.prototype._init=function(Lt,Ht,Wt){if(typeof Lt=="number")return this._initNumber(Lt,Ht,Wt);if(typeof Lt=="object")return this._initArray(Lt,Ht,Wt);Ht==="hex"&&(Ht=16),Ct(Ht===(Ht|0)&&Ht>=2&&Ht<=36),Lt=Lt.toString().replace(/\s+/g,"");var Gt=0;Lt[0]==="-"&&(Gt++,this.negative=1),Gt<Lt.length&&(Ht===16?this._parseHex(Lt,Gt,Wt):(this._parseBase(Lt,Ht,Gt),Wt==="le"&&this._initArray(this.toArray(),Ht,Wt)))},At.prototype._initNumber=function(Lt,Ht,Wt){Lt<0&&(this.negative=1,Lt=-Lt),Lt<67108864?(this.words=[Lt&67108863],this.length=1):Lt<4503599627370496?(this.words=[Lt&67108863,Lt/67108864&67108863],this.length=2):(Ct(Lt<9007199254740992),this.words=[Lt&67108863,Lt/67108864&67108863,1],this.length=3),Wt==="le"&&this._initArray(this.toArray(),Ht,Wt)},At.prototype._initArray=function(Lt,Ht,Wt){if(Ct(typeof Lt.length=="number"),Lt.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(Lt.length/3),this.words=new Array(this.length);for(var Gt=0;Gt<this.length;Gt++)this.words[Gt]=0;var Yt,er,lr=0;if(Wt==="be")for(Gt=Lt.length-1,Yt=0;Gt>=0;Gt-=3)er=Lt[Gt]|Lt[Gt-1]<<8|Lt[Gt-2]<<16,this.words[Yt]|=er<<lr&67108863,this.words[Yt+1]=er>>>26-lr&67108863,lr+=24,lr>=26&&(lr-=26,Yt++);else if(Wt==="le")for(Gt=0,Yt=0;Gt<Lt.length;Gt+=3)er=Lt[Gt]|Lt[Gt+1]<<8|Lt[Gt+2]<<16,this.words[Yt]|=er<<lr&67108863,this.words[Yt+1]=er>>>26-lr&67108863,lr+=24,lr>=26&&(lr-=26,Yt++);return this.strip()};function Dt(rr,Lt){var Ht=rr.charCodeAt(Lt);return Ht>=65&&Ht<=70?Ht-55:Ht>=97&&Ht<=102?Ht-87:Ht-48&15}function Ft(rr,Lt,Ht){var Wt=Dt(rr,Ht);return Ht-1>=Lt&&(Wt|=Dt(rr,Ht-1)<<4),Wt}At.prototype._parseHex=function(Lt,Ht,Wt){this.length=Math.ceil((Lt.length-Ht)/6),this.words=new Array(this.length);for(var Gt=0;Gt<this.length;Gt++)this.words[Gt]=0;var Yt=0,er=0,lr;if(Wt==="be")for(Gt=Lt.length-1;Gt>=Ht;Gt-=2)lr=Ft(Lt,Ht,Gt)<<Yt,this.words[er]|=lr&67108863,Yt>=18?(Yt-=18,er+=1,this.words[er]|=lr>>>26):Yt+=8;else{var Jt=Lt.length-Ht;for(Gt=Jt%2===0?Ht+1:Ht;Gt<Lt.length;Gt+=2)lr=Ft(Lt,Ht,Gt)<<Yt,this.words[er]|=lr&67108863,Yt>=18?(Yt-=18,er+=1,this.words[er]|=lr>>>26):Yt+=8}this.strip()};function kt(rr,Lt,Ht,Wt){for(var Gt=0,Yt=Math.min(rr.length,Ht),er=Lt;er<Yt;er++){var lr=rr.charCodeAt(er)-48;Gt*=Wt,lr>=49?Gt+=lr-49+10:lr>=17?Gt+=lr-17+10:Gt+=lr}return Gt}At.prototype._parseBase=function(Lt,Ht,Wt){this.words=[0],this.length=1;for(var Gt=0,Yt=1;Yt<=67108863;Yt*=Ht)Gt++;Gt--,Yt=Yt/Ht|0;for(var er=Lt.length-Wt,lr=er%Gt,Jt=Math.min(er,er-lr)+Wt,Ut=0,ir=Wt;ir<Jt;ir+=Gt)Ut=kt(Lt,ir,ir+Gt,Ht),this.imuln(Yt),this.words[0]+Ut<67108864?this.words[0]+=Ut:this._iaddn(Ut);if(lr!==0){var Cr=1;for(Ut=kt(Lt,ir,Lt.length,Ht),ir=0;ir<lr;ir++)Cr*=Ht;this.imuln(Cr),this.words[0]+Ut<67108864?this.words[0]+=Ut:this._iaddn(Ut)}this.strip()},At.prototype.copy=function(Lt){Lt.words=new Array(this.length);for(var Ht=0;Ht<this.length;Ht++)Lt.words[Ht]=this.words[Ht];Lt.length=this.length,Lt.negative=this.negative,Lt.red=this.red},At.prototype.clone=function(){var Lt=new At(null);return this.copy(Lt),Lt},At.prototype._expand=function(Lt){for(;this.length<Lt;)this.words[this.length++]=0;return this},At.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},At.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},At.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var Mt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],Nt=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],jt=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];At.prototype.toString=function(Lt,Ht){Lt=Lt||10,Ht=Ht|0||1;var Wt;if(Lt===16||Lt==="hex"){Wt="";for(var Gt=0,Yt=0,er=0;er<this.length;er++){var lr=this.words[er],Jt=((lr<<Gt|Yt)&16777215).toString(16);Yt=lr>>>24-Gt&16777215,Yt!==0||er!==this.length-1?Wt=Mt[6-Jt.length]+Jt+Wt:Wt=Jt+Wt,Gt+=2,Gt>=26&&(Gt-=26,er--)}for(Yt!==0&&(Wt=Yt.toString(16)+Wt);Wt.length%Ht!==0;)Wt="0"+Wt;return this.negative!==0&&(Wt="-"+Wt),Wt}if(Lt===(Lt|0)&&Lt>=2&&Lt<=36){var Ut=Nt[Lt],ir=jt[Lt];Wt="";var Cr=this.clone();for(Cr.negative=0;!Cr.isZero();){var _r=Cr.modn(ir).toString(Lt);Cr=Cr.idivn(ir),Cr.isZero()?Wt=_r+Wt:Wt=Mt[Ut-_r.length]+_r+Wt}for(this.isZero()&&(Wt="0"+Wt);Wt.length%Ht!==0;)Wt="0"+Wt;return this.negative!==0&&(Wt="-"+Wt),Wt}Ct(!1,"Base should be between 2 and 36")},At.prototype.toNumber=function(){var Lt=this.words[0];return this.length===2?Lt+=this.words[1]*67108864:this.length===3&&this.words[2]===1?Lt+=4503599627370496+this.words[1]*67108864:this.length>2&&Ct(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-Lt:Lt},At.prototype.toJSON=function(){return this.toString(16)},At.prototype.toBuffer=function(Lt,Ht){return Ct(typeof Bt<"u"),this.toArrayLike(Bt,Lt,Ht)},At.prototype.toArray=function(Lt,Ht){return this.toArrayLike(Array,Lt,Ht)},At.prototype.toArrayLike=function(Lt,Ht,Wt){var Gt=this.byteLength(),Yt=Wt||Math.max(1,Gt);Ct(Gt<=Yt,"byte array longer than desired length"),Ct(Yt>0,"Requested array length <= 0"),this.strip();var er=Ht==="le",lr=new Lt(Yt),Jt,Ut,ir=this.clone();if(er){for(Ut=0;!ir.isZero();Ut++)Jt=ir.andln(255),ir.iushrn(8),lr[Ut]=Jt;for(;Ut<Yt;Ut++)lr[Ut]=0}else{for(Ut=0;Ut<Yt-Gt;Ut++)lr[Ut]=0;for(Ut=0;!ir.isZero();Ut++)Jt=ir.andln(255),ir.iushrn(8),lr[Yt-Ut-1]=Jt}return lr},Math.clz32?At.prototype._countBits=function(Lt){return 32-Math.clz32(Lt)}:At.prototype._countBits=function(Lt){var Ht=Lt,Wt=0;return Ht>=4096&&(Wt+=13,Ht>>>=13),Ht>=64&&(Wt+=7,Ht>>>=7),Ht>=8&&(Wt+=4,Ht>>>=4),Ht>=2&&(Wt+=2,Ht>>>=2),Wt+Ht},At.prototype._zeroBits=function(Lt){if(Lt===0)return 26;var Ht=Lt,Wt=0;return Ht&8191||(Wt+=13,Ht>>>=13),Ht&127||(Wt+=7,Ht>>>=7),Ht&15||(Wt+=4,Ht>>>=4),Ht&3||(Wt+=2,Ht>>>=2),Ht&1||Wt++,Wt},At.prototype.bitLength=function(){var Lt=this.words[this.length-1],Ht=this._countBits(Lt);return(this.length-1)*26+Ht};function zt(rr){for(var Lt=new Array(rr.bitLength()),Ht=0;Ht<Lt.length;Ht++){var Wt=Ht/26|0,Gt=Ht%26;Lt[Ht]=(rr.words[Wt]&1<<Gt)>>>Gt}return Lt}At.prototype.zeroBits=function(){if(this.isZero())return 0;for(var Lt=0,Ht=0;Ht<this.length;Ht++){var Wt=this._zeroBits(this.words[Ht]);if(Lt+=Wt,Wt!==26)break}return Lt},At.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},At.prototype.toTwos=function(Lt){return this.negative!==0?this.abs().inotn(Lt).iaddn(1):this.clone()},At.prototype.fromTwos=function(Lt){return this.testn(Lt-1)?this.notn(Lt).iaddn(1).ineg():this.clone()},At.prototype.isNeg=function(){return this.negative!==0},At.prototype.neg=function(){return this.clone().ineg()},At.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},At.prototype.iuor=function(Lt){for(;this.length<Lt.length;)this.words[this.length++]=0;for(var Ht=0;Ht<Lt.length;Ht++)this.words[Ht]=this.words[Ht]|Lt.words[Ht];return this.strip()},At.prototype.ior=function(Lt){return Ct((this.negative|Lt.negative)===0),this.iuor(Lt)},At.prototype.or=function(Lt){return this.length>Lt.length?this.clone().ior(Lt):Lt.clone().ior(this)},At.prototype.uor=function(Lt){return this.length>Lt.length?this.clone().iuor(Lt):Lt.clone().iuor(this)},At.prototype.iuand=function(Lt){var Ht;this.length>Lt.length?Ht=Lt:Ht=this;for(var Wt=0;Wt<Ht.length;Wt++)this.words[Wt]=this.words[Wt]&Lt.words[Wt];return this.length=Ht.length,this.strip()},At.prototype.iand=function(Lt){return Ct((this.negative|Lt.negative)===0),this.iuand(Lt)},At.prototype.and=function(Lt){return this.length>Lt.length?this.clone().iand(Lt):Lt.clone().iand(this)},At.prototype.uand=function(Lt){return this.length>Lt.length?this.clone().iuand(Lt):Lt.clone().iuand(this)},At.prototype.iuxor=function(Lt){var Ht,Wt;this.length>Lt.length?(Ht=this,Wt=Lt):(Ht=Lt,Wt=this);for(var Gt=0;Gt<Wt.length;Gt++)this.words[Gt]=Ht.words[Gt]^Wt.words[Gt];if(this!==Ht)for(;Gt<Ht.length;Gt++)this.words[Gt]=Ht.words[Gt];return this.length=Ht.length,this.strip()},At.prototype.ixor=function(Lt){return Ct((this.negative|Lt.negative)===0),this.iuxor(Lt)},At.prototype.xor=function(Lt){return this.length>Lt.length?this.clone().ixor(Lt):Lt.clone().ixor(this)},At.prototype.uxor=function(Lt){return this.length>Lt.length?this.clone().iuxor(Lt):Lt.clone().iuxor(this)},At.prototype.inotn=function(Lt){Ct(typeof Lt=="number"&&Lt>=0);var Ht=Math.ceil(Lt/26)|0,Wt=Lt%26;this._expand(Ht),Wt>0&&Ht--;for(var Gt=0;Gt<Ht;Gt++)this.words[Gt]=~this.words[Gt]&67108863;return Wt>0&&(this.words[Gt]=~this.words[Gt]&67108863>>26-Wt),this.strip()},At.prototype.notn=function(Lt){return this.clone().inotn(Lt)},At.prototype.setn=function(Lt,Ht){Ct(typeof Lt=="number"&&Lt>=0);var Wt=Lt/26|0,Gt=Lt%26;return this._expand(Wt+1),Ht?this.words[Wt]=this.words[Wt]|1<<Gt:this.words[Wt]=this.words[Wt]&~(1<<Gt),this.strip()},At.prototype.iadd=function(Lt){var Ht;if(this.negative!==0&&Lt.negative===0)return this.negative=0,Ht=this.isub(Lt),this.negative^=1,this._normSign();if(this.negative===0&&Lt.negative!==0)return Lt.negative=0,Ht=this.isub(Lt),Lt.negative=1,Ht._normSign();var Wt,Gt;this.length>Lt.length?(Wt=this,Gt=Lt):(Wt=Lt,Gt=this);for(var Yt=0,er=0;er<Gt.length;er++)Ht=(Wt.words[er]|0)+(Gt.words[er]|0)+Yt,this.words[er]=Ht&67108863,Yt=Ht>>>26;for(;Yt!==0&&er<Wt.length;er++)Ht=(Wt.words[er]|0)+Yt,this.words[er]=Ht&67108863,Yt=Ht>>>26;if(this.length=Wt.length,Yt!==0)this.words[this.length]=Yt,this.length++;else if(Wt!==this)for(;er<Wt.length;er++)this.words[er]=Wt.words[er];return this},At.prototype.add=function(Lt){var Ht;return Lt.negative!==0&&this.negative===0?(Lt.negative=0,Ht=this.sub(Lt),Lt.negative^=1,Ht):Lt.negative===0&&this.negative!==0?(this.negative=0,Ht=Lt.sub(this),this.negative=1,Ht):this.length>Lt.length?this.clone().iadd(Lt):Lt.clone().iadd(this)},At.prototype.isub=function(Lt){if(Lt.negative!==0){Lt.negative=0;var Ht=this.iadd(Lt);return Lt.negative=1,Ht._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(Lt),this.negative=1,this._normSign();var Wt=this.cmp(Lt);if(Wt===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Gt,Yt;Wt>0?(Gt=this,Yt=Lt):(Gt=Lt,Yt=this);for(var er=0,lr=0;lr<Yt.length;lr++)Ht=(Gt.words[lr]|0)-(Yt.words[lr]|0)+er,er=Ht>>26,this.words[lr]=Ht&67108863;for(;er!==0&&lr<Gt.length;lr++)Ht=(Gt.words[lr]|0)+er,er=Ht>>26,this.words[lr]=Ht&67108863;if(er===0&&lr<Gt.length&&Gt!==this)for(;lr<Gt.length;lr++)this.words[lr]=Gt.words[lr];return this.length=Math.max(this.length,lr),Gt!==this&&(this.negative=1),this.strip()},At.prototype.sub=function(Lt){return this.clone().isub(Lt)};function Vt(rr,Lt,Ht){Ht.negative=Lt.negative^rr.negative;var Wt=rr.length+Lt.length|0;Ht.length=Wt,Wt=Wt-1|0;var Gt=rr.words[0]|0,Yt=Lt.words[0]|0,er=Gt*Yt,lr=er&67108863,Jt=er/67108864|0;Ht.words[0]=lr;for(var Ut=1;Ut<Wt;Ut++){for(var ir=Jt>>>26,Cr=Jt&67108863,_r=Math.min(Ut,Lt.length-1),$r=Math.max(0,Ut-rr.length+1);$r<=_r;$r++){var Tr=Ut-$r|0;Gt=rr.words[Tr]|0,Yt=Lt.words[$r]|0,er=Gt*Yt+Cr,ir+=er/67108864|0,Cr=er&67108863}Ht.words[Ut]=Cr|0,Jt=ir|0}return Jt!==0?Ht.words[Ut]=Jt|0:Ht.length--,Ht.strip()}var Kt=function(Lt,Ht,Wt){var Gt=Lt.words,Yt=Ht.words,er=Wt.words,lr=0,Jt,Ut,ir,Cr=Gt[0]|0,_r=Cr&8191,$r=Cr>>>13,Tr=Gt[1]|0,Dr=Tr&8191,Ar=Tr>>>13,Fr=Gt[2]|0,Rr=Fr&8191,wr=Fr>>>13,Sr=Gt[3]|0,Br=Sr&8191,Or=Sr>>>13,Pr=Gt[4]|0,Nr=Pr&8191,Lr=Pr>>>13,Wr=Gt[5]|0,Ur=Wr&8191,jr=Wr>>>13,Kr=Gt[6]|0,qr=Kr&8191,Zr=Kr>>>13,dn=Gt[7]|0,Xr=dn&8191,un=dn>>>13,Yr=Gt[8]|0,Gr=Yr&8191,Jr=Yr>>>13,wn=Gt[9]|0,kr=wn&8191,Mr=wn>>>13,Ir=Yt[0]|0,Hr=Ir&8191,Vr=Ir>>>13,on=Yt[1]|0,Qr=on&8191,hn=on>>>13,Wn=Yt[2]|0,_n=Wn&8191,An=Wn>>>13,Yn=Yt[3]|0,Tn=Yn&8191,Nn=Yn>>>13,Zn=Yt[4]|0,$n=Zn&8191,Fn=Zn>>>13,Gn=Yt[5]|0,gn=Gn&8191,Rn=Gn>>>13,nu=Yt[6]|0,pn=nu&8191,yn=nu>>>13,jn=Yt[7]|0,Cn=jn&8191,On=jn>>>13,au=Yt[8]|0,In=au&8191,Bn=au>>>13,Vn=Yt[9]|0,En=Vn&8191,Sn=Vn>>>13;Wt.negative=Lt.negative^Ht.negative,Wt.length=19,Jt=Math.imul(_r,Hr),Ut=Math.imul(_r,Vr),Ut=Ut+Math.imul($r,Hr)|0,ir=Math.imul($r,Vr);var Xn=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Xn>>>26)|0,Xn&=67108863,Jt=Math.imul(Dr,Hr),Ut=Math.imul(Dr,Vr),Ut=Ut+Math.imul(Ar,Hr)|0,ir=Math.imul(Ar,Vr),Jt=Jt+Math.imul(_r,Qr)|0,Ut=Ut+Math.imul(_r,hn)|0,Ut=Ut+Math.imul($r,Qr)|0,ir=ir+Math.imul($r,hn)|0;var uu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(uu>>>26)|0,uu&=67108863,Jt=Math.imul(Rr,Hr),Ut=Math.imul(Rr,Vr),Ut=Ut+Math.imul(wr,Hr)|0,ir=Math.imul(wr,Vr),Jt=Jt+Math.imul(Dr,Qr)|0,Ut=Ut+Math.imul(Dr,hn)|0,Ut=Ut+Math.imul(Ar,Qr)|0,ir=ir+Math.imul(Ar,hn)|0,Jt=Jt+Math.imul(_r,_n)|0,Ut=Ut+Math.imul(_r,An)|0,Ut=Ut+Math.imul($r,_n)|0,ir=ir+Math.imul($r,An)|0;var Eu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Eu>>>26)|0,Eu&=67108863,Jt=Math.imul(Br,Hr),Ut=Math.imul(Br,Vr),Ut=Ut+Math.imul(Or,Hr)|0,ir=Math.imul(Or,Vr),Jt=Jt+Math.imul(Rr,Qr)|0,Ut=Ut+Math.imul(Rr,hn)|0,Ut=Ut+Math.imul(wr,Qr)|0,ir=ir+Math.imul(wr,hn)|0,Jt=Jt+Math.imul(Dr,_n)|0,Ut=Ut+Math.imul(Dr,An)|0,Ut=Ut+Math.imul(Ar,_n)|0,ir=ir+Math.imul(Ar,An)|0,Jt=Jt+Math.imul(_r,Tn)|0,Ut=Ut+Math.imul(_r,Nn)|0,Ut=Ut+Math.imul($r,Tn)|0,ir=ir+Math.imul($r,Nn)|0;var pu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(pu>>>26)|0,pu&=67108863,Jt=Math.imul(Nr,Hr),Ut=Math.imul(Nr,Vr),Ut=Ut+Math.imul(Lr,Hr)|0,ir=Math.imul(Lr,Vr),Jt=Jt+Math.imul(Br,Qr)|0,Ut=Ut+Math.imul(Br,hn)|0,Ut=Ut+Math.imul(Or,Qr)|0,ir=ir+Math.imul(Or,hn)|0,Jt=Jt+Math.imul(Rr,_n)|0,Ut=Ut+Math.imul(Rr,An)|0,Ut=Ut+Math.imul(wr,_n)|0,ir=ir+Math.imul(wr,An)|0,Jt=Jt+Math.imul(Dr,Tn)|0,Ut=Ut+Math.imul(Dr,Nn)|0,Ut=Ut+Math.imul(Ar,Tn)|0,ir=ir+Math.imul(Ar,Nn)|0,Jt=Jt+Math.imul(_r,$n)|0,Ut=Ut+Math.imul(_r,Fn)|0,Ut=Ut+Math.imul($r,$n)|0,ir=ir+Math.imul($r,Fn)|0;var Qn=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Qn>>>26)|0,Qn&=67108863,Jt=Math.imul(Ur,Hr),Ut=Math.imul(Ur,Vr),Ut=Ut+Math.imul(jr,Hr)|0,ir=Math.imul(jr,Vr),Jt=Jt+Math.imul(Nr,Qr)|0,Ut=Ut+Math.imul(Nr,hn)|0,Ut=Ut+Math.imul(Lr,Qr)|0,ir=ir+Math.imul(Lr,hn)|0,Jt=Jt+Math.imul(Br,_n)|0,Ut=Ut+Math.imul(Br,An)|0,Ut=Ut+Math.imul(Or,_n)|0,ir=ir+Math.imul(Or,An)|0,Jt=Jt+Math.imul(Rr,Tn)|0,Ut=Ut+Math.imul(Rr,Nn)|0,Ut=Ut+Math.imul(wr,Tn)|0,ir=ir+Math.imul(wr,Nn)|0,Jt=Jt+Math.imul(Dr,$n)|0,Ut=Ut+Math.imul(Dr,Fn)|0,Ut=Ut+Math.imul(Ar,$n)|0,ir=ir+Math.imul(Ar,Fn)|0,Jt=Jt+Math.imul(_r,gn)|0,Ut=Ut+Math.imul(_r,Rn)|0,Ut=Ut+Math.imul($r,gn)|0,ir=ir+Math.imul($r,Rn)|0;var Jn=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Jn>>>26)|0,Jn&=67108863,Jt=Math.imul(qr,Hr),Ut=Math.imul(qr,Vr),Ut=Ut+Math.imul(Zr,Hr)|0,ir=Math.imul(Zr,Vr),Jt=Jt+Math.imul(Ur,Qr)|0,Ut=Ut+Math.imul(Ur,hn)|0,Ut=Ut+Math.imul(jr,Qr)|0,ir=ir+Math.imul(jr,hn)|0,Jt=Jt+Math.imul(Nr,_n)|0,Ut=Ut+Math.imul(Nr,An)|0,Ut=Ut+Math.imul(Lr,_n)|0,ir=ir+Math.imul(Lr,An)|0,Jt=Jt+Math.imul(Br,Tn)|0,Ut=Ut+Math.imul(Br,Nn)|0,Ut=Ut+Math.imul(Or,Tn)|0,ir=ir+Math.imul(Or,Nn)|0,Jt=Jt+Math.imul(Rr,$n)|0,Ut=Ut+Math.imul(Rr,Fn)|0,Ut=Ut+Math.imul(wr,$n)|0,ir=ir+Math.imul(wr,Fn)|0,Jt=Jt+Math.imul(Dr,gn)|0,Ut=Ut+Math.imul(Dr,Rn)|0,Ut=Ut+Math.imul(Ar,gn)|0,ir=ir+Math.imul(Ar,Rn)|0,Jt=Jt+Math.imul(_r,pn)|0,Ut=Ut+Math.imul(_r,yn)|0,Ut=Ut+Math.imul($r,pn)|0,ir=ir+Math.imul($r,yn)|0;var ou=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(ou>>>26)|0,ou&=67108863,Jt=Math.imul(Xr,Hr),Ut=Math.imul(Xr,Vr),Ut=Ut+Math.imul(un,Hr)|0,ir=Math.imul(un,Vr),Jt=Jt+Math.imul(qr,Qr)|0,Ut=Ut+Math.imul(qr,hn)|0,Ut=Ut+Math.imul(Zr,Qr)|0,ir=ir+Math.imul(Zr,hn)|0,Jt=Jt+Math.imul(Ur,_n)|0,Ut=Ut+Math.imul(Ur,An)|0,Ut=Ut+Math.imul(jr,_n)|0,ir=ir+Math.imul(jr,An)|0,Jt=Jt+Math.imul(Nr,Tn)|0,Ut=Ut+Math.imul(Nr,Nn)|0,Ut=Ut+Math.imul(Lr,Tn)|0,ir=ir+Math.imul(Lr,Nn)|0,Jt=Jt+Math.imul(Br,$n)|0,Ut=Ut+Math.imul(Br,Fn)|0,Ut=Ut+Math.imul(Or,$n)|0,ir=ir+Math.imul(Or,Fn)|0,Jt=Jt+Math.imul(Rr,gn)|0,Ut=Ut+Math.imul(Rr,Rn)|0,Ut=Ut+Math.imul(wr,gn)|0,ir=ir+Math.imul(wr,Rn)|0,Jt=Jt+Math.imul(Dr,pn)|0,Ut=Ut+Math.imul(Dr,yn)|0,Ut=Ut+Math.imul(Ar,pn)|0,ir=ir+Math.imul(Ar,yn)|0,Jt=Jt+Math.imul(_r,Cn)|0,Ut=Ut+Math.imul(_r,On)|0,Ut=Ut+Math.imul($r,Cn)|0,ir=ir+Math.imul($r,On)|0;var mu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(mu>>>26)|0,mu&=67108863,Jt=Math.imul(Gr,Hr),Ut=Math.imul(Gr,Vr),Ut=Ut+Math.imul(Jr,Hr)|0,ir=Math.imul(Jr,Vr),Jt=Jt+Math.imul(Xr,Qr)|0,Ut=Ut+Math.imul(Xr,hn)|0,Ut=Ut+Math.imul(un,Qr)|0,ir=ir+Math.imul(un,hn)|0,Jt=Jt+Math.imul(qr,_n)|0,Ut=Ut+Math.imul(qr,An)|0,Ut=Ut+Math.imul(Zr,_n)|0,ir=ir+Math.imul(Zr,An)|0,Jt=Jt+Math.imul(Ur,Tn)|0,Ut=Ut+Math.imul(Ur,Nn)|0,Ut=Ut+Math.imul(jr,Tn)|0,ir=ir+Math.imul(jr,Nn)|0,Jt=Jt+Math.imul(Nr,$n)|0,Ut=Ut+Math.imul(Nr,Fn)|0,Ut=Ut+Math.imul(Lr,$n)|0,ir=ir+Math.imul(Lr,Fn)|0,Jt=Jt+Math.imul(Br,gn)|0,Ut=Ut+Math.imul(Br,Rn)|0,Ut=Ut+Math.imul(Or,gn)|0,ir=ir+Math.imul(Or,Rn)|0,Jt=Jt+Math.imul(Rr,pn)|0,Ut=Ut+Math.imul(Rr,yn)|0,Ut=Ut+Math.imul(wr,pn)|0,ir=ir+Math.imul(wr,yn)|0,Jt=Jt+Math.imul(Dr,Cn)|0,Ut=Ut+Math.imul(Dr,On)|0,Ut=Ut+Math.imul(Ar,Cn)|0,ir=ir+Math.imul(Ar,On)|0,Jt=Jt+Math.imul(_r,In)|0,Ut=Ut+Math.imul(_r,Bn)|0,Ut=Ut+Math.imul($r,In)|0,ir=ir+Math.imul($r,Bn)|0;var xu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(xu>>>26)|0,xu&=67108863,Jt=Math.imul(kr,Hr),Ut=Math.imul(kr,Vr),Ut=Ut+Math.imul(Mr,Hr)|0,ir=Math.imul(Mr,Vr),Jt=Jt+Math.imul(Gr,Qr)|0,Ut=Ut+Math.imul(Gr,hn)|0,Ut=Ut+Math.imul(Jr,Qr)|0,ir=ir+Math.imul(Jr,hn)|0,Jt=Jt+Math.imul(Xr,_n)|0,Ut=Ut+Math.imul(Xr,An)|0,Ut=Ut+Math.imul(un,_n)|0,ir=ir+Math.imul(un,An)|0,Jt=Jt+Math.imul(qr,Tn)|0,Ut=Ut+Math.imul(qr,Nn)|0,Ut=Ut+Math.imul(Zr,Tn)|0,ir=ir+Math.imul(Zr,Nn)|0,Jt=Jt+Math.imul(Ur,$n)|0,Ut=Ut+Math.imul(Ur,Fn)|0,Ut=Ut+Math.imul(jr,$n)|0,ir=ir+Math.imul(jr,Fn)|0,Jt=Jt+Math.imul(Nr,gn)|0,Ut=Ut+Math.imul(Nr,Rn)|0,Ut=Ut+Math.imul(Lr,gn)|0,ir=ir+Math.imul(Lr,Rn)|0,Jt=Jt+Math.imul(Br,pn)|0,Ut=Ut+Math.imul(Br,yn)|0,Ut=Ut+Math.imul(Or,pn)|0,ir=ir+Math.imul(Or,yn)|0,Jt=Jt+Math.imul(Rr,Cn)|0,Ut=Ut+Math.imul(Rr,On)|0,Ut=Ut+Math.imul(wr,Cn)|0,ir=ir+Math.imul(wr,On)|0,Jt=Jt+Math.imul(Dr,In)|0,Ut=Ut+Math.imul(Dr,Bn)|0,Ut=Ut+Math.imul(Ar,In)|0,ir=ir+Math.imul(Ar,Bn)|0,Jt=Jt+Math.imul(_r,En)|0,Ut=Ut+Math.imul(_r,Sn)|0,Ut=Ut+Math.imul($r,En)|0,ir=ir+Math.imul($r,Sn)|0;var _u=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(_u>>>26)|0,_u&=67108863,Jt=Math.imul(kr,Qr),Ut=Math.imul(kr,hn),Ut=Ut+Math.imul(Mr,Qr)|0,ir=Math.imul(Mr,hn),Jt=Jt+Math.imul(Gr,_n)|0,Ut=Ut+Math.imul(Gr,An)|0,Ut=Ut+Math.imul(Jr,_n)|0,ir=ir+Math.imul(Jr,An)|0,Jt=Jt+Math.imul(Xr,Tn)|0,Ut=Ut+Math.imul(Xr,Nn)|0,Ut=Ut+Math.imul(un,Tn)|0,ir=ir+Math.imul(un,Nn)|0,Jt=Jt+Math.imul(qr,$n)|0,Ut=Ut+Math.imul(qr,Fn)|0,Ut=Ut+Math.imul(Zr,$n)|0,ir=ir+Math.imul(Zr,Fn)|0,Jt=Jt+Math.imul(Ur,gn)|0,Ut=Ut+Math.imul(Ur,Rn)|0,Ut=Ut+Math.imul(jr,gn)|0,ir=ir+Math.imul(jr,Rn)|0,Jt=Jt+Math.imul(Nr,pn)|0,Ut=Ut+Math.imul(Nr,yn)|0,Ut=Ut+Math.imul(Lr,pn)|0,ir=ir+Math.imul(Lr,yn)|0,Jt=Jt+Math.imul(Br,Cn)|0,Ut=Ut+Math.imul(Br,On)|0,Ut=Ut+Math.imul(Or,Cn)|0,ir=ir+Math.imul(Or,On)|0,Jt=Jt+Math.imul(Rr,In)|0,Ut=Ut+Math.imul(Rr,Bn)|0,Ut=Ut+Math.imul(wr,In)|0,ir=ir+Math.imul(wr,Bn)|0,Jt=Jt+Math.imul(Dr,En)|0,Ut=Ut+Math.imul(Dr,Sn)|0,Ut=Ut+Math.imul(Ar,En)|0,ir=ir+Math.imul(Ar,Sn)|0;var $u=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+($u>>>26)|0,$u&=67108863,Jt=Math.imul(kr,_n),Ut=Math.imul(kr,An),Ut=Ut+Math.imul(Mr,_n)|0,ir=Math.imul(Mr,An),Jt=Jt+Math.imul(Gr,Tn)|0,Ut=Ut+Math.imul(Gr,Nn)|0,Ut=Ut+Math.imul(Jr,Tn)|0,ir=ir+Math.imul(Jr,Nn)|0,Jt=Jt+Math.imul(Xr,$n)|0,Ut=Ut+Math.imul(Xr,Fn)|0,Ut=Ut+Math.imul(un,$n)|0,ir=ir+Math.imul(un,Fn)|0,Jt=Jt+Math.imul(qr,gn)|0,Ut=Ut+Math.imul(qr,Rn)|0,Ut=Ut+Math.imul(Zr,gn)|0,ir=ir+Math.imul(Zr,Rn)|0,Jt=Jt+Math.imul(Ur,pn)|0,Ut=Ut+Math.imul(Ur,yn)|0,Ut=Ut+Math.imul(jr,pn)|0,ir=ir+Math.imul(jr,yn)|0,Jt=Jt+Math.imul(Nr,Cn)|0,Ut=Ut+Math.imul(Nr,On)|0,Ut=Ut+Math.imul(Lr,Cn)|0,ir=ir+Math.imul(Lr,On)|0,Jt=Jt+Math.imul(Br,In)|0,Ut=Ut+Math.imul(Br,Bn)|0,Ut=Ut+Math.imul(Or,In)|0,ir=ir+Math.imul(Or,Bn)|0,Jt=Jt+Math.imul(Rr,En)|0,Ut=Ut+Math.imul(Rr,Sn)|0,Ut=Ut+Math.imul(wr,En)|0,ir=ir+Math.imul(wr,Sn)|0;var Au=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Au>>>26)|0,Au&=67108863,Jt=Math.imul(kr,Tn),Ut=Math.imul(kr,Nn),Ut=Ut+Math.imul(Mr,Tn)|0,ir=Math.imul(Mr,Nn),Jt=Jt+Math.imul(Gr,$n)|0,Ut=Ut+Math.imul(Gr,Fn)|0,Ut=Ut+Math.imul(Jr,$n)|0,ir=ir+Math.imul(Jr,Fn)|0,Jt=Jt+Math.imul(Xr,gn)|0,Ut=Ut+Math.imul(Xr,Rn)|0,Ut=Ut+Math.imul(un,gn)|0,ir=ir+Math.imul(un,Rn)|0,Jt=Jt+Math.imul(qr,pn)|0,Ut=Ut+Math.imul(qr,yn)|0,Ut=Ut+Math.imul(Zr,pn)|0,ir=ir+Math.imul(Zr,yn)|0,Jt=Jt+Math.imul(Ur,Cn)|0,Ut=Ut+Math.imul(Ur,On)|0,Ut=Ut+Math.imul(jr,Cn)|0,ir=ir+Math.imul(jr,On)|0,Jt=Jt+Math.imul(Nr,In)|0,Ut=Ut+Math.imul(Nr,Bn)|0,Ut=Ut+Math.imul(Lr,In)|0,ir=ir+Math.imul(Lr,Bn)|0,Jt=Jt+Math.imul(Br,En)|0,Ut=Ut+Math.imul(Br,Sn)|0,Ut=Ut+Math.imul(Or,En)|0,ir=ir+Math.imul(Or,Sn)|0;var Bu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Bu>>>26)|0,Bu&=67108863,Jt=Math.imul(kr,$n),Ut=Math.imul(kr,Fn),Ut=Ut+Math.imul(Mr,$n)|0,ir=Math.imul(Mr,Fn),Jt=Jt+Math.imul(Gr,gn)|0,Ut=Ut+Math.imul(Gr,Rn)|0,Ut=Ut+Math.imul(Jr,gn)|0,ir=ir+Math.imul(Jr,Rn)|0,Jt=Jt+Math.imul(Xr,pn)|0,Ut=Ut+Math.imul(Xr,yn)|0,Ut=Ut+Math.imul(un,pn)|0,ir=ir+Math.imul(un,yn)|0,Jt=Jt+Math.imul(qr,Cn)|0,Ut=Ut+Math.imul(qr,On)|0,Ut=Ut+Math.imul(Zr,Cn)|0,ir=ir+Math.imul(Zr,On)|0,Jt=Jt+Math.imul(Ur,In)|0,Ut=Ut+Math.imul(Ur,Bn)|0,Ut=Ut+Math.imul(jr,In)|0,ir=ir+Math.imul(jr,Bn)|0,Jt=Jt+Math.imul(Nr,En)|0,Ut=Ut+Math.imul(Nr,Sn)|0,Ut=Ut+Math.imul(Lr,En)|0,ir=ir+Math.imul(Lr,Sn)|0;var Su=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Su>>>26)|0,Su&=67108863,Jt=Math.imul(kr,gn),Ut=Math.imul(kr,Rn),Ut=Ut+Math.imul(Mr,gn)|0,ir=Math.imul(Mr,Rn),Jt=Jt+Math.imul(Gr,pn)|0,Ut=Ut+Math.imul(Gr,yn)|0,Ut=Ut+Math.imul(Jr,pn)|0,ir=ir+Math.imul(Jr,yn)|0,Jt=Jt+Math.imul(Xr,Cn)|0,Ut=Ut+Math.imul(Xr,On)|0,Ut=Ut+Math.imul(un,Cn)|0,ir=ir+Math.imul(un,On)|0,Jt=Jt+Math.imul(qr,In)|0,Ut=Ut+Math.imul(qr,Bn)|0,Ut=Ut+Math.imul(Zr,In)|0,ir=ir+Math.imul(Zr,Bn)|0,Jt=Jt+Math.imul(Ur,En)|0,Ut=Ut+Math.imul(Ur,Sn)|0,Ut=Ut+Math.imul(jr,En)|0,ir=ir+Math.imul(jr,Sn)|0;var Ru=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Ru>>>26)|0,Ru&=67108863,Jt=Math.imul(kr,pn),Ut=Math.imul(kr,yn),Ut=Ut+Math.imul(Mr,pn)|0,ir=Math.imul(Mr,yn),Jt=Jt+Math.imul(Gr,Cn)|0,Ut=Ut+Math.imul(Gr,On)|0,Ut=Ut+Math.imul(Jr,Cn)|0,ir=ir+Math.imul(Jr,On)|0,Jt=Jt+Math.imul(Xr,In)|0,Ut=Ut+Math.imul(Xr,Bn)|0,Ut=Ut+Math.imul(un,In)|0,ir=ir+Math.imul(un,Bn)|0,Jt=Jt+Math.imul(qr,En)|0,Ut=Ut+Math.imul(qr,Sn)|0,Ut=Ut+Math.imul(Zr,En)|0,ir=ir+Math.imul(Zr,Sn)|0;var lu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(lu>>>26)|0,lu&=67108863,Jt=Math.imul(kr,Cn),Ut=Math.imul(kr,On),Ut=Ut+Math.imul(Mr,Cn)|0,ir=Math.imul(Mr,On),Jt=Jt+Math.imul(Gr,In)|0,Ut=Ut+Math.imul(Gr,Bn)|0,Ut=Ut+Math.imul(Jr,In)|0,ir=ir+Math.imul(Jr,Bn)|0,Jt=Jt+Math.imul(Xr,En)|0,Ut=Ut+Math.imul(Xr,Sn)|0,Ut=Ut+Math.imul(un,En)|0,ir=ir+Math.imul(un,Sn)|0;var du=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(du>>>26)|0,du&=67108863,Jt=Math.imul(kr,In),Ut=Math.imul(kr,Bn),Ut=Ut+Math.imul(Mr,In)|0,ir=Math.imul(Mr,Bn),Jt=Jt+Math.imul(Gr,En)|0,Ut=Ut+Math.imul(Gr,Sn)|0,Ut=Ut+Math.imul(Jr,En)|0,ir=ir+Math.imul(Jr,Sn)|0;var fu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(fu>>>26)|0,fu&=67108863,Jt=Math.imul(kr,En),Ut=Math.imul(kr,Sn),Ut=Ut+Math.imul(Mr,En)|0,ir=Math.imul(Mr,Sn);var Tu=(lr+Jt|0)+((Ut&8191)<<13)|0;return lr=(ir+(Ut>>>13)|0)+(Tu>>>26)|0,Tu&=67108863,er[0]=Xn,er[1]=uu,er[2]=Eu,er[3]=pu,er[4]=Qn,er[5]=Jn,er[6]=ou,er[7]=mu,er[8]=xu,er[9]=_u,er[10]=$u,er[11]=Au,er[12]=Bu,er[13]=Su,er[14]=Ru,er[15]=lu,er[16]=du,er[17]=fu,er[18]=Tu,lr!==0&&(er[19]=lr,Wt.length++),Wt};Math.imul||(Kt=Vt);function Xt(rr,Lt,Ht){Ht.negative=Lt.negative^rr.negative,Ht.length=rr.length+Lt.length;for(var Wt=0,Gt=0,Yt=0;Yt<Ht.length-1;Yt++){var er=Gt;Gt=0;for(var lr=Wt&67108863,Jt=Math.min(Yt,Lt.length-1),Ut=Math.max(0,Yt-rr.length+1);Ut<=Jt;Ut++){var ir=Yt-Ut,Cr=rr.words[ir]|0,_r=Lt.words[Ut]|0,$r=Cr*_r,Tr=$r&67108863;er=er+($r/67108864|0)|0,Tr=Tr+lr|0,lr=Tr&67108863,er=er+(Tr>>>26)|0,Gt+=er>>>26,er&=67108863}Ht.words[Yt]=lr,Wt=er,er=Gt}return Wt!==0?Ht.words[Yt]=Wt:Ht.length--,Ht.strip()}function Qt(rr,Lt,Ht){var Wt=new Zt;return Wt.mulp(rr,Lt,Ht)}At.prototype.mulTo=function(Lt,Ht){var Wt,Gt=this.length+Lt.length;return this.length===10&&Lt.length===10?Wt=Kt(this,Lt,Ht):Gt<63?Wt=Vt(this,Lt,Ht):Gt<1024?Wt=Xt(this,Lt,Ht):Wt=Qt(this,Lt,Ht),Wt};function Zt(rr,Lt){this.x=rr,this.y=Lt}Zt.prototype.makeRBT=function(Lt){for(var Ht=new Array(Lt),Wt=At.prototype._countBits(Lt)-1,Gt=0;Gt<Lt;Gt++)Ht[Gt]=this.revBin(Gt,Wt,Lt);return Ht},Zt.prototype.revBin=function(Lt,Ht,Wt){if(Lt===0||Lt===Wt-1)return Lt;for(var Gt=0,Yt=0;Yt<Ht;Yt++)Gt|=(Lt&1)<<Ht-Yt-1,Lt>>=1;return Gt},Zt.prototype.permute=function(Lt,Ht,Wt,Gt,Yt,er){for(var lr=0;lr<er;lr++)Gt[lr]=Ht[Lt[lr]],Yt[lr]=Wt[Lt[lr]]},Zt.prototype.transform=function(Lt,Ht,Wt,Gt,Yt,er){this.permute(er,Lt,Ht,Wt,Gt,Yt);for(var lr=1;lr<Yt;lr<<=1)for(var Jt=lr<<1,Ut=Math.cos(2*Math.PI/Jt),ir=Math.sin(2*Math.PI/Jt),Cr=0;Cr<Yt;Cr+=Jt)for(var _r=Ut,$r=ir,Tr=0;Tr<lr;Tr++){var Dr=Wt[Cr+Tr],Ar=Gt[Cr+Tr],Fr=Wt[Cr+Tr+lr],Rr=Gt[Cr+Tr+lr],wr=_r*Fr-$r*Rr;Rr=_r*Rr+$r*Fr,Fr=wr,Wt[Cr+Tr]=Dr+Fr,Gt[Cr+Tr]=Ar+Rr,Wt[Cr+Tr+lr]=Dr-Fr,Gt[Cr+Tr+lr]=Ar-Rr,Tr!==Jt&&(wr=Ut*_r-ir*$r,$r=Ut*$r+ir*_r,_r=wr)}},Zt.prototype.guessLen13b=function(Lt,Ht){var Wt=Math.max(Ht,Lt)|1,Gt=Wt&1,Yt=0;for(Wt=Wt/2|0;Wt;Wt=Wt>>>1)Yt++;return 1<<Yt+1+Gt},Zt.prototype.conjugate=function(Lt,Ht,Wt){if(!(Wt<=1))for(var Gt=0;Gt<Wt/2;Gt++){var Yt=Lt[Gt];Lt[Gt]=Lt[Wt-Gt-1],Lt[Wt-Gt-1]=Yt,Yt=Ht[Gt],Ht[Gt]=-Ht[Wt-Gt-1],Ht[Wt-Gt-1]=-Yt}},Zt.prototype.normalize13b=function(Lt,Ht){for(var Wt=0,Gt=0;Gt<Ht/2;Gt++){var Yt=Math.round(Lt[2*Gt+1]/Ht)*8192+Math.round(Lt[2*Gt]/Ht)+Wt;Lt[Gt]=Yt&67108863,Yt<67108864?Wt=0:Wt=Yt/67108864|0}return Lt},Zt.prototype.convert13b=function(Lt,Ht,Wt,Gt){for(var Yt=0,er=0;er<Ht;er++)Yt=Yt+(Lt[er]|0),Wt[2*er]=Yt&8191,Yt=Yt>>>13,Wt[2*er+1]=Yt&8191,Yt=Yt>>>13;for(er=2*Ht;er<Gt;++er)Wt[er]=0;Ct(Yt===0),Ct((Yt&-8192)===0)},Zt.prototype.stub=function(Lt){for(var Ht=new Array(Lt),Wt=0;Wt<Lt;Wt++)Ht[Wt]=0;return Ht},Zt.prototype.mulp=function(Lt,Ht,Wt){var Gt=2*this.guessLen13b(Lt.length,Ht.length),Yt=this.makeRBT(Gt),er=this.stub(Gt),lr=new Array(Gt),Jt=new Array(Gt),Ut=new Array(Gt),ir=new Array(Gt),Cr=new Array(Gt),_r=new Array(Gt),$r=Wt.words;$r.length=Gt,this.convert13b(Lt.words,Lt.length,lr,Gt),this.convert13b(Ht.words,Ht.length,ir,Gt),this.transform(lr,er,Jt,Ut,Gt,Yt),this.transform(ir,er,Cr,_r,Gt,Yt);for(var Tr=0;Tr<Gt;Tr++){var Dr=Jt[Tr]*Cr[Tr]-Ut[Tr]*_r[Tr];Ut[Tr]=Jt[Tr]*_r[Tr]+Ut[Tr]*Cr[Tr],Jt[Tr]=Dr}return this.conjugate(Jt,Ut,Gt),this.transform(Jt,Ut,$r,er,Gt,Yt),this.conjugate($r,er,Gt),this.normalize13b($r,Gt),Wt.negative=Lt.negative^Ht.negative,Wt.length=Lt.length+Ht.length,Wt.strip()},At.prototype.mul=function(Lt){var Ht=new At(null);return Ht.words=new Array(this.length+Lt.length),this.mulTo(Lt,Ht)},At.prototype.mulf=function(Lt){var Ht=new At(null);return Ht.words=new Array(this.length+Lt.length),Qt(this,Lt,Ht)},At.prototype.imul=function(Lt){return this.clone().mulTo(Lt,this)},At.prototype.imuln=function(Lt){Ct(typeof Lt=="number"),Ct(Lt<67108864);for(var Ht=0,Wt=0;Wt<this.length;Wt++){var Gt=(this.words[Wt]|0)*Lt,Yt=(Gt&67108863)+(Ht&67108863);Ht>>=26,Ht+=Gt/67108864|0,Ht+=Yt>>>26,this.words[Wt]=Yt&67108863}return Ht!==0&&(this.words[Wt]=Ht,this.length++),this},At.prototype.muln=function(Lt){return this.clone().imuln(Lt)},At.prototype.sqr=function(){return this.mul(this)},At.prototype.isqr=function(){return this.imul(this.clone())},At.prototype.pow=function(Lt){var Ht=zt(Lt);if(Ht.length===0)return new At(1);for(var Wt=this,Gt=0;Gt<Ht.length&&Ht[Gt]===0;Gt++,Wt=Wt.sqr());if(++Gt<Ht.length)for(var Yt=Wt.sqr();Gt<Ht.length;Gt++,Yt=Yt.sqr())Ht[Gt]!==0&&(Wt=Wt.mul(Yt));return Wt},At.prototype.iushln=function(Lt){Ct(typeof Lt=="number"&&Lt>=0);var Ht=Lt%26,Wt=(Lt-Ht)/26,Gt=67108863>>>26-Ht<<26-Ht,Yt;if(Ht!==0){var er=0;for(Yt=0;Yt<this.length;Yt++){var lr=this.words[Yt]&Gt,Jt=(this.words[Yt]|0)-lr<<Ht;this.words[Yt]=Jt|er,er=lr>>>26-Ht}er&&(this.words[Yt]=er,this.length++)}if(Wt!==0){for(Yt=this.length-1;Yt>=0;Yt--)this.words[Yt+Wt]=this.words[Yt];for(Yt=0;Yt<Wt;Yt++)this.words[Yt]=0;this.length+=Wt}return this.strip()},At.prototype.ishln=function(Lt){return Ct(this.negative===0),this.iushln(Lt)},At.prototype.iushrn=function(Lt,Ht,Wt){Ct(typeof Lt=="number"&&Lt>=0);var Gt;Ht?Gt=(Ht-Ht%26)/26:Gt=0;var Yt=Lt%26,er=Math.min((Lt-Yt)/26,this.length),lr=67108863^67108863>>>Yt<<Yt,Jt=Wt;if(Gt-=er,Gt=Math.max(0,Gt),Jt){for(var Ut=0;Ut<er;Ut++)Jt.words[Ut]=this.words[Ut];Jt.length=er}if(er!==0)if(this.length>er)for(this.length-=er,Ut=0;Ut<this.length;Ut++)this.words[Ut]=this.words[Ut+er];else this.words[0]=0,this.length=1;var ir=0;for(Ut=this.length-1;Ut>=0&&(ir!==0||Ut>=Gt);Ut--){var Cr=this.words[Ut]|0;this.words[Ut]=ir<<26-Yt|Cr>>>Yt,ir=Cr&lr}return Jt&&ir!==0&&(Jt.words[Jt.length++]=ir),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},At.prototype.ishrn=function(Lt,Ht,Wt){return Ct(this.negative===0),this.iushrn(Lt,Ht,Wt)},At.prototype.shln=function(Lt){return this.clone().ishln(Lt)},At.prototype.ushln=function(Lt){return this.clone().iushln(Lt)},At.prototype.shrn=function(Lt){return this.clone().ishrn(Lt)},At.prototype.ushrn=function(Lt){return this.clone().iushrn(Lt)},At.prototype.testn=function(Lt){Ct(typeof Lt=="number"&&Lt>=0);var Ht=Lt%26,Wt=(Lt-Ht)/26,Gt=1<<Ht;if(this.length<=Wt)return!1;var Yt=this.words[Wt];return!!(Yt&Gt)},At.prototype.imaskn=function(Lt){Ct(typeof Lt=="number"&&Lt>=0);var Ht=Lt%26,Wt=(Lt-Ht)/26;if(Ct(this.negative===0,"imaskn works only with positive numbers"),this.length<=Wt)return this;if(Ht!==0&&Wt++,this.length=Math.min(Wt,this.length),Ht!==0){var Gt=67108863^67108863>>>Ht<<Ht;this.words[this.length-1]&=Gt}return this.strip()},At.prototype.maskn=function(Lt){return this.clone().imaskn(Lt)},At.prototype.iaddn=function(Lt){return Ct(typeof Lt=="number"),Ct(Lt<67108864),Lt<0?this.isubn(-Lt):this.negative!==0?this.length===1&&(this.words[0]|0)<Lt?(this.words[0]=Lt-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(Lt),this.negative=1,this):this._iaddn(Lt)},At.prototype._iaddn=function(Lt){this.words[0]+=Lt;for(var Ht=0;Ht<this.length&&this.words[Ht]>=67108864;Ht++)this.words[Ht]-=67108864,Ht===this.length-1?this.words[Ht+1]=1:this.words[Ht+1]++;return this.length=Math.max(this.length,Ht+1),this},At.prototype.isubn=function(Lt){if(Ct(typeof Lt=="number"),Ct(Lt<67108864),Lt<0)return this.iaddn(-Lt);if(this.negative!==0)return this.negative=0,this.iaddn(Lt),this.negative=1,this;if(this.words[0]-=Lt,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Ht=0;Ht<this.length&&this.words[Ht]<0;Ht++)this.words[Ht]+=67108864,this.words[Ht+1]-=1;return this.strip()},At.prototype.addn=function(Lt){return this.clone().iaddn(Lt)},At.prototype.subn=function(Lt){return this.clone().isubn(Lt)},At.prototype.iabs=function(){return this.negative=0,this},At.prototype.abs=function(){return this.clone().iabs()},At.prototype._ishlnsubmul=function(Lt,Ht,Wt){var Gt=Lt.length+Wt,Yt;this._expand(Gt);var er,lr=0;for(Yt=0;Yt<Lt.length;Yt++){er=(this.words[Yt+Wt]|0)+lr;var Jt=(Lt.words[Yt]|0)*Ht;er-=Jt&67108863,lr=(er>>26)-(Jt/67108864|0),this.words[Yt+Wt]=er&67108863}for(;Yt<this.length-Wt;Yt++)er=(this.words[Yt+Wt]|0)+lr,lr=er>>26,this.words[Yt+Wt]=er&67108863;if(lr===0)return this.strip();for(Ct(lr===-1),lr=0,Yt=0;Yt<this.length;Yt++)er=-(this.words[Yt]|0)+lr,lr=er>>26,this.words[Yt]=er&67108863;return this.negative=1,this.strip()},At.prototype._wordDiv=function(Lt,Ht){var Wt=this.length-Lt.length,Gt=this.clone(),Yt=Lt,er=Yt.words[Yt.length-1]|0,lr=this._countBits(er);Wt=26-lr,Wt!==0&&(Yt=Yt.ushln(Wt),Gt.iushln(Wt),er=Yt.words[Yt.length-1]|0);var Jt=Gt.length-Yt.length,Ut;if(Ht!=="mod"){Ut=new At(null),Ut.length=Jt+1,Ut.words=new Array(Ut.length);for(var ir=0;ir<Ut.length;ir++)Ut.words[ir]=0}var Cr=Gt.clone()._ishlnsubmul(Yt,1,Jt);Cr.negative===0&&(Gt=Cr,Ut&&(Ut.words[Jt]=1));for(var _r=Jt-1;_r>=0;_r--){var $r=(Gt.words[Yt.length+_r]|0)*67108864+(Gt.words[Yt.length+_r-1]|0);for($r=Math.min($r/er|0,67108863),Gt._ishlnsubmul(Yt,$r,_r);Gt.negative!==0;)$r--,Gt.negative=0,Gt._ishlnsubmul(Yt,1,_r),Gt.isZero()||(Gt.negative^=1);Ut&&(Ut.words[_r]=$r)}return Ut&&Ut.strip(),Gt.strip(),Ht!=="div"&&Wt!==0&&Gt.iushrn(Wt),{div:Ut||null,mod:Gt}},At.prototype.divmod=function(Lt,Ht,Wt){if(Ct(!Lt.isZero()),this.isZero())return{div:new At(0),mod:new At(0)};var Gt,Yt,er;return this.negative!==0&&Lt.negative===0?(er=this.neg().divmod(Lt,Ht),Ht!=="mod"&&(Gt=er.div.neg()),Ht!=="div"&&(Yt=er.mod.neg(),Wt&&Yt.negative!==0&&Yt.iadd(Lt)),{div:Gt,mod:Yt}):this.negative===0&&Lt.negative!==0?(er=this.divmod(Lt.neg(),Ht),Ht!=="mod"&&(Gt=er.div.neg()),{div:Gt,mod:er.mod}):this.negative&Lt.negative?(er=this.neg().divmod(Lt.neg(),Ht),Ht!=="div"&&(Yt=er.mod.neg(),Wt&&Yt.negative!==0&&Yt.isub(Lt)),{div:er.div,mod:Yt}):Lt.length>this.length||this.cmp(Lt)<0?{div:new At(0),mod:this}:Lt.length===1?Ht==="div"?{div:this.divn(Lt.words[0]),mod:null}:Ht==="mod"?{div:null,mod:new At(this.modn(Lt.words[0]))}:{div:this.divn(Lt.words[0]),mod:new At(this.modn(Lt.words[0]))}:this._wordDiv(Lt,Ht)},At.prototype.div=function(Lt){return this.divmod(Lt,"div",!1).div},At.prototype.mod=function(Lt){return this.divmod(Lt,"mod",!1).mod},At.prototype.umod=function(Lt){return this.divmod(Lt,"mod",!0).mod},At.prototype.divRound=function(Lt){var Ht=this.divmod(Lt);if(Ht.mod.isZero())return Ht.div;var Wt=Ht.div.negative!==0?Ht.mod.isub(Lt):Ht.mod,Gt=Lt.ushrn(1),Yt=Lt.andln(1),er=Wt.cmp(Gt);return er<0||Yt===1&&er===0?Ht.div:Ht.div.negative!==0?Ht.div.isubn(1):Ht.div.iaddn(1)},At.prototype.modn=function(Lt){Ct(Lt<=67108863);for(var Ht=(1<<26)%Lt,Wt=0,Gt=this.length-1;Gt>=0;Gt--)Wt=(Ht*Wt+(this.words[Gt]|0))%Lt;return Wt},At.prototype.idivn=function(Lt){Ct(Lt<=67108863);for(var Ht=0,Wt=this.length-1;Wt>=0;Wt--){var Gt=(this.words[Wt]|0)+Ht*67108864;this.words[Wt]=Gt/Lt|0,Ht=Gt%Lt}return this.strip()},At.prototype.divn=function(Lt){return this.clone().idivn(Lt)},At.prototype.egcd=function(Lt){Ct(Lt.negative===0),Ct(!Lt.isZero());var Ht=this,Wt=Lt.clone();Ht.negative!==0?Ht=Ht.umod(Lt):Ht=Ht.clone();for(var Gt=new At(1),Yt=new At(0),er=new At(0),lr=new At(1),Jt=0;Ht.isEven()&&Wt.isEven();)Ht.iushrn(1),Wt.iushrn(1),++Jt;for(var Ut=Wt.clone(),ir=Ht.clone();!Ht.isZero();){for(var Cr=0,_r=1;!(Ht.words[0]&_r)&&Cr<26;++Cr,_r<<=1);if(Cr>0)for(Ht.iushrn(Cr);Cr-- >0;)(Gt.isOdd()||Yt.isOdd())&&(Gt.iadd(Ut),Yt.isub(ir)),Gt.iushrn(1),Yt.iushrn(1);for(var $r=0,Tr=1;!(Wt.words[0]&Tr)&&$r<26;++$r,Tr<<=1);if($r>0)for(Wt.iushrn($r);$r-- >0;)(er.isOdd()||lr.isOdd())&&(er.iadd(Ut),lr.isub(ir)),er.iushrn(1),lr.iushrn(1);Ht.cmp(Wt)>=0?(Ht.isub(Wt),Gt.isub(er),Yt.isub(lr)):(Wt.isub(Ht),er.isub(Gt),lr.isub(Yt))}return{a:er,b:lr,gcd:Wt.iushln(Jt)}},At.prototype._invmp=function(Lt){Ct(Lt.negative===0),Ct(!Lt.isZero());var Ht=this,Wt=Lt.clone();Ht.negative!==0?Ht=Ht.umod(Lt):Ht=Ht.clone();for(var Gt=new At(1),Yt=new At(0),er=Wt.clone();Ht.cmpn(1)>0&&Wt.cmpn(1)>0;){for(var lr=0,Jt=1;!(Ht.words[0]&Jt)&&lr<26;++lr,Jt<<=1);if(lr>0)for(Ht.iushrn(lr);lr-- >0;)Gt.isOdd()&&Gt.iadd(er),Gt.iushrn(1);for(var Ut=0,ir=1;!(Wt.words[0]&ir)&&Ut<26;++Ut,ir<<=1);if(Ut>0)for(Wt.iushrn(Ut);Ut-- >0;)Yt.isOdd()&&Yt.iadd(er),Yt.iushrn(1);Ht.cmp(Wt)>=0?(Ht.isub(Wt),Gt.isub(Yt)):(Wt.isub(Ht),Yt.isub(Gt))}var Cr;return Ht.cmpn(1)===0?Cr=Gt:Cr=Yt,Cr.cmpn(0)<0&&Cr.iadd(Lt),Cr},At.prototype.gcd=function(Lt){if(this.isZero())return Lt.abs();if(Lt.isZero())return this.abs();var Ht=this.clone(),Wt=Lt.clone();Ht.negative=0,Wt.negative=0;for(var Gt=0;Ht.isEven()&&Wt.isEven();Gt++)Ht.iushrn(1),Wt.iushrn(1);do{for(;Ht.isEven();)Ht.iushrn(1);for(;Wt.isEven();)Wt.iushrn(1);var Yt=Ht.cmp(Wt);if(Yt<0){var er=Ht;Ht=Wt,Wt=er}else if(Yt===0||Wt.cmpn(1)===0)break;Ht.isub(Wt)}while(!0);return Wt.iushln(Gt)},At.prototype.invm=function(Lt){return this.egcd(Lt).a.umod(Lt)},At.prototype.isEven=function(){return(this.words[0]&1)===0},At.prototype.isOdd=function(){return(this.words[0]&1)===1},At.prototype.andln=function(Lt){return this.words[0]&Lt},At.prototype.bincn=function(Lt){Ct(typeof Lt=="number");var Ht=Lt%26,Wt=(Lt-Ht)/26,Gt=1<<Ht;if(this.length<=Wt)return this._expand(Wt+1),this.words[Wt]|=Gt,this;for(var Yt=Gt,er=Wt;Yt!==0&&er<this.length;er++){var lr=this.words[er]|0;lr+=Yt,Yt=lr>>>26,lr&=67108863,this.words[er]=lr}return Yt!==0&&(this.words[er]=Yt,this.length++),this},At.prototype.isZero=function(){return this.length===1&&this.words[0]===0},At.prototype.cmpn=function(Lt){var Ht=Lt<0;if(this.negative!==0&&!Ht)return-1;if(this.negative===0&&Ht)return 1;this.strip();var Wt;if(this.length>1)Wt=1;else{Ht&&(Lt=-Lt),Ct(Lt<=67108863,"Number is too big");var Gt=this.words[0]|0;Wt=Gt===Lt?0:Gt<Lt?-1:1}return this.negative!==0?-Wt|0:Wt},At.prototype.cmp=function(Lt){if(this.negative!==0&&Lt.negative===0)return-1;if(this.negative===0&&Lt.negative!==0)return 1;var Ht=this.ucmp(Lt);return this.negative!==0?-Ht|0:Ht},At.prototype.ucmp=function(Lt){if(this.length>Lt.length)return 1;if(this.length<Lt.length)return-1;for(var Ht=0,Wt=this.length-1;Wt>=0;Wt--){var Gt=this.words[Wt]|0,Yt=Lt.words[Wt]|0;if(Gt!==Yt){Gt<Yt?Ht=-1:Gt>Yt&&(Ht=1);break}}return Ht},At.prototype.gtn=function(Lt){return this.cmpn(Lt)===1},At.prototype.gt=function(Lt){return this.cmp(Lt)===1},At.prototype.gten=function(Lt){return this.cmpn(Lt)>=0},At.prototype.gte=function(Lt){return this.cmp(Lt)>=0},At.prototype.ltn=function(Lt){return this.cmpn(Lt)===-1},At.prototype.lt=function(Lt){return this.cmp(Lt)===-1},At.prototype.lten=function(Lt){return this.cmpn(Lt)<=0},At.prototype.lte=function(Lt){return this.cmp(Lt)<=0},At.prototype.eqn=function(Lt){return this.cmpn(Lt)===0},At.prototype.eq=function(Lt){return this.cmp(Lt)===0},At.red=function(Lt){return new yr(Lt)},At.prototype.toRed=function(Lt){return Ct(!this.red,"Already a number in reduction context"),Ct(this.negative===0,"red works only with positives"),Lt.convertTo(this)._forceRed(Lt)},At.prototype.fromRed=function(){return Ct(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},At.prototype._forceRed=function(Lt){return this.red=Lt,this},At.prototype.forceRed=function(Lt){return Ct(!this.red,"Already a number in reduction context"),this._forceRed(Lt)},At.prototype.redAdd=function(Lt){return Ct(this.red,"redAdd works only with red numbers"),this.red.add(this,Lt)},At.prototype.redIAdd=function(Lt){return Ct(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,Lt)},At.prototype.redSub=function(Lt){return Ct(this.red,"redSub works only with red numbers"),this.red.sub(this,Lt)},At.prototype.redISub=function(Lt){return Ct(this.red,"redISub works only with red numbers"),this.red.isub(this,Lt)},At.prototype.redShl=function(Lt){return Ct(this.red,"redShl works only with red numbers"),this.red.shl(this,Lt)},At.prototype.redMul=function(Lt){return Ct(this.red,"redMul works only with red numbers"),this.red._verify2(this,Lt),this.red.mul(this,Lt)},At.prototype.redIMul=function(Lt){return Ct(this.red,"redMul works only with red numbers"),this.red._verify2(this,Lt),this.red.imul(this,Lt)},At.prototype.redSqr=function(){return Ct(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},At.prototype.redISqr=function(){return Ct(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},At.prototype.redSqrt=function(){return Ct(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},At.prototype.redInvm=function(){return Ct(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},At.prototype.redNeg=function(){return Ct(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},At.prototype.redPow=function(Lt){return Ct(this.red&&!Lt.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,Lt)};var dr={k256:null,p224:null,p192:null,p25519:null};function cr(rr,Lt){this.name=rr,this.p=new At(Lt,16),this.n=this.p.bitLength(),this.k=new At(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}cr.prototype._tmp=function(){var Lt=new At(null);return Lt.words=new Array(Math.ceil(this.n/13)),Lt},cr.prototype.ireduce=function(Lt){var Ht=Lt,Wt;do this.split(Ht,this.tmp),Ht=this.imulK(Ht),Ht=Ht.iadd(this.tmp),Wt=Ht.bitLength();while(Wt>this.n);var Gt=Wt<this.n?-1:Ht.ucmp(this.p);return Gt===0?(Ht.words[0]=0,Ht.length=1):Gt>0?Ht.isub(this.p):Ht.strip!==void 0?Ht.strip():Ht._strip(),Ht},cr.prototype.split=function(Lt,Ht){Lt.iushrn(this.n,0,Ht)},cr.prototype.imulK=function(Lt){return Lt.imul(this.k)};function Er(){cr.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}$t(Er,cr),Er.prototype.split=function(Lt,Ht){for(var Wt=4194303,Gt=Math.min(Lt.length,9),Yt=0;Yt<Gt;Yt++)Ht.words[Yt]=Lt.words[Yt];if(Ht.length=Gt,Lt.length<=9){Lt.words[0]=0,Lt.length=1;return}var er=Lt.words[9];for(Ht.words[Ht.length++]=er&Wt,Yt=10;Yt<Lt.length;Yt++){var lr=Lt.words[Yt]|0;Lt.words[Yt-10]=(lr&Wt)<<4|er>>>22,er=lr}er>>>=22,Lt.words[Yt-10]=er,er===0&&Lt.length>10?Lt.length-=10:Lt.length-=9},Er.prototype.imulK=function(Lt){Lt.words[Lt.length]=0,Lt.words[Lt.length+1]=0,Lt.length+=2;for(var Ht=0,Wt=0;Wt<Lt.length;Wt++){var Gt=Lt.words[Wt]|0;Ht+=Gt*977,Lt.words[Wt]=Ht&67108863,Ht=Gt*64+(Ht/67108864|0)}return Lt.words[Lt.length-1]===0&&(Lt.length--,Lt.words[Lt.length-1]===0&&Lt.length--),Lt};function pr(){cr.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}$t(pr,cr);function gr(){cr.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}$t(gr,cr);function vr(){cr.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}$t(vr,cr),vr.prototype.imulK=function(Lt){for(var Ht=0,Wt=0;Wt<Lt.length;Wt++){var Gt=(Lt.words[Wt]|0)*19+Ht,Yt=Gt&67108863;Gt>>>=26,Lt.words[Wt]=Yt,Ht=Gt}return Ht!==0&&(Lt.words[Lt.length++]=Ht),Lt},At._prime=function(Lt){if(dr[Lt])return dr[Lt];var Ht;if(Lt==="k256")Ht=new Er;else if(Lt==="p224")Ht=new pr;else if(Lt==="p192")Ht=new gr;else if(Lt==="p25519")Ht=new vr;else throw new Error("Unknown prime "+Lt);return dr[Lt]=Ht,Ht};function yr(rr){if(typeof rr=="string"){var Lt=At._prime(rr);this.m=Lt.p,this.prime=Lt}else Ct(rr.gtn(1),"modulus must be greater than 1"),this.m=rr,this.prime=null}yr.prototype._verify1=function(Lt){Ct(Lt.negative===0,"red works only with positives"),Ct(Lt.red,"red works only with red numbers")},yr.prototype._verify2=function(Lt,Ht){Ct((Lt.negative|Ht.negative)===0,"red works only with positives"),Ct(Lt.red&&Lt.red===Ht.red,"red works only with red numbers")},yr.prototype.imod=function(Lt){return this.prime?this.prime.ireduce(Lt)._forceRed(this):Lt.umod(this.m)._forceRed(this)},yr.prototype.neg=function(Lt){return Lt.isZero()?Lt.clone():this.m.sub(Lt)._forceRed(this)},yr.prototype.add=function(Lt,Ht){this._verify2(Lt,Ht);var Wt=Lt.add(Ht);return Wt.cmp(this.m)>=0&&Wt.isub(this.m),Wt._forceRed(this)},yr.prototype.iadd=function(Lt,Ht){this._verify2(Lt,Ht);var Wt=Lt.iadd(Ht);return Wt.cmp(this.m)>=0&&Wt.isub(this.m),Wt},yr.prototype.sub=function(Lt,Ht){this._verify2(Lt,Ht);var Wt=Lt.sub(Ht);return Wt.cmpn(0)<0&&Wt.iadd(this.m),Wt._forceRed(this)},yr.prototype.isub=function(Lt,Ht){this._verify2(Lt,Ht);var Wt=Lt.isub(Ht);return Wt.cmpn(0)<0&&Wt.iadd(this.m),Wt},yr.prototype.shl=function(Lt,Ht){return this._verify1(Lt),this.imod(Lt.ushln(Ht))},yr.prototype.imul=function(Lt,Ht){return this._verify2(Lt,Ht),this.imod(Lt.imul(Ht))},yr.prototype.mul=function(Lt,Ht){return this._verify2(Lt,Ht),this.imod(Lt.mul(Ht))},yr.prototype.isqr=function(Lt){return this.imul(Lt,Lt.clone())},yr.prototype.sqr=function(Lt){return this.mul(Lt,Lt)},yr.prototype.sqrt=function(Lt){if(Lt.isZero())return Lt.clone();var Ht=this.m.andln(3);if(Ct(Ht%2===1),Ht===3){var Wt=this.m.add(new At(1)).iushrn(2);return this.pow(Lt,Wt)}for(var Gt=this.m.subn(1),Yt=0;!Gt.isZero()&&Gt.andln(1)===0;)Yt++,Gt.iushrn(1);Ct(!Gt.isZero());var er=new At(1).toRed(this),lr=er.redNeg(),Jt=this.m.subn(1).iushrn(1),Ut=this.m.bitLength();for(Ut=new At(2*Ut*Ut).toRed(this);this.pow(Ut,Jt).cmp(lr)!==0;)Ut.redIAdd(lr);for(var ir=this.pow(Ut,Gt),Cr=this.pow(Lt,Gt.addn(1).iushrn(1)),_r=this.pow(Lt,Gt),$r=Yt;_r.cmp(er)!==0;){for(var Tr=_r,Dr=0;Tr.cmp(er)!==0;Dr++)Tr=Tr.redSqr();Ct(Dr<$r);var Ar=this.pow(ir,new At(1).iushln($r-Dr-1));Cr=Cr.redMul(Ar),ir=Ar.redSqr(),_r=_r.redMul(ir),$r=Dr}return Cr},yr.prototype.invm=function(Lt){var Ht=Lt._invmp(this.m);return Ht.negative!==0?(Ht.negative=0,this.imod(Ht).redNeg()):this.imod(Ht)},yr.prototype.pow=function(Lt,Ht){if(Ht.isZero())return new At(1).toRed(this);if(Ht.cmpn(1)===0)return Lt.clone();var Wt=4,Gt=new Array(1<<Wt);Gt[0]=new At(1).toRed(this),Gt[1]=Lt;for(var Yt=2;Yt<Gt.length;Yt++)Gt[Yt]=this.mul(Gt[Yt-1],Lt);var er=Gt[0],lr=0,Jt=0,Ut=Ht.bitLength()%26;for(Ut===0&&(Ut=26),Yt=Ht.length-1;Yt>=0;Yt--){for(var ir=Ht.words[Yt],Cr=Ut-1;Cr>=0;Cr--){var _r=ir>>Cr&1;if(er!==Gt[0]&&(er=this.sqr(er)),_r===0&&lr===0){Jt=0;continue}lr<<=1,lr|=_r,Jt++,!(Jt!==Wt&&(Yt!==0||Cr!==0))&&(er=this.mul(er,Gt[lr]),Jt=0,lr=0)}Ut=26}return er},yr.prototype.convertTo=function(Lt){var Ht=Lt.umod(this.m);return Ht===Lt?Ht.clone():Ht},yr.prototype.convertFrom=function(Lt){var Ht=Lt.clone();return Ht.red=null,Ht},At.mont=function(Lt){return new xr(Lt)};function xr(rr){yr.call(this,rr),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new At(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}$t(xr,yr),xr.prototype.convertTo=function(Lt){return this.imod(Lt.ushln(this.shift))},xr.prototype.convertFrom=function(Lt){var Ht=this.imod(Lt.mul(this.rinv));return Ht.red=null,Ht},xr.prototype.imul=function(Lt,Ht){if(Lt.isZero()||Ht.isZero())return Lt.words[0]=0,Lt.length=1,Lt;var Wt=Lt.imul(Ht),Gt=Wt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Yt=Wt.isub(Gt).iushrn(this.shift),er=Yt;return Yt.cmp(this.m)>=0?er=Yt.isub(this.m):Yt.cmpn(0)<0&&(er=Yt.iadd(this.m)),er._forceRed(this)},xr.prototype.mul=function(Lt,Ht){if(Lt.isZero()||Ht.isZero())return new At(0)._forceRed(this);var Wt=Lt.mul(Ht),Gt=Wt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Yt=Wt.isub(Gt).iushrn(this.shift),er=Yt;return Yt.cmp(this.m)>=0?er=Yt.isub(this.m):Yt.cmpn(0)<0&&(er=Yt.iadd(this.m)),er._forceRed(this)},xr.prototype.invm=function(Lt){var Ht=this.imod(Lt._invmp(this.m).mul(this.r2));return Ht._forceRed(this)}})(ht,commonjsGlobal)}(bn$6)),bn$6.exports}var brorand={exports:{}},hasRequiredBrorand;function requireBrorand(){if(hasRequiredBrorand)return brorand.exports;hasRequiredBrorand=1;var ht;brorand.exports=function($t){return ht||(ht=new Et(null)),ht.generate($t)};function Et(Ct){this.rand=Ct}if(brorand.exports.Rand=Et,Et.prototype.generate=function($t){return this._rand($t)},Et.prototype._rand=function($t){if(this.rand.getBytes)return this.rand.getBytes($t);for(var At=new Uint8Array($t),Bt=0;Bt<At.length;Bt++)At[Bt]=this.rand.getByte();return At},typeof self=="object")self.crypto&&self.crypto.getRandomValues?Et.prototype._rand=function($t){var At=new Uint8Array($t);return self.crypto.getRandomValues(At),At}:self.msCrypto&&self.msCrypto.getRandomValues?Et.prototype._rand=function($t){var At=new Uint8Array($t);return self.msCrypto.getRandomValues(At),At}:typeof window=="object"&&(Et.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var yt=requireCryptoBrowserify();if(typeof yt.randomBytes!="function")throw new Error("Not supported");Et.prototype._rand=function($t){return yt.randomBytes($t)}}catch{}return brorand.exports}var mr$1,hasRequiredMr;function requireMr(){if(hasRequiredMr)return mr$1;hasRequiredMr=1;var ht=requireBn$3(),Et=requireBrorand();function yt(Ct){this.rand=Ct||new Et.Rand}return mr$1=yt,yt.create=function($t){return new yt($t)},yt.prototype._randbelow=function($t){var At=$t.bitLength(),Bt=Math.ceil(At/8);do var Dt=new ht(this.rand.generate(Bt));while(Dt.cmp($t)>=0);return Dt},yt.prototype._randrange=function($t,At){var Bt=At.sub($t);return $t.add(this._randbelow(Bt))},yt.prototype.test=function($t,At,Bt){var Dt=$t.bitLength(),Ft=ht.mont($t),kt=new ht(1).toRed(Ft);At||(At=Math.max(1,Dt/48|0));for(var Mt=$t.subn(1),Nt=0;!Mt.testn(Nt);Nt++);for(var jt=$t.shrn(Nt),zt=Mt.toRed(Ft),Vt=!0;At>0;At--){var Kt=this._randrange(new ht(2),Mt);Bt&&Bt(Kt);var Xt=Kt.toRed(Ft).redPow(jt);if(!(Xt.cmp(kt)===0||Xt.cmp(zt)===0)){for(var Qt=1;Qt<Nt;Qt++){if(Xt=Xt.redSqr(),Xt.cmp(kt)===0)return!1;if(Xt.cmp(zt)===0)break}if(Qt===Nt)return!1}}return Vt},yt.prototype.getDivisor=function($t,At){var Bt=$t.bitLength(),Dt=ht.mont($t),Ft=new ht(1).toRed(Dt);At||(At=Math.max(1,Bt/48|0));for(var kt=$t.subn(1),Mt=0;!kt.testn(Mt);Mt++);for(var Nt=$t.shrn(Mt),jt=kt.toRed(Dt);At>0;At--){var zt=this._randrange(new ht(2),kt),Vt=$t.gcd(zt);if(Vt.cmpn(1)!==0)return Vt;var Kt=zt.toRed(Dt).redPow(Nt);if(!(Kt.cmp(Ft)===0||Kt.cmp(jt)===0)){for(var Xt=1;Xt<Mt;Xt++){if(Kt=Kt.redSqr(),Kt.cmp(Ft)===0)return Kt.fromRed().subn(1).gcd($t);if(Kt.cmp(jt)===0)break}if(Xt===Mt)return Kt=Kt.redSqr(),Kt.fromRed().subn(1).gcd($t)}}return!1},mr$1}var generatePrime,hasRequiredGeneratePrime;function requireGeneratePrime(){if(hasRequiredGeneratePrime)return generatePrime;hasRequiredGeneratePrime=1;var ht=browserExports;generatePrime=Xt,Xt.simpleSieve=Vt,Xt.fermatTest=Kt;var Et=requireBn$4(),yt=new Et(24),Ct=requireMr(),$t=new Ct,At=new Et(1),Bt=new Et(2),Dt=new Et(5);new Et(16),new Et(8);var Ft=new Et(10),kt=new Et(3);new Et(7);var Mt=new Et(11),Nt=new Et(4);new Et(12);var jt=null;function zt(){if(jt!==null)return jt;var Qt=1048576,Zt=[];Zt[0]=2;for(var dr=1,cr=3;cr<Qt;cr+=2){for(var Er=Math.ceil(Math.sqrt(cr)),pr=0;pr<dr&&Zt[pr]<=Er&&cr%Zt[pr]!==0;pr++);dr!==pr&&Zt[pr]<=Er||(Zt[dr++]=cr)}return jt=Zt,Zt}function Vt(Qt){for(var Zt=zt(),dr=0;dr<Zt.length;dr++)if(Qt.modn(Zt[dr])===0)return Qt.cmpn(Zt[dr])===0;return!0}function Kt(Qt){var Zt=Et.mont(Qt);return Bt.toRed(Zt).redPow(Qt.subn(1)).fromRed().cmpn(1)===0}function Xt(Qt,Zt){if(Qt<16)return Zt===2||Zt===5?new Et([140,123]):new Et([140,39]);Zt=new Et(Zt);for(var dr,cr;;){for(dr=new Et(ht(Math.ceil(Qt/8)));dr.bitLength()>Qt;)dr.ishrn(1);if(dr.isEven()&&dr.iadd(At),dr.testn(1)||dr.iadd(Bt),Zt.cmp(Bt)){if(!Zt.cmp(Dt))for(;dr.mod(Ft).cmp(kt);)dr.iadd(Nt)}else for(;dr.mod(yt).cmp(Mt);)dr.iadd(Nt);if(cr=dr.shrn(1),Vt(cr)&&Vt(dr)&&Kt(cr)&&Kt(dr)&&$t.test(cr)&&$t.test(dr))return dr}}return generatePrime}const modp1={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"},require$$1$1={modp1,modp2,modp5,modp14,modp15,modp16,modp17,modp18};var dh,hasRequiredDh;function requireDh(){if(hasRequiredDh)return dh;hasRequiredDh=1;var ht=requireBn$4(),Et=requireMr(),yt=new Et,Ct=new ht(24),$t=new ht(11),At=new ht(10),Bt=new ht(3),Dt=new ht(7),Ft=requireGeneratePrime(),kt=browserExports;dh=Vt;function Mt(Xt,Qt){return Qt=Qt||"utf8",Buffer$g.isBuffer(Xt)||(Xt=new Buffer$g(Xt,Qt)),this._pub=new ht(Xt),this}function Nt(Xt,Qt){return Qt=Qt||"utf8",Buffer$g.isBuffer(Xt)||(Xt=new Buffer$g(Xt,Qt)),this._priv=new ht(Xt),this}var jt={};function zt(Xt,Qt){var Zt=Qt.toString("hex"),dr=[Zt,Xt.toString(16)].join("_");if(dr in jt)return jt[dr];var cr=0;if(Xt.isEven()||!Ft.simpleSieve||!Ft.fermatTest(Xt)||!yt.test(Xt))return cr+=1,Zt==="02"||Zt==="05"?cr+=8:cr+=4,jt[dr]=cr,cr;yt.test(Xt.shrn(1))||(cr+=2);var Er;switch(Zt){case"02":Xt.mod(Ct).cmp($t)&&(cr+=8);break;case"05":Er=Xt.mod(At),Er.cmp(Bt)&&Er.cmp(Dt)&&(cr+=8);break;default:cr+=4}return jt[dr]=cr,cr}function Vt(Xt,Qt,Zt){this.setGenerator(Qt),this.__prime=new ht(Xt),this._prime=ht.mont(this.__prime),this._primeLen=Xt.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,Zt?(this.setPublicKey=Mt,this.setPrivateKey=Nt):this._primeCode=8}Object.defineProperty(Vt.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=zt(this.__prime,this.__gen)),this._primeCode}}),Vt.prototype.generateKeys=function(){return this._priv||(this._priv=new ht(kt(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},Vt.prototype.computeSecret=function(Xt){Xt=new ht(Xt),Xt=Xt.toRed(this._prime);var Qt=Xt.redPow(this._priv).fromRed(),Zt=new Buffer$g(Qt.toArray()),dr=this.getPrime();if(Zt.length<dr.length){var cr=new Buffer$g(dr.length-Zt.length);cr.fill(0),Zt=Buffer$g.concat([cr,Zt])}return Zt},Vt.prototype.getPublicKey=function(Qt){return Kt(this._pub,Qt)},Vt.prototype.getPrivateKey=function(Qt){return Kt(this._priv,Qt)},Vt.prototype.getPrime=function(Xt){return Kt(this.__prime,Xt)},Vt.prototype.getGenerator=function(Xt){return Kt(this._gen,Xt)},Vt.prototype.setGenerator=function(Xt,Qt){return Qt=Qt||"utf8",Buffer$g.isBuffer(Xt)||(Xt=new Buffer$g(Xt,Qt)),this.__gen=Xt,this._gen=new ht(Xt),this};function Kt(Xt,Qt){var Zt=new Buffer$g(Xt.toArray());return Qt?Zt.toString(Qt):Zt}return dh}var hasRequiredBrowser$4;function requireBrowser$4(){if(hasRequiredBrowser$4)return browser$5;hasRequiredBrowser$4=1;var ht=requireGeneratePrime(),Et=require$$1$1,yt=requireDh();function Ct(Bt){var Dt=new Buffer$g(Et[Bt].prime,"hex"),Ft=new Buffer$g(Et[Bt].gen,"hex");return new yt(Dt,Ft)}var $t={binary:!0,hex:!0,base64:!0};function At(Bt,Dt,Ft,kt){return Buffer$g.isBuffer(Dt)||$t[Dt]===void 0?At(Bt,"binary",Dt,Ft):(Dt=Dt||"binary",kt=kt||"binary",Ft=Ft||new Buffer$g([2]),Buffer$g.isBuffer(Ft)||(Ft=new Buffer$g(Ft,kt)),typeof Bt=="number"?new yt(ht(Bt,Ft),Ft,!0):(Buffer$g.isBuffer(Bt)||(Bt=new Buffer$g(Bt,Dt)),new yt(Bt,Ft,!0)))}return browser$5.DiffieHellmanGroup=browser$5.createDiffieHellmanGroup=browser$5.getDiffieHellman=Ct,browser$5.createDiffieHellman=browser$5.DiffieHellman=At,browser$5}var readableBrowser={exports:{}},processNextickArgs={exports:{}},hasRequiredProcessNextickArgs;function requireProcessNextickArgs(){if(hasRequiredProcessNextickArgs)return processNextickArgs.exports;hasRequiredProcessNextickArgs=1,typeof process$1$1>"u"||!process$1$1.version||process$1$1.version.indexOf("v0.")===0||process$1$1.version.indexOf("v1.")===0&&process$1$1.version.indexOf("v1.8.")!==0?processNextickArgs.exports={nextTick:ht}:processNextickArgs.exports=process$1$1;function ht(Et,yt,Ct,$t){if(typeof Et!="function")throw new TypeError('"callback" argument must be a function');var At=arguments.length,Bt,Dt;switch(At){case 0:case 1:return process$1$1.nextTick(Et);case 2:return process$1$1.nextTick(function(){Et.call(null,yt)});case 3:return process$1$1.nextTick(function(){Et.call(null,yt,Ct)});case 4:return process$1$1.nextTick(function(){Et.call(null,yt,Ct,$t)});default:for(Bt=new Array(At-1),Dt=0;Dt<Bt.length;)Bt[Dt++]=arguments[Dt];return process$1$1.nextTick(function(){Et.apply(null,Bt)})}}return processNextickArgs.exports}var isarray,hasRequiredIsarray;function requireIsarray(){if(hasRequiredIsarray)return isarray;hasRequiredIsarray=1;var ht={}.toString;return isarray=Array.isArray||function(Et){return ht.call(Et)=="[object Array]"},isarray}var streamBrowser,hasRequiredStreamBrowser;function requireStreamBrowser(){return hasRequiredStreamBrowser||(hasRequiredStreamBrowser=1,streamBrowser=eventsExports.EventEmitter),streamBrowser}var safeBuffer={exports:{}},hasRequiredSafeBuffer;function requireSafeBuffer(){return hasRequiredSafeBuffer||(hasRequiredSafeBuffer=1,function(ht,Et){var yt=require$$0$3,Ct=yt.Buffer;function $t(Bt,Dt){for(var Ft in Bt)Dt[Ft]=Bt[Ft]}Ct.from&&Ct.alloc&&Ct.allocUnsafe&&Ct.allocUnsafeSlow?ht.exports=yt:($t(yt,Et),Et.Buffer=At);function At(Bt,Dt,Ft){return Ct(Bt,Dt,Ft)}$t(Ct,At),At.from=function(Bt,Dt,Ft){if(typeof Bt=="number")throw new TypeError("Argument must not be a number");return Ct(Bt,Dt,Ft)},At.alloc=function(Bt,Dt,Ft){if(typeof Bt!="number")throw new TypeError("Argument must be a number");var kt=Ct(Bt);return Dt!==void 0?typeof Ft=="string"?kt.fill(Dt,Ft):kt.fill(Dt):kt.fill(0),kt},At.allocUnsafe=function(Bt){if(typeof Bt!="number")throw new TypeError("Argument must be a number");return Ct(Bt)},At.allocUnsafeSlow=function(Bt){if(typeof Bt!="number")throw new TypeError("Argument must be a number");return yt.SlowBuffer(Bt)}}(safeBuffer,safeBuffer.exports)),safeBuffer.exports}var util={},hasRequiredUtil;function requireUtil(){if(hasRequiredUtil)return util;hasRequiredUtil=1;function ht(Kt){return Array.isArray?Array.isArray(Kt):Vt(Kt)==="[object Array]"}util.isArray=ht;function Et(Kt){return typeof Kt=="boolean"}util.isBoolean=Et;function yt(Kt){return Kt===null}util.isNull=yt;function Ct(Kt){return Kt==null}util.isNullOrUndefined=Ct;function $t(Kt){return typeof Kt=="number"}util.isNumber=$t;function At(Kt){return typeof Kt=="string"}util.isString=At;function Bt(Kt){return typeof Kt=="symbol"}util.isSymbol=Bt;function Dt(Kt){return Kt===void 0}util.isUndefined=Dt;function Ft(Kt){return Vt(Kt)==="[object RegExp]"}util.isRegExp=Ft;function kt(Kt){return typeof Kt=="object"&&Kt!==null}util.isObject=kt;function Mt(Kt){return Vt(Kt)==="[object Date]"}util.isDate=Mt;function Nt(Kt){return Vt(Kt)==="[object Error]"||Kt instanceof Error}util.isError=Nt;function jt(Kt){return typeof Kt=="function"}util.isFunction=jt;function zt(Kt){return Kt===null||typeof Kt=="boolean"||typeof Kt=="number"||typeof Kt=="string"||typeof Kt=="symbol"||typeof Kt>"u"}util.isPrimitive=zt,util.isBuffer=require$$0$3.Buffer.isBuffer;function Vt(Kt){return Object.prototype.toString.call(Kt)}return util}var BufferList={exports:{}},hasRequiredBufferList;function requireBufferList(){return hasRequiredBufferList||(hasRequiredBufferList=1,function(ht){function Et(At,Bt){if(!(At instanceof Bt))throw new TypeError("Cannot call a class as a function")}var yt=requireSafeBuffer().Buffer,Ct=util$1;function $t(At,Bt,Dt){At.copy(Bt,Dt)}ht.exports=function(){function At(){Et(this,At),this.head=null,this.tail=null,this.length=0}return At.prototype.push=function(Dt){var Ft={data:Dt,next:null};this.length>0?this.tail.next=Ft:this.head=Ft,this.tail=Ft,++this.length},At.prototype.unshift=function(Dt){var Ft={data:Dt,next:this.head};this.length===0&&(this.tail=Ft),this.head=Ft,++this.length},At.prototype.shift=function(){if(this.length!==0){var Dt=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,Dt}},At.prototype.clear=function(){this.head=this.tail=null,this.length=0},At.prototype.join=function(Dt){if(this.length===0)return"";for(var Ft=this.head,kt=""+Ft.data;Ft=Ft.next;)kt+=Dt+Ft.data;return kt},At.prototype.concat=function(Dt){if(this.length===0)return yt.alloc(0);for(var Ft=yt.allocUnsafe(Dt>>>0),kt=this.head,Mt=0;kt;)$t(kt.data,Ft,Mt),Mt+=kt.data.length,kt=kt.next;return Ft},At}(),Ct&&Ct.inspect&&Ct.inspect.custom&&(ht.exports.prototype[Ct.inspect.custom]=function(){var At=Ct.inspect({length:this.length});return this.constructor.name+" "+At})}(BufferList)),BufferList.exports}var destroy_1,hasRequiredDestroy;function requireDestroy(){if(hasRequiredDestroy)return destroy_1;hasRequiredDestroy=1;var ht=requireProcessNextickArgs();function Et($t,At){var Bt=this,Dt=this._readableState&&this._readableState.destroyed,Ft=this._writableState&&this._writableState.destroyed;return Dt||Ft?(At?At($t):$t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,ht.nextTick(Ct,this,$t)):ht.nextTick(Ct,this,$t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy($t||null,function(kt){!At&&kt?Bt._writableState?Bt._writableState.errorEmitted||(Bt._writableState.errorEmitted=!0,ht.nextTick(Ct,Bt,kt)):ht.nextTick(Ct,Bt,kt):At&&At(kt)}),this)}function yt(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Ct($t,At){$t.emit("error",At)}return destroy_1={destroy:Et,undestroy:yt},destroy_1}var _stream_writable,hasRequired_stream_writable;function require_stream_writable(){if(hasRequired_stream_writable)return _stream_writable;hasRequired_stream_writable=1;var ht=requireProcessNextickArgs();_stream_writable=Kt;function Et(er){var lr=this;this.next=null,this.entry=null,this.finish=function(){Yt(lr,er)}}var yt=!process$1$1.browser&&["v0.10","v0.9."].indexOf(process$1$1.version.slice(0,5))>-1?setImmediate:ht.nextTick,Ct;Kt.WritableState=zt;var $t=Object.create(requireUtil());$t.inherits=inherits_browserExports;var At={deprecate:requireBrowser$9()},Bt=requireStreamBrowser(),Dt=requireSafeBuffer().Buffer,Ft=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function kt(er){return Dt.from(er)}function Mt(er){return Dt.isBuffer(er)||er instanceof Ft}var Nt=requireDestroy();$t.inherits(Kt,Bt);function jt(){}function zt(er,lr){Ct=Ct||require_stream_duplex(),er=er||{};var Jt=lr instanceof Ct;this.objectMode=!!er.objectMode,Jt&&(this.objectMode=this.objectMode||!!er.writableObjectMode);var Ut=er.highWaterMark,ir=er.writableHighWaterMark,Cr=this.objectMode?16:16*1024;Ut||Ut===0?this.highWaterMark=Ut:Jt&&(ir||ir===0)?this.highWaterMark=ir:this.highWaterMark=Cr,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var _r=er.decodeStrings===!1;this.decodeStrings=!_r,this.defaultEncoding=er.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function($r){gr(lr,$r)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new Et(this)}zt.prototype.getBuffer=function(){for(var lr=this.bufferedRequest,Jt=[];lr;)Jt.push(lr),lr=lr.next;return Jt},function(){try{Object.defineProperty(zt.prototype,"buffer",{get:At.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var Vt;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Vt=Function.prototype[Symbol.hasInstance],Object.defineProperty(Kt,Symbol.hasInstance,{value:function(er){return Vt.call(this,er)?!0:this!==Kt?!1:er&&er._writableState instanceof zt}})):Vt=function(er){return er instanceof this};function Kt(er){if(Ct=Ct||require_stream_duplex(),!Vt.call(Kt,this)&&!(this instanceof Ct))return new Kt(er);this._writableState=new zt(er,this),this.writable=!0,er&&(typeof er.write=="function"&&(this._write=er.write),typeof er.writev=="function"&&(this._writev=er.writev),typeof er.destroy=="function"&&(this._destroy=er.destroy),typeof er.final=="function"&&(this._final=er.final)),Bt.call(this)}Kt.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function Xt(er,lr){var Jt=new Error("write after end");er.emit("error",Jt),ht.nextTick(lr,Jt)}function Qt(er,lr,Jt,Ut){var ir=!0,Cr=!1;return Jt===null?Cr=new TypeError("May not write null values to stream"):typeof Jt!="string"&&Jt!==void 0&&!lr.objectMode&&(Cr=new TypeError("Invalid non-string/buffer chunk")),Cr&&(er.emit("error",Cr),ht.nextTick(Ut,Cr),ir=!1),ir}Kt.prototype.write=function(er,lr,Jt){var Ut=this._writableState,ir=!1,Cr=!Ut.objectMode&&Mt(er);return Cr&&!Dt.isBuffer(er)&&(er=kt(er)),typeof lr=="function"&&(Jt=lr,lr=null),Cr?lr="buffer":lr||(lr=Ut.defaultEncoding),typeof Jt!="function"&&(Jt=jt),Ut.ended?Xt(this,Jt):(Cr||Qt(this,Ut,er,Jt))&&(Ut.pendingcb++,ir=dr(this,Ut,Cr,er,lr,Jt)),ir},Kt.prototype.cork=function(){var er=this._writableState;er.corked++},Kt.prototype.uncork=function(){var er=this._writableState;er.corked&&(er.corked--,!er.writing&&!er.corked&&!er.bufferProcessing&&er.bufferedRequest&&xr(this,er))},Kt.prototype.setDefaultEncoding=function(lr){if(typeof lr=="string"&&(lr=lr.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((lr+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+lr);return this._writableState.defaultEncoding=lr,this};function Zt(er,lr,Jt){return!er.objectMode&&er.decodeStrings!==!1&&typeof lr=="string"&&(lr=Dt.from(lr,Jt)),lr}Object.defineProperty(Kt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function dr(er,lr,Jt,Ut,ir,Cr){if(!Jt){var _r=Zt(lr,Ut,ir);Ut!==_r&&(Jt=!0,ir="buffer",Ut=_r)}var $r=lr.objectMode?1:Ut.length;lr.length+=$r;var Tr=lr.length<lr.highWaterMark;if(Tr||(lr.needDrain=!0),lr.writing||lr.corked){var Dr=lr.lastBufferedRequest;lr.lastBufferedRequest={chunk:Ut,encoding:ir,isBuf:Jt,callback:Cr,next:null},Dr?Dr.next=lr.lastBufferedRequest:lr.bufferedRequest=lr.lastBufferedRequest,lr.bufferedRequestCount+=1}else cr(er,lr,!1,$r,Ut,ir,Cr);return Tr}function cr(er,lr,Jt,Ut,ir,Cr,_r){lr.writelen=Ut,lr.writecb=_r,lr.writing=!0,lr.sync=!0,Jt?er._writev(ir,lr.onwrite):er._write(ir,Cr,lr.onwrite),lr.sync=!1}function Er(er,lr,Jt,Ut,ir){--lr.pendingcb,Jt?(ht.nextTick(ir,Ut),ht.nextTick(Wt,er,lr),er._writableState.errorEmitted=!0,er.emit("error",Ut)):(ir(Ut),er._writableState.errorEmitted=!0,er.emit("error",Ut),Wt(er,lr))}function pr(er){er.writing=!1,er.writecb=null,er.length-=er.writelen,er.writelen=0}function gr(er,lr){var Jt=er._writableState,Ut=Jt.sync,ir=Jt.writecb;if(pr(Jt),lr)Er(er,Jt,Ut,lr,ir);else{var Cr=rr(Jt);!Cr&&!Jt.corked&&!Jt.bufferProcessing&&Jt.bufferedRequest&&xr(er,Jt),Ut?yt(vr,er,Jt,Cr,ir):vr(er,Jt,Cr,ir)}}function vr(er,lr,Jt,Ut){Jt||yr(er,lr),lr.pendingcb--,Ut(),Wt(er,lr)}function yr(er,lr){lr.length===0&&lr.needDrain&&(lr.needDrain=!1,er.emit("drain"))}function xr(er,lr){lr.bufferProcessing=!0;var Jt=lr.bufferedRequest;if(er._writev&&Jt&&Jt.next){var Ut=lr.bufferedRequestCount,ir=new Array(Ut),Cr=lr.corkedRequestsFree;Cr.entry=Jt;for(var _r=0,$r=!0;Jt;)ir[_r]=Jt,Jt.isBuf||($r=!1),Jt=Jt.next,_r+=1;ir.allBuffers=$r,cr(er,lr,!0,lr.length,ir,"",Cr.finish),lr.pendingcb++,lr.lastBufferedRequest=null,Cr.next?(lr.corkedRequestsFree=Cr.next,Cr.next=null):lr.corkedRequestsFree=new Et(lr),lr.bufferedRequestCount=0}else{for(;Jt;){var Tr=Jt.chunk,Dr=Jt.encoding,Ar=Jt.callback,Fr=lr.objectMode?1:Tr.length;if(cr(er,lr,!1,Fr,Tr,Dr,Ar),Jt=Jt.next,lr.bufferedRequestCount--,lr.writing)break}Jt===null&&(lr.lastBufferedRequest=null)}lr.bufferedRequest=Jt,lr.bufferProcessing=!1}Kt.prototype._write=function(er,lr,Jt){Jt(new Error("_write() is not implemented"))},Kt.prototype._writev=null,Kt.prototype.end=function(er,lr,Jt){var Ut=this._writableState;typeof er=="function"?(Jt=er,er=null,lr=null):typeof lr=="function"&&(Jt=lr,lr=null),er!=null&&this.write(er,lr),Ut.corked&&(Ut.corked=1,this.uncork()),Ut.ending||Gt(this,Ut,Jt)};function rr(er){return er.ending&&er.length===0&&er.bufferedRequest===null&&!er.finished&&!er.writing}function Lt(er,lr){er._final(function(Jt){lr.pendingcb--,Jt&&er.emit("error",Jt),lr.prefinished=!0,er.emit("prefinish"),Wt(er,lr)})}function Ht(er,lr){!lr.prefinished&&!lr.finalCalled&&(typeof er._final=="function"?(lr.pendingcb++,lr.finalCalled=!0,ht.nextTick(Lt,er,lr)):(lr.prefinished=!0,er.emit("prefinish")))}function Wt(er,lr){var Jt=rr(lr);return Jt&&(Ht(er,lr),lr.pendingcb===0&&(lr.finished=!0,er.emit("finish"))),Jt}function Gt(er,lr,Jt){lr.ending=!0,Wt(er,lr),Jt&&(lr.finished?ht.nextTick(Jt):er.once("finish",Jt)),lr.ended=!0,er.writable=!1}function Yt(er,lr,Jt){var Ut=er.entry;for(er.entry=null;Ut;){var ir=Ut.callback;lr.pendingcb--,ir(Jt),Ut=Ut.next}lr.corkedRequestsFree.next=er}return Object.defineProperty(Kt.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(er){this._writableState&&(this._writableState.destroyed=er)}}),Kt.prototype.destroy=Nt.destroy,Kt.prototype._undestroy=Nt.undestroy,Kt.prototype._destroy=function(er,lr){this.end(),lr(er)},_stream_writable}var _stream_duplex,hasRequired_stream_duplex;function require_stream_duplex(){if(hasRequired_stream_duplex)return _stream_duplex;hasRequired_stream_duplex=1;var ht=requireProcessNextickArgs(),Et=Object.keys||function(Nt){var jt=[];for(var zt in Nt)jt.push(zt);return jt};_stream_duplex=Ft;var yt=Object.create(requireUtil());yt.inherits=inherits_browserExports;var Ct=require_stream_readable(),$t=require_stream_writable();yt.inherits(Ft,Ct);for(var At=Et($t.prototype),Bt=0;Bt<At.length;Bt++){var Dt=At[Bt];Ft.prototype[Dt]||(Ft.prototype[Dt]=$t.prototype[Dt])}function Ft(Nt){if(!(this instanceof Ft))return new Ft(Nt);Ct.call(this,Nt),$t.call(this,Nt),Nt&&Nt.readable===!1&&(this.readable=!1),Nt&&Nt.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,Nt&&Nt.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",kt)}Object.defineProperty(Ft.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function kt(){this.allowHalfOpen||this._writableState.ended||ht.nextTick(Mt,this)}function Mt(Nt){Nt.end()}return Object.defineProperty(Ft.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(Nt){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=Nt,this._writableState.destroyed=Nt)}}),Ft.prototype._destroy=function(Nt,jt){this.push(null),this.end(),ht.nextTick(jt,Nt)},_stream_duplex}var _stream_readable,hasRequired_stream_readable;function require_stream_readable(){if(hasRequired_stream_readable)return _stream_readable;hasRequired_stream_readable=1;var ht=requireProcessNextickArgs();_stream_readable=Zt;var Et=requireIsarray(),yt;Zt.ReadableState=Qt,eventsExports.EventEmitter;var Ct=function(Ar,Fr){return Ar.listeners(Fr).length},$t=requireStreamBrowser(),At=requireSafeBuffer().Buffer,Bt=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Dt(Ar){return At.from(Ar)}function Ft(Ar){return At.isBuffer(Ar)||Ar instanceof Bt}var kt=Object.create(requireUtil());kt.inherits=inherits_browserExports;var Mt=util$1,Nt=void 0;Mt&&Mt.debuglog?Nt=Mt.debuglog("stream"):Nt=function(){};var jt=requireBufferList(),zt=requireDestroy(),Vt;kt.inherits(Zt,$t);var Kt=["error","close","destroy","pause","resume"];function Xt(Ar,Fr,Rr){if(typeof Ar.prependListener=="function")return Ar.prependListener(Fr,Rr);!Ar._events||!Ar._events[Fr]?Ar.on(Fr,Rr):Et(Ar._events[Fr])?Ar._events[Fr].unshift(Rr):Ar._events[Fr]=[Rr,Ar._events[Fr]]}function Qt(Ar,Fr){yt=yt||require_stream_duplex(),Ar=Ar||{};var Rr=Fr instanceof yt;this.objectMode=!!Ar.objectMode,Rr&&(this.objectMode=this.objectMode||!!Ar.readableObjectMode);var wr=Ar.highWaterMark,Sr=Ar.readableHighWaterMark,Br=this.objectMode?16:16*1024;wr||wr===0?this.highWaterMark=wr:Rr&&(Sr||Sr===0)?this.highWaterMark=Sr:this.highWaterMark=Br,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new jt,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=Ar.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Ar.encoding&&(Vt||(Vt=string_decoder.StringDecoder),this.decoder=new Vt(Ar.encoding),this.encoding=Ar.encoding)}function Zt(Ar){if(yt=yt||require_stream_duplex(),!(this instanceof Zt))return new Zt(Ar);this._readableState=new Qt(Ar,this),this.readable=!0,Ar&&(typeof Ar.read=="function"&&(this._read=Ar.read),typeof Ar.destroy=="function"&&(this._destroy=Ar.destroy)),$t.call(this)}Object.defineProperty(Zt.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Ar){this._readableState&&(this._readableState.destroyed=Ar)}}),Zt.prototype.destroy=zt.destroy,Zt.prototype._undestroy=zt.undestroy,Zt.prototype._destroy=function(Ar,Fr){this.push(null),Fr(Ar)},Zt.prototype.push=function(Ar,Fr){var Rr=this._readableState,wr;return Rr.objectMode?wr=!0:typeof Ar=="string"&&(Fr=Fr||Rr.defaultEncoding,Fr!==Rr.encoding&&(Ar=At.from(Ar,Fr),Fr=""),wr=!0),dr(this,Ar,Fr,!1,wr)},Zt.prototype.unshift=function(Ar){return dr(this,Ar,null,!0,!1)};function dr(Ar,Fr,Rr,wr,Sr){var Br=Ar._readableState;if(Fr===null)Br.reading=!1,xr(Ar,Br);else{var Or;Sr||(Or=Er(Br,Fr)),Or?Ar.emit("error",Or):Br.objectMode||Fr&&Fr.length>0?(typeof Fr!="string"&&!Br.objectMode&&Object.getPrototypeOf(Fr)!==At.prototype&&(Fr=Dt(Fr)),wr?Br.endEmitted?Ar.emit("error",new Error("stream.unshift() after end event")):cr(Ar,Br,Fr,!0):Br.ended?Ar.emit("error",new Error("stream.push() after EOF")):(Br.reading=!1,Br.decoder&&!Rr?(Fr=Br.decoder.write(Fr),Br.objectMode||Fr.length!==0?cr(Ar,Br,Fr,!1):Ht(Ar,Br)):cr(Ar,Br,Fr,!1))):wr||(Br.reading=!1)}return pr(Br)}function cr(Ar,Fr,Rr,wr){Fr.flowing&&Fr.length===0&&!Fr.sync?(Ar.emit("data",Rr),Ar.read(0)):(Fr.length+=Fr.objectMode?1:Rr.length,wr?Fr.buffer.unshift(Rr):Fr.buffer.push(Rr),Fr.needReadable&&rr(Ar)),Ht(Ar,Fr)}function Er(Ar,Fr){var Rr;return!Ft(Fr)&&typeof Fr!="string"&&Fr!==void 0&&!Ar.objectMode&&(Rr=new TypeError("Invalid non-string/buffer chunk")),Rr}function pr(Ar){return!Ar.ended&&(Ar.needReadable||Ar.length<Ar.highWaterMark||Ar.length===0)}Zt.prototype.isPaused=function(){return this._readableState.flowing===!1},Zt.prototype.setEncoding=function(Ar){return Vt||(Vt=string_decoder.StringDecoder),this._readableState.decoder=new Vt(Ar),this._readableState.encoding=Ar,this};var gr=8388608;function vr(Ar){return Ar>=gr?Ar=gr:(Ar--,Ar|=Ar>>>1,Ar|=Ar>>>2,Ar|=Ar>>>4,Ar|=Ar>>>8,Ar|=Ar>>>16,Ar++),Ar}function yr(Ar,Fr){return Ar<=0||Fr.length===0&&Fr.ended?0:Fr.objectMode?1:Ar!==Ar?Fr.flowing&&Fr.length?Fr.buffer.head.data.length:Fr.length:(Ar>Fr.highWaterMark&&(Fr.highWaterMark=vr(Ar)),Ar<=Fr.length?Ar:Fr.ended?Fr.length:(Fr.needReadable=!0,0))}Zt.prototype.read=function(Ar){Nt("read",Ar),Ar=parseInt(Ar,10);var Fr=this._readableState,Rr=Ar;if(Ar!==0&&(Fr.emittedReadable=!1),Ar===0&&Fr.needReadable&&(Fr.length>=Fr.highWaterMark||Fr.ended))return Nt("read: emitReadable",Fr.length,Fr.ended),Fr.length===0&&Fr.ended?$r(this):rr(this),null;if(Ar=yr(Ar,Fr),Ar===0&&Fr.ended)return Fr.length===0&&$r(this),null;var wr=Fr.needReadable;Nt("need readable",wr),(Fr.length===0||Fr.length-Ar<Fr.highWaterMark)&&(wr=!0,Nt("length less than watermark",wr)),Fr.ended||Fr.reading?(wr=!1,Nt("reading or ended",wr)):wr&&(Nt("do read"),Fr.reading=!0,Fr.sync=!0,Fr.length===0&&(Fr.needReadable=!0),this._read(Fr.highWaterMark),Fr.sync=!1,Fr.reading||(Ar=yr(Rr,Fr)));var Sr;return Ar>0?Sr=Ut(Ar,Fr):Sr=null,Sr===null?(Fr.needReadable=!0,Ar=0):Fr.length-=Ar,Fr.length===0&&(Fr.ended||(Fr.needReadable=!0),Rr!==Ar&&Fr.ended&&$r(this)),Sr!==null&&this.emit("data",Sr),Sr};function xr(Ar,Fr){if(!Fr.ended){if(Fr.decoder){var Rr=Fr.decoder.end();Rr&&Rr.length&&(Fr.buffer.push(Rr),Fr.length+=Fr.objectMode?1:Rr.length)}Fr.ended=!0,rr(Ar)}}function rr(Ar){var Fr=Ar._readableState;Fr.needReadable=!1,Fr.emittedReadable||(Nt("emitReadable",Fr.flowing),Fr.emittedReadable=!0,Fr.sync?ht.nextTick(Lt,Ar):Lt(Ar))}function Lt(Ar){Nt("emit readable"),Ar.emit("readable"),Jt(Ar)}function Ht(Ar,Fr){Fr.readingMore||(Fr.readingMore=!0,ht.nextTick(Wt,Ar,Fr))}function Wt(Ar,Fr){for(var Rr=Fr.length;!Fr.reading&&!Fr.flowing&&!Fr.ended&&Fr.length<Fr.highWaterMark&&(Nt("maybeReadMore read 0"),Ar.read(0),Rr!==Fr.length);)Rr=Fr.length;Fr.readingMore=!1}Zt.prototype._read=function(Ar){this.emit("error",new Error("_read() is not implemented"))},Zt.prototype.pipe=function(Ar,Fr){var Rr=this,wr=this._readableState;switch(wr.pipesCount){case 0:wr.pipes=Ar;break;case 1:wr.pipes=[wr.pipes,Ar];break;default:wr.pipes.push(Ar);break}wr.pipesCount+=1,Nt("pipe count=%d opts=%j",wr.pipesCount,Fr);var Sr=(!Fr||Fr.end!==!1)&&Ar!==process$1$1.stdout&&Ar!==process$1$1.stderr,Br=Sr?Pr:dn;wr.endEmitted?ht.nextTick(Br):Rr.once("end",Br),Ar.on("unpipe",Or);function Or(Xr,un){Nt("onunpipe"),Xr===Rr&&un&&un.hasUnpiped===!1&&(un.hasUnpiped=!0,Wr())}function Pr(){Nt("onend"),Ar.end()}var Nr=Gt(Rr);Ar.on("drain",Nr);var Lr=!1;function Wr(){Nt("cleanup"),Ar.removeListener("close",qr),Ar.removeListener("finish",Zr),Ar.removeListener("drain",Nr),Ar.removeListener("error",Kr),Ar.removeListener("unpipe",Or),Rr.removeListener("end",Pr),Rr.removeListener("end",dn),Rr.removeListener("data",jr),Lr=!0,wr.awaitDrain&&(!Ar._writableState||Ar._writableState.needDrain)&&Nr()}var Ur=!1;Rr.on("data",jr);function jr(Xr){Nt("ondata"),Ur=!1;var un=Ar.write(Xr);un===!1&&!Ur&&((wr.pipesCount===1&&wr.pipes===Ar||wr.pipesCount>1&&Dr(wr.pipes,Ar)!==-1)&&!Lr&&(Nt("false write response, pause",wr.awaitDrain),wr.awaitDrain++,Ur=!0),Rr.pause())}function Kr(Xr){Nt("onerror",Xr),dn(),Ar.removeListener("error",Kr),Ct(Ar,"error")===0&&Ar.emit("error",Xr)}Xt(Ar,"error",Kr);function qr(){Ar.removeListener("finish",Zr),dn()}Ar.once("close",qr);function Zr(){Nt("onfinish"),Ar.removeListener("close",qr),dn()}Ar.once("finish",Zr);function dn(){Nt("unpipe"),Rr.unpipe(Ar)}return Ar.emit("pipe",Rr),wr.flowing||(Nt("pipe resume"),Rr.resume()),Ar};function Gt(Ar){return function(){var Fr=Ar._readableState;Nt("pipeOnDrain",Fr.awaitDrain),Fr.awaitDrain&&Fr.awaitDrain--,Fr.awaitDrain===0&&Ct(Ar,"data")&&(Fr.flowing=!0,Jt(Ar))}}Zt.prototype.unpipe=function(Ar){var Fr=this._readableState,Rr={hasUnpiped:!1};if(Fr.pipesCount===0)return this;if(Fr.pipesCount===1)return Ar&&Ar!==Fr.pipes?this:(Ar||(Ar=Fr.pipes),Fr.pipes=null,Fr.pipesCount=0,Fr.flowing=!1,Ar&&Ar.emit("unpipe",this,Rr),this);if(!Ar){var wr=Fr.pipes,Sr=Fr.pipesCount;Fr.pipes=null,Fr.pipesCount=0,Fr.flowing=!1;for(var Br=0;Br<Sr;Br++)wr[Br].emit("unpipe",this,{hasUnpiped:!1});return this}var Or=Dr(Fr.pipes,Ar);return Or===-1?this:(Fr.pipes.splice(Or,1),Fr.pipesCount-=1,Fr.pipesCount===1&&(Fr.pipes=Fr.pipes[0]),Ar.emit("unpipe",this,Rr),this)},Zt.prototype.on=function(Ar,Fr){var Rr=$t.prototype.on.call(this,Ar,Fr);if(Ar==="data")this._readableState.flowing!==!1&&this.resume();else if(Ar==="readable"){var wr=this._readableState;!wr.endEmitted&&!wr.readableListening&&(wr.readableListening=wr.needReadable=!0,wr.emittedReadable=!1,wr.reading?wr.length&&rr(this):ht.nextTick(Yt,this))}return Rr},Zt.prototype.addListener=Zt.prototype.on;function Yt(Ar){Nt("readable nexttick read 0"),Ar.read(0)}Zt.prototype.resume=function(){var Ar=this._readableState;return Ar.flowing||(Nt("resume"),Ar.flowing=!0,er(this,Ar)),this};function er(Ar,Fr){Fr.resumeScheduled||(Fr.resumeScheduled=!0,ht.nextTick(lr,Ar,Fr))}function lr(Ar,Fr){Fr.reading||(Nt("resume read 0"),Ar.read(0)),Fr.resumeScheduled=!1,Fr.awaitDrain=0,Ar.emit("resume"),Jt(Ar),Fr.flowing&&!Fr.reading&&Ar.read(0)}Zt.prototype.pause=function(){return Nt("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Nt("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Jt(Ar){var Fr=Ar._readableState;for(Nt("flow",Fr.flowing);Fr.flowing&&Ar.read()!==null;);}Zt.prototype.wrap=function(Ar){var Fr=this,Rr=this._readableState,wr=!1;Ar.on("end",function(){if(Nt("wrapped end"),Rr.decoder&&!Rr.ended){var Or=Rr.decoder.end();Or&&Or.length&&Fr.push(Or)}Fr.push(null)}),Ar.on("data",function(Or){if(Nt("wrapped data"),Rr.decoder&&(Or=Rr.decoder.write(Or)),!(Rr.objectMode&&Or==null)&&!(!Rr.objectMode&&(!Or||!Or.length))){var Pr=Fr.push(Or);Pr||(wr=!0,Ar.pause())}});for(var Sr in Ar)this[Sr]===void 0&&typeof Ar[Sr]=="function"&&(this[Sr]=function(Or){return function(){return Ar[Or].apply(Ar,arguments)}}(Sr));for(var Br=0;Br<Kt.length;Br++)Ar.on(Kt[Br],this.emit.bind(this,Kt[Br]));return this._read=function(Or){Nt("wrapped _read",Or),wr&&(wr=!1,Ar.resume())},this},Object.defineProperty(Zt.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Zt._fromList=Ut;function Ut(Ar,Fr){if(Fr.length===0)return null;var Rr;return Fr.objectMode?Rr=Fr.buffer.shift():!Ar||Ar>=Fr.length?(Fr.decoder?Rr=Fr.buffer.join(""):Fr.buffer.length===1?Rr=Fr.buffer.head.data:Rr=Fr.buffer.concat(Fr.length),Fr.buffer.clear()):Rr=ir(Ar,Fr.buffer,Fr.decoder),Rr}function ir(Ar,Fr,Rr){var wr;return Ar<Fr.head.data.length?(wr=Fr.head.data.slice(0,Ar),Fr.head.data=Fr.head.data.slice(Ar)):Ar===Fr.head.data.length?wr=Fr.shift():wr=Rr?Cr(Ar,Fr):_r(Ar,Fr),wr}function Cr(Ar,Fr){var Rr=Fr.head,wr=1,Sr=Rr.data;for(Ar-=Sr.length;Rr=Rr.next;){var Br=Rr.data,Or=Ar>Br.length?Br.length:Ar;if(Or===Br.length?Sr+=Br:Sr+=Br.slice(0,Ar),Ar-=Or,Ar===0){Or===Br.length?(++wr,Rr.next?Fr.head=Rr.next:Fr.head=Fr.tail=null):(Fr.head=Rr,Rr.data=Br.slice(Or));break}++wr}return Fr.length-=wr,Sr}function _r(Ar,Fr){var Rr=At.allocUnsafe(Ar),wr=Fr.head,Sr=1;for(wr.data.copy(Rr),Ar-=wr.data.length;wr=wr.next;){var Br=wr.data,Or=Ar>Br.length?Br.length:Ar;if(Br.copy(Rr,Rr.length-Ar,0,Or),Ar-=Or,Ar===0){Or===Br.length?(++Sr,wr.next?Fr.head=wr.next:Fr.head=Fr.tail=null):(Fr.head=wr,wr.data=Br.slice(Or));break}++Sr}return Fr.length-=Sr,Rr}function $r(Ar){var Fr=Ar._readableState;if(Fr.length>0)throw new Error('"endReadable()" called on non-empty stream');Fr.endEmitted||(Fr.ended=!0,ht.nextTick(Tr,Fr,Ar))}function Tr(Ar,Fr){!Ar.endEmitted&&Ar.length===0&&(Ar.endEmitted=!0,Fr.readable=!1,Fr.emit("end"))}function Dr(Ar,Fr){for(var Rr=0,wr=Ar.length;Rr<wr;Rr++)if(Ar[Rr]===Fr)return Rr;return-1}return _stream_readable}var _stream_transform,hasRequired_stream_transform;function require_stream_transform(){if(hasRequired_stream_transform)return _stream_transform;hasRequired_stream_transform=1,_stream_transform=Ct;var ht=require_stream_duplex(),Et=Object.create(requireUtil());Et.inherits=inherits_browserExports,Et.inherits(Ct,ht);function yt(Bt,Dt){var Ft=this._transformState;Ft.transforming=!1;var kt=Ft.writecb;if(!kt)return this.emit("error",new Error("write callback called multiple times"));Ft.writechunk=null,Ft.writecb=null,Dt!=null&&this.push(Dt),kt(Bt);var Mt=this._readableState;Mt.reading=!1,(Mt.needReadable||Mt.length<Mt.highWaterMark)&&this._read(Mt.highWaterMark)}function Ct(Bt){if(!(this instanceof Ct))return new Ct(Bt);ht.call(this,Bt),this._transformState={afterTransform:yt.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,Bt&&(typeof Bt.transform=="function"&&(this._transform=Bt.transform),typeof Bt.flush=="function"&&(this._flush=Bt.flush)),this.on("prefinish",$t)}function $t(){var Bt=this;typeof this._flush=="function"?this._flush(function(Dt,Ft){At(Bt,Dt,Ft)}):At(this,null,null)}Ct.prototype.push=function(Bt,Dt){return this._transformState.needTransform=!1,ht.prototype.push.call(this,Bt,Dt)},Ct.prototype._transform=function(Bt,Dt,Ft){throw new Error("_transform() is not implemented")},Ct.prototype._write=function(Bt,Dt,Ft){var kt=this._transformState;if(kt.writecb=Ft,kt.writechunk=Bt,kt.writeencoding=Dt,!kt.transforming){var Mt=this._readableState;(kt.needTransform||Mt.needReadable||Mt.length<Mt.highWaterMark)&&this._read(Mt.highWaterMark)}},Ct.prototype._read=function(Bt){var Dt=this._transformState;Dt.writechunk!==null&&Dt.writecb&&!Dt.transforming?(Dt.transforming=!0,this._transform(Dt.writechunk,Dt.writeencoding,Dt.afterTransform)):Dt.needTransform=!0},Ct.prototype._destroy=function(Bt,Dt){var Ft=this;ht.prototype._destroy.call(this,Bt,function(kt){Dt(kt),Ft.emit("close")})};function At(Bt,Dt,Ft){if(Dt)return Bt.emit("error",Dt);if(Ft!=null&&Bt.push(Ft),Bt._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(Bt._transformState.transforming)throw new Error("Calling transform done when still transforming");return Bt.push(null)}return _stream_transform}var _stream_passthrough,hasRequired_stream_passthrough;function require_stream_passthrough(){if(hasRequired_stream_passthrough)return _stream_passthrough;hasRequired_stream_passthrough=1,_stream_passthrough=yt;var ht=require_stream_transform(),Et=Object.create(requireUtil());Et.inherits=inherits_browserExports,Et.inherits(yt,ht);function yt(Ct){if(!(this instanceof yt))return new yt(Ct);ht.call(this,Ct)}return yt.prototype._transform=function(Ct,$t,At){At(null,Ct)},_stream_passthrough}var hasRequiredReadableBrowser;function requireReadableBrowser(){return hasRequiredReadableBrowser||(hasRequiredReadableBrowser=1,function(ht,Et){Et=ht.exports=require_stream_readable(),Et.Stream=Et,Et.Readable=Et,Et.Writable=require_stream_writable(),Et.Duplex=require_stream_duplex(),Et.Transform=require_stream_transform(),Et.PassThrough=require_stream_passthrough()}(readableBrowser,readableBrowser.exports)),readableBrowser.exports}var sign={exports:{}},bn$5={exports:{}};bn$5.exports;(function(ht){(function(Et,yt){function Ct(Ht,Wt){if(!Ht)throw new Error(Wt||"Assertion failed")}function $t(Ht,Wt){Ht.super_=Wt;var Gt=function(){};Gt.prototype=Wt.prototype,Ht.prototype=new Gt,Ht.prototype.constructor=Ht}function At(Ht,Wt,Gt){if(At.isBN(Ht))return Ht;this.negative=0,this.words=null,this.length=0,this.red=null,Ht!==null&&((Wt==="le"||Wt==="be")&&(Gt=Wt,Wt=10),this._init(Ht||0,Wt||10,Gt||"be"))}typeof Et=="object"?Et.exports=At:yt.BN=At,At.BN=At,At.wordSize=26;var Bt;try{typeof window<"u"&&typeof window.Buffer<"u"?Bt=window.Buffer:Bt=require$$0$3.Buffer}catch{}At.isBN=function(Wt){return Wt instanceof At?!0:Wt!==null&&typeof Wt=="object"&&Wt.constructor.wordSize===At.wordSize&&Array.isArray(Wt.words)},At.max=function(Wt,Gt){return Wt.cmp(Gt)>0?Wt:Gt},At.min=function(Wt,Gt){return Wt.cmp(Gt)<0?Wt:Gt},At.prototype._init=function(Wt,Gt,Yt){if(typeof Wt=="number")return this._initNumber(Wt,Gt,Yt);if(typeof Wt=="object")return this._initArray(Wt,Gt,Yt);Gt==="hex"&&(Gt=16),Ct(Gt===(Gt|0)&&Gt>=2&&Gt<=36),Wt=Wt.toString().replace(/\s+/g,"");var er=0;Wt[0]==="-"&&(er++,this.negative=1),er<Wt.length&&(Gt===16?this._parseHex(Wt,er,Yt):(this._parseBase(Wt,Gt,er),Yt==="le"&&this._initArray(this.toArray(),Gt,Yt)))},At.prototype._initNumber=function(Wt,Gt,Yt){Wt<0&&(this.negative=1,Wt=-Wt),Wt<67108864?(this.words=[Wt&67108863],this.length=1):Wt<4503599627370496?(this.words=[Wt&67108863,Wt/67108864&67108863],this.length=2):(Ct(Wt<9007199254740992),this.words=[Wt&67108863,Wt/67108864&67108863,1],this.length=3),Yt==="le"&&this._initArray(this.toArray(),Gt,Yt)},At.prototype._initArray=function(Wt,Gt,Yt){if(Ct(typeof Wt.length=="number"),Wt.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(Wt.length/3),this.words=new Array(this.length);for(var er=0;er<this.length;er++)this.words[er]=0;var lr,Jt,Ut=0;if(Yt==="be")for(er=Wt.length-1,lr=0;er>=0;er-=3)Jt=Wt[er]|Wt[er-1]<<8|Wt[er-2]<<16,this.words[lr]|=Jt<<Ut&67108863,this.words[lr+1]=Jt>>>26-Ut&67108863,Ut+=24,Ut>=26&&(Ut-=26,lr++);else if(Yt==="le")for(er=0,lr=0;er<Wt.length;er+=3)Jt=Wt[er]|Wt[er+1]<<8|Wt[er+2]<<16,this.words[lr]|=Jt<<Ut&67108863,this.words[lr+1]=Jt>>>26-Ut&67108863,Ut+=24,Ut>=26&&(Ut-=26,lr++);return this._strip()};function Dt(Ht,Wt){var Gt=Ht.charCodeAt(Wt);if(Gt>=48&&Gt<=57)return Gt-48;if(Gt>=65&&Gt<=70)return Gt-55;if(Gt>=97&&Gt<=102)return Gt-87;Ct(!1,"Invalid character in "+Ht)}function Ft(Ht,Wt,Gt){var Yt=Dt(Ht,Gt);return Gt-1>=Wt&&(Yt|=Dt(Ht,Gt-1)<<4),Yt}At.prototype._parseHex=function(Wt,Gt,Yt){this.length=Math.ceil((Wt.length-Gt)/6),this.words=new Array(this.length);for(var er=0;er<this.length;er++)this.words[er]=0;var lr=0,Jt=0,Ut;if(Yt==="be")for(er=Wt.length-1;er>=Gt;er-=2)Ut=Ft(Wt,Gt,er)<<lr,this.words[Jt]|=Ut&67108863,lr>=18?(lr-=18,Jt+=1,this.words[Jt]|=Ut>>>26):lr+=8;else{var ir=Wt.length-Gt;for(er=ir%2===0?Gt+1:Gt;er<Wt.length;er+=2)Ut=Ft(Wt,Gt,er)<<lr,this.words[Jt]|=Ut&67108863,lr>=18?(lr-=18,Jt+=1,this.words[Jt]|=Ut>>>26):lr+=8}this._strip()};function kt(Ht,Wt,Gt,Yt){for(var er=0,lr=0,Jt=Math.min(Ht.length,Gt),Ut=Wt;Ut<Jt;Ut++){var ir=Ht.charCodeAt(Ut)-48;er*=Yt,ir>=49?lr=ir-49+10:ir>=17?lr=ir-17+10:lr=ir,Ct(ir>=0&&lr<Yt,"Invalid character"),er+=lr}return er}At.prototype._parseBase=function(Wt,Gt,Yt){this.words=[0],this.length=1;for(var er=0,lr=1;lr<=67108863;lr*=Gt)er++;er--,lr=lr/Gt|0;for(var Jt=Wt.length-Yt,Ut=Jt%er,ir=Math.min(Jt,Jt-Ut)+Yt,Cr=0,_r=Yt;_r<ir;_r+=er)Cr=kt(Wt,_r,_r+er,Gt),this.imuln(lr),this.words[0]+Cr<67108864?this.words[0]+=Cr:this._iaddn(Cr);if(Ut!==0){var $r=1;for(Cr=kt(Wt,_r,Wt.length,Gt),_r=0;_r<Ut;_r++)$r*=Gt;this.imuln($r),this.words[0]+Cr<67108864?this.words[0]+=Cr:this._iaddn(Cr)}this._strip()},At.prototype.copy=function(Wt){Wt.words=new Array(this.length);for(var Gt=0;Gt<this.length;Gt++)Wt.words[Gt]=this.words[Gt];Wt.length=this.length,Wt.negative=this.negative,Wt.red=this.red};function Mt(Ht,Wt){Ht.words=Wt.words,Ht.length=Wt.length,Ht.negative=Wt.negative,Ht.red=Wt.red}if(At.prototype._move=function(Wt){Mt(Wt,this)},At.prototype.clone=function(){var Wt=new At(null);return this.copy(Wt),Wt},At.prototype._expand=function(Wt){for(;this.length<Wt;)this.words[this.length++]=0;return this},At.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},At.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{At.prototype[Symbol.for("nodejs.util.inspect.custom")]=Nt}catch{At.prototype.inspect=Nt}else At.prototype.inspect=Nt;function Nt(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var jt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],zt=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],Vt=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];At.prototype.toString=function(Wt,Gt){Wt=Wt||10,Gt=Gt|0||1;var Yt;if(Wt===16||Wt==="hex"){Yt="";for(var er=0,lr=0,Jt=0;Jt<this.length;Jt++){var Ut=this.words[Jt],ir=((Ut<<er|lr)&16777215).toString(16);lr=Ut>>>24-er&16777215,er+=2,er>=26&&(er-=26,Jt--),lr!==0||Jt!==this.length-1?Yt=jt[6-ir.length]+ir+Yt:Yt=ir+Yt}for(lr!==0&&(Yt=lr.toString(16)+Yt);Yt.length%Gt!==0;)Yt="0"+Yt;return this.negative!==0&&(Yt="-"+Yt),Yt}if(Wt===(Wt|0)&&Wt>=2&&Wt<=36){var Cr=zt[Wt],_r=Vt[Wt];Yt="";var $r=this.clone();for($r.negative=0;!$r.isZero();){var Tr=$r.modrn(_r).toString(Wt);$r=$r.idivn(_r),$r.isZero()?Yt=Tr+Yt:Yt=jt[Cr-Tr.length]+Tr+Yt}for(this.isZero()&&(Yt="0"+Yt);Yt.length%Gt!==0;)Yt="0"+Yt;return this.negative!==0&&(Yt="-"+Yt),Yt}Ct(!1,"Base should be between 2 and 36")},At.prototype.toNumber=function(){var Wt=this.words[0];return this.length===2?Wt+=this.words[1]*67108864:this.length===3&&this.words[2]===1?Wt+=4503599627370496+this.words[1]*67108864:this.length>2&&Ct(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-Wt:Wt},At.prototype.toJSON=function(){return this.toString(16,2)},Bt&&(At.prototype.toBuffer=function(Wt,Gt){return this.toArrayLike(Bt,Wt,Gt)}),At.prototype.toArray=function(Wt,Gt){return this.toArrayLike(Array,Wt,Gt)};var Kt=function(Wt,Gt){return Wt.allocUnsafe?Wt.allocUnsafe(Gt):new Wt(Gt)};At.prototype.toArrayLike=function(Wt,Gt,Yt){this._strip();var er=this.byteLength(),lr=Yt||Math.max(1,er);Ct(er<=lr,"byte array longer than desired length"),Ct(lr>0,"Requested array length <= 0");var Jt=Kt(Wt,lr),Ut=Gt==="le"?"LE":"BE";return this["_toArrayLike"+Ut](Jt,er),Jt},At.prototype._toArrayLikeLE=function(Wt,Gt){for(var Yt=0,er=0,lr=0,Jt=0;lr<this.length;lr++){var Ut=this.words[lr]<<Jt|er;Wt[Yt++]=Ut&255,Yt<Wt.length&&(Wt[Yt++]=Ut>>8&255),Yt<Wt.length&&(Wt[Yt++]=Ut>>16&255),Jt===6?(Yt<Wt.length&&(Wt[Yt++]=Ut>>24&255),er=0,Jt=0):(er=Ut>>>24,Jt+=2)}if(Yt<Wt.length)for(Wt[Yt++]=er;Yt<Wt.length;)Wt[Yt++]=0},At.prototype._toArrayLikeBE=function(Wt,Gt){for(var Yt=Wt.length-1,er=0,lr=0,Jt=0;lr<this.length;lr++){var Ut=this.words[lr]<<Jt|er;Wt[Yt--]=Ut&255,Yt>=0&&(Wt[Yt--]=Ut>>8&255),Yt>=0&&(Wt[Yt--]=Ut>>16&255),Jt===6?(Yt>=0&&(Wt[Yt--]=Ut>>24&255),er=0,Jt=0):(er=Ut>>>24,Jt+=2)}if(Yt>=0)for(Wt[Yt--]=er;Yt>=0;)Wt[Yt--]=0},Math.clz32?At.prototype._countBits=function(Wt){return 32-Math.clz32(Wt)}:At.prototype._countBits=function(Wt){var Gt=Wt,Yt=0;return Gt>=4096&&(Yt+=13,Gt>>>=13),Gt>=64&&(Yt+=7,Gt>>>=7),Gt>=8&&(Yt+=4,Gt>>>=4),Gt>=2&&(Yt+=2,Gt>>>=2),Yt+Gt},At.prototype._zeroBits=function(Wt){if(Wt===0)return 26;var Gt=Wt,Yt=0;return Gt&8191||(Yt+=13,Gt>>>=13),Gt&127||(Yt+=7,Gt>>>=7),Gt&15||(Yt+=4,Gt>>>=4),Gt&3||(Yt+=2,Gt>>>=2),Gt&1||Yt++,Yt},At.prototype.bitLength=function(){var Wt=this.words[this.length-1],Gt=this._countBits(Wt);return(this.length-1)*26+Gt};function Xt(Ht){for(var Wt=new Array(Ht.bitLength()),Gt=0;Gt<Wt.length;Gt++){var Yt=Gt/26|0,er=Gt%26;Wt[Gt]=Ht.words[Yt]>>>er&1}return Wt}At.prototype.zeroBits=function(){if(this.isZero())return 0;for(var Wt=0,Gt=0;Gt<this.length;Gt++){var Yt=this._zeroBits(this.words[Gt]);if(Wt+=Yt,Yt!==26)break}return Wt},At.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},At.prototype.toTwos=function(Wt){return this.negative!==0?this.abs().inotn(Wt).iaddn(1):this.clone()},At.prototype.fromTwos=function(Wt){return this.testn(Wt-1)?this.notn(Wt).iaddn(1).ineg():this.clone()},At.prototype.isNeg=function(){return this.negative!==0},At.prototype.neg=function(){return this.clone().ineg()},At.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},At.prototype.iuor=function(Wt){for(;this.length<Wt.length;)this.words[this.length++]=0;for(var Gt=0;Gt<Wt.length;Gt++)this.words[Gt]=this.words[Gt]|Wt.words[Gt];return this._strip()},At.prototype.ior=function(Wt){return Ct((this.negative|Wt.negative)===0),this.iuor(Wt)},At.prototype.or=function(Wt){return this.length>Wt.length?this.clone().ior(Wt):Wt.clone().ior(this)},At.prototype.uor=function(Wt){return this.length>Wt.length?this.clone().iuor(Wt):Wt.clone().iuor(this)},At.prototype.iuand=function(Wt){var Gt;this.length>Wt.length?Gt=Wt:Gt=this;for(var Yt=0;Yt<Gt.length;Yt++)this.words[Yt]=this.words[Yt]&Wt.words[Yt];return this.length=Gt.length,this._strip()},At.prototype.iand=function(Wt){return Ct((this.negative|Wt.negative)===0),this.iuand(Wt)},At.prototype.and=function(Wt){return this.length>Wt.length?this.clone().iand(Wt):Wt.clone().iand(this)},At.prototype.uand=function(Wt){return this.length>Wt.length?this.clone().iuand(Wt):Wt.clone().iuand(this)},At.prototype.iuxor=function(Wt){var Gt,Yt;this.length>Wt.length?(Gt=this,Yt=Wt):(Gt=Wt,Yt=this);for(var er=0;er<Yt.length;er++)this.words[er]=Gt.words[er]^Yt.words[er];if(this!==Gt)for(;er<Gt.length;er++)this.words[er]=Gt.words[er];return this.length=Gt.length,this._strip()},At.prototype.ixor=function(Wt){return Ct((this.negative|Wt.negative)===0),this.iuxor(Wt)},At.prototype.xor=function(Wt){return this.length>Wt.length?this.clone().ixor(Wt):Wt.clone().ixor(this)},At.prototype.uxor=function(Wt){return this.length>Wt.length?this.clone().iuxor(Wt):Wt.clone().iuxor(this)},At.prototype.inotn=function(Wt){Ct(typeof Wt=="number"&&Wt>=0);var Gt=Math.ceil(Wt/26)|0,Yt=Wt%26;this._expand(Gt),Yt>0&&Gt--;for(var er=0;er<Gt;er++)this.words[er]=~this.words[er]&67108863;return Yt>0&&(this.words[er]=~this.words[er]&67108863>>26-Yt),this._strip()},At.prototype.notn=function(Wt){return this.clone().inotn(Wt)},At.prototype.setn=function(Wt,Gt){Ct(typeof Wt=="number"&&Wt>=0);var Yt=Wt/26|0,er=Wt%26;return this._expand(Yt+1),Gt?this.words[Yt]=this.words[Yt]|1<<er:this.words[Yt]=this.words[Yt]&~(1<<er),this._strip()},At.prototype.iadd=function(Wt){var Gt;if(this.negative!==0&&Wt.negative===0)return this.negative=0,Gt=this.isub(Wt),this.negative^=1,this._normSign();if(this.negative===0&&Wt.negative!==0)return Wt.negative=0,Gt=this.isub(Wt),Wt.negative=1,Gt._normSign();var Yt,er;this.length>Wt.length?(Yt=this,er=Wt):(Yt=Wt,er=this);for(var lr=0,Jt=0;Jt<er.length;Jt++)Gt=(Yt.words[Jt]|0)+(er.words[Jt]|0)+lr,this.words[Jt]=Gt&67108863,lr=Gt>>>26;for(;lr!==0&&Jt<Yt.length;Jt++)Gt=(Yt.words[Jt]|0)+lr,this.words[Jt]=Gt&67108863,lr=Gt>>>26;if(this.length=Yt.length,lr!==0)this.words[this.length]=lr,this.length++;else if(Yt!==this)for(;Jt<Yt.length;Jt++)this.words[Jt]=Yt.words[Jt];return this},At.prototype.add=function(Wt){var Gt;return Wt.negative!==0&&this.negative===0?(Wt.negative=0,Gt=this.sub(Wt),Wt.negative^=1,Gt):Wt.negative===0&&this.negative!==0?(this.negative=0,Gt=Wt.sub(this),this.negative=1,Gt):this.length>Wt.length?this.clone().iadd(Wt):Wt.clone().iadd(this)},At.prototype.isub=function(Wt){if(Wt.negative!==0){Wt.negative=0;var Gt=this.iadd(Wt);return Wt.negative=1,Gt._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(Wt),this.negative=1,this._normSign();var Yt=this.cmp(Wt);if(Yt===0)return this.negative=0,this.length=1,this.words[0]=0,this;var er,lr;Yt>0?(er=this,lr=Wt):(er=Wt,lr=this);for(var Jt=0,Ut=0;Ut<lr.length;Ut++)Gt=(er.words[Ut]|0)-(lr.words[Ut]|0)+Jt,Jt=Gt>>26,this.words[Ut]=Gt&67108863;for(;Jt!==0&&Ut<er.length;Ut++)Gt=(er.words[Ut]|0)+Jt,Jt=Gt>>26,this.words[Ut]=Gt&67108863;if(Jt===0&&Ut<er.length&&er!==this)for(;Ut<er.length;Ut++)this.words[Ut]=er.words[Ut];return this.length=Math.max(this.length,Ut),er!==this&&(this.negative=1),this._strip()},At.prototype.sub=function(Wt){return this.clone().isub(Wt)};function Qt(Ht,Wt,Gt){Gt.negative=Wt.negative^Ht.negative;var Yt=Ht.length+Wt.length|0;Gt.length=Yt,Yt=Yt-1|0;var er=Ht.words[0]|0,lr=Wt.words[0]|0,Jt=er*lr,Ut=Jt&67108863,ir=Jt/67108864|0;Gt.words[0]=Ut;for(var Cr=1;Cr<Yt;Cr++){for(var _r=ir>>>26,$r=ir&67108863,Tr=Math.min(Cr,Wt.length-1),Dr=Math.max(0,Cr-Ht.length+1);Dr<=Tr;Dr++){var Ar=Cr-Dr|0;er=Ht.words[Ar]|0,lr=Wt.words[Dr]|0,Jt=er*lr+$r,_r+=Jt/67108864|0,$r=Jt&67108863}Gt.words[Cr]=$r|0,ir=_r|0}return ir!==0?Gt.words[Cr]=ir|0:Gt.length--,Gt._strip()}var Zt=function(Wt,Gt,Yt){var er=Wt.words,lr=Gt.words,Jt=Yt.words,Ut=0,ir,Cr,_r,$r=er[0]|0,Tr=$r&8191,Dr=$r>>>13,Ar=er[1]|0,Fr=Ar&8191,Rr=Ar>>>13,wr=er[2]|0,Sr=wr&8191,Br=wr>>>13,Or=er[3]|0,Pr=Or&8191,Nr=Or>>>13,Lr=er[4]|0,Wr=Lr&8191,Ur=Lr>>>13,jr=er[5]|0,Kr=jr&8191,qr=jr>>>13,Zr=er[6]|0,dn=Zr&8191,Xr=Zr>>>13,un=er[7]|0,Yr=un&8191,Gr=un>>>13,Jr=er[8]|0,wn=Jr&8191,kr=Jr>>>13,Mr=er[9]|0,Ir=Mr&8191,Hr=Mr>>>13,Vr=lr[0]|0,on=Vr&8191,Qr=Vr>>>13,hn=lr[1]|0,Wn=hn&8191,_n=hn>>>13,An=lr[2]|0,Yn=An&8191,Tn=An>>>13,Nn=lr[3]|0,Zn=Nn&8191,$n=Nn>>>13,Fn=lr[4]|0,Gn=Fn&8191,gn=Fn>>>13,Rn=lr[5]|0,nu=Rn&8191,pn=Rn>>>13,yn=lr[6]|0,jn=yn&8191,Cn=yn>>>13,On=lr[7]|0,au=On&8191,In=On>>>13,Bn=lr[8]|0,Vn=Bn&8191,En=Bn>>>13,Sn=lr[9]|0,Xn=Sn&8191,uu=Sn>>>13;Yt.negative=Wt.negative^Gt.negative,Yt.length=19,ir=Math.imul(Tr,on),Cr=Math.imul(Tr,Qr),Cr=Cr+Math.imul(Dr,on)|0,_r=Math.imul(Dr,Qr);var Eu=(Ut+ir|0)+((Cr&8191)<<13)|0;Ut=(_r+(Cr>>>13)|0)+(Eu>>>26)|0,Eu&=67108863,ir=Math.imul(Fr,on),Cr=Math.imul(Fr,Qr),Cr=Cr+Math.imul(Rr,on)|0,_r=Math.imul(Rr,Qr),ir=ir+Math.imul(Tr,Wn)|0,Cr=Cr+Math.imul(Tr,_n)|0,Cr=Cr+Math.imul(Dr,Wn)|0,_r=_r+Math.imul(Dr,_n)|0;var pu=(Ut+ir|0)+((Cr&8191)<<13)|0;Ut=(_r+(Cr>>>13)|0)+(pu>>>26)|0,pu&=67108863,ir=Math.imul(Sr,on),Cr=Math.imul(Sr,Qr),Cr=Cr+Math.imul(Br,on)|0,_r=Math.imul(Br,Qr),ir=ir+Math.imul(Fr,Wn)|0,Cr=Cr+Math.imul(Fr,_n)|0,Cr=Cr+Math.imul(Rr,Wn)|0,_r=_r+Math.imul(Rr,_n)|0,ir=ir+Math.imul(Tr,Yn)|0,Cr=Cr+Math.imul(Tr,Tn)|0,Cr=Cr+Math.imul(Dr,Yn)|0,_r=_r+Math.imul(Dr,Tn)|0;var Qn=(Ut+ir|0)+((Cr&8191)<<13)|0;Ut=(_r+(Cr>>>13)|0)+(Qn>>>26)|0,Qn&=67108863,ir=Math.imul(Pr,on),Cr=Math.imul(Pr,Qr),Cr=Cr+Math.imul(Nr,on)|0,_r=Math.imul(Nr,Qr),ir=ir+Math.imul(Sr,Wn)|0,Cr=Cr+Math.imul(Sr,_n)|0,Cr=Cr+Math.imul(Br,Wn)|0,_r=_r+Math.imul(Br,_n)|0,ir=ir+Math.imul(Fr,Yn)|0,Cr=Cr+Math.imul(Fr,Tn)|0,Cr=Cr+Math.imul(Rr,Yn)|0,_r=_r+Math.imul(Rr,Tn)|0,ir=ir+Math.imul(Tr,Zn)|0,Cr=Cr+Math.imul(Tr,$n)|0,Cr=Cr+Math.imul(Dr,Zn)|0,_r=_r+Math.imul(Dr,$n)|0;var Jn=(Ut+ir|0)+((Cr&8191)<<13)|0;Ut=(_r+(Cr>>>13)|0)+(Jn>>>26)|0,Jn&=67108863,ir=Math.imul(Wr,on),Cr=Math.imul(Wr,Qr),Cr=Cr+Math.imul(Ur,on)|0,_r=Math.imul(Ur,Qr),ir=ir+Math.imul(Pr,Wn)|0,Cr=Cr+Math.imul(Pr,_n)|0,Cr=Cr+Math.imul(Nr,Wn)|0,_r=_r+Math.imul(Nr,_n)|0,ir=ir+Math.imul(Sr,Yn)|0,Cr=Cr+Math.imul(Sr,Tn)|0,Cr=Cr+Math.imul(Br,Yn)|0,_r=_r+Math.imul(Br,Tn)|0,ir=ir+Math.imul(Fr,Zn)|0,Cr=Cr+Math.imul(Fr,$n)|0,Cr=Cr+Math.imul(Rr,Zn)|0,_r=_r+Math.imul(Rr,$n)|0,ir=ir+Math.imul(Tr,Gn)|0,Cr=Cr+Math.imul(Tr,gn)|0,Cr=Cr+Math.imul(Dr,Gn)|0,_r=_r+Math.imul(Dr,gn)|0;var ou=(Ut+ir|0)+((Cr&8191)<<13)|0;Ut=(_r+(Cr>>>13)|0)+(ou>>>26)|0,ou&=67108863,ir=Math.imul(Kr,on),Cr=Math.imul(Kr,Qr),Cr=Cr+Math.imul(qr,on)|0,_r=Math.imul(qr,Qr),ir=ir+Math.imul(Wr,Wn)|0,Cr=Cr+Math.imul(Wr,_n)|0,Cr=Cr+Math.imul(Ur,Wn)|0,_r=_r+Math.imul(Ur,_n)|0,ir=ir+Math.imul(Pr,Yn)|0,Cr=Cr+Math.imul(Pr,Tn)|0,Cr=Cr+Math.imul(Nr,Yn)|0,_r=_r+Math.imul(Nr,Tn)|0,ir=ir+Math.imul(Sr,Zn)|0,Cr=Cr+Math.imul(Sr,$n)|0,Cr=Cr+Math.imul(Br,Zn)|0,_r=_r+Math.imul(Br,$n)|0,ir=ir+Math.imul(Fr,Gn)|0,Cr=Cr+Math.imul(Fr,gn)|0,Cr=Cr+Math.imul(Rr,Gn)|0,_r=_r+Math.imul(Rr,gn)|0,ir=ir+Math.imul(Tr,nu)|0,Cr=Cr+Math.imul(Tr,pn)|0,Cr=Cr+Math.imul(Dr,nu)|0,_r=_r+Math.imul(Dr,pn)|0;var mu=(Ut+ir|0)+((Cr&8191)<<13)|0;Ut=(_r+(Cr>>>13)|0)+(mu>>>26)|0,mu&=67108863,ir=Math.imul(dn,on),Cr=Math.imul(dn,Qr),Cr=Cr+Math.imul(Xr,on)|0,_r=Math.imul(Xr,Qr),ir=ir+Math.imul(Kr,Wn)|0,Cr=Cr+Math.imul(Kr,_n)|0,Cr=Cr+Math.imul(qr,Wn)|0,_r=_r+Math.imul(qr,_n)|0,ir=ir+Math.imul(Wr,Yn)|0,Cr=Cr+Math.imul(Wr,Tn)|0,Cr=Cr+Math.imul(Ur,Yn)|0,_r=_r+Math.imul(Ur,Tn)|0,ir=ir+Math.imul(Pr,Zn)|0,Cr=Cr+Math.imul(Pr,$n)|0,Cr=Cr+Math.imul(Nr,Zn)|0,_r=_r+Math.imul(Nr,$n)|0,ir=ir+Math.imul(Sr,Gn)|0,Cr=Cr+Math.imul(Sr,gn)|0,Cr=Cr+Math.imul(Br,Gn)|0,_r=_r+Math.imul(Br,gn)|0,ir=ir+Math.imul(Fr,nu)|0,Cr=Cr+Math.imul(Fr,pn)|0,Cr=Cr+Math.imul(Rr,nu)|0,_r=_r+Math.imul(Rr,pn)|0,ir=ir+Math.imul(Tr,jn)|0,Cr=Cr+Math.imul(Tr,Cn)|0,Cr=Cr+Math.imul(Dr,jn)|0,_r=_r+Math.imul(Dr,Cn)|0;var xu=(Ut+ir|0)+((Cr&8191)<<13)|0;Ut=(_r+(Cr>>>13)|0)+(xu>>>26)|0,xu&=67108863,ir=Math.imul(Yr,on),Cr=Math.imul(Yr,Qr),Cr=Cr+Math.imul(Gr,on)|0,_r=Math.imul(Gr,Qr),ir=ir+Math.imul(dn,Wn)|0,Cr=Cr+Math.imul(dn,_n)|0,Cr=Cr+Math.imul(Xr,Wn)|0,_r=_r+Math.imul(Xr,_n)|0,ir=ir+Math.imul(Kr,Yn)|0,Cr=Cr+Math.imul(Kr,Tn)|0,Cr=Cr+Math.imul(qr,Yn)|0,_r=_r+Math.imul(qr,Tn)|0,ir=ir+Math.imul(Wr,Zn)|0,Cr=Cr+Math.imul(Wr,$n)|0,Cr=Cr+Math.imul(Ur,Zn)|0,_r=_r+Math.imul(Ur,$n)|0,ir=ir+Math.imul(Pr,Gn)|0,Cr=Cr+Math.imul(Pr,gn)|0,Cr=Cr+Math.imul(Nr,Gn)|0,_r=_r+Math.imul(Nr,gn)|0,ir=ir+Math.imul(Sr,nu)|0,Cr=Cr+Math.imul(Sr,pn)|0,Cr=Cr+Math.imul(Br,nu)|0,_r=_r+Math.imul(Br,pn)|0,ir=ir+Math.imul(Fr,jn)|0,Cr=Cr+Math.imul(Fr,Cn)|0,Cr=Cr+Math.imul(Rr,jn)|0,_r=_r+Math.imul(Rr,Cn)|0,ir=ir+Math.imul(Tr,au)|0,Cr=Cr+Math.imul(Tr,In)|0,Cr=Cr+Math.imul(Dr,au)|0,_r=_r+Math.imul(Dr,In)|0;var _u=(Ut+ir|0)+((Cr&8191)<<13)|0;Ut=(_r+(Cr>>>13)|0)+(_u>>>26)|0,_u&=67108863,ir=Math.imul(wn,on),Cr=Math.imul(wn,Qr),Cr=Cr+Math.imul(kr,on)|0,_r=Math.imul(kr,Qr),ir=ir+Math.imul(Yr,Wn)|0,Cr=Cr+Math.imul(Yr,_n)|0,Cr=Cr+Math.imul(Gr,Wn)|0,_r=_r+Math.imul(Gr,_n)|0,ir=ir+Math.imul(dn,Yn)|0,Cr=Cr+Math.imul(dn,Tn)|0,Cr=Cr+Math.imul(Xr,Yn)|0,_r=_r+Math.imul(Xr,Tn)|0,ir=ir+Math.imul(Kr,Zn)|0,Cr=Cr+Math.imul(Kr,$n)|0,Cr=Cr+Math.imul(qr,Zn)|0,_r=_r+Math.imul(qr,$n)|0,ir=ir+Math.imul(Wr,Gn)|0,Cr=Cr+Math.imul(Wr,gn)|0,Cr=Cr+Math.imul(Ur,Gn)|0,_r=_r+Math.imul(Ur,gn)|0,ir=ir+Math.imul(Pr,nu)|0,Cr=Cr+Math.imul(Pr,pn)|0,Cr=Cr+Math.imul(Nr,nu)|0,_r=_r+Math.imul(Nr,pn)|0,ir=ir+Math.imul(Sr,jn)|0,Cr=Cr+Math.imul(Sr,Cn)|0,Cr=Cr+Math.imul(Br,jn)|0,_r=_r+Math.imul(Br,Cn)|0,ir=ir+Math.imul(Fr,au)|0,Cr=Cr+Math.imul(Fr,In)|0,Cr=Cr+Math.imul(Rr,au)|0,_r=_r+Math.imul(Rr,In)|0,ir=ir+Math.imul(Tr,Vn)|0,Cr=Cr+Math.imul(Tr,En)|0,Cr=Cr+Math.imul(Dr,Vn)|0,_r=_r+Math.imul(Dr,En)|0;var $u=(Ut+ir|0)+((Cr&8191)<<13)|0;Ut=(_r+(Cr>>>13)|0)+($u>>>26)|0,$u&=67108863,ir=Math.imul(Ir,on),Cr=Math.imul(Ir,Qr),Cr=Cr+Math.imul(Hr,on)|0,_r=Math.imul(Hr,Qr),ir=ir+Math.imul(wn,Wn)|0,Cr=Cr+Math.imul(wn,_n)|0,Cr=Cr+Math.imul(kr,Wn)|0,_r=_r+Math.imul(kr,_n)|0,ir=ir+Math.imul(Yr,Yn)|0,Cr=Cr+Math.imul(Yr,Tn)|0,Cr=Cr+Math.imul(Gr,Yn)|0,_r=_r+Math.imul(Gr,Tn)|0,ir=ir+Math.imul(dn,Zn)|0,Cr=Cr+Math.imul(dn,$n)|0,Cr=Cr+Math.imul(Xr,Zn)|0,_r=_r+Math.imul(Xr,$n)|0,ir=ir+Math.imul(Kr,Gn)|0,Cr=Cr+Math.imul(Kr,gn)|0,Cr=Cr+Math.imul(qr,Gn)|0,_r=_r+Math.imul(qr,gn)|0,ir=ir+Math.imul(Wr,nu)|0,Cr=Cr+Math.imul(Wr,pn)|0,Cr=Cr+Math.imul(Ur,nu)|0,_r=_r+Math.imul(Ur,pn)|0,ir=ir+Math.imul(Pr,jn)|0,Cr=Cr+Math.imul(Pr,Cn)|0,Cr=Cr+Math.imul(Nr,jn)|0,_r=_r+Math.imul(Nr,Cn)|0,ir=ir+Math.imul(Sr,au)|0,Cr=Cr+Math.imul(Sr,In)|0,Cr=Cr+Math.imul(Br,au)|0,_r=_r+Math.imul(Br,In)|0,ir=ir+Math.imul(Fr,Vn)|0,Cr=Cr+Math.imul(Fr,En)|0,Cr=Cr+Math.imul(Rr,Vn)|0,_r=_r+Math.imul(Rr,En)|0,ir=ir+Math.imul(Tr,Xn)|0,Cr=Cr+Math.imul(Tr,uu)|0,Cr=Cr+Math.imul(Dr,Xn)|0,_r=_r+Math.imul(Dr,uu)|0;var Au=(Ut+ir|0)+((Cr&8191)<<13)|0;Ut=(_r+(Cr>>>13)|0)+(Au>>>26)|0,Au&=67108863,ir=Math.imul(Ir,Wn),Cr=Math.imul(Ir,_n),Cr=Cr+Math.imul(Hr,Wn)|0,_r=Math.imul(Hr,_n),ir=ir+Math.imul(wn,Yn)|0,Cr=Cr+Math.imul(wn,Tn)|0,Cr=Cr+Math.imul(kr,Yn)|0,_r=_r+Math.imul(kr,Tn)|0,ir=ir+Math.imul(Yr,Zn)|0,Cr=Cr+Math.imul(Yr,$n)|0,Cr=Cr+Math.imul(Gr,Zn)|0,_r=_r+Math.imul(Gr,$n)|0,ir=ir+Math.imul(dn,Gn)|0,Cr=Cr+Math.imul(dn,gn)|0,Cr=Cr+Math.imul(Xr,Gn)|0,_r=_r+Math.imul(Xr,gn)|0,ir=ir+Math.imul(Kr,nu)|0,Cr=Cr+Math.imul(Kr,pn)|0,Cr=Cr+Math.imul(qr,nu)|0,_r=_r+Math.imul(qr,pn)|0,ir=ir+Math.imul(Wr,jn)|0,Cr=Cr+Math.imul(Wr,Cn)|0,Cr=Cr+Math.imul(Ur,jn)|0,_r=_r+Math.imul(Ur,Cn)|0,ir=ir+Math.imul(Pr,au)|0,Cr=Cr+Math.imul(Pr,In)|0,Cr=Cr+Math.imul(Nr,au)|0,_r=_r+Math.imul(Nr,In)|0,ir=ir+Math.imul(Sr,Vn)|0,Cr=Cr+Math.imul(Sr,En)|0,Cr=Cr+Math.imul(Br,Vn)|0,_r=_r+Math.imul(Br,En)|0,ir=ir+Math.imul(Fr,Xn)|0,Cr=Cr+Math.imul(Fr,uu)|0,Cr=Cr+Math.imul(Rr,Xn)|0,_r=_r+Math.imul(Rr,uu)|0;var Bu=(Ut+ir|0)+((Cr&8191)<<13)|0;Ut=(_r+(Cr>>>13)|0)+(Bu>>>26)|0,Bu&=67108863,ir=Math.imul(Ir,Yn),Cr=Math.imul(Ir,Tn),Cr=Cr+Math.imul(Hr,Yn)|0,_r=Math.imul(Hr,Tn),ir=ir+Math.imul(wn,Zn)|0,Cr=Cr+Math.imul(wn,$n)|0,Cr=Cr+Math.imul(kr,Zn)|0,_r=_r+Math.imul(kr,$n)|0,ir=ir+Math.imul(Yr,Gn)|0,Cr=Cr+Math.imul(Yr,gn)|0,Cr=Cr+Math.imul(Gr,Gn)|0,_r=_r+Math.imul(Gr,gn)|0,ir=ir+Math.imul(dn,nu)|0,Cr=Cr+Math.imul(dn,pn)|0,Cr=Cr+Math.imul(Xr,nu)|0,_r=_r+Math.imul(Xr,pn)|0,ir=ir+Math.imul(Kr,jn)|0,Cr=Cr+Math.imul(Kr,Cn)|0,Cr=Cr+Math.imul(qr,jn)|0,_r=_r+Math.imul(qr,Cn)|0,ir=ir+Math.imul(Wr,au)|0,Cr=Cr+Math.imul(Wr,In)|0,Cr=Cr+Math.imul(Ur,au)|0,_r=_r+Math.imul(Ur,In)|0,ir=ir+Math.imul(Pr,Vn)|0,Cr=Cr+Math.imul(Pr,En)|0,Cr=Cr+Math.imul(Nr,Vn)|0,_r=_r+Math.imul(Nr,En)|0,ir=ir+Math.imul(Sr,Xn)|0,Cr=Cr+Math.imul(Sr,uu)|0,Cr=Cr+Math.imul(Br,Xn)|0,_r=_r+Math.imul(Br,uu)|0;var Su=(Ut+ir|0)+((Cr&8191)<<13)|0;Ut=(_r+(Cr>>>13)|0)+(Su>>>26)|0,Su&=67108863,ir=Math.imul(Ir,Zn),Cr=Math.imul(Ir,$n),Cr=Cr+Math.imul(Hr,Zn)|0,_r=Math.imul(Hr,$n),ir=ir+Math.imul(wn,Gn)|0,Cr=Cr+Math.imul(wn,gn)|0,Cr=Cr+Math.imul(kr,Gn)|0,_r=_r+Math.imul(kr,gn)|0,ir=ir+Math.imul(Yr,nu)|0,Cr=Cr+Math.imul(Yr,pn)|0,Cr=Cr+Math.imul(Gr,nu)|0,_r=_r+Math.imul(Gr,pn)|0,ir=ir+Math.imul(dn,jn)|0,Cr=Cr+Math.imul(dn,Cn)|0,Cr=Cr+Math.imul(Xr,jn)|0,_r=_r+Math.imul(Xr,Cn)|0,ir=ir+Math.imul(Kr,au)|0,Cr=Cr+Math.imul(Kr,In)|0,Cr=Cr+Math.imul(qr,au)|0,_r=_r+Math.imul(qr,In)|0,ir=ir+Math.imul(Wr,Vn)|0,Cr=Cr+Math.imul(Wr,En)|0,Cr=Cr+Math.imul(Ur,Vn)|0,_r=_r+Math.imul(Ur,En)|0,ir=ir+Math.imul(Pr,Xn)|0,Cr=Cr+Math.imul(Pr,uu)|0,Cr=Cr+Math.imul(Nr,Xn)|0,_r=_r+Math.imul(Nr,uu)|0;var Ru=(Ut+ir|0)+((Cr&8191)<<13)|0;Ut=(_r+(Cr>>>13)|0)+(Ru>>>26)|0,Ru&=67108863,ir=Math.imul(Ir,Gn),Cr=Math.imul(Ir,gn),Cr=Cr+Math.imul(Hr,Gn)|0,_r=Math.imul(Hr,gn),ir=ir+Math.imul(wn,nu)|0,Cr=Cr+Math.imul(wn,pn)|0,Cr=Cr+Math.imul(kr,nu)|0,_r=_r+Math.imul(kr,pn)|0,ir=ir+Math.imul(Yr,jn)|0,Cr=Cr+Math.imul(Yr,Cn)|0,Cr=Cr+Math.imul(Gr,jn)|0,_r=_r+Math.imul(Gr,Cn)|0,ir=ir+Math.imul(dn,au)|0,Cr=Cr+Math.imul(dn,In)|0,Cr=Cr+Math.imul(Xr,au)|0,_r=_r+Math.imul(Xr,In)|0,ir=ir+Math.imul(Kr,Vn)|0,Cr=Cr+Math.imul(Kr,En)|0,Cr=Cr+Math.imul(qr,Vn)|0,_r=_r+Math.imul(qr,En)|0,ir=ir+Math.imul(Wr,Xn)|0,Cr=Cr+Math.imul(Wr,uu)|0,Cr=Cr+Math.imul(Ur,Xn)|0,_r=_r+Math.imul(Ur,uu)|0;var lu=(Ut+ir|0)+((Cr&8191)<<13)|0;Ut=(_r+(Cr>>>13)|0)+(lu>>>26)|0,lu&=67108863,ir=Math.imul(Ir,nu),Cr=Math.imul(Ir,pn),Cr=Cr+Math.imul(Hr,nu)|0,_r=Math.imul(Hr,pn),ir=ir+Math.imul(wn,jn)|0,Cr=Cr+Math.imul(wn,Cn)|0,Cr=Cr+Math.imul(kr,jn)|0,_r=_r+Math.imul(kr,Cn)|0,ir=ir+Math.imul(Yr,au)|0,Cr=Cr+Math.imul(Yr,In)|0,Cr=Cr+Math.imul(Gr,au)|0,_r=_r+Math.imul(Gr,In)|0,ir=ir+Math.imul(dn,Vn)|0,Cr=Cr+Math.imul(dn,En)|0,Cr=Cr+Math.imul(Xr,Vn)|0,_r=_r+Math.imul(Xr,En)|0,ir=ir+Math.imul(Kr,Xn)|0,Cr=Cr+Math.imul(Kr,uu)|0,Cr=Cr+Math.imul(qr,Xn)|0,_r=_r+Math.imul(qr,uu)|0;var du=(Ut+ir|0)+((Cr&8191)<<13)|0;Ut=(_r+(Cr>>>13)|0)+(du>>>26)|0,du&=67108863,ir=Math.imul(Ir,jn),Cr=Math.imul(Ir,Cn),Cr=Cr+Math.imul(Hr,jn)|0,_r=Math.imul(Hr,Cn),ir=ir+Math.imul(wn,au)|0,Cr=Cr+Math.imul(wn,In)|0,Cr=Cr+Math.imul(kr,au)|0,_r=_r+Math.imul(kr,In)|0,ir=ir+Math.imul(Yr,Vn)|0,Cr=Cr+Math.imul(Yr,En)|0,Cr=Cr+Math.imul(Gr,Vn)|0,_r=_r+Math.imul(Gr,En)|0,ir=ir+Math.imul(dn,Xn)|0,Cr=Cr+Math.imul(dn,uu)|0,Cr=Cr+Math.imul(Xr,Xn)|0,_r=_r+Math.imul(Xr,uu)|0;var fu=(Ut+ir|0)+((Cr&8191)<<13)|0;Ut=(_r+(Cr>>>13)|0)+(fu>>>26)|0,fu&=67108863,ir=Math.imul(Ir,au),Cr=Math.imul(Ir,In),Cr=Cr+Math.imul(Hr,au)|0,_r=Math.imul(Hr,In),ir=ir+Math.imul(wn,Vn)|0,Cr=Cr+Math.imul(wn,En)|0,Cr=Cr+Math.imul(kr,Vn)|0,_r=_r+Math.imul(kr,En)|0,ir=ir+Math.imul(Yr,Xn)|0,Cr=Cr+Math.imul(Yr,uu)|0,Cr=Cr+Math.imul(Gr,Xn)|0,_r=_r+Math.imul(Gr,uu)|0;var Tu=(Ut+ir|0)+((Cr&8191)<<13)|0;Ut=(_r+(Cr>>>13)|0)+(Tu>>>26)|0,Tu&=67108863,ir=Math.imul(Ir,Vn),Cr=Math.imul(Ir,En),Cr=Cr+Math.imul(Hr,Vn)|0,_r=Math.imul(Hr,En),ir=ir+Math.imul(wn,Xn)|0,Cr=Cr+Math.imul(wn,uu)|0,Cr=Cr+Math.imul(kr,Xn)|0,_r=_r+Math.imul(kr,uu)|0;var Zu=(Ut+ir|0)+((Cr&8191)<<13)|0;Ut=(_r+(Cr>>>13)|0)+(Zu>>>26)|0,Zu&=67108863,ir=Math.imul(Ir,Xn),Cr=Math.imul(Ir,uu),Cr=Cr+Math.imul(Hr,Xn)|0,_r=Math.imul(Hr,uu);var rn=(Ut+ir|0)+((Cr&8191)<<13)|0;return Ut=(_r+(Cr>>>13)|0)+(rn>>>26)|0,rn&=67108863,Jt[0]=Eu,Jt[1]=pu,Jt[2]=Qn,Jt[3]=Jn,Jt[4]=ou,Jt[5]=mu,Jt[6]=xu,Jt[7]=_u,Jt[8]=$u,Jt[9]=Au,Jt[10]=Bu,Jt[11]=Su,Jt[12]=Ru,Jt[13]=lu,Jt[14]=du,Jt[15]=fu,Jt[16]=Tu,Jt[17]=Zu,Jt[18]=rn,Ut!==0&&(Jt[19]=Ut,Yt.length++),Yt};Math.imul||(Zt=Qt);function dr(Ht,Wt,Gt){Gt.negative=Wt.negative^Ht.negative,Gt.length=Ht.length+Wt.length;for(var Yt=0,er=0,lr=0;lr<Gt.length-1;lr++){var Jt=er;er=0;for(var Ut=Yt&67108863,ir=Math.min(lr,Wt.length-1),Cr=Math.max(0,lr-Ht.length+1);Cr<=ir;Cr++){var _r=lr-Cr,$r=Ht.words[_r]|0,Tr=Wt.words[Cr]|0,Dr=$r*Tr,Ar=Dr&67108863;Jt=Jt+(Dr/67108864|0)|0,Ar=Ar+Ut|0,Ut=Ar&67108863,Jt=Jt+(Ar>>>26)|0,er+=Jt>>>26,Jt&=67108863}Gt.words[lr]=Ut,Yt=Jt,Jt=er}return Yt!==0?Gt.words[lr]=Yt:Gt.length--,Gt._strip()}function cr(Ht,Wt,Gt){return dr(Ht,Wt,Gt)}At.prototype.mulTo=function(Wt,Gt){var Yt,er=this.length+Wt.length;return this.length===10&&Wt.length===10?Yt=Zt(this,Wt,Gt):er<63?Yt=Qt(this,Wt,Gt):er<1024?Yt=dr(this,Wt,Gt):Yt=cr(this,Wt,Gt),Yt},At.prototype.mul=function(Wt){var Gt=new At(null);return Gt.words=new Array(this.length+Wt.length),this.mulTo(Wt,Gt)},At.prototype.mulf=function(Wt){var Gt=new At(null);return Gt.words=new Array(this.length+Wt.length),cr(this,Wt,Gt)},At.prototype.imul=function(Wt){return this.clone().mulTo(Wt,this)},At.prototype.imuln=function(Wt){var Gt=Wt<0;Gt&&(Wt=-Wt),Ct(typeof Wt=="number"),Ct(Wt<67108864);for(var Yt=0,er=0;er<this.length;er++){var lr=(this.words[er]|0)*Wt,Jt=(lr&67108863)+(Yt&67108863);Yt>>=26,Yt+=lr/67108864|0,Yt+=Jt>>>26,this.words[er]=Jt&67108863}return Yt!==0&&(this.words[er]=Yt,this.length++),Gt?this.ineg():this},At.prototype.muln=function(Wt){return this.clone().imuln(Wt)},At.prototype.sqr=function(){return this.mul(this)},At.prototype.isqr=function(){return this.imul(this.clone())},At.prototype.pow=function(Wt){var Gt=Xt(Wt);if(Gt.length===0)return new At(1);for(var Yt=this,er=0;er<Gt.length&&Gt[er]===0;er++,Yt=Yt.sqr());if(++er<Gt.length)for(var lr=Yt.sqr();er<Gt.length;er++,lr=lr.sqr())Gt[er]!==0&&(Yt=Yt.mul(lr));return Yt},At.prototype.iushln=function(Wt){Ct(typeof Wt=="number"&&Wt>=0);var Gt=Wt%26,Yt=(Wt-Gt)/26,er=67108863>>>26-Gt<<26-Gt,lr;if(Gt!==0){var Jt=0;for(lr=0;lr<this.length;lr++){var Ut=this.words[lr]&er,ir=(this.words[lr]|0)-Ut<<Gt;this.words[lr]=ir|Jt,Jt=Ut>>>26-Gt}Jt&&(this.words[lr]=Jt,this.length++)}if(Yt!==0){for(lr=this.length-1;lr>=0;lr--)this.words[lr+Yt]=this.words[lr];for(lr=0;lr<Yt;lr++)this.words[lr]=0;this.length+=Yt}return this._strip()},At.prototype.ishln=function(Wt){return Ct(this.negative===0),this.iushln(Wt)},At.prototype.iushrn=function(Wt,Gt,Yt){Ct(typeof Wt=="number"&&Wt>=0);var er;Gt?er=(Gt-Gt%26)/26:er=0;var lr=Wt%26,Jt=Math.min((Wt-lr)/26,this.length),Ut=67108863^67108863>>>lr<<lr,ir=Yt;if(er-=Jt,er=Math.max(0,er),ir){for(var Cr=0;Cr<Jt;Cr++)ir.words[Cr]=this.words[Cr];ir.length=Jt}if(Jt!==0)if(this.length>Jt)for(this.length-=Jt,Cr=0;Cr<this.length;Cr++)this.words[Cr]=this.words[Cr+Jt];else this.words[0]=0,this.length=1;var _r=0;for(Cr=this.length-1;Cr>=0&&(_r!==0||Cr>=er);Cr--){var $r=this.words[Cr]|0;this.words[Cr]=_r<<26-lr|$r>>>lr,_r=$r&Ut}return ir&&_r!==0&&(ir.words[ir.length++]=_r),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},At.prototype.ishrn=function(Wt,Gt,Yt){return Ct(this.negative===0),this.iushrn(Wt,Gt,Yt)},At.prototype.shln=function(Wt){return this.clone().ishln(Wt)},At.prototype.ushln=function(Wt){return this.clone().iushln(Wt)},At.prototype.shrn=function(Wt){return this.clone().ishrn(Wt)},At.prototype.ushrn=function(Wt){return this.clone().iushrn(Wt)},At.prototype.testn=function(Wt){Ct(typeof Wt=="number"&&Wt>=0);var Gt=Wt%26,Yt=(Wt-Gt)/26,er=1<<Gt;if(this.length<=Yt)return!1;var lr=this.words[Yt];return!!(lr&er)},At.prototype.imaskn=function(Wt){Ct(typeof Wt=="number"&&Wt>=0);var Gt=Wt%26,Yt=(Wt-Gt)/26;if(Ct(this.negative===0,"imaskn works only with positive numbers"),this.length<=Yt)return this;if(Gt!==0&&Yt++,this.length=Math.min(Yt,this.length),Gt!==0){var er=67108863^67108863>>>Gt<<Gt;this.words[this.length-1]&=er}return this._strip()},At.prototype.maskn=function(Wt){return this.clone().imaskn(Wt)},At.prototype.iaddn=function(Wt){return Ct(typeof Wt=="number"),Ct(Wt<67108864),Wt<0?this.isubn(-Wt):this.negative!==0?this.length===1&&(this.words[0]|0)<=Wt?(this.words[0]=Wt-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(Wt),this.negative=1,this):this._iaddn(Wt)},At.prototype._iaddn=function(Wt){this.words[0]+=Wt;for(var Gt=0;Gt<this.length&&this.words[Gt]>=67108864;Gt++)this.words[Gt]-=67108864,Gt===this.length-1?this.words[Gt+1]=1:this.words[Gt+1]++;return this.length=Math.max(this.length,Gt+1),this},At.prototype.isubn=function(Wt){if(Ct(typeof Wt=="number"),Ct(Wt<67108864),Wt<0)return this.iaddn(-Wt);if(this.negative!==0)return this.negative=0,this.iaddn(Wt),this.negative=1,this;if(this.words[0]-=Wt,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Gt=0;Gt<this.length&&this.words[Gt]<0;Gt++)this.words[Gt]+=67108864,this.words[Gt+1]-=1;return this._strip()},At.prototype.addn=function(Wt){return this.clone().iaddn(Wt)},At.prototype.subn=function(Wt){return this.clone().isubn(Wt)},At.prototype.iabs=function(){return this.negative=0,this},At.prototype.abs=function(){return this.clone().iabs()},At.prototype._ishlnsubmul=function(Wt,Gt,Yt){var er=Wt.length+Yt,lr;this._expand(er);var Jt,Ut=0;for(lr=0;lr<Wt.length;lr++){Jt=(this.words[lr+Yt]|0)+Ut;var ir=(Wt.words[lr]|0)*Gt;Jt-=ir&67108863,Ut=(Jt>>26)-(ir/67108864|0),this.words[lr+Yt]=Jt&67108863}for(;lr<this.length-Yt;lr++)Jt=(this.words[lr+Yt]|0)+Ut,Ut=Jt>>26,this.words[lr+Yt]=Jt&67108863;if(Ut===0)return this._strip();for(Ct(Ut===-1),Ut=0,lr=0;lr<this.length;lr++)Jt=-(this.words[lr]|0)+Ut,Ut=Jt>>26,this.words[lr]=Jt&67108863;return this.negative=1,this._strip()},At.prototype._wordDiv=function(Wt,Gt){var Yt=this.length-Wt.length,er=this.clone(),lr=Wt,Jt=lr.words[lr.length-1]|0,Ut=this._countBits(Jt);Yt=26-Ut,Yt!==0&&(lr=lr.ushln(Yt),er.iushln(Yt),Jt=lr.words[lr.length-1]|0);var ir=er.length-lr.length,Cr;if(Gt!=="mod"){Cr=new At(null),Cr.length=ir+1,Cr.words=new Array(Cr.length);for(var _r=0;_r<Cr.length;_r++)Cr.words[_r]=0}var $r=er.clone()._ishlnsubmul(lr,1,ir);$r.negative===0&&(er=$r,Cr&&(Cr.words[ir]=1));for(var Tr=ir-1;Tr>=0;Tr--){var Dr=(er.words[lr.length+Tr]|0)*67108864+(er.words[lr.length+Tr-1]|0);for(Dr=Math.min(Dr/Jt|0,67108863),er._ishlnsubmul(lr,Dr,Tr);er.negative!==0;)Dr--,er.negative=0,er._ishlnsubmul(lr,1,Tr),er.isZero()||(er.negative^=1);Cr&&(Cr.words[Tr]=Dr)}return Cr&&Cr._strip(),er._strip(),Gt!=="div"&&Yt!==0&&er.iushrn(Yt),{div:Cr||null,mod:er}},At.prototype.divmod=function(Wt,Gt,Yt){if(Ct(!Wt.isZero()),this.isZero())return{div:new At(0),mod:new At(0)};var er,lr,Jt;return this.negative!==0&&Wt.negative===0?(Jt=this.neg().divmod(Wt,Gt),Gt!=="mod"&&(er=Jt.div.neg()),Gt!=="div"&&(lr=Jt.mod.neg(),Yt&&lr.negative!==0&&lr.iadd(Wt)),{div:er,mod:lr}):this.negative===0&&Wt.negative!==0?(Jt=this.divmod(Wt.neg(),Gt),Gt!=="mod"&&(er=Jt.div.neg()),{div:er,mod:Jt.mod}):this.negative&Wt.negative?(Jt=this.neg().divmod(Wt.neg(),Gt),Gt!=="div"&&(lr=Jt.mod.neg(),Yt&&lr.negative!==0&&lr.isub(Wt)),{div:Jt.div,mod:lr}):Wt.length>this.length||this.cmp(Wt)<0?{div:new At(0),mod:this}:Wt.length===1?Gt==="div"?{div:this.divn(Wt.words[0]),mod:null}:Gt==="mod"?{div:null,mod:new At(this.modrn(Wt.words[0]))}:{div:this.divn(Wt.words[0]),mod:new At(this.modrn(Wt.words[0]))}:this._wordDiv(Wt,Gt)},At.prototype.div=function(Wt){return this.divmod(Wt,"div",!1).div},At.prototype.mod=function(Wt){return this.divmod(Wt,"mod",!1).mod},At.prototype.umod=function(Wt){return this.divmod(Wt,"mod",!0).mod},At.prototype.divRound=function(Wt){var Gt=this.divmod(Wt);if(Gt.mod.isZero())return Gt.div;var Yt=Gt.div.negative!==0?Gt.mod.isub(Wt):Gt.mod,er=Wt.ushrn(1),lr=Wt.andln(1),Jt=Yt.cmp(er);return Jt<0||lr===1&&Jt===0?Gt.div:Gt.div.negative!==0?Gt.div.isubn(1):Gt.div.iaddn(1)},At.prototype.modrn=function(Wt){var Gt=Wt<0;Gt&&(Wt=-Wt),Ct(Wt<=67108863);for(var Yt=(1<<26)%Wt,er=0,lr=this.length-1;lr>=0;lr--)er=(Yt*er+(this.words[lr]|0))%Wt;return Gt?-er:er},At.prototype.modn=function(Wt){return this.modrn(Wt)},At.prototype.idivn=function(Wt){var Gt=Wt<0;Gt&&(Wt=-Wt),Ct(Wt<=67108863);for(var Yt=0,er=this.length-1;er>=0;er--){var lr=(this.words[er]|0)+Yt*67108864;this.words[er]=lr/Wt|0,Yt=lr%Wt}return this._strip(),Gt?this.ineg():this},At.prototype.divn=function(Wt){return this.clone().idivn(Wt)},At.prototype.egcd=function(Wt){Ct(Wt.negative===0),Ct(!Wt.isZero());var Gt=this,Yt=Wt.clone();Gt.negative!==0?Gt=Gt.umod(Wt):Gt=Gt.clone();for(var er=new At(1),lr=new At(0),Jt=new At(0),Ut=new At(1),ir=0;Gt.isEven()&&Yt.isEven();)Gt.iushrn(1),Yt.iushrn(1),++ir;for(var Cr=Yt.clone(),_r=Gt.clone();!Gt.isZero();){for(var $r=0,Tr=1;!(Gt.words[0]&Tr)&&$r<26;++$r,Tr<<=1);if($r>0)for(Gt.iushrn($r);$r-- >0;)(er.isOdd()||lr.isOdd())&&(er.iadd(Cr),lr.isub(_r)),er.iushrn(1),lr.iushrn(1);for(var Dr=0,Ar=1;!(Yt.words[0]&Ar)&&Dr<26;++Dr,Ar<<=1);if(Dr>0)for(Yt.iushrn(Dr);Dr-- >0;)(Jt.isOdd()||Ut.isOdd())&&(Jt.iadd(Cr),Ut.isub(_r)),Jt.iushrn(1),Ut.iushrn(1);Gt.cmp(Yt)>=0?(Gt.isub(Yt),er.isub(Jt),lr.isub(Ut)):(Yt.isub(Gt),Jt.isub(er),Ut.isub(lr))}return{a:Jt,b:Ut,gcd:Yt.iushln(ir)}},At.prototype._invmp=function(Wt){Ct(Wt.negative===0),Ct(!Wt.isZero());var Gt=this,Yt=Wt.clone();Gt.negative!==0?Gt=Gt.umod(Wt):Gt=Gt.clone();for(var er=new At(1),lr=new At(0),Jt=Yt.clone();Gt.cmpn(1)>0&&Yt.cmpn(1)>0;){for(var Ut=0,ir=1;!(Gt.words[0]&ir)&&Ut<26;++Ut,ir<<=1);if(Ut>0)for(Gt.iushrn(Ut);Ut-- >0;)er.isOdd()&&er.iadd(Jt),er.iushrn(1);for(var Cr=0,_r=1;!(Yt.words[0]&_r)&&Cr<26;++Cr,_r<<=1);if(Cr>0)for(Yt.iushrn(Cr);Cr-- >0;)lr.isOdd()&&lr.iadd(Jt),lr.iushrn(1);Gt.cmp(Yt)>=0?(Gt.isub(Yt),er.isub(lr)):(Yt.isub(Gt),lr.isub(er))}var $r;return Gt.cmpn(1)===0?$r=er:$r=lr,$r.cmpn(0)<0&&$r.iadd(Wt),$r},At.prototype.gcd=function(Wt){if(this.isZero())return Wt.abs();if(Wt.isZero())return this.abs();var Gt=this.clone(),Yt=Wt.clone();Gt.negative=0,Yt.negative=0;for(var er=0;Gt.isEven()&&Yt.isEven();er++)Gt.iushrn(1),Yt.iushrn(1);do{for(;Gt.isEven();)Gt.iushrn(1);for(;Yt.isEven();)Yt.iushrn(1);var lr=Gt.cmp(Yt);if(lr<0){var Jt=Gt;Gt=Yt,Yt=Jt}else if(lr===0||Yt.cmpn(1)===0)break;Gt.isub(Yt)}while(!0);return Yt.iushln(er)},At.prototype.invm=function(Wt){return this.egcd(Wt).a.umod(Wt)},At.prototype.isEven=function(){return(this.words[0]&1)===0},At.prototype.isOdd=function(){return(this.words[0]&1)===1},At.prototype.andln=function(Wt){return this.words[0]&Wt},At.prototype.bincn=function(Wt){Ct(typeof Wt=="number");var Gt=Wt%26,Yt=(Wt-Gt)/26,er=1<<Gt;if(this.length<=Yt)return this._expand(Yt+1),this.words[Yt]|=er,this;for(var lr=er,Jt=Yt;lr!==0&&Jt<this.length;Jt++){var Ut=this.words[Jt]|0;Ut+=lr,lr=Ut>>>26,Ut&=67108863,this.words[Jt]=Ut}return lr!==0&&(this.words[Jt]=lr,this.length++),this},At.prototype.isZero=function(){return this.length===1&&this.words[0]===0},At.prototype.cmpn=function(Wt){var Gt=Wt<0;if(this.negative!==0&&!Gt)return-1;if(this.negative===0&&Gt)return 1;this._strip();var Yt;if(this.length>1)Yt=1;else{Gt&&(Wt=-Wt),Ct(Wt<=67108863,"Number is too big");var er=this.words[0]|0;Yt=er===Wt?0:er<Wt?-1:1}return this.negative!==0?-Yt|0:Yt},At.prototype.cmp=function(Wt){if(this.negative!==0&&Wt.negative===0)return-1;if(this.negative===0&&Wt.negative!==0)return 1;var Gt=this.ucmp(Wt);return this.negative!==0?-Gt|0:Gt},At.prototype.ucmp=function(Wt){if(this.length>Wt.length)return 1;if(this.length<Wt.length)return-1;for(var Gt=0,Yt=this.length-1;Yt>=0;Yt--){var er=this.words[Yt]|0,lr=Wt.words[Yt]|0;if(er!==lr){er<lr?Gt=-1:er>lr&&(Gt=1);break}}return Gt},At.prototype.gtn=function(Wt){return this.cmpn(Wt)===1},At.prototype.gt=function(Wt){return this.cmp(Wt)===1},At.prototype.gten=function(Wt){return this.cmpn(Wt)>=0},At.prototype.gte=function(Wt){return this.cmp(Wt)>=0},At.prototype.ltn=function(Wt){return this.cmpn(Wt)===-1},At.prototype.lt=function(Wt){return this.cmp(Wt)===-1},At.prototype.lten=function(Wt){return this.cmpn(Wt)<=0},At.prototype.lte=function(Wt){return this.cmp(Wt)<=0},At.prototype.eqn=function(Wt){return this.cmpn(Wt)===0},At.prototype.eq=function(Wt){return this.cmp(Wt)===0},At.red=function(Wt){return new rr(Wt)},At.prototype.toRed=function(Wt){return Ct(!this.red,"Already a number in reduction context"),Ct(this.negative===0,"red works only with positives"),Wt.convertTo(this)._forceRed(Wt)},At.prototype.fromRed=function(){return Ct(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},At.prototype._forceRed=function(Wt){return this.red=Wt,this},At.prototype.forceRed=function(Wt){return Ct(!this.red,"Already a number in reduction context"),this._forceRed(Wt)},At.prototype.redAdd=function(Wt){return Ct(this.red,"redAdd works only with red numbers"),this.red.add(this,Wt)},At.prototype.redIAdd=function(Wt){return Ct(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,Wt)},At.prototype.redSub=function(Wt){return Ct(this.red,"redSub works only with red numbers"),this.red.sub(this,Wt)},At.prototype.redISub=function(Wt){return Ct(this.red,"redISub works only with red numbers"),this.red.isub(this,Wt)},At.prototype.redShl=function(Wt){return Ct(this.red,"redShl works only with red numbers"),this.red.shl(this,Wt)},At.prototype.redMul=function(Wt){return Ct(this.red,"redMul works only with red numbers"),this.red._verify2(this,Wt),this.red.mul(this,Wt)},At.prototype.redIMul=function(Wt){return Ct(this.red,"redMul works only with red numbers"),this.red._verify2(this,Wt),this.red.imul(this,Wt)},At.prototype.redSqr=function(){return Ct(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},At.prototype.redISqr=function(){return Ct(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},At.prototype.redSqrt=function(){return Ct(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},At.prototype.redInvm=function(){return Ct(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},At.prototype.redNeg=function(){return Ct(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},At.prototype.redPow=function(Wt){return Ct(this.red&&!Wt.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,Wt)};var Er={k256:null,p224:null,p192:null,p25519:null};function pr(Ht,Wt){this.name=Ht,this.p=new At(Wt,16),this.n=this.p.bitLength(),this.k=new At(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}pr.prototype._tmp=function(){var Wt=new At(null);return Wt.words=new Array(Math.ceil(this.n/13)),Wt},pr.prototype.ireduce=function(Wt){var Gt=Wt,Yt;do this.split(Gt,this.tmp),Gt=this.imulK(Gt),Gt=Gt.iadd(this.tmp),Yt=Gt.bitLength();while(Yt>this.n);var er=Yt<this.n?-1:Gt.ucmp(this.p);return er===0?(Gt.words[0]=0,Gt.length=1):er>0?Gt.isub(this.p):Gt.strip!==void 0?Gt.strip():Gt._strip(),Gt},pr.prototype.split=function(Wt,Gt){Wt.iushrn(this.n,0,Gt)},pr.prototype.imulK=function(Wt){return Wt.imul(this.k)};function gr(){pr.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}$t(gr,pr),gr.prototype.split=function(Wt,Gt){for(var Yt=4194303,er=Math.min(Wt.length,9),lr=0;lr<er;lr++)Gt.words[lr]=Wt.words[lr];if(Gt.length=er,Wt.length<=9){Wt.words[0]=0,Wt.length=1;return}var Jt=Wt.words[9];for(Gt.words[Gt.length++]=Jt&Yt,lr=10;lr<Wt.length;lr++){var Ut=Wt.words[lr]|0;Wt.words[lr-10]=(Ut&Yt)<<4|Jt>>>22,Jt=Ut}Jt>>>=22,Wt.words[lr-10]=Jt,Jt===0&&Wt.length>10?Wt.length-=10:Wt.length-=9},gr.prototype.imulK=function(Wt){Wt.words[Wt.length]=0,Wt.words[Wt.length+1]=0,Wt.length+=2;for(var Gt=0,Yt=0;Yt<Wt.length;Yt++){var er=Wt.words[Yt]|0;Gt+=er*977,Wt.words[Yt]=Gt&67108863,Gt=er*64+(Gt/67108864|0)}return Wt.words[Wt.length-1]===0&&(Wt.length--,Wt.words[Wt.length-1]===0&&Wt.length--),Wt};function vr(){pr.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}$t(vr,pr);function yr(){pr.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}$t(yr,pr);function xr(){pr.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}$t(xr,pr),xr.prototype.imulK=function(Wt){for(var Gt=0,Yt=0;Yt<Wt.length;Yt++){var er=(Wt.words[Yt]|0)*19+Gt,lr=er&67108863;er>>>=26,Wt.words[Yt]=lr,Gt=er}return Gt!==0&&(Wt.words[Wt.length++]=Gt),Wt},At._prime=function(Wt){if(Er[Wt])return Er[Wt];var Gt;if(Wt==="k256")Gt=new gr;else if(Wt==="p224")Gt=new vr;else if(Wt==="p192")Gt=new yr;else if(Wt==="p25519")Gt=new xr;else throw new Error("Unknown prime "+Wt);return Er[Wt]=Gt,Gt};function rr(Ht){if(typeof Ht=="string"){var Wt=At._prime(Ht);this.m=Wt.p,this.prime=Wt}else Ct(Ht.gtn(1),"modulus must be greater than 1"),this.m=Ht,this.prime=null}rr.prototype._verify1=function(Wt){Ct(Wt.negative===0,"red works only with positives"),Ct(Wt.red,"red works only with red numbers")},rr.prototype._verify2=function(Wt,Gt){Ct((Wt.negative|Gt.negative)===0,"red works only with positives"),Ct(Wt.red&&Wt.red===Gt.red,"red works only with red numbers")},rr.prototype.imod=function(Wt){return this.prime?this.prime.ireduce(Wt)._forceRed(this):(Mt(Wt,Wt.umod(this.m)._forceRed(this)),Wt)},rr.prototype.neg=function(Wt){return Wt.isZero()?Wt.clone():this.m.sub(Wt)._forceRed(this)},rr.prototype.add=function(Wt,Gt){this._verify2(Wt,Gt);var Yt=Wt.add(Gt);return Yt.cmp(this.m)>=0&&Yt.isub(this.m),Yt._forceRed(this)},rr.prototype.iadd=function(Wt,Gt){this._verify2(Wt,Gt);var Yt=Wt.iadd(Gt);return Yt.cmp(this.m)>=0&&Yt.isub(this.m),Yt},rr.prototype.sub=function(Wt,Gt){this._verify2(Wt,Gt);var Yt=Wt.sub(Gt);return Yt.cmpn(0)<0&&Yt.iadd(this.m),Yt._forceRed(this)},rr.prototype.isub=function(Wt,Gt){this._verify2(Wt,Gt);var Yt=Wt.isub(Gt);return Yt.cmpn(0)<0&&Yt.iadd(this.m),Yt},rr.prototype.shl=function(Wt,Gt){return this._verify1(Wt),this.imod(Wt.ushln(Gt))},rr.prototype.imul=function(Wt,Gt){return this._verify2(Wt,Gt),this.imod(Wt.imul(Gt))},rr.prototype.mul=function(Wt,Gt){return this._verify2(Wt,Gt),this.imod(Wt.mul(Gt))},rr.prototype.isqr=function(Wt){return this.imul(Wt,Wt.clone())},rr.prototype.sqr=function(Wt){return this.mul(Wt,Wt)},rr.prototype.sqrt=function(Wt){if(Wt.isZero())return Wt.clone();var Gt=this.m.andln(3);if(Ct(Gt%2===1),Gt===3){var Yt=this.m.add(new At(1)).iushrn(2);return this.pow(Wt,Yt)}for(var er=this.m.subn(1),lr=0;!er.isZero()&&er.andln(1)===0;)lr++,er.iushrn(1);Ct(!er.isZero());var Jt=new At(1).toRed(this),Ut=Jt.redNeg(),ir=this.m.subn(1).iushrn(1),Cr=this.m.bitLength();for(Cr=new At(2*Cr*Cr).toRed(this);this.pow(Cr,ir).cmp(Ut)!==0;)Cr.redIAdd(Ut);for(var _r=this.pow(Cr,er),$r=this.pow(Wt,er.addn(1).iushrn(1)),Tr=this.pow(Wt,er),Dr=lr;Tr.cmp(Jt)!==0;){for(var Ar=Tr,Fr=0;Ar.cmp(Jt)!==0;Fr++)Ar=Ar.redSqr();Ct(Fr<Dr);var Rr=this.pow(_r,new At(1).iushln(Dr-Fr-1));$r=$r.redMul(Rr),_r=Rr.redSqr(),Tr=Tr.redMul(_r),Dr=Fr}return $r},rr.prototype.invm=function(Wt){var Gt=Wt._invmp(this.m);return Gt.negative!==0?(Gt.negative=0,this.imod(Gt).redNeg()):this.imod(Gt)},rr.prototype.pow=function(Wt,Gt){if(Gt.isZero())return new At(1).toRed(this);if(Gt.cmpn(1)===0)return Wt.clone();var Yt=4,er=new Array(1<<Yt);er[0]=new At(1).toRed(this),er[1]=Wt;for(var lr=2;lr<er.length;lr++)er[lr]=this.mul(er[lr-1],Wt);var Jt=er[0],Ut=0,ir=0,Cr=Gt.bitLength()%26;for(Cr===0&&(Cr=26),lr=Gt.length-1;lr>=0;lr--){for(var _r=Gt.words[lr],$r=Cr-1;$r>=0;$r--){var Tr=_r>>$r&1;if(Jt!==er[0]&&(Jt=this.sqr(Jt)),Tr===0&&Ut===0){ir=0;continue}Ut<<=1,Ut|=Tr,ir++,!(ir!==Yt&&(lr!==0||$r!==0))&&(Jt=this.mul(Jt,er[Ut]),ir=0,Ut=0)}Cr=26}return Jt},rr.prototype.convertTo=function(Wt){var Gt=Wt.umod(this.m);return Gt===Wt?Gt.clone():Gt},rr.prototype.convertFrom=function(Wt){var Gt=Wt.clone();return Gt.red=null,Gt},At.mont=function(Wt){return new Lt(Wt)};function Lt(Ht){rr.call(this,Ht),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new At(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}$t(Lt,rr),Lt.prototype.convertTo=function(Wt){return this.imod(Wt.ushln(this.shift))},Lt.prototype.convertFrom=function(Wt){var Gt=this.imod(Wt.mul(this.rinv));return Gt.red=null,Gt},Lt.prototype.imul=function(Wt,Gt){if(Wt.isZero()||Gt.isZero())return Wt.words[0]=0,Wt.length=1,Wt;var Yt=Wt.imul(Gt),er=Yt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),lr=Yt.isub(er).iushrn(this.shift),Jt=lr;return lr.cmp(this.m)>=0?Jt=lr.isub(this.m):lr.cmpn(0)<0&&(Jt=lr.iadd(this.m)),Jt._forceRed(this)},Lt.prototype.mul=function(Wt,Gt){if(Wt.isZero()||Gt.isZero())return new At(0)._forceRed(this);var Yt=Wt.mul(Gt),er=Yt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),lr=Yt.isub(er).iushrn(this.shift),Jt=lr;return lr.cmp(this.m)>=0?Jt=lr.isub(this.m):lr.cmpn(0)<0&&(Jt=lr.iadd(this.m)),Jt._forceRed(this)},Lt.prototype.invm=function(Wt){var Gt=this.imod(Wt._invmp(this.m).mul(this.r2));return Gt._forceRed(this)}})(ht,commonjsGlobal)})(bn$5);var bnExports$1=bn$5.exports;const BN$7=getDefaultExportFromCjs$1(bnExports$1);var browserifyRsa,hasRequiredBrowserifyRsa;function requireBrowserifyRsa(){if(hasRequiredBrowserifyRsa)return browserifyRsa;hasRequiredBrowserifyRsa=1;var ht=bnExports$1,Et=browserExports;function yt(At){var Bt=Ct(At),Dt=Bt.toRed(ht.mont(At.modulus)).redPow(new ht(At.publicExponent)).fromRed();return{blinder:Dt,unblinder:Bt.invm(At.modulus)}}function Ct(At){var Bt=At.modulus.byteLength(),Dt;do Dt=new ht(Et(Bt));while(Dt.cmp(At.modulus)>=0||!Dt.umod(At.prime1)||!Dt.umod(At.prime2));return Dt}function $t(At,Bt){var Dt=yt(Bt),Ft=Bt.modulus.byteLength(),kt=new ht(At).mul(Dt.blinder).umod(Bt.modulus),Mt=kt.toRed(ht.mont(Bt.prime1)),Nt=kt.toRed(ht.mont(Bt.prime2)),jt=Bt.coefficient,zt=Bt.prime1,Vt=Bt.prime2,Kt=Mt.redPow(Bt.exponent1).fromRed(),Xt=Nt.redPow(Bt.exponent2).fromRed(),Qt=Kt.isub(Xt).imul(jt).umod(zt).imul(Vt);return Xt.iadd(Qt).imul(Dt.unblinder).umod(Bt.modulus).toArrayLike(Buffer$g,"be",Ft)}return $t.getr=Ct,browserifyRsa=$t,browserifyRsa}var elliptic={};const name="elliptic",version$5="6.5.6",description$1="EC cryptography",main="lib/elliptic.js",files=["lib"],scripts={lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository={type:"git",url:"git@github.com:indutny/elliptic"},keywords=["EC","Elliptic","curve","Cryptography"],author="Fedor Indutny <fedor@indutny.com>",license="MIT",bugs={url:"https://github.com/indutny/elliptic/issues"},homepage="https://github.com/indutny/elliptic",devDependencies={brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies={"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},require$$0$2={name,version:version$5,description:description$1,main,files,scripts,repository,keywords,author,license,bugs,homepage,devDependencies,dependencies};var utils$p={},bn$4={exports:{}};bn$4.exports;(function(ht){(function(Et,yt){function Ct(rr,Lt){if(!rr)throw new Error(Lt||"Assertion failed")}function $t(rr,Lt){rr.super_=Lt;var Ht=function(){};Ht.prototype=Lt.prototype,rr.prototype=new Ht,rr.prototype.constructor=rr}function At(rr,Lt,Ht){if(At.isBN(rr))return rr;this.negative=0,this.words=null,this.length=0,this.red=null,rr!==null&&((Lt==="le"||Lt==="be")&&(Ht=Lt,Lt=10),this._init(rr||0,Lt||10,Ht||"be"))}typeof Et=="object"?Et.exports=At:yt.BN=At,At.BN=At,At.wordSize=26;var Bt;try{typeof window<"u"&&typeof window.Buffer<"u"?Bt=window.Buffer:Bt=require$$0$3.Buffer}catch{}At.isBN=function(Lt){return Lt instanceof At?!0:Lt!==null&&typeof Lt=="object"&&Lt.constructor.wordSize===At.wordSize&&Array.isArray(Lt.words)},At.max=function(Lt,Ht){return Lt.cmp(Ht)>0?Lt:Ht},At.min=function(Lt,Ht){return Lt.cmp(Ht)<0?Lt:Ht},At.prototype._init=function(Lt,Ht,Wt){if(typeof Lt=="number")return this._initNumber(Lt,Ht,Wt);if(typeof Lt=="object")return this._initArray(Lt,Ht,Wt);Ht==="hex"&&(Ht=16),Ct(Ht===(Ht|0)&&Ht>=2&&Ht<=36),Lt=Lt.toString().replace(/\s+/g,"");var Gt=0;Lt[0]==="-"&&(Gt++,this.negative=1),Gt<Lt.length&&(Ht===16?this._parseHex(Lt,Gt,Wt):(this._parseBase(Lt,Ht,Gt),Wt==="le"&&this._initArray(this.toArray(),Ht,Wt)))},At.prototype._initNumber=function(Lt,Ht,Wt){Lt<0&&(this.negative=1,Lt=-Lt),Lt<67108864?(this.words=[Lt&67108863],this.length=1):Lt<4503599627370496?(this.words=[Lt&67108863,Lt/67108864&67108863],this.length=2):(Ct(Lt<9007199254740992),this.words=[Lt&67108863,Lt/67108864&67108863,1],this.length=3),Wt==="le"&&this._initArray(this.toArray(),Ht,Wt)},At.prototype._initArray=function(Lt,Ht,Wt){if(Ct(typeof Lt.length=="number"),Lt.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(Lt.length/3),this.words=new Array(this.length);for(var Gt=0;Gt<this.length;Gt++)this.words[Gt]=0;var Yt,er,lr=0;if(Wt==="be")for(Gt=Lt.length-1,Yt=0;Gt>=0;Gt-=3)er=Lt[Gt]|Lt[Gt-1]<<8|Lt[Gt-2]<<16,this.words[Yt]|=er<<lr&67108863,this.words[Yt+1]=er>>>26-lr&67108863,lr+=24,lr>=26&&(lr-=26,Yt++);else if(Wt==="le")for(Gt=0,Yt=0;Gt<Lt.length;Gt+=3)er=Lt[Gt]|Lt[Gt+1]<<8|Lt[Gt+2]<<16,this.words[Yt]|=er<<lr&67108863,this.words[Yt+1]=er>>>26-lr&67108863,lr+=24,lr>=26&&(lr-=26,Yt++);return this.strip()};function Dt(rr,Lt){var Ht=rr.charCodeAt(Lt);return Ht>=65&&Ht<=70?Ht-55:Ht>=97&&Ht<=102?Ht-87:Ht-48&15}function Ft(rr,Lt,Ht){var Wt=Dt(rr,Ht);return Ht-1>=Lt&&(Wt|=Dt(rr,Ht-1)<<4),Wt}At.prototype._parseHex=function(Lt,Ht,Wt){this.length=Math.ceil((Lt.length-Ht)/6),this.words=new Array(this.length);for(var Gt=0;Gt<this.length;Gt++)this.words[Gt]=0;var Yt=0,er=0,lr;if(Wt==="be")for(Gt=Lt.length-1;Gt>=Ht;Gt-=2)lr=Ft(Lt,Ht,Gt)<<Yt,this.words[er]|=lr&67108863,Yt>=18?(Yt-=18,er+=1,this.words[er]|=lr>>>26):Yt+=8;else{var Jt=Lt.length-Ht;for(Gt=Jt%2===0?Ht+1:Ht;Gt<Lt.length;Gt+=2)lr=Ft(Lt,Ht,Gt)<<Yt,this.words[er]|=lr&67108863,Yt>=18?(Yt-=18,er+=1,this.words[er]|=lr>>>26):Yt+=8}this.strip()};function kt(rr,Lt,Ht,Wt){for(var Gt=0,Yt=Math.min(rr.length,Ht),er=Lt;er<Yt;er++){var lr=rr.charCodeAt(er)-48;Gt*=Wt,lr>=49?Gt+=lr-49+10:lr>=17?Gt+=lr-17+10:Gt+=lr}return Gt}At.prototype._parseBase=function(Lt,Ht,Wt){this.words=[0],this.length=1;for(var Gt=0,Yt=1;Yt<=67108863;Yt*=Ht)Gt++;Gt--,Yt=Yt/Ht|0;for(var er=Lt.length-Wt,lr=er%Gt,Jt=Math.min(er,er-lr)+Wt,Ut=0,ir=Wt;ir<Jt;ir+=Gt)Ut=kt(Lt,ir,ir+Gt,Ht),this.imuln(Yt),this.words[0]+Ut<67108864?this.words[0]+=Ut:this._iaddn(Ut);if(lr!==0){var Cr=1;for(Ut=kt(Lt,ir,Lt.length,Ht),ir=0;ir<lr;ir++)Cr*=Ht;this.imuln(Cr),this.words[0]+Ut<67108864?this.words[0]+=Ut:this._iaddn(Ut)}this.strip()},At.prototype.copy=function(Lt){Lt.words=new Array(this.length);for(var Ht=0;Ht<this.length;Ht++)Lt.words[Ht]=this.words[Ht];Lt.length=this.length,Lt.negative=this.negative,Lt.red=this.red},At.prototype.clone=function(){var Lt=new At(null);return this.copy(Lt),Lt},At.prototype._expand=function(Lt){for(;this.length<Lt;)this.words[this.length++]=0;return this},At.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},At.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},At.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var Mt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],Nt=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],jt=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];At.prototype.toString=function(Lt,Ht){Lt=Lt||10,Ht=Ht|0||1;var Wt;if(Lt===16||Lt==="hex"){Wt="";for(var Gt=0,Yt=0,er=0;er<this.length;er++){var lr=this.words[er],Jt=((lr<<Gt|Yt)&16777215).toString(16);Yt=lr>>>24-Gt&16777215,Yt!==0||er!==this.length-1?Wt=Mt[6-Jt.length]+Jt+Wt:Wt=Jt+Wt,Gt+=2,Gt>=26&&(Gt-=26,er--)}for(Yt!==0&&(Wt=Yt.toString(16)+Wt);Wt.length%Ht!==0;)Wt="0"+Wt;return this.negative!==0&&(Wt="-"+Wt),Wt}if(Lt===(Lt|0)&&Lt>=2&&Lt<=36){var Ut=Nt[Lt],ir=jt[Lt];Wt="";var Cr=this.clone();for(Cr.negative=0;!Cr.isZero();){var _r=Cr.modn(ir).toString(Lt);Cr=Cr.idivn(ir),Cr.isZero()?Wt=_r+Wt:Wt=Mt[Ut-_r.length]+_r+Wt}for(this.isZero()&&(Wt="0"+Wt);Wt.length%Ht!==0;)Wt="0"+Wt;return this.negative!==0&&(Wt="-"+Wt),Wt}Ct(!1,"Base should be between 2 and 36")},At.prototype.toNumber=function(){var Lt=this.words[0];return this.length===2?Lt+=this.words[1]*67108864:this.length===3&&this.words[2]===1?Lt+=4503599627370496+this.words[1]*67108864:this.length>2&&Ct(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-Lt:Lt},At.prototype.toJSON=function(){return this.toString(16)},At.prototype.toBuffer=function(Lt,Ht){return Ct(typeof Bt<"u"),this.toArrayLike(Bt,Lt,Ht)},At.prototype.toArray=function(Lt,Ht){return this.toArrayLike(Array,Lt,Ht)},At.prototype.toArrayLike=function(Lt,Ht,Wt){var Gt=this.byteLength(),Yt=Wt||Math.max(1,Gt);Ct(Gt<=Yt,"byte array longer than desired length"),Ct(Yt>0,"Requested array length <= 0"),this.strip();var er=Ht==="le",lr=new Lt(Yt),Jt,Ut,ir=this.clone();if(er){for(Ut=0;!ir.isZero();Ut++)Jt=ir.andln(255),ir.iushrn(8),lr[Ut]=Jt;for(;Ut<Yt;Ut++)lr[Ut]=0}else{for(Ut=0;Ut<Yt-Gt;Ut++)lr[Ut]=0;for(Ut=0;!ir.isZero();Ut++)Jt=ir.andln(255),ir.iushrn(8),lr[Yt-Ut-1]=Jt}return lr},Math.clz32?At.prototype._countBits=function(Lt){return 32-Math.clz32(Lt)}:At.prototype._countBits=function(Lt){var Ht=Lt,Wt=0;return Ht>=4096&&(Wt+=13,Ht>>>=13),Ht>=64&&(Wt+=7,Ht>>>=7),Ht>=8&&(Wt+=4,Ht>>>=4),Ht>=2&&(Wt+=2,Ht>>>=2),Wt+Ht},At.prototype._zeroBits=function(Lt){if(Lt===0)return 26;var Ht=Lt,Wt=0;return Ht&8191||(Wt+=13,Ht>>>=13),Ht&127||(Wt+=7,Ht>>>=7),Ht&15||(Wt+=4,Ht>>>=4),Ht&3||(Wt+=2,Ht>>>=2),Ht&1||Wt++,Wt},At.prototype.bitLength=function(){var Lt=this.words[this.length-1],Ht=this._countBits(Lt);return(this.length-1)*26+Ht};function zt(rr){for(var Lt=new Array(rr.bitLength()),Ht=0;Ht<Lt.length;Ht++){var Wt=Ht/26|0,Gt=Ht%26;Lt[Ht]=(rr.words[Wt]&1<<Gt)>>>Gt}return Lt}At.prototype.zeroBits=function(){if(this.isZero())return 0;for(var Lt=0,Ht=0;Ht<this.length;Ht++){var Wt=this._zeroBits(this.words[Ht]);if(Lt+=Wt,Wt!==26)break}return Lt},At.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},At.prototype.toTwos=function(Lt){return this.negative!==0?this.abs().inotn(Lt).iaddn(1):this.clone()},At.prototype.fromTwos=function(Lt){return this.testn(Lt-1)?this.notn(Lt).iaddn(1).ineg():this.clone()},At.prototype.isNeg=function(){return this.negative!==0},At.prototype.neg=function(){return this.clone().ineg()},At.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},At.prototype.iuor=function(Lt){for(;this.length<Lt.length;)this.words[this.length++]=0;for(var Ht=0;Ht<Lt.length;Ht++)this.words[Ht]=this.words[Ht]|Lt.words[Ht];return this.strip()},At.prototype.ior=function(Lt){return Ct((this.negative|Lt.negative)===0),this.iuor(Lt)},At.prototype.or=function(Lt){return this.length>Lt.length?this.clone().ior(Lt):Lt.clone().ior(this)},At.prototype.uor=function(Lt){return this.length>Lt.length?this.clone().iuor(Lt):Lt.clone().iuor(this)},At.prototype.iuand=function(Lt){var Ht;this.length>Lt.length?Ht=Lt:Ht=this;for(var Wt=0;Wt<Ht.length;Wt++)this.words[Wt]=this.words[Wt]&Lt.words[Wt];return this.length=Ht.length,this.strip()},At.prototype.iand=function(Lt){return Ct((this.negative|Lt.negative)===0),this.iuand(Lt)},At.prototype.and=function(Lt){return this.length>Lt.length?this.clone().iand(Lt):Lt.clone().iand(this)},At.prototype.uand=function(Lt){return this.length>Lt.length?this.clone().iuand(Lt):Lt.clone().iuand(this)},At.prototype.iuxor=function(Lt){var Ht,Wt;this.length>Lt.length?(Ht=this,Wt=Lt):(Ht=Lt,Wt=this);for(var Gt=0;Gt<Wt.length;Gt++)this.words[Gt]=Ht.words[Gt]^Wt.words[Gt];if(this!==Ht)for(;Gt<Ht.length;Gt++)this.words[Gt]=Ht.words[Gt];return this.length=Ht.length,this.strip()},At.prototype.ixor=function(Lt){return Ct((this.negative|Lt.negative)===0),this.iuxor(Lt)},At.prototype.xor=function(Lt){return this.length>Lt.length?this.clone().ixor(Lt):Lt.clone().ixor(this)},At.prototype.uxor=function(Lt){return this.length>Lt.length?this.clone().iuxor(Lt):Lt.clone().iuxor(this)},At.prototype.inotn=function(Lt){Ct(typeof Lt=="number"&&Lt>=0);var Ht=Math.ceil(Lt/26)|0,Wt=Lt%26;this._expand(Ht),Wt>0&&Ht--;for(var Gt=0;Gt<Ht;Gt++)this.words[Gt]=~this.words[Gt]&67108863;return Wt>0&&(this.words[Gt]=~this.words[Gt]&67108863>>26-Wt),this.strip()},At.prototype.notn=function(Lt){return this.clone().inotn(Lt)},At.prototype.setn=function(Lt,Ht){Ct(typeof Lt=="number"&&Lt>=0);var Wt=Lt/26|0,Gt=Lt%26;return this._expand(Wt+1),Ht?this.words[Wt]=this.words[Wt]|1<<Gt:this.words[Wt]=this.words[Wt]&~(1<<Gt),this.strip()},At.prototype.iadd=function(Lt){var Ht;if(this.negative!==0&&Lt.negative===0)return this.negative=0,Ht=this.isub(Lt),this.negative^=1,this._normSign();if(this.negative===0&&Lt.negative!==0)return Lt.negative=0,Ht=this.isub(Lt),Lt.negative=1,Ht._normSign();var Wt,Gt;this.length>Lt.length?(Wt=this,Gt=Lt):(Wt=Lt,Gt=this);for(var Yt=0,er=0;er<Gt.length;er++)Ht=(Wt.words[er]|0)+(Gt.words[er]|0)+Yt,this.words[er]=Ht&67108863,Yt=Ht>>>26;for(;Yt!==0&&er<Wt.length;er++)Ht=(Wt.words[er]|0)+Yt,this.words[er]=Ht&67108863,Yt=Ht>>>26;if(this.length=Wt.length,Yt!==0)this.words[this.length]=Yt,this.length++;else if(Wt!==this)for(;er<Wt.length;er++)this.words[er]=Wt.words[er];return this},At.prototype.add=function(Lt){var Ht;return Lt.negative!==0&&this.negative===0?(Lt.negative=0,Ht=this.sub(Lt),Lt.negative^=1,Ht):Lt.negative===0&&this.negative!==0?(this.negative=0,Ht=Lt.sub(this),this.negative=1,Ht):this.length>Lt.length?this.clone().iadd(Lt):Lt.clone().iadd(this)},At.prototype.isub=function(Lt){if(Lt.negative!==0){Lt.negative=0;var Ht=this.iadd(Lt);return Lt.negative=1,Ht._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(Lt),this.negative=1,this._normSign();var Wt=this.cmp(Lt);if(Wt===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Gt,Yt;Wt>0?(Gt=this,Yt=Lt):(Gt=Lt,Yt=this);for(var er=0,lr=0;lr<Yt.length;lr++)Ht=(Gt.words[lr]|0)-(Yt.words[lr]|0)+er,er=Ht>>26,this.words[lr]=Ht&67108863;for(;er!==0&&lr<Gt.length;lr++)Ht=(Gt.words[lr]|0)+er,er=Ht>>26,this.words[lr]=Ht&67108863;if(er===0&&lr<Gt.length&&Gt!==this)for(;lr<Gt.length;lr++)this.words[lr]=Gt.words[lr];return this.length=Math.max(this.length,lr),Gt!==this&&(this.negative=1),this.strip()},At.prototype.sub=function(Lt){return this.clone().isub(Lt)};function Vt(rr,Lt,Ht){Ht.negative=Lt.negative^rr.negative;var Wt=rr.length+Lt.length|0;Ht.length=Wt,Wt=Wt-1|0;var Gt=rr.words[0]|0,Yt=Lt.words[0]|0,er=Gt*Yt,lr=er&67108863,Jt=er/67108864|0;Ht.words[0]=lr;for(var Ut=1;Ut<Wt;Ut++){for(var ir=Jt>>>26,Cr=Jt&67108863,_r=Math.min(Ut,Lt.length-1),$r=Math.max(0,Ut-rr.length+1);$r<=_r;$r++){var Tr=Ut-$r|0;Gt=rr.words[Tr]|0,Yt=Lt.words[$r]|0,er=Gt*Yt+Cr,ir+=er/67108864|0,Cr=er&67108863}Ht.words[Ut]=Cr|0,Jt=ir|0}return Jt!==0?Ht.words[Ut]=Jt|0:Ht.length--,Ht.strip()}var Kt=function(Lt,Ht,Wt){var Gt=Lt.words,Yt=Ht.words,er=Wt.words,lr=0,Jt,Ut,ir,Cr=Gt[0]|0,_r=Cr&8191,$r=Cr>>>13,Tr=Gt[1]|0,Dr=Tr&8191,Ar=Tr>>>13,Fr=Gt[2]|0,Rr=Fr&8191,wr=Fr>>>13,Sr=Gt[3]|0,Br=Sr&8191,Or=Sr>>>13,Pr=Gt[4]|0,Nr=Pr&8191,Lr=Pr>>>13,Wr=Gt[5]|0,Ur=Wr&8191,jr=Wr>>>13,Kr=Gt[6]|0,qr=Kr&8191,Zr=Kr>>>13,dn=Gt[7]|0,Xr=dn&8191,un=dn>>>13,Yr=Gt[8]|0,Gr=Yr&8191,Jr=Yr>>>13,wn=Gt[9]|0,kr=wn&8191,Mr=wn>>>13,Ir=Yt[0]|0,Hr=Ir&8191,Vr=Ir>>>13,on=Yt[1]|0,Qr=on&8191,hn=on>>>13,Wn=Yt[2]|0,_n=Wn&8191,An=Wn>>>13,Yn=Yt[3]|0,Tn=Yn&8191,Nn=Yn>>>13,Zn=Yt[4]|0,$n=Zn&8191,Fn=Zn>>>13,Gn=Yt[5]|0,gn=Gn&8191,Rn=Gn>>>13,nu=Yt[6]|0,pn=nu&8191,yn=nu>>>13,jn=Yt[7]|0,Cn=jn&8191,On=jn>>>13,au=Yt[8]|0,In=au&8191,Bn=au>>>13,Vn=Yt[9]|0,En=Vn&8191,Sn=Vn>>>13;Wt.negative=Lt.negative^Ht.negative,Wt.length=19,Jt=Math.imul(_r,Hr),Ut=Math.imul(_r,Vr),Ut=Ut+Math.imul($r,Hr)|0,ir=Math.imul($r,Vr);var Xn=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Xn>>>26)|0,Xn&=67108863,Jt=Math.imul(Dr,Hr),Ut=Math.imul(Dr,Vr),Ut=Ut+Math.imul(Ar,Hr)|0,ir=Math.imul(Ar,Vr),Jt=Jt+Math.imul(_r,Qr)|0,Ut=Ut+Math.imul(_r,hn)|0,Ut=Ut+Math.imul($r,Qr)|0,ir=ir+Math.imul($r,hn)|0;var uu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(uu>>>26)|0,uu&=67108863,Jt=Math.imul(Rr,Hr),Ut=Math.imul(Rr,Vr),Ut=Ut+Math.imul(wr,Hr)|0,ir=Math.imul(wr,Vr),Jt=Jt+Math.imul(Dr,Qr)|0,Ut=Ut+Math.imul(Dr,hn)|0,Ut=Ut+Math.imul(Ar,Qr)|0,ir=ir+Math.imul(Ar,hn)|0,Jt=Jt+Math.imul(_r,_n)|0,Ut=Ut+Math.imul(_r,An)|0,Ut=Ut+Math.imul($r,_n)|0,ir=ir+Math.imul($r,An)|0;var Eu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Eu>>>26)|0,Eu&=67108863,Jt=Math.imul(Br,Hr),Ut=Math.imul(Br,Vr),Ut=Ut+Math.imul(Or,Hr)|0,ir=Math.imul(Or,Vr),Jt=Jt+Math.imul(Rr,Qr)|0,Ut=Ut+Math.imul(Rr,hn)|0,Ut=Ut+Math.imul(wr,Qr)|0,ir=ir+Math.imul(wr,hn)|0,Jt=Jt+Math.imul(Dr,_n)|0,Ut=Ut+Math.imul(Dr,An)|0,Ut=Ut+Math.imul(Ar,_n)|0,ir=ir+Math.imul(Ar,An)|0,Jt=Jt+Math.imul(_r,Tn)|0,Ut=Ut+Math.imul(_r,Nn)|0,Ut=Ut+Math.imul($r,Tn)|0,ir=ir+Math.imul($r,Nn)|0;var pu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(pu>>>26)|0,pu&=67108863,Jt=Math.imul(Nr,Hr),Ut=Math.imul(Nr,Vr),Ut=Ut+Math.imul(Lr,Hr)|0,ir=Math.imul(Lr,Vr),Jt=Jt+Math.imul(Br,Qr)|0,Ut=Ut+Math.imul(Br,hn)|0,Ut=Ut+Math.imul(Or,Qr)|0,ir=ir+Math.imul(Or,hn)|0,Jt=Jt+Math.imul(Rr,_n)|0,Ut=Ut+Math.imul(Rr,An)|0,Ut=Ut+Math.imul(wr,_n)|0,ir=ir+Math.imul(wr,An)|0,Jt=Jt+Math.imul(Dr,Tn)|0,Ut=Ut+Math.imul(Dr,Nn)|0,Ut=Ut+Math.imul(Ar,Tn)|0,ir=ir+Math.imul(Ar,Nn)|0,Jt=Jt+Math.imul(_r,$n)|0,Ut=Ut+Math.imul(_r,Fn)|0,Ut=Ut+Math.imul($r,$n)|0,ir=ir+Math.imul($r,Fn)|0;var Qn=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Qn>>>26)|0,Qn&=67108863,Jt=Math.imul(Ur,Hr),Ut=Math.imul(Ur,Vr),Ut=Ut+Math.imul(jr,Hr)|0,ir=Math.imul(jr,Vr),Jt=Jt+Math.imul(Nr,Qr)|0,Ut=Ut+Math.imul(Nr,hn)|0,Ut=Ut+Math.imul(Lr,Qr)|0,ir=ir+Math.imul(Lr,hn)|0,Jt=Jt+Math.imul(Br,_n)|0,Ut=Ut+Math.imul(Br,An)|0,Ut=Ut+Math.imul(Or,_n)|0,ir=ir+Math.imul(Or,An)|0,Jt=Jt+Math.imul(Rr,Tn)|0,Ut=Ut+Math.imul(Rr,Nn)|0,Ut=Ut+Math.imul(wr,Tn)|0,ir=ir+Math.imul(wr,Nn)|0,Jt=Jt+Math.imul(Dr,$n)|0,Ut=Ut+Math.imul(Dr,Fn)|0,Ut=Ut+Math.imul(Ar,$n)|0,ir=ir+Math.imul(Ar,Fn)|0,Jt=Jt+Math.imul(_r,gn)|0,Ut=Ut+Math.imul(_r,Rn)|0,Ut=Ut+Math.imul($r,gn)|0,ir=ir+Math.imul($r,Rn)|0;var Jn=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Jn>>>26)|0,Jn&=67108863,Jt=Math.imul(qr,Hr),Ut=Math.imul(qr,Vr),Ut=Ut+Math.imul(Zr,Hr)|0,ir=Math.imul(Zr,Vr),Jt=Jt+Math.imul(Ur,Qr)|0,Ut=Ut+Math.imul(Ur,hn)|0,Ut=Ut+Math.imul(jr,Qr)|0,ir=ir+Math.imul(jr,hn)|0,Jt=Jt+Math.imul(Nr,_n)|0,Ut=Ut+Math.imul(Nr,An)|0,Ut=Ut+Math.imul(Lr,_n)|0,ir=ir+Math.imul(Lr,An)|0,Jt=Jt+Math.imul(Br,Tn)|0,Ut=Ut+Math.imul(Br,Nn)|0,Ut=Ut+Math.imul(Or,Tn)|0,ir=ir+Math.imul(Or,Nn)|0,Jt=Jt+Math.imul(Rr,$n)|0,Ut=Ut+Math.imul(Rr,Fn)|0,Ut=Ut+Math.imul(wr,$n)|0,ir=ir+Math.imul(wr,Fn)|0,Jt=Jt+Math.imul(Dr,gn)|0,Ut=Ut+Math.imul(Dr,Rn)|0,Ut=Ut+Math.imul(Ar,gn)|0,ir=ir+Math.imul(Ar,Rn)|0,Jt=Jt+Math.imul(_r,pn)|0,Ut=Ut+Math.imul(_r,yn)|0,Ut=Ut+Math.imul($r,pn)|0,ir=ir+Math.imul($r,yn)|0;var ou=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(ou>>>26)|0,ou&=67108863,Jt=Math.imul(Xr,Hr),Ut=Math.imul(Xr,Vr),Ut=Ut+Math.imul(un,Hr)|0,ir=Math.imul(un,Vr),Jt=Jt+Math.imul(qr,Qr)|0,Ut=Ut+Math.imul(qr,hn)|0,Ut=Ut+Math.imul(Zr,Qr)|0,ir=ir+Math.imul(Zr,hn)|0,Jt=Jt+Math.imul(Ur,_n)|0,Ut=Ut+Math.imul(Ur,An)|0,Ut=Ut+Math.imul(jr,_n)|0,ir=ir+Math.imul(jr,An)|0,Jt=Jt+Math.imul(Nr,Tn)|0,Ut=Ut+Math.imul(Nr,Nn)|0,Ut=Ut+Math.imul(Lr,Tn)|0,ir=ir+Math.imul(Lr,Nn)|0,Jt=Jt+Math.imul(Br,$n)|0,Ut=Ut+Math.imul(Br,Fn)|0,Ut=Ut+Math.imul(Or,$n)|0,ir=ir+Math.imul(Or,Fn)|0,Jt=Jt+Math.imul(Rr,gn)|0,Ut=Ut+Math.imul(Rr,Rn)|0,Ut=Ut+Math.imul(wr,gn)|0,ir=ir+Math.imul(wr,Rn)|0,Jt=Jt+Math.imul(Dr,pn)|0,Ut=Ut+Math.imul(Dr,yn)|0,Ut=Ut+Math.imul(Ar,pn)|0,ir=ir+Math.imul(Ar,yn)|0,Jt=Jt+Math.imul(_r,Cn)|0,Ut=Ut+Math.imul(_r,On)|0,Ut=Ut+Math.imul($r,Cn)|0,ir=ir+Math.imul($r,On)|0;var mu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(mu>>>26)|0,mu&=67108863,Jt=Math.imul(Gr,Hr),Ut=Math.imul(Gr,Vr),Ut=Ut+Math.imul(Jr,Hr)|0,ir=Math.imul(Jr,Vr),Jt=Jt+Math.imul(Xr,Qr)|0,Ut=Ut+Math.imul(Xr,hn)|0,Ut=Ut+Math.imul(un,Qr)|0,ir=ir+Math.imul(un,hn)|0,Jt=Jt+Math.imul(qr,_n)|0,Ut=Ut+Math.imul(qr,An)|0,Ut=Ut+Math.imul(Zr,_n)|0,ir=ir+Math.imul(Zr,An)|0,Jt=Jt+Math.imul(Ur,Tn)|0,Ut=Ut+Math.imul(Ur,Nn)|0,Ut=Ut+Math.imul(jr,Tn)|0,ir=ir+Math.imul(jr,Nn)|0,Jt=Jt+Math.imul(Nr,$n)|0,Ut=Ut+Math.imul(Nr,Fn)|0,Ut=Ut+Math.imul(Lr,$n)|0,ir=ir+Math.imul(Lr,Fn)|0,Jt=Jt+Math.imul(Br,gn)|0,Ut=Ut+Math.imul(Br,Rn)|0,Ut=Ut+Math.imul(Or,gn)|0,ir=ir+Math.imul(Or,Rn)|0,Jt=Jt+Math.imul(Rr,pn)|0,Ut=Ut+Math.imul(Rr,yn)|0,Ut=Ut+Math.imul(wr,pn)|0,ir=ir+Math.imul(wr,yn)|0,Jt=Jt+Math.imul(Dr,Cn)|0,Ut=Ut+Math.imul(Dr,On)|0,Ut=Ut+Math.imul(Ar,Cn)|0,ir=ir+Math.imul(Ar,On)|0,Jt=Jt+Math.imul(_r,In)|0,Ut=Ut+Math.imul(_r,Bn)|0,Ut=Ut+Math.imul($r,In)|0,ir=ir+Math.imul($r,Bn)|0;var xu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(xu>>>26)|0,xu&=67108863,Jt=Math.imul(kr,Hr),Ut=Math.imul(kr,Vr),Ut=Ut+Math.imul(Mr,Hr)|0,ir=Math.imul(Mr,Vr),Jt=Jt+Math.imul(Gr,Qr)|0,Ut=Ut+Math.imul(Gr,hn)|0,Ut=Ut+Math.imul(Jr,Qr)|0,ir=ir+Math.imul(Jr,hn)|0,Jt=Jt+Math.imul(Xr,_n)|0,Ut=Ut+Math.imul(Xr,An)|0,Ut=Ut+Math.imul(un,_n)|0,ir=ir+Math.imul(un,An)|0,Jt=Jt+Math.imul(qr,Tn)|0,Ut=Ut+Math.imul(qr,Nn)|0,Ut=Ut+Math.imul(Zr,Tn)|0,ir=ir+Math.imul(Zr,Nn)|0,Jt=Jt+Math.imul(Ur,$n)|0,Ut=Ut+Math.imul(Ur,Fn)|0,Ut=Ut+Math.imul(jr,$n)|0,ir=ir+Math.imul(jr,Fn)|0,Jt=Jt+Math.imul(Nr,gn)|0,Ut=Ut+Math.imul(Nr,Rn)|0,Ut=Ut+Math.imul(Lr,gn)|0,ir=ir+Math.imul(Lr,Rn)|0,Jt=Jt+Math.imul(Br,pn)|0,Ut=Ut+Math.imul(Br,yn)|0,Ut=Ut+Math.imul(Or,pn)|0,ir=ir+Math.imul(Or,yn)|0,Jt=Jt+Math.imul(Rr,Cn)|0,Ut=Ut+Math.imul(Rr,On)|0,Ut=Ut+Math.imul(wr,Cn)|0,ir=ir+Math.imul(wr,On)|0,Jt=Jt+Math.imul(Dr,In)|0,Ut=Ut+Math.imul(Dr,Bn)|0,Ut=Ut+Math.imul(Ar,In)|0,ir=ir+Math.imul(Ar,Bn)|0,Jt=Jt+Math.imul(_r,En)|0,Ut=Ut+Math.imul(_r,Sn)|0,Ut=Ut+Math.imul($r,En)|0,ir=ir+Math.imul($r,Sn)|0;var _u=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(_u>>>26)|0,_u&=67108863,Jt=Math.imul(kr,Qr),Ut=Math.imul(kr,hn),Ut=Ut+Math.imul(Mr,Qr)|0,ir=Math.imul(Mr,hn),Jt=Jt+Math.imul(Gr,_n)|0,Ut=Ut+Math.imul(Gr,An)|0,Ut=Ut+Math.imul(Jr,_n)|0,ir=ir+Math.imul(Jr,An)|0,Jt=Jt+Math.imul(Xr,Tn)|0,Ut=Ut+Math.imul(Xr,Nn)|0,Ut=Ut+Math.imul(un,Tn)|0,ir=ir+Math.imul(un,Nn)|0,Jt=Jt+Math.imul(qr,$n)|0,Ut=Ut+Math.imul(qr,Fn)|0,Ut=Ut+Math.imul(Zr,$n)|0,ir=ir+Math.imul(Zr,Fn)|0,Jt=Jt+Math.imul(Ur,gn)|0,Ut=Ut+Math.imul(Ur,Rn)|0,Ut=Ut+Math.imul(jr,gn)|0,ir=ir+Math.imul(jr,Rn)|0,Jt=Jt+Math.imul(Nr,pn)|0,Ut=Ut+Math.imul(Nr,yn)|0,Ut=Ut+Math.imul(Lr,pn)|0,ir=ir+Math.imul(Lr,yn)|0,Jt=Jt+Math.imul(Br,Cn)|0,Ut=Ut+Math.imul(Br,On)|0,Ut=Ut+Math.imul(Or,Cn)|0,ir=ir+Math.imul(Or,On)|0,Jt=Jt+Math.imul(Rr,In)|0,Ut=Ut+Math.imul(Rr,Bn)|0,Ut=Ut+Math.imul(wr,In)|0,ir=ir+Math.imul(wr,Bn)|0,Jt=Jt+Math.imul(Dr,En)|0,Ut=Ut+Math.imul(Dr,Sn)|0,Ut=Ut+Math.imul(Ar,En)|0,ir=ir+Math.imul(Ar,Sn)|0;var $u=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+($u>>>26)|0,$u&=67108863,Jt=Math.imul(kr,_n),Ut=Math.imul(kr,An),Ut=Ut+Math.imul(Mr,_n)|0,ir=Math.imul(Mr,An),Jt=Jt+Math.imul(Gr,Tn)|0,Ut=Ut+Math.imul(Gr,Nn)|0,Ut=Ut+Math.imul(Jr,Tn)|0,ir=ir+Math.imul(Jr,Nn)|0,Jt=Jt+Math.imul(Xr,$n)|0,Ut=Ut+Math.imul(Xr,Fn)|0,Ut=Ut+Math.imul(un,$n)|0,ir=ir+Math.imul(un,Fn)|0,Jt=Jt+Math.imul(qr,gn)|0,Ut=Ut+Math.imul(qr,Rn)|0,Ut=Ut+Math.imul(Zr,gn)|0,ir=ir+Math.imul(Zr,Rn)|0,Jt=Jt+Math.imul(Ur,pn)|0,Ut=Ut+Math.imul(Ur,yn)|0,Ut=Ut+Math.imul(jr,pn)|0,ir=ir+Math.imul(jr,yn)|0,Jt=Jt+Math.imul(Nr,Cn)|0,Ut=Ut+Math.imul(Nr,On)|0,Ut=Ut+Math.imul(Lr,Cn)|0,ir=ir+Math.imul(Lr,On)|0,Jt=Jt+Math.imul(Br,In)|0,Ut=Ut+Math.imul(Br,Bn)|0,Ut=Ut+Math.imul(Or,In)|0,ir=ir+Math.imul(Or,Bn)|0,Jt=Jt+Math.imul(Rr,En)|0,Ut=Ut+Math.imul(Rr,Sn)|0,Ut=Ut+Math.imul(wr,En)|0,ir=ir+Math.imul(wr,Sn)|0;var Au=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Au>>>26)|0,Au&=67108863,Jt=Math.imul(kr,Tn),Ut=Math.imul(kr,Nn),Ut=Ut+Math.imul(Mr,Tn)|0,ir=Math.imul(Mr,Nn),Jt=Jt+Math.imul(Gr,$n)|0,Ut=Ut+Math.imul(Gr,Fn)|0,Ut=Ut+Math.imul(Jr,$n)|0,ir=ir+Math.imul(Jr,Fn)|0,Jt=Jt+Math.imul(Xr,gn)|0,Ut=Ut+Math.imul(Xr,Rn)|0,Ut=Ut+Math.imul(un,gn)|0,ir=ir+Math.imul(un,Rn)|0,Jt=Jt+Math.imul(qr,pn)|0,Ut=Ut+Math.imul(qr,yn)|0,Ut=Ut+Math.imul(Zr,pn)|0,ir=ir+Math.imul(Zr,yn)|0,Jt=Jt+Math.imul(Ur,Cn)|0,Ut=Ut+Math.imul(Ur,On)|0,Ut=Ut+Math.imul(jr,Cn)|0,ir=ir+Math.imul(jr,On)|0,Jt=Jt+Math.imul(Nr,In)|0,Ut=Ut+Math.imul(Nr,Bn)|0,Ut=Ut+Math.imul(Lr,In)|0,ir=ir+Math.imul(Lr,Bn)|0,Jt=Jt+Math.imul(Br,En)|0,Ut=Ut+Math.imul(Br,Sn)|0,Ut=Ut+Math.imul(Or,En)|0,ir=ir+Math.imul(Or,Sn)|0;var Bu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Bu>>>26)|0,Bu&=67108863,Jt=Math.imul(kr,$n),Ut=Math.imul(kr,Fn),Ut=Ut+Math.imul(Mr,$n)|0,ir=Math.imul(Mr,Fn),Jt=Jt+Math.imul(Gr,gn)|0,Ut=Ut+Math.imul(Gr,Rn)|0,Ut=Ut+Math.imul(Jr,gn)|0,ir=ir+Math.imul(Jr,Rn)|0,Jt=Jt+Math.imul(Xr,pn)|0,Ut=Ut+Math.imul(Xr,yn)|0,Ut=Ut+Math.imul(un,pn)|0,ir=ir+Math.imul(un,yn)|0,Jt=Jt+Math.imul(qr,Cn)|0,Ut=Ut+Math.imul(qr,On)|0,Ut=Ut+Math.imul(Zr,Cn)|0,ir=ir+Math.imul(Zr,On)|0,Jt=Jt+Math.imul(Ur,In)|0,Ut=Ut+Math.imul(Ur,Bn)|0,Ut=Ut+Math.imul(jr,In)|0,ir=ir+Math.imul(jr,Bn)|0,Jt=Jt+Math.imul(Nr,En)|0,Ut=Ut+Math.imul(Nr,Sn)|0,Ut=Ut+Math.imul(Lr,En)|0,ir=ir+Math.imul(Lr,Sn)|0;var Su=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Su>>>26)|0,Su&=67108863,Jt=Math.imul(kr,gn),Ut=Math.imul(kr,Rn),Ut=Ut+Math.imul(Mr,gn)|0,ir=Math.imul(Mr,Rn),Jt=Jt+Math.imul(Gr,pn)|0,Ut=Ut+Math.imul(Gr,yn)|0,Ut=Ut+Math.imul(Jr,pn)|0,ir=ir+Math.imul(Jr,yn)|0,Jt=Jt+Math.imul(Xr,Cn)|0,Ut=Ut+Math.imul(Xr,On)|0,Ut=Ut+Math.imul(un,Cn)|0,ir=ir+Math.imul(un,On)|0,Jt=Jt+Math.imul(qr,In)|0,Ut=Ut+Math.imul(qr,Bn)|0,Ut=Ut+Math.imul(Zr,In)|0,ir=ir+Math.imul(Zr,Bn)|0,Jt=Jt+Math.imul(Ur,En)|0,Ut=Ut+Math.imul(Ur,Sn)|0,Ut=Ut+Math.imul(jr,En)|0,ir=ir+Math.imul(jr,Sn)|0;var Ru=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Ru>>>26)|0,Ru&=67108863,Jt=Math.imul(kr,pn),Ut=Math.imul(kr,yn),Ut=Ut+Math.imul(Mr,pn)|0,ir=Math.imul(Mr,yn),Jt=Jt+Math.imul(Gr,Cn)|0,Ut=Ut+Math.imul(Gr,On)|0,Ut=Ut+Math.imul(Jr,Cn)|0,ir=ir+Math.imul(Jr,On)|0,Jt=Jt+Math.imul(Xr,In)|0,Ut=Ut+Math.imul(Xr,Bn)|0,Ut=Ut+Math.imul(un,In)|0,ir=ir+Math.imul(un,Bn)|0,Jt=Jt+Math.imul(qr,En)|0,Ut=Ut+Math.imul(qr,Sn)|0,Ut=Ut+Math.imul(Zr,En)|0,ir=ir+Math.imul(Zr,Sn)|0;var lu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(lu>>>26)|0,lu&=67108863,Jt=Math.imul(kr,Cn),Ut=Math.imul(kr,On),Ut=Ut+Math.imul(Mr,Cn)|0,ir=Math.imul(Mr,On),Jt=Jt+Math.imul(Gr,In)|0,Ut=Ut+Math.imul(Gr,Bn)|0,Ut=Ut+Math.imul(Jr,In)|0,ir=ir+Math.imul(Jr,Bn)|0,Jt=Jt+Math.imul(Xr,En)|0,Ut=Ut+Math.imul(Xr,Sn)|0,Ut=Ut+Math.imul(un,En)|0,ir=ir+Math.imul(un,Sn)|0;var du=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(du>>>26)|0,du&=67108863,Jt=Math.imul(kr,In),Ut=Math.imul(kr,Bn),Ut=Ut+Math.imul(Mr,In)|0,ir=Math.imul(Mr,Bn),Jt=Jt+Math.imul(Gr,En)|0,Ut=Ut+Math.imul(Gr,Sn)|0,Ut=Ut+Math.imul(Jr,En)|0,ir=ir+Math.imul(Jr,Sn)|0;var fu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(fu>>>26)|0,fu&=67108863,Jt=Math.imul(kr,En),Ut=Math.imul(kr,Sn),Ut=Ut+Math.imul(Mr,En)|0,ir=Math.imul(Mr,Sn);var Tu=(lr+Jt|0)+((Ut&8191)<<13)|0;return lr=(ir+(Ut>>>13)|0)+(Tu>>>26)|0,Tu&=67108863,er[0]=Xn,er[1]=uu,er[2]=Eu,er[3]=pu,er[4]=Qn,er[5]=Jn,er[6]=ou,er[7]=mu,er[8]=xu,er[9]=_u,er[10]=$u,er[11]=Au,er[12]=Bu,er[13]=Su,er[14]=Ru,er[15]=lu,er[16]=du,er[17]=fu,er[18]=Tu,lr!==0&&(er[19]=lr,Wt.length++),Wt};Math.imul||(Kt=Vt);function Xt(rr,Lt,Ht){Ht.negative=Lt.negative^rr.negative,Ht.length=rr.length+Lt.length;for(var Wt=0,Gt=0,Yt=0;Yt<Ht.length-1;Yt++){var er=Gt;Gt=0;for(var lr=Wt&67108863,Jt=Math.min(Yt,Lt.length-1),Ut=Math.max(0,Yt-rr.length+1);Ut<=Jt;Ut++){var ir=Yt-Ut,Cr=rr.words[ir]|0,_r=Lt.words[Ut]|0,$r=Cr*_r,Tr=$r&67108863;er=er+($r/67108864|0)|0,Tr=Tr+lr|0,lr=Tr&67108863,er=er+(Tr>>>26)|0,Gt+=er>>>26,er&=67108863}Ht.words[Yt]=lr,Wt=er,er=Gt}return Wt!==0?Ht.words[Yt]=Wt:Ht.length--,Ht.strip()}function Qt(rr,Lt,Ht){var Wt=new Zt;return Wt.mulp(rr,Lt,Ht)}At.prototype.mulTo=function(Lt,Ht){var Wt,Gt=this.length+Lt.length;return this.length===10&&Lt.length===10?Wt=Kt(this,Lt,Ht):Gt<63?Wt=Vt(this,Lt,Ht):Gt<1024?Wt=Xt(this,Lt,Ht):Wt=Qt(this,Lt,Ht),Wt};function Zt(rr,Lt){this.x=rr,this.y=Lt}Zt.prototype.makeRBT=function(Lt){for(var Ht=new Array(Lt),Wt=At.prototype._countBits(Lt)-1,Gt=0;Gt<Lt;Gt++)Ht[Gt]=this.revBin(Gt,Wt,Lt);return Ht},Zt.prototype.revBin=function(Lt,Ht,Wt){if(Lt===0||Lt===Wt-1)return Lt;for(var Gt=0,Yt=0;Yt<Ht;Yt++)Gt|=(Lt&1)<<Ht-Yt-1,Lt>>=1;return Gt},Zt.prototype.permute=function(Lt,Ht,Wt,Gt,Yt,er){for(var lr=0;lr<er;lr++)Gt[lr]=Ht[Lt[lr]],Yt[lr]=Wt[Lt[lr]]},Zt.prototype.transform=function(Lt,Ht,Wt,Gt,Yt,er){this.permute(er,Lt,Ht,Wt,Gt,Yt);for(var lr=1;lr<Yt;lr<<=1)for(var Jt=lr<<1,Ut=Math.cos(2*Math.PI/Jt),ir=Math.sin(2*Math.PI/Jt),Cr=0;Cr<Yt;Cr+=Jt)for(var _r=Ut,$r=ir,Tr=0;Tr<lr;Tr++){var Dr=Wt[Cr+Tr],Ar=Gt[Cr+Tr],Fr=Wt[Cr+Tr+lr],Rr=Gt[Cr+Tr+lr],wr=_r*Fr-$r*Rr;Rr=_r*Rr+$r*Fr,Fr=wr,Wt[Cr+Tr]=Dr+Fr,Gt[Cr+Tr]=Ar+Rr,Wt[Cr+Tr+lr]=Dr-Fr,Gt[Cr+Tr+lr]=Ar-Rr,Tr!==Jt&&(wr=Ut*_r-ir*$r,$r=Ut*$r+ir*_r,_r=wr)}},Zt.prototype.guessLen13b=function(Lt,Ht){var Wt=Math.max(Ht,Lt)|1,Gt=Wt&1,Yt=0;for(Wt=Wt/2|0;Wt;Wt=Wt>>>1)Yt++;return 1<<Yt+1+Gt},Zt.prototype.conjugate=function(Lt,Ht,Wt){if(!(Wt<=1))for(var Gt=0;Gt<Wt/2;Gt++){var Yt=Lt[Gt];Lt[Gt]=Lt[Wt-Gt-1],Lt[Wt-Gt-1]=Yt,Yt=Ht[Gt],Ht[Gt]=-Ht[Wt-Gt-1],Ht[Wt-Gt-1]=-Yt}},Zt.prototype.normalize13b=function(Lt,Ht){for(var Wt=0,Gt=0;Gt<Ht/2;Gt++){var Yt=Math.round(Lt[2*Gt+1]/Ht)*8192+Math.round(Lt[2*Gt]/Ht)+Wt;Lt[Gt]=Yt&67108863,Yt<67108864?Wt=0:Wt=Yt/67108864|0}return Lt},Zt.prototype.convert13b=function(Lt,Ht,Wt,Gt){for(var Yt=0,er=0;er<Ht;er++)Yt=Yt+(Lt[er]|0),Wt[2*er]=Yt&8191,Yt=Yt>>>13,Wt[2*er+1]=Yt&8191,Yt=Yt>>>13;for(er=2*Ht;er<Gt;++er)Wt[er]=0;Ct(Yt===0),Ct((Yt&-8192)===0)},Zt.prototype.stub=function(Lt){for(var Ht=new Array(Lt),Wt=0;Wt<Lt;Wt++)Ht[Wt]=0;return Ht},Zt.prototype.mulp=function(Lt,Ht,Wt){var Gt=2*this.guessLen13b(Lt.length,Ht.length),Yt=this.makeRBT(Gt),er=this.stub(Gt),lr=new Array(Gt),Jt=new Array(Gt),Ut=new Array(Gt),ir=new Array(Gt),Cr=new Array(Gt),_r=new Array(Gt),$r=Wt.words;$r.length=Gt,this.convert13b(Lt.words,Lt.length,lr,Gt),this.convert13b(Ht.words,Ht.length,ir,Gt),this.transform(lr,er,Jt,Ut,Gt,Yt),this.transform(ir,er,Cr,_r,Gt,Yt);for(var Tr=0;Tr<Gt;Tr++){var Dr=Jt[Tr]*Cr[Tr]-Ut[Tr]*_r[Tr];Ut[Tr]=Jt[Tr]*_r[Tr]+Ut[Tr]*Cr[Tr],Jt[Tr]=Dr}return this.conjugate(Jt,Ut,Gt),this.transform(Jt,Ut,$r,er,Gt,Yt),this.conjugate($r,er,Gt),this.normalize13b($r,Gt),Wt.negative=Lt.negative^Ht.negative,Wt.length=Lt.length+Ht.length,Wt.strip()},At.prototype.mul=function(Lt){var Ht=new At(null);return Ht.words=new Array(this.length+Lt.length),this.mulTo(Lt,Ht)},At.prototype.mulf=function(Lt){var Ht=new At(null);return Ht.words=new Array(this.length+Lt.length),Qt(this,Lt,Ht)},At.prototype.imul=function(Lt){return this.clone().mulTo(Lt,this)},At.prototype.imuln=function(Lt){Ct(typeof Lt=="number"),Ct(Lt<67108864);for(var Ht=0,Wt=0;Wt<this.length;Wt++){var Gt=(this.words[Wt]|0)*Lt,Yt=(Gt&67108863)+(Ht&67108863);Ht>>=26,Ht+=Gt/67108864|0,Ht+=Yt>>>26,this.words[Wt]=Yt&67108863}return Ht!==0&&(this.words[Wt]=Ht,this.length++),this},At.prototype.muln=function(Lt){return this.clone().imuln(Lt)},At.prototype.sqr=function(){return this.mul(this)},At.prototype.isqr=function(){return this.imul(this.clone())},At.prototype.pow=function(Lt){var Ht=zt(Lt);if(Ht.length===0)return new At(1);for(var Wt=this,Gt=0;Gt<Ht.length&&Ht[Gt]===0;Gt++,Wt=Wt.sqr());if(++Gt<Ht.length)for(var Yt=Wt.sqr();Gt<Ht.length;Gt++,Yt=Yt.sqr())Ht[Gt]!==0&&(Wt=Wt.mul(Yt));return Wt},At.prototype.iushln=function(Lt){Ct(typeof Lt=="number"&&Lt>=0);var Ht=Lt%26,Wt=(Lt-Ht)/26,Gt=67108863>>>26-Ht<<26-Ht,Yt;if(Ht!==0){var er=0;for(Yt=0;Yt<this.length;Yt++){var lr=this.words[Yt]&Gt,Jt=(this.words[Yt]|0)-lr<<Ht;this.words[Yt]=Jt|er,er=lr>>>26-Ht}er&&(this.words[Yt]=er,this.length++)}if(Wt!==0){for(Yt=this.length-1;Yt>=0;Yt--)this.words[Yt+Wt]=this.words[Yt];for(Yt=0;Yt<Wt;Yt++)this.words[Yt]=0;this.length+=Wt}return this.strip()},At.prototype.ishln=function(Lt){return Ct(this.negative===0),this.iushln(Lt)},At.prototype.iushrn=function(Lt,Ht,Wt){Ct(typeof Lt=="number"&&Lt>=0);var Gt;Ht?Gt=(Ht-Ht%26)/26:Gt=0;var Yt=Lt%26,er=Math.min((Lt-Yt)/26,this.length),lr=67108863^67108863>>>Yt<<Yt,Jt=Wt;if(Gt-=er,Gt=Math.max(0,Gt),Jt){for(var Ut=0;Ut<er;Ut++)Jt.words[Ut]=this.words[Ut];Jt.length=er}if(er!==0)if(this.length>er)for(this.length-=er,Ut=0;Ut<this.length;Ut++)this.words[Ut]=this.words[Ut+er];else this.words[0]=0,this.length=1;var ir=0;for(Ut=this.length-1;Ut>=0&&(ir!==0||Ut>=Gt);Ut--){var Cr=this.words[Ut]|0;this.words[Ut]=ir<<26-Yt|Cr>>>Yt,ir=Cr&lr}return Jt&&ir!==0&&(Jt.words[Jt.length++]=ir),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},At.prototype.ishrn=function(Lt,Ht,Wt){return Ct(this.negative===0),this.iushrn(Lt,Ht,Wt)},At.prototype.shln=function(Lt){return this.clone().ishln(Lt)},At.prototype.ushln=function(Lt){return this.clone().iushln(Lt)},At.prototype.shrn=function(Lt){return this.clone().ishrn(Lt)},At.prototype.ushrn=function(Lt){return this.clone().iushrn(Lt)},At.prototype.testn=function(Lt){Ct(typeof Lt=="number"&&Lt>=0);var Ht=Lt%26,Wt=(Lt-Ht)/26,Gt=1<<Ht;if(this.length<=Wt)return!1;var Yt=this.words[Wt];return!!(Yt&Gt)},At.prototype.imaskn=function(Lt){Ct(typeof Lt=="number"&&Lt>=0);var Ht=Lt%26,Wt=(Lt-Ht)/26;if(Ct(this.negative===0,"imaskn works only with positive numbers"),this.length<=Wt)return this;if(Ht!==0&&Wt++,this.length=Math.min(Wt,this.length),Ht!==0){var Gt=67108863^67108863>>>Ht<<Ht;this.words[this.length-1]&=Gt}return this.strip()},At.prototype.maskn=function(Lt){return this.clone().imaskn(Lt)},At.prototype.iaddn=function(Lt){return Ct(typeof Lt=="number"),Ct(Lt<67108864),Lt<0?this.isubn(-Lt):this.negative!==0?this.length===1&&(this.words[0]|0)<Lt?(this.words[0]=Lt-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(Lt),this.negative=1,this):this._iaddn(Lt)},At.prototype._iaddn=function(Lt){this.words[0]+=Lt;for(var Ht=0;Ht<this.length&&this.words[Ht]>=67108864;Ht++)this.words[Ht]-=67108864,Ht===this.length-1?this.words[Ht+1]=1:this.words[Ht+1]++;return this.length=Math.max(this.length,Ht+1),this},At.prototype.isubn=function(Lt){if(Ct(typeof Lt=="number"),Ct(Lt<67108864),Lt<0)return this.iaddn(-Lt);if(this.negative!==0)return this.negative=0,this.iaddn(Lt),this.negative=1,this;if(this.words[0]-=Lt,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Ht=0;Ht<this.length&&this.words[Ht]<0;Ht++)this.words[Ht]+=67108864,this.words[Ht+1]-=1;return this.strip()},At.prototype.addn=function(Lt){return this.clone().iaddn(Lt)},At.prototype.subn=function(Lt){return this.clone().isubn(Lt)},At.prototype.iabs=function(){return this.negative=0,this},At.prototype.abs=function(){return this.clone().iabs()},At.prototype._ishlnsubmul=function(Lt,Ht,Wt){var Gt=Lt.length+Wt,Yt;this._expand(Gt);var er,lr=0;for(Yt=0;Yt<Lt.length;Yt++){er=(this.words[Yt+Wt]|0)+lr;var Jt=(Lt.words[Yt]|0)*Ht;er-=Jt&67108863,lr=(er>>26)-(Jt/67108864|0),this.words[Yt+Wt]=er&67108863}for(;Yt<this.length-Wt;Yt++)er=(this.words[Yt+Wt]|0)+lr,lr=er>>26,this.words[Yt+Wt]=er&67108863;if(lr===0)return this.strip();for(Ct(lr===-1),lr=0,Yt=0;Yt<this.length;Yt++)er=-(this.words[Yt]|0)+lr,lr=er>>26,this.words[Yt]=er&67108863;return this.negative=1,this.strip()},At.prototype._wordDiv=function(Lt,Ht){var Wt=this.length-Lt.length,Gt=this.clone(),Yt=Lt,er=Yt.words[Yt.length-1]|0,lr=this._countBits(er);Wt=26-lr,Wt!==0&&(Yt=Yt.ushln(Wt),Gt.iushln(Wt),er=Yt.words[Yt.length-1]|0);var Jt=Gt.length-Yt.length,Ut;if(Ht!=="mod"){Ut=new At(null),Ut.length=Jt+1,Ut.words=new Array(Ut.length);for(var ir=0;ir<Ut.length;ir++)Ut.words[ir]=0}var Cr=Gt.clone()._ishlnsubmul(Yt,1,Jt);Cr.negative===0&&(Gt=Cr,Ut&&(Ut.words[Jt]=1));for(var _r=Jt-1;_r>=0;_r--){var $r=(Gt.words[Yt.length+_r]|0)*67108864+(Gt.words[Yt.length+_r-1]|0);for($r=Math.min($r/er|0,67108863),Gt._ishlnsubmul(Yt,$r,_r);Gt.negative!==0;)$r--,Gt.negative=0,Gt._ishlnsubmul(Yt,1,_r),Gt.isZero()||(Gt.negative^=1);Ut&&(Ut.words[_r]=$r)}return Ut&&Ut.strip(),Gt.strip(),Ht!=="div"&&Wt!==0&&Gt.iushrn(Wt),{div:Ut||null,mod:Gt}},At.prototype.divmod=function(Lt,Ht,Wt){if(Ct(!Lt.isZero()),this.isZero())return{div:new At(0),mod:new At(0)};var Gt,Yt,er;return this.negative!==0&&Lt.negative===0?(er=this.neg().divmod(Lt,Ht),Ht!=="mod"&&(Gt=er.div.neg()),Ht!=="div"&&(Yt=er.mod.neg(),Wt&&Yt.negative!==0&&Yt.iadd(Lt)),{div:Gt,mod:Yt}):this.negative===0&&Lt.negative!==0?(er=this.divmod(Lt.neg(),Ht),Ht!=="mod"&&(Gt=er.div.neg()),{div:Gt,mod:er.mod}):this.negative&Lt.negative?(er=this.neg().divmod(Lt.neg(),Ht),Ht!=="div"&&(Yt=er.mod.neg(),Wt&&Yt.negative!==0&&Yt.isub(Lt)),{div:er.div,mod:Yt}):Lt.length>this.length||this.cmp(Lt)<0?{div:new At(0),mod:this}:Lt.length===1?Ht==="div"?{div:this.divn(Lt.words[0]),mod:null}:Ht==="mod"?{div:null,mod:new At(this.modn(Lt.words[0]))}:{div:this.divn(Lt.words[0]),mod:new At(this.modn(Lt.words[0]))}:this._wordDiv(Lt,Ht)},At.prototype.div=function(Lt){return this.divmod(Lt,"div",!1).div},At.prototype.mod=function(Lt){return this.divmod(Lt,"mod",!1).mod},At.prototype.umod=function(Lt){return this.divmod(Lt,"mod",!0).mod},At.prototype.divRound=function(Lt){var Ht=this.divmod(Lt);if(Ht.mod.isZero())return Ht.div;var Wt=Ht.div.negative!==0?Ht.mod.isub(Lt):Ht.mod,Gt=Lt.ushrn(1),Yt=Lt.andln(1),er=Wt.cmp(Gt);return er<0||Yt===1&&er===0?Ht.div:Ht.div.negative!==0?Ht.div.isubn(1):Ht.div.iaddn(1)},At.prototype.modn=function(Lt){Ct(Lt<=67108863);for(var Ht=(1<<26)%Lt,Wt=0,Gt=this.length-1;Gt>=0;Gt--)Wt=(Ht*Wt+(this.words[Gt]|0))%Lt;return Wt},At.prototype.idivn=function(Lt){Ct(Lt<=67108863);for(var Ht=0,Wt=this.length-1;Wt>=0;Wt--){var Gt=(this.words[Wt]|0)+Ht*67108864;this.words[Wt]=Gt/Lt|0,Ht=Gt%Lt}return this.strip()},At.prototype.divn=function(Lt){return this.clone().idivn(Lt)},At.prototype.egcd=function(Lt){Ct(Lt.negative===0),Ct(!Lt.isZero());var Ht=this,Wt=Lt.clone();Ht.negative!==0?Ht=Ht.umod(Lt):Ht=Ht.clone();for(var Gt=new At(1),Yt=new At(0),er=new At(0),lr=new At(1),Jt=0;Ht.isEven()&&Wt.isEven();)Ht.iushrn(1),Wt.iushrn(1),++Jt;for(var Ut=Wt.clone(),ir=Ht.clone();!Ht.isZero();){for(var Cr=0,_r=1;!(Ht.words[0]&_r)&&Cr<26;++Cr,_r<<=1);if(Cr>0)for(Ht.iushrn(Cr);Cr-- >0;)(Gt.isOdd()||Yt.isOdd())&&(Gt.iadd(Ut),Yt.isub(ir)),Gt.iushrn(1),Yt.iushrn(1);for(var $r=0,Tr=1;!(Wt.words[0]&Tr)&&$r<26;++$r,Tr<<=1);if($r>0)for(Wt.iushrn($r);$r-- >0;)(er.isOdd()||lr.isOdd())&&(er.iadd(Ut),lr.isub(ir)),er.iushrn(1),lr.iushrn(1);Ht.cmp(Wt)>=0?(Ht.isub(Wt),Gt.isub(er),Yt.isub(lr)):(Wt.isub(Ht),er.isub(Gt),lr.isub(Yt))}return{a:er,b:lr,gcd:Wt.iushln(Jt)}},At.prototype._invmp=function(Lt){Ct(Lt.negative===0),Ct(!Lt.isZero());var Ht=this,Wt=Lt.clone();Ht.negative!==0?Ht=Ht.umod(Lt):Ht=Ht.clone();for(var Gt=new At(1),Yt=new At(0),er=Wt.clone();Ht.cmpn(1)>0&&Wt.cmpn(1)>0;){for(var lr=0,Jt=1;!(Ht.words[0]&Jt)&&lr<26;++lr,Jt<<=1);if(lr>0)for(Ht.iushrn(lr);lr-- >0;)Gt.isOdd()&&Gt.iadd(er),Gt.iushrn(1);for(var Ut=0,ir=1;!(Wt.words[0]&ir)&&Ut<26;++Ut,ir<<=1);if(Ut>0)for(Wt.iushrn(Ut);Ut-- >0;)Yt.isOdd()&&Yt.iadd(er),Yt.iushrn(1);Ht.cmp(Wt)>=0?(Ht.isub(Wt),Gt.isub(Yt)):(Wt.isub(Ht),Yt.isub(Gt))}var Cr;return Ht.cmpn(1)===0?Cr=Gt:Cr=Yt,Cr.cmpn(0)<0&&Cr.iadd(Lt),Cr},At.prototype.gcd=function(Lt){if(this.isZero())return Lt.abs();if(Lt.isZero())return this.abs();var Ht=this.clone(),Wt=Lt.clone();Ht.negative=0,Wt.negative=0;for(var Gt=0;Ht.isEven()&&Wt.isEven();Gt++)Ht.iushrn(1),Wt.iushrn(1);do{for(;Ht.isEven();)Ht.iushrn(1);for(;Wt.isEven();)Wt.iushrn(1);var Yt=Ht.cmp(Wt);if(Yt<0){var er=Ht;Ht=Wt,Wt=er}else if(Yt===0||Wt.cmpn(1)===0)break;Ht.isub(Wt)}while(!0);return Wt.iushln(Gt)},At.prototype.invm=function(Lt){return this.egcd(Lt).a.umod(Lt)},At.prototype.isEven=function(){return(this.words[0]&1)===0},At.prototype.isOdd=function(){return(this.words[0]&1)===1},At.prototype.andln=function(Lt){return this.words[0]&Lt},At.prototype.bincn=function(Lt){Ct(typeof Lt=="number");var Ht=Lt%26,Wt=(Lt-Ht)/26,Gt=1<<Ht;if(this.length<=Wt)return this._expand(Wt+1),this.words[Wt]|=Gt,this;for(var Yt=Gt,er=Wt;Yt!==0&&er<this.length;er++){var lr=this.words[er]|0;lr+=Yt,Yt=lr>>>26,lr&=67108863,this.words[er]=lr}return Yt!==0&&(this.words[er]=Yt,this.length++),this},At.prototype.isZero=function(){return this.length===1&&this.words[0]===0},At.prototype.cmpn=function(Lt){var Ht=Lt<0;if(this.negative!==0&&!Ht)return-1;if(this.negative===0&&Ht)return 1;this.strip();var Wt;if(this.length>1)Wt=1;else{Ht&&(Lt=-Lt),Ct(Lt<=67108863,"Number is too big");var Gt=this.words[0]|0;Wt=Gt===Lt?0:Gt<Lt?-1:1}return this.negative!==0?-Wt|0:Wt},At.prototype.cmp=function(Lt){if(this.negative!==0&&Lt.negative===0)return-1;if(this.negative===0&&Lt.negative!==0)return 1;var Ht=this.ucmp(Lt);return this.negative!==0?-Ht|0:Ht},At.prototype.ucmp=function(Lt){if(this.length>Lt.length)return 1;if(this.length<Lt.length)return-1;for(var Ht=0,Wt=this.length-1;Wt>=0;Wt--){var Gt=this.words[Wt]|0,Yt=Lt.words[Wt]|0;if(Gt!==Yt){Gt<Yt?Ht=-1:Gt>Yt&&(Ht=1);break}}return Ht},At.prototype.gtn=function(Lt){return this.cmpn(Lt)===1},At.prototype.gt=function(Lt){return this.cmp(Lt)===1},At.prototype.gten=function(Lt){return this.cmpn(Lt)>=0},At.prototype.gte=function(Lt){return this.cmp(Lt)>=0},At.prototype.ltn=function(Lt){return this.cmpn(Lt)===-1},At.prototype.lt=function(Lt){return this.cmp(Lt)===-1},At.prototype.lten=function(Lt){return this.cmpn(Lt)<=0},At.prototype.lte=function(Lt){return this.cmp(Lt)<=0},At.prototype.eqn=function(Lt){return this.cmpn(Lt)===0},At.prototype.eq=function(Lt){return this.cmp(Lt)===0},At.red=function(Lt){return new yr(Lt)},At.prototype.toRed=function(Lt){return Ct(!this.red,"Already a number in reduction context"),Ct(this.negative===0,"red works only with positives"),Lt.convertTo(this)._forceRed(Lt)},At.prototype.fromRed=function(){return Ct(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},At.prototype._forceRed=function(Lt){return this.red=Lt,this},At.prototype.forceRed=function(Lt){return Ct(!this.red,"Already a number in reduction context"),this._forceRed(Lt)},At.prototype.redAdd=function(Lt){return Ct(this.red,"redAdd works only with red numbers"),this.red.add(this,Lt)},At.prototype.redIAdd=function(Lt){return Ct(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,Lt)},At.prototype.redSub=function(Lt){return Ct(this.red,"redSub works only with red numbers"),this.red.sub(this,Lt)},At.prototype.redISub=function(Lt){return Ct(this.red,"redISub works only with red numbers"),this.red.isub(this,Lt)},At.prototype.redShl=function(Lt){return Ct(this.red,"redShl works only with red numbers"),this.red.shl(this,Lt)},At.prototype.redMul=function(Lt){return Ct(this.red,"redMul works only with red numbers"),this.red._verify2(this,Lt),this.red.mul(this,Lt)},At.prototype.redIMul=function(Lt){return Ct(this.red,"redMul works only with red numbers"),this.red._verify2(this,Lt),this.red.imul(this,Lt)},At.prototype.redSqr=function(){return Ct(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},At.prototype.redISqr=function(){return Ct(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},At.prototype.redSqrt=function(){return Ct(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},At.prototype.redInvm=function(){return Ct(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},At.prototype.redNeg=function(){return Ct(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},At.prototype.redPow=function(Lt){return Ct(this.red&&!Lt.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,Lt)};var dr={k256:null,p224:null,p192:null,p25519:null};function cr(rr,Lt){this.name=rr,this.p=new At(Lt,16),this.n=this.p.bitLength(),this.k=new At(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}cr.prototype._tmp=function(){var Lt=new At(null);return Lt.words=new Array(Math.ceil(this.n/13)),Lt},cr.prototype.ireduce=function(Lt){var Ht=Lt,Wt;do this.split(Ht,this.tmp),Ht=this.imulK(Ht),Ht=Ht.iadd(this.tmp),Wt=Ht.bitLength();while(Wt>this.n);var Gt=Wt<this.n?-1:Ht.ucmp(this.p);return Gt===0?(Ht.words[0]=0,Ht.length=1):Gt>0?Ht.isub(this.p):Ht.strip!==void 0?Ht.strip():Ht._strip(),Ht},cr.prototype.split=function(Lt,Ht){Lt.iushrn(this.n,0,Ht)},cr.prototype.imulK=function(Lt){return Lt.imul(this.k)};function Er(){cr.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}$t(Er,cr),Er.prototype.split=function(Lt,Ht){for(var Wt=4194303,Gt=Math.min(Lt.length,9),Yt=0;Yt<Gt;Yt++)Ht.words[Yt]=Lt.words[Yt];if(Ht.length=Gt,Lt.length<=9){Lt.words[0]=0,Lt.length=1;return}var er=Lt.words[9];for(Ht.words[Ht.length++]=er&Wt,Yt=10;Yt<Lt.length;Yt++){var lr=Lt.words[Yt]|0;Lt.words[Yt-10]=(lr&Wt)<<4|er>>>22,er=lr}er>>>=22,Lt.words[Yt-10]=er,er===0&&Lt.length>10?Lt.length-=10:Lt.length-=9},Er.prototype.imulK=function(Lt){Lt.words[Lt.length]=0,Lt.words[Lt.length+1]=0,Lt.length+=2;for(var Ht=0,Wt=0;Wt<Lt.length;Wt++){var Gt=Lt.words[Wt]|0;Ht+=Gt*977,Lt.words[Wt]=Ht&67108863,Ht=Gt*64+(Ht/67108864|0)}return Lt.words[Lt.length-1]===0&&(Lt.length--,Lt.words[Lt.length-1]===0&&Lt.length--),Lt};function pr(){cr.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}$t(pr,cr);function gr(){cr.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}$t(gr,cr);function vr(){cr.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}$t(vr,cr),vr.prototype.imulK=function(Lt){for(var Ht=0,Wt=0;Wt<Lt.length;Wt++){var Gt=(Lt.words[Wt]|0)*19+Ht,Yt=Gt&67108863;Gt>>>=26,Lt.words[Wt]=Yt,Ht=Gt}return Ht!==0&&(Lt.words[Lt.length++]=Ht),Lt},At._prime=function(Lt){if(dr[Lt])return dr[Lt];var Ht;if(Lt==="k256")Ht=new Er;else if(Lt==="p224")Ht=new pr;else if(Lt==="p192")Ht=new gr;else if(Lt==="p25519")Ht=new vr;else throw new Error("Unknown prime "+Lt);return dr[Lt]=Ht,Ht};function yr(rr){if(typeof rr=="string"){var Lt=At._prime(rr);this.m=Lt.p,this.prime=Lt}else Ct(rr.gtn(1),"modulus must be greater than 1"),this.m=rr,this.prime=null}yr.prototype._verify1=function(Lt){Ct(Lt.negative===0,"red works only with positives"),Ct(Lt.red,"red works only with red numbers")},yr.prototype._verify2=function(Lt,Ht){Ct((Lt.negative|Ht.negative)===0,"red works only with positives"),Ct(Lt.red&&Lt.red===Ht.red,"red works only with red numbers")},yr.prototype.imod=function(Lt){return this.prime?this.prime.ireduce(Lt)._forceRed(this):Lt.umod(this.m)._forceRed(this)},yr.prototype.neg=function(Lt){return Lt.isZero()?Lt.clone():this.m.sub(Lt)._forceRed(this)},yr.prototype.add=function(Lt,Ht){this._verify2(Lt,Ht);var Wt=Lt.add(Ht);return Wt.cmp(this.m)>=0&&Wt.isub(this.m),Wt._forceRed(this)},yr.prototype.iadd=function(Lt,Ht){this._verify2(Lt,Ht);var Wt=Lt.iadd(Ht);return Wt.cmp(this.m)>=0&&Wt.isub(this.m),Wt},yr.prototype.sub=function(Lt,Ht){this._verify2(Lt,Ht);var Wt=Lt.sub(Ht);return Wt.cmpn(0)<0&&Wt.iadd(this.m),Wt._forceRed(this)},yr.prototype.isub=function(Lt,Ht){this._verify2(Lt,Ht);var Wt=Lt.isub(Ht);return Wt.cmpn(0)<0&&Wt.iadd(this.m),Wt},yr.prototype.shl=function(Lt,Ht){return this._verify1(Lt),this.imod(Lt.ushln(Ht))},yr.prototype.imul=function(Lt,Ht){return this._verify2(Lt,Ht),this.imod(Lt.imul(Ht))},yr.prototype.mul=function(Lt,Ht){return this._verify2(Lt,Ht),this.imod(Lt.mul(Ht))},yr.prototype.isqr=function(Lt){return this.imul(Lt,Lt.clone())},yr.prototype.sqr=function(Lt){return this.mul(Lt,Lt)},yr.prototype.sqrt=function(Lt){if(Lt.isZero())return Lt.clone();var Ht=this.m.andln(3);if(Ct(Ht%2===1),Ht===3){var Wt=this.m.add(new At(1)).iushrn(2);return this.pow(Lt,Wt)}for(var Gt=this.m.subn(1),Yt=0;!Gt.isZero()&&Gt.andln(1)===0;)Yt++,Gt.iushrn(1);Ct(!Gt.isZero());var er=new At(1).toRed(this),lr=er.redNeg(),Jt=this.m.subn(1).iushrn(1),Ut=this.m.bitLength();for(Ut=new At(2*Ut*Ut).toRed(this);this.pow(Ut,Jt).cmp(lr)!==0;)Ut.redIAdd(lr);for(var ir=this.pow(Ut,Gt),Cr=this.pow(Lt,Gt.addn(1).iushrn(1)),_r=this.pow(Lt,Gt),$r=Yt;_r.cmp(er)!==0;){for(var Tr=_r,Dr=0;Tr.cmp(er)!==0;Dr++)Tr=Tr.redSqr();Ct(Dr<$r);var Ar=this.pow(ir,new At(1).iushln($r-Dr-1));Cr=Cr.redMul(Ar),ir=Ar.redSqr(),_r=_r.redMul(ir),$r=Dr}return Cr},yr.prototype.invm=function(Lt){var Ht=Lt._invmp(this.m);return Ht.negative!==0?(Ht.negative=0,this.imod(Ht).redNeg()):this.imod(Ht)},yr.prototype.pow=function(Lt,Ht){if(Ht.isZero())return new At(1).toRed(this);if(Ht.cmpn(1)===0)return Lt.clone();var Wt=4,Gt=new Array(1<<Wt);Gt[0]=new At(1).toRed(this),Gt[1]=Lt;for(var Yt=2;Yt<Gt.length;Yt++)Gt[Yt]=this.mul(Gt[Yt-1],Lt);var er=Gt[0],lr=0,Jt=0,Ut=Ht.bitLength()%26;for(Ut===0&&(Ut=26),Yt=Ht.length-1;Yt>=0;Yt--){for(var ir=Ht.words[Yt],Cr=Ut-1;Cr>=0;Cr--){var _r=ir>>Cr&1;if(er!==Gt[0]&&(er=this.sqr(er)),_r===0&&lr===0){Jt=0;continue}lr<<=1,lr|=_r,Jt++,!(Jt!==Wt&&(Yt!==0||Cr!==0))&&(er=this.mul(er,Gt[lr]),Jt=0,lr=0)}Ut=26}return er},yr.prototype.convertTo=function(Lt){var Ht=Lt.umod(this.m);return Ht===Lt?Ht.clone():Ht},yr.prototype.convertFrom=function(Lt){var Ht=Lt.clone();return Ht.red=null,Ht},At.mont=function(Lt){return new xr(Lt)};function xr(rr){yr.call(this,rr),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new At(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}$t(xr,yr),xr.prototype.convertTo=function(Lt){return this.imod(Lt.ushln(this.shift))},xr.prototype.convertFrom=function(Lt){var Ht=this.imod(Lt.mul(this.rinv));return Ht.red=null,Ht},xr.prototype.imul=function(Lt,Ht){if(Lt.isZero()||Ht.isZero())return Lt.words[0]=0,Lt.length=1,Lt;var Wt=Lt.imul(Ht),Gt=Wt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Yt=Wt.isub(Gt).iushrn(this.shift),er=Yt;return Yt.cmp(this.m)>=0?er=Yt.isub(this.m):Yt.cmpn(0)<0&&(er=Yt.iadd(this.m)),er._forceRed(this)},xr.prototype.mul=function(Lt,Ht){if(Lt.isZero()||Ht.isZero())return new At(0)._forceRed(this);var Wt=Lt.mul(Ht),Gt=Wt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Yt=Wt.isub(Gt).iushrn(this.shift),er=Yt;return Yt.cmp(this.m)>=0?er=Yt.isub(this.m):Yt.cmpn(0)<0&&(er=Yt.iadd(this.m)),er._forceRed(this)},xr.prototype.invm=function(Lt){var Ht=this.imod(Lt._invmp(this.m).mul(this.r2));return Ht._forceRed(this)}})(ht,commonjsGlobal)})(bn$4);var bnExports=bn$4.exports,utils$o={};(function(ht){var Et=ht;function yt(At,Bt){if(Array.isArray(At))return At.slice();if(!At)return[];var Dt=[];if(typeof At!="string"){for(var Ft=0;Ft<At.length;Ft++)Dt[Ft]=At[Ft]|0;return Dt}if(Bt==="hex"){At=At.replace(/[^a-z0-9]+/ig,""),At.length%2!==0&&(At="0"+At);for(var Ft=0;Ft<At.length;Ft+=2)Dt.push(parseInt(At[Ft]+At[Ft+1],16))}else for(var Ft=0;Ft<At.length;Ft++){var kt=At.charCodeAt(Ft),Mt=kt>>8,Nt=kt&255;Mt?Dt.push(Mt,Nt):Dt.push(Nt)}return Dt}Et.toArray=yt;function Ct(At){return At.length===1?"0"+At:At}Et.zero2=Ct;function $t(At){for(var Bt="",Dt=0;Dt<At.length;Dt++)Bt+=Ct(At[Dt].toString(16));return Bt}Et.toHex=$t,Et.encode=function(Bt,Dt){return Dt==="hex"?$t(Bt):Bt}})(utils$o);(function(ht){var Et=ht,yt=bnExports,Ct=minimalisticAssert,$t=utils$o;Et.assert=Ct,Et.toArray=$t.toArray,Et.zero2=$t.zero2,Et.toHex=$t.toHex,Et.encode=$t.encode;function At(Mt,Nt,jt){var zt=new Array(Math.max(Mt.bitLength(),jt)+1),Vt;for(Vt=0;Vt<zt.length;Vt+=1)zt[Vt]=0;var Kt=1<<Nt+1,Xt=Mt.clone();for(Vt=0;Vt<zt.length;Vt++){var Qt,Zt=Xt.andln(Kt-1);Xt.isOdd()?(Zt>(Kt>>1)-1?Qt=(Kt>>1)-Zt:Qt=Zt,Xt.isubn(Qt)):Qt=0,zt[Vt]=Qt,Xt.iushrn(1)}return zt}Et.getNAF=At;function Bt(Mt,Nt){var jt=[[],[]];Mt=Mt.clone(),Nt=Nt.clone();for(var zt=0,Vt=0,Kt;Mt.cmpn(-zt)>0||Nt.cmpn(-Vt)>0;){var Xt=Mt.andln(3)+zt&3,Qt=Nt.andln(3)+Vt&3;Xt===3&&(Xt=-1),Qt===3&&(Qt=-1);var Zt;Xt&1?(Kt=Mt.andln(7)+zt&7,(Kt===3||Kt===5)&&Qt===2?Zt=-Xt:Zt=Xt):Zt=0,jt[0].push(Zt);var dr;Qt&1?(Kt=Nt.andln(7)+Vt&7,(Kt===3||Kt===5)&&Xt===2?dr=-Qt:dr=Qt):dr=0,jt[1].push(dr),2*zt===Zt+1&&(zt=1-zt),2*Vt===dr+1&&(Vt=1-Vt),Mt.iushrn(1),Nt.iushrn(1)}return jt}Et.getJSF=Bt;function Dt(Mt,Nt,jt){var zt="_"+Nt;Mt.prototype[Nt]=function(){return this[zt]!==void 0?this[zt]:this[zt]=jt.call(this)}}Et.cachedProperty=Dt;function Ft(Mt){return typeof Mt=="string"?Et.toArray(Mt,"hex"):Mt}Et.parseBytes=Ft;function kt(Mt){return new yt(Mt,"hex","le")}Et.intFromLE=kt})(utils$p);var curve={},BN$6=bnExports,utils$n=utils$p,getNAF=utils$n.getNAF,getJSF=utils$n.getJSF,assert$e=utils$n.assert;function BaseCurve(ht,Et){this.type=ht,this.p=new BN$6(Et.p,16),this.red=Et.prime?BN$6.red(Et.prime):BN$6.mont(this.p),this.zero=new BN$6(0).toRed(this.red),this.one=new BN$6(1).toRed(this.red),this.two=new BN$6(2).toRed(this.red),this.n=Et.n&&new BN$6(Et.n,16),this.g=Et.g&&this.pointFromJSON(Et.g,Et.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var yt=this.n&&this.p.div(this.n);!yt||yt.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var base$5=BaseCurve;BaseCurve.prototype.point=function(){throw new Error("Not implemented")};BaseCurve.prototype.validate=function(){throw new Error("Not implemented")};BaseCurve.prototype._fixedNafMul=function(Et,yt){assert$e(Et.precomputed);var Ct=Et._getDoubles(),$t=getNAF(yt,1,this._bitLength),At=(1<<Ct.step+1)-(Ct.step%2===0?2:1);At/=3;var Bt=[],Dt,Ft;for(Dt=0;Dt<$t.length;Dt+=Ct.step){Ft=0;for(var kt=Dt+Ct.step-1;kt>=Dt;kt--)Ft=(Ft<<1)+$t[kt];Bt.push(Ft)}for(var Mt=this.jpoint(null,null,null),Nt=this.jpoint(null,null,null),jt=At;jt>0;jt--){for(Dt=0;Dt<Bt.length;Dt++)Ft=Bt[Dt],Ft===jt?Nt=Nt.mixedAdd(Ct.points[Dt]):Ft===-jt&&(Nt=Nt.mixedAdd(Ct.points[Dt].neg()));Mt=Mt.add(Nt)}return Mt.toP()};BaseCurve.prototype._wnafMul=function(Et,yt){var Ct=4,$t=Et._getNAFPoints(Ct);Ct=$t.wnd;for(var At=$t.points,Bt=getNAF(yt,Ct,this._bitLength),Dt=this.jpoint(null,null,null),Ft=Bt.length-1;Ft>=0;Ft--){for(var kt=0;Ft>=0&&Bt[Ft]===0;Ft--)kt++;if(Ft>=0&&kt++,Dt=Dt.dblp(kt),Ft<0)break;var Mt=Bt[Ft];assert$e(Mt!==0),Et.type==="affine"?Mt>0?Dt=Dt.mixedAdd(At[Mt-1>>1]):Dt=Dt.mixedAdd(At[-Mt-1>>1].neg()):Mt>0?Dt=Dt.add(At[Mt-1>>1]):Dt=Dt.add(At[-Mt-1>>1].neg())}return Et.type==="affine"?Dt.toP():Dt};BaseCurve.prototype._wnafMulAdd=function(Et,yt,Ct,$t,At){var Bt=this._wnafT1,Dt=this._wnafT2,Ft=this._wnafT3,kt=0,Mt,Nt,jt;for(Mt=0;Mt<$t;Mt++){jt=yt[Mt];var zt=jt._getNAFPoints(Et);Bt[Mt]=zt.wnd,Dt[Mt]=zt.points}for(Mt=$t-1;Mt>=1;Mt-=2){var Vt=Mt-1,Kt=Mt;if(Bt[Vt]!==1||Bt[Kt]!==1){Ft[Vt]=getNAF(Ct[Vt],Bt[Vt],this._bitLength),Ft[Kt]=getNAF(Ct[Kt],Bt[Kt],this._bitLength),kt=Math.max(Ft[Vt].length,kt),kt=Math.max(Ft[Kt].length,kt);continue}var Xt=[yt[Vt],null,null,yt[Kt]];yt[Vt].y.cmp(yt[Kt].y)===0?(Xt[1]=yt[Vt].add(yt[Kt]),Xt[2]=yt[Vt].toJ().mixedAdd(yt[Kt].neg())):yt[Vt].y.cmp(yt[Kt].y.redNeg())===0?(Xt[1]=yt[Vt].toJ().mixedAdd(yt[Kt]),Xt[2]=yt[Vt].add(yt[Kt].neg())):(Xt[1]=yt[Vt].toJ().mixedAdd(yt[Kt]),Xt[2]=yt[Vt].toJ().mixedAdd(yt[Kt].neg()));var Qt=[-3,-1,-5,-7,0,7,5,1,3],Zt=getJSF(Ct[Vt],Ct[Kt]);for(kt=Math.max(Zt[0].length,kt),Ft[Vt]=new Array(kt),Ft[Kt]=new Array(kt),Nt=0;Nt<kt;Nt++){var dr=Zt[0][Nt]|0,cr=Zt[1][Nt]|0;Ft[Vt][Nt]=Qt[(dr+1)*3+(cr+1)],Ft[Kt][Nt]=0,Dt[Vt]=Xt}}var Er=this.jpoint(null,null,null),pr=this._wnafT4;for(Mt=kt;Mt>=0;Mt--){for(var gr=0;Mt>=0;){var vr=!0;for(Nt=0;Nt<$t;Nt++)pr[Nt]=Ft[Nt][Mt]|0,pr[Nt]!==0&&(vr=!1);if(!vr)break;gr++,Mt--}if(Mt>=0&&gr++,Er=Er.dblp(gr),Mt<0)break;for(Nt=0;Nt<$t;Nt++){var yr=pr[Nt];yr!==0&&(yr>0?jt=Dt[Nt][yr-1>>1]:yr<0&&(jt=Dt[Nt][-yr-1>>1].neg()),jt.type==="affine"?Er=Er.mixedAdd(jt):Er=Er.add(jt))}}for(Mt=0;Mt<$t;Mt++)Dt[Mt]=null;return At?Er:Er.toP()};function BasePoint(ht,Et){this.curve=ht,this.type=Et,this.precomputed=null}BaseCurve.BasePoint=BasePoint;BasePoint.prototype.eq=function(){throw new Error("Not implemented")};BasePoint.prototype.validate=function(){return this.curve.validate(this)};BaseCurve.prototype.decodePoint=function(Et,yt){Et=utils$n.toArray(Et,yt);var Ct=this.p.byteLength();if((Et[0]===4||Et[0]===6||Et[0]===7)&&Et.length-1===2*Ct){Et[0]===6?assert$e(Et[Et.length-1]%2===0):Et[0]===7&&assert$e(Et[Et.length-1]%2===1);var $t=this.point(Et.slice(1,1+Ct),Et.slice(1+Ct,1+2*Ct));return $t}else if((Et[0]===2||Et[0]===3)&&Et.length-1===Ct)return this.pointFromX(Et.slice(1,1+Ct),Et[0]===3);throw new Error("Unknown point format")};BasePoint.prototype.encodeCompressed=function(Et){return this.encode(Et,!0)};BasePoint.prototype._encode=function(Et){var yt=this.curve.p.byteLength(),Ct=this.getX().toArray("be",yt);return Et?[this.getY().isEven()?2:3].concat(Ct):[4].concat(Ct,this.getY().toArray("be",yt))};BasePoint.prototype.encode=function(Et,yt){return utils$n.encode(this._encode(yt),Et)};BasePoint.prototype.precompute=function(Et){if(this.precomputed)return this;var yt={doubles:null,naf:null,beta:null};return yt.naf=this._getNAFPoints(8),yt.doubles=this._getDoubles(4,Et),yt.beta=this._getBeta(),this.precomputed=yt,this};BasePoint.prototype._hasDoubles=function(Et){if(!this.precomputed)return!1;var yt=this.precomputed.doubles;return yt?yt.points.length>=Math.ceil((Et.bitLength()+1)/yt.step):!1};BasePoint.prototype._getDoubles=function(Et,yt){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var Ct=[this],$t=this,At=0;At<yt;At+=Et){for(var Bt=0;Bt<Et;Bt++)$t=$t.dbl();Ct.push($t)}return{step:Et,points:Ct}};BasePoint.prototype._getNAFPoints=function(Et){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var yt=[this],Ct=(1<<Et)-1,$t=Ct===1?null:this.dbl(),At=1;At<Ct;At++)yt[At]=yt[At-1].add($t);return{wnd:Et,points:yt}};BasePoint.prototype._getBeta=function(){return null};BasePoint.prototype.dblp=function(Et){for(var yt=this,Ct=0;Ct<Et;Ct++)yt=yt.dbl();return yt};var utils$m=utils$p,BN$5=bnExports,inherits$4=inherits_browserExports,Base$2=base$5,assert$d=utils$m.assert;function ShortCurve(ht){Base$2.call(this,"short",ht),this.a=new BN$5(ht.a,16).toRed(this.red),this.b=new BN$5(ht.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(ht),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}inherits$4(ShortCurve,Base$2);var short=ShortCurve;ShortCurve.prototype._getEndomorphism=function(Et){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var yt,Ct;if(Et.beta)yt=new BN$5(Et.beta,16).toRed(this.red);else{var $t=this._getEndoRoots(this.p);yt=$t[0].cmp($t[1])<0?$t[0]:$t[1],yt=yt.toRed(this.red)}if(Et.lambda)Ct=new BN$5(Et.lambda,16);else{var At=this._getEndoRoots(this.n);this.g.mul(At[0]).x.cmp(this.g.x.redMul(yt))===0?Ct=At[0]:(Ct=At[1],assert$d(this.g.mul(Ct).x.cmp(this.g.x.redMul(yt))===0))}var Bt;return Et.basis?Bt=Et.basis.map(function(Dt){return{a:new BN$5(Dt.a,16),b:new BN$5(Dt.b,16)}}):Bt=this._getEndoBasis(Ct),{beta:yt,lambda:Ct,basis:Bt}}};ShortCurve.prototype._getEndoRoots=function(Et){var yt=Et===this.p?this.red:BN$5.mont(Et),Ct=new BN$5(2).toRed(yt).redInvm(),$t=Ct.redNeg(),At=new BN$5(3).toRed(yt).redNeg().redSqrt().redMul(Ct),Bt=$t.redAdd(At).fromRed(),Dt=$t.redSub(At).fromRed();return[Bt,Dt]};ShortCurve.prototype._getEndoBasis=function(Et){for(var yt=this.n.ushrn(Math.floor(this.n.bitLength()/2)),Ct=Et,$t=this.n.clone(),At=new BN$5(1),Bt=new BN$5(0),Dt=new BN$5(0),Ft=new BN$5(1),kt,Mt,Nt,jt,zt,Vt,Kt,Xt=0,Qt,Zt;Ct.cmpn(0)!==0;){var dr=$t.div(Ct);Qt=$t.sub(dr.mul(Ct)),Zt=Dt.sub(dr.mul(At));var cr=Ft.sub(dr.mul(Bt));if(!Nt&&Qt.cmp(yt)<0)kt=Kt.neg(),Mt=At,Nt=Qt.neg(),jt=Zt;else if(Nt&&++Xt===2)break;Kt=Qt,$t=Ct,Ct=Qt,Dt=At,At=Zt,Ft=Bt,Bt=cr}zt=Qt.neg(),Vt=Zt;var Er=Nt.sqr().add(jt.sqr()),pr=zt.sqr().add(Vt.sqr());return pr.cmp(Er)>=0&&(zt=kt,Vt=Mt),Nt.negative&&(Nt=Nt.neg(),jt=jt.neg()),zt.negative&&(zt=zt.neg(),Vt=Vt.neg()),[{a:Nt,b:jt},{a:zt,b:Vt}]};ShortCurve.prototype._endoSplit=function(Et){var yt=this.endo.basis,Ct=yt[0],$t=yt[1],At=$t.b.mul(Et).divRound(this.n),Bt=Ct.b.neg().mul(Et).divRound(this.n),Dt=At.mul(Ct.a),Ft=Bt.mul($t.a),kt=At.mul(Ct.b),Mt=Bt.mul($t.b),Nt=Et.sub(Dt).sub(Ft),jt=kt.add(Mt).neg();return{k1:Nt,k2:jt}};ShortCurve.prototype.pointFromX=function(Et,yt){Et=new BN$5(Et,16),Et.red||(Et=Et.toRed(this.red));var Ct=Et.redSqr().redMul(Et).redIAdd(Et.redMul(this.a)).redIAdd(this.b),$t=Ct.redSqrt();if($t.redSqr().redSub(Ct).cmp(this.zero)!==0)throw new Error("invalid point");var At=$t.fromRed().isOdd();return(yt&&!At||!yt&&At)&&($t=$t.redNeg()),this.point(Et,$t)};ShortCurve.prototype.validate=function(Et){if(Et.inf)return!0;var yt=Et.x,Ct=Et.y,$t=this.a.redMul(yt),At=yt.redSqr().redMul(yt).redIAdd($t).redIAdd(this.b);return Ct.redSqr().redISub(At).cmpn(0)===0};ShortCurve.prototype._endoWnafMulAdd=function(Et,yt,Ct){for(var $t=this._endoWnafT1,At=this._endoWnafT2,Bt=0;Bt<Et.length;Bt++){var Dt=this._endoSplit(yt[Bt]),Ft=Et[Bt],kt=Ft._getBeta();Dt.k1.negative&&(Dt.k1.ineg(),Ft=Ft.neg(!0)),Dt.k2.negative&&(Dt.k2.ineg(),kt=kt.neg(!0)),$t[Bt*2]=Ft,$t[Bt*2+1]=kt,At[Bt*2]=Dt.k1,At[Bt*2+1]=Dt.k2}for(var Mt=this._wnafMulAdd(1,$t,At,Bt*2,Ct),Nt=0;Nt<Bt*2;Nt++)$t[Nt]=null,At[Nt]=null;return Mt};function Point$2(ht,Et,yt,Ct){Base$2.BasePoint.call(this,ht,"affine"),Et===null&&yt===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new BN$5(Et,16),this.y=new BN$5(yt,16),Ct&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}inherits$4(Point$2,Base$2.BasePoint);ShortCurve.prototype.point=function(Et,yt,Ct){return new Point$2(this,Et,yt,Ct)};ShortCurve.prototype.pointFromJSON=function(Et,yt){return Point$2.fromJSON(this,Et,yt)};Point$2.prototype._getBeta=function(){if(this.curve.endo){var Et=this.precomputed;if(Et&&Et.beta)return Et.beta;var yt=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(Et){var Ct=this.curve,$t=function(At){return Ct.point(At.x.redMul(Ct.endo.beta),At.y)};Et.beta=yt,yt.precomputed={beta:null,naf:Et.naf&&{wnd:Et.naf.wnd,points:Et.naf.points.map($t)},doubles:Et.doubles&&{step:Et.doubles.step,points:Et.doubles.points.map($t)}}}return yt}};Point$2.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]};Point$2.fromJSON=function(Et,yt,Ct){typeof yt=="string"&&(yt=JSON.parse(yt));var $t=Et.point(yt[0],yt[1],Ct);if(!yt[2])return $t;function At(Dt){return Et.point(Dt[0],Dt[1],Ct)}var Bt=yt[2];return $t.precomputed={beta:null,doubles:Bt.doubles&&{step:Bt.doubles.step,points:[$t].concat(Bt.doubles.points.map(At))},naf:Bt.naf&&{wnd:Bt.naf.wnd,points:[$t].concat(Bt.naf.points.map(At))}},$t};Point$2.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"};Point$2.prototype.isInfinity=function(){return this.inf};Point$2.prototype.add=function(Et){if(this.inf)return Et;if(Et.inf)return this;if(this.eq(Et))return this.dbl();if(this.neg().eq(Et))return this.curve.point(null,null);if(this.x.cmp(Et.x)===0)return this.curve.point(null,null);var yt=this.y.redSub(Et.y);yt.cmpn(0)!==0&&(yt=yt.redMul(this.x.redSub(Et.x).redInvm()));var Ct=yt.redSqr().redISub(this.x).redISub(Et.x),$t=yt.redMul(this.x.redSub(Ct)).redISub(this.y);return this.curve.point(Ct,$t)};Point$2.prototype.dbl=function(){if(this.inf)return this;var Et=this.y.redAdd(this.y);if(Et.cmpn(0)===0)return this.curve.point(null,null);var yt=this.curve.a,Ct=this.x.redSqr(),$t=Et.redInvm(),At=Ct.redAdd(Ct).redIAdd(Ct).redIAdd(yt).redMul($t),Bt=At.redSqr().redISub(this.x.redAdd(this.x)),Dt=At.redMul(this.x.redSub(Bt)).redISub(this.y);return this.curve.point(Bt,Dt)};Point$2.prototype.getX=function(){return this.x.fromRed()};Point$2.prototype.getY=function(){return this.y.fromRed()};Point$2.prototype.mul=function(Et){return Et=new BN$5(Et,16),this.isInfinity()?this:this._hasDoubles(Et)?this.curve._fixedNafMul(this,Et):this.curve.endo?this.curve._endoWnafMulAdd([this],[Et]):this.curve._wnafMul(this,Et)};Point$2.prototype.mulAdd=function(Et,yt,Ct){var $t=[this,yt],At=[Et,Ct];return this.curve.endo?this.curve._endoWnafMulAdd($t,At):this.curve._wnafMulAdd(1,$t,At,2)};Point$2.prototype.jmulAdd=function(Et,yt,Ct){var $t=[this,yt],At=[Et,Ct];return this.curve.endo?this.curve._endoWnafMulAdd($t,At,!0):this.curve._wnafMulAdd(1,$t,At,2,!0)};Point$2.prototype.eq=function(Et){return this===Et||this.inf===Et.inf&&(this.inf||this.x.cmp(Et.x)===0&&this.y.cmp(Et.y)===0)};Point$2.prototype.neg=function(Et){if(this.inf)return this;var yt=this.curve.point(this.x,this.y.redNeg());if(Et&&this.precomputed){var Ct=this.precomputed,$t=function(At){return At.neg()};yt.precomputed={naf:Ct.naf&&{wnd:Ct.naf.wnd,points:Ct.naf.points.map($t)},doubles:Ct.doubles&&{step:Ct.doubles.step,points:Ct.doubles.points.map($t)}}}return yt};Point$2.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var Et=this.curve.jpoint(this.x,this.y,this.curve.one);return Et};function JPoint(ht,Et,yt,Ct){Base$2.BasePoint.call(this,ht,"jacobian"),Et===null&&yt===null&&Ct===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new BN$5(0)):(this.x=new BN$5(Et,16),this.y=new BN$5(yt,16),this.z=new BN$5(Ct,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}inherits$4(JPoint,Base$2.BasePoint);ShortCurve.prototype.jpoint=function(Et,yt,Ct){return new JPoint(this,Et,yt,Ct)};JPoint.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var Et=this.z.redInvm(),yt=Et.redSqr(),Ct=this.x.redMul(yt),$t=this.y.redMul(yt).redMul(Et);return this.curve.point(Ct,$t)};JPoint.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};JPoint.prototype.add=function(Et){if(this.isInfinity())return Et;if(Et.isInfinity())return this;var yt=Et.z.redSqr(),Ct=this.z.redSqr(),$t=this.x.redMul(yt),At=Et.x.redMul(Ct),Bt=this.y.redMul(yt.redMul(Et.z)),Dt=Et.y.redMul(Ct.redMul(this.z)),Ft=$t.redSub(At),kt=Bt.redSub(Dt);if(Ft.cmpn(0)===0)return kt.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var Mt=Ft.redSqr(),Nt=Mt.redMul(Ft),jt=$t.redMul(Mt),zt=kt.redSqr().redIAdd(Nt).redISub(jt).redISub(jt),Vt=kt.redMul(jt.redISub(zt)).redISub(Bt.redMul(Nt)),Kt=this.z.redMul(Et.z).redMul(Ft);return this.curve.jpoint(zt,Vt,Kt)};JPoint.prototype.mixedAdd=function(Et){if(this.isInfinity())return Et.toJ();if(Et.isInfinity())return this;var yt=this.z.redSqr(),Ct=this.x,$t=Et.x.redMul(yt),At=this.y,Bt=Et.y.redMul(yt).redMul(this.z),Dt=Ct.redSub($t),Ft=At.redSub(Bt);if(Dt.cmpn(0)===0)return Ft.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var kt=Dt.redSqr(),Mt=kt.redMul(Dt),Nt=Ct.redMul(kt),jt=Ft.redSqr().redIAdd(Mt).redISub(Nt).redISub(Nt),zt=Ft.redMul(Nt.redISub(jt)).redISub(At.redMul(Mt)),Vt=this.z.redMul(Dt);return this.curve.jpoint(jt,zt,Vt)};JPoint.prototype.dblp=function(Et){if(Et===0)return this;if(this.isInfinity())return this;if(!Et)return this.dbl();var yt;if(this.curve.zeroA||this.curve.threeA){var Ct=this;for(yt=0;yt<Et;yt++)Ct=Ct.dbl();return Ct}var $t=this.curve.a,At=this.curve.tinv,Bt=this.x,Dt=this.y,Ft=this.z,kt=Ft.redSqr().redSqr(),Mt=Dt.redAdd(Dt);for(yt=0;yt<Et;yt++){var Nt=Bt.redSqr(),jt=Mt.redSqr(),zt=jt.redSqr(),Vt=Nt.redAdd(Nt).redIAdd(Nt).redIAdd($t.redMul(kt)),Kt=Bt.redMul(jt),Xt=Vt.redSqr().redISub(Kt.redAdd(Kt)),Qt=Kt.redISub(Xt),Zt=Vt.redMul(Qt);Zt=Zt.redIAdd(Zt).redISub(zt);var dr=Mt.redMul(Ft);yt+1<Et&&(kt=kt.redMul(zt)),Bt=Xt,Ft=dr,Mt=Zt}return this.curve.jpoint(Bt,Mt.redMul(At),Ft)};JPoint.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()};JPoint.prototype._zeroDbl=function(){var Et,yt,Ct;if(this.zOne){var $t=this.x.redSqr(),At=this.y.redSqr(),Bt=At.redSqr(),Dt=this.x.redAdd(At).redSqr().redISub($t).redISub(Bt);Dt=Dt.redIAdd(Dt);var Ft=$t.redAdd($t).redIAdd($t),kt=Ft.redSqr().redISub(Dt).redISub(Dt),Mt=Bt.redIAdd(Bt);Mt=Mt.redIAdd(Mt),Mt=Mt.redIAdd(Mt),Et=kt,yt=Ft.redMul(Dt.redISub(kt)).redISub(Mt),Ct=this.y.redAdd(this.y)}else{var Nt=this.x.redSqr(),jt=this.y.redSqr(),zt=jt.redSqr(),Vt=this.x.redAdd(jt).redSqr().redISub(Nt).redISub(zt);Vt=Vt.redIAdd(Vt);var Kt=Nt.redAdd(Nt).redIAdd(Nt),Xt=Kt.redSqr(),Qt=zt.redIAdd(zt);Qt=Qt.redIAdd(Qt),Qt=Qt.redIAdd(Qt),Et=Xt.redISub(Vt).redISub(Vt),yt=Kt.redMul(Vt.redISub(Et)).redISub(Qt),Ct=this.y.redMul(this.z),Ct=Ct.redIAdd(Ct)}return this.curve.jpoint(Et,yt,Ct)};JPoint.prototype._threeDbl=function(){var Et,yt,Ct;if(this.zOne){var $t=this.x.redSqr(),At=this.y.redSqr(),Bt=At.redSqr(),Dt=this.x.redAdd(At).redSqr().redISub($t).redISub(Bt);Dt=Dt.redIAdd(Dt);var Ft=$t.redAdd($t).redIAdd($t).redIAdd(this.curve.a),kt=Ft.redSqr().redISub(Dt).redISub(Dt);Et=kt;var Mt=Bt.redIAdd(Bt);Mt=Mt.redIAdd(Mt),Mt=Mt.redIAdd(Mt),yt=Ft.redMul(Dt.redISub(kt)).redISub(Mt),Ct=this.y.redAdd(this.y)}else{var Nt=this.z.redSqr(),jt=this.y.redSqr(),zt=this.x.redMul(jt),Vt=this.x.redSub(Nt).redMul(this.x.redAdd(Nt));Vt=Vt.redAdd(Vt).redIAdd(Vt);var Kt=zt.redIAdd(zt);Kt=Kt.redIAdd(Kt);var Xt=Kt.redAdd(Kt);Et=Vt.redSqr().redISub(Xt),Ct=this.y.redAdd(this.z).redSqr().redISub(jt).redISub(Nt);var Qt=jt.redSqr();Qt=Qt.redIAdd(Qt),Qt=Qt.redIAdd(Qt),Qt=Qt.redIAdd(Qt),yt=Vt.redMul(Kt.redISub(Et)).redISub(Qt)}return this.curve.jpoint(Et,yt,Ct)};JPoint.prototype._dbl=function(){var Et=this.curve.a,yt=this.x,Ct=this.y,$t=this.z,At=$t.redSqr().redSqr(),Bt=yt.redSqr(),Dt=Ct.redSqr(),Ft=Bt.redAdd(Bt).redIAdd(Bt).redIAdd(Et.redMul(At)),kt=yt.redAdd(yt);kt=kt.redIAdd(kt);var Mt=kt.redMul(Dt),Nt=Ft.redSqr().redISub(Mt.redAdd(Mt)),jt=Mt.redISub(Nt),zt=Dt.redSqr();zt=zt.redIAdd(zt),zt=zt.redIAdd(zt),zt=zt.redIAdd(zt);var Vt=Ft.redMul(jt).redISub(zt),Kt=Ct.redAdd(Ct).redMul($t);return this.curve.jpoint(Nt,Vt,Kt)};JPoint.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var Et=this.x.redSqr(),yt=this.y.redSqr(),Ct=this.z.redSqr(),$t=yt.redSqr(),At=Et.redAdd(Et).redIAdd(Et),Bt=At.redSqr(),Dt=this.x.redAdd(yt).redSqr().redISub(Et).redISub($t);Dt=Dt.redIAdd(Dt),Dt=Dt.redAdd(Dt).redIAdd(Dt),Dt=Dt.redISub(Bt);var Ft=Dt.redSqr(),kt=$t.redIAdd($t);kt=kt.redIAdd(kt),kt=kt.redIAdd(kt),kt=kt.redIAdd(kt);var Mt=At.redIAdd(Dt).redSqr().redISub(Bt).redISub(Ft).redISub(kt),Nt=yt.redMul(Mt);Nt=Nt.redIAdd(Nt),Nt=Nt.redIAdd(Nt);var jt=this.x.redMul(Ft).redISub(Nt);jt=jt.redIAdd(jt),jt=jt.redIAdd(jt);var zt=this.y.redMul(Mt.redMul(kt.redISub(Mt)).redISub(Dt.redMul(Ft)));zt=zt.redIAdd(zt),zt=zt.redIAdd(zt),zt=zt.redIAdd(zt);var Vt=this.z.redAdd(Dt).redSqr().redISub(Ct).redISub(Ft);return this.curve.jpoint(jt,zt,Vt)};JPoint.prototype.mul=function(Et,yt){return Et=new BN$5(Et,yt),this.curve._wnafMul(this,Et)};JPoint.prototype.eq=function(Et){if(Et.type==="affine")return this.eq(Et.toJ());if(this===Et)return!0;var yt=this.z.redSqr(),Ct=Et.z.redSqr();if(this.x.redMul(Ct).redISub(Et.x.redMul(yt)).cmpn(0)!==0)return!1;var $t=yt.redMul(this.z),At=Ct.redMul(Et.z);return this.y.redMul(At).redISub(Et.y.redMul($t)).cmpn(0)===0};JPoint.prototype.eqXToP=function(Et){var yt=this.z.redSqr(),Ct=Et.toRed(this.curve.red).redMul(yt);if(this.x.cmp(Ct)===0)return!0;for(var $t=Et.clone(),At=this.curve.redN.redMul(yt);;){if($t.iadd(this.curve.n),$t.cmp(this.curve.p)>=0)return!1;if(Ct.redIAdd(At),this.x.cmp(Ct)===0)return!0}};JPoint.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"};JPoint.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var BN$4=bnExports,inherits$3=inherits_browserExports,Base$1=base$5,utils$l=utils$p;function MontCurve(ht){Base$1.call(this,"mont",ht),this.a=new BN$4(ht.a,16).toRed(this.red),this.b=new BN$4(ht.b,16).toRed(this.red),this.i4=new BN$4(4).toRed(this.red).redInvm(),this.two=new BN$4(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}inherits$3(MontCurve,Base$1);var mont=MontCurve;MontCurve.prototype.validate=function(Et){var yt=Et.normalize().x,Ct=yt.redSqr(),$t=Ct.redMul(yt).redAdd(Ct.redMul(this.a)).redAdd(yt),At=$t.redSqrt();return At.redSqr().cmp($t)===0};function Point$1(ht,Et,yt){Base$1.BasePoint.call(this,ht,"projective"),Et===null&&yt===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new BN$4(Et,16),this.z=new BN$4(yt,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}inherits$3(Point$1,Base$1.BasePoint);MontCurve.prototype.decodePoint=function(Et,yt){return this.point(utils$l.toArray(Et,yt),1)};MontCurve.prototype.point=function(Et,yt){return new Point$1(this,Et,yt)};MontCurve.prototype.pointFromJSON=function(Et){return Point$1.fromJSON(this,Et)};Point$1.prototype.precompute=function(){};Point$1.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};Point$1.fromJSON=function(Et,yt){return new Point$1(Et,yt[0],yt[1]||Et.one)};Point$1.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"};Point$1.prototype.isInfinity=function(){return this.z.cmpn(0)===0};Point$1.prototype.dbl=function(){var Et=this.x.redAdd(this.z),yt=Et.redSqr(),Ct=this.x.redSub(this.z),$t=Ct.redSqr(),At=yt.redSub($t),Bt=yt.redMul($t),Dt=At.redMul($t.redAdd(this.curve.a24.redMul(At)));return this.curve.point(Bt,Dt)};Point$1.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};Point$1.prototype.diffAdd=function(Et,yt){var Ct=this.x.redAdd(this.z),$t=this.x.redSub(this.z),At=Et.x.redAdd(Et.z),Bt=Et.x.redSub(Et.z),Dt=Bt.redMul(Ct),Ft=At.redMul($t),kt=yt.z.redMul(Dt.redAdd(Ft).redSqr()),Mt=yt.x.redMul(Dt.redISub(Ft).redSqr());return this.curve.point(kt,Mt)};Point$1.prototype.mul=function(Et){for(var yt=Et.clone(),Ct=this,$t=this.curve.point(null,null),At=this,Bt=[];yt.cmpn(0)!==0;yt.iushrn(1))Bt.push(yt.andln(1));for(var Dt=Bt.length-1;Dt>=0;Dt--)Bt[Dt]===0?(Ct=Ct.diffAdd($t,At),$t=$t.dbl()):($t=Ct.diffAdd($t,At),Ct=Ct.dbl());return $t};Point$1.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};Point$1.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};Point$1.prototype.eq=function(Et){return this.getX().cmp(Et.getX())===0};Point$1.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};Point$1.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var utils$k=utils$p,BN$3=bnExports,inherits$2=inherits_browserExports,Base=base$5,assert$c=utils$k.assert;function EdwardsCurve(ht){this.twisted=(ht.a|0)!==1,this.mOneA=this.twisted&&(ht.a|0)===-1,this.extended=this.mOneA,Base.call(this,"edwards",ht),this.a=new BN$3(ht.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new BN$3(ht.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new BN$3(ht.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),assert$c(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(ht.c|0)===1}inherits$2(EdwardsCurve,Base);var edwards=EdwardsCurve;EdwardsCurve.prototype._mulA=function(Et){return this.mOneA?Et.redNeg():this.a.redMul(Et)};EdwardsCurve.prototype._mulC=function(Et){return this.oneC?Et:this.c.redMul(Et)};EdwardsCurve.prototype.jpoint=function(Et,yt,Ct,$t){return this.point(Et,yt,Ct,$t)};EdwardsCurve.prototype.pointFromX=function(Et,yt){Et=new BN$3(Et,16),Et.red||(Et=Et.toRed(this.red));var Ct=Et.redSqr(),$t=this.c2.redSub(this.a.redMul(Ct)),At=this.one.redSub(this.c2.redMul(this.d).redMul(Ct)),Bt=$t.redMul(At.redInvm()),Dt=Bt.redSqrt();if(Dt.redSqr().redSub(Bt).cmp(this.zero)!==0)throw new Error("invalid point");var Ft=Dt.fromRed().isOdd();return(yt&&!Ft||!yt&&Ft)&&(Dt=Dt.redNeg()),this.point(Et,Dt)};EdwardsCurve.prototype.pointFromY=function(Et,yt){Et=new BN$3(Et,16),Et.red||(Et=Et.toRed(this.red));var Ct=Et.redSqr(),$t=Ct.redSub(this.c2),At=Ct.redMul(this.d).redMul(this.c2).redSub(this.a),Bt=$t.redMul(At.redInvm());if(Bt.cmp(this.zero)===0){if(yt)throw new Error("invalid point");return this.point(this.zero,Et)}var Dt=Bt.redSqrt();if(Dt.redSqr().redSub(Bt).cmp(this.zero)!==0)throw new Error("invalid point");return Dt.fromRed().isOdd()!==yt&&(Dt=Dt.redNeg()),this.point(Dt,Et)};EdwardsCurve.prototype.validate=function(Et){if(Et.isInfinity())return!0;Et.normalize();var yt=Et.x.redSqr(),Ct=Et.y.redSqr(),$t=yt.redMul(this.a).redAdd(Ct),At=this.c2.redMul(this.one.redAdd(this.d.redMul(yt).redMul(Ct)));return $t.cmp(At)===0};function Point(ht,Et,yt,Ct,$t){Base.BasePoint.call(this,ht,"projective"),Et===null&&yt===null&&Ct===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new BN$3(Et,16),this.y=new BN$3(yt,16),this.z=Ct?new BN$3(Ct,16):this.curve.one,this.t=$t&&new BN$3($t,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}inherits$2(Point,Base.BasePoint);EdwardsCurve.prototype.pointFromJSON=function(Et){return Point.fromJSON(this,Et)};EdwardsCurve.prototype.point=function(Et,yt,Ct,$t){return new Point(this,Et,yt,Ct,$t)};Point.fromJSON=function(Et,yt){return new Point(Et,yt[0],yt[1],yt[2])};Point.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"};Point.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};Point.prototype._extDbl=function(){var Et=this.x.redSqr(),yt=this.y.redSqr(),Ct=this.z.redSqr();Ct=Ct.redIAdd(Ct);var $t=this.curve._mulA(Et),At=this.x.redAdd(this.y).redSqr().redISub(Et).redISub(yt),Bt=$t.redAdd(yt),Dt=Bt.redSub(Ct),Ft=$t.redSub(yt),kt=At.redMul(Dt),Mt=Bt.redMul(Ft),Nt=At.redMul(Ft),jt=Dt.redMul(Bt);return this.curve.point(kt,Mt,jt,Nt)};Point.prototype._projDbl=function(){var Et=this.x.redAdd(this.y).redSqr(),yt=this.x.redSqr(),Ct=this.y.redSqr(),$t,At,Bt,Dt,Ft,kt;if(this.curve.twisted){Dt=this.curve._mulA(yt);var Mt=Dt.redAdd(Ct);this.zOne?($t=Et.redSub(yt).redSub(Ct).redMul(Mt.redSub(this.curve.two)),At=Mt.redMul(Dt.redSub(Ct)),Bt=Mt.redSqr().redSub(Mt).redSub(Mt)):(Ft=this.z.redSqr(),kt=Mt.redSub(Ft).redISub(Ft),$t=Et.redSub(yt).redISub(Ct).redMul(kt),At=Mt.redMul(Dt.redSub(Ct)),Bt=Mt.redMul(kt))}else Dt=yt.redAdd(Ct),Ft=this.curve._mulC(this.z).redSqr(),kt=Dt.redSub(Ft).redSub(Ft),$t=this.curve._mulC(Et.redISub(Dt)).redMul(kt),At=this.curve._mulC(Dt).redMul(yt.redISub(Ct)),Bt=Dt.redMul(kt);return this.curve.point($t,At,Bt)};Point.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};Point.prototype._extAdd=function(Et){var yt=this.y.redSub(this.x).redMul(Et.y.redSub(Et.x)),Ct=this.y.redAdd(this.x).redMul(Et.y.redAdd(Et.x)),$t=this.t.redMul(this.curve.dd).redMul(Et.t),At=this.z.redMul(Et.z.redAdd(Et.z)),Bt=Ct.redSub(yt),Dt=At.redSub($t),Ft=At.redAdd($t),kt=Ct.redAdd(yt),Mt=Bt.redMul(Dt),Nt=Ft.redMul(kt),jt=Bt.redMul(kt),zt=Dt.redMul(Ft);return this.curve.point(Mt,Nt,zt,jt)};Point.prototype._projAdd=function(Et){var yt=this.z.redMul(Et.z),Ct=yt.redSqr(),$t=this.x.redMul(Et.x),At=this.y.redMul(Et.y),Bt=this.curve.d.redMul($t).redMul(At),Dt=Ct.redSub(Bt),Ft=Ct.redAdd(Bt),kt=this.x.redAdd(this.y).redMul(Et.x.redAdd(Et.y)).redISub($t).redISub(At),Mt=yt.redMul(Dt).redMul(kt),Nt,jt;return this.curve.twisted?(Nt=yt.redMul(Ft).redMul(At.redSub(this.curve._mulA($t))),jt=Dt.redMul(Ft)):(Nt=yt.redMul(Ft).redMul(At.redSub($t)),jt=this.curve._mulC(Dt).redMul(Ft)),this.curve.point(Mt,Nt,jt)};Point.prototype.add=function(Et){return this.isInfinity()?Et:Et.isInfinity()?this:this.curve.extended?this._extAdd(Et):this._projAdd(Et)};Point.prototype.mul=function(Et){return this._hasDoubles(Et)?this.curve._fixedNafMul(this,Et):this.curve._wnafMul(this,Et)};Point.prototype.mulAdd=function(Et,yt,Ct){return this.curve._wnafMulAdd(1,[this,yt],[Et,Ct],2,!1)};Point.prototype.jmulAdd=function(Et,yt,Ct){return this.curve._wnafMulAdd(1,[this,yt],[Et,Ct],2,!0)};Point.prototype.normalize=function(){if(this.zOne)return this;var Et=this.z.redInvm();return this.x=this.x.redMul(Et),this.y=this.y.redMul(Et),this.t&&(this.t=this.t.redMul(Et)),this.z=this.curve.one,this.zOne=!0,this};Point.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};Point.prototype.getX=function(){return this.normalize(),this.x.fromRed()};Point.prototype.getY=function(){return this.normalize(),this.y.fromRed()};Point.prototype.eq=function(Et){return this===Et||this.getX().cmp(Et.getX())===0&&this.getY().cmp(Et.getY())===0};Point.prototype.eqXToP=function(Et){var yt=Et.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(yt)===0)return!0;for(var Ct=Et.clone(),$t=this.curve.redN.redMul(this.z);;){if(Ct.iadd(this.curve.n),Ct.cmp(this.curve.p)>=0)return!1;if(yt.redIAdd($t),this.x.cmp(yt)===0)return!0}};Point.prototype.toP=Point.prototype.normalize;Point.prototype.mixedAdd=Point.prototype.add;(function(ht){var Et=ht;Et.base=base$5,Et.short=short,Et.mont=mont,Et.edwards=edwards})(curve);var curves$1={},hash$3={},utils$j={},assert$b=minimalisticAssert,inherits$1=inherits_browserExports;utils$j.inherits=inherits$1;function isSurrogatePair(ht,Et){return(ht.charCodeAt(Et)&64512)!==55296||Et<0||Et+1>=ht.length?!1:(ht.charCodeAt(Et+1)&64512)===56320}function toArray$6(ht,Et){if(Array.isArray(ht))return ht.slice();if(!ht)return[];var yt=[];if(typeof ht=="string")if(Et){if(Et==="hex")for(ht=ht.replace(/[^a-z0-9]+/ig,""),ht.length%2!==0&&(ht="0"+ht),$t=0;$t<ht.length;$t+=2)yt.push(parseInt(ht[$t]+ht[$t+1],16))}else for(var Ct=0,$t=0;$t<ht.length;$t++){var At=ht.charCodeAt($t);At<128?yt[Ct++]=At:At<2048?(yt[Ct++]=At>>6|192,yt[Ct++]=At&63|128):isSurrogatePair(ht,$t)?(At=65536+((At&1023)<<10)+(ht.charCodeAt(++$t)&1023),yt[Ct++]=At>>18|240,yt[Ct++]=At>>12&63|128,yt[Ct++]=At>>6&63|128,yt[Ct++]=At&63|128):(yt[Ct++]=At>>12|224,yt[Ct++]=At>>6&63|128,yt[Ct++]=At&63|128)}else for($t=0;$t<ht.length;$t++)yt[$t]=ht[$t]|0;return yt}utils$j.toArray=toArray$6;function toHex$1(ht){for(var Et="",yt=0;yt<ht.length;yt++)Et+=zero2(ht[yt].toString(16));return Et}utils$j.toHex=toHex$1;function htonl(ht){var Et=ht>>>24|ht>>>8&65280|ht<<8&16711680|(ht&255)<<24;return Et>>>0}utils$j.htonl=htonl;function toHex32(ht,Et){for(var yt="",Ct=0;Ct<ht.length;Ct++){var $t=ht[Ct];Et==="little"&&($t=htonl($t)),yt+=zero8($t.toString(16))}return yt}utils$j.toHex32=toHex32;function zero2(ht){return ht.length===1?"0"+ht:ht}utils$j.zero2=zero2;function zero8(ht){return ht.length===7?"0"+ht:ht.length===6?"00"+ht:ht.length===5?"000"+ht:ht.length===4?"0000"+ht:ht.length===3?"00000"+ht:ht.length===2?"000000"+ht:ht.length===1?"0000000"+ht:ht}utils$j.zero8=zero8;function join32(ht,Et,yt,Ct){var $t=yt-Et;assert$b($t%4===0);for(var At=new Array($t/4),Bt=0,Dt=Et;Bt<At.length;Bt++,Dt+=4){var Ft;Ct==="big"?Ft=ht[Dt]<<24|ht[Dt+1]<<16|ht[Dt+2]<<8|ht[Dt+3]:Ft=ht[Dt+3]<<24|ht[Dt+2]<<16|ht[Dt+1]<<8|ht[Dt],At[Bt]=Ft>>>0}return At}utils$j.join32=join32;function split32(ht,Et){for(var yt=new Array(ht.length*4),Ct=0,$t=0;Ct<ht.length;Ct++,$t+=4){var At=ht[Ct];Et==="big"?(yt[$t]=At>>>24,yt[$t+1]=At>>>16&255,yt[$t+2]=At>>>8&255,yt[$t+3]=At&255):(yt[$t+3]=At>>>24,yt[$t+2]=At>>>16&255,yt[$t+1]=At>>>8&255,yt[$t]=At&255)}return yt}utils$j.split32=split32;function rotr32$1(ht,Et){return ht>>>Et|ht<<32-Et}utils$j.rotr32=rotr32$1;function rotl32$2(ht,Et){return ht<<Et|ht>>>32-Et}utils$j.rotl32=rotl32$2;function sum32$3(ht,Et){return ht+Et>>>0}utils$j.sum32=sum32$3;function sum32_3$1(ht,Et,yt){return ht+Et+yt>>>0}utils$j.sum32_3=sum32_3$1;function sum32_4$2(ht,Et,yt,Ct){return ht+Et+yt+Ct>>>0}utils$j.sum32_4=sum32_4$2;function sum32_5$2(ht,Et,yt,Ct,$t){return ht+Et+yt+Ct+$t>>>0}utils$j.sum32_5=sum32_5$2;function sum64$1(ht,Et,yt,Ct){var $t=ht[Et],At=ht[Et+1],Bt=Ct+At>>>0,Dt=(Bt<Ct?1:0)+yt+$t;ht[Et]=Dt>>>0,ht[Et+1]=Bt}utils$j.sum64=sum64$1;function sum64_hi$1(ht,Et,yt,Ct){var $t=Et+Ct>>>0,At=($t<Et?1:0)+ht+yt;return At>>>0}utils$j.sum64_hi=sum64_hi$1;function sum64_lo$1(ht,Et,yt,Ct){var $t=Et+Ct;return $t>>>0}utils$j.sum64_lo=sum64_lo$1;function sum64_4_hi$1(ht,Et,yt,Ct,$t,At,Bt,Dt){var Ft=0,kt=Et;kt=kt+Ct>>>0,Ft+=kt<Et?1:0,kt=kt+At>>>0,Ft+=kt<At?1:0,kt=kt+Dt>>>0,Ft+=kt<Dt?1:0;var Mt=ht+yt+$t+Bt+Ft;return Mt>>>0}utils$j.sum64_4_hi=sum64_4_hi$1;function sum64_4_lo$1(ht,Et,yt,Ct,$t,At,Bt,Dt){var Ft=Et+Ct+At+Dt;return Ft>>>0}utils$j.sum64_4_lo=sum64_4_lo$1;function sum64_5_hi$1(ht,Et,yt,Ct,$t,At,Bt,Dt,Ft,kt){var Mt=0,Nt=Et;Nt=Nt+Ct>>>0,Mt+=Nt<Et?1:0,Nt=Nt+At>>>0,Mt+=Nt<At?1:0,Nt=Nt+Dt>>>0,Mt+=Nt<Dt?1:0,Nt=Nt+kt>>>0,Mt+=Nt<kt?1:0;var jt=ht+yt+$t+Bt+Ft+Mt;return jt>>>0}utils$j.sum64_5_hi=sum64_5_hi$1;function sum64_5_lo$1(ht,Et,yt,Ct,$t,At,Bt,Dt,Ft,kt){var Mt=Et+Ct+At+Dt+kt;return Mt>>>0}utils$j.sum64_5_lo=sum64_5_lo$1;function rotr64_hi$1(ht,Et,yt){var Ct=Et<<32-yt|ht>>>yt;return Ct>>>0}utils$j.rotr64_hi=rotr64_hi$1;function rotr64_lo$1(ht,Et,yt){var Ct=ht<<32-yt|Et>>>yt;return Ct>>>0}utils$j.rotr64_lo=rotr64_lo$1;function shr64_hi$1(ht,Et,yt){return ht>>>yt}utils$j.shr64_hi=shr64_hi$1;function shr64_lo$1(ht,Et,yt){var Ct=ht<<32-yt|Et>>>yt;return Ct>>>0}utils$j.shr64_lo=shr64_lo$1;var common$5={},utils$i=utils$j,assert$a=minimalisticAssert;function BlockHash$4(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}common$5.BlockHash=BlockHash$4;BlockHash$4.prototype.update=function(Et,yt){if(Et=utils$i.toArray(Et,yt),this.pending?this.pending=this.pending.concat(Et):this.pending=Et,this.pendingTotal+=Et.length,this.pending.length>=this._delta8){Et=this.pending;var Ct=Et.length%this._delta8;this.pending=Et.slice(Et.length-Ct,Et.length),this.pending.length===0&&(this.pending=null),Et=utils$i.join32(Et,0,Et.length-Ct,this.endian);for(var $t=0;$t<Et.length;$t+=this._delta32)this._update(Et,$t,$t+this._delta32)}return this};BlockHash$4.prototype.digest=function(Et){return this.update(this._pad()),assert$a(this.pending===null),this._digest(Et)};BlockHash$4.prototype._pad=function(){var Et=this.pendingTotal,yt=this._delta8,Ct=yt-(Et+this.padLength)%yt,$t=new Array(Ct+this.padLength);$t[0]=128;for(var At=1;At<Ct;At++)$t[At]=0;if(Et<<=3,this.endian==="big"){for(var Bt=8;Bt<this.padLength;Bt++)$t[At++]=0;$t[At++]=0,$t[At++]=0,$t[At++]=0,$t[At++]=0,$t[At++]=Et>>>24&255,$t[At++]=Et>>>16&255,$t[At++]=Et>>>8&255,$t[At++]=Et&255}else for($t[At++]=Et&255,$t[At++]=Et>>>8&255,$t[At++]=Et>>>16&255,$t[At++]=Et>>>24&255,$t[At++]=0,$t[At++]=0,$t[At++]=0,$t[At++]=0,Bt=8;Bt<this.padLength;Bt++)$t[At++]=0;return $t};var sha={},common$4={},utils$h=utils$j,rotr32=utils$h.rotr32;function ft_1$1(ht,Et,yt,Ct){if(ht===0)return ch32$1(Et,yt,Ct);if(ht===1||ht===3)return p32(Et,yt,Ct);if(ht===2)return maj32$1(Et,yt,Ct)}common$4.ft_1=ft_1$1;function ch32$1(ht,Et,yt){return ht&Et^~ht&yt}common$4.ch32=ch32$1;function maj32$1(ht,Et,yt){return ht&Et^ht&yt^Et&yt}common$4.maj32=maj32$1;function p32(ht,Et,yt){return ht^Et^yt}common$4.p32=p32;function s0_256$1(ht){return rotr32(ht,2)^rotr32(ht,13)^rotr32(ht,22)}common$4.s0_256=s0_256$1;function s1_256$1(ht){return rotr32(ht,6)^rotr32(ht,11)^rotr32(ht,25)}common$4.s1_256=s1_256$1;function g0_256$1(ht){return rotr32(ht,7)^rotr32(ht,18)^ht>>>3}common$4.g0_256=g0_256$1;function g1_256$1(ht){return rotr32(ht,17)^rotr32(ht,19)^ht>>>10}common$4.g1_256=g1_256$1;var utils$g=utils$j,common$3=common$5,shaCommon$1=common$4,rotl32$1=utils$g.rotl32,sum32$2=utils$g.sum32,sum32_5$1=utils$g.sum32_5,ft_1=shaCommon$1.ft_1,BlockHash$3=common$3.BlockHash,sha1_K=[1518500249,1859775393,2400959708,3395469782];function SHA1(){if(!(this instanceof SHA1))return new SHA1;BlockHash$3.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}utils$g.inherits(SHA1,BlockHash$3);var _1=SHA1;SHA1.blockSize=512;SHA1.outSize=160;SHA1.hmacStrength=80;SHA1.padLength=64;SHA1.prototype._update=function(Et,yt){for(var Ct=this.W,$t=0;$t<16;$t++)Ct[$t]=Et[yt+$t];for(;$t<Ct.length;$t++)Ct[$t]=rotl32$1(Ct[$t-3]^Ct[$t-8]^Ct[$t-14]^Ct[$t-16],1);var At=this.h[0],Bt=this.h[1],Dt=this.h[2],Ft=this.h[3],kt=this.h[4];for($t=0;$t<Ct.length;$t++){var Mt=~~($t/20),Nt=sum32_5$1(rotl32$1(At,5),ft_1(Mt,Bt,Dt,Ft),kt,Ct[$t],sha1_K[Mt]);kt=Ft,Ft=Dt,Dt=rotl32$1(Bt,30),Bt=At,At=Nt}this.h[0]=sum32$2(this.h[0],At),this.h[1]=sum32$2(this.h[1],Bt),this.h[2]=sum32$2(this.h[2],Dt),this.h[3]=sum32$2(this.h[3],Ft),this.h[4]=sum32$2(this.h[4],kt)};SHA1.prototype._digest=function(Et){return Et==="hex"?utils$g.toHex32(this.h,"big"):utils$g.split32(this.h,"big")};var utils$f=utils$j,common$2=common$5,shaCommon=common$4,assert$9=minimalisticAssert,sum32$1=utils$f.sum32,sum32_4$1=utils$f.sum32_4,sum32_5=utils$f.sum32_5,ch32=shaCommon.ch32,maj32=shaCommon.maj32,s0_256=shaCommon.s0_256,s1_256=shaCommon.s1_256,g0_256=shaCommon.g0_256,g1_256=shaCommon.g1_256,BlockHash$2=common$2.BlockHash,sha256_K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function SHA256$1(){if(!(this instanceof SHA256$1))return new SHA256$1;BlockHash$2.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=sha256_K,this.W=new Array(64)}utils$f.inherits(SHA256$1,BlockHash$2);var _256=SHA256$1;SHA256$1.blockSize=512;SHA256$1.outSize=256;SHA256$1.hmacStrength=192;SHA256$1.padLength=64;SHA256$1.prototype._update=function(Et,yt){for(var Ct=this.W,$t=0;$t<16;$t++)Ct[$t]=Et[yt+$t];for(;$t<Ct.length;$t++)Ct[$t]=sum32_4$1(g1_256(Ct[$t-2]),Ct[$t-7],g0_256(Ct[$t-15]),Ct[$t-16]);var At=this.h[0],Bt=this.h[1],Dt=this.h[2],Ft=this.h[3],kt=this.h[4],Mt=this.h[5],Nt=this.h[6],jt=this.h[7];for(assert$9(this.k.length===Ct.length),$t=0;$t<Ct.length;$t++){var zt=sum32_5(jt,s1_256(kt),ch32(kt,Mt,Nt),this.k[$t],Ct[$t]),Vt=sum32$1(s0_256(At),maj32(At,Bt,Dt));jt=Nt,Nt=Mt,Mt=kt,kt=sum32$1(Ft,zt),Ft=Dt,Dt=Bt,Bt=At,At=sum32$1(zt,Vt)}this.h[0]=sum32$1(this.h[0],At),this.h[1]=sum32$1(this.h[1],Bt),this.h[2]=sum32$1(this.h[2],Dt),this.h[3]=sum32$1(this.h[3],Ft),this.h[4]=sum32$1(this.h[4],kt),this.h[5]=sum32$1(this.h[5],Mt),this.h[6]=sum32$1(this.h[6],Nt),this.h[7]=sum32$1(this.h[7],jt)};SHA256$1.prototype._digest=function(Et){return Et==="hex"?utils$f.toHex32(this.h,"big"):utils$f.split32(this.h,"big")};var utils$e=utils$j,SHA256=_256;function SHA224(){if(!(this instanceof SHA224))return new SHA224;SHA256.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}utils$e.inherits(SHA224,SHA256);var _224=SHA224;SHA224.blockSize=512;SHA224.outSize=224;SHA224.hmacStrength=192;SHA224.padLength=64;SHA224.prototype._digest=function(Et){return Et==="hex"?utils$e.toHex32(this.h.slice(0,7),"big"):utils$e.split32(this.h.slice(0,7),"big")};var utils$d=utils$j,common$1=common$5,assert$8=minimalisticAssert,rotr64_hi=utils$d.rotr64_hi,rotr64_lo=utils$d.rotr64_lo,shr64_hi=utils$d.shr64_hi,shr64_lo=utils$d.shr64_lo,sum64=utils$d.sum64,sum64_hi=utils$d.sum64_hi,sum64_lo=utils$d.sum64_lo,sum64_4_hi=utils$d.sum64_4_hi,sum64_4_lo=utils$d.sum64_4_lo,sum64_5_hi=utils$d.sum64_5_hi,sum64_5_lo=utils$d.sum64_5_lo,BlockHash$1=common$1.BlockHash,sha512_K=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function SHA512$1(){if(!(this instanceof SHA512$1))return new SHA512$1;BlockHash$1.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=sha512_K,this.W=new Array(160)}utils$d.inherits(SHA512$1,BlockHash$1);var _512=SHA512$1;SHA512$1.blockSize=1024;SHA512$1.outSize=512;SHA512$1.hmacStrength=192;SHA512$1.padLength=128;SHA512$1.prototype._prepareBlock=function(Et,yt){for(var Ct=this.W,$t=0;$t<32;$t++)Ct[$t]=Et[yt+$t];for(;$t<Ct.length;$t+=2){var At=g1_512_hi(Ct[$t-4],Ct[$t-3]),Bt=g1_512_lo(Ct[$t-4],Ct[$t-3]),Dt=Ct[$t-14],Ft=Ct[$t-13],kt=g0_512_hi(Ct[$t-30],Ct[$t-29]),Mt=g0_512_lo(Ct[$t-30],Ct[$t-29]),Nt=Ct[$t-32],jt=Ct[$t-31];Ct[$t]=sum64_4_hi(At,Bt,Dt,Ft,kt,Mt,Nt,jt),Ct[$t+1]=sum64_4_lo(At,Bt,Dt,Ft,kt,Mt,Nt,jt)}};SHA512$1.prototype._update=function(Et,yt){this._prepareBlock(Et,yt);var Ct=this.W,$t=this.h[0],At=this.h[1],Bt=this.h[2],Dt=this.h[3],Ft=this.h[4],kt=this.h[5],Mt=this.h[6],Nt=this.h[7],jt=this.h[8],zt=this.h[9],Vt=this.h[10],Kt=this.h[11],Xt=this.h[12],Qt=this.h[13],Zt=this.h[14],dr=this.h[15];assert$8(this.k.length===Ct.length);for(var cr=0;cr<Ct.length;cr+=2){var Er=Zt,pr=dr,gr=s1_512_hi(jt,zt),vr=s1_512_lo(jt,zt),yr=ch64_hi(jt,zt,Vt,Kt,Xt),xr=ch64_lo(jt,zt,Vt,Kt,Xt,Qt),rr=this.k[cr],Lt=this.k[cr+1],Ht=Ct[cr],Wt=Ct[cr+1],Gt=sum64_5_hi(Er,pr,gr,vr,yr,xr,rr,Lt,Ht,Wt),Yt=sum64_5_lo(Er,pr,gr,vr,yr,xr,rr,Lt,Ht,Wt);Er=s0_512_hi($t,At),pr=s0_512_lo($t,At),gr=maj64_hi($t,At,Bt,Dt,Ft),vr=maj64_lo($t,At,Bt,Dt,Ft,kt);var er=sum64_hi(Er,pr,gr,vr),lr=sum64_lo(Er,pr,gr,vr);Zt=Xt,dr=Qt,Xt=Vt,Qt=Kt,Vt=jt,Kt=zt,jt=sum64_hi(Mt,Nt,Gt,Yt),zt=sum64_lo(Nt,Nt,Gt,Yt),Mt=Ft,Nt=kt,Ft=Bt,kt=Dt,Bt=$t,Dt=At,$t=sum64_hi(Gt,Yt,er,lr),At=sum64_lo(Gt,Yt,er,lr)}sum64(this.h,0,$t,At),sum64(this.h,2,Bt,Dt),sum64(this.h,4,Ft,kt),sum64(this.h,6,Mt,Nt),sum64(this.h,8,jt,zt),sum64(this.h,10,Vt,Kt),sum64(this.h,12,Xt,Qt),sum64(this.h,14,Zt,dr)};SHA512$1.prototype._digest=function(Et){return Et==="hex"?utils$d.toHex32(this.h,"big"):utils$d.split32(this.h,"big")};function ch64_hi(ht,Et,yt,Ct,$t){var At=ht&yt^~ht&$t;return At<0&&(At+=4294967296),At}function ch64_lo(ht,Et,yt,Ct,$t,At){var Bt=Et&Ct^~Et&At;return Bt<0&&(Bt+=4294967296),Bt}function maj64_hi(ht,Et,yt,Ct,$t){var At=ht&yt^ht&$t^yt&$t;return At<0&&(At+=4294967296),At}function maj64_lo(ht,Et,yt,Ct,$t,At){var Bt=Et&Ct^Et&At^Ct&At;return Bt<0&&(Bt+=4294967296),Bt}function s0_512_hi(ht,Et){var yt=rotr64_hi(ht,Et,28),Ct=rotr64_hi(Et,ht,2),$t=rotr64_hi(Et,ht,7),At=yt^Ct^$t;return At<0&&(At+=4294967296),At}function s0_512_lo(ht,Et){var yt=rotr64_lo(ht,Et,28),Ct=rotr64_lo(Et,ht,2),$t=rotr64_lo(Et,ht,7),At=yt^Ct^$t;return At<0&&(At+=4294967296),At}function s1_512_hi(ht,Et){var yt=rotr64_hi(ht,Et,14),Ct=rotr64_hi(ht,Et,18),$t=rotr64_hi(Et,ht,9),At=yt^Ct^$t;return At<0&&(At+=4294967296),At}function s1_512_lo(ht,Et){var yt=rotr64_lo(ht,Et,14),Ct=rotr64_lo(ht,Et,18),$t=rotr64_lo(Et,ht,9),At=yt^Ct^$t;return At<0&&(At+=4294967296),At}function g0_512_hi(ht,Et){var yt=rotr64_hi(ht,Et,1),Ct=rotr64_hi(ht,Et,8),$t=shr64_hi(ht,Et,7),At=yt^Ct^$t;return At<0&&(At+=4294967296),At}function g0_512_lo(ht,Et){var yt=rotr64_lo(ht,Et,1),Ct=rotr64_lo(ht,Et,8),$t=shr64_lo(ht,Et,7),At=yt^Ct^$t;return At<0&&(At+=4294967296),At}function g1_512_hi(ht,Et){var yt=rotr64_hi(ht,Et,19),Ct=rotr64_hi(Et,ht,29),$t=shr64_hi(ht,Et,6),At=yt^Ct^$t;return At<0&&(At+=4294967296),At}function g1_512_lo(ht,Et){var yt=rotr64_lo(ht,Et,19),Ct=rotr64_lo(Et,ht,29),$t=shr64_lo(ht,Et,6),At=yt^Ct^$t;return At<0&&(At+=4294967296),At}var utils$c=utils$j,SHA512=_512;function SHA384(){if(!(this instanceof SHA384))return new SHA384;SHA512.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}utils$c.inherits(SHA384,SHA512);var _384=SHA384;SHA384.blockSize=1024;SHA384.outSize=384;SHA384.hmacStrength=192;SHA384.padLength=128;SHA384.prototype._digest=function(Et){return Et==="hex"?utils$c.toHex32(this.h.slice(0,12),"big"):utils$c.split32(this.h.slice(0,12),"big")};sha.sha1=_1;sha.sha224=_224;sha.sha256=_256;sha.sha384=_384;sha.sha512=_512;var ripemd={},utils$b=utils$j,common=common$5,rotl32=utils$b.rotl32,sum32=utils$b.sum32,sum32_3=utils$b.sum32_3,sum32_4=utils$b.sum32_4,BlockHash=common.BlockHash;function RIPEMD160(){if(!(this instanceof RIPEMD160))return new RIPEMD160;BlockHash.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}utils$b.inherits(RIPEMD160,BlockHash);ripemd.ripemd160=RIPEMD160;RIPEMD160.blockSize=512;RIPEMD160.outSize=160;RIPEMD160.hmacStrength=192;RIPEMD160.padLength=64;RIPEMD160.prototype._update=function(Et,yt){for(var Ct=this.h[0],$t=this.h[1],At=this.h[2],Bt=this.h[3],Dt=this.h[4],Ft=Ct,kt=$t,Mt=At,Nt=Bt,jt=Dt,zt=0;zt<80;zt++){var Vt=sum32(rotl32(sum32_4(Ct,f$c(zt,$t,At,Bt),Et[r$8[zt]+yt],K(zt)),s$a[zt]),Dt);Ct=Dt,Dt=Bt,Bt=rotl32(At,10),At=$t,$t=Vt,Vt=sum32(rotl32(sum32_4(Ft,f$c(79-zt,kt,Mt,Nt),Et[rh[zt]+yt],Kh(zt)),sh$1[zt]),jt),Ft=jt,jt=Nt,Nt=rotl32(Mt,10),Mt=kt,kt=Vt}Vt=sum32_3(this.h[1],At,Nt),this.h[1]=sum32_3(this.h[2],Bt,jt),this.h[2]=sum32_3(this.h[3],Dt,Ft),this.h[3]=sum32_3(this.h[4],Ct,kt),this.h[4]=sum32_3(this.h[0],$t,Mt),this.h[0]=Vt};RIPEMD160.prototype._digest=function(Et){return Et==="hex"?utils$b.toHex32(this.h,"little"):utils$b.split32(this.h,"little")};function f$c(ht,Et,yt,Ct){return ht<=15?Et^yt^Ct:ht<=31?Et&yt|~Et&Ct:ht<=47?(Et|~yt)^Ct:ht<=63?Et&Ct|yt&~Ct:Et^(yt|~Ct)}function K(ht){return ht<=15?0:ht<=31?1518500249:ht<=47?1859775393:ht<=63?2400959708:2840853838}function Kh(ht){return ht<=15?1352829926:ht<=31?1548603684:ht<=47?1836072691:ht<=63?2053994217:0}var r$8=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],rh=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],s$a=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],sh$1=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],utils$a=utils$j,assert$7=minimalisticAssert;function Hmac(ht,Et,yt){if(!(this instanceof Hmac))return new Hmac(ht,Et,yt);this.Hash=ht,this.blockSize=ht.blockSize/8,this.outSize=ht.outSize/8,this.inner=null,this.outer=null,this._init(utils$a.toArray(Et,yt))}var hmac=Hmac;Hmac.prototype._init=function(Et){Et.length>this.blockSize&&(Et=new this.Hash().update(Et).digest()),assert$7(Et.length<=this.blockSize);for(var yt=Et.length;yt<this.blockSize;yt++)Et.push(0);for(yt=0;yt<Et.length;yt++)Et[yt]^=54;for(this.inner=new this.Hash().update(Et),yt=0;yt<Et.length;yt++)Et[yt]^=106;this.outer=new this.Hash().update(Et)};Hmac.prototype.update=function(Et,yt){return this.inner.update(Et,yt),this};Hmac.prototype.digest=function(Et){return this.outer.update(this.inner.digest()),this.outer.digest(Et)};(function(ht){var Et=ht;Et.utils=utils$j,Et.common=common$5,Et.sha=sha,Et.ripemd=ripemd,Et.hmac=hmac,Et.sha1=Et.sha.sha1,Et.sha256=Et.sha.sha256,Et.sha224=Et.sha.sha224,Et.sha384=Et.sha.sha384,Et.sha512=Et.sha.sha512,Et.ripemd160=Et.ripemd.ripemd160})(hash$3);var secp256k1,hasRequiredSecp256k1;function requireSecp256k1(){return hasRequiredSecp256k1||(hasRequiredSecp256k1=1,secp256k1={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}),secp256k1}(function(ht){var Et=ht,yt=hash$3,Ct=curve,$t=utils$p,At=$t.assert;function Bt(kt){kt.type==="short"?this.curve=new Ct.short(kt):kt.type==="edwards"?this.curve=new Ct.edwards(kt):this.curve=new Ct.mont(kt),this.g=this.curve.g,this.n=this.curve.n,this.hash=kt.hash,At(this.g.validate(),"Invalid curve"),At(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}Et.PresetCurve=Bt;function Dt(kt,Mt){Object.defineProperty(Et,kt,{configurable:!0,enumerable:!0,get:function(){var Nt=new Bt(Mt);return Object.defineProperty(Et,kt,{configurable:!0,enumerable:!0,value:Nt}),Nt}})}Dt("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:yt.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),Dt("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:yt.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),Dt("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:yt.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),Dt("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:yt.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),Dt("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:yt.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),Dt("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:yt.sha256,gRed:!1,g:["9"]}),Dt("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:yt.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var Ft;try{Ft=requireSecp256k1()}catch{Ft=void 0}Dt("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:yt.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",Ft]})})(curves$1);var hash$2=hash$3,utils$9=utils$o,assert$6=minimalisticAssert;function HmacDRBG(ht){if(!(this instanceof HmacDRBG))return new HmacDRBG(ht);this.hash=ht.hash,this.predResist=!!ht.predResist,this.outLen=this.hash.outSize,this.minEntropy=ht.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var Et=utils$9.toArray(ht.entropy,ht.entropyEnc||"hex"),yt=utils$9.toArray(ht.nonce,ht.nonceEnc||"hex"),Ct=utils$9.toArray(ht.pers,ht.persEnc||"hex");assert$6(Et.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(Et,yt,Ct)}var hmacDrbg=HmacDRBG;HmacDRBG.prototype._init=function(Et,yt,Ct){var $t=Et.concat(yt).concat(Ct);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var At=0;At<this.V.length;At++)this.K[At]=0,this.V[At]=1;this._update($t),this._reseed=1,this.reseedInterval=281474976710656};HmacDRBG.prototype._hmac=function(){return new hash$2.hmac(this.hash,this.K)};HmacDRBG.prototype._update=function(Et){var yt=this._hmac().update(this.V).update([0]);Et&&(yt=yt.update(Et)),this.K=yt.digest(),this.V=this._hmac().update(this.V).digest(),Et&&(this.K=this._hmac().update(this.V).update([1]).update(Et).digest(),this.V=this._hmac().update(this.V).digest())};HmacDRBG.prototype.reseed=function(Et,yt,Ct,$t){typeof yt!="string"&&($t=Ct,Ct=yt,yt=null),Et=utils$9.toArray(Et,yt),Ct=utils$9.toArray(Ct,$t),assert$6(Et.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(Et.concat(Ct||[])),this._reseed=1};HmacDRBG.prototype.generate=function(Et,yt,Ct,$t){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof yt!="string"&&($t=Ct,Ct=yt,yt=null),Ct&&(Ct=utils$9.toArray(Ct,$t||"hex"),this._update(Ct));for(var At=[];At.length<Et;)this.V=this._hmac().update(this.V).digest(),At=At.concat(this.V);var Bt=At.slice(0,Et);return this._update(Ct),this._reseed++,utils$9.encode(Bt,yt)};var BN$2=bnExports,utils$8=utils$p,assert$5=utils$8.assert;function KeyPair$2(ht,Et){this.ec=ht,this.priv=null,this.pub=null,Et.priv&&this._importPrivate(Et.priv,Et.privEnc),Et.pub&&this._importPublic(Et.pub,Et.pubEnc)}var key$1=KeyPair$2;KeyPair$2.fromPublic=function(Et,yt,Ct){return yt instanceof KeyPair$2?yt:new KeyPair$2(Et,{pub:yt,pubEnc:Ct})};KeyPair$2.fromPrivate=function(Et,yt,Ct){return yt instanceof KeyPair$2?yt:new KeyPair$2(Et,{priv:yt,privEnc:Ct})};KeyPair$2.prototype.validate=function(){var Et=this.getPublic();return Et.isInfinity()?{result:!1,reason:"Invalid public key"}:Et.validate()?Et.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}};KeyPair$2.prototype.getPublic=function(Et,yt){return typeof Et=="string"&&(yt=Et,Et=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),yt?this.pub.encode(yt,Et):this.pub};KeyPair$2.prototype.getPrivate=function(Et){return Et==="hex"?this.priv.toString(16,2):this.priv};KeyPair$2.prototype._importPrivate=function(Et,yt){this.priv=new BN$2(Et,yt||16),this.priv=this.priv.umod(this.ec.curve.n)};KeyPair$2.prototype._importPublic=function(Et,yt){if(Et.x||Et.y){this.ec.curve.type==="mont"?assert$5(Et.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&assert$5(Et.x&&Et.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(Et.x,Et.y);return}this.pub=this.ec.curve.decodePoint(Et,yt)};KeyPair$2.prototype.derive=function(Et){return Et.validate()||assert$5(Et.validate(),"public point not validated"),Et.mul(this.priv).getX()};KeyPair$2.prototype.sign=function(Et,yt,Ct){return this.ec.sign(Et,this,yt,Ct)};KeyPair$2.prototype.verify=function(Et,yt){return this.ec.verify(Et,yt,this)};KeyPair$2.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var BN$1=bnExports,utils$7=utils$p,assert$4=utils$7.assert;function Signature$2(ht,Et){if(ht instanceof Signature$2)return ht;this._importDER(ht,Et)||(assert$4(ht.r&&ht.s,"Signature without r or s"),this.r=new BN$1(ht.r,16),this.s=new BN$1(ht.s,16),ht.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=ht.recoveryParam)}var signature$1=Signature$2;function Position(){this.place=0}function getLength(ht,Et){var yt=ht[Et.place++];if(!(yt&128))return yt;var Ct=yt&15;if(Ct===0||Ct>4)return!1;for(var $t=0,At=0,Bt=Et.place;At<Ct;At++,Bt++)$t<<=8,$t|=ht[Bt],$t>>>=0;return $t<=127?!1:(Et.place=Bt,$t)}function rmPadding(ht){for(var Et=0,yt=ht.length-1;!ht[Et]&&!(ht[Et+1]&128)&&Et<yt;)Et++;return Et===0?ht:ht.slice(Et)}Signature$2.prototype._importDER=function(Et,yt){Et=utils$7.toArray(Et,yt);var Ct=new Position;if(Et[Ct.place++]!==48)return!1;var $t=getLength(Et,Ct);if($t===!1||$t+Ct.place!==Et.length||Et[Ct.place++]!==2)return!1;var At=getLength(Et,Ct);if(At===!1)return!1;var Bt=Et.slice(Ct.place,At+Ct.place);if(Ct.place+=At,Et[Ct.place++]!==2)return!1;var Dt=getLength(Et,Ct);if(Dt===!1||Et.length!==Dt+Ct.place)return!1;var Ft=Et.slice(Ct.place,Dt+Ct.place);if(Bt[0]===0)if(Bt[1]&128)Bt=Bt.slice(1);else return!1;if(Ft[0]===0)if(Ft[1]&128)Ft=Ft.slice(1);else return!1;return this.r=new BN$1(Bt),this.s=new BN$1(Ft),this.recoveryParam=null,!0};function constructLength(ht,Et){if(Et<128){ht.push(Et);return}var yt=1+(Math.log(Et)/Math.LN2>>>3);for(ht.push(yt|128);--yt;)ht.push(Et>>>(yt<<3)&255);ht.push(Et)}Signature$2.prototype.toDER=function(Et){var yt=this.r.toArray(),Ct=this.s.toArray();for(yt[0]&128&&(yt=[0].concat(yt)),Ct[0]&128&&(Ct=[0].concat(Ct)),yt=rmPadding(yt),Ct=rmPadding(Ct);!Ct[0]&&!(Ct[1]&128);)Ct=Ct.slice(1);var $t=[2];constructLength($t,yt.length),$t=$t.concat(yt),$t.push(2),constructLength($t,Ct.length);var At=$t.concat(Ct),Bt=[48];return constructLength(Bt,At.length),Bt=Bt.concat(At),utils$7.encode(Bt,Et)};var ec,hasRequiredEc;function requireEc(){if(hasRequiredEc)return ec;hasRequiredEc=1;var ht=bnExports,Et=hmacDrbg,yt=utils$p,Ct=curves$1,$t=requireBrorand(),At=yt.assert,Bt=key$1,Dt=signature$1;function Ft(kt){if(!(this instanceof Ft))return new Ft(kt);typeof kt=="string"&&(At(Object.prototype.hasOwnProperty.call(Ct,kt),"Unknown curve "+kt),kt=Ct[kt]),kt instanceof Ct.PresetCurve&&(kt={curve:kt}),this.curve=kt.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=kt.curve.g,this.g.precompute(kt.curve.n.bitLength()+1),this.hash=kt.hash||kt.curve.hash}return ec=Ft,Ft.prototype.keyPair=function(Mt){return new Bt(this,Mt)},Ft.prototype.keyFromPrivate=function(Mt,Nt){return Bt.fromPrivate(this,Mt,Nt)},Ft.prototype.keyFromPublic=function(Mt,Nt){return Bt.fromPublic(this,Mt,Nt)},Ft.prototype.genKeyPair=function(Mt){Mt||(Mt={});for(var Nt=new Et({hash:this.hash,pers:Mt.pers,persEnc:Mt.persEnc||"utf8",entropy:Mt.entropy||$t(this.hash.hmacStrength),entropyEnc:Mt.entropy&&Mt.entropyEnc||"utf8",nonce:this.n.toArray()}),jt=this.n.byteLength(),zt=this.n.sub(new ht(2));;){var Vt=new ht(Nt.generate(jt));if(!(Vt.cmp(zt)>0))return Vt.iaddn(1),this.keyFromPrivate(Vt)}},Ft.prototype._truncateToN=function(Mt,Nt){var jt=Mt.byteLength()*8-this.n.bitLength();return jt>0&&(Mt=Mt.ushrn(jt)),!Nt&&Mt.cmp(this.n)>=0?Mt.sub(this.n):Mt},Ft.prototype.sign=function(Mt,Nt,jt,zt){typeof jt=="object"&&(zt=jt,jt=null),zt||(zt={}),Nt=this.keyFromPrivate(Nt,jt),Mt=this._truncateToN(new ht(Mt,16));for(var Vt=this.n.byteLength(),Kt=Nt.getPrivate().toArray("be",Vt),Xt=Mt.toArray("be",Vt),Qt=new Et({hash:this.hash,entropy:Kt,nonce:Xt,pers:zt.pers,persEnc:zt.persEnc||"utf8"}),Zt=this.n.sub(new ht(1)),dr=0;;dr++){var cr=zt.k?zt.k(dr):new ht(Qt.generate(this.n.byteLength()));if(cr=this._truncateToN(cr,!0),!(cr.cmpn(1)<=0||cr.cmp(Zt)>=0)){var Er=this.g.mul(cr);if(!Er.isInfinity()){var pr=Er.getX(),gr=pr.umod(this.n);if(gr.cmpn(0)!==0){var vr=cr.invm(this.n).mul(gr.mul(Nt.getPrivate()).iadd(Mt));if(vr=vr.umod(this.n),vr.cmpn(0)!==0){var yr=(Er.getY().isOdd()?1:0)|(pr.cmp(gr)!==0?2:0);return zt.canonical&&vr.cmp(this.nh)>0&&(vr=this.n.sub(vr),yr^=1),new Dt({r:gr,s:vr,recoveryParam:yr})}}}}}},Ft.prototype.verify=function(Mt,Nt,jt,zt){Mt=this._truncateToN(new ht(Mt,16)),jt=this.keyFromPublic(jt,zt),Nt=new Dt(Nt,"hex");var Vt=Nt.r,Kt=Nt.s;if(Vt.cmpn(1)<0||Vt.cmp(this.n)>=0||Kt.cmpn(1)<0||Kt.cmp(this.n)>=0)return!1;var Xt=Kt.invm(this.n),Qt=Xt.mul(Mt).umod(this.n),Zt=Xt.mul(Vt).umod(this.n),dr;return this.curve._maxwellTrick?(dr=this.g.jmulAdd(Qt,jt.getPublic(),Zt),dr.isInfinity()?!1:dr.eqXToP(Vt)):(dr=this.g.mulAdd(Qt,jt.getPublic(),Zt),dr.isInfinity()?!1:dr.getX().umod(this.n).cmp(Vt)===0)},Ft.prototype.recoverPubKey=function(kt,Mt,Nt,jt){At((3&Nt)===Nt,"The recovery param is more than two bits"),Mt=new Dt(Mt,jt);var zt=this.n,Vt=new ht(kt),Kt=Mt.r,Xt=Mt.s,Qt=Nt&1,Zt=Nt>>1;if(Kt.cmp(this.curve.p.umod(this.curve.n))>=0&&Zt)throw new Error("Unable to find sencond key candinate");Zt?Kt=this.curve.pointFromX(Kt.add(this.curve.n),Qt):Kt=this.curve.pointFromX(Kt,Qt);var dr=Mt.r.invm(zt),cr=zt.sub(Vt).mul(dr).umod(zt),Er=Xt.mul(dr).umod(zt);return this.g.mulAdd(cr,Kt,Er)},Ft.prototype.getKeyRecoveryParam=function(kt,Mt,Nt,jt){if(Mt=new Dt(Mt,jt),Mt.recoveryParam!==null)return Mt.recoveryParam;for(var zt=0;zt<4;zt++){var Vt;try{Vt=this.recoverPubKey(kt,Mt,zt)}catch{continue}if(Vt.eq(Nt))return zt}throw new Error("Unable to find valid recovery factor")},ec}var utils$6=utils$p,assert$3=utils$6.assert,parseBytes$2=utils$6.parseBytes,cachedProperty$1=utils$6.cachedProperty;function KeyPair$1(ht,Et){this.eddsa=ht,this._secret=parseBytes$2(Et.secret),ht.isPoint(Et.pub)?this._pub=Et.pub:this._pubBytes=parseBytes$2(Et.pub)}KeyPair$1.fromPublic=function(Et,yt){return yt instanceof KeyPair$1?yt:new KeyPair$1(Et,{pub:yt})};KeyPair$1.fromSecret=function(Et,yt){return yt instanceof KeyPair$1?yt:new KeyPair$1(Et,{secret:yt})};KeyPair$1.prototype.secret=function(){return this._secret};cachedProperty$1(KeyPair$1,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});cachedProperty$1(KeyPair$1,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});cachedProperty$1(KeyPair$1,"privBytes",function(){var Et=this.eddsa,yt=this.hash(),Ct=Et.encodingLength-1,$t=yt.slice(0,Et.encodingLength);return $t[0]&=248,$t[Ct]&=127,$t[Ct]|=64,$t});cachedProperty$1(KeyPair$1,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});cachedProperty$1(KeyPair$1,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});cachedProperty$1(KeyPair$1,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});KeyPair$1.prototype.sign=function(Et){return assert$3(this._secret,"KeyPair can only verify"),this.eddsa.sign(Et,this)};KeyPair$1.prototype.verify=function(Et,yt){return this.eddsa.verify(Et,yt,this)};KeyPair$1.prototype.getSecret=function(Et){return assert$3(this._secret,"KeyPair is public only"),utils$6.encode(this.secret(),Et)};KeyPair$1.prototype.getPublic=function(Et){return utils$6.encode(this.pubBytes(),Et)};var key=KeyPair$1,BN=bnExports,utils$5=utils$p,assert$2=utils$5.assert,cachedProperty=utils$5.cachedProperty,parseBytes$1=utils$5.parseBytes;function Signature$1(ht,Et){this.eddsa=ht,typeof Et!="object"&&(Et=parseBytes$1(Et)),Array.isArray(Et)&&(Et={R:Et.slice(0,ht.encodingLength),S:Et.slice(ht.encodingLength)}),assert$2(Et.R&&Et.S,"Signature without R or S"),ht.isPoint(Et.R)&&(this._R=Et.R),Et.S instanceof BN&&(this._S=Et.S),this._Rencoded=Array.isArray(Et.R)?Et.R:Et.Rencoded,this._Sencoded=Array.isArray(Et.S)?Et.S:Et.Sencoded}cachedProperty(Signature$1,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});cachedProperty(Signature$1,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});cachedProperty(Signature$1,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});cachedProperty(Signature$1,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});Signature$1.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};Signature$1.prototype.toHex=function(){return utils$5.encode(this.toBytes(),"hex").toUpperCase()};var signature=Signature$1,hash$1=hash$3,curves=curves$1,utils$4=utils$p,assert$1=utils$4.assert,parseBytes=utils$4.parseBytes,KeyPair=key,Signature=signature;function EDDSA(ht){if(assert$1(ht==="ed25519","only tested with ed25519 so far"),!(this instanceof EDDSA))return new EDDSA(ht);ht=curves[ht].curve,this.curve=ht,this.g=ht.g,this.g.precompute(ht.n.bitLength()+1),this.pointClass=ht.point().constructor,this.encodingLength=Math.ceil(ht.n.bitLength()/8),this.hash=hash$1.sha512}var eddsa=EDDSA;EDDSA.prototype.sign=function(Et,yt){Et=parseBytes(Et);var Ct=this.keyFromSecret(yt),$t=this.hashInt(Ct.messagePrefix(),Et),At=this.g.mul($t),Bt=this.encodePoint(At),Dt=this.hashInt(Bt,Ct.pubBytes(),Et).mul(Ct.priv()),Ft=$t.add(Dt).umod(this.curve.n);return this.makeSignature({R:At,S:Ft,Rencoded:Bt})};EDDSA.prototype.verify=function(Et,yt,Ct){if(Et=parseBytes(Et),yt=this.makeSignature(yt),yt.S().gte(yt.eddsa.curve.n)||yt.S().isNeg())return!1;var $t=this.keyFromPublic(Ct),At=this.hashInt(yt.Rencoded(),$t.pubBytes(),Et),Bt=this.g.mul(yt.S()),Dt=yt.R().add($t.pub().mul(At));return Dt.eq(Bt)};EDDSA.prototype.hashInt=function(){for(var Et=this.hash(),yt=0;yt<arguments.length;yt++)Et.update(arguments[yt]);return utils$4.intFromLE(Et.digest()).umod(this.curve.n)};EDDSA.prototype.keyFromPublic=function(Et){return KeyPair.fromPublic(this,Et)};EDDSA.prototype.keyFromSecret=function(Et){return KeyPair.fromSecret(this,Et)};EDDSA.prototype.makeSignature=function(Et){return Et instanceof Signature?Et:new Signature(this,Et)};EDDSA.prototype.encodePoint=function(Et){var yt=Et.getY().toArray("le",this.encodingLength);return yt[this.encodingLength-1]|=Et.getX().isOdd()?128:0,yt};EDDSA.prototype.decodePoint=function(Et){Et=utils$4.parseBytes(Et);var yt=Et.length-1,Ct=Et.slice(0,yt).concat(Et[yt]&-129),$t=(Et[yt]&128)!==0,At=utils$4.intFromLE(Ct);return this.curve.pointFromY(At,$t)};EDDSA.prototype.encodeInt=function(Et){return Et.toArray("le",this.encodingLength)};EDDSA.prototype.decodeInt=function(Et){return utils$4.intFromLE(Et)};EDDSA.prototype.isPoint=function(Et){return Et instanceof this.pointClass};var hasRequiredElliptic;function requireElliptic(){return hasRequiredElliptic||(hasRequiredElliptic=1,function(ht){var Et=ht;Et.version=require$$0$2.version,Et.utils=utils$p,Et.rand=requireBrorand(),Et.curve=curve,Et.curves=curves$1,Et.ec=requireEc(),Et.eddsa=eddsa}(elliptic)),elliptic}var asn1$1={},asn1={},bn$3={exports:{}};bn$3.exports;var hasRequiredBn$2;function requireBn$2(){return hasRequiredBn$2||(hasRequiredBn$2=1,function(ht){(function(Et,yt){function Ct(rr,Lt){if(!rr)throw new Error(Lt||"Assertion failed")}function $t(rr,Lt){rr.super_=Lt;var Ht=function(){};Ht.prototype=Lt.prototype,rr.prototype=new Ht,rr.prototype.constructor=rr}function At(rr,Lt,Ht){if(At.isBN(rr))return rr;this.negative=0,this.words=null,this.length=0,this.red=null,rr!==null&&((Lt==="le"||Lt==="be")&&(Ht=Lt,Lt=10),this._init(rr||0,Lt||10,Ht||"be"))}typeof Et=="object"?Et.exports=At:yt.BN=At,At.BN=At,At.wordSize=26;var Bt;try{typeof window<"u"&&typeof window.Buffer<"u"?Bt=window.Buffer:Bt=require$$0$3.Buffer}catch{}At.isBN=function(Lt){return Lt instanceof At?!0:Lt!==null&&typeof Lt=="object"&&Lt.constructor.wordSize===At.wordSize&&Array.isArray(Lt.words)},At.max=function(Lt,Ht){return Lt.cmp(Ht)>0?Lt:Ht},At.min=function(Lt,Ht){return Lt.cmp(Ht)<0?Lt:Ht},At.prototype._init=function(Lt,Ht,Wt){if(typeof Lt=="number")return this._initNumber(Lt,Ht,Wt);if(typeof Lt=="object")return this._initArray(Lt,Ht,Wt);Ht==="hex"&&(Ht=16),Ct(Ht===(Ht|0)&&Ht>=2&&Ht<=36),Lt=Lt.toString().replace(/\s+/g,"");var Gt=0;Lt[0]==="-"&&(Gt++,this.negative=1),Gt<Lt.length&&(Ht===16?this._parseHex(Lt,Gt,Wt):(this._parseBase(Lt,Ht,Gt),Wt==="le"&&this._initArray(this.toArray(),Ht,Wt)))},At.prototype._initNumber=function(Lt,Ht,Wt){Lt<0&&(this.negative=1,Lt=-Lt),Lt<67108864?(this.words=[Lt&67108863],this.length=1):Lt<4503599627370496?(this.words=[Lt&67108863,Lt/67108864&67108863],this.length=2):(Ct(Lt<9007199254740992),this.words=[Lt&67108863,Lt/67108864&67108863,1],this.length=3),Wt==="le"&&this._initArray(this.toArray(),Ht,Wt)},At.prototype._initArray=function(Lt,Ht,Wt){if(Ct(typeof Lt.length=="number"),Lt.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(Lt.length/3),this.words=new Array(this.length);for(var Gt=0;Gt<this.length;Gt++)this.words[Gt]=0;var Yt,er,lr=0;if(Wt==="be")for(Gt=Lt.length-1,Yt=0;Gt>=0;Gt-=3)er=Lt[Gt]|Lt[Gt-1]<<8|Lt[Gt-2]<<16,this.words[Yt]|=er<<lr&67108863,this.words[Yt+1]=er>>>26-lr&67108863,lr+=24,lr>=26&&(lr-=26,Yt++);else if(Wt==="le")for(Gt=0,Yt=0;Gt<Lt.length;Gt+=3)er=Lt[Gt]|Lt[Gt+1]<<8|Lt[Gt+2]<<16,this.words[Yt]|=er<<lr&67108863,this.words[Yt+1]=er>>>26-lr&67108863,lr+=24,lr>=26&&(lr-=26,Yt++);return this.strip()};function Dt(rr,Lt){var Ht=rr.charCodeAt(Lt);return Ht>=65&&Ht<=70?Ht-55:Ht>=97&&Ht<=102?Ht-87:Ht-48&15}function Ft(rr,Lt,Ht){var Wt=Dt(rr,Ht);return Ht-1>=Lt&&(Wt|=Dt(rr,Ht-1)<<4),Wt}At.prototype._parseHex=function(Lt,Ht,Wt){this.length=Math.ceil((Lt.length-Ht)/6),this.words=new Array(this.length);for(var Gt=0;Gt<this.length;Gt++)this.words[Gt]=0;var Yt=0,er=0,lr;if(Wt==="be")for(Gt=Lt.length-1;Gt>=Ht;Gt-=2)lr=Ft(Lt,Ht,Gt)<<Yt,this.words[er]|=lr&67108863,Yt>=18?(Yt-=18,er+=1,this.words[er]|=lr>>>26):Yt+=8;else{var Jt=Lt.length-Ht;for(Gt=Jt%2===0?Ht+1:Ht;Gt<Lt.length;Gt+=2)lr=Ft(Lt,Ht,Gt)<<Yt,this.words[er]|=lr&67108863,Yt>=18?(Yt-=18,er+=1,this.words[er]|=lr>>>26):Yt+=8}this.strip()};function kt(rr,Lt,Ht,Wt){for(var Gt=0,Yt=Math.min(rr.length,Ht),er=Lt;er<Yt;er++){var lr=rr.charCodeAt(er)-48;Gt*=Wt,lr>=49?Gt+=lr-49+10:lr>=17?Gt+=lr-17+10:Gt+=lr}return Gt}At.prototype._parseBase=function(Lt,Ht,Wt){this.words=[0],this.length=1;for(var Gt=0,Yt=1;Yt<=67108863;Yt*=Ht)Gt++;Gt--,Yt=Yt/Ht|0;for(var er=Lt.length-Wt,lr=er%Gt,Jt=Math.min(er,er-lr)+Wt,Ut=0,ir=Wt;ir<Jt;ir+=Gt)Ut=kt(Lt,ir,ir+Gt,Ht),this.imuln(Yt),this.words[0]+Ut<67108864?this.words[0]+=Ut:this._iaddn(Ut);if(lr!==0){var Cr=1;for(Ut=kt(Lt,ir,Lt.length,Ht),ir=0;ir<lr;ir++)Cr*=Ht;this.imuln(Cr),this.words[0]+Ut<67108864?this.words[0]+=Ut:this._iaddn(Ut)}this.strip()},At.prototype.copy=function(Lt){Lt.words=new Array(this.length);for(var Ht=0;Ht<this.length;Ht++)Lt.words[Ht]=this.words[Ht];Lt.length=this.length,Lt.negative=this.negative,Lt.red=this.red},At.prototype.clone=function(){var Lt=new At(null);return this.copy(Lt),Lt},At.prototype._expand=function(Lt){for(;this.length<Lt;)this.words[this.length++]=0;return this},At.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},At.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},At.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var Mt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],Nt=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],jt=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];At.prototype.toString=function(Lt,Ht){Lt=Lt||10,Ht=Ht|0||1;var Wt;if(Lt===16||Lt==="hex"){Wt="";for(var Gt=0,Yt=0,er=0;er<this.length;er++){var lr=this.words[er],Jt=((lr<<Gt|Yt)&16777215).toString(16);Yt=lr>>>24-Gt&16777215,Yt!==0||er!==this.length-1?Wt=Mt[6-Jt.length]+Jt+Wt:Wt=Jt+Wt,Gt+=2,Gt>=26&&(Gt-=26,er--)}for(Yt!==0&&(Wt=Yt.toString(16)+Wt);Wt.length%Ht!==0;)Wt="0"+Wt;return this.negative!==0&&(Wt="-"+Wt),Wt}if(Lt===(Lt|0)&&Lt>=2&&Lt<=36){var Ut=Nt[Lt],ir=jt[Lt];Wt="";var Cr=this.clone();for(Cr.negative=0;!Cr.isZero();){var _r=Cr.modn(ir).toString(Lt);Cr=Cr.idivn(ir),Cr.isZero()?Wt=_r+Wt:Wt=Mt[Ut-_r.length]+_r+Wt}for(this.isZero()&&(Wt="0"+Wt);Wt.length%Ht!==0;)Wt="0"+Wt;return this.negative!==0&&(Wt="-"+Wt),Wt}Ct(!1,"Base should be between 2 and 36")},At.prototype.toNumber=function(){var Lt=this.words[0];return this.length===2?Lt+=this.words[1]*67108864:this.length===3&&this.words[2]===1?Lt+=4503599627370496+this.words[1]*67108864:this.length>2&&Ct(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-Lt:Lt},At.prototype.toJSON=function(){return this.toString(16)},At.prototype.toBuffer=function(Lt,Ht){return Ct(typeof Bt<"u"),this.toArrayLike(Bt,Lt,Ht)},At.prototype.toArray=function(Lt,Ht){return this.toArrayLike(Array,Lt,Ht)},At.prototype.toArrayLike=function(Lt,Ht,Wt){var Gt=this.byteLength(),Yt=Wt||Math.max(1,Gt);Ct(Gt<=Yt,"byte array longer than desired length"),Ct(Yt>0,"Requested array length <= 0"),this.strip();var er=Ht==="le",lr=new Lt(Yt),Jt,Ut,ir=this.clone();if(er){for(Ut=0;!ir.isZero();Ut++)Jt=ir.andln(255),ir.iushrn(8),lr[Ut]=Jt;for(;Ut<Yt;Ut++)lr[Ut]=0}else{for(Ut=0;Ut<Yt-Gt;Ut++)lr[Ut]=0;for(Ut=0;!ir.isZero();Ut++)Jt=ir.andln(255),ir.iushrn(8),lr[Yt-Ut-1]=Jt}return lr},Math.clz32?At.prototype._countBits=function(Lt){return 32-Math.clz32(Lt)}:At.prototype._countBits=function(Lt){var Ht=Lt,Wt=0;return Ht>=4096&&(Wt+=13,Ht>>>=13),Ht>=64&&(Wt+=7,Ht>>>=7),Ht>=8&&(Wt+=4,Ht>>>=4),Ht>=2&&(Wt+=2,Ht>>>=2),Wt+Ht},At.prototype._zeroBits=function(Lt){if(Lt===0)return 26;var Ht=Lt,Wt=0;return Ht&8191||(Wt+=13,Ht>>>=13),Ht&127||(Wt+=7,Ht>>>=7),Ht&15||(Wt+=4,Ht>>>=4),Ht&3||(Wt+=2,Ht>>>=2),Ht&1||Wt++,Wt},At.prototype.bitLength=function(){var Lt=this.words[this.length-1],Ht=this._countBits(Lt);return(this.length-1)*26+Ht};function zt(rr){for(var Lt=new Array(rr.bitLength()),Ht=0;Ht<Lt.length;Ht++){var Wt=Ht/26|0,Gt=Ht%26;Lt[Ht]=(rr.words[Wt]&1<<Gt)>>>Gt}return Lt}At.prototype.zeroBits=function(){if(this.isZero())return 0;for(var Lt=0,Ht=0;Ht<this.length;Ht++){var Wt=this._zeroBits(this.words[Ht]);if(Lt+=Wt,Wt!==26)break}return Lt},At.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},At.prototype.toTwos=function(Lt){return this.negative!==0?this.abs().inotn(Lt).iaddn(1):this.clone()},At.prototype.fromTwos=function(Lt){return this.testn(Lt-1)?this.notn(Lt).iaddn(1).ineg():this.clone()},At.prototype.isNeg=function(){return this.negative!==0},At.prototype.neg=function(){return this.clone().ineg()},At.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},At.prototype.iuor=function(Lt){for(;this.length<Lt.length;)this.words[this.length++]=0;for(var Ht=0;Ht<Lt.length;Ht++)this.words[Ht]=this.words[Ht]|Lt.words[Ht];return this.strip()},At.prototype.ior=function(Lt){return Ct((this.negative|Lt.negative)===0),this.iuor(Lt)},At.prototype.or=function(Lt){return this.length>Lt.length?this.clone().ior(Lt):Lt.clone().ior(this)},At.prototype.uor=function(Lt){return this.length>Lt.length?this.clone().iuor(Lt):Lt.clone().iuor(this)},At.prototype.iuand=function(Lt){var Ht;this.length>Lt.length?Ht=Lt:Ht=this;for(var Wt=0;Wt<Ht.length;Wt++)this.words[Wt]=this.words[Wt]&Lt.words[Wt];return this.length=Ht.length,this.strip()},At.prototype.iand=function(Lt){return Ct((this.negative|Lt.negative)===0),this.iuand(Lt)},At.prototype.and=function(Lt){return this.length>Lt.length?this.clone().iand(Lt):Lt.clone().iand(this)},At.prototype.uand=function(Lt){return this.length>Lt.length?this.clone().iuand(Lt):Lt.clone().iuand(this)},At.prototype.iuxor=function(Lt){var Ht,Wt;this.length>Lt.length?(Ht=this,Wt=Lt):(Ht=Lt,Wt=this);for(var Gt=0;Gt<Wt.length;Gt++)this.words[Gt]=Ht.words[Gt]^Wt.words[Gt];if(this!==Ht)for(;Gt<Ht.length;Gt++)this.words[Gt]=Ht.words[Gt];return this.length=Ht.length,this.strip()},At.prototype.ixor=function(Lt){return Ct((this.negative|Lt.negative)===0),this.iuxor(Lt)},At.prototype.xor=function(Lt){return this.length>Lt.length?this.clone().ixor(Lt):Lt.clone().ixor(this)},At.prototype.uxor=function(Lt){return this.length>Lt.length?this.clone().iuxor(Lt):Lt.clone().iuxor(this)},At.prototype.inotn=function(Lt){Ct(typeof Lt=="number"&&Lt>=0);var Ht=Math.ceil(Lt/26)|0,Wt=Lt%26;this._expand(Ht),Wt>0&&Ht--;for(var Gt=0;Gt<Ht;Gt++)this.words[Gt]=~this.words[Gt]&67108863;return Wt>0&&(this.words[Gt]=~this.words[Gt]&67108863>>26-Wt),this.strip()},At.prototype.notn=function(Lt){return this.clone().inotn(Lt)},At.prototype.setn=function(Lt,Ht){Ct(typeof Lt=="number"&&Lt>=0);var Wt=Lt/26|0,Gt=Lt%26;return this._expand(Wt+1),Ht?this.words[Wt]=this.words[Wt]|1<<Gt:this.words[Wt]=this.words[Wt]&~(1<<Gt),this.strip()},At.prototype.iadd=function(Lt){var Ht;if(this.negative!==0&&Lt.negative===0)return this.negative=0,Ht=this.isub(Lt),this.negative^=1,this._normSign();if(this.negative===0&&Lt.negative!==0)return Lt.negative=0,Ht=this.isub(Lt),Lt.negative=1,Ht._normSign();var Wt,Gt;this.length>Lt.length?(Wt=this,Gt=Lt):(Wt=Lt,Gt=this);for(var Yt=0,er=0;er<Gt.length;er++)Ht=(Wt.words[er]|0)+(Gt.words[er]|0)+Yt,this.words[er]=Ht&67108863,Yt=Ht>>>26;for(;Yt!==0&&er<Wt.length;er++)Ht=(Wt.words[er]|0)+Yt,this.words[er]=Ht&67108863,Yt=Ht>>>26;if(this.length=Wt.length,Yt!==0)this.words[this.length]=Yt,this.length++;else if(Wt!==this)for(;er<Wt.length;er++)this.words[er]=Wt.words[er];return this},At.prototype.add=function(Lt){var Ht;return Lt.negative!==0&&this.negative===0?(Lt.negative=0,Ht=this.sub(Lt),Lt.negative^=1,Ht):Lt.negative===0&&this.negative!==0?(this.negative=0,Ht=Lt.sub(this),this.negative=1,Ht):this.length>Lt.length?this.clone().iadd(Lt):Lt.clone().iadd(this)},At.prototype.isub=function(Lt){if(Lt.negative!==0){Lt.negative=0;var Ht=this.iadd(Lt);return Lt.negative=1,Ht._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(Lt),this.negative=1,this._normSign();var Wt=this.cmp(Lt);if(Wt===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Gt,Yt;Wt>0?(Gt=this,Yt=Lt):(Gt=Lt,Yt=this);for(var er=0,lr=0;lr<Yt.length;lr++)Ht=(Gt.words[lr]|0)-(Yt.words[lr]|0)+er,er=Ht>>26,this.words[lr]=Ht&67108863;for(;er!==0&&lr<Gt.length;lr++)Ht=(Gt.words[lr]|0)+er,er=Ht>>26,this.words[lr]=Ht&67108863;if(er===0&&lr<Gt.length&&Gt!==this)for(;lr<Gt.length;lr++)this.words[lr]=Gt.words[lr];return this.length=Math.max(this.length,lr),Gt!==this&&(this.negative=1),this.strip()},At.prototype.sub=function(Lt){return this.clone().isub(Lt)};function Vt(rr,Lt,Ht){Ht.negative=Lt.negative^rr.negative;var Wt=rr.length+Lt.length|0;Ht.length=Wt,Wt=Wt-1|0;var Gt=rr.words[0]|0,Yt=Lt.words[0]|0,er=Gt*Yt,lr=er&67108863,Jt=er/67108864|0;Ht.words[0]=lr;for(var Ut=1;Ut<Wt;Ut++){for(var ir=Jt>>>26,Cr=Jt&67108863,_r=Math.min(Ut,Lt.length-1),$r=Math.max(0,Ut-rr.length+1);$r<=_r;$r++){var Tr=Ut-$r|0;Gt=rr.words[Tr]|0,Yt=Lt.words[$r]|0,er=Gt*Yt+Cr,ir+=er/67108864|0,Cr=er&67108863}Ht.words[Ut]=Cr|0,Jt=ir|0}return Jt!==0?Ht.words[Ut]=Jt|0:Ht.length--,Ht.strip()}var Kt=function(Lt,Ht,Wt){var Gt=Lt.words,Yt=Ht.words,er=Wt.words,lr=0,Jt,Ut,ir,Cr=Gt[0]|0,_r=Cr&8191,$r=Cr>>>13,Tr=Gt[1]|0,Dr=Tr&8191,Ar=Tr>>>13,Fr=Gt[2]|0,Rr=Fr&8191,wr=Fr>>>13,Sr=Gt[3]|0,Br=Sr&8191,Or=Sr>>>13,Pr=Gt[4]|0,Nr=Pr&8191,Lr=Pr>>>13,Wr=Gt[5]|0,Ur=Wr&8191,jr=Wr>>>13,Kr=Gt[6]|0,qr=Kr&8191,Zr=Kr>>>13,dn=Gt[7]|0,Xr=dn&8191,un=dn>>>13,Yr=Gt[8]|0,Gr=Yr&8191,Jr=Yr>>>13,wn=Gt[9]|0,kr=wn&8191,Mr=wn>>>13,Ir=Yt[0]|0,Hr=Ir&8191,Vr=Ir>>>13,on=Yt[1]|0,Qr=on&8191,hn=on>>>13,Wn=Yt[2]|0,_n=Wn&8191,An=Wn>>>13,Yn=Yt[3]|0,Tn=Yn&8191,Nn=Yn>>>13,Zn=Yt[4]|0,$n=Zn&8191,Fn=Zn>>>13,Gn=Yt[5]|0,gn=Gn&8191,Rn=Gn>>>13,nu=Yt[6]|0,pn=nu&8191,yn=nu>>>13,jn=Yt[7]|0,Cn=jn&8191,On=jn>>>13,au=Yt[8]|0,In=au&8191,Bn=au>>>13,Vn=Yt[9]|0,En=Vn&8191,Sn=Vn>>>13;Wt.negative=Lt.negative^Ht.negative,Wt.length=19,Jt=Math.imul(_r,Hr),Ut=Math.imul(_r,Vr),Ut=Ut+Math.imul($r,Hr)|0,ir=Math.imul($r,Vr);var Xn=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Xn>>>26)|0,Xn&=67108863,Jt=Math.imul(Dr,Hr),Ut=Math.imul(Dr,Vr),Ut=Ut+Math.imul(Ar,Hr)|0,ir=Math.imul(Ar,Vr),Jt=Jt+Math.imul(_r,Qr)|0,Ut=Ut+Math.imul(_r,hn)|0,Ut=Ut+Math.imul($r,Qr)|0,ir=ir+Math.imul($r,hn)|0;var uu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(uu>>>26)|0,uu&=67108863,Jt=Math.imul(Rr,Hr),Ut=Math.imul(Rr,Vr),Ut=Ut+Math.imul(wr,Hr)|0,ir=Math.imul(wr,Vr),Jt=Jt+Math.imul(Dr,Qr)|0,Ut=Ut+Math.imul(Dr,hn)|0,Ut=Ut+Math.imul(Ar,Qr)|0,ir=ir+Math.imul(Ar,hn)|0,Jt=Jt+Math.imul(_r,_n)|0,Ut=Ut+Math.imul(_r,An)|0,Ut=Ut+Math.imul($r,_n)|0,ir=ir+Math.imul($r,An)|0;var Eu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Eu>>>26)|0,Eu&=67108863,Jt=Math.imul(Br,Hr),Ut=Math.imul(Br,Vr),Ut=Ut+Math.imul(Or,Hr)|0,ir=Math.imul(Or,Vr),Jt=Jt+Math.imul(Rr,Qr)|0,Ut=Ut+Math.imul(Rr,hn)|0,Ut=Ut+Math.imul(wr,Qr)|0,ir=ir+Math.imul(wr,hn)|0,Jt=Jt+Math.imul(Dr,_n)|0,Ut=Ut+Math.imul(Dr,An)|0,Ut=Ut+Math.imul(Ar,_n)|0,ir=ir+Math.imul(Ar,An)|0,Jt=Jt+Math.imul(_r,Tn)|0,Ut=Ut+Math.imul(_r,Nn)|0,Ut=Ut+Math.imul($r,Tn)|0,ir=ir+Math.imul($r,Nn)|0;var pu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(pu>>>26)|0,pu&=67108863,Jt=Math.imul(Nr,Hr),Ut=Math.imul(Nr,Vr),Ut=Ut+Math.imul(Lr,Hr)|0,ir=Math.imul(Lr,Vr),Jt=Jt+Math.imul(Br,Qr)|0,Ut=Ut+Math.imul(Br,hn)|0,Ut=Ut+Math.imul(Or,Qr)|0,ir=ir+Math.imul(Or,hn)|0,Jt=Jt+Math.imul(Rr,_n)|0,Ut=Ut+Math.imul(Rr,An)|0,Ut=Ut+Math.imul(wr,_n)|0,ir=ir+Math.imul(wr,An)|0,Jt=Jt+Math.imul(Dr,Tn)|0,Ut=Ut+Math.imul(Dr,Nn)|0,Ut=Ut+Math.imul(Ar,Tn)|0,ir=ir+Math.imul(Ar,Nn)|0,Jt=Jt+Math.imul(_r,$n)|0,Ut=Ut+Math.imul(_r,Fn)|0,Ut=Ut+Math.imul($r,$n)|0,ir=ir+Math.imul($r,Fn)|0;var Qn=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Qn>>>26)|0,Qn&=67108863,Jt=Math.imul(Ur,Hr),Ut=Math.imul(Ur,Vr),Ut=Ut+Math.imul(jr,Hr)|0,ir=Math.imul(jr,Vr),Jt=Jt+Math.imul(Nr,Qr)|0,Ut=Ut+Math.imul(Nr,hn)|0,Ut=Ut+Math.imul(Lr,Qr)|0,ir=ir+Math.imul(Lr,hn)|0,Jt=Jt+Math.imul(Br,_n)|0,Ut=Ut+Math.imul(Br,An)|0,Ut=Ut+Math.imul(Or,_n)|0,ir=ir+Math.imul(Or,An)|0,Jt=Jt+Math.imul(Rr,Tn)|0,Ut=Ut+Math.imul(Rr,Nn)|0,Ut=Ut+Math.imul(wr,Tn)|0,ir=ir+Math.imul(wr,Nn)|0,Jt=Jt+Math.imul(Dr,$n)|0,Ut=Ut+Math.imul(Dr,Fn)|0,Ut=Ut+Math.imul(Ar,$n)|0,ir=ir+Math.imul(Ar,Fn)|0,Jt=Jt+Math.imul(_r,gn)|0,Ut=Ut+Math.imul(_r,Rn)|0,Ut=Ut+Math.imul($r,gn)|0,ir=ir+Math.imul($r,Rn)|0;var Jn=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Jn>>>26)|0,Jn&=67108863,Jt=Math.imul(qr,Hr),Ut=Math.imul(qr,Vr),Ut=Ut+Math.imul(Zr,Hr)|0,ir=Math.imul(Zr,Vr),Jt=Jt+Math.imul(Ur,Qr)|0,Ut=Ut+Math.imul(Ur,hn)|0,Ut=Ut+Math.imul(jr,Qr)|0,ir=ir+Math.imul(jr,hn)|0,Jt=Jt+Math.imul(Nr,_n)|0,Ut=Ut+Math.imul(Nr,An)|0,Ut=Ut+Math.imul(Lr,_n)|0,ir=ir+Math.imul(Lr,An)|0,Jt=Jt+Math.imul(Br,Tn)|0,Ut=Ut+Math.imul(Br,Nn)|0,Ut=Ut+Math.imul(Or,Tn)|0,ir=ir+Math.imul(Or,Nn)|0,Jt=Jt+Math.imul(Rr,$n)|0,Ut=Ut+Math.imul(Rr,Fn)|0,Ut=Ut+Math.imul(wr,$n)|0,ir=ir+Math.imul(wr,Fn)|0,Jt=Jt+Math.imul(Dr,gn)|0,Ut=Ut+Math.imul(Dr,Rn)|0,Ut=Ut+Math.imul(Ar,gn)|0,ir=ir+Math.imul(Ar,Rn)|0,Jt=Jt+Math.imul(_r,pn)|0,Ut=Ut+Math.imul(_r,yn)|0,Ut=Ut+Math.imul($r,pn)|0,ir=ir+Math.imul($r,yn)|0;var ou=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(ou>>>26)|0,ou&=67108863,Jt=Math.imul(Xr,Hr),Ut=Math.imul(Xr,Vr),Ut=Ut+Math.imul(un,Hr)|0,ir=Math.imul(un,Vr),Jt=Jt+Math.imul(qr,Qr)|0,Ut=Ut+Math.imul(qr,hn)|0,Ut=Ut+Math.imul(Zr,Qr)|0,ir=ir+Math.imul(Zr,hn)|0,Jt=Jt+Math.imul(Ur,_n)|0,Ut=Ut+Math.imul(Ur,An)|0,Ut=Ut+Math.imul(jr,_n)|0,ir=ir+Math.imul(jr,An)|0,Jt=Jt+Math.imul(Nr,Tn)|0,Ut=Ut+Math.imul(Nr,Nn)|0,Ut=Ut+Math.imul(Lr,Tn)|0,ir=ir+Math.imul(Lr,Nn)|0,Jt=Jt+Math.imul(Br,$n)|0,Ut=Ut+Math.imul(Br,Fn)|0,Ut=Ut+Math.imul(Or,$n)|0,ir=ir+Math.imul(Or,Fn)|0,Jt=Jt+Math.imul(Rr,gn)|0,Ut=Ut+Math.imul(Rr,Rn)|0,Ut=Ut+Math.imul(wr,gn)|0,ir=ir+Math.imul(wr,Rn)|0,Jt=Jt+Math.imul(Dr,pn)|0,Ut=Ut+Math.imul(Dr,yn)|0,Ut=Ut+Math.imul(Ar,pn)|0,ir=ir+Math.imul(Ar,yn)|0,Jt=Jt+Math.imul(_r,Cn)|0,Ut=Ut+Math.imul(_r,On)|0,Ut=Ut+Math.imul($r,Cn)|0,ir=ir+Math.imul($r,On)|0;var mu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(mu>>>26)|0,mu&=67108863,Jt=Math.imul(Gr,Hr),Ut=Math.imul(Gr,Vr),Ut=Ut+Math.imul(Jr,Hr)|0,ir=Math.imul(Jr,Vr),Jt=Jt+Math.imul(Xr,Qr)|0,Ut=Ut+Math.imul(Xr,hn)|0,Ut=Ut+Math.imul(un,Qr)|0,ir=ir+Math.imul(un,hn)|0,Jt=Jt+Math.imul(qr,_n)|0,Ut=Ut+Math.imul(qr,An)|0,Ut=Ut+Math.imul(Zr,_n)|0,ir=ir+Math.imul(Zr,An)|0,Jt=Jt+Math.imul(Ur,Tn)|0,Ut=Ut+Math.imul(Ur,Nn)|0,Ut=Ut+Math.imul(jr,Tn)|0,ir=ir+Math.imul(jr,Nn)|0,Jt=Jt+Math.imul(Nr,$n)|0,Ut=Ut+Math.imul(Nr,Fn)|0,Ut=Ut+Math.imul(Lr,$n)|0,ir=ir+Math.imul(Lr,Fn)|0,Jt=Jt+Math.imul(Br,gn)|0,Ut=Ut+Math.imul(Br,Rn)|0,Ut=Ut+Math.imul(Or,gn)|0,ir=ir+Math.imul(Or,Rn)|0,Jt=Jt+Math.imul(Rr,pn)|0,Ut=Ut+Math.imul(Rr,yn)|0,Ut=Ut+Math.imul(wr,pn)|0,ir=ir+Math.imul(wr,yn)|0,Jt=Jt+Math.imul(Dr,Cn)|0,Ut=Ut+Math.imul(Dr,On)|0,Ut=Ut+Math.imul(Ar,Cn)|0,ir=ir+Math.imul(Ar,On)|0,Jt=Jt+Math.imul(_r,In)|0,Ut=Ut+Math.imul(_r,Bn)|0,Ut=Ut+Math.imul($r,In)|0,ir=ir+Math.imul($r,Bn)|0;var xu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(xu>>>26)|0,xu&=67108863,Jt=Math.imul(kr,Hr),Ut=Math.imul(kr,Vr),Ut=Ut+Math.imul(Mr,Hr)|0,ir=Math.imul(Mr,Vr),Jt=Jt+Math.imul(Gr,Qr)|0,Ut=Ut+Math.imul(Gr,hn)|0,Ut=Ut+Math.imul(Jr,Qr)|0,ir=ir+Math.imul(Jr,hn)|0,Jt=Jt+Math.imul(Xr,_n)|0,Ut=Ut+Math.imul(Xr,An)|0,Ut=Ut+Math.imul(un,_n)|0,ir=ir+Math.imul(un,An)|0,Jt=Jt+Math.imul(qr,Tn)|0,Ut=Ut+Math.imul(qr,Nn)|0,Ut=Ut+Math.imul(Zr,Tn)|0,ir=ir+Math.imul(Zr,Nn)|0,Jt=Jt+Math.imul(Ur,$n)|0,Ut=Ut+Math.imul(Ur,Fn)|0,Ut=Ut+Math.imul(jr,$n)|0,ir=ir+Math.imul(jr,Fn)|0,Jt=Jt+Math.imul(Nr,gn)|0,Ut=Ut+Math.imul(Nr,Rn)|0,Ut=Ut+Math.imul(Lr,gn)|0,ir=ir+Math.imul(Lr,Rn)|0,Jt=Jt+Math.imul(Br,pn)|0,Ut=Ut+Math.imul(Br,yn)|0,Ut=Ut+Math.imul(Or,pn)|0,ir=ir+Math.imul(Or,yn)|0,Jt=Jt+Math.imul(Rr,Cn)|0,Ut=Ut+Math.imul(Rr,On)|0,Ut=Ut+Math.imul(wr,Cn)|0,ir=ir+Math.imul(wr,On)|0,Jt=Jt+Math.imul(Dr,In)|0,Ut=Ut+Math.imul(Dr,Bn)|0,Ut=Ut+Math.imul(Ar,In)|0,ir=ir+Math.imul(Ar,Bn)|0,Jt=Jt+Math.imul(_r,En)|0,Ut=Ut+Math.imul(_r,Sn)|0,Ut=Ut+Math.imul($r,En)|0,ir=ir+Math.imul($r,Sn)|0;var _u=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(_u>>>26)|0,_u&=67108863,Jt=Math.imul(kr,Qr),Ut=Math.imul(kr,hn),Ut=Ut+Math.imul(Mr,Qr)|0,ir=Math.imul(Mr,hn),Jt=Jt+Math.imul(Gr,_n)|0,Ut=Ut+Math.imul(Gr,An)|0,Ut=Ut+Math.imul(Jr,_n)|0,ir=ir+Math.imul(Jr,An)|0,Jt=Jt+Math.imul(Xr,Tn)|0,Ut=Ut+Math.imul(Xr,Nn)|0,Ut=Ut+Math.imul(un,Tn)|0,ir=ir+Math.imul(un,Nn)|0,Jt=Jt+Math.imul(qr,$n)|0,Ut=Ut+Math.imul(qr,Fn)|0,Ut=Ut+Math.imul(Zr,$n)|0,ir=ir+Math.imul(Zr,Fn)|0,Jt=Jt+Math.imul(Ur,gn)|0,Ut=Ut+Math.imul(Ur,Rn)|0,Ut=Ut+Math.imul(jr,gn)|0,ir=ir+Math.imul(jr,Rn)|0,Jt=Jt+Math.imul(Nr,pn)|0,Ut=Ut+Math.imul(Nr,yn)|0,Ut=Ut+Math.imul(Lr,pn)|0,ir=ir+Math.imul(Lr,yn)|0,Jt=Jt+Math.imul(Br,Cn)|0,Ut=Ut+Math.imul(Br,On)|0,Ut=Ut+Math.imul(Or,Cn)|0,ir=ir+Math.imul(Or,On)|0,Jt=Jt+Math.imul(Rr,In)|0,Ut=Ut+Math.imul(Rr,Bn)|0,Ut=Ut+Math.imul(wr,In)|0,ir=ir+Math.imul(wr,Bn)|0,Jt=Jt+Math.imul(Dr,En)|0,Ut=Ut+Math.imul(Dr,Sn)|0,Ut=Ut+Math.imul(Ar,En)|0,ir=ir+Math.imul(Ar,Sn)|0;var $u=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+($u>>>26)|0,$u&=67108863,Jt=Math.imul(kr,_n),Ut=Math.imul(kr,An),Ut=Ut+Math.imul(Mr,_n)|0,ir=Math.imul(Mr,An),Jt=Jt+Math.imul(Gr,Tn)|0,Ut=Ut+Math.imul(Gr,Nn)|0,Ut=Ut+Math.imul(Jr,Tn)|0,ir=ir+Math.imul(Jr,Nn)|0,Jt=Jt+Math.imul(Xr,$n)|0,Ut=Ut+Math.imul(Xr,Fn)|0,Ut=Ut+Math.imul(un,$n)|0,ir=ir+Math.imul(un,Fn)|0,Jt=Jt+Math.imul(qr,gn)|0,Ut=Ut+Math.imul(qr,Rn)|0,Ut=Ut+Math.imul(Zr,gn)|0,ir=ir+Math.imul(Zr,Rn)|0,Jt=Jt+Math.imul(Ur,pn)|0,Ut=Ut+Math.imul(Ur,yn)|0,Ut=Ut+Math.imul(jr,pn)|0,ir=ir+Math.imul(jr,yn)|0,Jt=Jt+Math.imul(Nr,Cn)|0,Ut=Ut+Math.imul(Nr,On)|0,Ut=Ut+Math.imul(Lr,Cn)|0,ir=ir+Math.imul(Lr,On)|0,Jt=Jt+Math.imul(Br,In)|0,Ut=Ut+Math.imul(Br,Bn)|0,Ut=Ut+Math.imul(Or,In)|0,ir=ir+Math.imul(Or,Bn)|0,Jt=Jt+Math.imul(Rr,En)|0,Ut=Ut+Math.imul(Rr,Sn)|0,Ut=Ut+Math.imul(wr,En)|0,ir=ir+Math.imul(wr,Sn)|0;var Au=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Au>>>26)|0,Au&=67108863,Jt=Math.imul(kr,Tn),Ut=Math.imul(kr,Nn),Ut=Ut+Math.imul(Mr,Tn)|0,ir=Math.imul(Mr,Nn),Jt=Jt+Math.imul(Gr,$n)|0,Ut=Ut+Math.imul(Gr,Fn)|0,Ut=Ut+Math.imul(Jr,$n)|0,ir=ir+Math.imul(Jr,Fn)|0,Jt=Jt+Math.imul(Xr,gn)|0,Ut=Ut+Math.imul(Xr,Rn)|0,Ut=Ut+Math.imul(un,gn)|0,ir=ir+Math.imul(un,Rn)|0,Jt=Jt+Math.imul(qr,pn)|0,Ut=Ut+Math.imul(qr,yn)|0,Ut=Ut+Math.imul(Zr,pn)|0,ir=ir+Math.imul(Zr,yn)|0,Jt=Jt+Math.imul(Ur,Cn)|0,Ut=Ut+Math.imul(Ur,On)|0,Ut=Ut+Math.imul(jr,Cn)|0,ir=ir+Math.imul(jr,On)|0,Jt=Jt+Math.imul(Nr,In)|0,Ut=Ut+Math.imul(Nr,Bn)|0,Ut=Ut+Math.imul(Lr,In)|0,ir=ir+Math.imul(Lr,Bn)|0,Jt=Jt+Math.imul(Br,En)|0,Ut=Ut+Math.imul(Br,Sn)|0,Ut=Ut+Math.imul(Or,En)|0,ir=ir+Math.imul(Or,Sn)|0;var Bu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Bu>>>26)|0,Bu&=67108863,Jt=Math.imul(kr,$n),Ut=Math.imul(kr,Fn),Ut=Ut+Math.imul(Mr,$n)|0,ir=Math.imul(Mr,Fn),Jt=Jt+Math.imul(Gr,gn)|0,Ut=Ut+Math.imul(Gr,Rn)|0,Ut=Ut+Math.imul(Jr,gn)|0,ir=ir+Math.imul(Jr,Rn)|0,Jt=Jt+Math.imul(Xr,pn)|0,Ut=Ut+Math.imul(Xr,yn)|0,Ut=Ut+Math.imul(un,pn)|0,ir=ir+Math.imul(un,yn)|0,Jt=Jt+Math.imul(qr,Cn)|0,Ut=Ut+Math.imul(qr,On)|0,Ut=Ut+Math.imul(Zr,Cn)|0,ir=ir+Math.imul(Zr,On)|0,Jt=Jt+Math.imul(Ur,In)|0,Ut=Ut+Math.imul(Ur,Bn)|0,Ut=Ut+Math.imul(jr,In)|0,ir=ir+Math.imul(jr,Bn)|0,Jt=Jt+Math.imul(Nr,En)|0,Ut=Ut+Math.imul(Nr,Sn)|0,Ut=Ut+Math.imul(Lr,En)|0,ir=ir+Math.imul(Lr,Sn)|0;var Su=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Su>>>26)|0,Su&=67108863,Jt=Math.imul(kr,gn),Ut=Math.imul(kr,Rn),Ut=Ut+Math.imul(Mr,gn)|0,ir=Math.imul(Mr,Rn),Jt=Jt+Math.imul(Gr,pn)|0,Ut=Ut+Math.imul(Gr,yn)|0,Ut=Ut+Math.imul(Jr,pn)|0,ir=ir+Math.imul(Jr,yn)|0,Jt=Jt+Math.imul(Xr,Cn)|0,Ut=Ut+Math.imul(Xr,On)|0,Ut=Ut+Math.imul(un,Cn)|0,ir=ir+Math.imul(un,On)|0,Jt=Jt+Math.imul(qr,In)|0,Ut=Ut+Math.imul(qr,Bn)|0,Ut=Ut+Math.imul(Zr,In)|0,ir=ir+Math.imul(Zr,Bn)|0,Jt=Jt+Math.imul(Ur,En)|0,Ut=Ut+Math.imul(Ur,Sn)|0,Ut=Ut+Math.imul(jr,En)|0,ir=ir+Math.imul(jr,Sn)|0;var Ru=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Ru>>>26)|0,Ru&=67108863,Jt=Math.imul(kr,pn),Ut=Math.imul(kr,yn),Ut=Ut+Math.imul(Mr,pn)|0,ir=Math.imul(Mr,yn),Jt=Jt+Math.imul(Gr,Cn)|0,Ut=Ut+Math.imul(Gr,On)|0,Ut=Ut+Math.imul(Jr,Cn)|0,ir=ir+Math.imul(Jr,On)|0,Jt=Jt+Math.imul(Xr,In)|0,Ut=Ut+Math.imul(Xr,Bn)|0,Ut=Ut+Math.imul(un,In)|0,ir=ir+Math.imul(un,Bn)|0,Jt=Jt+Math.imul(qr,En)|0,Ut=Ut+Math.imul(qr,Sn)|0,Ut=Ut+Math.imul(Zr,En)|0,ir=ir+Math.imul(Zr,Sn)|0;var lu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(lu>>>26)|0,lu&=67108863,Jt=Math.imul(kr,Cn),Ut=Math.imul(kr,On),Ut=Ut+Math.imul(Mr,Cn)|0,ir=Math.imul(Mr,On),Jt=Jt+Math.imul(Gr,In)|0,Ut=Ut+Math.imul(Gr,Bn)|0,Ut=Ut+Math.imul(Jr,In)|0,ir=ir+Math.imul(Jr,Bn)|0,Jt=Jt+Math.imul(Xr,En)|0,Ut=Ut+Math.imul(Xr,Sn)|0,Ut=Ut+Math.imul(un,En)|0,ir=ir+Math.imul(un,Sn)|0;var du=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(du>>>26)|0,du&=67108863,Jt=Math.imul(kr,In),Ut=Math.imul(kr,Bn),Ut=Ut+Math.imul(Mr,In)|0,ir=Math.imul(Mr,Bn),Jt=Jt+Math.imul(Gr,En)|0,Ut=Ut+Math.imul(Gr,Sn)|0,Ut=Ut+Math.imul(Jr,En)|0,ir=ir+Math.imul(Jr,Sn)|0;var fu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(fu>>>26)|0,fu&=67108863,Jt=Math.imul(kr,En),Ut=Math.imul(kr,Sn),Ut=Ut+Math.imul(Mr,En)|0,ir=Math.imul(Mr,Sn);var Tu=(lr+Jt|0)+((Ut&8191)<<13)|0;return lr=(ir+(Ut>>>13)|0)+(Tu>>>26)|0,Tu&=67108863,er[0]=Xn,er[1]=uu,er[2]=Eu,er[3]=pu,er[4]=Qn,er[5]=Jn,er[6]=ou,er[7]=mu,er[8]=xu,er[9]=_u,er[10]=$u,er[11]=Au,er[12]=Bu,er[13]=Su,er[14]=Ru,er[15]=lu,er[16]=du,er[17]=fu,er[18]=Tu,lr!==0&&(er[19]=lr,Wt.length++),Wt};Math.imul||(Kt=Vt);function Xt(rr,Lt,Ht){Ht.negative=Lt.negative^rr.negative,Ht.length=rr.length+Lt.length;for(var Wt=0,Gt=0,Yt=0;Yt<Ht.length-1;Yt++){var er=Gt;Gt=0;for(var lr=Wt&67108863,Jt=Math.min(Yt,Lt.length-1),Ut=Math.max(0,Yt-rr.length+1);Ut<=Jt;Ut++){var ir=Yt-Ut,Cr=rr.words[ir]|0,_r=Lt.words[Ut]|0,$r=Cr*_r,Tr=$r&67108863;er=er+($r/67108864|0)|0,Tr=Tr+lr|0,lr=Tr&67108863,er=er+(Tr>>>26)|0,Gt+=er>>>26,er&=67108863}Ht.words[Yt]=lr,Wt=er,er=Gt}return Wt!==0?Ht.words[Yt]=Wt:Ht.length--,Ht.strip()}function Qt(rr,Lt,Ht){var Wt=new Zt;return Wt.mulp(rr,Lt,Ht)}At.prototype.mulTo=function(Lt,Ht){var Wt,Gt=this.length+Lt.length;return this.length===10&&Lt.length===10?Wt=Kt(this,Lt,Ht):Gt<63?Wt=Vt(this,Lt,Ht):Gt<1024?Wt=Xt(this,Lt,Ht):Wt=Qt(this,Lt,Ht),Wt};function Zt(rr,Lt){this.x=rr,this.y=Lt}Zt.prototype.makeRBT=function(Lt){for(var Ht=new Array(Lt),Wt=At.prototype._countBits(Lt)-1,Gt=0;Gt<Lt;Gt++)Ht[Gt]=this.revBin(Gt,Wt,Lt);return Ht},Zt.prototype.revBin=function(Lt,Ht,Wt){if(Lt===0||Lt===Wt-1)return Lt;for(var Gt=0,Yt=0;Yt<Ht;Yt++)Gt|=(Lt&1)<<Ht-Yt-1,Lt>>=1;return Gt},Zt.prototype.permute=function(Lt,Ht,Wt,Gt,Yt,er){for(var lr=0;lr<er;lr++)Gt[lr]=Ht[Lt[lr]],Yt[lr]=Wt[Lt[lr]]},Zt.prototype.transform=function(Lt,Ht,Wt,Gt,Yt,er){this.permute(er,Lt,Ht,Wt,Gt,Yt);for(var lr=1;lr<Yt;lr<<=1)for(var Jt=lr<<1,Ut=Math.cos(2*Math.PI/Jt),ir=Math.sin(2*Math.PI/Jt),Cr=0;Cr<Yt;Cr+=Jt)for(var _r=Ut,$r=ir,Tr=0;Tr<lr;Tr++){var Dr=Wt[Cr+Tr],Ar=Gt[Cr+Tr],Fr=Wt[Cr+Tr+lr],Rr=Gt[Cr+Tr+lr],wr=_r*Fr-$r*Rr;Rr=_r*Rr+$r*Fr,Fr=wr,Wt[Cr+Tr]=Dr+Fr,Gt[Cr+Tr]=Ar+Rr,Wt[Cr+Tr+lr]=Dr-Fr,Gt[Cr+Tr+lr]=Ar-Rr,Tr!==Jt&&(wr=Ut*_r-ir*$r,$r=Ut*$r+ir*_r,_r=wr)}},Zt.prototype.guessLen13b=function(Lt,Ht){var Wt=Math.max(Ht,Lt)|1,Gt=Wt&1,Yt=0;for(Wt=Wt/2|0;Wt;Wt=Wt>>>1)Yt++;return 1<<Yt+1+Gt},Zt.prototype.conjugate=function(Lt,Ht,Wt){if(!(Wt<=1))for(var Gt=0;Gt<Wt/2;Gt++){var Yt=Lt[Gt];Lt[Gt]=Lt[Wt-Gt-1],Lt[Wt-Gt-1]=Yt,Yt=Ht[Gt],Ht[Gt]=-Ht[Wt-Gt-1],Ht[Wt-Gt-1]=-Yt}},Zt.prototype.normalize13b=function(Lt,Ht){for(var Wt=0,Gt=0;Gt<Ht/2;Gt++){var Yt=Math.round(Lt[2*Gt+1]/Ht)*8192+Math.round(Lt[2*Gt]/Ht)+Wt;Lt[Gt]=Yt&67108863,Yt<67108864?Wt=0:Wt=Yt/67108864|0}return Lt},Zt.prototype.convert13b=function(Lt,Ht,Wt,Gt){for(var Yt=0,er=0;er<Ht;er++)Yt=Yt+(Lt[er]|0),Wt[2*er]=Yt&8191,Yt=Yt>>>13,Wt[2*er+1]=Yt&8191,Yt=Yt>>>13;for(er=2*Ht;er<Gt;++er)Wt[er]=0;Ct(Yt===0),Ct((Yt&-8192)===0)},Zt.prototype.stub=function(Lt){for(var Ht=new Array(Lt),Wt=0;Wt<Lt;Wt++)Ht[Wt]=0;return Ht},Zt.prototype.mulp=function(Lt,Ht,Wt){var Gt=2*this.guessLen13b(Lt.length,Ht.length),Yt=this.makeRBT(Gt),er=this.stub(Gt),lr=new Array(Gt),Jt=new Array(Gt),Ut=new Array(Gt),ir=new Array(Gt),Cr=new Array(Gt),_r=new Array(Gt),$r=Wt.words;$r.length=Gt,this.convert13b(Lt.words,Lt.length,lr,Gt),this.convert13b(Ht.words,Ht.length,ir,Gt),this.transform(lr,er,Jt,Ut,Gt,Yt),this.transform(ir,er,Cr,_r,Gt,Yt);for(var Tr=0;Tr<Gt;Tr++){var Dr=Jt[Tr]*Cr[Tr]-Ut[Tr]*_r[Tr];Ut[Tr]=Jt[Tr]*_r[Tr]+Ut[Tr]*Cr[Tr],Jt[Tr]=Dr}return this.conjugate(Jt,Ut,Gt),this.transform(Jt,Ut,$r,er,Gt,Yt),this.conjugate($r,er,Gt),this.normalize13b($r,Gt),Wt.negative=Lt.negative^Ht.negative,Wt.length=Lt.length+Ht.length,Wt.strip()},At.prototype.mul=function(Lt){var Ht=new At(null);return Ht.words=new Array(this.length+Lt.length),this.mulTo(Lt,Ht)},At.prototype.mulf=function(Lt){var Ht=new At(null);return Ht.words=new Array(this.length+Lt.length),Qt(this,Lt,Ht)},At.prototype.imul=function(Lt){return this.clone().mulTo(Lt,this)},At.prototype.imuln=function(Lt){Ct(typeof Lt=="number"),Ct(Lt<67108864);for(var Ht=0,Wt=0;Wt<this.length;Wt++){var Gt=(this.words[Wt]|0)*Lt,Yt=(Gt&67108863)+(Ht&67108863);Ht>>=26,Ht+=Gt/67108864|0,Ht+=Yt>>>26,this.words[Wt]=Yt&67108863}return Ht!==0&&(this.words[Wt]=Ht,this.length++),this},At.prototype.muln=function(Lt){return this.clone().imuln(Lt)},At.prototype.sqr=function(){return this.mul(this)},At.prototype.isqr=function(){return this.imul(this.clone())},At.prototype.pow=function(Lt){var Ht=zt(Lt);if(Ht.length===0)return new At(1);for(var Wt=this,Gt=0;Gt<Ht.length&&Ht[Gt]===0;Gt++,Wt=Wt.sqr());if(++Gt<Ht.length)for(var Yt=Wt.sqr();Gt<Ht.length;Gt++,Yt=Yt.sqr())Ht[Gt]!==0&&(Wt=Wt.mul(Yt));return Wt},At.prototype.iushln=function(Lt){Ct(typeof Lt=="number"&&Lt>=0);var Ht=Lt%26,Wt=(Lt-Ht)/26,Gt=67108863>>>26-Ht<<26-Ht,Yt;if(Ht!==0){var er=0;for(Yt=0;Yt<this.length;Yt++){var lr=this.words[Yt]&Gt,Jt=(this.words[Yt]|0)-lr<<Ht;this.words[Yt]=Jt|er,er=lr>>>26-Ht}er&&(this.words[Yt]=er,this.length++)}if(Wt!==0){for(Yt=this.length-1;Yt>=0;Yt--)this.words[Yt+Wt]=this.words[Yt];for(Yt=0;Yt<Wt;Yt++)this.words[Yt]=0;this.length+=Wt}return this.strip()},At.prototype.ishln=function(Lt){return Ct(this.negative===0),this.iushln(Lt)},At.prototype.iushrn=function(Lt,Ht,Wt){Ct(typeof Lt=="number"&&Lt>=0);var Gt;Ht?Gt=(Ht-Ht%26)/26:Gt=0;var Yt=Lt%26,er=Math.min((Lt-Yt)/26,this.length),lr=67108863^67108863>>>Yt<<Yt,Jt=Wt;if(Gt-=er,Gt=Math.max(0,Gt),Jt){for(var Ut=0;Ut<er;Ut++)Jt.words[Ut]=this.words[Ut];Jt.length=er}if(er!==0)if(this.length>er)for(this.length-=er,Ut=0;Ut<this.length;Ut++)this.words[Ut]=this.words[Ut+er];else this.words[0]=0,this.length=1;var ir=0;for(Ut=this.length-1;Ut>=0&&(ir!==0||Ut>=Gt);Ut--){var Cr=this.words[Ut]|0;this.words[Ut]=ir<<26-Yt|Cr>>>Yt,ir=Cr&lr}return Jt&&ir!==0&&(Jt.words[Jt.length++]=ir),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},At.prototype.ishrn=function(Lt,Ht,Wt){return Ct(this.negative===0),this.iushrn(Lt,Ht,Wt)},At.prototype.shln=function(Lt){return this.clone().ishln(Lt)},At.prototype.ushln=function(Lt){return this.clone().iushln(Lt)},At.prototype.shrn=function(Lt){return this.clone().ishrn(Lt)},At.prototype.ushrn=function(Lt){return this.clone().iushrn(Lt)},At.prototype.testn=function(Lt){Ct(typeof Lt=="number"&&Lt>=0);var Ht=Lt%26,Wt=(Lt-Ht)/26,Gt=1<<Ht;if(this.length<=Wt)return!1;var Yt=this.words[Wt];return!!(Yt&Gt)},At.prototype.imaskn=function(Lt){Ct(typeof Lt=="number"&&Lt>=0);var Ht=Lt%26,Wt=(Lt-Ht)/26;if(Ct(this.negative===0,"imaskn works only with positive numbers"),this.length<=Wt)return this;if(Ht!==0&&Wt++,this.length=Math.min(Wt,this.length),Ht!==0){var Gt=67108863^67108863>>>Ht<<Ht;this.words[this.length-1]&=Gt}return this.strip()},At.prototype.maskn=function(Lt){return this.clone().imaskn(Lt)},At.prototype.iaddn=function(Lt){return Ct(typeof Lt=="number"),Ct(Lt<67108864),Lt<0?this.isubn(-Lt):this.negative!==0?this.length===1&&(this.words[0]|0)<Lt?(this.words[0]=Lt-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(Lt),this.negative=1,this):this._iaddn(Lt)},At.prototype._iaddn=function(Lt){this.words[0]+=Lt;for(var Ht=0;Ht<this.length&&this.words[Ht]>=67108864;Ht++)this.words[Ht]-=67108864,Ht===this.length-1?this.words[Ht+1]=1:this.words[Ht+1]++;return this.length=Math.max(this.length,Ht+1),this},At.prototype.isubn=function(Lt){if(Ct(typeof Lt=="number"),Ct(Lt<67108864),Lt<0)return this.iaddn(-Lt);if(this.negative!==0)return this.negative=0,this.iaddn(Lt),this.negative=1,this;if(this.words[0]-=Lt,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Ht=0;Ht<this.length&&this.words[Ht]<0;Ht++)this.words[Ht]+=67108864,this.words[Ht+1]-=1;return this.strip()},At.prototype.addn=function(Lt){return this.clone().iaddn(Lt)},At.prototype.subn=function(Lt){return this.clone().isubn(Lt)},At.prototype.iabs=function(){return this.negative=0,this},At.prototype.abs=function(){return this.clone().iabs()},At.prototype._ishlnsubmul=function(Lt,Ht,Wt){var Gt=Lt.length+Wt,Yt;this._expand(Gt);var er,lr=0;for(Yt=0;Yt<Lt.length;Yt++){er=(this.words[Yt+Wt]|0)+lr;var Jt=(Lt.words[Yt]|0)*Ht;er-=Jt&67108863,lr=(er>>26)-(Jt/67108864|0),this.words[Yt+Wt]=er&67108863}for(;Yt<this.length-Wt;Yt++)er=(this.words[Yt+Wt]|0)+lr,lr=er>>26,this.words[Yt+Wt]=er&67108863;if(lr===0)return this.strip();for(Ct(lr===-1),lr=0,Yt=0;Yt<this.length;Yt++)er=-(this.words[Yt]|0)+lr,lr=er>>26,this.words[Yt]=er&67108863;return this.negative=1,this.strip()},At.prototype._wordDiv=function(Lt,Ht){var Wt=this.length-Lt.length,Gt=this.clone(),Yt=Lt,er=Yt.words[Yt.length-1]|0,lr=this._countBits(er);Wt=26-lr,Wt!==0&&(Yt=Yt.ushln(Wt),Gt.iushln(Wt),er=Yt.words[Yt.length-1]|0);var Jt=Gt.length-Yt.length,Ut;if(Ht!=="mod"){Ut=new At(null),Ut.length=Jt+1,Ut.words=new Array(Ut.length);for(var ir=0;ir<Ut.length;ir++)Ut.words[ir]=0}var Cr=Gt.clone()._ishlnsubmul(Yt,1,Jt);Cr.negative===0&&(Gt=Cr,Ut&&(Ut.words[Jt]=1));for(var _r=Jt-1;_r>=0;_r--){var $r=(Gt.words[Yt.length+_r]|0)*67108864+(Gt.words[Yt.length+_r-1]|0);for($r=Math.min($r/er|0,67108863),Gt._ishlnsubmul(Yt,$r,_r);Gt.negative!==0;)$r--,Gt.negative=0,Gt._ishlnsubmul(Yt,1,_r),Gt.isZero()||(Gt.negative^=1);Ut&&(Ut.words[_r]=$r)}return Ut&&Ut.strip(),Gt.strip(),Ht!=="div"&&Wt!==0&&Gt.iushrn(Wt),{div:Ut||null,mod:Gt}},At.prototype.divmod=function(Lt,Ht,Wt){if(Ct(!Lt.isZero()),this.isZero())return{div:new At(0),mod:new At(0)};var Gt,Yt,er;return this.negative!==0&&Lt.negative===0?(er=this.neg().divmod(Lt,Ht),Ht!=="mod"&&(Gt=er.div.neg()),Ht!=="div"&&(Yt=er.mod.neg(),Wt&&Yt.negative!==0&&Yt.iadd(Lt)),{div:Gt,mod:Yt}):this.negative===0&&Lt.negative!==0?(er=this.divmod(Lt.neg(),Ht),Ht!=="mod"&&(Gt=er.div.neg()),{div:Gt,mod:er.mod}):this.negative&Lt.negative?(er=this.neg().divmod(Lt.neg(),Ht),Ht!=="div"&&(Yt=er.mod.neg(),Wt&&Yt.negative!==0&&Yt.isub(Lt)),{div:er.div,mod:Yt}):Lt.length>this.length||this.cmp(Lt)<0?{div:new At(0),mod:this}:Lt.length===1?Ht==="div"?{div:this.divn(Lt.words[0]),mod:null}:Ht==="mod"?{div:null,mod:new At(this.modn(Lt.words[0]))}:{div:this.divn(Lt.words[0]),mod:new At(this.modn(Lt.words[0]))}:this._wordDiv(Lt,Ht)},At.prototype.div=function(Lt){return this.divmod(Lt,"div",!1).div},At.prototype.mod=function(Lt){return this.divmod(Lt,"mod",!1).mod},At.prototype.umod=function(Lt){return this.divmod(Lt,"mod",!0).mod},At.prototype.divRound=function(Lt){var Ht=this.divmod(Lt);if(Ht.mod.isZero())return Ht.div;var Wt=Ht.div.negative!==0?Ht.mod.isub(Lt):Ht.mod,Gt=Lt.ushrn(1),Yt=Lt.andln(1),er=Wt.cmp(Gt);return er<0||Yt===1&&er===0?Ht.div:Ht.div.negative!==0?Ht.div.isubn(1):Ht.div.iaddn(1)},At.prototype.modn=function(Lt){Ct(Lt<=67108863);for(var Ht=(1<<26)%Lt,Wt=0,Gt=this.length-1;Gt>=0;Gt--)Wt=(Ht*Wt+(this.words[Gt]|0))%Lt;return Wt},At.prototype.idivn=function(Lt){Ct(Lt<=67108863);for(var Ht=0,Wt=this.length-1;Wt>=0;Wt--){var Gt=(this.words[Wt]|0)+Ht*67108864;this.words[Wt]=Gt/Lt|0,Ht=Gt%Lt}return this.strip()},At.prototype.divn=function(Lt){return this.clone().idivn(Lt)},At.prototype.egcd=function(Lt){Ct(Lt.negative===0),Ct(!Lt.isZero());var Ht=this,Wt=Lt.clone();Ht.negative!==0?Ht=Ht.umod(Lt):Ht=Ht.clone();for(var Gt=new At(1),Yt=new At(0),er=new At(0),lr=new At(1),Jt=0;Ht.isEven()&&Wt.isEven();)Ht.iushrn(1),Wt.iushrn(1),++Jt;for(var Ut=Wt.clone(),ir=Ht.clone();!Ht.isZero();){for(var Cr=0,_r=1;!(Ht.words[0]&_r)&&Cr<26;++Cr,_r<<=1);if(Cr>0)for(Ht.iushrn(Cr);Cr-- >0;)(Gt.isOdd()||Yt.isOdd())&&(Gt.iadd(Ut),Yt.isub(ir)),Gt.iushrn(1),Yt.iushrn(1);for(var $r=0,Tr=1;!(Wt.words[0]&Tr)&&$r<26;++$r,Tr<<=1);if($r>0)for(Wt.iushrn($r);$r-- >0;)(er.isOdd()||lr.isOdd())&&(er.iadd(Ut),lr.isub(ir)),er.iushrn(1),lr.iushrn(1);Ht.cmp(Wt)>=0?(Ht.isub(Wt),Gt.isub(er),Yt.isub(lr)):(Wt.isub(Ht),er.isub(Gt),lr.isub(Yt))}return{a:er,b:lr,gcd:Wt.iushln(Jt)}},At.prototype._invmp=function(Lt){Ct(Lt.negative===0),Ct(!Lt.isZero());var Ht=this,Wt=Lt.clone();Ht.negative!==0?Ht=Ht.umod(Lt):Ht=Ht.clone();for(var Gt=new At(1),Yt=new At(0),er=Wt.clone();Ht.cmpn(1)>0&&Wt.cmpn(1)>0;){for(var lr=0,Jt=1;!(Ht.words[0]&Jt)&&lr<26;++lr,Jt<<=1);if(lr>0)for(Ht.iushrn(lr);lr-- >0;)Gt.isOdd()&&Gt.iadd(er),Gt.iushrn(1);for(var Ut=0,ir=1;!(Wt.words[0]&ir)&&Ut<26;++Ut,ir<<=1);if(Ut>0)for(Wt.iushrn(Ut);Ut-- >0;)Yt.isOdd()&&Yt.iadd(er),Yt.iushrn(1);Ht.cmp(Wt)>=0?(Ht.isub(Wt),Gt.isub(Yt)):(Wt.isub(Ht),Yt.isub(Gt))}var Cr;return Ht.cmpn(1)===0?Cr=Gt:Cr=Yt,Cr.cmpn(0)<0&&Cr.iadd(Lt),Cr},At.prototype.gcd=function(Lt){if(this.isZero())return Lt.abs();if(Lt.isZero())return this.abs();var Ht=this.clone(),Wt=Lt.clone();Ht.negative=0,Wt.negative=0;for(var Gt=0;Ht.isEven()&&Wt.isEven();Gt++)Ht.iushrn(1),Wt.iushrn(1);do{for(;Ht.isEven();)Ht.iushrn(1);for(;Wt.isEven();)Wt.iushrn(1);var Yt=Ht.cmp(Wt);if(Yt<0){var er=Ht;Ht=Wt,Wt=er}else if(Yt===0||Wt.cmpn(1)===0)break;Ht.isub(Wt)}while(!0);return Wt.iushln(Gt)},At.prototype.invm=function(Lt){return this.egcd(Lt).a.umod(Lt)},At.prototype.isEven=function(){return(this.words[0]&1)===0},At.prototype.isOdd=function(){return(this.words[0]&1)===1},At.prototype.andln=function(Lt){return this.words[0]&Lt},At.prototype.bincn=function(Lt){Ct(typeof Lt=="number");var Ht=Lt%26,Wt=(Lt-Ht)/26,Gt=1<<Ht;if(this.length<=Wt)return this._expand(Wt+1),this.words[Wt]|=Gt,this;for(var Yt=Gt,er=Wt;Yt!==0&&er<this.length;er++){var lr=this.words[er]|0;lr+=Yt,Yt=lr>>>26,lr&=67108863,this.words[er]=lr}return Yt!==0&&(this.words[er]=Yt,this.length++),this},At.prototype.isZero=function(){return this.length===1&&this.words[0]===0},At.prototype.cmpn=function(Lt){var Ht=Lt<0;if(this.negative!==0&&!Ht)return-1;if(this.negative===0&&Ht)return 1;this.strip();var Wt;if(this.length>1)Wt=1;else{Ht&&(Lt=-Lt),Ct(Lt<=67108863,"Number is too big");var Gt=this.words[0]|0;Wt=Gt===Lt?0:Gt<Lt?-1:1}return this.negative!==0?-Wt|0:Wt},At.prototype.cmp=function(Lt){if(this.negative!==0&&Lt.negative===0)return-1;if(this.negative===0&&Lt.negative!==0)return 1;var Ht=this.ucmp(Lt);return this.negative!==0?-Ht|0:Ht},At.prototype.ucmp=function(Lt){if(this.length>Lt.length)return 1;if(this.length<Lt.length)return-1;for(var Ht=0,Wt=this.length-1;Wt>=0;Wt--){var Gt=this.words[Wt]|0,Yt=Lt.words[Wt]|0;if(Gt!==Yt){Gt<Yt?Ht=-1:Gt>Yt&&(Ht=1);break}}return Ht},At.prototype.gtn=function(Lt){return this.cmpn(Lt)===1},At.prototype.gt=function(Lt){return this.cmp(Lt)===1},At.prototype.gten=function(Lt){return this.cmpn(Lt)>=0},At.prototype.gte=function(Lt){return this.cmp(Lt)>=0},At.prototype.ltn=function(Lt){return this.cmpn(Lt)===-1},At.prototype.lt=function(Lt){return this.cmp(Lt)===-1},At.prototype.lten=function(Lt){return this.cmpn(Lt)<=0},At.prototype.lte=function(Lt){return this.cmp(Lt)<=0},At.prototype.eqn=function(Lt){return this.cmpn(Lt)===0},At.prototype.eq=function(Lt){return this.cmp(Lt)===0},At.red=function(Lt){return new yr(Lt)},At.prototype.toRed=function(Lt){return Ct(!this.red,"Already a number in reduction context"),Ct(this.negative===0,"red works only with positives"),Lt.convertTo(this)._forceRed(Lt)},At.prototype.fromRed=function(){return Ct(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},At.prototype._forceRed=function(Lt){return this.red=Lt,this},At.prototype.forceRed=function(Lt){return Ct(!this.red,"Already a number in reduction context"),this._forceRed(Lt)},At.prototype.redAdd=function(Lt){return Ct(this.red,"redAdd works only with red numbers"),this.red.add(this,Lt)},At.prototype.redIAdd=function(Lt){return Ct(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,Lt)},At.prototype.redSub=function(Lt){return Ct(this.red,"redSub works only with red numbers"),this.red.sub(this,Lt)},At.prototype.redISub=function(Lt){return Ct(this.red,"redISub works only with red numbers"),this.red.isub(this,Lt)},At.prototype.redShl=function(Lt){return Ct(this.red,"redShl works only with red numbers"),this.red.shl(this,Lt)},At.prototype.redMul=function(Lt){return Ct(this.red,"redMul works only with red numbers"),this.red._verify2(this,Lt),this.red.mul(this,Lt)},At.prototype.redIMul=function(Lt){return Ct(this.red,"redMul works only with red numbers"),this.red._verify2(this,Lt),this.red.imul(this,Lt)},At.prototype.redSqr=function(){return Ct(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},At.prototype.redISqr=function(){return Ct(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},At.prototype.redSqrt=function(){return Ct(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},At.prototype.redInvm=function(){return Ct(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},At.prototype.redNeg=function(){return Ct(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},At.prototype.redPow=function(Lt){return Ct(this.red&&!Lt.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,Lt)};var dr={k256:null,p224:null,p192:null,p25519:null};function cr(rr,Lt){this.name=rr,this.p=new At(Lt,16),this.n=this.p.bitLength(),this.k=new At(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}cr.prototype._tmp=function(){var Lt=new At(null);return Lt.words=new Array(Math.ceil(this.n/13)),Lt},cr.prototype.ireduce=function(Lt){var Ht=Lt,Wt;do this.split(Ht,this.tmp),Ht=this.imulK(Ht),Ht=Ht.iadd(this.tmp),Wt=Ht.bitLength();while(Wt>this.n);var Gt=Wt<this.n?-1:Ht.ucmp(this.p);return Gt===0?(Ht.words[0]=0,Ht.length=1):Gt>0?Ht.isub(this.p):Ht.strip!==void 0?Ht.strip():Ht._strip(),Ht},cr.prototype.split=function(Lt,Ht){Lt.iushrn(this.n,0,Ht)},cr.prototype.imulK=function(Lt){return Lt.imul(this.k)};function Er(){cr.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}$t(Er,cr),Er.prototype.split=function(Lt,Ht){for(var Wt=4194303,Gt=Math.min(Lt.length,9),Yt=0;Yt<Gt;Yt++)Ht.words[Yt]=Lt.words[Yt];if(Ht.length=Gt,Lt.length<=9){Lt.words[0]=0,Lt.length=1;return}var er=Lt.words[9];for(Ht.words[Ht.length++]=er&Wt,Yt=10;Yt<Lt.length;Yt++){var lr=Lt.words[Yt]|0;Lt.words[Yt-10]=(lr&Wt)<<4|er>>>22,er=lr}er>>>=22,Lt.words[Yt-10]=er,er===0&&Lt.length>10?Lt.length-=10:Lt.length-=9},Er.prototype.imulK=function(Lt){Lt.words[Lt.length]=0,Lt.words[Lt.length+1]=0,Lt.length+=2;for(var Ht=0,Wt=0;Wt<Lt.length;Wt++){var Gt=Lt.words[Wt]|0;Ht+=Gt*977,Lt.words[Wt]=Ht&67108863,Ht=Gt*64+(Ht/67108864|0)}return Lt.words[Lt.length-1]===0&&(Lt.length--,Lt.words[Lt.length-1]===0&&Lt.length--),Lt};function pr(){cr.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}$t(pr,cr);function gr(){cr.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}$t(gr,cr);function vr(){cr.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}$t(vr,cr),vr.prototype.imulK=function(Lt){for(var Ht=0,Wt=0;Wt<Lt.length;Wt++){var Gt=(Lt.words[Wt]|0)*19+Ht,Yt=Gt&67108863;Gt>>>=26,Lt.words[Wt]=Yt,Ht=Gt}return Ht!==0&&(Lt.words[Lt.length++]=Ht),Lt},At._prime=function(Lt){if(dr[Lt])return dr[Lt];var Ht;if(Lt==="k256")Ht=new Er;else if(Lt==="p224")Ht=new pr;else if(Lt==="p192")Ht=new gr;else if(Lt==="p25519")Ht=new vr;else throw new Error("Unknown prime "+Lt);return dr[Lt]=Ht,Ht};function yr(rr){if(typeof rr=="string"){var Lt=At._prime(rr);this.m=Lt.p,this.prime=Lt}else Ct(rr.gtn(1),"modulus must be greater than 1"),this.m=rr,this.prime=null}yr.prototype._verify1=function(Lt){Ct(Lt.negative===0,"red works only with positives"),Ct(Lt.red,"red works only with red numbers")},yr.prototype._verify2=function(Lt,Ht){Ct((Lt.negative|Ht.negative)===0,"red works only with positives"),Ct(Lt.red&&Lt.red===Ht.red,"red works only with red numbers")},yr.prototype.imod=function(Lt){return this.prime?this.prime.ireduce(Lt)._forceRed(this):Lt.umod(this.m)._forceRed(this)},yr.prototype.neg=function(Lt){return Lt.isZero()?Lt.clone():this.m.sub(Lt)._forceRed(this)},yr.prototype.add=function(Lt,Ht){this._verify2(Lt,Ht);var Wt=Lt.add(Ht);return Wt.cmp(this.m)>=0&&Wt.isub(this.m),Wt._forceRed(this)},yr.prototype.iadd=function(Lt,Ht){this._verify2(Lt,Ht);var Wt=Lt.iadd(Ht);return Wt.cmp(this.m)>=0&&Wt.isub(this.m),Wt},yr.prototype.sub=function(Lt,Ht){this._verify2(Lt,Ht);var Wt=Lt.sub(Ht);return Wt.cmpn(0)<0&&Wt.iadd(this.m),Wt._forceRed(this)},yr.prototype.isub=function(Lt,Ht){this._verify2(Lt,Ht);var Wt=Lt.isub(Ht);return Wt.cmpn(0)<0&&Wt.iadd(this.m),Wt},yr.prototype.shl=function(Lt,Ht){return this._verify1(Lt),this.imod(Lt.ushln(Ht))},yr.prototype.imul=function(Lt,Ht){return this._verify2(Lt,Ht),this.imod(Lt.imul(Ht))},yr.prototype.mul=function(Lt,Ht){return this._verify2(Lt,Ht),this.imod(Lt.mul(Ht))},yr.prototype.isqr=function(Lt){return this.imul(Lt,Lt.clone())},yr.prototype.sqr=function(Lt){return this.mul(Lt,Lt)},yr.prototype.sqrt=function(Lt){if(Lt.isZero())return Lt.clone();var Ht=this.m.andln(3);if(Ct(Ht%2===1),Ht===3){var Wt=this.m.add(new At(1)).iushrn(2);return this.pow(Lt,Wt)}for(var Gt=this.m.subn(1),Yt=0;!Gt.isZero()&&Gt.andln(1)===0;)Yt++,Gt.iushrn(1);Ct(!Gt.isZero());var er=new At(1).toRed(this),lr=er.redNeg(),Jt=this.m.subn(1).iushrn(1),Ut=this.m.bitLength();for(Ut=new At(2*Ut*Ut).toRed(this);this.pow(Ut,Jt).cmp(lr)!==0;)Ut.redIAdd(lr);for(var ir=this.pow(Ut,Gt),Cr=this.pow(Lt,Gt.addn(1).iushrn(1)),_r=this.pow(Lt,Gt),$r=Yt;_r.cmp(er)!==0;){for(var Tr=_r,Dr=0;Tr.cmp(er)!==0;Dr++)Tr=Tr.redSqr();Ct(Dr<$r);var Ar=this.pow(ir,new At(1).iushln($r-Dr-1));Cr=Cr.redMul(Ar),ir=Ar.redSqr(),_r=_r.redMul(ir),$r=Dr}return Cr},yr.prototype.invm=function(Lt){var Ht=Lt._invmp(this.m);return Ht.negative!==0?(Ht.negative=0,this.imod(Ht).redNeg()):this.imod(Ht)},yr.prototype.pow=function(Lt,Ht){if(Ht.isZero())return new At(1).toRed(this);if(Ht.cmpn(1)===0)return Lt.clone();var Wt=4,Gt=new Array(1<<Wt);Gt[0]=new At(1).toRed(this),Gt[1]=Lt;for(var Yt=2;Yt<Gt.length;Yt++)Gt[Yt]=this.mul(Gt[Yt-1],Lt);var er=Gt[0],lr=0,Jt=0,Ut=Ht.bitLength()%26;for(Ut===0&&(Ut=26),Yt=Ht.length-1;Yt>=0;Yt--){for(var ir=Ht.words[Yt],Cr=Ut-1;Cr>=0;Cr--){var _r=ir>>Cr&1;if(er!==Gt[0]&&(er=this.sqr(er)),_r===0&&lr===0){Jt=0;continue}lr<<=1,lr|=_r,Jt++,!(Jt!==Wt&&(Yt!==0||Cr!==0))&&(er=this.mul(er,Gt[lr]),Jt=0,lr=0)}Ut=26}return er},yr.prototype.convertTo=function(Lt){var Ht=Lt.umod(this.m);return Ht===Lt?Ht.clone():Ht},yr.prototype.convertFrom=function(Lt){var Ht=Lt.clone();return Ht.red=null,Ht},At.mont=function(Lt){return new xr(Lt)};function xr(rr){yr.call(this,rr),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new At(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}$t(xr,yr),xr.prototype.convertTo=function(Lt){return this.imod(Lt.ushln(this.shift))},xr.prototype.convertFrom=function(Lt){var Ht=this.imod(Lt.mul(this.rinv));return Ht.red=null,Ht},xr.prototype.imul=function(Lt,Ht){if(Lt.isZero()||Ht.isZero())return Lt.words[0]=0,Lt.length=1,Lt;var Wt=Lt.imul(Ht),Gt=Wt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Yt=Wt.isub(Gt).iushrn(this.shift),er=Yt;return Yt.cmp(this.m)>=0?er=Yt.isub(this.m):Yt.cmpn(0)<0&&(er=Yt.iadd(this.m)),er._forceRed(this)},xr.prototype.mul=function(Lt,Ht){if(Lt.isZero()||Ht.isZero())return new At(0)._forceRed(this);var Wt=Lt.mul(Ht),Gt=Wt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Yt=Wt.isub(Gt).iushrn(this.shift),er=Yt;return Yt.cmp(this.m)>=0?er=Yt.isub(this.m):Yt.cmpn(0)<0&&(er=Yt.iadd(this.m)),er._forceRed(this)},xr.prototype.invm=function(Lt){var Ht=this.imod(Lt._invmp(this.m).mul(this.r2));return Ht._forceRed(this)}})(ht,commonjsGlobal)}(bn$3)),bn$3.exports}var api$1={},vmBrowserify={},hasRequiredVmBrowserify;function requireVmBrowserify(){return hasRequiredVmBrowserify||(hasRequiredVmBrowserify=1,function(exports){var indexOf=function(ht,Et){if(ht.indexOf)return ht.indexOf(Et);for(var yt=0;yt<ht.length;yt++)if(ht[yt]===Et)return yt;return-1},Object_keys=function(ht){if(Object.keys)return Object.keys(ht);var Et=[];for(var yt in ht)Et.push(yt);return Et},forEach=function(ht,Et){if(ht.forEach)return ht.forEach(Et);for(var yt=0;yt<ht.length;yt++)Et(ht[yt],yt,ht)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(ht,Et,yt){Object.defineProperty(ht,Et,{writable:!0,enumerable:!1,configurable:!0,value:yt})}}catch{return function(Et,yt,Ct){Et[yt]=Ct}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(Et){if(!(this instanceof Script))return new Script(Et);this.code=Et};Script.prototype.runInContext=function(ht){if(!(ht instanceof Context))throw new TypeError("needs a 'context' argument.");var Et=document.createElement("iframe");Et.style||(Et.style={}),Et.style.display="none",document.body.appendChild(Et);var yt=Et.contentWindow,Ct=yt.eval,$t=yt.execScript;!Ct&&$t&&($t.call(yt,"null"),Ct=yt.eval),forEach(Object_keys(ht),function(Dt){yt[Dt]=ht[Dt]}),forEach(globals,function(Dt){ht[Dt]&&(yt[Dt]=ht[Dt])});var At=Object_keys(yt),Bt=Ct.call(yt,this.code);return forEach(Object_keys(yt),function(Dt){(Dt in ht||indexOf(At,Dt)===-1)&&(ht[Dt]=yt[Dt])}),forEach(globals,function(Dt){Dt in ht||defineProp(ht,Dt,yt[Dt])}),document.body.removeChild(Et),Bt},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(ht){var Et=Script.createContext(ht),yt=this.runInContext(Et);return ht&&forEach(Object_keys(Et),function(Ct){ht[Ct]=Et[Ct]}),yt},forEach(Object_keys(Script.prototype),function(ht){exports[ht]=Script[ht]=function(Et){var yt=Script(Et);return yt[ht].apply(yt,[].slice.call(arguments,1))}}),exports.isContext=function(ht){return ht instanceof Context},exports.createScript=function(ht){return exports.Script(ht)},exports.createContext=Script.createContext=function(ht){var Et=new Context;return typeof ht=="object"&&forEach(Object_keys(ht),function(yt){Et[yt]=ht[yt]}),Et}}(vmBrowserify)),vmBrowserify}var hasRequiredApi;function requireApi(){return hasRequiredApi||(hasRequiredApi=1,function(ht){var Et=requireAsn1$1(),yt=inherits_browserExports,Ct=ht;Ct.define=function(Bt,Dt){return new $t(Bt,Dt)};function $t(At,Bt){this.name=At,this.body=Bt,this.decoders={},this.encoders={}}$t.prototype._createNamed=function(Bt){var Dt;try{Dt=requireVmBrowserify().runInThisContext("(function "+this.name+`(entity) {
  this._initNamed(entity);
})`)}catch{Dt=function(kt){this._initNamed(kt)}}return yt(Dt,Bt),Dt.prototype._initNamed=function(kt){Bt.call(this,kt)},new Dt(this)},$t.prototype._getDecoder=function(Bt){return Bt=Bt||"der",this.decoders.hasOwnProperty(Bt)||(this.decoders[Bt]=this._createNamed(Et.decoders[Bt])),this.decoders[Bt]},$t.prototype.decode=function(Bt,Dt,Ft){return this._getDecoder(Dt).decode(Bt,Ft)},$t.prototype._getEncoder=function(Bt){return Bt=Bt||"der",this.encoders.hasOwnProperty(Bt)||(this.encoders[Bt]=this._createNamed(Et.encoders[Bt])),this.encoders[Bt]},$t.prototype.encode=function(Bt,Dt,Ft){return this._getEncoder(Dt).encode(Bt,Ft)}}(api$1)),api$1}var base$4={},reporter={},hasRequiredReporter;function requireReporter(){if(hasRequiredReporter)return reporter;hasRequiredReporter=1;var ht=inherits_browserExports;function Et(Ct){this._reporterState={obj:null,path:[],options:Ct||{},errors:[]}}reporter.Reporter=Et,Et.prototype.isError=function($t){return $t instanceof yt},Et.prototype.save=function(){var $t=this._reporterState;return{obj:$t.obj,pathLen:$t.path.length}},Et.prototype.restore=function($t){var At=this._reporterState;At.obj=$t.obj,At.path=At.path.slice(0,$t.pathLen)},Et.prototype.enterKey=function($t){return this._reporterState.path.push($t)},Et.prototype.exitKey=function($t){var At=this._reporterState;At.path=At.path.slice(0,$t-1)},Et.prototype.leaveKey=function($t,At,Bt){var Dt=this._reporterState;this.exitKey($t),Dt.obj!==null&&(Dt.obj[At]=Bt)},Et.prototype.path=function(){return this._reporterState.path.join("/")},Et.prototype.enterObject=function(){var $t=this._reporterState,At=$t.obj;return $t.obj={},At},Et.prototype.leaveObject=function($t){var At=this._reporterState,Bt=At.obj;return At.obj=$t,Bt},Et.prototype.error=function($t){var At,Bt=this._reporterState,Dt=$t instanceof yt;if(Dt?At=$t:At=new yt(Bt.path.map(function(Ft){return"["+JSON.stringify(Ft)+"]"}).join(""),$t.message||$t,$t.stack),!Bt.options.partial)throw At;return Dt||Bt.errors.push(At),At},Et.prototype.wrapResult=function($t){var At=this._reporterState;return At.options.partial?{result:this.isError($t)?null:$t,errors:At.errors}:$t};function yt(Ct,$t){this.path=Ct,this.rethrow($t)}return ht(yt,Error),yt.prototype.rethrow=function($t){if(this.message=$t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,yt),!this.stack)try{throw new Error(this.message)}catch(At){this.stack=At.stack}return this},reporter}var buffer={},hasRequiredBuffer;function requireBuffer(){if(hasRequiredBuffer)return buffer;hasRequiredBuffer=1;var ht=inherits_browserExports,Et=requireBase().Reporter,yt=require$$0$3.Buffer;function Ct(At,Bt){if(Et.call(this,Bt),!yt.isBuffer(At)){this.error("Input not Buffer");return}this.base=At,this.offset=0,this.length=At.length}ht(Ct,Et),buffer.DecoderBuffer=Ct,Ct.prototype.save=function(){return{offset:this.offset,reporter:Et.prototype.save.call(this)}},Ct.prototype.restore=function(Bt){var Dt=new Ct(this.base);return Dt.offset=Bt.offset,Dt.length=this.offset,this.offset=Bt.offset,Et.prototype.restore.call(this,Bt.reporter),Dt},Ct.prototype.isEmpty=function(){return this.offset===this.length},Ct.prototype.readUInt8=function(Bt){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(Bt||"DecoderBuffer overrun")},Ct.prototype.skip=function(Bt,Dt){if(!(this.offset+Bt<=this.length))return this.error(Dt||"DecoderBuffer overrun");var Ft=new Ct(this.base);return Ft._reporterState=this._reporterState,Ft.offset=this.offset,Ft.length=this.offset+Bt,this.offset+=Bt,Ft},Ct.prototype.raw=function(Bt){return this.base.slice(Bt?Bt.offset:this.offset,this.length)};function $t(At,Bt){if(Array.isArray(At))this.length=0,this.value=At.map(function(Dt){return Dt instanceof $t||(Dt=new $t(Dt,Bt)),this.length+=Dt.length,Dt},this);else if(typeof At=="number"){if(!(0<=At&&At<=255))return Bt.error("non-byte EncoderBuffer value");this.value=At,this.length=1}else if(typeof At=="string")this.value=At,this.length=yt.byteLength(At);else if(yt.isBuffer(At))this.value=At,this.length=At.length;else return Bt.error("Unsupported type: "+typeof At)}return buffer.EncoderBuffer=$t,$t.prototype.join=function(Bt,Dt){return Bt||(Bt=new yt(this.length)),Dt||(Dt=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(Ft){Ft.join(Bt,Dt),Dt+=Ft.length}):(typeof this.value=="number"?Bt[Dt]=this.value:typeof this.value=="string"?Bt.write(this.value,Dt):yt.isBuffer(this.value)&&this.value.copy(Bt,Dt),Dt+=this.length)),Bt},buffer}var node$1,hasRequiredNode;function requireNode(){if(hasRequiredNode)return node$1;hasRequiredNode=1;var ht=requireBase().Reporter,Et=requireBase().EncoderBuffer,yt=requireBase().DecoderBuffer,Ct=minimalisticAssert,$t=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],At=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat($t),Bt=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function Dt(kt,Mt){var Nt={};this._baseState=Nt,Nt.enc=kt,Nt.parent=Mt||null,Nt.children=null,Nt.tag=null,Nt.args=null,Nt.reverseArgs=null,Nt.choice=null,Nt.optional=!1,Nt.any=!1,Nt.obj=!1,Nt.use=null,Nt.useDecoder=null,Nt.key=null,Nt.default=null,Nt.explicit=null,Nt.implicit=null,Nt.contains=null,Nt.parent||(Nt.children=[],this._wrap())}node$1=Dt;var Ft=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];return Dt.prototype.clone=function(){var Mt=this._baseState,Nt={};Ft.forEach(function(zt){Nt[zt]=Mt[zt]});var jt=new this.constructor(Nt.parent);return jt._baseState=Nt,jt},Dt.prototype._wrap=function(){var Mt=this._baseState;At.forEach(function(Nt){this[Nt]=function(){var zt=new this.constructor(this);return Mt.children.push(zt),zt[Nt].apply(zt,arguments)}},this)},Dt.prototype._init=function(Mt){var Nt=this._baseState;Ct(Nt.parent===null),Mt.call(this),Nt.children=Nt.children.filter(function(jt){return jt._baseState.parent===this},this),Ct.equal(Nt.children.length,1,"Root node can have only one child")},Dt.prototype._useArgs=function(Mt){var Nt=this._baseState,jt=Mt.filter(function(zt){return zt instanceof this.constructor},this);Mt=Mt.filter(function(zt){return!(zt instanceof this.constructor)},this),jt.length!==0&&(Ct(Nt.children===null),Nt.children=jt,jt.forEach(function(zt){zt._baseState.parent=this},this)),Mt.length!==0&&(Ct(Nt.args===null),Nt.args=Mt,Nt.reverseArgs=Mt.map(function(zt){if(typeof zt!="object"||zt.constructor!==Object)return zt;var Vt={};return Object.keys(zt).forEach(function(Kt){Kt==(Kt|0)&&(Kt|=0);var Xt=zt[Kt];Vt[Xt]=Kt}),Vt}))},Bt.forEach(function(kt){Dt.prototype[kt]=function(){var Nt=this._baseState;throw new Error(kt+" not implemented for encoding: "+Nt.enc)}}),$t.forEach(function(kt){Dt.prototype[kt]=function(){var Nt=this._baseState,jt=Array.prototype.slice.call(arguments);return Ct(Nt.tag===null),Nt.tag=kt,this._useArgs(jt),this}}),Dt.prototype.use=function(Mt){Ct(Mt);var Nt=this._baseState;return Ct(Nt.use===null),Nt.use=Mt,this},Dt.prototype.optional=function(){var Mt=this._baseState;return Mt.optional=!0,this},Dt.prototype.def=function(Mt){var Nt=this._baseState;return Ct(Nt.default===null),Nt.default=Mt,Nt.optional=!0,this},Dt.prototype.explicit=function(Mt){var Nt=this._baseState;return Ct(Nt.explicit===null&&Nt.implicit===null),Nt.explicit=Mt,this},Dt.prototype.implicit=function(Mt){var Nt=this._baseState;return Ct(Nt.explicit===null&&Nt.implicit===null),Nt.implicit=Mt,this},Dt.prototype.obj=function(){var Mt=this._baseState,Nt=Array.prototype.slice.call(arguments);return Mt.obj=!0,Nt.length!==0&&this._useArgs(Nt),this},Dt.prototype.key=function(Mt){var Nt=this._baseState;return Ct(Nt.key===null),Nt.key=Mt,this},Dt.prototype.any=function(){var Mt=this._baseState;return Mt.any=!0,this},Dt.prototype.choice=function(Mt){var Nt=this._baseState;return Ct(Nt.choice===null),Nt.choice=Mt,this._useArgs(Object.keys(Mt).map(function(jt){return Mt[jt]})),this},Dt.prototype.contains=function(Mt){var Nt=this._baseState;return Ct(Nt.use===null),Nt.contains=Mt,this},Dt.prototype._decode=function(Mt,Nt){var jt=this._baseState;if(jt.parent===null)return Mt.wrapResult(jt.children[0]._decode(Mt,Nt));var zt=jt.default,Vt=!0,Kt=null;if(jt.key!==null&&(Kt=Mt.enterKey(jt.key)),jt.optional){var Xt=null;if(jt.explicit!==null?Xt=jt.explicit:jt.implicit!==null?Xt=jt.implicit:jt.tag!==null&&(Xt=jt.tag),Xt===null&&!jt.any){var Qt=Mt.save();try{jt.choice===null?this._decodeGeneric(jt.tag,Mt,Nt):this._decodeChoice(Mt,Nt),Vt=!0}catch{Vt=!1}Mt.restore(Qt)}else if(Vt=this._peekTag(Mt,Xt,jt.any),Mt.isError(Vt))return Vt}var Zt;if(jt.obj&&Vt&&(Zt=Mt.enterObject()),Vt){if(jt.explicit!==null){var dr=this._decodeTag(Mt,jt.explicit);if(Mt.isError(dr))return dr;Mt=dr}var cr=Mt.offset;if(jt.use===null&&jt.choice===null){if(jt.any)var Qt=Mt.save();var Er=this._decodeTag(Mt,jt.implicit!==null?jt.implicit:jt.tag,jt.any);if(Mt.isError(Er))return Er;jt.any?zt=Mt.raw(Qt):Mt=Er}if(Nt&&Nt.track&&jt.tag!==null&&Nt.track(Mt.path(),cr,Mt.length,"tagged"),Nt&&Nt.track&&jt.tag!==null&&Nt.track(Mt.path(),Mt.offset,Mt.length,"content"),jt.any?zt=zt:jt.choice===null?zt=this._decodeGeneric(jt.tag,Mt,Nt):zt=this._decodeChoice(Mt,Nt),Mt.isError(zt))return zt;if(!jt.any&&jt.choice===null&&jt.children!==null&&jt.children.forEach(function(vr){vr._decode(Mt,Nt)}),jt.contains&&(jt.tag==="octstr"||jt.tag==="bitstr")){var pr=new yt(zt);zt=this._getUse(jt.contains,Mt._reporterState.obj)._decode(pr,Nt)}}return jt.obj&&Vt&&(zt=Mt.leaveObject(Zt)),jt.key!==null&&(zt!==null||Vt===!0)?Mt.leaveKey(Kt,jt.key,zt):Kt!==null&&Mt.exitKey(Kt),zt},Dt.prototype._decodeGeneric=function(Mt,Nt,jt){var zt=this._baseState;return Mt==="seq"||Mt==="set"?null:Mt==="seqof"||Mt==="setof"?this._decodeList(Nt,Mt,zt.args[0],jt):/str$/.test(Mt)?this._decodeStr(Nt,Mt,jt):Mt==="objid"&&zt.args?this._decodeObjid(Nt,zt.args[0],zt.args[1],jt):Mt==="objid"?this._decodeObjid(Nt,null,null,jt):Mt==="gentime"||Mt==="utctime"?this._decodeTime(Nt,Mt,jt):Mt==="null_"?this._decodeNull(Nt,jt):Mt==="bool"?this._decodeBool(Nt,jt):Mt==="objDesc"?this._decodeStr(Nt,Mt,jt):Mt==="int"||Mt==="enum"?this._decodeInt(Nt,zt.args&&zt.args[0],jt):zt.use!==null?this._getUse(zt.use,Nt._reporterState.obj)._decode(Nt,jt):Nt.error("unknown tag: "+Mt)},Dt.prototype._getUse=function(Mt,Nt){var jt=this._baseState;return jt.useDecoder=this._use(Mt,Nt),Ct(jt.useDecoder._baseState.parent===null),jt.useDecoder=jt.useDecoder._baseState.children[0],jt.implicit!==jt.useDecoder._baseState.implicit&&(jt.useDecoder=jt.useDecoder.clone(),jt.useDecoder._baseState.implicit=jt.implicit),jt.useDecoder},Dt.prototype._decodeChoice=function(Mt,Nt){var jt=this._baseState,zt=null,Vt=!1;return Object.keys(jt.choice).some(function(Kt){var Xt=Mt.save(),Qt=jt.choice[Kt];try{var Zt=Qt._decode(Mt,Nt);if(Mt.isError(Zt))return!1;zt={type:Kt,value:Zt},Vt=!0}catch{return Mt.restore(Xt),!1}return!0},this),Vt?zt:Mt.error("Choice not matched")},Dt.prototype._createEncoderBuffer=function(Mt){return new Et(Mt,this.reporter)},Dt.prototype._encode=function(Mt,Nt,jt){var zt=this._baseState;if(!(zt.default!==null&&zt.default===Mt)){var Vt=this._encodeValue(Mt,Nt,jt);if(Vt!==void 0&&!this._skipDefault(Vt,Nt,jt))return Vt}},Dt.prototype._encodeValue=function(Mt,Nt,jt){var zt=this._baseState;if(zt.parent===null)return zt.children[0]._encode(Mt,Nt||new ht);var Qt=null;if(this.reporter=Nt,zt.optional&&Mt===void 0)if(zt.default!==null)Mt=zt.default;else return;var Vt=null,Kt=!1;if(zt.any)Qt=this._createEncoderBuffer(Mt);else if(zt.choice)Qt=this._encodeChoice(Mt,Nt);else if(zt.contains)Vt=this._getUse(zt.contains,jt)._encode(Mt,Nt),Kt=!0;else if(zt.children)Vt=zt.children.map(function(cr){if(cr._baseState.tag==="null_")return cr._encode(null,Nt,Mt);if(cr._baseState.key===null)return Nt.error("Child should have a key");var Er=Nt.enterKey(cr._baseState.key);if(typeof Mt!="object")return Nt.error("Child expected, but input is not object");var pr=cr._encode(Mt[cr._baseState.key],Nt,Mt);return Nt.leaveKey(Er),pr},this).filter(function(cr){return cr}),Vt=this._createEncoderBuffer(Vt);else if(zt.tag==="seqof"||zt.tag==="setof"){if(!(zt.args&&zt.args.length===1))return Nt.error("Too many args for : "+zt.tag);if(!Array.isArray(Mt))return Nt.error("seqof/setof, but data is not Array");var Xt=this.clone();Xt._baseState.implicit=null,Vt=this._createEncoderBuffer(Mt.map(function(cr){var Er=this._baseState;return this._getUse(Er.args[0],Mt)._encode(cr,Nt)},Xt))}else zt.use!==null?Qt=this._getUse(zt.use,jt)._encode(Mt,Nt):(Vt=this._encodePrimitive(zt.tag,Mt),Kt=!0);var Qt;if(!zt.any&&zt.choice===null){var Zt=zt.implicit!==null?zt.implicit:zt.tag,dr=zt.implicit===null?"universal":"context";Zt===null?zt.use===null&&Nt.error("Tag could be omitted only for .use()"):zt.use===null&&(Qt=this._encodeComposite(Zt,Kt,dr,Vt))}return zt.explicit!==null&&(Qt=this._encodeComposite(zt.explicit,!1,"context",Qt)),Qt},Dt.prototype._encodeChoice=function(Mt,Nt){var jt=this._baseState,zt=jt.choice[Mt.type];return zt||Ct(!1,Mt.type+" not found in "+JSON.stringify(Object.keys(jt.choice))),zt._encode(Mt.value,Nt)},Dt.prototype._encodePrimitive=function(Mt,Nt){var jt=this._baseState;if(/str$/.test(Mt))return this._encodeStr(Nt,Mt);if(Mt==="objid"&&jt.args)return this._encodeObjid(Nt,jt.reverseArgs[0],jt.args[1]);if(Mt==="objid")return this._encodeObjid(Nt,null,null);if(Mt==="gentime"||Mt==="utctime")return this._encodeTime(Nt,Mt);if(Mt==="null_")return this._encodeNull();if(Mt==="int"||Mt==="enum")return this._encodeInt(Nt,jt.args&&jt.reverseArgs[0]);if(Mt==="bool")return this._encodeBool(Nt);if(Mt==="objDesc")return this._encodeStr(Nt,Mt);throw new Error("Unsupported tag: "+Mt)},Dt.prototype._isNumstr=function(Mt){return/^[0-9 ]*$/.test(Mt)},Dt.prototype._isPrintstr=function(Mt){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(Mt)},node$1}var hasRequiredBase;function requireBase(){return hasRequiredBase||(hasRequiredBase=1,function(ht){var Et=ht;Et.Reporter=requireReporter().Reporter,Et.DecoderBuffer=requireBuffer().DecoderBuffer,Et.EncoderBuffer=requireBuffer().EncoderBuffer,Et.Node=requireNode()}(base$4)),base$4}var constants$1={},der={},hasRequiredDer$2;function requireDer$2(){return hasRequiredDer$2||(hasRequiredDer$2=1,function(ht){var Et=requireConstants$1();ht.tagClass={0:"universal",1:"application",2:"context",3:"private"},ht.tagClassByName=Et._reverse(ht.tagClass),ht.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},ht.tagByName=Et._reverse(ht.tag)}(der)),der}var hasRequiredConstants$1;function requireConstants$1(){return hasRequiredConstants$1||(hasRequiredConstants$1=1,function(ht){var Et=ht;Et._reverse=function(Ct){var $t={};return Object.keys(Ct).forEach(function(At){(At|0)==At&&(At=At|0);var Bt=Ct[At];$t[Bt]=At}),$t},Et.der=requireDer$2()}(constants$1)),constants$1}var decoders={},der_1$1,hasRequiredDer$1;function requireDer$1(){if(hasRequiredDer$1)return der_1$1;hasRequiredDer$1=1;var ht=inherits_browserExports,Et=requireAsn1$1(),yt=Et.base,Ct=Et.bignum,$t=Et.constants.der;function At(kt){this.enc="der",this.name=kt.name,this.entity=kt,this.tree=new Bt,this.tree._init(kt.body)}der_1$1=At,At.prototype.decode=function(Mt,Nt){return Mt instanceof yt.DecoderBuffer||(Mt=new yt.DecoderBuffer(Mt,Nt)),this.tree._decode(Mt,Nt)};function Bt(kt){yt.Node.call(this,"der",kt)}ht(Bt,yt.Node),Bt.prototype._peekTag=function(Mt,Nt,jt){if(Mt.isEmpty())return!1;var zt=Mt.save(),Vt=Dt(Mt,'Failed to peek tag: "'+Nt+'"');return Mt.isError(Vt)?Vt:(Mt.restore(zt),Vt.tag===Nt||Vt.tagStr===Nt||Vt.tagStr+"of"===Nt||jt)},Bt.prototype._decodeTag=function(Mt,Nt,jt){var zt=Dt(Mt,'Failed to decode tag of "'+Nt+'"');if(Mt.isError(zt))return zt;var Vt=Ft(Mt,zt.primitive,'Failed to get length of "'+Nt+'"');if(Mt.isError(Vt))return Vt;if(!jt&&zt.tag!==Nt&&zt.tagStr!==Nt&&zt.tagStr+"of"!==Nt)return Mt.error('Failed to match tag: "'+Nt+'"');if(zt.primitive||Vt!==null)return Mt.skip(Vt,'Failed to match body of: "'+Nt+'"');var Kt=Mt.save(),Xt=this._skipUntilEnd(Mt,'Failed to skip indefinite length body: "'+this.tag+'"');return Mt.isError(Xt)?Xt:(Vt=Mt.offset-Kt.offset,Mt.restore(Kt),Mt.skip(Vt,'Failed to match body of: "'+Nt+'"'))},Bt.prototype._skipUntilEnd=function(Mt,Nt){for(;;){var jt=Dt(Mt,Nt);if(Mt.isError(jt))return jt;var zt=Ft(Mt,jt.primitive,Nt);if(Mt.isError(zt))return zt;var Vt;if(jt.primitive||zt!==null?Vt=Mt.skip(zt):Vt=this._skipUntilEnd(Mt,Nt),Mt.isError(Vt))return Vt;if(jt.tagStr==="end")break}},Bt.prototype._decodeList=function(Mt,Nt,jt,zt){for(var Vt=[];!Mt.isEmpty();){var Kt=this._peekTag(Mt,"end");if(Mt.isError(Kt))return Kt;var Xt=jt.decode(Mt,"der",zt);if(Mt.isError(Xt)&&Kt)break;Vt.push(Xt)}return Vt},Bt.prototype._decodeStr=function(Mt,Nt){if(Nt==="bitstr"){var jt=Mt.readUInt8();return Mt.isError(jt)?jt:{unused:jt,data:Mt.raw()}}else if(Nt==="bmpstr"){var zt=Mt.raw();if(zt.length%2===1)return Mt.error("Decoding of string type: bmpstr length mismatch");for(var Vt="",Kt=0;Kt<zt.length/2;Kt++)Vt+=String.fromCharCode(zt.readUInt16BE(Kt*2));return Vt}else if(Nt==="numstr"){var Xt=Mt.raw().toString("ascii");return this._isNumstr(Xt)?Xt:Mt.error("Decoding of string type: numstr unsupported characters")}else{if(Nt==="octstr")return Mt.raw();if(Nt==="objDesc")return Mt.raw();if(Nt==="printstr"){var Qt=Mt.raw().toString("ascii");return this._isPrintstr(Qt)?Qt:Mt.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(Nt)?Mt.raw().toString():Mt.error("Decoding of string type: "+Nt+" unsupported")}},Bt.prototype._decodeObjid=function(Mt,Nt,jt){for(var zt,Vt=[],Kt=0;!Mt.isEmpty();){var Xt=Mt.readUInt8();Kt<<=7,Kt|=Xt&127,Xt&128||(Vt.push(Kt),Kt=0)}Xt&128&&Vt.push(Kt);var Qt=Vt[0]/40|0,Zt=Vt[0]%40;if(jt?zt=Vt:zt=[Qt,Zt].concat(Vt.slice(1)),Nt){var dr=Nt[zt.join(" ")];dr===void 0&&(dr=Nt[zt.join(".")]),dr!==void 0&&(zt=dr)}return zt},Bt.prototype._decodeTime=function(Mt,Nt){var jt=Mt.raw().toString();if(Nt==="gentime")var zt=jt.slice(0,4)|0,Vt=jt.slice(4,6)|0,Kt=jt.slice(6,8)|0,Xt=jt.slice(8,10)|0,Qt=jt.slice(10,12)|0,Zt=jt.slice(12,14)|0;else if(Nt==="utctime"){var zt=jt.slice(0,2)|0,Vt=jt.slice(2,4)|0,Kt=jt.slice(4,6)|0,Xt=jt.slice(6,8)|0,Qt=jt.slice(8,10)|0,Zt=jt.slice(10,12)|0;zt<70?zt=2e3+zt:zt=1900+zt}else return Mt.error("Decoding "+Nt+" time is not supported yet");return Date.UTC(zt,Vt-1,Kt,Xt,Qt,Zt,0)},Bt.prototype._decodeNull=function(Mt){return null},Bt.prototype._decodeBool=function(Mt){var Nt=Mt.readUInt8();return Mt.isError(Nt)?Nt:Nt!==0},Bt.prototype._decodeInt=function(Mt,Nt){var jt=Mt.raw(),zt=new Ct(jt);return Nt&&(zt=Nt[zt.toString(10)]||zt),zt},Bt.prototype._use=function(Mt,Nt){return typeof Mt=="function"&&(Mt=Mt(Nt)),Mt._getDecoder("der").tree};function Dt(kt,Mt){var Nt=kt.readUInt8(Mt);if(kt.isError(Nt))return Nt;var jt=$t.tagClass[Nt>>6],zt=(Nt&32)===0;if((Nt&31)===31){var Vt=Nt;for(Nt=0;(Vt&128)===128;){if(Vt=kt.readUInt8(Mt),kt.isError(Vt))return Vt;Nt<<=7,Nt|=Vt&127}}else Nt&=31;var Kt=$t.tag[Nt];return{cls:jt,primitive:zt,tag:Nt,tagStr:Kt}}function Ft(kt,Mt,Nt){var jt=kt.readUInt8(Nt);if(kt.isError(jt))return jt;if(!Mt&&jt===128)return null;if(!(jt&128))return jt;var zt=jt&127;if(zt>4)return kt.error("length octect is too long");jt=0;for(var Vt=0;Vt<zt;Vt++){jt<<=8;var Kt=kt.readUInt8(Nt);if(kt.isError(Kt))return Kt;jt|=Kt}return jt}return der_1$1}var pem$1,hasRequiredPem$1;function requirePem$1(){if(hasRequiredPem$1)return pem$1;hasRequiredPem$1=1;var ht=inherits_browserExports,Et=require$$0$3.Buffer,yt=requireDer$1();function Ct($t){yt.call(this,$t),this.enc="pem"}return ht(Ct,yt),pem$1=Ct,Ct.prototype.decode=function(At,Bt){for(var Dt=At.toString().split(/[\r\n]+/g),Ft=Bt.label.toUpperCase(),kt=/^-----(BEGIN|END) ([^-]+)-----$/,Mt=-1,Nt=-1,jt=0;jt<Dt.length;jt++){var zt=Dt[jt].match(kt);if(zt!==null&&zt[2]===Ft)if(Mt===-1){if(zt[1]!=="BEGIN")break;Mt=jt}else{if(zt[1]!=="END")break;Nt=jt;break}}if(Mt===-1||Nt===-1)throw new Error("PEM section not found for: "+Ft);var Vt=Dt.slice(Mt+1,Nt).join("");Vt.replace(/[^a-z0-9\+\/=]+/gi,"");var Kt=new Et(Vt,"base64");return yt.prototype.decode.call(this,Kt,Bt)},pem$1}var hasRequiredDecoders;function requireDecoders(){return hasRequiredDecoders||(hasRequiredDecoders=1,function(ht){var Et=ht;Et.der=requireDer$1(),Et.pem=requirePem$1()}(decoders)),decoders}var encoders={},der_1,hasRequiredDer;function requireDer(){if(hasRequiredDer)return der_1;hasRequiredDer=1;var ht=inherits_browserExports,Et=require$$0$3.Buffer,yt=requireAsn1$1(),Ct=yt.base,$t=yt.constants.der;function At(kt){this.enc="der",this.name=kt.name,this.entity=kt,this.tree=new Bt,this.tree._init(kt.body)}der_1=At,At.prototype.encode=function(Mt,Nt){return this.tree._encode(Mt,Nt).join()};function Bt(kt){Ct.Node.call(this,"der",kt)}ht(Bt,Ct.Node),Bt.prototype._encodeComposite=function(Mt,Nt,jt,zt){var Vt=Ft(Mt,Nt,jt,this.reporter);if(zt.length<128){var Qt=new Et(2);return Qt[0]=Vt,Qt[1]=zt.length,this._createEncoderBuffer([Qt,zt])}for(var Kt=1,Xt=zt.length;Xt>=256;Xt>>=8)Kt++;var Qt=new Et(2+Kt);Qt[0]=Vt,Qt[1]=128|Kt;for(var Xt=1+Kt,Zt=zt.length;Zt>0;Xt--,Zt>>=8)Qt[Xt]=Zt&255;return this._createEncoderBuffer([Qt,zt])},Bt.prototype._encodeStr=function(Mt,Nt){if(Nt==="bitstr")return this._createEncoderBuffer([Mt.unused|0,Mt.data]);if(Nt==="bmpstr"){for(var jt=new Et(Mt.length*2),zt=0;zt<Mt.length;zt++)jt.writeUInt16BE(Mt.charCodeAt(zt),zt*2);return this._createEncoderBuffer(jt)}else return Nt==="numstr"?this._isNumstr(Mt)?this._createEncoderBuffer(Mt):this.reporter.error("Encoding of string type: numstr supports only digits and space"):Nt==="printstr"?this._isPrintstr(Mt)?this._createEncoderBuffer(Mt):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(Nt)?this._createEncoderBuffer(Mt):Nt==="objDesc"?this._createEncoderBuffer(Mt):this.reporter.error("Encoding of string type: "+Nt+" unsupported")},Bt.prototype._encodeObjid=function(Mt,Nt,jt){if(typeof Mt=="string"){if(!Nt)return this.reporter.error("string objid given, but no values map found");if(!Nt.hasOwnProperty(Mt))return this.reporter.error("objid not found in values map");Mt=Nt[Mt].split(/[\s\.]+/g);for(var zt=0;zt<Mt.length;zt++)Mt[zt]|=0}else if(Array.isArray(Mt)){Mt=Mt.slice();for(var zt=0;zt<Mt.length;zt++)Mt[zt]|=0}if(!Array.isArray(Mt))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(Mt));if(!jt){if(Mt[1]>=40)return this.reporter.error("Second objid identifier OOB");Mt.splice(0,2,Mt[0]*40+Mt[1])}for(var Vt=0,zt=0;zt<Mt.length;zt++){var Kt=Mt[zt];for(Vt++;Kt>=128;Kt>>=7)Vt++}for(var Xt=new Et(Vt),Qt=Xt.length-1,zt=Mt.length-1;zt>=0;zt--){var Kt=Mt[zt];for(Xt[Qt--]=Kt&127;(Kt>>=7)>0;)Xt[Qt--]=128|Kt&127}return this._createEncoderBuffer(Xt)};function Dt(kt){return kt<10?"0"+kt:kt}Bt.prototype._encodeTime=function(Mt,Nt){var jt,zt=new Date(Mt);return Nt==="gentime"?jt=[Dt(zt.getFullYear()),Dt(zt.getUTCMonth()+1),Dt(zt.getUTCDate()),Dt(zt.getUTCHours()),Dt(zt.getUTCMinutes()),Dt(zt.getUTCSeconds()),"Z"].join(""):Nt==="utctime"?jt=[Dt(zt.getFullYear()%100),Dt(zt.getUTCMonth()+1),Dt(zt.getUTCDate()),Dt(zt.getUTCHours()),Dt(zt.getUTCMinutes()),Dt(zt.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+Nt+" time is not supported yet"),this._encodeStr(jt,"octstr")},Bt.prototype._encodeNull=function(){return this._createEncoderBuffer("")},Bt.prototype._encodeInt=function(Mt,Nt){if(typeof Mt=="string"){if(!Nt)return this.reporter.error("String int or enum given, but no values map");if(!Nt.hasOwnProperty(Mt))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(Mt));Mt=Nt[Mt]}if(typeof Mt!="number"&&!Et.isBuffer(Mt)){var jt=Mt.toArray();!Mt.sign&&jt[0]&128&&jt.unshift(0),Mt=new Et(jt)}if(Et.isBuffer(Mt)){var zt=Mt.length;Mt.length===0&&zt++;var Kt=new Et(zt);return Mt.copy(Kt),Mt.length===0&&(Kt[0]=0),this._createEncoderBuffer(Kt)}if(Mt<128)return this._createEncoderBuffer(Mt);if(Mt<256)return this._createEncoderBuffer([0,Mt]);for(var zt=1,Vt=Mt;Vt>=256;Vt>>=8)zt++;for(var Kt=new Array(zt),Vt=Kt.length-1;Vt>=0;Vt--)Kt[Vt]=Mt&255,Mt>>=8;return Kt[0]&128&&Kt.unshift(0),this._createEncoderBuffer(new Et(Kt))},Bt.prototype._encodeBool=function(Mt){return this._createEncoderBuffer(Mt?255:0)},Bt.prototype._use=function(Mt,Nt){return typeof Mt=="function"&&(Mt=Mt(Nt)),Mt._getEncoder("der").tree},Bt.prototype._skipDefault=function(Mt,Nt,jt){var zt=this._baseState,Vt;if(zt.default===null)return!1;var Kt=Mt.join();if(zt.defaultBuffer===void 0&&(zt.defaultBuffer=this._encodeValue(zt.default,Nt,jt).join()),Kt.length!==zt.defaultBuffer.length)return!1;for(Vt=0;Vt<Kt.length;Vt++)if(Kt[Vt]!==zt.defaultBuffer[Vt])return!1;return!0};function Ft(kt,Mt,Nt,jt){var zt;if(kt==="seqof"?kt="seq":kt==="setof"&&(kt="set"),$t.tagByName.hasOwnProperty(kt))zt=$t.tagByName[kt];else if(typeof kt=="number"&&(kt|0)===kt)zt=kt;else return jt.error("Unknown tag: "+kt);return zt>=31?jt.error("Multi-octet tag encoding unsupported"):(Mt||(zt|=32),zt|=$t.tagClassByName[Nt||"universal"]<<6,zt)}return der_1}var pem,hasRequiredPem;function requirePem(){if(hasRequiredPem)return pem;hasRequiredPem=1;var ht=inherits_browserExports,Et=requireDer();function yt(Ct){Et.call(this,Ct),this.enc="pem"}return ht(yt,Et),pem=yt,yt.prototype.encode=function($t,At){for(var Bt=Et.prototype.encode.call(this,$t),Dt=Bt.toString("base64"),Ft=["-----BEGIN "+At.label+"-----"],kt=0;kt<Dt.length;kt+=64)Ft.push(Dt.slice(kt,kt+64));return Ft.push("-----END "+At.label+"-----"),Ft.join(`
`)},pem}var hasRequiredEncoders;function requireEncoders(){return hasRequiredEncoders||(hasRequiredEncoders=1,function(ht){var Et=ht;Et.der=requireDer(),Et.pem=requirePem()}(encoders)),encoders}var hasRequiredAsn1$1;function requireAsn1$1(){return hasRequiredAsn1$1||(hasRequiredAsn1$1=1,function(ht){var Et=ht;Et.bignum=requireBn$2(),Et.define=requireApi().define,Et.base=requireBase(),Et.constants=requireConstants$1(),Et.decoders=requireDecoders(),Et.encoders=requireEncoders()}(asn1)),asn1}var certificate,hasRequiredCertificate;function requireCertificate(){if(hasRequiredCertificate)return certificate;hasRequiredCertificate=1;var ht=requireAsn1$1(),Et=ht.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),yt=ht.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),Ct=ht.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),$t=ht.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(Ct),this.key("subjectPublicKey").bitstr())}),At=ht.define("RelativeDistinguishedName",function(){this.setof(yt)}),Bt=ht.define("RDNSequence",function(){this.seqof(At)}),Dt=ht.define("Name",function(){this.choice({rdnSequence:this.use(Bt)})}),Ft=ht.define("Validity",function(){this.seq().obj(this.key("notBefore").use(Et),this.key("notAfter").use(Et))}),kt=ht.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),Mt=ht.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(Ct),this.key("issuer").use(Dt),this.key("validity").use(Ft),this.key("subject").use(Dt),this.key("subjectPublicKeyInfo").use($t),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(kt).optional())}),Nt=ht.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(Mt),this.key("signatureAlgorithm").use(Ct),this.key("signatureValue").bitstr())});return certificate=Nt,certificate}var hasRequiredAsn1;function requireAsn1(){if(hasRequiredAsn1)return asn1$1;hasRequiredAsn1=1;var ht=requireAsn1$1();asn1$1.certificate=requireCertificate();var Et=ht.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});asn1$1.RSAPrivateKey=Et;var yt=ht.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});asn1$1.RSAPublicKey=yt;var Ct=ht.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),$t=ht.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(Ct),this.key("subjectPublicKey").bitstr())});asn1$1.PublicKey=$t;var At=ht.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(Ct),this.key("subjectPrivateKey").octstr())});asn1$1.PrivateKey=At;var Bt=ht.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});asn1$1.EncryptedPrivateKey=Bt;var Dt=ht.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});asn1$1.DSAPrivateKey=Dt,asn1$1.DSAparam=ht.define("DSAparam",function(){this.int()});var Ft=ht.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),kt=ht.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(Ft),this.key("publicKey").optional().explicit(1).bitstr())});return asn1$1.ECPrivateKey=kt,asn1$1.signature=ht.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())}),asn1$1}const require$$1={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"};var fixProc,hasRequiredFixProc;function requireFixProc(){if(hasRequiredFixProc)return fixProc;hasRequiredFixProc=1;var ht=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,Et=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,yt=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,Ct=requireEvp_bytestokey(),$t=requireBrowser$6(),At=safeBufferExports.Buffer;return fixProc=function(Bt,Dt){var Ft=Bt.toString(),kt=Ft.match(ht),Mt;if(kt){var jt="aes"+kt[1],zt=At.from(kt[2],"hex"),Vt=At.from(kt[3].replace(/[\r\n]/g,""),"base64"),Kt=Ct(Dt,zt.slice(0,8),parseInt(kt[1],10)).key,Xt=[],Qt=$t.createDecipheriv(jt,Kt,zt);Xt.push(Qt.update(Vt)),Xt.push(Qt.final()),Mt=At.concat(Xt)}else{var Nt=Ft.match(yt);Mt=At.from(Nt[2].replace(/[\r\n]/g,""),"base64")}var Zt=Ft.match(Et)[1];return{tag:Zt,data:Mt}},fixProc}var parseAsn1,hasRequiredParseAsn1;function requireParseAsn1(){if(hasRequiredParseAsn1)return parseAsn1;hasRequiredParseAsn1=1;var ht=requireAsn1(),Et=require$$1,yt=requireFixProc(),Ct=requireBrowser$6(),$t=requireBrowser$7(),At=safeBufferExports.Buffer;function Bt(Ft,kt){var Mt=Ft.algorithm.decrypt.kde.kdeparams.salt,Nt=parseInt(Ft.algorithm.decrypt.kde.kdeparams.iters.toString(),10),jt=Et[Ft.algorithm.decrypt.cipher.algo.join(".")],zt=Ft.algorithm.decrypt.cipher.iv,Vt=Ft.subjectPrivateKey,Kt=parseInt(jt.split("-")[1],10)/8,Xt=$t.pbkdf2Sync(kt,Mt,Nt,Kt,"sha1"),Qt=Ct.createDecipheriv(jt,Xt,zt),Zt=[];return Zt.push(Qt.update(Vt)),Zt.push(Qt.final()),At.concat(Zt)}function Dt(Ft){var kt;typeof Ft=="object"&&!At.isBuffer(Ft)&&(kt=Ft.passphrase,Ft=Ft.key),typeof Ft=="string"&&(Ft=At.from(Ft));var Mt=yt(Ft,kt),Nt=Mt.tag,jt=Mt.data,zt,Vt;switch(Nt){case"CERTIFICATE":Vt=ht.certificate.decode(jt,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(Vt||(Vt=ht.PublicKey.decode(jt,"der")),zt=Vt.algorithm.algorithm.join("."),zt){case"1.2.840.113549.1.1.1":return ht.RSAPublicKey.decode(Vt.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return Vt.subjectPrivateKey=Vt.subjectPublicKey,{type:"ec",data:Vt};case"1.2.840.10040.4.1":return Vt.algorithm.params.pub_key=ht.DSAparam.decode(Vt.subjectPublicKey.data,"der"),{type:"dsa",data:Vt.algorithm.params};default:throw new Error("unknown key id "+zt)}case"ENCRYPTED PRIVATE KEY":jt=ht.EncryptedPrivateKey.decode(jt,"der"),jt=Bt(jt,kt);case"PRIVATE KEY":switch(Vt=ht.PrivateKey.decode(jt,"der"),zt=Vt.algorithm.algorithm.join("."),zt){case"1.2.840.113549.1.1.1":return ht.RSAPrivateKey.decode(Vt.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:Vt.algorithm.curve,privateKey:ht.ECPrivateKey.decode(Vt.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return Vt.algorithm.params.priv_key=ht.DSAparam.decode(Vt.subjectPrivateKey,"der"),{type:"dsa",params:Vt.algorithm.params};default:throw new Error("unknown key id "+zt)}case"RSA PUBLIC KEY":return ht.RSAPublicKey.decode(jt,"der");case"RSA PRIVATE KEY":return ht.RSAPrivateKey.decode(jt,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:ht.DSAPrivateKey.decode(jt,"der")};case"EC PRIVATE KEY":return jt=ht.ECPrivateKey.decode(jt,"der"),{curve:jt.parameters.value,privateKey:jt.privateKey};default:throw new Error("unknown key type "+Nt)}}return Dt.signature=ht.signature,parseAsn1=Dt,parseAsn1}const require$$4={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"};var hasRequiredSign;function requireSign(){if(hasRequiredSign)return sign.exports;hasRequiredSign=1;var ht=safeBufferExports.Buffer,Et=requireBrowser$8(),yt=requireBrowserifyRsa(),Ct=requireElliptic().ec,$t=bnExports$1,At=requireParseAsn1(),Bt=require$$4,Dt=1;function Ft(Qt,Zt,dr,cr,Er){var pr=At(Zt);if(pr.curve){if(cr!=="ecdsa"&&cr!=="ecdsa/rsa")throw new Error("wrong private key type");return kt(Qt,pr)}else if(pr.type==="dsa"){if(cr!=="dsa")throw new Error("wrong private key type");return Mt(Qt,pr,dr)}if(cr!=="rsa"&&cr!=="ecdsa/rsa")throw new Error("wrong private key type");if(Zt.padding!==void 0&&Zt.padding!==Dt)throw new Error("illegal or unsupported padding mode");Qt=ht.concat([Er,Qt]);for(var gr=pr.modulus.byteLength(),vr=[0,1];Qt.length+vr.length+1<gr;)vr.push(255);vr.push(0);for(var yr=-1;++yr<Qt.length;)vr.push(Qt[yr]);var xr=yt(vr,pr);return xr}function kt(Qt,Zt){var dr=Bt[Zt.curve.join(".")];if(!dr)throw new Error("unknown curve "+Zt.curve.join("."));var cr=new Ct(dr),Er=cr.keyFromPrivate(Zt.privateKey),pr=Er.sign(Qt);return ht.from(pr.toDER())}function Mt(Qt,Zt,dr){for(var cr=Zt.params.priv_key,Er=Zt.params.p,pr=Zt.params.q,gr=Zt.params.g,vr=new $t(0),yr,xr=zt(Qt,pr).mod(pr),rr=!1,Lt=jt(cr,pr,Qt,dr);rr===!1;)yr=Kt(pr,Lt,dr),vr=Xt(gr,yr,Er,pr),rr=yr.invm(pr).imul(xr.add(cr.mul(vr))).mod(pr),rr.cmpn(0)===0&&(rr=!1,vr=new $t(0));return Nt(vr,rr)}function Nt(Qt,Zt){Qt=Qt.toArray(),Zt=Zt.toArray(),Qt[0]&128&&(Qt=[0].concat(Qt)),Zt[0]&128&&(Zt=[0].concat(Zt));var dr=Qt.length+Zt.length+4,cr=[48,dr,2,Qt.length];return cr=cr.concat(Qt,[2,Zt.length],Zt),ht.from(cr)}function jt(Qt,Zt,dr,cr){if(Qt=ht.from(Qt.toArray()),Qt.length<Zt.byteLength()){var Er=ht.alloc(Zt.byteLength()-Qt.length);Qt=ht.concat([Er,Qt])}var pr=dr.length,gr=Vt(dr,Zt),vr=ht.alloc(pr);vr.fill(1);var yr=ht.alloc(pr);return yr=Et(cr,yr).update(vr).update(ht.from([0])).update(Qt).update(gr).digest(),vr=Et(cr,yr).update(vr).digest(),yr=Et(cr,yr).update(vr).update(ht.from([1])).update(Qt).update(gr).digest(),vr=Et(cr,yr).update(vr).digest(),{k:yr,v:vr}}function zt(Qt,Zt){var dr=new $t(Qt),cr=(Qt.length<<3)-Zt.bitLength();return cr>0&&dr.ishrn(cr),dr}function Vt(Qt,Zt){Qt=zt(Qt,Zt),Qt=Qt.mod(Zt);var dr=ht.from(Qt.toArray());if(dr.length<Zt.byteLength()){var cr=ht.alloc(Zt.byteLength()-dr.length);dr=ht.concat([cr,dr])}return dr}function Kt(Qt,Zt,dr){var cr,Er;do{for(cr=ht.alloc(0);cr.length*8<Qt.bitLength();)Zt.v=Et(dr,Zt.k).update(Zt.v).digest(),cr=ht.concat([cr,Zt.v]);Er=zt(cr,Qt),Zt.k=Et(dr,Zt.k).update(Zt.v).update(ht.from([0])).digest(),Zt.v=Et(dr,Zt.k).update(Zt.v).digest()}while(Er.cmp(Qt)!==-1);return Er}function Xt(Qt,Zt,dr,cr){return Qt.toRed($t.mont(dr)).redPow(Zt).fromRed().mod(cr)}return sign.exports=Ft,sign.exports.getKey=jt,sign.exports.makeKey=Kt,sign.exports}var verify_1,hasRequiredVerify;function requireVerify(){if(hasRequiredVerify)return verify_1;hasRequiredVerify=1;var ht=safeBufferExports.Buffer,Et=bnExports$1,yt=requireElliptic().ec,Ct=requireParseAsn1(),$t=require$$4;function At(kt,Mt,Nt,jt,zt){var Vt=Ct(Nt);if(Vt.type==="ec"){if(jt!=="ecdsa"&&jt!=="ecdsa/rsa")throw new Error("wrong public key type");return Bt(kt,Mt,Vt)}else if(Vt.type==="dsa"){if(jt!=="dsa")throw new Error("wrong public key type");return Dt(kt,Mt,Vt)}if(jt!=="rsa"&&jt!=="ecdsa/rsa")throw new Error("wrong public key type");Mt=ht.concat([zt,Mt]);for(var Kt=Vt.modulus.byteLength(),Xt=[1],Qt=0;Mt.length+Xt.length+2<Kt;)Xt.push(255),Qt+=1;Xt.push(0);for(var Zt=-1;++Zt<Mt.length;)Xt.push(Mt[Zt]);Xt=ht.from(Xt);var dr=Et.mont(Vt.modulus);kt=new Et(kt).toRed(dr),kt=kt.redPow(new Et(Vt.publicExponent)),kt=ht.from(kt.fromRed().toArray());var cr=Qt<8?1:0;for(Kt=Math.min(kt.length,Xt.length),kt.length!==Xt.length&&(cr=1),Zt=-1;++Zt<Kt;)cr|=kt[Zt]^Xt[Zt];return cr===0}function Bt(kt,Mt,Nt){var jt=$t[Nt.data.algorithm.curve.join(".")];if(!jt)throw new Error("unknown curve "+Nt.data.algorithm.curve.join("."));var zt=new yt(jt),Vt=Nt.data.subjectPrivateKey.data;return zt.verify(Mt,kt,Vt)}function Dt(kt,Mt,Nt){var jt=Nt.data.p,zt=Nt.data.q,Vt=Nt.data.g,Kt=Nt.data.pub_key,Xt=Ct.signature.decode(kt,"der"),Qt=Xt.s,Zt=Xt.r;Ft(Qt,zt),Ft(Zt,zt);var dr=Et.mont(jt),cr=Qt.invm(zt),Er=Vt.toRed(dr).redPow(new Et(Mt).mul(cr).mod(zt)).fromRed().mul(Kt.toRed(dr).redPow(Zt.mul(cr).mod(zt)).fromRed()).mod(jt).mod(zt);return Er.cmp(Zt)===0}function Ft(kt,Mt){if(kt.cmpn(0)<=0)throw new Error("invalid sig");if(kt.cmp(Mt)>=0)throw new Error("invalid sig")}return verify_1=At,verify_1}var browser$4,hasRequiredBrowser$3;function requireBrowser$3(){if(hasRequiredBrowser$3)return browser$4;hasRequiredBrowser$3=1;var ht=safeBufferExports.Buffer,Et=browser$a,yt=requireReadableBrowser(),Ct=inherits_browserExports,$t=requireSign(),At=requireVerify(),Bt=require$$6;Object.keys(Bt).forEach(function(Nt){Bt[Nt].id=ht.from(Bt[Nt].id,"hex"),Bt[Nt.toLowerCase()]=Bt[Nt]});function Dt(Nt){yt.Writable.call(this);var jt=Bt[Nt];if(!jt)throw new Error("Unknown message digest");this._hashType=jt.hash,this._hash=Et(jt.hash),this._tag=jt.id,this._signType=jt.sign}Ct(Dt,yt.Writable),Dt.prototype._write=function(jt,zt,Vt){this._hash.update(jt),Vt()},Dt.prototype.update=function(jt,zt){return this._hash.update(typeof jt=="string"?ht.from(jt,zt):jt),this},Dt.prototype.sign=function(jt,zt){this.end();var Vt=this._hash.digest(),Kt=$t(Vt,jt,this._hashType,this._signType,this._tag);return zt?Kt.toString(zt):Kt};function Ft(Nt){yt.Writable.call(this);var jt=Bt[Nt];if(!jt)throw new Error("Unknown message digest");this._hash=Et(jt.hash),this._tag=jt.id,this._signType=jt.sign}Ct(Ft,yt.Writable),Ft.prototype._write=function(jt,zt,Vt){this._hash.update(jt),Vt()},Ft.prototype.update=function(jt,zt){return this._hash.update(typeof jt=="string"?ht.from(jt,zt):jt),this},Ft.prototype.verify=function(jt,zt,Vt){var Kt=typeof zt=="string"?ht.from(zt,Vt):zt;this.end();var Xt=this._hash.digest();return At(Kt,Xt,jt,this._signType,this._tag)};function kt(Nt){return new Dt(Nt)}function Mt(Nt){return new Ft(Nt)}return browser$4={Sign:kt,Verify:Mt,createSign:kt,createVerify:Mt},browser$4}var bn$2={exports:{}};bn$2.exports;var hasRequiredBn$1;function requireBn$1(){return hasRequiredBn$1||(hasRequiredBn$1=1,function(ht){(function(Et,yt){function Ct(rr,Lt){if(!rr)throw new Error(Lt||"Assertion failed")}function $t(rr,Lt){rr.super_=Lt;var Ht=function(){};Ht.prototype=Lt.prototype,rr.prototype=new Ht,rr.prototype.constructor=rr}function At(rr,Lt,Ht){if(At.isBN(rr))return rr;this.negative=0,this.words=null,this.length=0,this.red=null,rr!==null&&((Lt==="le"||Lt==="be")&&(Ht=Lt,Lt=10),this._init(rr||0,Lt||10,Ht||"be"))}typeof Et=="object"?Et.exports=At:yt.BN=At,At.BN=At,At.wordSize=26;var Bt;try{typeof window<"u"&&typeof window.Buffer<"u"?Bt=window.Buffer:Bt=require$$0$3.Buffer}catch{}At.isBN=function(Lt){return Lt instanceof At?!0:Lt!==null&&typeof Lt=="object"&&Lt.constructor.wordSize===At.wordSize&&Array.isArray(Lt.words)},At.max=function(Lt,Ht){return Lt.cmp(Ht)>0?Lt:Ht},At.min=function(Lt,Ht){return Lt.cmp(Ht)<0?Lt:Ht},At.prototype._init=function(Lt,Ht,Wt){if(typeof Lt=="number")return this._initNumber(Lt,Ht,Wt);if(typeof Lt=="object")return this._initArray(Lt,Ht,Wt);Ht==="hex"&&(Ht=16),Ct(Ht===(Ht|0)&&Ht>=2&&Ht<=36),Lt=Lt.toString().replace(/\s+/g,"");var Gt=0;Lt[0]==="-"&&(Gt++,this.negative=1),Gt<Lt.length&&(Ht===16?this._parseHex(Lt,Gt,Wt):(this._parseBase(Lt,Ht,Gt),Wt==="le"&&this._initArray(this.toArray(),Ht,Wt)))},At.prototype._initNumber=function(Lt,Ht,Wt){Lt<0&&(this.negative=1,Lt=-Lt),Lt<67108864?(this.words=[Lt&67108863],this.length=1):Lt<4503599627370496?(this.words=[Lt&67108863,Lt/67108864&67108863],this.length=2):(Ct(Lt<9007199254740992),this.words=[Lt&67108863,Lt/67108864&67108863,1],this.length=3),Wt==="le"&&this._initArray(this.toArray(),Ht,Wt)},At.prototype._initArray=function(Lt,Ht,Wt){if(Ct(typeof Lt.length=="number"),Lt.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(Lt.length/3),this.words=new Array(this.length);for(var Gt=0;Gt<this.length;Gt++)this.words[Gt]=0;var Yt,er,lr=0;if(Wt==="be")for(Gt=Lt.length-1,Yt=0;Gt>=0;Gt-=3)er=Lt[Gt]|Lt[Gt-1]<<8|Lt[Gt-2]<<16,this.words[Yt]|=er<<lr&67108863,this.words[Yt+1]=er>>>26-lr&67108863,lr+=24,lr>=26&&(lr-=26,Yt++);else if(Wt==="le")for(Gt=0,Yt=0;Gt<Lt.length;Gt+=3)er=Lt[Gt]|Lt[Gt+1]<<8|Lt[Gt+2]<<16,this.words[Yt]|=er<<lr&67108863,this.words[Yt+1]=er>>>26-lr&67108863,lr+=24,lr>=26&&(lr-=26,Yt++);return this.strip()};function Dt(rr,Lt){var Ht=rr.charCodeAt(Lt);return Ht>=65&&Ht<=70?Ht-55:Ht>=97&&Ht<=102?Ht-87:Ht-48&15}function Ft(rr,Lt,Ht){var Wt=Dt(rr,Ht);return Ht-1>=Lt&&(Wt|=Dt(rr,Ht-1)<<4),Wt}At.prototype._parseHex=function(Lt,Ht,Wt){this.length=Math.ceil((Lt.length-Ht)/6),this.words=new Array(this.length);for(var Gt=0;Gt<this.length;Gt++)this.words[Gt]=0;var Yt=0,er=0,lr;if(Wt==="be")for(Gt=Lt.length-1;Gt>=Ht;Gt-=2)lr=Ft(Lt,Ht,Gt)<<Yt,this.words[er]|=lr&67108863,Yt>=18?(Yt-=18,er+=1,this.words[er]|=lr>>>26):Yt+=8;else{var Jt=Lt.length-Ht;for(Gt=Jt%2===0?Ht+1:Ht;Gt<Lt.length;Gt+=2)lr=Ft(Lt,Ht,Gt)<<Yt,this.words[er]|=lr&67108863,Yt>=18?(Yt-=18,er+=1,this.words[er]|=lr>>>26):Yt+=8}this.strip()};function kt(rr,Lt,Ht,Wt){for(var Gt=0,Yt=Math.min(rr.length,Ht),er=Lt;er<Yt;er++){var lr=rr.charCodeAt(er)-48;Gt*=Wt,lr>=49?Gt+=lr-49+10:lr>=17?Gt+=lr-17+10:Gt+=lr}return Gt}At.prototype._parseBase=function(Lt,Ht,Wt){this.words=[0],this.length=1;for(var Gt=0,Yt=1;Yt<=67108863;Yt*=Ht)Gt++;Gt--,Yt=Yt/Ht|0;for(var er=Lt.length-Wt,lr=er%Gt,Jt=Math.min(er,er-lr)+Wt,Ut=0,ir=Wt;ir<Jt;ir+=Gt)Ut=kt(Lt,ir,ir+Gt,Ht),this.imuln(Yt),this.words[0]+Ut<67108864?this.words[0]+=Ut:this._iaddn(Ut);if(lr!==0){var Cr=1;for(Ut=kt(Lt,ir,Lt.length,Ht),ir=0;ir<lr;ir++)Cr*=Ht;this.imuln(Cr),this.words[0]+Ut<67108864?this.words[0]+=Ut:this._iaddn(Ut)}this.strip()},At.prototype.copy=function(Lt){Lt.words=new Array(this.length);for(var Ht=0;Ht<this.length;Ht++)Lt.words[Ht]=this.words[Ht];Lt.length=this.length,Lt.negative=this.negative,Lt.red=this.red},At.prototype.clone=function(){var Lt=new At(null);return this.copy(Lt),Lt},At.prototype._expand=function(Lt){for(;this.length<Lt;)this.words[this.length++]=0;return this},At.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},At.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},At.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var Mt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],Nt=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],jt=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];At.prototype.toString=function(Lt,Ht){Lt=Lt||10,Ht=Ht|0||1;var Wt;if(Lt===16||Lt==="hex"){Wt="";for(var Gt=0,Yt=0,er=0;er<this.length;er++){var lr=this.words[er],Jt=((lr<<Gt|Yt)&16777215).toString(16);Yt=lr>>>24-Gt&16777215,Yt!==0||er!==this.length-1?Wt=Mt[6-Jt.length]+Jt+Wt:Wt=Jt+Wt,Gt+=2,Gt>=26&&(Gt-=26,er--)}for(Yt!==0&&(Wt=Yt.toString(16)+Wt);Wt.length%Ht!==0;)Wt="0"+Wt;return this.negative!==0&&(Wt="-"+Wt),Wt}if(Lt===(Lt|0)&&Lt>=2&&Lt<=36){var Ut=Nt[Lt],ir=jt[Lt];Wt="";var Cr=this.clone();for(Cr.negative=0;!Cr.isZero();){var _r=Cr.modn(ir).toString(Lt);Cr=Cr.idivn(ir),Cr.isZero()?Wt=_r+Wt:Wt=Mt[Ut-_r.length]+_r+Wt}for(this.isZero()&&(Wt="0"+Wt);Wt.length%Ht!==0;)Wt="0"+Wt;return this.negative!==0&&(Wt="-"+Wt),Wt}Ct(!1,"Base should be between 2 and 36")},At.prototype.toNumber=function(){var Lt=this.words[0];return this.length===2?Lt+=this.words[1]*67108864:this.length===3&&this.words[2]===1?Lt+=4503599627370496+this.words[1]*67108864:this.length>2&&Ct(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-Lt:Lt},At.prototype.toJSON=function(){return this.toString(16)},At.prototype.toBuffer=function(Lt,Ht){return Ct(typeof Bt<"u"),this.toArrayLike(Bt,Lt,Ht)},At.prototype.toArray=function(Lt,Ht){return this.toArrayLike(Array,Lt,Ht)},At.prototype.toArrayLike=function(Lt,Ht,Wt){var Gt=this.byteLength(),Yt=Wt||Math.max(1,Gt);Ct(Gt<=Yt,"byte array longer than desired length"),Ct(Yt>0,"Requested array length <= 0"),this.strip();var er=Ht==="le",lr=new Lt(Yt),Jt,Ut,ir=this.clone();if(er){for(Ut=0;!ir.isZero();Ut++)Jt=ir.andln(255),ir.iushrn(8),lr[Ut]=Jt;for(;Ut<Yt;Ut++)lr[Ut]=0}else{for(Ut=0;Ut<Yt-Gt;Ut++)lr[Ut]=0;for(Ut=0;!ir.isZero();Ut++)Jt=ir.andln(255),ir.iushrn(8),lr[Yt-Ut-1]=Jt}return lr},Math.clz32?At.prototype._countBits=function(Lt){return 32-Math.clz32(Lt)}:At.prototype._countBits=function(Lt){var Ht=Lt,Wt=0;return Ht>=4096&&(Wt+=13,Ht>>>=13),Ht>=64&&(Wt+=7,Ht>>>=7),Ht>=8&&(Wt+=4,Ht>>>=4),Ht>=2&&(Wt+=2,Ht>>>=2),Wt+Ht},At.prototype._zeroBits=function(Lt){if(Lt===0)return 26;var Ht=Lt,Wt=0;return Ht&8191||(Wt+=13,Ht>>>=13),Ht&127||(Wt+=7,Ht>>>=7),Ht&15||(Wt+=4,Ht>>>=4),Ht&3||(Wt+=2,Ht>>>=2),Ht&1||Wt++,Wt},At.prototype.bitLength=function(){var Lt=this.words[this.length-1],Ht=this._countBits(Lt);return(this.length-1)*26+Ht};function zt(rr){for(var Lt=new Array(rr.bitLength()),Ht=0;Ht<Lt.length;Ht++){var Wt=Ht/26|0,Gt=Ht%26;Lt[Ht]=(rr.words[Wt]&1<<Gt)>>>Gt}return Lt}At.prototype.zeroBits=function(){if(this.isZero())return 0;for(var Lt=0,Ht=0;Ht<this.length;Ht++){var Wt=this._zeroBits(this.words[Ht]);if(Lt+=Wt,Wt!==26)break}return Lt},At.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},At.prototype.toTwos=function(Lt){return this.negative!==0?this.abs().inotn(Lt).iaddn(1):this.clone()},At.prototype.fromTwos=function(Lt){return this.testn(Lt-1)?this.notn(Lt).iaddn(1).ineg():this.clone()},At.prototype.isNeg=function(){return this.negative!==0},At.prototype.neg=function(){return this.clone().ineg()},At.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},At.prototype.iuor=function(Lt){for(;this.length<Lt.length;)this.words[this.length++]=0;for(var Ht=0;Ht<Lt.length;Ht++)this.words[Ht]=this.words[Ht]|Lt.words[Ht];return this.strip()},At.prototype.ior=function(Lt){return Ct((this.negative|Lt.negative)===0),this.iuor(Lt)},At.prototype.or=function(Lt){return this.length>Lt.length?this.clone().ior(Lt):Lt.clone().ior(this)},At.prototype.uor=function(Lt){return this.length>Lt.length?this.clone().iuor(Lt):Lt.clone().iuor(this)},At.prototype.iuand=function(Lt){var Ht;this.length>Lt.length?Ht=Lt:Ht=this;for(var Wt=0;Wt<Ht.length;Wt++)this.words[Wt]=this.words[Wt]&Lt.words[Wt];return this.length=Ht.length,this.strip()},At.prototype.iand=function(Lt){return Ct((this.negative|Lt.negative)===0),this.iuand(Lt)},At.prototype.and=function(Lt){return this.length>Lt.length?this.clone().iand(Lt):Lt.clone().iand(this)},At.prototype.uand=function(Lt){return this.length>Lt.length?this.clone().iuand(Lt):Lt.clone().iuand(this)},At.prototype.iuxor=function(Lt){var Ht,Wt;this.length>Lt.length?(Ht=this,Wt=Lt):(Ht=Lt,Wt=this);for(var Gt=0;Gt<Wt.length;Gt++)this.words[Gt]=Ht.words[Gt]^Wt.words[Gt];if(this!==Ht)for(;Gt<Ht.length;Gt++)this.words[Gt]=Ht.words[Gt];return this.length=Ht.length,this.strip()},At.prototype.ixor=function(Lt){return Ct((this.negative|Lt.negative)===0),this.iuxor(Lt)},At.prototype.xor=function(Lt){return this.length>Lt.length?this.clone().ixor(Lt):Lt.clone().ixor(this)},At.prototype.uxor=function(Lt){return this.length>Lt.length?this.clone().iuxor(Lt):Lt.clone().iuxor(this)},At.prototype.inotn=function(Lt){Ct(typeof Lt=="number"&&Lt>=0);var Ht=Math.ceil(Lt/26)|0,Wt=Lt%26;this._expand(Ht),Wt>0&&Ht--;for(var Gt=0;Gt<Ht;Gt++)this.words[Gt]=~this.words[Gt]&67108863;return Wt>0&&(this.words[Gt]=~this.words[Gt]&67108863>>26-Wt),this.strip()},At.prototype.notn=function(Lt){return this.clone().inotn(Lt)},At.prototype.setn=function(Lt,Ht){Ct(typeof Lt=="number"&&Lt>=0);var Wt=Lt/26|0,Gt=Lt%26;return this._expand(Wt+1),Ht?this.words[Wt]=this.words[Wt]|1<<Gt:this.words[Wt]=this.words[Wt]&~(1<<Gt),this.strip()},At.prototype.iadd=function(Lt){var Ht;if(this.negative!==0&&Lt.negative===0)return this.negative=0,Ht=this.isub(Lt),this.negative^=1,this._normSign();if(this.negative===0&&Lt.negative!==0)return Lt.negative=0,Ht=this.isub(Lt),Lt.negative=1,Ht._normSign();var Wt,Gt;this.length>Lt.length?(Wt=this,Gt=Lt):(Wt=Lt,Gt=this);for(var Yt=0,er=0;er<Gt.length;er++)Ht=(Wt.words[er]|0)+(Gt.words[er]|0)+Yt,this.words[er]=Ht&67108863,Yt=Ht>>>26;for(;Yt!==0&&er<Wt.length;er++)Ht=(Wt.words[er]|0)+Yt,this.words[er]=Ht&67108863,Yt=Ht>>>26;if(this.length=Wt.length,Yt!==0)this.words[this.length]=Yt,this.length++;else if(Wt!==this)for(;er<Wt.length;er++)this.words[er]=Wt.words[er];return this},At.prototype.add=function(Lt){var Ht;return Lt.negative!==0&&this.negative===0?(Lt.negative=0,Ht=this.sub(Lt),Lt.negative^=1,Ht):Lt.negative===0&&this.negative!==0?(this.negative=0,Ht=Lt.sub(this),this.negative=1,Ht):this.length>Lt.length?this.clone().iadd(Lt):Lt.clone().iadd(this)},At.prototype.isub=function(Lt){if(Lt.negative!==0){Lt.negative=0;var Ht=this.iadd(Lt);return Lt.negative=1,Ht._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(Lt),this.negative=1,this._normSign();var Wt=this.cmp(Lt);if(Wt===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Gt,Yt;Wt>0?(Gt=this,Yt=Lt):(Gt=Lt,Yt=this);for(var er=0,lr=0;lr<Yt.length;lr++)Ht=(Gt.words[lr]|0)-(Yt.words[lr]|0)+er,er=Ht>>26,this.words[lr]=Ht&67108863;for(;er!==0&&lr<Gt.length;lr++)Ht=(Gt.words[lr]|0)+er,er=Ht>>26,this.words[lr]=Ht&67108863;if(er===0&&lr<Gt.length&&Gt!==this)for(;lr<Gt.length;lr++)this.words[lr]=Gt.words[lr];return this.length=Math.max(this.length,lr),Gt!==this&&(this.negative=1),this.strip()},At.prototype.sub=function(Lt){return this.clone().isub(Lt)};function Vt(rr,Lt,Ht){Ht.negative=Lt.negative^rr.negative;var Wt=rr.length+Lt.length|0;Ht.length=Wt,Wt=Wt-1|0;var Gt=rr.words[0]|0,Yt=Lt.words[0]|0,er=Gt*Yt,lr=er&67108863,Jt=er/67108864|0;Ht.words[0]=lr;for(var Ut=1;Ut<Wt;Ut++){for(var ir=Jt>>>26,Cr=Jt&67108863,_r=Math.min(Ut,Lt.length-1),$r=Math.max(0,Ut-rr.length+1);$r<=_r;$r++){var Tr=Ut-$r|0;Gt=rr.words[Tr]|0,Yt=Lt.words[$r]|0,er=Gt*Yt+Cr,ir+=er/67108864|0,Cr=er&67108863}Ht.words[Ut]=Cr|0,Jt=ir|0}return Jt!==0?Ht.words[Ut]=Jt|0:Ht.length--,Ht.strip()}var Kt=function(Lt,Ht,Wt){var Gt=Lt.words,Yt=Ht.words,er=Wt.words,lr=0,Jt,Ut,ir,Cr=Gt[0]|0,_r=Cr&8191,$r=Cr>>>13,Tr=Gt[1]|0,Dr=Tr&8191,Ar=Tr>>>13,Fr=Gt[2]|0,Rr=Fr&8191,wr=Fr>>>13,Sr=Gt[3]|0,Br=Sr&8191,Or=Sr>>>13,Pr=Gt[4]|0,Nr=Pr&8191,Lr=Pr>>>13,Wr=Gt[5]|0,Ur=Wr&8191,jr=Wr>>>13,Kr=Gt[6]|0,qr=Kr&8191,Zr=Kr>>>13,dn=Gt[7]|0,Xr=dn&8191,un=dn>>>13,Yr=Gt[8]|0,Gr=Yr&8191,Jr=Yr>>>13,wn=Gt[9]|0,kr=wn&8191,Mr=wn>>>13,Ir=Yt[0]|0,Hr=Ir&8191,Vr=Ir>>>13,on=Yt[1]|0,Qr=on&8191,hn=on>>>13,Wn=Yt[2]|0,_n=Wn&8191,An=Wn>>>13,Yn=Yt[3]|0,Tn=Yn&8191,Nn=Yn>>>13,Zn=Yt[4]|0,$n=Zn&8191,Fn=Zn>>>13,Gn=Yt[5]|0,gn=Gn&8191,Rn=Gn>>>13,nu=Yt[6]|0,pn=nu&8191,yn=nu>>>13,jn=Yt[7]|0,Cn=jn&8191,On=jn>>>13,au=Yt[8]|0,In=au&8191,Bn=au>>>13,Vn=Yt[9]|0,En=Vn&8191,Sn=Vn>>>13;Wt.negative=Lt.negative^Ht.negative,Wt.length=19,Jt=Math.imul(_r,Hr),Ut=Math.imul(_r,Vr),Ut=Ut+Math.imul($r,Hr)|0,ir=Math.imul($r,Vr);var Xn=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Xn>>>26)|0,Xn&=67108863,Jt=Math.imul(Dr,Hr),Ut=Math.imul(Dr,Vr),Ut=Ut+Math.imul(Ar,Hr)|0,ir=Math.imul(Ar,Vr),Jt=Jt+Math.imul(_r,Qr)|0,Ut=Ut+Math.imul(_r,hn)|0,Ut=Ut+Math.imul($r,Qr)|0,ir=ir+Math.imul($r,hn)|0;var uu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(uu>>>26)|0,uu&=67108863,Jt=Math.imul(Rr,Hr),Ut=Math.imul(Rr,Vr),Ut=Ut+Math.imul(wr,Hr)|0,ir=Math.imul(wr,Vr),Jt=Jt+Math.imul(Dr,Qr)|0,Ut=Ut+Math.imul(Dr,hn)|0,Ut=Ut+Math.imul(Ar,Qr)|0,ir=ir+Math.imul(Ar,hn)|0,Jt=Jt+Math.imul(_r,_n)|0,Ut=Ut+Math.imul(_r,An)|0,Ut=Ut+Math.imul($r,_n)|0,ir=ir+Math.imul($r,An)|0;var Eu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Eu>>>26)|0,Eu&=67108863,Jt=Math.imul(Br,Hr),Ut=Math.imul(Br,Vr),Ut=Ut+Math.imul(Or,Hr)|0,ir=Math.imul(Or,Vr),Jt=Jt+Math.imul(Rr,Qr)|0,Ut=Ut+Math.imul(Rr,hn)|0,Ut=Ut+Math.imul(wr,Qr)|0,ir=ir+Math.imul(wr,hn)|0,Jt=Jt+Math.imul(Dr,_n)|0,Ut=Ut+Math.imul(Dr,An)|0,Ut=Ut+Math.imul(Ar,_n)|0,ir=ir+Math.imul(Ar,An)|0,Jt=Jt+Math.imul(_r,Tn)|0,Ut=Ut+Math.imul(_r,Nn)|0,Ut=Ut+Math.imul($r,Tn)|0,ir=ir+Math.imul($r,Nn)|0;var pu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(pu>>>26)|0,pu&=67108863,Jt=Math.imul(Nr,Hr),Ut=Math.imul(Nr,Vr),Ut=Ut+Math.imul(Lr,Hr)|0,ir=Math.imul(Lr,Vr),Jt=Jt+Math.imul(Br,Qr)|0,Ut=Ut+Math.imul(Br,hn)|0,Ut=Ut+Math.imul(Or,Qr)|0,ir=ir+Math.imul(Or,hn)|0,Jt=Jt+Math.imul(Rr,_n)|0,Ut=Ut+Math.imul(Rr,An)|0,Ut=Ut+Math.imul(wr,_n)|0,ir=ir+Math.imul(wr,An)|0,Jt=Jt+Math.imul(Dr,Tn)|0,Ut=Ut+Math.imul(Dr,Nn)|0,Ut=Ut+Math.imul(Ar,Tn)|0,ir=ir+Math.imul(Ar,Nn)|0,Jt=Jt+Math.imul(_r,$n)|0,Ut=Ut+Math.imul(_r,Fn)|0,Ut=Ut+Math.imul($r,$n)|0,ir=ir+Math.imul($r,Fn)|0;var Qn=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Qn>>>26)|0,Qn&=67108863,Jt=Math.imul(Ur,Hr),Ut=Math.imul(Ur,Vr),Ut=Ut+Math.imul(jr,Hr)|0,ir=Math.imul(jr,Vr),Jt=Jt+Math.imul(Nr,Qr)|0,Ut=Ut+Math.imul(Nr,hn)|0,Ut=Ut+Math.imul(Lr,Qr)|0,ir=ir+Math.imul(Lr,hn)|0,Jt=Jt+Math.imul(Br,_n)|0,Ut=Ut+Math.imul(Br,An)|0,Ut=Ut+Math.imul(Or,_n)|0,ir=ir+Math.imul(Or,An)|0,Jt=Jt+Math.imul(Rr,Tn)|0,Ut=Ut+Math.imul(Rr,Nn)|0,Ut=Ut+Math.imul(wr,Tn)|0,ir=ir+Math.imul(wr,Nn)|0,Jt=Jt+Math.imul(Dr,$n)|0,Ut=Ut+Math.imul(Dr,Fn)|0,Ut=Ut+Math.imul(Ar,$n)|0,ir=ir+Math.imul(Ar,Fn)|0,Jt=Jt+Math.imul(_r,gn)|0,Ut=Ut+Math.imul(_r,Rn)|0,Ut=Ut+Math.imul($r,gn)|0,ir=ir+Math.imul($r,Rn)|0;var Jn=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Jn>>>26)|0,Jn&=67108863,Jt=Math.imul(qr,Hr),Ut=Math.imul(qr,Vr),Ut=Ut+Math.imul(Zr,Hr)|0,ir=Math.imul(Zr,Vr),Jt=Jt+Math.imul(Ur,Qr)|0,Ut=Ut+Math.imul(Ur,hn)|0,Ut=Ut+Math.imul(jr,Qr)|0,ir=ir+Math.imul(jr,hn)|0,Jt=Jt+Math.imul(Nr,_n)|0,Ut=Ut+Math.imul(Nr,An)|0,Ut=Ut+Math.imul(Lr,_n)|0,ir=ir+Math.imul(Lr,An)|0,Jt=Jt+Math.imul(Br,Tn)|0,Ut=Ut+Math.imul(Br,Nn)|0,Ut=Ut+Math.imul(Or,Tn)|0,ir=ir+Math.imul(Or,Nn)|0,Jt=Jt+Math.imul(Rr,$n)|0,Ut=Ut+Math.imul(Rr,Fn)|0,Ut=Ut+Math.imul(wr,$n)|0,ir=ir+Math.imul(wr,Fn)|0,Jt=Jt+Math.imul(Dr,gn)|0,Ut=Ut+Math.imul(Dr,Rn)|0,Ut=Ut+Math.imul(Ar,gn)|0,ir=ir+Math.imul(Ar,Rn)|0,Jt=Jt+Math.imul(_r,pn)|0,Ut=Ut+Math.imul(_r,yn)|0,Ut=Ut+Math.imul($r,pn)|0,ir=ir+Math.imul($r,yn)|0;var ou=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(ou>>>26)|0,ou&=67108863,Jt=Math.imul(Xr,Hr),Ut=Math.imul(Xr,Vr),Ut=Ut+Math.imul(un,Hr)|0,ir=Math.imul(un,Vr),Jt=Jt+Math.imul(qr,Qr)|0,Ut=Ut+Math.imul(qr,hn)|0,Ut=Ut+Math.imul(Zr,Qr)|0,ir=ir+Math.imul(Zr,hn)|0,Jt=Jt+Math.imul(Ur,_n)|0,Ut=Ut+Math.imul(Ur,An)|0,Ut=Ut+Math.imul(jr,_n)|0,ir=ir+Math.imul(jr,An)|0,Jt=Jt+Math.imul(Nr,Tn)|0,Ut=Ut+Math.imul(Nr,Nn)|0,Ut=Ut+Math.imul(Lr,Tn)|0,ir=ir+Math.imul(Lr,Nn)|0,Jt=Jt+Math.imul(Br,$n)|0,Ut=Ut+Math.imul(Br,Fn)|0,Ut=Ut+Math.imul(Or,$n)|0,ir=ir+Math.imul(Or,Fn)|0,Jt=Jt+Math.imul(Rr,gn)|0,Ut=Ut+Math.imul(Rr,Rn)|0,Ut=Ut+Math.imul(wr,gn)|0,ir=ir+Math.imul(wr,Rn)|0,Jt=Jt+Math.imul(Dr,pn)|0,Ut=Ut+Math.imul(Dr,yn)|0,Ut=Ut+Math.imul(Ar,pn)|0,ir=ir+Math.imul(Ar,yn)|0,Jt=Jt+Math.imul(_r,Cn)|0,Ut=Ut+Math.imul(_r,On)|0,Ut=Ut+Math.imul($r,Cn)|0,ir=ir+Math.imul($r,On)|0;var mu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(mu>>>26)|0,mu&=67108863,Jt=Math.imul(Gr,Hr),Ut=Math.imul(Gr,Vr),Ut=Ut+Math.imul(Jr,Hr)|0,ir=Math.imul(Jr,Vr),Jt=Jt+Math.imul(Xr,Qr)|0,Ut=Ut+Math.imul(Xr,hn)|0,Ut=Ut+Math.imul(un,Qr)|0,ir=ir+Math.imul(un,hn)|0,Jt=Jt+Math.imul(qr,_n)|0,Ut=Ut+Math.imul(qr,An)|0,Ut=Ut+Math.imul(Zr,_n)|0,ir=ir+Math.imul(Zr,An)|0,Jt=Jt+Math.imul(Ur,Tn)|0,Ut=Ut+Math.imul(Ur,Nn)|0,Ut=Ut+Math.imul(jr,Tn)|0,ir=ir+Math.imul(jr,Nn)|0,Jt=Jt+Math.imul(Nr,$n)|0,Ut=Ut+Math.imul(Nr,Fn)|0,Ut=Ut+Math.imul(Lr,$n)|0,ir=ir+Math.imul(Lr,Fn)|0,Jt=Jt+Math.imul(Br,gn)|0,Ut=Ut+Math.imul(Br,Rn)|0,Ut=Ut+Math.imul(Or,gn)|0,ir=ir+Math.imul(Or,Rn)|0,Jt=Jt+Math.imul(Rr,pn)|0,Ut=Ut+Math.imul(Rr,yn)|0,Ut=Ut+Math.imul(wr,pn)|0,ir=ir+Math.imul(wr,yn)|0,Jt=Jt+Math.imul(Dr,Cn)|0,Ut=Ut+Math.imul(Dr,On)|0,Ut=Ut+Math.imul(Ar,Cn)|0,ir=ir+Math.imul(Ar,On)|0,Jt=Jt+Math.imul(_r,In)|0,Ut=Ut+Math.imul(_r,Bn)|0,Ut=Ut+Math.imul($r,In)|0,ir=ir+Math.imul($r,Bn)|0;var xu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(xu>>>26)|0,xu&=67108863,Jt=Math.imul(kr,Hr),Ut=Math.imul(kr,Vr),Ut=Ut+Math.imul(Mr,Hr)|0,ir=Math.imul(Mr,Vr),Jt=Jt+Math.imul(Gr,Qr)|0,Ut=Ut+Math.imul(Gr,hn)|0,Ut=Ut+Math.imul(Jr,Qr)|0,ir=ir+Math.imul(Jr,hn)|0,Jt=Jt+Math.imul(Xr,_n)|0,Ut=Ut+Math.imul(Xr,An)|0,Ut=Ut+Math.imul(un,_n)|0,ir=ir+Math.imul(un,An)|0,Jt=Jt+Math.imul(qr,Tn)|0,Ut=Ut+Math.imul(qr,Nn)|0,Ut=Ut+Math.imul(Zr,Tn)|0,ir=ir+Math.imul(Zr,Nn)|0,Jt=Jt+Math.imul(Ur,$n)|0,Ut=Ut+Math.imul(Ur,Fn)|0,Ut=Ut+Math.imul(jr,$n)|0,ir=ir+Math.imul(jr,Fn)|0,Jt=Jt+Math.imul(Nr,gn)|0,Ut=Ut+Math.imul(Nr,Rn)|0,Ut=Ut+Math.imul(Lr,gn)|0,ir=ir+Math.imul(Lr,Rn)|0,Jt=Jt+Math.imul(Br,pn)|0,Ut=Ut+Math.imul(Br,yn)|0,Ut=Ut+Math.imul(Or,pn)|0,ir=ir+Math.imul(Or,yn)|0,Jt=Jt+Math.imul(Rr,Cn)|0,Ut=Ut+Math.imul(Rr,On)|0,Ut=Ut+Math.imul(wr,Cn)|0,ir=ir+Math.imul(wr,On)|0,Jt=Jt+Math.imul(Dr,In)|0,Ut=Ut+Math.imul(Dr,Bn)|0,Ut=Ut+Math.imul(Ar,In)|0,ir=ir+Math.imul(Ar,Bn)|0,Jt=Jt+Math.imul(_r,En)|0,Ut=Ut+Math.imul(_r,Sn)|0,Ut=Ut+Math.imul($r,En)|0,ir=ir+Math.imul($r,Sn)|0;var _u=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(_u>>>26)|0,_u&=67108863,Jt=Math.imul(kr,Qr),Ut=Math.imul(kr,hn),Ut=Ut+Math.imul(Mr,Qr)|0,ir=Math.imul(Mr,hn),Jt=Jt+Math.imul(Gr,_n)|0,Ut=Ut+Math.imul(Gr,An)|0,Ut=Ut+Math.imul(Jr,_n)|0,ir=ir+Math.imul(Jr,An)|0,Jt=Jt+Math.imul(Xr,Tn)|0,Ut=Ut+Math.imul(Xr,Nn)|0,Ut=Ut+Math.imul(un,Tn)|0,ir=ir+Math.imul(un,Nn)|0,Jt=Jt+Math.imul(qr,$n)|0,Ut=Ut+Math.imul(qr,Fn)|0,Ut=Ut+Math.imul(Zr,$n)|0,ir=ir+Math.imul(Zr,Fn)|0,Jt=Jt+Math.imul(Ur,gn)|0,Ut=Ut+Math.imul(Ur,Rn)|0,Ut=Ut+Math.imul(jr,gn)|0,ir=ir+Math.imul(jr,Rn)|0,Jt=Jt+Math.imul(Nr,pn)|0,Ut=Ut+Math.imul(Nr,yn)|0,Ut=Ut+Math.imul(Lr,pn)|0,ir=ir+Math.imul(Lr,yn)|0,Jt=Jt+Math.imul(Br,Cn)|0,Ut=Ut+Math.imul(Br,On)|0,Ut=Ut+Math.imul(Or,Cn)|0,ir=ir+Math.imul(Or,On)|0,Jt=Jt+Math.imul(Rr,In)|0,Ut=Ut+Math.imul(Rr,Bn)|0,Ut=Ut+Math.imul(wr,In)|0,ir=ir+Math.imul(wr,Bn)|0,Jt=Jt+Math.imul(Dr,En)|0,Ut=Ut+Math.imul(Dr,Sn)|0,Ut=Ut+Math.imul(Ar,En)|0,ir=ir+Math.imul(Ar,Sn)|0;var $u=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+($u>>>26)|0,$u&=67108863,Jt=Math.imul(kr,_n),Ut=Math.imul(kr,An),Ut=Ut+Math.imul(Mr,_n)|0,ir=Math.imul(Mr,An),Jt=Jt+Math.imul(Gr,Tn)|0,Ut=Ut+Math.imul(Gr,Nn)|0,Ut=Ut+Math.imul(Jr,Tn)|0,ir=ir+Math.imul(Jr,Nn)|0,Jt=Jt+Math.imul(Xr,$n)|0,Ut=Ut+Math.imul(Xr,Fn)|0,Ut=Ut+Math.imul(un,$n)|0,ir=ir+Math.imul(un,Fn)|0,Jt=Jt+Math.imul(qr,gn)|0,Ut=Ut+Math.imul(qr,Rn)|0,Ut=Ut+Math.imul(Zr,gn)|0,ir=ir+Math.imul(Zr,Rn)|0,Jt=Jt+Math.imul(Ur,pn)|0,Ut=Ut+Math.imul(Ur,yn)|0,Ut=Ut+Math.imul(jr,pn)|0,ir=ir+Math.imul(jr,yn)|0,Jt=Jt+Math.imul(Nr,Cn)|0,Ut=Ut+Math.imul(Nr,On)|0,Ut=Ut+Math.imul(Lr,Cn)|0,ir=ir+Math.imul(Lr,On)|0,Jt=Jt+Math.imul(Br,In)|0,Ut=Ut+Math.imul(Br,Bn)|0,Ut=Ut+Math.imul(Or,In)|0,ir=ir+Math.imul(Or,Bn)|0,Jt=Jt+Math.imul(Rr,En)|0,Ut=Ut+Math.imul(Rr,Sn)|0,Ut=Ut+Math.imul(wr,En)|0,ir=ir+Math.imul(wr,Sn)|0;var Au=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Au>>>26)|0,Au&=67108863,Jt=Math.imul(kr,Tn),Ut=Math.imul(kr,Nn),Ut=Ut+Math.imul(Mr,Tn)|0,ir=Math.imul(Mr,Nn),Jt=Jt+Math.imul(Gr,$n)|0,Ut=Ut+Math.imul(Gr,Fn)|0,Ut=Ut+Math.imul(Jr,$n)|0,ir=ir+Math.imul(Jr,Fn)|0,Jt=Jt+Math.imul(Xr,gn)|0,Ut=Ut+Math.imul(Xr,Rn)|0,Ut=Ut+Math.imul(un,gn)|0,ir=ir+Math.imul(un,Rn)|0,Jt=Jt+Math.imul(qr,pn)|0,Ut=Ut+Math.imul(qr,yn)|0,Ut=Ut+Math.imul(Zr,pn)|0,ir=ir+Math.imul(Zr,yn)|0,Jt=Jt+Math.imul(Ur,Cn)|0,Ut=Ut+Math.imul(Ur,On)|0,Ut=Ut+Math.imul(jr,Cn)|0,ir=ir+Math.imul(jr,On)|0,Jt=Jt+Math.imul(Nr,In)|0,Ut=Ut+Math.imul(Nr,Bn)|0,Ut=Ut+Math.imul(Lr,In)|0,ir=ir+Math.imul(Lr,Bn)|0,Jt=Jt+Math.imul(Br,En)|0,Ut=Ut+Math.imul(Br,Sn)|0,Ut=Ut+Math.imul(Or,En)|0,ir=ir+Math.imul(Or,Sn)|0;var Bu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Bu>>>26)|0,Bu&=67108863,Jt=Math.imul(kr,$n),Ut=Math.imul(kr,Fn),Ut=Ut+Math.imul(Mr,$n)|0,ir=Math.imul(Mr,Fn),Jt=Jt+Math.imul(Gr,gn)|0,Ut=Ut+Math.imul(Gr,Rn)|0,Ut=Ut+Math.imul(Jr,gn)|0,ir=ir+Math.imul(Jr,Rn)|0,Jt=Jt+Math.imul(Xr,pn)|0,Ut=Ut+Math.imul(Xr,yn)|0,Ut=Ut+Math.imul(un,pn)|0,ir=ir+Math.imul(un,yn)|0,Jt=Jt+Math.imul(qr,Cn)|0,Ut=Ut+Math.imul(qr,On)|0,Ut=Ut+Math.imul(Zr,Cn)|0,ir=ir+Math.imul(Zr,On)|0,Jt=Jt+Math.imul(Ur,In)|0,Ut=Ut+Math.imul(Ur,Bn)|0,Ut=Ut+Math.imul(jr,In)|0,ir=ir+Math.imul(jr,Bn)|0,Jt=Jt+Math.imul(Nr,En)|0,Ut=Ut+Math.imul(Nr,Sn)|0,Ut=Ut+Math.imul(Lr,En)|0,ir=ir+Math.imul(Lr,Sn)|0;var Su=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Su>>>26)|0,Su&=67108863,Jt=Math.imul(kr,gn),Ut=Math.imul(kr,Rn),Ut=Ut+Math.imul(Mr,gn)|0,ir=Math.imul(Mr,Rn),Jt=Jt+Math.imul(Gr,pn)|0,Ut=Ut+Math.imul(Gr,yn)|0,Ut=Ut+Math.imul(Jr,pn)|0,ir=ir+Math.imul(Jr,yn)|0,Jt=Jt+Math.imul(Xr,Cn)|0,Ut=Ut+Math.imul(Xr,On)|0,Ut=Ut+Math.imul(un,Cn)|0,ir=ir+Math.imul(un,On)|0,Jt=Jt+Math.imul(qr,In)|0,Ut=Ut+Math.imul(qr,Bn)|0,Ut=Ut+Math.imul(Zr,In)|0,ir=ir+Math.imul(Zr,Bn)|0,Jt=Jt+Math.imul(Ur,En)|0,Ut=Ut+Math.imul(Ur,Sn)|0,Ut=Ut+Math.imul(jr,En)|0,ir=ir+Math.imul(jr,Sn)|0;var Ru=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Ru>>>26)|0,Ru&=67108863,Jt=Math.imul(kr,pn),Ut=Math.imul(kr,yn),Ut=Ut+Math.imul(Mr,pn)|0,ir=Math.imul(Mr,yn),Jt=Jt+Math.imul(Gr,Cn)|0,Ut=Ut+Math.imul(Gr,On)|0,Ut=Ut+Math.imul(Jr,Cn)|0,ir=ir+Math.imul(Jr,On)|0,Jt=Jt+Math.imul(Xr,In)|0,Ut=Ut+Math.imul(Xr,Bn)|0,Ut=Ut+Math.imul(un,In)|0,ir=ir+Math.imul(un,Bn)|0,Jt=Jt+Math.imul(qr,En)|0,Ut=Ut+Math.imul(qr,Sn)|0,Ut=Ut+Math.imul(Zr,En)|0,ir=ir+Math.imul(Zr,Sn)|0;var lu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(lu>>>26)|0,lu&=67108863,Jt=Math.imul(kr,Cn),Ut=Math.imul(kr,On),Ut=Ut+Math.imul(Mr,Cn)|0,ir=Math.imul(Mr,On),Jt=Jt+Math.imul(Gr,In)|0,Ut=Ut+Math.imul(Gr,Bn)|0,Ut=Ut+Math.imul(Jr,In)|0,ir=ir+Math.imul(Jr,Bn)|0,Jt=Jt+Math.imul(Xr,En)|0,Ut=Ut+Math.imul(Xr,Sn)|0,Ut=Ut+Math.imul(un,En)|0,ir=ir+Math.imul(un,Sn)|0;var du=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(du>>>26)|0,du&=67108863,Jt=Math.imul(kr,In),Ut=Math.imul(kr,Bn),Ut=Ut+Math.imul(Mr,In)|0,ir=Math.imul(Mr,Bn),Jt=Jt+Math.imul(Gr,En)|0,Ut=Ut+Math.imul(Gr,Sn)|0,Ut=Ut+Math.imul(Jr,En)|0,ir=ir+Math.imul(Jr,Sn)|0;var fu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(fu>>>26)|0,fu&=67108863,Jt=Math.imul(kr,En),Ut=Math.imul(kr,Sn),Ut=Ut+Math.imul(Mr,En)|0,ir=Math.imul(Mr,Sn);var Tu=(lr+Jt|0)+((Ut&8191)<<13)|0;return lr=(ir+(Ut>>>13)|0)+(Tu>>>26)|0,Tu&=67108863,er[0]=Xn,er[1]=uu,er[2]=Eu,er[3]=pu,er[4]=Qn,er[5]=Jn,er[6]=ou,er[7]=mu,er[8]=xu,er[9]=_u,er[10]=$u,er[11]=Au,er[12]=Bu,er[13]=Su,er[14]=Ru,er[15]=lu,er[16]=du,er[17]=fu,er[18]=Tu,lr!==0&&(er[19]=lr,Wt.length++),Wt};Math.imul||(Kt=Vt);function Xt(rr,Lt,Ht){Ht.negative=Lt.negative^rr.negative,Ht.length=rr.length+Lt.length;for(var Wt=0,Gt=0,Yt=0;Yt<Ht.length-1;Yt++){var er=Gt;Gt=0;for(var lr=Wt&67108863,Jt=Math.min(Yt,Lt.length-1),Ut=Math.max(0,Yt-rr.length+1);Ut<=Jt;Ut++){var ir=Yt-Ut,Cr=rr.words[ir]|0,_r=Lt.words[Ut]|0,$r=Cr*_r,Tr=$r&67108863;er=er+($r/67108864|0)|0,Tr=Tr+lr|0,lr=Tr&67108863,er=er+(Tr>>>26)|0,Gt+=er>>>26,er&=67108863}Ht.words[Yt]=lr,Wt=er,er=Gt}return Wt!==0?Ht.words[Yt]=Wt:Ht.length--,Ht.strip()}function Qt(rr,Lt,Ht){var Wt=new Zt;return Wt.mulp(rr,Lt,Ht)}At.prototype.mulTo=function(Lt,Ht){var Wt,Gt=this.length+Lt.length;return this.length===10&&Lt.length===10?Wt=Kt(this,Lt,Ht):Gt<63?Wt=Vt(this,Lt,Ht):Gt<1024?Wt=Xt(this,Lt,Ht):Wt=Qt(this,Lt,Ht),Wt};function Zt(rr,Lt){this.x=rr,this.y=Lt}Zt.prototype.makeRBT=function(Lt){for(var Ht=new Array(Lt),Wt=At.prototype._countBits(Lt)-1,Gt=0;Gt<Lt;Gt++)Ht[Gt]=this.revBin(Gt,Wt,Lt);return Ht},Zt.prototype.revBin=function(Lt,Ht,Wt){if(Lt===0||Lt===Wt-1)return Lt;for(var Gt=0,Yt=0;Yt<Ht;Yt++)Gt|=(Lt&1)<<Ht-Yt-1,Lt>>=1;return Gt},Zt.prototype.permute=function(Lt,Ht,Wt,Gt,Yt,er){for(var lr=0;lr<er;lr++)Gt[lr]=Ht[Lt[lr]],Yt[lr]=Wt[Lt[lr]]},Zt.prototype.transform=function(Lt,Ht,Wt,Gt,Yt,er){this.permute(er,Lt,Ht,Wt,Gt,Yt);for(var lr=1;lr<Yt;lr<<=1)for(var Jt=lr<<1,Ut=Math.cos(2*Math.PI/Jt),ir=Math.sin(2*Math.PI/Jt),Cr=0;Cr<Yt;Cr+=Jt)for(var _r=Ut,$r=ir,Tr=0;Tr<lr;Tr++){var Dr=Wt[Cr+Tr],Ar=Gt[Cr+Tr],Fr=Wt[Cr+Tr+lr],Rr=Gt[Cr+Tr+lr],wr=_r*Fr-$r*Rr;Rr=_r*Rr+$r*Fr,Fr=wr,Wt[Cr+Tr]=Dr+Fr,Gt[Cr+Tr]=Ar+Rr,Wt[Cr+Tr+lr]=Dr-Fr,Gt[Cr+Tr+lr]=Ar-Rr,Tr!==Jt&&(wr=Ut*_r-ir*$r,$r=Ut*$r+ir*_r,_r=wr)}},Zt.prototype.guessLen13b=function(Lt,Ht){var Wt=Math.max(Ht,Lt)|1,Gt=Wt&1,Yt=0;for(Wt=Wt/2|0;Wt;Wt=Wt>>>1)Yt++;return 1<<Yt+1+Gt},Zt.prototype.conjugate=function(Lt,Ht,Wt){if(!(Wt<=1))for(var Gt=0;Gt<Wt/2;Gt++){var Yt=Lt[Gt];Lt[Gt]=Lt[Wt-Gt-1],Lt[Wt-Gt-1]=Yt,Yt=Ht[Gt],Ht[Gt]=-Ht[Wt-Gt-1],Ht[Wt-Gt-1]=-Yt}},Zt.prototype.normalize13b=function(Lt,Ht){for(var Wt=0,Gt=0;Gt<Ht/2;Gt++){var Yt=Math.round(Lt[2*Gt+1]/Ht)*8192+Math.round(Lt[2*Gt]/Ht)+Wt;Lt[Gt]=Yt&67108863,Yt<67108864?Wt=0:Wt=Yt/67108864|0}return Lt},Zt.prototype.convert13b=function(Lt,Ht,Wt,Gt){for(var Yt=0,er=0;er<Ht;er++)Yt=Yt+(Lt[er]|0),Wt[2*er]=Yt&8191,Yt=Yt>>>13,Wt[2*er+1]=Yt&8191,Yt=Yt>>>13;for(er=2*Ht;er<Gt;++er)Wt[er]=0;Ct(Yt===0),Ct((Yt&-8192)===0)},Zt.prototype.stub=function(Lt){for(var Ht=new Array(Lt),Wt=0;Wt<Lt;Wt++)Ht[Wt]=0;return Ht},Zt.prototype.mulp=function(Lt,Ht,Wt){var Gt=2*this.guessLen13b(Lt.length,Ht.length),Yt=this.makeRBT(Gt),er=this.stub(Gt),lr=new Array(Gt),Jt=new Array(Gt),Ut=new Array(Gt),ir=new Array(Gt),Cr=new Array(Gt),_r=new Array(Gt),$r=Wt.words;$r.length=Gt,this.convert13b(Lt.words,Lt.length,lr,Gt),this.convert13b(Ht.words,Ht.length,ir,Gt),this.transform(lr,er,Jt,Ut,Gt,Yt),this.transform(ir,er,Cr,_r,Gt,Yt);for(var Tr=0;Tr<Gt;Tr++){var Dr=Jt[Tr]*Cr[Tr]-Ut[Tr]*_r[Tr];Ut[Tr]=Jt[Tr]*_r[Tr]+Ut[Tr]*Cr[Tr],Jt[Tr]=Dr}return this.conjugate(Jt,Ut,Gt),this.transform(Jt,Ut,$r,er,Gt,Yt),this.conjugate($r,er,Gt),this.normalize13b($r,Gt),Wt.negative=Lt.negative^Ht.negative,Wt.length=Lt.length+Ht.length,Wt.strip()},At.prototype.mul=function(Lt){var Ht=new At(null);return Ht.words=new Array(this.length+Lt.length),this.mulTo(Lt,Ht)},At.prototype.mulf=function(Lt){var Ht=new At(null);return Ht.words=new Array(this.length+Lt.length),Qt(this,Lt,Ht)},At.prototype.imul=function(Lt){return this.clone().mulTo(Lt,this)},At.prototype.imuln=function(Lt){Ct(typeof Lt=="number"),Ct(Lt<67108864);for(var Ht=0,Wt=0;Wt<this.length;Wt++){var Gt=(this.words[Wt]|0)*Lt,Yt=(Gt&67108863)+(Ht&67108863);Ht>>=26,Ht+=Gt/67108864|0,Ht+=Yt>>>26,this.words[Wt]=Yt&67108863}return Ht!==0&&(this.words[Wt]=Ht,this.length++),this},At.prototype.muln=function(Lt){return this.clone().imuln(Lt)},At.prototype.sqr=function(){return this.mul(this)},At.prototype.isqr=function(){return this.imul(this.clone())},At.prototype.pow=function(Lt){var Ht=zt(Lt);if(Ht.length===0)return new At(1);for(var Wt=this,Gt=0;Gt<Ht.length&&Ht[Gt]===0;Gt++,Wt=Wt.sqr());if(++Gt<Ht.length)for(var Yt=Wt.sqr();Gt<Ht.length;Gt++,Yt=Yt.sqr())Ht[Gt]!==0&&(Wt=Wt.mul(Yt));return Wt},At.prototype.iushln=function(Lt){Ct(typeof Lt=="number"&&Lt>=0);var Ht=Lt%26,Wt=(Lt-Ht)/26,Gt=67108863>>>26-Ht<<26-Ht,Yt;if(Ht!==0){var er=0;for(Yt=0;Yt<this.length;Yt++){var lr=this.words[Yt]&Gt,Jt=(this.words[Yt]|0)-lr<<Ht;this.words[Yt]=Jt|er,er=lr>>>26-Ht}er&&(this.words[Yt]=er,this.length++)}if(Wt!==0){for(Yt=this.length-1;Yt>=0;Yt--)this.words[Yt+Wt]=this.words[Yt];for(Yt=0;Yt<Wt;Yt++)this.words[Yt]=0;this.length+=Wt}return this.strip()},At.prototype.ishln=function(Lt){return Ct(this.negative===0),this.iushln(Lt)},At.prototype.iushrn=function(Lt,Ht,Wt){Ct(typeof Lt=="number"&&Lt>=0);var Gt;Ht?Gt=(Ht-Ht%26)/26:Gt=0;var Yt=Lt%26,er=Math.min((Lt-Yt)/26,this.length),lr=67108863^67108863>>>Yt<<Yt,Jt=Wt;if(Gt-=er,Gt=Math.max(0,Gt),Jt){for(var Ut=0;Ut<er;Ut++)Jt.words[Ut]=this.words[Ut];Jt.length=er}if(er!==0)if(this.length>er)for(this.length-=er,Ut=0;Ut<this.length;Ut++)this.words[Ut]=this.words[Ut+er];else this.words[0]=0,this.length=1;var ir=0;for(Ut=this.length-1;Ut>=0&&(ir!==0||Ut>=Gt);Ut--){var Cr=this.words[Ut]|0;this.words[Ut]=ir<<26-Yt|Cr>>>Yt,ir=Cr&lr}return Jt&&ir!==0&&(Jt.words[Jt.length++]=ir),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},At.prototype.ishrn=function(Lt,Ht,Wt){return Ct(this.negative===0),this.iushrn(Lt,Ht,Wt)},At.prototype.shln=function(Lt){return this.clone().ishln(Lt)},At.prototype.ushln=function(Lt){return this.clone().iushln(Lt)},At.prototype.shrn=function(Lt){return this.clone().ishrn(Lt)},At.prototype.ushrn=function(Lt){return this.clone().iushrn(Lt)},At.prototype.testn=function(Lt){Ct(typeof Lt=="number"&&Lt>=0);var Ht=Lt%26,Wt=(Lt-Ht)/26,Gt=1<<Ht;if(this.length<=Wt)return!1;var Yt=this.words[Wt];return!!(Yt&Gt)},At.prototype.imaskn=function(Lt){Ct(typeof Lt=="number"&&Lt>=0);var Ht=Lt%26,Wt=(Lt-Ht)/26;if(Ct(this.negative===0,"imaskn works only with positive numbers"),this.length<=Wt)return this;if(Ht!==0&&Wt++,this.length=Math.min(Wt,this.length),Ht!==0){var Gt=67108863^67108863>>>Ht<<Ht;this.words[this.length-1]&=Gt}return this.strip()},At.prototype.maskn=function(Lt){return this.clone().imaskn(Lt)},At.prototype.iaddn=function(Lt){return Ct(typeof Lt=="number"),Ct(Lt<67108864),Lt<0?this.isubn(-Lt):this.negative!==0?this.length===1&&(this.words[0]|0)<Lt?(this.words[0]=Lt-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(Lt),this.negative=1,this):this._iaddn(Lt)},At.prototype._iaddn=function(Lt){this.words[0]+=Lt;for(var Ht=0;Ht<this.length&&this.words[Ht]>=67108864;Ht++)this.words[Ht]-=67108864,Ht===this.length-1?this.words[Ht+1]=1:this.words[Ht+1]++;return this.length=Math.max(this.length,Ht+1),this},At.prototype.isubn=function(Lt){if(Ct(typeof Lt=="number"),Ct(Lt<67108864),Lt<0)return this.iaddn(-Lt);if(this.negative!==0)return this.negative=0,this.iaddn(Lt),this.negative=1,this;if(this.words[0]-=Lt,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Ht=0;Ht<this.length&&this.words[Ht]<0;Ht++)this.words[Ht]+=67108864,this.words[Ht+1]-=1;return this.strip()},At.prototype.addn=function(Lt){return this.clone().iaddn(Lt)},At.prototype.subn=function(Lt){return this.clone().isubn(Lt)},At.prototype.iabs=function(){return this.negative=0,this},At.prototype.abs=function(){return this.clone().iabs()},At.prototype._ishlnsubmul=function(Lt,Ht,Wt){var Gt=Lt.length+Wt,Yt;this._expand(Gt);var er,lr=0;for(Yt=0;Yt<Lt.length;Yt++){er=(this.words[Yt+Wt]|0)+lr;var Jt=(Lt.words[Yt]|0)*Ht;er-=Jt&67108863,lr=(er>>26)-(Jt/67108864|0),this.words[Yt+Wt]=er&67108863}for(;Yt<this.length-Wt;Yt++)er=(this.words[Yt+Wt]|0)+lr,lr=er>>26,this.words[Yt+Wt]=er&67108863;if(lr===0)return this.strip();for(Ct(lr===-1),lr=0,Yt=0;Yt<this.length;Yt++)er=-(this.words[Yt]|0)+lr,lr=er>>26,this.words[Yt]=er&67108863;return this.negative=1,this.strip()},At.prototype._wordDiv=function(Lt,Ht){var Wt=this.length-Lt.length,Gt=this.clone(),Yt=Lt,er=Yt.words[Yt.length-1]|0,lr=this._countBits(er);Wt=26-lr,Wt!==0&&(Yt=Yt.ushln(Wt),Gt.iushln(Wt),er=Yt.words[Yt.length-1]|0);var Jt=Gt.length-Yt.length,Ut;if(Ht!=="mod"){Ut=new At(null),Ut.length=Jt+1,Ut.words=new Array(Ut.length);for(var ir=0;ir<Ut.length;ir++)Ut.words[ir]=0}var Cr=Gt.clone()._ishlnsubmul(Yt,1,Jt);Cr.negative===0&&(Gt=Cr,Ut&&(Ut.words[Jt]=1));for(var _r=Jt-1;_r>=0;_r--){var $r=(Gt.words[Yt.length+_r]|0)*67108864+(Gt.words[Yt.length+_r-1]|0);for($r=Math.min($r/er|0,67108863),Gt._ishlnsubmul(Yt,$r,_r);Gt.negative!==0;)$r--,Gt.negative=0,Gt._ishlnsubmul(Yt,1,_r),Gt.isZero()||(Gt.negative^=1);Ut&&(Ut.words[_r]=$r)}return Ut&&Ut.strip(),Gt.strip(),Ht!=="div"&&Wt!==0&&Gt.iushrn(Wt),{div:Ut||null,mod:Gt}},At.prototype.divmod=function(Lt,Ht,Wt){if(Ct(!Lt.isZero()),this.isZero())return{div:new At(0),mod:new At(0)};var Gt,Yt,er;return this.negative!==0&&Lt.negative===0?(er=this.neg().divmod(Lt,Ht),Ht!=="mod"&&(Gt=er.div.neg()),Ht!=="div"&&(Yt=er.mod.neg(),Wt&&Yt.negative!==0&&Yt.iadd(Lt)),{div:Gt,mod:Yt}):this.negative===0&&Lt.negative!==0?(er=this.divmod(Lt.neg(),Ht),Ht!=="mod"&&(Gt=er.div.neg()),{div:Gt,mod:er.mod}):this.negative&Lt.negative?(er=this.neg().divmod(Lt.neg(),Ht),Ht!=="div"&&(Yt=er.mod.neg(),Wt&&Yt.negative!==0&&Yt.isub(Lt)),{div:er.div,mod:Yt}):Lt.length>this.length||this.cmp(Lt)<0?{div:new At(0),mod:this}:Lt.length===1?Ht==="div"?{div:this.divn(Lt.words[0]),mod:null}:Ht==="mod"?{div:null,mod:new At(this.modn(Lt.words[0]))}:{div:this.divn(Lt.words[0]),mod:new At(this.modn(Lt.words[0]))}:this._wordDiv(Lt,Ht)},At.prototype.div=function(Lt){return this.divmod(Lt,"div",!1).div},At.prototype.mod=function(Lt){return this.divmod(Lt,"mod",!1).mod},At.prototype.umod=function(Lt){return this.divmod(Lt,"mod",!0).mod},At.prototype.divRound=function(Lt){var Ht=this.divmod(Lt);if(Ht.mod.isZero())return Ht.div;var Wt=Ht.div.negative!==0?Ht.mod.isub(Lt):Ht.mod,Gt=Lt.ushrn(1),Yt=Lt.andln(1),er=Wt.cmp(Gt);return er<0||Yt===1&&er===0?Ht.div:Ht.div.negative!==0?Ht.div.isubn(1):Ht.div.iaddn(1)},At.prototype.modn=function(Lt){Ct(Lt<=67108863);for(var Ht=(1<<26)%Lt,Wt=0,Gt=this.length-1;Gt>=0;Gt--)Wt=(Ht*Wt+(this.words[Gt]|0))%Lt;return Wt},At.prototype.idivn=function(Lt){Ct(Lt<=67108863);for(var Ht=0,Wt=this.length-1;Wt>=0;Wt--){var Gt=(this.words[Wt]|0)+Ht*67108864;this.words[Wt]=Gt/Lt|0,Ht=Gt%Lt}return this.strip()},At.prototype.divn=function(Lt){return this.clone().idivn(Lt)},At.prototype.egcd=function(Lt){Ct(Lt.negative===0),Ct(!Lt.isZero());var Ht=this,Wt=Lt.clone();Ht.negative!==0?Ht=Ht.umod(Lt):Ht=Ht.clone();for(var Gt=new At(1),Yt=new At(0),er=new At(0),lr=new At(1),Jt=0;Ht.isEven()&&Wt.isEven();)Ht.iushrn(1),Wt.iushrn(1),++Jt;for(var Ut=Wt.clone(),ir=Ht.clone();!Ht.isZero();){for(var Cr=0,_r=1;!(Ht.words[0]&_r)&&Cr<26;++Cr,_r<<=1);if(Cr>0)for(Ht.iushrn(Cr);Cr-- >0;)(Gt.isOdd()||Yt.isOdd())&&(Gt.iadd(Ut),Yt.isub(ir)),Gt.iushrn(1),Yt.iushrn(1);for(var $r=0,Tr=1;!(Wt.words[0]&Tr)&&$r<26;++$r,Tr<<=1);if($r>0)for(Wt.iushrn($r);$r-- >0;)(er.isOdd()||lr.isOdd())&&(er.iadd(Ut),lr.isub(ir)),er.iushrn(1),lr.iushrn(1);Ht.cmp(Wt)>=0?(Ht.isub(Wt),Gt.isub(er),Yt.isub(lr)):(Wt.isub(Ht),er.isub(Gt),lr.isub(Yt))}return{a:er,b:lr,gcd:Wt.iushln(Jt)}},At.prototype._invmp=function(Lt){Ct(Lt.negative===0),Ct(!Lt.isZero());var Ht=this,Wt=Lt.clone();Ht.negative!==0?Ht=Ht.umod(Lt):Ht=Ht.clone();for(var Gt=new At(1),Yt=new At(0),er=Wt.clone();Ht.cmpn(1)>0&&Wt.cmpn(1)>0;){for(var lr=0,Jt=1;!(Ht.words[0]&Jt)&&lr<26;++lr,Jt<<=1);if(lr>0)for(Ht.iushrn(lr);lr-- >0;)Gt.isOdd()&&Gt.iadd(er),Gt.iushrn(1);for(var Ut=0,ir=1;!(Wt.words[0]&ir)&&Ut<26;++Ut,ir<<=1);if(Ut>0)for(Wt.iushrn(Ut);Ut-- >0;)Yt.isOdd()&&Yt.iadd(er),Yt.iushrn(1);Ht.cmp(Wt)>=0?(Ht.isub(Wt),Gt.isub(Yt)):(Wt.isub(Ht),Yt.isub(Gt))}var Cr;return Ht.cmpn(1)===0?Cr=Gt:Cr=Yt,Cr.cmpn(0)<0&&Cr.iadd(Lt),Cr},At.prototype.gcd=function(Lt){if(this.isZero())return Lt.abs();if(Lt.isZero())return this.abs();var Ht=this.clone(),Wt=Lt.clone();Ht.negative=0,Wt.negative=0;for(var Gt=0;Ht.isEven()&&Wt.isEven();Gt++)Ht.iushrn(1),Wt.iushrn(1);do{for(;Ht.isEven();)Ht.iushrn(1);for(;Wt.isEven();)Wt.iushrn(1);var Yt=Ht.cmp(Wt);if(Yt<0){var er=Ht;Ht=Wt,Wt=er}else if(Yt===0||Wt.cmpn(1)===0)break;Ht.isub(Wt)}while(!0);return Wt.iushln(Gt)},At.prototype.invm=function(Lt){return this.egcd(Lt).a.umod(Lt)},At.prototype.isEven=function(){return(this.words[0]&1)===0},At.prototype.isOdd=function(){return(this.words[0]&1)===1},At.prototype.andln=function(Lt){return this.words[0]&Lt},At.prototype.bincn=function(Lt){Ct(typeof Lt=="number");var Ht=Lt%26,Wt=(Lt-Ht)/26,Gt=1<<Ht;if(this.length<=Wt)return this._expand(Wt+1),this.words[Wt]|=Gt,this;for(var Yt=Gt,er=Wt;Yt!==0&&er<this.length;er++){var lr=this.words[er]|0;lr+=Yt,Yt=lr>>>26,lr&=67108863,this.words[er]=lr}return Yt!==0&&(this.words[er]=Yt,this.length++),this},At.prototype.isZero=function(){return this.length===1&&this.words[0]===0},At.prototype.cmpn=function(Lt){var Ht=Lt<0;if(this.negative!==0&&!Ht)return-1;if(this.negative===0&&Ht)return 1;this.strip();var Wt;if(this.length>1)Wt=1;else{Ht&&(Lt=-Lt),Ct(Lt<=67108863,"Number is too big");var Gt=this.words[0]|0;Wt=Gt===Lt?0:Gt<Lt?-1:1}return this.negative!==0?-Wt|0:Wt},At.prototype.cmp=function(Lt){if(this.negative!==0&&Lt.negative===0)return-1;if(this.negative===0&&Lt.negative!==0)return 1;var Ht=this.ucmp(Lt);return this.negative!==0?-Ht|0:Ht},At.prototype.ucmp=function(Lt){if(this.length>Lt.length)return 1;if(this.length<Lt.length)return-1;for(var Ht=0,Wt=this.length-1;Wt>=0;Wt--){var Gt=this.words[Wt]|0,Yt=Lt.words[Wt]|0;if(Gt!==Yt){Gt<Yt?Ht=-1:Gt>Yt&&(Ht=1);break}}return Ht},At.prototype.gtn=function(Lt){return this.cmpn(Lt)===1},At.prototype.gt=function(Lt){return this.cmp(Lt)===1},At.prototype.gten=function(Lt){return this.cmpn(Lt)>=0},At.prototype.gte=function(Lt){return this.cmp(Lt)>=0},At.prototype.ltn=function(Lt){return this.cmpn(Lt)===-1},At.prototype.lt=function(Lt){return this.cmp(Lt)===-1},At.prototype.lten=function(Lt){return this.cmpn(Lt)<=0},At.prototype.lte=function(Lt){return this.cmp(Lt)<=0},At.prototype.eqn=function(Lt){return this.cmpn(Lt)===0},At.prototype.eq=function(Lt){return this.cmp(Lt)===0},At.red=function(Lt){return new yr(Lt)},At.prototype.toRed=function(Lt){return Ct(!this.red,"Already a number in reduction context"),Ct(this.negative===0,"red works only with positives"),Lt.convertTo(this)._forceRed(Lt)},At.prototype.fromRed=function(){return Ct(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},At.prototype._forceRed=function(Lt){return this.red=Lt,this},At.prototype.forceRed=function(Lt){return Ct(!this.red,"Already a number in reduction context"),this._forceRed(Lt)},At.prototype.redAdd=function(Lt){return Ct(this.red,"redAdd works only with red numbers"),this.red.add(this,Lt)},At.prototype.redIAdd=function(Lt){return Ct(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,Lt)},At.prototype.redSub=function(Lt){return Ct(this.red,"redSub works only with red numbers"),this.red.sub(this,Lt)},At.prototype.redISub=function(Lt){return Ct(this.red,"redISub works only with red numbers"),this.red.isub(this,Lt)},At.prototype.redShl=function(Lt){return Ct(this.red,"redShl works only with red numbers"),this.red.shl(this,Lt)},At.prototype.redMul=function(Lt){return Ct(this.red,"redMul works only with red numbers"),this.red._verify2(this,Lt),this.red.mul(this,Lt)},At.prototype.redIMul=function(Lt){return Ct(this.red,"redMul works only with red numbers"),this.red._verify2(this,Lt),this.red.imul(this,Lt)},At.prototype.redSqr=function(){return Ct(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},At.prototype.redISqr=function(){return Ct(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},At.prototype.redSqrt=function(){return Ct(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},At.prototype.redInvm=function(){return Ct(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},At.prototype.redNeg=function(){return Ct(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},At.prototype.redPow=function(Lt){return Ct(this.red&&!Lt.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,Lt)};var dr={k256:null,p224:null,p192:null,p25519:null};function cr(rr,Lt){this.name=rr,this.p=new At(Lt,16),this.n=this.p.bitLength(),this.k=new At(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}cr.prototype._tmp=function(){var Lt=new At(null);return Lt.words=new Array(Math.ceil(this.n/13)),Lt},cr.prototype.ireduce=function(Lt){var Ht=Lt,Wt;do this.split(Ht,this.tmp),Ht=this.imulK(Ht),Ht=Ht.iadd(this.tmp),Wt=Ht.bitLength();while(Wt>this.n);var Gt=Wt<this.n?-1:Ht.ucmp(this.p);return Gt===0?(Ht.words[0]=0,Ht.length=1):Gt>0?Ht.isub(this.p):Ht.strip!==void 0?Ht.strip():Ht._strip(),Ht},cr.prototype.split=function(Lt,Ht){Lt.iushrn(this.n,0,Ht)},cr.prototype.imulK=function(Lt){return Lt.imul(this.k)};function Er(){cr.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}$t(Er,cr),Er.prototype.split=function(Lt,Ht){for(var Wt=4194303,Gt=Math.min(Lt.length,9),Yt=0;Yt<Gt;Yt++)Ht.words[Yt]=Lt.words[Yt];if(Ht.length=Gt,Lt.length<=9){Lt.words[0]=0,Lt.length=1;return}var er=Lt.words[9];for(Ht.words[Ht.length++]=er&Wt,Yt=10;Yt<Lt.length;Yt++){var lr=Lt.words[Yt]|0;Lt.words[Yt-10]=(lr&Wt)<<4|er>>>22,er=lr}er>>>=22,Lt.words[Yt-10]=er,er===0&&Lt.length>10?Lt.length-=10:Lt.length-=9},Er.prototype.imulK=function(Lt){Lt.words[Lt.length]=0,Lt.words[Lt.length+1]=0,Lt.length+=2;for(var Ht=0,Wt=0;Wt<Lt.length;Wt++){var Gt=Lt.words[Wt]|0;Ht+=Gt*977,Lt.words[Wt]=Ht&67108863,Ht=Gt*64+(Ht/67108864|0)}return Lt.words[Lt.length-1]===0&&(Lt.length--,Lt.words[Lt.length-1]===0&&Lt.length--),Lt};function pr(){cr.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}$t(pr,cr);function gr(){cr.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}$t(gr,cr);function vr(){cr.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}$t(vr,cr),vr.prototype.imulK=function(Lt){for(var Ht=0,Wt=0;Wt<Lt.length;Wt++){var Gt=(Lt.words[Wt]|0)*19+Ht,Yt=Gt&67108863;Gt>>>=26,Lt.words[Wt]=Yt,Ht=Gt}return Ht!==0&&(Lt.words[Lt.length++]=Ht),Lt},At._prime=function(Lt){if(dr[Lt])return dr[Lt];var Ht;if(Lt==="k256")Ht=new Er;else if(Lt==="p224")Ht=new pr;else if(Lt==="p192")Ht=new gr;else if(Lt==="p25519")Ht=new vr;else throw new Error("Unknown prime "+Lt);return dr[Lt]=Ht,Ht};function yr(rr){if(typeof rr=="string"){var Lt=At._prime(rr);this.m=Lt.p,this.prime=Lt}else Ct(rr.gtn(1),"modulus must be greater than 1"),this.m=rr,this.prime=null}yr.prototype._verify1=function(Lt){Ct(Lt.negative===0,"red works only with positives"),Ct(Lt.red,"red works only with red numbers")},yr.prototype._verify2=function(Lt,Ht){Ct((Lt.negative|Ht.negative)===0,"red works only with positives"),Ct(Lt.red&&Lt.red===Ht.red,"red works only with red numbers")},yr.prototype.imod=function(Lt){return this.prime?this.prime.ireduce(Lt)._forceRed(this):Lt.umod(this.m)._forceRed(this)},yr.prototype.neg=function(Lt){return Lt.isZero()?Lt.clone():this.m.sub(Lt)._forceRed(this)},yr.prototype.add=function(Lt,Ht){this._verify2(Lt,Ht);var Wt=Lt.add(Ht);return Wt.cmp(this.m)>=0&&Wt.isub(this.m),Wt._forceRed(this)},yr.prototype.iadd=function(Lt,Ht){this._verify2(Lt,Ht);var Wt=Lt.iadd(Ht);return Wt.cmp(this.m)>=0&&Wt.isub(this.m),Wt},yr.prototype.sub=function(Lt,Ht){this._verify2(Lt,Ht);var Wt=Lt.sub(Ht);return Wt.cmpn(0)<0&&Wt.iadd(this.m),Wt._forceRed(this)},yr.prototype.isub=function(Lt,Ht){this._verify2(Lt,Ht);var Wt=Lt.isub(Ht);return Wt.cmpn(0)<0&&Wt.iadd(this.m),Wt},yr.prototype.shl=function(Lt,Ht){return this._verify1(Lt),this.imod(Lt.ushln(Ht))},yr.prototype.imul=function(Lt,Ht){return this._verify2(Lt,Ht),this.imod(Lt.imul(Ht))},yr.prototype.mul=function(Lt,Ht){return this._verify2(Lt,Ht),this.imod(Lt.mul(Ht))},yr.prototype.isqr=function(Lt){return this.imul(Lt,Lt.clone())},yr.prototype.sqr=function(Lt){return this.mul(Lt,Lt)},yr.prototype.sqrt=function(Lt){if(Lt.isZero())return Lt.clone();var Ht=this.m.andln(3);if(Ct(Ht%2===1),Ht===3){var Wt=this.m.add(new At(1)).iushrn(2);return this.pow(Lt,Wt)}for(var Gt=this.m.subn(1),Yt=0;!Gt.isZero()&&Gt.andln(1)===0;)Yt++,Gt.iushrn(1);Ct(!Gt.isZero());var er=new At(1).toRed(this),lr=er.redNeg(),Jt=this.m.subn(1).iushrn(1),Ut=this.m.bitLength();for(Ut=new At(2*Ut*Ut).toRed(this);this.pow(Ut,Jt).cmp(lr)!==0;)Ut.redIAdd(lr);for(var ir=this.pow(Ut,Gt),Cr=this.pow(Lt,Gt.addn(1).iushrn(1)),_r=this.pow(Lt,Gt),$r=Yt;_r.cmp(er)!==0;){for(var Tr=_r,Dr=0;Tr.cmp(er)!==0;Dr++)Tr=Tr.redSqr();Ct(Dr<$r);var Ar=this.pow(ir,new At(1).iushln($r-Dr-1));Cr=Cr.redMul(Ar),ir=Ar.redSqr(),_r=_r.redMul(ir),$r=Dr}return Cr},yr.prototype.invm=function(Lt){var Ht=Lt._invmp(this.m);return Ht.negative!==0?(Ht.negative=0,this.imod(Ht).redNeg()):this.imod(Ht)},yr.prototype.pow=function(Lt,Ht){if(Ht.isZero())return new At(1).toRed(this);if(Ht.cmpn(1)===0)return Lt.clone();var Wt=4,Gt=new Array(1<<Wt);Gt[0]=new At(1).toRed(this),Gt[1]=Lt;for(var Yt=2;Yt<Gt.length;Yt++)Gt[Yt]=this.mul(Gt[Yt-1],Lt);var er=Gt[0],lr=0,Jt=0,Ut=Ht.bitLength()%26;for(Ut===0&&(Ut=26),Yt=Ht.length-1;Yt>=0;Yt--){for(var ir=Ht.words[Yt],Cr=Ut-1;Cr>=0;Cr--){var _r=ir>>Cr&1;if(er!==Gt[0]&&(er=this.sqr(er)),_r===0&&lr===0){Jt=0;continue}lr<<=1,lr|=_r,Jt++,!(Jt!==Wt&&(Yt!==0||Cr!==0))&&(er=this.mul(er,Gt[lr]),Jt=0,lr=0)}Ut=26}return er},yr.prototype.convertTo=function(Lt){var Ht=Lt.umod(this.m);return Ht===Lt?Ht.clone():Ht},yr.prototype.convertFrom=function(Lt){var Ht=Lt.clone();return Ht.red=null,Ht},At.mont=function(Lt){return new xr(Lt)};function xr(rr){yr.call(this,rr),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new At(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}$t(xr,yr),xr.prototype.convertTo=function(Lt){return this.imod(Lt.ushln(this.shift))},xr.prototype.convertFrom=function(Lt){var Ht=this.imod(Lt.mul(this.rinv));return Ht.red=null,Ht},xr.prototype.imul=function(Lt,Ht){if(Lt.isZero()||Ht.isZero())return Lt.words[0]=0,Lt.length=1,Lt;var Wt=Lt.imul(Ht),Gt=Wt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Yt=Wt.isub(Gt).iushrn(this.shift),er=Yt;return Yt.cmp(this.m)>=0?er=Yt.isub(this.m):Yt.cmpn(0)<0&&(er=Yt.iadd(this.m)),er._forceRed(this)},xr.prototype.mul=function(Lt,Ht){if(Lt.isZero()||Ht.isZero())return new At(0)._forceRed(this);var Wt=Lt.mul(Ht),Gt=Wt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Yt=Wt.isub(Gt).iushrn(this.shift),er=Yt;return Yt.cmp(this.m)>=0?er=Yt.isub(this.m):Yt.cmpn(0)<0&&(er=Yt.iadd(this.m)),er._forceRed(this)},xr.prototype.invm=function(Lt){var Ht=this.imod(Lt._invmp(this.m).mul(this.r2));return Ht._forceRed(this)}})(ht,commonjsGlobal)}(bn$2)),bn$2.exports}var browser$3,hasRequiredBrowser$2;function requireBrowser$2(){if(hasRequiredBrowser$2)return browser$3;hasRequiredBrowser$2=1;var ht=requireElliptic(),Et=requireBn$1();browser$3=function(Bt){return new Ct(Bt)};var yt={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};yt.p224=yt.secp224r1,yt.p256=yt.secp256r1=yt.prime256v1,yt.p192=yt.secp192r1=yt.prime192v1,yt.p384=yt.secp384r1,yt.p521=yt.secp521r1;function Ct(At){this.curveType=yt[At],this.curveType||(this.curveType={name:At}),this.curve=new ht.ec(this.curveType.name),this.keys=void 0}Ct.prototype.generateKeys=function(At,Bt){return this.keys=this.curve.genKeyPair(),this.getPublicKey(At,Bt)},Ct.prototype.computeSecret=function(At,Bt,Dt){Bt=Bt||"utf8",Buffer$g.isBuffer(At)||(At=new Buffer$g(At,Bt));var Ft=this.curve.keyFromPublic(At).getPublic(),kt=Ft.mul(this.keys.getPrivate()).getX();return $t(kt,Dt,this.curveType.byteLength)},Ct.prototype.getPublicKey=function(At,Bt){var Dt=this.keys.getPublic(Bt==="compressed",!0);return Bt==="hybrid"&&(Dt[Dt.length-1]%2?Dt[0]=7:Dt[0]=6),$t(Dt,At)},Ct.prototype.getPrivateKey=function(At){return $t(this.keys.getPrivate(),At)},Ct.prototype.setPublicKey=function(At,Bt){return Bt=Bt||"utf8",Buffer$g.isBuffer(At)||(At=new Buffer$g(At,Bt)),this.keys._importPublic(At),this},Ct.prototype.setPrivateKey=function(At,Bt){Bt=Bt||"utf8",Buffer$g.isBuffer(At)||(At=new Buffer$g(At,Bt));var Dt=new Et(At);return Dt=Dt.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(Dt),this};function $t(At,Bt,Dt){Array.isArray(At)||(At=At.toArray());var Ft=new Buffer$g(At);if(Dt&&Ft.length<Dt){var kt=new Buffer$g(Dt-Ft.length);kt.fill(0),Ft=Buffer$g.concat([kt,Ft])}return Bt?Ft.toString(Bt):Ft}return browser$3}var browser$2={},mgf,hasRequiredMgf;function requireMgf(){if(hasRequiredMgf)return mgf;hasRequiredMgf=1;var ht=browser$a,Et=safeBufferExports.Buffer;mgf=function(Ct,$t){for(var At=Et.alloc(0),Bt=0,Dt;At.length<$t;)Dt=yt(Bt++),At=Et.concat([At,ht("sha1").update(Ct).update(Dt).digest()]);return At.slice(0,$t)};function yt(Ct){var $t=Et.allocUnsafe(4);return $t.writeUInt32BE(Ct,0),$t}return mgf}var xor,hasRequiredXor;function requireXor(){return hasRequiredXor||(hasRequiredXor=1,xor=function(Et,yt){for(var Ct=Et.length,$t=-1;++$t<Ct;)Et[$t]^=yt[$t];return Et}),xor}var bn$1={exports:{}};bn$1.exports;var hasRequiredBn;function requireBn(){return hasRequiredBn||(hasRequiredBn=1,function(ht){(function(Et,yt){function Ct(rr,Lt){if(!rr)throw new Error(Lt||"Assertion failed")}function $t(rr,Lt){rr.super_=Lt;var Ht=function(){};Ht.prototype=Lt.prototype,rr.prototype=new Ht,rr.prototype.constructor=rr}function At(rr,Lt,Ht){if(At.isBN(rr))return rr;this.negative=0,this.words=null,this.length=0,this.red=null,rr!==null&&((Lt==="le"||Lt==="be")&&(Ht=Lt,Lt=10),this._init(rr||0,Lt||10,Ht||"be"))}typeof Et=="object"?Et.exports=At:yt.BN=At,At.BN=At,At.wordSize=26;var Bt;try{typeof window<"u"&&typeof window.Buffer<"u"?Bt=window.Buffer:Bt=require$$0$3.Buffer}catch{}At.isBN=function(Lt){return Lt instanceof At?!0:Lt!==null&&typeof Lt=="object"&&Lt.constructor.wordSize===At.wordSize&&Array.isArray(Lt.words)},At.max=function(Lt,Ht){return Lt.cmp(Ht)>0?Lt:Ht},At.min=function(Lt,Ht){return Lt.cmp(Ht)<0?Lt:Ht},At.prototype._init=function(Lt,Ht,Wt){if(typeof Lt=="number")return this._initNumber(Lt,Ht,Wt);if(typeof Lt=="object")return this._initArray(Lt,Ht,Wt);Ht==="hex"&&(Ht=16),Ct(Ht===(Ht|0)&&Ht>=2&&Ht<=36),Lt=Lt.toString().replace(/\s+/g,"");var Gt=0;Lt[0]==="-"&&(Gt++,this.negative=1),Gt<Lt.length&&(Ht===16?this._parseHex(Lt,Gt,Wt):(this._parseBase(Lt,Ht,Gt),Wt==="le"&&this._initArray(this.toArray(),Ht,Wt)))},At.prototype._initNumber=function(Lt,Ht,Wt){Lt<0&&(this.negative=1,Lt=-Lt),Lt<67108864?(this.words=[Lt&67108863],this.length=1):Lt<4503599627370496?(this.words=[Lt&67108863,Lt/67108864&67108863],this.length=2):(Ct(Lt<9007199254740992),this.words=[Lt&67108863,Lt/67108864&67108863,1],this.length=3),Wt==="le"&&this._initArray(this.toArray(),Ht,Wt)},At.prototype._initArray=function(Lt,Ht,Wt){if(Ct(typeof Lt.length=="number"),Lt.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(Lt.length/3),this.words=new Array(this.length);for(var Gt=0;Gt<this.length;Gt++)this.words[Gt]=0;var Yt,er,lr=0;if(Wt==="be")for(Gt=Lt.length-1,Yt=0;Gt>=0;Gt-=3)er=Lt[Gt]|Lt[Gt-1]<<8|Lt[Gt-2]<<16,this.words[Yt]|=er<<lr&67108863,this.words[Yt+1]=er>>>26-lr&67108863,lr+=24,lr>=26&&(lr-=26,Yt++);else if(Wt==="le")for(Gt=0,Yt=0;Gt<Lt.length;Gt+=3)er=Lt[Gt]|Lt[Gt+1]<<8|Lt[Gt+2]<<16,this.words[Yt]|=er<<lr&67108863,this.words[Yt+1]=er>>>26-lr&67108863,lr+=24,lr>=26&&(lr-=26,Yt++);return this.strip()};function Dt(rr,Lt){var Ht=rr.charCodeAt(Lt);return Ht>=65&&Ht<=70?Ht-55:Ht>=97&&Ht<=102?Ht-87:Ht-48&15}function Ft(rr,Lt,Ht){var Wt=Dt(rr,Ht);return Ht-1>=Lt&&(Wt|=Dt(rr,Ht-1)<<4),Wt}At.prototype._parseHex=function(Lt,Ht,Wt){this.length=Math.ceil((Lt.length-Ht)/6),this.words=new Array(this.length);for(var Gt=0;Gt<this.length;Gt++)this.words[Gt]=0;var Yt=0,er=0,lr;if(Wt==="be")for(Gt=Lt.length-1;Gt>=Ht;Gt-=2)lr=Ft(Lt,Ht,Gt)<<Yt,this.words[er]|=lr&67108863,Yt>=18?(Yt-=18,er+=1,this.words[er]|=lr>>>26):Yt+=8;else{var Jt=Lt.length-Ht;for(Gt=Jt%2===0?Ht+1:Ht;Gt<Lt.length;Gt+=2)lr=Ft(Lt,Ht,Gt)<<Yt,this.words[er]|=lr&67108863,Yt>=18?(Yt-=18,er+=1,this.words[er]|=lr>>>26):Yt+=8}this.strip()};function kt(rr,Lt,Ht,Wt){for(var Gt=0,Yt=Math.min(rr.length,Ht),er=Lt;er<Yt;er++){var lr=rr.charCodeAt(er)-48;Gt*=Wt,lr>=49?Gt+=lr-49+10:lr>=17?Gt+=lr-17+10:Gt+=lr}return Gt}At.prototype._parseBase=function(Lt,Ht,Wt){this.words=[0],this.length=1;for(var Gt=0,Yt=1;Yt<=67108863;Yt*=Ht)Gt++;Gt--,Yt=Yt/Ht|0;for(var er=Lt.length-Wt,lr=er%Gt,Jt=Math.min(er,er-lr)+Wt,Ut=0,ir=Wt;ir<Jt;ir+=Gt)Ut=kt(Lt,ir,ir+Gt,Ht),this.imuln(Yt),this.words[0]+Ut<67108864?this.words[0]+=Ut:this._iaddn(Ut);if(lr!==0){var Cr=1;for(Ut=kt(Lt,ir,Lt.length,Ht),ir=0;ir<lr;ir++)Cr*=Ht;this.imuln(Cr),this.words[0]+Ut<67108864?this.words[0]+=Ut:this._iaddn(Ut)}this.strip()},At.prototype.copy=function(Lt){Lt.words=new Array(this.length);for(var Ht=0;Ht<this.length;Ht++)Lt.words[Ht]=this.words[Ht];Lt.length=this.length,Lt.negative=this.negative,Lt.red=this.red},At.prototype.clone=function(){var Lt=new At(null);return this.copy(Lt),Lt},At.prototype._expand=function(Lt){for(;this.length<Lt;)this.words[this.length++]=0;return this},At.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},At.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},At.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var Mt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],Nt=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],jt=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];At.prototype.toString=function(Lt,Ht){Lt=Lt||10,Ht=Ht|0||1;var Wt;if(Lt===16||Lt==="hex"){Wt="";for(var Gt=0,Yt=0,er=0;er<this.length;er++){var lr=this.words[er],Jt=((lr<<Gt|Yt)&16777215).toString(16);Yt=lr>>>24-Gt&16777215,Yt!==0||er!==this.length-1?Wt=Mt[6-Jt.length]+Jt+Wt:Wt=Jt+Wt,Gt+=2,Gt>=26&&(Gt-=26,er--)}for(Yt!==0&&(Wt=Yt.toString(16)+Wt);Wt.length%Ht!==0;)Wt="0"+Wt;return this.negative!==0&&(Wt="-"+Wt),Wt}if(Lt===(Lt|0)&&Lt>=2&&Lt<=36){var Ut=Nt[Lt],ir=jt[Lt];Wt="";var Cr=this.clone();for(Cr.negative=0;!Cr.isZero();){var _r=Cr.modn(ir).toString(Lt);Cr=Cr.idivn(ir),Cr.isZero()?Wt=_r+Wt:Wt=Mt[Ut-_r.length]+_r+Wt}for(this.isZero()&&(Wt="0"+Wt);Wt.length%Ht!==0;)Wt="0"+Wt;return this.negative!==0&&(Wt="-"+Wt),Wt}Ct(!1,"Base should be between 2 and 36")},At.prototype.toNumber=function(){var Lt=this.words[0];return this.length===2?Lt+=this.words[1]*67108864:this.length===3&&this.words[2]===1?Lt+=4503599627370496+this.words[1]*67108864:this.length>2&&Ct(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-Lt:Lt},At.prototype.toJSON=function(){return this.toString(16)},At.prototype.toBuffer=function(Lt,Ht){return Ct(typeof Bt<"u"),this.toArrayLike(Bt,Lt,Ht)},At.prototype.toArray=function(Lt,Ht){return this.toArrayLike(Array,Lt,Ht)},At.prototype.toArrayLike=function(Lt,Ht,Wt){var Gt=this.byteLength(),Yt=Wt||Math.max(1,Gt);Ct(Gt<=Yt,"byte array longer than desired length"),Ct(Yt>0,"Requested array length <= 0"),this.strip();var er=Ht==="le",lr=new Lt(Yt),Jt,Ut,ir=this.clone();if(er){for(Ut=0;!ir.isZero();Ut++)Jt=ir.andln(255),ir.iushrn(8),lr[Ut]=Jt;for(;Ut<Yt;Ut++)lr[Ut]=0}else{for(Ut=0;Ut<Yt-Gt;Ut++)lr[Ut]=0;for(Ut=0;!ir.isZero();Ut++)Jt=ir.andln(255),ir.iushrn(8),lr[Yt-Ut-1]=Jt}return lr},Math.clz32?At.prototype._countBits=function(Lt){return 32-Math.clz32(Lt)}:At.prototype._countBits=function(Lt){var Ht=Lt,Wt=0;return Ht>=4096&&(Wt+=13,Ht>>>=13),Ht>=64&&(Wt+=7,Ht>>>=7),Ht>=8&&(Wt+=4,Ht>>>=4),Ht>=2&&(Wt+=2,Ht>>>=2),Wt+Ht},At.prototype._zeroBits=function(Lt){if(Lt===0)return 26;var Ht=Lt,Wt=0;return Ht&8191||(Wt+=13,Ht>>>=13),Ht&127||(Wt+=7,Ht>>>=7),Ht&15||(Wt+=4,Ht>>>=4),Ht&3||(Wt+=2,Ht>>>=2),Ht&1||Wt++,Wt},At.prototype.bitLength=function(){var Lt=this.words[this.length-1],Ht=this._countBits(Lt);return(this.length-1)*26+Ht};function zt(rr){for(var Lt=new Array(rr.bitLength()),Ht=0;Ht<Lt.length;Ht++){var Wt=Ht/26|0,Gt=Ht%26;Lt[Ht]=(rr.words[Wt]&1<<Gt)>>>Gt}return Lt}At.prototype.zeroBits=function(){if(this.isZero())return 0;for(var Lt=0,Ht=0;Ht<this.length;Ht++){var Wt=this._zeroBits(this.words[Ht]);if(Lt+=Wt,Wt!==26)break}return Lt},At.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},At.prototype.toTwos=function(Lt){return this.negative!==0?this.abs().inotn(Lt).iaddn(1):this.clone()},At.prototype.fromTwos=function(Lt){return this.testn(Lt-1)?this.notn(Lt).iaddn(1).ineg():this.clone()},At.prototype.isNeg=function(){return this.negative!==0},At.prototype.neg=function(){return this.clone().ineg()},At.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},At.prototype.iuor=function(Lt){for(;this.length<Lt.length;)this.words[this.length++]=0;for(var Ht=0;Ht<Lt.length;Ht++)this.words[Ht]=this.words[Ht]|Lt.words[Ht];return this.strip()},At.prototype.ior=function(Lt){return Ct((this.negative|Lt.negative)===0),this.iuor(Lt)},At.prototype.or=function(Lt){return this.length>Lt.length?this.clone().ior(Lt):Lt.clone().ior(this)},At.prototype.uor=function(Lt){return this.length>Lt.length?this.clone().iuor(Lt):Lt.clone().iuor(this)},At.prototype.iuand=function(Lt){var Ht;this.length>Lt.length?Ht=Lt:Ht=this;for(var Wt=0;Wt<Ht.length;Wt++)this.words[Wt]=this.words[Wt]&Lt.words[Wt];return this.length=Ht.length,this.strip()},At.prototype.iand=function(Lt){return Ct((this.negative|Lt.negative)===0),this.iuand(Lt)},At.prototype.and=function(Lt){return this.length>Lt.length?this.clone().iand(Lt):Lt.clone().iand(this)},At.prototype.uand=function(Lt){return this.length>Lt.length?this.clone().iuand(Lt):Lt.clone().iuand(this)},At.prototype.iuxor=function(Lt){var Ht,Wt;this.length>Lt.length?(Ht=this,Wt=Lt):(Ht=Lt,Wt=this);for(var Gt=0;Gt<Wt.length;Gt++)this.words[Gt]=Ht.words[Gt]^Wt.words[Gt];if(this!==Ht)for(;Gt<Ht.length;Gt++)this.words[Gt]=Ht.words[Gt];return this.length=Ht.length,this.strip()},At.prototype.ixor=function(Lt){return Ct((this.negative|Lt.negative)===0),this.iuxor(Lt)},At.prototype.xor=function(Lt){return this.length>Lt.length?this.clone().ixor(Lt):Lt.clone().ixor(this)},At.prototype.uxor=function(Lt){return this.length>Lt.length?this.clone().iuxor(Lt):Lt.clone().iuxor(this)},At.prototype.inotn=function(Lt){Ct(typeof Lt=="number"&&Lt>=0);var Ht=Math.ceil(Lt/26)|0,Wt=Lt%26;this._expand(Ht),Wt>0&&Ht--;for(var Gt=0;Gt<Ht;Gt++)this.words[Gt]=~this.words[Gt]&67108863;return Wt>0&&(this.words[Gt]=~this.words[Gt]&67108863>>26-Wt),this.strip()},At.prototype.notn=function(Lt){return this.clone().inotn(Lt)},At.prototype.setn=function(Lt,Ht){Ct(typeof Lt=="number"&&Lt>=0);var Wt=Lt/26|0,Gt=Lt%26;return this._expand(Wt+1),Ht?this.words[Wt]=this.words[Wt]|1<<Gt:this.words[Wt]=this.words[Wt]&~(1<<Gt),this.strip()},At.prototype.iadd=function(Lt){var Ht;if(this.negative!==0&&Lt.negative===0)return this.negative=0,Ht=this.isub(Lt),this.negative^=1,this._normSign();if(this.negative===0&&Lt.negative!==0)return Lt.negative=0,Ht=this.isub(Lt),Lt.negative=1,Ht._normSign();var Wt,Gt;this.length>Lt.length?(Wt=this,Gt=Lt):(Wt=Lt,Gt=this);for(var Yt=0,er=0;er<Gt.length;er++)Ht=(Wt.words[er]|0)+(Gt.words[er]|0)+Yt,this.words[er]=Ht&67108863,Yt=Ht>>>26;for(;Yt!==0&&er<Wt.length;er++)Ht=(Wt.words[er]|0)+Yt,this.words[er]=Ht&67108863,Yt=Ht>>>26;if(this.length=Wt.length,Yt!==0)this.words[this.length]=Yt,this.length++;else if(Wt!==this)for(;er<Wt.length;er++)this.words[er]=Wt.words[er];return this},At.prototype.add=function(Lt){var Ht;return Lt.negative!==0&&this.negative===0?(Lt.negative=0,Ht=this.sub(Lt),Lt.negative^=1,Ht):Lt.negative===0&&this.negative!==0?(this.negative=0,Ht=Lt.sub(this),this.negative=1,Ht):this.length>Lt.length?this.clone().iadd(Lt):Lt.clone().iadd(this)},At.prototype.isub=function(Lt){if(Lt.negative!==0){Lt.negative=0;var Ht=this.iadd(Lt);return Lt.negative=1,Ht._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(Lt),this.negative=1,this._normSign();var Wt=this.cmp(Lt);if(Wt===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Gt,Yt;Wt>0?(Gt=this,Yt=Lt):(Gt=Lt,Yt=this);for(var er=0,lr=0;lr<Yt.length;lr++)Ht=(Gt.words[lr]|0)-(Yt.words[lr]|0)+er,er=Ht>>26,this.words[lr]=Ht&67108863;for(;er!==0&&lr<Gt.length;lr++)Ht=(Gt.words[lr]|0)+er,er=Ht>>26,this.words[lr]=Ht&67108863;if(er===0&&lr<Gt.length&&Gt!==this)for(;lr<Gt.length;lr++)this.words[lr]=Gt.words[lr];return this.length=Math.max(this.length,lr),Gt!==this&&(this.negative=1),this.strip()},At.prototype.sub=function(Lt){return this.clone().isub(Lt)};function Vt(rr,Lt,Ht){Ht.negative=Lt.negative^rr.negative;var Wt=rr.length+Lt.length|0;Ht.length=Wt,Wt=Wt-1|0;var Gt=rr.words[0]|0,Yt=Lt.words[0]|0,er=Gt*Yt,lr=er&67108863,Jt=er/67108864|0;Ht.words[0]=lr;for(var Ut=1;Ut<Wt;Ut++){for(var ir=Jt>>>26,Cr=Jt&67108863,_r=Math.min(Ut,Lt.length-1),$r=Math.max(0,Ut-rr.length+1);$r<=_r;$r++){var Tr=Ut-$r|0;Gt=rr.words[Tr]|0,Yt=Lt.words[$r]|0,er=Gt*Yt+Cr,ir+=er/67108864|0,Cr=er&67108863}Ht.words[Ut]=Cr|0,Jt=ir|0}return Jt!==0?Ht.words[Ut]=Jt|0:Ht.length--,Ht.strip()}var Kt=function(Lt,Ht,Wt){var Gt=Lt.words,Yt=Ht.words,er=Wt.words,lr=0,Jt,Ut,ir,Cr=Gt[0]|0,_r=Cr&8191,$r=Cr>>>13,Tr=Gt[1]|0,Dr=Tr&8191,Ar=Tr>>>13,Fr=Gt[2]|0,Rr=Fr&8191,wr=Fr>>>13,Sr=Gt[3]|0,Br=Sr&8191,Or=Sr>>>13,Pr=Gt[4]|0,Nr=Pr&8191,Lr=Pr>>>13,Wr=Gt[5]|0,Ur=Wr&8191,jr=Wr>>>13,Kr=Gt[6]|0,qr=Kr&8191,Zr=Kr>>>13,dn=Gt[7]|0,Xr=dn&8191,un=dn>>>13,Yr=Gt[8]|0,Gr=Yr&8191,Jr=Yr>>>13,wn=Gt[9]|0,kr=wn&8191,Mr=wn>>>13,Ir=Yt[0]|0,Hr=Ir&8191,Vr=Ir>>>13,on=Yt[1]|0,Qr=on&8191,hn=on>>>13,Wn=Yt[2]|0,_n=Wn&8191,An=Wn>>>13,Yn=Yt[3]|0,Tn=Yn&8191,Nn=Yn>>>13,Zn=Yt[4]|0,$n=Zn&8191,Fn=Zn>>>13,Gn=Yt[5]|0,gn=Gn&8191,Rn=Gn>>>13,nu=Yt[6]|0,pn=nu&8191,yn=nu>>>13,jn=Yt[7]|0,Cn=jn&8191,On=jn>>>13,au=Yt[8]|0,In=au&8191,Bn=au>>>13,Vn=Yt[9]|0,En=Vn&8191,Sn=Vn>>>13;Wt.negative=Lt.negative^Ht.negative,Wt.length=19,Jt=Math.imul(_r,Hr),Ut=Math.imul(_r,Vr),Ut=Ut+Math.imul($r,Hr)|0,ir=Math.imul($r,Vr);var Xn=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Xn>>>26)|0,Xn&=67108863,Jt=Math.imul(Dr,Hr),Ut=Math.imul(Dr,Vr),Ut=Ut+Math.imul(Ar,Hr)|0,ir=Math.imul(Ar,Vr),Jt=Jt+Math.imul(_r,Qr)|0,Ut=Ut+Math.imul(_r,hn)|0,Ut=Ut+Math.imul($r,Qr)|0,ir=ir+Math.imul($r,hn)|0;var uu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(uu>>>26)|0,uu&=67108863,Jt=Math.imul(Rr,Hr),Ut=Math.imul(Rr,Vr),Ut=Ut+Math.imul(wr,Hr)|0,ir=Math.imul(wr,Vr),Jt=Jt+Math.imul(Dr,Qr)|0,Ut=Ut+Math.imul(Dr,hn)|0,Ut=Ut+Math.imul(Ar,Qr)|0,ir=ir+Math.imul(Ar,hn)|0,Jt=Jt+Math.imul(_r,_n)|0,Ut=Ut+Math.imul(_r,An)|0,Ut=Ut+Math.imul($r,_n)|0,ir=ir+Math.imul($r,An)|0;var Eu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Eu>>>26)|0,Eu&=67108863,Jt=Math.imul(Br,Hr),Ut=Math.imul(Br,Vr),Ut=Ut+Math.imul(Or,Hr)|0,ir=Math.imul(Or,Vr),Jt=Jt+Math.imul(Rr,Qr)|0,Ut=Ut+Math.imul(Rr,hn)|0,Ut=Ut+Math.imul(wr,Qr)|0,ir=ir+Math.imul(wr,hn)|0,Jt=Jt+Math.imul(Dr,_n)|0,Ut=Ut+Math.imul(Dr,An)|0,Ut=Ut+Math.imul(Ar,_n)|0,ir=ir+Math.imul(Ar,An)|0,Jt=Jt+Math.imul(_r,Tn)|0,Ut=Ut+Math.imul(_r,Nn)|0,Ut=Ut+Math.imul($r,Tn)|0,ir=ir+Math.imul($r,Nn)|0;var pu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(pu>>>26)|0,pu&=67108863,Jt=Math.imul(Nr,Hr),Ut=Math.imul(Nr,Vr),Ut=Ut+Math.imul(Lr,Hr)|0,ir=Math.imul(Lr,Vr),Jt=Jt+Math.imul(Br,Qr)|0,Ut=Ut+Math.imul(Br,hn)|0,Ut=Ut+Math.imul(Or,Qr)|0,ir=ir+Math.imul(Or,hn)|0,Jt=Jt+Math.imul(Rr,_n)|0,Ut=Ut+Math.imul(Rr,An)|0,Ut=Ut+Math.imul(wr,_n)|0,ir=ir+Math.imul(wr,An)|0,Jt=Jt+Math.imul(Dr,Tn)|0,Ut=Ut+Math.imul(Dr,Nn)|0,Ut=Ut+Math.imul(Ar,Tn)|0,ir=ir+Math.imul(Ar,Nn)|0,Jt=Jt+Math.imul(_r,$n)|0,Ut=Ut+Math.imul(_r,Fn)|0,Ut=Ut+Math.imul($r,$n)|0,ir=ir+Math.imul($r,Fn)|0;var Qn=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Qn>>>26)|0,Qn&=67108863,Jt=Math.imul(Ur,Hr),Ut=Math.imul(Ur,Vr),Ut=Ut+Math.imul(jr,Hr)|0,ir=Math.imul(jr,Vr),Jt=Jt+Math.imul(Nr,Qr)|0,Ut=Ut+Math.imul(Nr,hn)|0,Ut=Ut+Math.imul(Lr,Qr)|0,ir=ir+Math.imul(Lr,hn)|0,Jt=Jt+Math.imul(Br,_n)|0,Ut=Ut+Math.imul(Br,An)|0,Ut=Ut+Math.imul(Or,_n)|0,ir=ir+Math.imul(Or,An)|0,Jt=Jt+Math.imul(Rr,Tn)|0,Ut=Ut+Math.imul(Rr,Nn)|0,Ut=Ut+Math.imul(wr,Tn)|0,ir=ir+Math.imul(wr,Nn)|0,Jt=Jt+Math.imul(Dr,$n)|0,Ut=Ut+Math.imul(Dr,Fn)|0,Ut=Ut+Math.imul(Ar,$n)|0,ir=ir+Math.imul(Ar,Fn)|0,Jt=Jt+Math.imul(_r,gn)|0,Ut=Ut+Math.imul(_r,Rn)|0,Ut=Ut+Math.imul($r,gn)|0,ir=ir+Math.imul($r,Rn)|0;var Jn=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Jn>>>26)|0,Jn&=67108863,Jt=Math.imul(qr,Hr),Ut=Math.imul(qr,Vr),Ut=Ut+Math.imul(Zr,Hr)|0,ir=Math.imul(Zr,Vr),Jt=Jt+Math.imul(Ur,Qr)|0,Ut=Ut+Math.imul(Ur,hn)|0,Ut=Ut+Math.imul(jr,Qr)|0,ir=ir+Math.imul(jr,hn)|0,Jt=Jt+Math.imul(Nr,_n)|0,Ut=Ut+Math.imul(Nr,An)|0,Ut=Ut+Math.imul(Lr,_n)|0,ir=ir+Math.imul(Lr,An)|0,Jt=Jt+Math.imul(Br,Tn)|0,Ut=Ut+Math.imul(Br,Nn)|0,Ut=Ut+Math.imul(Or,Tn)|0,ir=ir+Math.imul(Or,Nn)|0,Jt=Jt+Math.imul(Rr,$n)|0,Ut=Ut+Math.imul(Rr,Fn)|0,Ut=Ut+Math.imul(wr,$n)|0,ir=ir+Math.imul(wr,Fn)|0,Jt=Jt+Math.imul(Dr,gn)|0,Ut=Ut+Math.imul(Dr,Rn)|0,Ut=Ut+Math.imul(Ar,gn)|0,ir=ir+Math.imul(Ar,Rn)|0,Jt=Jt+Math.imul(_r,pn)|0,Ut=Ut+Math.imul(_r,yn)|0,Ut=Ut+Math.imul($r,pn)|0,ir=ir+Math.imul($r,yn)|0;var ou=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(ou>>>26)|0,ou&=67108863,Jt=Math.imul(Xr,Hr),Ut=Math.imul(Xr,Vr),Ut=Ut+Math.imul(un,Hr)|0,ir=Math.imul(un,Vr),Jt=Jt+Math.imul(qr,Qr)|0,Ut=Ut+Math.imul(qr,hn)|0,Ut=Ut+Math.imul(Zr,Qr)|0,ir=ir+Math.imul(Zr,hn)|0,Jt=Jt+Math.imul(Ur,_n)|0,Ut=Ut+Math.imul(Ur,An)|0,Ut=Ut+Math.imul(jr,_n)|0,ir=ir+Math.imul(jr,An)|0,Jt=Jt+Math.imul(Nr,Tn)|0,Ut=Ut+Math.imul(Nr,Nn)|0,Ut=Ut+Math.imul(Lr,Tn)|0,ir=ir+Math.imul(Lr,Nn)|0,Jt=Jt+Math.imul(Br,$n)|0,Ut=Ut+Math.imul(Br,Fn)|0,Ut=Ut+Math.imul(Or,$n)|0,ir=ir+Math.imul(Or,Fn)|0,Jt=Jt+Math.imul(Rr,gn)|0,Ut=Ut+Math.imul(Rr,Rn)|0,Ut=Ut+Math.imul(wr,gn)|0,ir=ir+Math.imul(wr,Rn)|0,Jt=Jt+Math.imul(Dr,pn)|0,Ut=Ut+Math.imul(Dr,yn)|0,Ut=Ut+Math.imul(Ar,pn)|0,ir=ir+Math.imul(Ar,yn)|0,Jt=Jt+Math.imul(_r,Cn)|0,Ut=Ut+Math.imul(_r,On)|0,Ut=Ut+Math.imul($r,Cn)|0,ir=ir+Math.imul($r,On)|0;var mu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(mu>>>26)|0,mu&=67108863,Jt=Math.imul(Gr,Hr),Ut=Math.imul(Gr,Vr),Ut=Ut+Math.imul(Jr,Hr)|0,ir=Math.imul(Jr,Vr),Jt=Jt+Math.imul(Xr,Qr)|0,Ut=Ut+Math.imul(Xr,hn)|0,Ut=Ut+Math.imul(un,Qr)|0,ir=ir+Math.imul(un,hn)|0,Jt=Jt+Math.imul(qr,_n)|0,Ut=Ut+Math.imul(qr,An)|0,Ut=Ut+Math.imul(Zr,_n)|0,ir=ir+Math.imul(Zr,An)|0,Jt=Jt+Math.imul(Ur,Tn)|0,Ut=Ut+Math.imul(Ur,Nn)|0,Ut=Ut+Math.imul(jr,Tn)|0,ir=ir+Math.imul(jr,Nn)|0,Jt=Jt+Math.imul(Nr,$n)|0,Ut=Ut+Math.imul(Nr,Fn)|0,Ut=Ut+Math.imul(Lr,$n)|0,ir=ir+Math.imul(Lr,Fn)|0,Jt=Jt+Math.imul(Br,gn)|0,Ut=Ut+Math.imul(Br,Rn)|0,Ut=Ut+Math.imul(Or,gn)|0,ir=ir+Math.imul(Or,Rn)|0,Jt=Jt+Math.imul(Rr,pn)|0,Ut=Ut+Math.imul(Rr,yn)|0,Ut=Ut+Math.imul(wr,pn)|0,ir=ir+Math.imul(wr,yn)|0,Jt=Jt+Math.imul(Dr,Cn)|0,Ut=Ut+Math.imul(Dr,On)|0,Ut=Ut+Math.imul(Ar,Cn)|0,ir=ir+Math.imul(Ar,On)|0,Jt=Jt+Math.imul(_r,In)|0,Ut=Ut+Math.imul(_r,Bn)|0,Ut=Ut+Math.imul($r,In)|0,ir=ir+Math.imul($r,Bn)|0;var xu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(xu>>>26)|0,xu&=67108863,Jt=Math.imul(kr,Hr),Ut=Math.imul(kr,Vr),Ut=Ut+Math.imul(Mr,Hr)|0,ir=Math.imul(Mr,Vr),Jt=Jt+Math.imul(Gr,Qr)|0,Ut=Ut+Math.imul(Gr,hn)|0,Ut=Ut+Math.imul(Jr,Qr)|0,ir=ir+Math.imul(Jr,hn)|0,Jt=Jt+Math.imul(Xr,_n)|0,Ut=Ut+Math.imul(Xr,An)|0,Ut=Ut+Math.imul(un,_n)|0,ir=ir+Math.imul(un,An)|0,Jt=Jt+Math.imul(qr,Tn)|0,Ut=Ut+Math.imul(qr,Nn)|0,Ut=Ut+Math.imul(Zr,Tn)|0,ir=ir+Math.imul(Zr,Nn)|0,Jt=Jt+Math.imul(Ur,$n)|0,Ut=Ut+Math.imul(Ur,Fn)|0,Ut=Ut+Math.imul(jr,$n)|0,ir=ir+Math.imul(jr,Fn)|0,Jt=Jt+Math.imul(Nr,gn)|0,Ut=Ut+Math.imul(Nr,Rn)|0,Ut=Ut+Math.imul(Lr,gn)|0,ir=ir+Math.imul(Lr,Rn)|0,Jt=Jt+Math.imul(Br,pn)|0,Ut=Ut+Math.imul(Br,yn)|0,Ut=Ut+Math.imul(Or,pn)|0,ir=ir+Math.imul(Or,yn)|0,Jt=Jt+Math.imul(Rr,Cn)|0,Ut=Ut+Math.imul(Rr,On)|0,Ut=Ut+Math.imul(wr,Cn)|0,ir=ir+Math.imul(wr,On)|0,Jt=Jt+Math.imul(Dr,In)|0,Ut=Ut+Math.imul(Dr,Bn)|0,Ut=Ut+Math.imul(Ar,In)|0,ir=ir+Math.imul(Ar,Bn)|0,Jt=Jt+Math.imul(_r,En)|0,Ut=Ut+Math.imul(_r,Sn)|0,Ut=Ut+Math.imul($r,En)|0,ir=ir+Math.imul($r,Sn)|0;var _u=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(_u>>>26)|0,_u&=67108863,Jt=Math.imul(kr,Qr),Ut=Math.imul(kr,hn),Ut=Ut+Math.imul(Mr,Qr)|0,ir=Math.imul(Mr,hn),Jt=Jt+Math.imul(Gr,_n)|0,Ut=Ut+Math.imul(Gr,An)|0,Ut=Ut+Math.imul(Jr,_n)|0,ir=ir+Math.imul(Jr,An)|0,Jt=Jt+Math.imul(Xr,Tn)|0,Ut=Ut+Math.imul(Xr,Nn)|0,Ut=Ut+Math.imul(un,Tn)|0,ir=ir+Math.imul(un,Nn)|0,Jt=Jt+Math.imul(qr,$n)|0,Ut=Ut+Math.imul(qr,Fn)|0,Ut=Ut+Math.imul(Zr,$n)|0,ir=ir+Math.imul(Zr,Fn)|0,Jt=Jt+Math.imul(Ur,gn)|0,Ut=Ut+Math.imul(Ur,Rn)|0,Ut=Ut+Math.imul(jr,gn)|0,ir=ir+Math.imul(jr,Rn)|0,Jt=Jt+Math.imul(Nr,pn)|0,Ut=Ut+Math.imul(Nr,yn)|0,Ut=Ut+Math.imul(Lr,pn)|0,ir=ir+Math.imul(Lr,yn)|0,Jt=Jt+Math.imul(Br,Cn)|0,Ut=Ut+Math.imul(Br,On)|0,Ut=Ut+Math.imul(Or,Cn)|0,ir=ir+Math.imul(Or,On)|0,Jt=Jt+Math.imul(Rr,In)|0,Ut=Ut+Math.imul(Rr,Bn)|0,Ut=Ut+Math.imul(wr,In)|0,ir=ir+Math.imul(wr,Bn)|0,Jt=Jt+Math.imul(Dr,En)|0,Ut=Ut+Math.imul(Dr,Sn)|0,Ut=Ut+Math.imul(Ar,En)|0,ir=ir+Math.imul(Ar,Sn)|0;var $u=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+($u>>>26)|0,$u&=67108863,Jt=Math.imul(kr,_n),Ut=Math.imul(kr,An),Ut=Ut+Math.imul(Mr,_n)|0,ir=Math.imul(Mr,An),Jt=Jt+Math.imul(Gr,Tn)|0,Ut=Ut+Math.imul(Gr,Nn)|0,Ut=Ut+Math.imul(Jr,Tn)|0,ir=ir+Math.imul(Jr,Nn)|0,Jt=Jt+Math.imul(Xr,$n)|0,Ut=Ut+Math.imul(Xr,Fn)|0,Ut=Ut+Math.imul(un,$n)|0,ir=ir+Math.imul(un,Fn)|0,Jt=Jt+Math.imul(qr,gn)|0,Ut=Ut+Math.imul(qr,Rn)|0,Ut=Ut+Math.imul(Zr,gn)|0,ir=ir+Math.imul(Zr,Rn)|0,Jt=Jt+Math.imul(Ur,pn)|0,Ut=Ut+Math.imul(Ur,yn)|0,Ut=Ut+Math.imul(jr,pn)|0,ir=ir+Math.imul(jr,yn)|0,Jt=Jt+Math.imul(Nr,Cn)|0,Ut=Ut+Math.imul(Nr,On)|0,Ut=Ut+Math.imul(Lr,Cn)|0,ir=ir+Math.imul(Lr,On)|0,Jt=Jt+Math.imul(Br,In)|0,Ut=Ut+Math.imul(Br,Bn)|0,Ut=Ut+Math.imul(Or,In)|0,ir=ir+Math.imul(Or,Bn)|0,Jt=Jt+Math.imul(Rr,En)|0,Ut=Ut+Math.imul(Rr,Sn)|0,Ut=Ut+Math.imul(wr,En)|0,ir=ir+Math.imul(wr,Sn)|0;var Au=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Au>>>26)|0,Au&=67108863,Jt=Math.imul(kr,Tn),Ut=Math.imul(kr,Nn),Ut=Ut+Math.imul(Mr,Tn)|0,ir=Math.imul(Mr,Nn),Jt=Jt+Math.imul(Gr,$n)|0,Ut=Ut+Math.imul(Gr,Fn)|0,Ut=Ut+Math.imul(Jr,$n)|0,ir=ir+Math.imul(Jr,Fn)|0,Jt=Jt+Math.imul(Xr,gn)|0,Ut=Ut+Math.imul(Xr,Rn)|0,Ut=Ut+Math.imul(un,gn)|0,ir=ir+Math.imul(un,Rn)|0,Jt=Jt+Math.imul(qr,pn)|0,Ut=Ut+Math.imul(qr,yn)|0,Ut=Ut+Math.imul(Zr,pn)|0,ir=ir+Math.imul(Zr,yn)|0,Jt=Jt+Math.imul(Ur,Cn)|0,Ut=Ut+Math.imul(Ur,On)|0,Ut=Ut+Math.imul(jr,Cn)|0,ir=ir+Math.imul(jr,On)|0,Jt=Jt+Math.imul(Nr,In)|0,Ut=Ut+Math.imul(Nr,Bn)|0,Ut=Ut+Math.imul(Lr,In)|0,ir=ir+Math.imul(Lr,Bn)|0,Jt=Jt+Math.imul(Br,En)|0,Ut=Ut+Math.imul(Br,Sn)|0,Ut=Ut+Math.imul(Or,En)|0,ir=ir+Math.imul(Or,Sn)|0;var Bu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Bu>>>26)|0,Bu&=67108863,Jt=Math.imul(kr,$n),Ut=Math.imul(kr,Fn),Ut=Ut+Math.imul(Mr,$n)|0,ir=Math.imul(Mr,Fn),Jt=Jt+Math.imul(Gr,gn)|0,Ut=Ut+Math.imul(Gr,Rn)|0,Ut=Ut+Math.imul(Jr,gn)|0,ir=ir+Math.imul(Jr,Rn)|0,Jt=Jt+Math.imul(Xr,pn)|0,Ut=Ut+Math.imul(Xr,yn)|0,Ut=Ut+Math.imul(un,pn)|0,ir=ir+Math.imul(un,yn)|0,Jt=Jt+Math.imul(qr,Cn)|0,Ut=Ut+Math.imul(qr,On)|0,Ut=Ut+Math.imul(Zr,Cn)|0,ir=ir+Math.imul(Zr,On)|0,Jt=Jt+Math.imul(Ur,In)|0,Ut=Ut+Math.imul(Ur,Bn)|0,Ut=Ut+Math.imul(jr,In)|0,ir=ir+Math.imul(jr,Bn)|0,Jt=Jt+Math.imul(Nr,En)|0,Ut=Ut+Math.imul(Nr,Sn)|0,Ut=Ut+Math.imul(Lr,En)|0,ir=ir+Math.imul(Lr,Sn)|0;var Su=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Su>>>26)|0,Su&=67108863,Jt=Math.imul(kr,gn),Ut=Math.imul(kr,Rn),Ut=Ut+Math.imul(Mr,gn)|0,ir=Math.imul(Mr,Rn),Jt=Jt+Math.imul(Gr,pn)|0,Ut=Ut+Math.imul(Gr,yn)|0,Ut=Ut+Math.imul(Jr,pn)|0,ir=ir+Math.imul(Jr,yn)|0,Jt=Jt+Math.imul(Xr,Cn)|0,Ut=Ut+Math.imul(Xr,On)|0,Ut=Ut+Math.imul(un,Cn)|0,ir=ir+Math.imul(un,On)|0,Jt=Jt+Math.imul(qr,In)|0,Ut=Ut+Math.imul(qr,Bn)|0,Ut=Ut+Math.imul(Zr,In)|0,ir=ir+Math.imul(Zr,Bn)|0,Jt=Jt+Math.imul(Ur,En)|0,Ut=Ut+Math.imul(Ur,Sn)|0,Ut=Ut+Math.imul(jr,En)|0,ir=ir+Math.imul(jr,Sn)|0;var Ru=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(Ru>>>26)|0,Ru&=67108863,Jt=Math.imul(kr,pn),Ut=Math.imul(kr,yn),Ut=Ut+Math.imul(Mr,pn)|0,ir=Math.imul(Mr,yn),Jt=Jt+Math.imul(Gr,Cn)|0,Ut=Ut+Math.imul(Gr,On)|0,Ut=Ut+Math.imul(Jr,Cn)|0,ir=ir+Math.imul(Jr,On)|0,Jt=Jt+Math.imul(Xr,In)|0,Ut=Ut+Math.imul(Xr,Bn)|0,Ut=Ut+Math.imul(un,In)|0,ir=ir+Math.imul(un,Bn)|0,Jt=Jt+Math.imul(qr,En)|0,Ut=Ut+Math.imul(qr,Sn)|0,Ut=Ut+Math.imul(Zr,En)|0,ir=ir+Math.imul(Zr,Sn)|0;var lu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(lu>>>26)|0,lu&=67108863,Jt=Math.imul(kr,Cn),Ut=Math.imul(kr,On),Ut=Ut+Math.imul(Mr,Cn)|0,ir=Math.imul(Mr,On),Jt=Jt+Math.imul(Gr,In)|0,Ut=Ut+Math.imul(Gr,Bn)|0,Ut=Ut+Math.imul(Jr,In)|0,ir=ir+Math.imul(Jr,Bn)|0,Jt=Jt+Math.imul(Xr,En)|0,Ut=Ut+Math.imul(Xr,Sn)|0,Ut=Ut+Math.imul(un,En)|0,ir=ir+Math.imul(un,Sn)|0;var du=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(du>>>26)|0,du&=67108863,Jt=Math.imul(kr,In),Ut=Math.imul(kr,Bn),Ut=Ut+Math.imul(Mr,In)|0,ir=Math.imul(Mr,Bn),Jt=Jt+Math.imul(Gr,En)|0,Ut=Ut+Math.imul(Gr,Sn)|0,Ut=Ut+Math.imul(Jr,En)|0,ir=ir+Math.imul(Jr,Sn)|0;var fu=(lr+Jt|0)+((Ut&8191)<<13)|0;lr=(ir+(Ut>>>13)|0)+(fu>>>26)|0,fu&=67108863,Jt=Math.imul(kr,En),Ut=Math.imul(kr,Sn),Ut=Ut+Math.imul(Mr,En)|0,ir=Math.imul(Mr,Sn);var Tu=(lr+Jt|0)+((Ut&8191)<<13)|0;return lr=(ir+(Ut>>>13)|0)+(Tu>>>26)|0,Tu&=67108863,er[0]=Xn,er[1]=uu,er[2]=Eu,er[3]=pu,er[4]=Qn,er[5]=Jn,er[6]=ou,er[7]=mu,er[8]=xu,er[9]=_u,er[10]=$u,er[11]=Au,er[12]=Bu,er[13]=Su,er[14]=Ru,er[15]=lu,er[16]=du,er[17]=fu,er[18]=Tu,lr!==0&&(er[19]=lr,Wt.length++),Wt};Math.imul||(Kt=Vt);function Xt(rr,Lt,Ht){Ht.negative=Lt.negative^rr.negative,Ht.length=rr.length+Lt.length;for(var Wt=0,Gt=0,Yt=0;Yt<Ht.length-1;Yt++){var er=Gt;Gt=0;for(var lr=Wt&67108863,Jt=Math.min(Yt,Lt.length-1),Ut=Math.max(0,Yt-rr.length+1);Ut<=Jt;Ut++){var ir=Yt-Ut,Cr=rr.words[ir]|0,_r=Lt.words[Ut]|0,$r=Cr*_r,Tr=$r&67108863;er=er+($r/67108864|0)|0,Tr=Tr+lr|0,lr=Tr&67108863,er=er+(Tr>>>26)|0,Gt+=er>>>26,er&=67108863}Ht.words[Yt]=lr,Wt=er,er=Gt}return Wt!==0?Ht.words[Yt]=Wt:Ht.length--,Ht.strip()}function Qt(rr,Lt,Ht){var Wt=new Zt;return Wt.mulp(rr,Lt,Ht)}At.prototype.mulTo=function(Lt,Ht){var Wt,Gt=this.length+Lt.length;return this.length===10&&Lt.length===10?Wt=Kt(this,Lt,Ht):Gt<63?Wt=Vt(this,Lt,Ht):Gt<1024?Wt=Xt(this,Lt,Ht):Wt=Qt(this,Lt,Ht),Wt};function Zt(rr,Lt){this.x=rr,this.y=Lt}Zt.prototype.makeRBT=function(Lt){for(var Ht=new Array(Lt),Wt=At.prototype._countBits(Lt)-1,Gt=0;Gt<Lt;Gt++)Ht[Gt]=this.revBin(Gt,Wt,Lt);return Ht},Zt.prototype.revBin=function(Lt,Ht,Wt){if(Lt===0||Lt===Wt-1)return Lt;for(var Gt=0,Yt=0;Yt<Ht;Yt++)Gt|=(Lt&1)<<Ht-Yt-1,Lt>>=1;return Gt},Zt.prototype.permute=function(Lt,Ht,Wt,Gt,Yt,er){for(var lr=0;lr<er;lr++)Gt[lr]=Ht[Lt[lr]],Yt[lr]=Wt[Lt[lr]]},Zt.prototype.transform=function(Lt,Ht,Wt,Gt,Yt,er){this.permute(er,Lt,Ht,Wt,Gt,Yt);for(var lr=1;lr<Yt;lr<<=1)for(var Jt=lr<<1,Ut=Math.cos(2*Math.PI/Jt),ir=Math.sin(2*Math.PI/Jt),Cr=0;Cr<Yt;Cr+=Jt)for(var _r=Ut,$r=ir,Tr=0;Tr<lr;Tr++){var Dr=Wt[Cr+Tr],Ar=Gt[Cr+Tr],Fr=Wt[Cr+Tr+lr],Rr=Gt[Cr+Tr+lr],wr=_r*Fr-$r*Rr;Rr=_r*Rr+$r*Fr,Fr=wr,Wt[Cr+Tr]=Dr+Fr,Gt[Cr+Tr]=Ar+Rr,Wt[Cr+Tr+lr]=Dr-Fr,Gt[Cr+Tr+lr]=Ar-Rr,Tr!==Jt&&(wr=Ut*_r-ir*$r,$r=Ut*$r+ir*_r,_r=wr)}},Zt.prototype.guessLen13b=function(Lt,Ht){var Wt=Math.max(Ht,Lt)|1,Gt=Wt&1,Yt=0;for(Wt=Wt/2|0;Wt;Wt=Wt>>>1)Yt++;return 1<<Yt+1+Gt},Zt.prototype.conjugate=function(Lt,Ht,Wt){if(!(Wt<=1))for(var Gt=0;Gt<Wt/2;Gt++){var Yt=Lt[Gt];Lt[Gt]=Lt[Wt-Gt-1],Lt[Wt-Gt-1]=Yt,Yt=Ht[Gt],Ht[Gt]=-Ht[Wt-Gt-1],Ht[Wt-Gt-1]=-Yt}},Zt.prototype.normalize13b=function(Lt,Ht){for(var Wt=0,Gt=0;Gt<Ht/2;Gt++){var Yt=Math.round(Lt[2*Gt+1]/Ht)*8192+Math.round(Lt[2*Gt]/Ht)+Wt;Lt[Gt]=Yt&67108863,Yt<67108864?Wt=0:Wt=Yt/67108864|0}return Lt},Zt.prototype.convert13b=function(Lt,Ht,Wt,Gt){for(var Yt=0,er=0;er<Ht;er++)Yt=Yt+(Lt[er]|0),Wt[2*er]=Yt&8191,Yt=Yt>>>13,Wt[2*er+1]=Yt&8191,Yt=Yt>>>13;for(er=2*Ht;er<Gt;++er)Wt[er]=0;Ct(Yt===0),Ct((Yt&-8192)===0)},Zt.prototype.stub=function(Lt){for(var Ht=new Array(Lt),Wt=0;Wt<Lt;Wt++)Ht[Wt]=0;return Ht},Zt.prototype.mulp=function(Lt,Ht,Wt){var Gt=2*this.guessLen13b(Lt.length,Ht.length),Yt=this.makeRBT(Gt),er=this.stub(Gt),lr=new Array(Gt),Jt=new Array(Gt),Ut=new Array(Gt),ir=new Array(Gt),Cr=new Array(Gt),_r=new Array(Gt),$r=Wt.words;$r.length=Gt,this.convert13b(Lt.words,Lt.length,lr,Gt),this.convert13b(Ht.words,Ht.length,ir,Gt),this.transform(lr,er,Jt,Ut,Gt,Yt),this.transform(ir,er,Cr,_r,Gt,Yt);for(var Tr=0;Tr<Gt;Tr++){var Dr=Jt[Tr]*Cr[Tr]-Ut[Tr]*_r[Tr];Ut[Tr]=Jt[Tr]*_r[Tr]+Ut[Tr]*Cr[Tr],Jt[Tr]=Dr}return this.conjugate(Jt,Ut,Gt),this.transform(Jt,Ut,$r,er,Gt,Yt),this.conjugate($r,er,Gt),this.normalize13b($r,Gt),Wt.negative=Lt.negative^Ht.negative,Wt.length=Lt.length+Ht.length,Wt.strip()},At.prototype.mul=function(Lt){var Ht=new At(null);return Ht.words=new Array(this.length+Lt.length),this.mulTo(Lt,Ht)},At.prototype.mulf=function(Lt){var Ht=new At(null);return Ht.words=new Array(this.length+Lt.length),Qt(this,Lt,Ht)},At.prototype.imul=function(Lt){return this.clone().mulTo(Lt,this)},At.prototype.imuln=function(Lt){Ct(typeof Lt=="number"),Ct(Lt<67108864);for(var Ht=0,Wt=0;Wt<this.length;Wt++){var Gt=(this.words[Wt]|0)*Lt,Yt=(Gt&67108863)+(Ht&67108863);Ht>>=26,Ht+=Gt/67108864|0,Ht+=Yt>>>26,this.words[Wt]=Yt&67108863}return Ht!==0&&(this.words[Wt]=Ht,this.length++),this},At.prototype.muln=function(Lt){return this.clone().imuln(Lt)},At.prototype.sqr=function(){return this.mul(this)},At.prototype.isqr=function(){return this.imul(this.clone())},At.prototype.pow=function(Lt){var Ht=zt(Lt);if(Ht.length===0)return new At(1);for(var Wt=this,Gt=0;Gt<Ht.length&&Ht[Gt]===0;Gt++,Wt=Wt.sqr());if(++Gt<Ht.length)for(var Yt=Wt.sqr();Gt<Ht.length;Gt++,Yt=Yt.sqr())Ht[Gt]!==0&&(Wt=Wt.mul(Yt));return Wt},At.prototype.iushln=function(Lt){Ct(typeof Lt=="number"&&Lt>=0);var Ht=Lt%26,Wt=(Lt-Ht)/26,Gt=67108863>>>26-Ht<<26-Ht,Yt;if(Ht!==0){var er=0;for(Yt=0;Yt<this.length;Yt++){var lr=this.words[Yt]&Gt,Jt=(this.words[Yt]|0)-lr<<Ht;this.words[Yt]=Jt|er,er=lr>>>26-Ht}er&&(this.words[Yt]=er,this.length++)}if(Wt!==0){for(Yt=this.length-1;Yt>=0;Yt--)this.words[Yt+Wt]=this.words[Yt];for(Yt=0;Yt<Wt;Yt++)this.words[Yt]=0;this.length+=Wt}return this.strip()},At.prototype.ishln=function(Lt){return Ct(this.negative===0),this.iushln(Lt)},At.prototype.iushrn=function(Lt,Ht,Wt){Ct(typeof Lt=="number"&&Lt>=0);var Gt;Ht?Gt=(Ht-Ht%26)/26:Gt=0;var Yt=Lt%26,er=Math.min((Lt-Yt)/26,this.length),lr=67108863^67108863>>>Yt<<Yt,Jt=Wt;if(Gt-=er,Gt=Math.max(0,Gt),Jt){for(var Ut=0;Ut<er;Ut++)Jt.words[Ut]=this.words[Ut];Jt.length=er}if(er!==0)if(this.length>er)for(this.length-=er,Ut=0;Ut<this.length;Ut++)this.words[Ut]=this.words[Ut+er];else this.words[0]=0,this.length=1;var ir=0;for(Ut=this.length-1;Ut>=0&&(ir!==0||Ut>=Gt);Ut--){var Cr=this.words[Ut]|0;this.words[Ut]=ir<<26-Yt|Cr>>>Yt,ir=Cr&lr}return Jt&&ir!==0&&(Jt.words[Jt.length++]=ir),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},At.prototype.ishrn=function(Lt,Ht,Wt){return Ct(this.negative===0),this.iushrn(Lt,Ht,Wt)},At.prototype.shln=function(Lt){return this.clone().ishln(Lt)},At.prototype.ushln=function(Lt){return this.clone().iushln(Lt)},At.prototype.shrn=function(Lt){return this.clone().ishrn(Lt)},At.prototype.ushrn=function(Lt){return this.clone().iushrn(Lt)},At.prototype.testn=function(Lt){Ct(typeof Lt=="number"&&Lt>=0);var Ht=Lt%26,Wt=(Lt-Ht)/26,Gt=1<<Ht;if(this.length<=Wt)return!1;var Yt=this.words[Wt];return!!(Yt&Gt)},At.prototype.imaskn=function(Lt){Ct(typeof Lt=="number"&&Lt>=0);var Ht=Lt%26,Wt=(Lt-Ht)/26;if(Ct(this.negative===0,"imaskn works only with positive numbers"),this.length<=Wt)return this;if(Ht!==0&&Wt++,this.length=Math.min(Wt,this.length),Ht!==0){var Gt=67108863^67108863>>>Ht<<Ht;this.words[this.length-1]&=Gt}return this.strip()},At.prototype.maskn=function(Lt){return this.clone().imaskn(Lt)},At.prototype.iaddn=function(Lt){return Ct(typeof Lt=="number"),Ct(Lt<67108864),Lt<0?this.isubn(-Lt):this.negative!==0?this.length===1&&(this.words[0]|0)<Lt?(this.words[0]=Lt-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(Lt),this.negative=1,this):this._iaddn(Lt)},At.prototype._iaddn=function(Lt){this.words[0]+=Lt;for(var Ht=0;Ht<this.length&&this.words[Ht]>=67108864;Ht++)this.words[Ht]-=67108864,Ht===this.length-1?this.words[Ht+1]=1:this.words[Ht+1]++;return this.length=Math.max(this.length,Ht+1),this},At.prototype.isubn=function(Lt){if(Ct(typeof Lt=="number"),Ct(Lt<67108864),Lt<0)return this.iaddn(-Lt);if(this.negative!==0)return this.negative=0,this.iaddn(Lt),this.negative=1,this;if(this.words[0]-=Lt,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Ht=0;Ht<this.length&&this.words[Ht]<0;Ht++)this.words[Ht]+=67108864,this.words[Ht+1]-=1;return this.strip()},At.prototype.addn=function(Lt){return this.clone().iaddn(Lt)},At.prototype.subn=function(Lt){return this.clone().isubn(Lt)},At.prototype.iabs=function(){return this.negative=0,this},At.prototype.abs=function(){return this.clone().iabs()},At.prototype._ishlnsubmul=function(Lt,Ht,Wt){var Gt=Lt.length+Wt,Yt;this._expand(Gt);var er,lr=0;for(Yt=0;Yt<Lt.length;Yt++){er=(this.words[Yt+Wt]|0)+lr;var Jt=(Lt.words[Yt]|0)*Ht;er-=Jt&67108863,lr=(er>>26)-(Jt/67108864|0),this.words[Yt+Wt]=er&67108863}for(;Yt<this.length-Wt;Yt++)er=(this.words[Yt+Wt]|0)+lr,lr=er>>26,this.words[Yt+Wt]=er&67108863;if(lr===0)return this.strip();for(Ct(lr===-1),lr=0,Yt=0;Yt<this.length;Yt++)er=-(this.words[Yt]|0)+lr,lr=er>>26,this.words[Yt]=er&67108863;return this.negative=1,this.strip()},At.prototype._wordDiv=function(Lt,Ht){var Wt=this.length-Lt.length,Gt=this.clone(),Yt=Lt,er=Yt.words[Yt.length-1]|0,lr=this._countBits(er);Wt=26-lr,Wt!==0&&(Yt=Yt.ushln(Wt),Gt.iushln(Wt),er=Yt.words[Yt.length-1]|0);var Jt=Gt.length-Yt.length,Ut;if(Ht!=="mod"){Ut=new At(null),Ut.length=Jt+1,Ut.words=new Array(Ut.length);for(var ir=0;ir<Ut.length;ir++)Ut.words[ir]=0}var Cr=Gt.clone()._ishlnsubmul(Yt,1,Jt);Cr.negative===0&&(Gt=Cr,Ut&&(Ut.words[Jt]=1));for(var _r=Jt-1;_r>=0;_r--){var $r=(Gt.words[Yt.length+_r]|0)*67108864+(Gt.words[Yt.length+_r-1]|0);for($r=Math.min($r/er|0,67108863),Gt._ishlnsubmul(Yt,$r,_r);Gt.negative!==0;)$r--,Gt.negative=0,Gt._ishlnsubmul(Yt,1,_r),Gt.isZero()||(Gt.negative^=1);Ut&&(Ut.words[_r]=$r)}return Ut&&Ut.strip(),Gt.strip(),Ht!=="div"&&Wt!==0&&Gt.iushrn(Wt),{div:Ut||null,mod:Gt}},At.prototype.divmod=function(Lt,Ht,Wt){if(Ct(!Lt.isZero()),this.isZero())return{div:new At(0),mod:new At(0)};var Gt,Yt,er;return this.negative!==0&&Lt.negative===0?(er=this.neg().divmod(Lt,Ht),Ht!=="mod"&&(Gt=er.div.neg()),Ht!=="div"&&(Yt=er.mod.neg(),Wt&&Yt.negative!==0&&Yt.iadd(Lt)),{div:Gt,mod:Yt}):this.negative===0&&Lt.negative!==0?(er=this.divmod(Lt.neg(),Ht),Ht!=="mod"&&(Gt=er.div.neg()),{div:Gt,mod:er.mod}):this.negative&Lt.negative?(er=this.neg().divmod(Lt.neg(),Ht),Ht!=="div"&&(Yt=er.mod.neg(),Wt&&Yt.negative!==0&&Yt.isub(Lt)),{div:er.div,mod:Yt}):Lt.length>this.length||this.cmp(Lt)<0?{div:new At(0),mod:this}:Lt.length===1?Ht==="div"?{div:this.divn(Lt.words[0]),mod:null}:Ht==="mod"?{div:null,mod:new At(this.modn(Lt.words[0]))}:{div:this.divn(Lt.words[0]),mod:new At(this.modn(Lt.words[0]))}:this._wordDiv(Lt,Ht)},At.prototype.div=function(Lt){return this.divmod(Lt,"div",!1).div},At.prototype.mod=function(Lt){return this.divmod(Lt,"mod",!1).mod},At.prototype.umod=function(Lt){return this.divmod(Lt,"mod",!0).mod},At.prototype.divRound=function(Lt){var Ht=this.divmod(Lt);if(Ht.mod.isZero())return Ht.div;var Wt=Ht.div.negative!==0?Ht.mod.isub(Lt):Ht.mod,Gt=Lt.ushrn(1),Yt=Lt.andln(1),er=Wt.cmp(Gt);return er<0||Yt===1&&er===0?Ht.div:Ht.div.negative!==0?Ht.div.isubn(1):Ht.div.iaddn(1)},At.prototype.modn=function(Lt){Ct(Lt<=67108863);for(var Ht=(1<<26)%Lt,Wt=0,Gt=this.length-1;Gt>=0;Gt--)Wt=(Ht*Wt+(this.words[Gt]|0))%Lt;return Wt},At.prototype.idivn=function(Lt){Ct(Lt<=67108863);for(var Ht=0,Wt=this.length-1;Wt>=0;Wt--){var Gt=(this.words[Wt]|0)+Ht*67108864;this.words[Wt]=Gt/Lt|0,Ht=Gt%Lt}return this.strip()},At.prototype.divn=function(Lt){return this.clone().idivn(Lt)},At.prototype.egcd=function(Lt){Ct(Lt.negative===0),Ct(!Lt.isZero());var Ht=this,Wt=Lt.clone();Ht.negative!==0?Ht=Ht.umod(Lt):Ht=Ht.clone();for(var Gt=new At(1),Yt=new At(0),er=new At(0),lr=new At(1),Jt=0;Ht.isEven()&&Wt.isEven();)Ht.iushrn(1),Wt.iushrn(1),++Jt;for(var Ut=Wt.clone(),ir=Ht.clone();!Ht.isZero();){for(var Cr=0,_r=1;!(Ht.words[0]&_r)&&Cr<26;++Cr,_r<<=1);if(Cr>0)for(Ht.iushrn(Cr);Cr-- >0;)(Gt.isOdd()||Yt.isOdd())&&(Gt.iadd(Ut),Yt.isub(ir)),Gt.iushrn(1),Yt.iushrn(1);for(var $r=0,Tr=1;!(Wt.words[0]&Tr)&&$r<26;++$r,Tr<<=1);if($r>0)for(Wt.iushrn($r);$r-- >0;)(er.isOdd()||lr.isOdd())&&(er.iadd(Ut),lr.isub(ir)),er.iushrn(1),lr.iushrn(1);Ht.cmp(Wt)>=0?(Ht.isub(Wt),Gt.isub(er),Yt.isub(lr)):(Wt.isub(Ht),er.isub(Gt),lr.isub(Yt))}return{a:er,b:lr,gcd:Wt.iushln(Jt)}},At.prototype._invmp=function(Lt){Ct(Lt.negative===0),Ct(!Lt.isZero());var Ht=this,Wt=Lt.clone();Ht.negative!==0?Ht=Ht.umod(Lt):Ht=Ht.clone();for(var Gt=new At(1),Yt=new At(0),er=Wt.clone();Ht.cmpn(1)>0&&Wt.cmpn(1)>0;){for(var lr=0,Jt=1;!(Ht.words[0]&Jt)&&lr<26;++lr,Jt<<=1);if(lr>0)for(Ht.iushrn(lr);lr-- >0;)Gt.isOdd()&&Gt.iadd(er),Gt.iushrn(1);for(var Ut=0,ir=1;!(Wt.words[0]&ir)&&Ut<26;++Ut,ir<<=1);if(Ut>0)for(Wt.iushrn(Ut);Ut-- >0;)Yt.isOdd()&&Yt.iadd(er),Yt.iushrn(1);Ht.cmp(Wt)>=0?(Ht.isub(Wt),Gt.isub(Yt)):(Wt.isub(Ht),Yt.isub(Gt))}var Cr;return Ht.cmpn(1)===0?Cr=Gt:Cr=Yt,Cr.cmpn(0)<0&&Cr.iadd(Lt),Cr},At.prototype.gcd=function(Lt){if(this.isZero())return Lt.abs();if(Lt.isZero())return this.abs();var Ht=this.clone(),Wt=Lt.clone();Ht.negative=0,Wt.negative=0;for(var Gt=0;Ht.isEven()&&Wt.isEven();Gt++)Ht.iushrn(1),Wt.iushrn(1);do{for(;Ht.isEven();)Ht.iushrn(1);for(;Wt.isEven();)Wt.iushrn(1);var Yt=Ht.cmp(Wt);if(Yt<0){var er=Ht;Ht=Wt,Wt=er}else if(Yt===0||Wt.cmpn(1)===0)break;Ht.isub(Wt)}while(!0);return Wt.iushln(Gt)},At.prototype.invm=function(Lt){return this.egcd(Lt).a.umod(Lt)},At.prototype.isEven=function(){return(this.words[0]&1)===0},At.prototype.isOdd=function(){return(this.words[0]&1)===1},At.prototype.andln=function(Lt){return this.words[0]&Lt},At.prototype.bincn=function(Lt){Ct(typeof Lt=="number");var Ht=Lt%26,Wt=(Lt-Ht)/26,Gt=1<<Ht;if(this.length<=Wt)return this._expand(Wt+1),this.words[Wt]|=Gt,this;for(var Yt=Gt,er=Wt;Yt!==0&&er<this.length;er++){var lr=this.words[er]|0;lr+=Yt,Yt=lr>>>26,lr&=67108863,this.words[er]=lr}return Yt!==0&&(this.words[er]=Yt,this.length++),this},At.prototype.isZero=function(){return this.length===1&&this.words[0]===0},At.prototype.cmpn=function(Lt){var Ht=Lt<0;if(this.negative!==0&&!Ht)return-1;if(this.negative===0&&Ht)return 1;this.strip();var Wt;if(this.length>1)Wt=1;else{Ht&&(Lt=-Lt),Ct(Lt<=67108863,"Number is too big");var Gt=this.words[0]|0;Wt=Gt===Lt?0:Gt<Lt?-1:1}return this.negative!==0?-Wt|0:Wt},At.prototype.cmp=function(Lt){if(this.negative!==0&&Lt.negative===0)return-1;if(this.negative===0&&Lt.negative!==0)return 1;var Ht=this.ucmp(Lt);return this.negative!==0?-Ht|0:Ht},At.prototype.ucmp=function(Lt){if(this.length>Lt.length)return 1;if(this.length<Lt.length)return-1;for(var Ht=0,Wt=this.length-1;Wt>=0;Wt--){var Gt=this.words[Wt]|0,Yt=Lt.words[Wt]|0;if(Gt!==Yt){Gt<Yt?Ht=-1:Gt>Yt&&(Ht=1);break}}return Ht},At.prototype.gtn=function(Lt){return this.cmpn(Lt)===1},At.prototype.gt=function(Lt){return this.cmp(Lt)===1},At.prototype.gten=function(Lt){return this.cmpn(Lt)>=0},At.prototype.gte=function(Lt){return this.cmp(Lt)>=0},At.prototype.ltn=function(Lt){return this.cmpn(Lt)===-1},At.prototype.lt=function(Lt){return this.cmp(Lt)===-1},At.prototype.lten=function(Lt){return this.cmpn(Lt)<=0},At.prototype.lte=function(Lt){return this.cmp(Lt)<=0},At.prototype.eqn=function(Lt){return this.cmpn(Lt)===0},At.prototype.eq=function(Lt){return this.cmp(Lt)===0},At.red=function(Lt){return new yr(Lt)},At.prototype.toRed=function(Lt){return Ct(!this.red,"Already a number in reduction context"),Ct(this.negative===0,"red works only with positives"),Lt.convertTo(this)._forceRed(Lt)},At.prototype.fromRed=function(){return Ct(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},At.prototype._forceRed=function(Lt){return this.red=Lt,this},At.prototype.forceRed=function(Lt){return Ct(!this.red,"Already a number in reduction context"),this._forceRed(Lt)},At.prototype.redAdd=function(Lt){return Ct(this.red,"redAdd works only with red numbers"),this.red.add(this,Lt)},At.prototype.redIAdd=function(Lt){return Ct(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,Lt)},At.prototype.redSub=function(Lt){return Ct(this.red,"redSub works only with red numbers"),this.red.sub(this,Lt)},At.prototype.redISub=function(Lt){return Ct(this.red,"redISub works only with red numbers"),this.red.isub(this,Lt)},At.prototype.redShl=function(Lt){return Ct(this.red,"redShl works only with red numbers"),this.red.shl(this,Lt)},At.prototype.redMul=function(Lt){return Ct(this.red,"redMul works only with red numbers"),this.red._verify2(this,Lt),this.red.mul(this,Lt)},At.prototype.redIMul=function(Lt){return Ct(this.red,"redMul works only with red numbers"),this.red._verify2(this,Lt),this.red.imul(this,Lt)},At.prototype.redSqr=function(){return Ct(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},At.prototype.redISqr=function(){return Ct(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},At.prototype.redSqrt=function(){return Ct(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},At.prototype.redInvm=function(){return Ct(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},At.prototype.redNeg=function(){return Ct(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},At.prototype.redPow=function(Lt){return Ct(this.red&&!Lt.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,Lt)};var dr={k256:null,p224:null,p192:null,p25519:null};function cr(rr,Lt){this.name=rr,this.p=new At(Lt,16),this.n=this.p.bitLength(),this.k=new At(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}cr.prototype._tmp=function(){var Lt=new At(null);return Lt.words=new Array(Math.ceil(this.n/13)),Lt},cr.prototype.ireduce=function(Lt){var Ht=Lt,Wt;do this.split(Ht,this.tmp),Ht=this.imulK(Ht),Ht=Ht.iadd(this.tmp),Wt=Ht.bitLength();while(Wt>this.n);var Gt=Wt<this.n?-1:Ht.ucmp(this.p);return Gt===0?(Ht.words[0]=0,Ht.length=1):Gt>0?Ht.isub(this.p):Ht.strip!==void 0?Ht.strip():Ht._strip(),Ht},cr.prototype.split=function(Lt,Ht){Lt.iushrn(this.n,0,Ht)},cr.prototype.imulK=function(Lt){return Lt.imul(this.k)};function Er(){cr.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}$t(Er,cr),Er.prototype.split=function(Lt,Ht){for(var Wt=4194303,Gt=Math.min(Lt.length,9),Yt=0;Yt<Gt;Yt++)Ht.words[Yt]=Lt.words[Yt];if(Ht.length=Gt,Lt.length<=9){Lt.words[0]=0,Lt.length=1;return}var er=Lt.words[9];for(Ht.words[Ht.length++]=er&Wt,Yt=10;Yt<Lt.length;Yt++){var lr=Lt.words[Yt]|0;Lt.words[Yt-10]=(lr&Wt)<<4|er>>>22,er=lr}er>>>=22,Lt.words[Yt-10]=er,er===0&&Lt.length>10?Lt.length-=10:Lt.length-=9},Er.prototype.imulK=function(Lt){Lt.words[Lt.length]=0,Lt.words[Lt.length+1]=0,Lt.length+=2;for(var Ht=0,Wt=0;Wt<Lt.length;Wt++){var Gt=Lt.words[Wt]|0;Ht+=Gt*977,Lt.words[Wt]=Ht&67108863,Ht=Gt*64+(Ht/67108864|0)}return Lt.words[Lt.length-1]===0&&(Lt.length--,Lt.words[Lt.length-1]===0&&Lt.length--),Lt};function pr(){cr.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}$t(pr,cr);function gr(){cr.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}$t(gr,cr);function vr(){cr.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}$t(vr,cr),vr.prototype.imulK=function(Lt){for(var Ht=0,Wt=0;Wt<Lt.length;Wt++){var Gt=(Lt.words[Wt]|0)*19+Ht,Yt=Gt&67108863;Gt>>>=26,Lt.words[Wt]=Yt,Ht=Gt}return Ht!==0&&(Lt.words[Lt.length++]=Ht),Lt},At._prime=function(Lt){if(dr[Lt])return dr[Lt];var Ht;if(Lt==="k256")Ht=new Er;else if(Lt==="p224")Ht=new pr;else if(Lt==="p192")Ht=new gr;else if(Lt==="p25519")Ht=new vr;else throw new Error("Unknown prime "+Lt);return dr[Lt]=Ht,Ht};function yr(rr){if(typeof rr=="string"){var Lt=At._prime(rr);this.m=Lt.p,this.prime=Lt}else Ct(rr.gtn(1),"modulus must be greater than 1"),this.m=rr,this.prime=null}yr.prototype._verify1=function(Lt){Ct(Lt.negative===0,"red works only with positives"),Ct(Lt.red,"red works only with red numbers")},yr.prototype._verify2=function(Lt,Ht){Ct((Lt.negative|Ht.negative)===0,"red works only with positives"),Ct(Lt.red&&Lt.red===Ht.red,"red works only with red numbers")},yr.prototype.imod=function(Lt){return this.prime?this.prime.ireduce(Lt)._forceRed(this):Lt.umod(this.m)._forceRed(this)},yr.prototype.neg=function(Lt){return Lt.isZero()?Lt.clone():this.m.sub(Lt)._forceRed(this)},yr.prototype.add=function(Lt,Ht){this._verify2(Lt,Ht);var Wt=Lt.add(Ht);return Wt.cmp(this.m)>=0&&Wt.isub(this.m),Wt._forceRed(this)},yr.prototype.iadd=function(Lt,Ht){this._verify2(Lt,Ht);var Wt=Lt.iadd(Ht);return Wt.cmp(this.m)>=0&&Wt.isub(this.m),Wt},yr.prototype.sub=function(Lt,Ht){this._verify2(Lt,Ht);var Wt=Lt.sub(Ht);return Wt.cmpn(0)<0&&Wt.iadd(this.m),Wt._forceRed(this)},yr.prototype.isub=function(Lt,Ht){this._verify2(Lt,Ht);var Wt=Lt.isub(Ht);return Wt.cmpn(0)<0&&Wt.iadd(this.m),Wt},yr.prototype.shl=function(Lt,Ht){return this._verify1(Lt),this.imod(Lt.ushln(Ht))},yr.prototype.imul=function(Lt,Ht){return this._verify2(Lt,Ht),this.imod(Lt.imul(Ht))},yr.prototype.mul=function(Lt,Ht){return this._verify2(Lt,Ht),this.imod(Lt.mul(Ht))},yr.prototype.isqr=function(Lt){return this.imul(Lt,Lt.clone())},yr.prototype.sqr=function(Lt){return this.mul(Lt,Lt)},yr.prototype.sqrt=function(Lt){if(Lt.isZero())return Lt.clone();var Ht=this.m.andln(3);if(Ct(Ht%2===1),Ht===3){var Wt=this.m.add(new At(1)).iushrn(2);return this.pow(Lt,Wt)}for(var Gt=this.m.subn(1),Yt=0;!Gt.isZero()&&Gt.andln(1)===0;)Yt++,Gt.iushrn(1);Ct(!Gt.isZero());var er=new At(1).toRed(this),lr=er.redNeg(),Jt=this.m.subn(1).iushrn(1),Ut=this.m.bitLength();for(Ut=new At(2*Ut*Ut).toRed(this);this.pow(Ut,Jt).cmp(lr)!==0;)Ut.redIAdd(lr);for(var ir=this.pow(Ut,Gt),Cr=this.pow(Lt,Gt.addn(1).iushrn(1)),_r=this.pow(Lt,Gt),$r=Yt;_r.cmp(er)!==0;){for(var Tr=_r,Dr=0;Tr.cmp(er)!==0;Dr++)Tr=Tr.redSqr();Ct(Dr<$r);var Ar=this.pow(ir,new At(1).iushln($r-Dr-1));Cr=Cr.redMul(Ar),ir=Ar.redSqr(),_r=_r.redMul(ir),$r=Dr}return Cr},yr.prototype.invm=function(Lt){var Ht=Lt._invmp(this.m);return Ht.negative!==0?(Ht.negative=0,this.imod(Ht).redNeg()):this.imod(Ht)},yr.prototype.pow=function(Lt,Ht){if(Ht.isZero())return new At(1).toRed(this);if(Ht.cmpn(1)===0)return Lt.clone();var Wt=4,Gt=new Array(1<<Wt);Gt[0]=new At(1).toRed(this),Gt[1]=Lt;for(var Yt=2;Yt<Gt.length;Yt++)Gt[Yt]=this.mul(Gt[Yt-1],Lt);var er=Gt[0],lr=0,Jt=0,Ut=Ht.bitLength()%26;for(Ut===0&&(Ut=26),Yt=Ht.length-1;Yt>=0;Yt--){for(var ir=Ht.words[Yt],Cr=Ut-1;Cr>=0;Cr--){var _r=ir>>Cr&1;if(er!==Gt[0]&&(er=this.sqr(er)),_r===0&&lr===0){Jt=0;continue}lr<<=1,lr|=_r,Jt++,!(Jt!==Wt&&(Yt!==0||Cr!==0))&&(er=this.mul(er,Gt[lr]),Jt=0,lr=0)}Ut=26}return er},yr.prototype.convertTo=function(Lt){var Ht=Lt.umod(this.m);return Ht===Lt?Ht.clone():Ht},yr.prototype.convertFrom=function(Lt){var Ht=Lt.clone();return Ht.red=null,Ht},At.mont=function(Lt){return new xr(Lt)};function xr(rr){yr.call(this,rr),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new At(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}$t(xr,yr),xr.prototype.convertTo=function(Lt){return this.imod(Lt.ushln(this.shift))},xr.prototype.convertFrom=function(Lt){var Ht=this.imod(Lt.mul(this.rinv));return Ht.red=null,Ht},xr.prototype.imul=function(Lt,Ht){if(Lt.isZero()||Ht.isZero())return Lt.words[0]=0,Lt.length=1,Lt;var Wt=Lt.imul(Ht),Gt=Wt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Yt=Wt.isub(Gt).iushrn(this.shift),er=Yt;return Yt.cmp(this.m)>=0?er=Yt.isub(this.m):Yt.cmpn(0)<0&&(er=Yt.iadd(this.m)),er._forceRed(this)},xr.prototype.mul=function(Lt,Ht){if(Lt.isZero()||Ht.isZero())return new At(0)._forceRed(this);var Wt=Lt.mul(Ht),Gt=Wt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Yt=Wt.isub(Gt).iushrn(this.shift),er=Yt;return Yt.cmp(this.m)>=0?er=Yt.isub(this.m):Yt.cmpn(0)<0&&(er=Yt.iadd(this.m)),er._forceRed(this)},xr.prototype.invm=function(Lt){var Ht=this.imod(Lt._invmp(this.m).mul(this.r2));return Ht._forceRed(this)}})(ht,commonjsGlobal)}(bn$1)),bn$1.exports}var withPublic_1,hasRequiredWithPublic;function requireWithPublic(){if(hasRequiredWithPublic)return withPublic_1;hasRequiredWithPublic=1;var ht=requireBn(),Et=safeBufferExports.Buffer;function yt(Ct,$t){return Et.from(Ct.toRed(ht.mont($t.modulus)).redPow(new ht($t.publicExponent)).fromRed().toArray())}return withPublic_1=yt,withPublic_1}var publicEncrypt,hasRequiredPublicEncrypt;function requirePublicEncrypt(){if(hasRequiredPublicEncrypt)return publicEncrypt;hasRequiredPublicEncrypt=1;var ht=requireParseAsn1(),Et=browserExports,yt=browser$a,Ct=requireMgf(),$t=requireXor(),At=requireBn(),Bt=requireWithPublic(),Dt=requireBrowserifyRsa(),Ft=safeBufferExports.Buffer;publicEncrypt=function(zt,Vt,Kt){var Xt;zt.padding?Xt=zt.padding:Kt?Xt=1:Xt=4;var Qt=ht(zt),Zt;if(Xt===4)Zt=kt(Qt,Vt);else if(Xt===1)Zt=Mt(Qt,Vt,Kt);else if(Xt===3){if(Zt=new At(Vt),Zt.cmp(Qt.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return Kt?Dt(Zt,Qt):Bt(Zt,Qt)};function kt(jt,zt){var Vt=jt.modulus.byteLength(),Kt=zt.length,Xt=yt("sha1").update(Ft.alloc(0)).digest(),Qt=Xt.length,Zt=2*Qt;if(Kt>Vt-Zt-2)throw new Error("message too long");var dr=Ft.alloc(Vt-Kt-Zt-2),cr=Vt-Qt-1,Er=Et(Qt),pr=$t(Ft.concat([Xt,dr,Ft.alloc(1,1),zt],cr),Ct(Er,cr)),gr=$t(Er,Ct(pr,Qt));return new At(Ft.concat([Ft.alloc(1),gr,pr],Vt))}function Mt(jt,zt,Vt){var Kt=zt.length,Xt=jt.modulus.byteLength();if(Kt>Xt-11)throw new Error("message too long");var Qt;return Vt?Qt=Ft.alloc(Xt-Kt-3,255):Qt=Nt(Xt-Kt-3),new At(Ft.concat([Ft.from([0,Vt?1:2]),Qt,Ft.alloc(1),zt],Xt))}function Nt(jt){for(var zt=Ft.allocUnsafe(jt),Vt=0,Kt=Et(jt*2),Xt=0,Qt;Vt<jt;)Xt===Kt.length&&(Kt=Et(jt*2),Xt=0),Qt=Kt[Xt++],Qt&&(zt[Vt++]=Qt);return zt}return publicEncrypt}var privateDecrypt,hasRequiredPrivateDecrypt;function requirePrivateDecrypt(){if(hasRequiredPrivateDecrypt)return privateDecrypt;hasRequiredPrivateDecrypt=1;var ht=requireParseAsn1(),Et=requireMgf(),yt=requireXor(),Ct=requireBn(),$t=requireBrowserifyRsa(),At=browser$a,Bt=requireWithPublic(),Dt=safeBufferExports.Buffer;privateDecrypt=function(jt,zt,Vt){var Kt;jt.padding?Kt=jt.padding:Vt?Kt=1:Kt=4;var Xt=ht(jt),Qt=Xt.modulus.byteLength();if(zt.length>Qt||new Ct(zt).cmp(Xt.modulus)>=0)throw new Error("decryption error");var Zt;Vt?Zt=Bt(new Ct(zt),Xt):Zt=$t(zt,Xt);var dr=Dt.alloc(Qt-Zt.length);if(Zt=Dt.concat([dr,Zt],Qt),Kt===4)return Ft(Xt,Zt);if(Kt===1)return kt(Xt,Zt,Vt);if(Kt===3)return Zt;throw new Error("unknown padding")};function Ft(Nt,jt){var zt=Nt.modulus.byteLength(),Vt=At("sha1").update(Dt.alloc(0)).digest(),Kt=Vt.length;if(jt[0]!==0)throw new Error("decryption error");var Xt=jt.slice(1,Kt+1),Qt=jt.slice(Kt+1),Zt=yt(Xt,Et(Qt,Kt)),dr=yt(Qt,Et(Zt,zt-Kt-1));if(Mt(Vt,dr.slice(0,Kt)))throw new Error("decryption error");for(var cr=Kt;dr[cr]===0;)cr++;if(dr[cr++]!==1)throw new Error("decryption error");return dr.slice(cr)}function kt(Nt,jt,zt){for(var Vt=jt.slice(0,2),Kt=2,Xt=0;jt[Kt++]!==0;)if(Kt>=jt.length){Xt++;break}var Qt=jt.slice(2,Kt-1);if((Vt.toString("hex")!=="0002"&&!zt||Vt.toString("hex")!=="0001"&&zt)&&Xt++,Qt.length<8&&Xt++,Xt)throw new Error("decryption error");return jt.slice(Kt)}function Mt(Nt,jt){Nt=Dt.from(Nt),jt=Dt.from(jt);var zt=0,Vt=Nt.length;Nt.length!==jt.length&&(zt++,Vt=Math.min(Nt.length,jt.length));for(var Kt=-1;++Kt<Vt;)zt+=Nt[Kt]^jt[Kt];return zt}return privateDecrypt}var hasRequiredBrowser$1;function requireBrowser$1(){return hasRequiredBrowser$1||(hasRequiredBrowser$1=1,function(ht){ht.publicEncrypt=requirePublicEncrypt(),ht.privateDecrypt=requirePrivateDecrypt(),ht.privateEncrypt=function(yt,Ct){return ht.publicEncrypt(yt,Ct,!0)},ht.publicDecrypt=function(yt,Ct){return ht.privateDecrypt(yt,Ct,!0)}}(browser$2)),browser$2}var browser$1={},hasRequiredBrowser;function requireBrowser(){if(hasRequiredBrowser)return browser$1;hasRequiredBrowser=1;function ht(){throw new Error(`secure random number generation not supported by this browser
use chrome, FireFox or Internet Explorer 11`)}var Et=safeBufferExports,yt=browserExports,Ct=Et.Buffer,$t=Et.kMaxLength,At=commonjsGlobal.crypto||commonjsGlobal.msCrypto,Bt=Math.pow(2,32)-1;function Dt(jt,zt){if(typeof jt!="number"||jt!==jt)throw new TypeError("offset must be a number");if(jt>Bt||jt<0)throw new TypeError("offset must be a uint32");if(jt>$t||jt>zt)throw new RangeError("offset out of range")}function Ft(jt,zt,Vt){if(typeof jt!="number"||jt!==jt)throw new TypeError("size must be a number");if(jt>Bt||jt<0)throw new TypeError("size must be a uint32");if(jt+zt>Vt||jt>$t)throw new RangeError("buffer too small")}At&&At.getRandomValues||!process$1$1.browser?(browser$1.randomFill=kt,browser$1.randomFillSync=Nt):(browser$1.randomFill=ht,browser$1.randomFillSync=ht);function kt(jt,zt,Vt,Kt){if(!Ct.isBuffer(jt)&&!(jt instanceof commonjsGlobal.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof zt=="function")Kt=zt,zt=0,Vt=jt.length;else if(typeof Vt=="function")Kt=Vt,Vt=jt.length-zt;else if(typeof Kt!="function")throw new TypeError('"cb" argument must be a function');return Dt(zt,jt.length),Ft(Vt,zt,jt.length),Mt(jt,zt,Vt,Kt)}function Mt(jt,zt,Vt,Kt){if(process$1$1.browser){var Xt=jt.buffer,Qt=new Uint8Array(Xt,zt,Vt);if(At.getRandomValues(Qt),Kt){process$1$1.nextTick(function(){Kt(null,jt)});return}return jt}if(Kt){yt(Vt,function(dr,cr){if(dr)return Kt(dr);cr.copy(jt,zt),Kt(null,jt)});return}var Zt=yt(Vt);return Zt.copy(jt,zt),jt}function Nt(jt,zt,Vt){if(typeof zt>"u"&&(zt=0),!Ct.isBuffer(jt)&&!(jt instanceof commonjsGlobal.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return Dt(zt,jt.length),Vt===void 0&&(Vt=jt.length-zt),Ft(Vt,zt,jt.length),Mt(jt,zt,Vt)}return browser$1}var hasRequiredCryptoBrowserify;function requireCryptoBrowserify(){if(hasRequiredCryptoBrowserify)return cryptoBrowserify;hasRequiredCryptoBrowserify=1,cryptoBrowserify.randomBytes=cryptoBrowserify.rng=cryptoBrowserify.pseudoRandomBytes=cryptoBrowserify.prng=browserExports,cryptoBrowserify.createHash=cryptoBrowserify.Hash=browser$a,cryptoBrowserify.createHmac=cryptoBrowserify.Hmac=requireBrowser$8();var ht=requireAlgos(),Et=Object.keys(ht),yt=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(Et);cryptoBrowserify.getHashes=function(){return yt};var Ct=requireBrowser$7();cryptoBrowserify.pbkdf2=Ct.pbkdf2,cryptoBrowserify.pbkdf2Sync=Ct.pbkdf2Sync;var $t=requireBrowser$5();cryptoBrowserify.Cipher=$t.Cipher,cryptoBrowserify.createCipher=$t.createCipher,cryptoBrowserify.Cipheriv=$t.Cipheriv,cryptoBrowserify.createCipheriv=$t.createCipheriv,cryptoBrowserify.Decipher=$t.Decipher,cryptoBrowserify.createDecipher=$t.createDecipher,cryptoBrowserify.Decipheriv=$t.Decipheriv,cryptoBrowserify.createDecipheriv=$t.createDecipheriv,cryptoBrowserify.getCiphers=$t.getCiphers,cryptoBrowserify.listCiphers=$t.listCiphers;var At=requireBrowser$4();cryptoBrowserify.DiffieHellmanGroup=At.DiffieHellmanGroup,cryptoBrowserify.createDiffieHellmanGroup=At.createDiffieHellmanGroup,cryptoBrowserify.getDiffieHellman=At.getDiffieHellman,cryptoBrowserify.createDiffieHellman=At.createDiffieHellman,cryptoBrowserify.DiffieHellman=At.DiffieHellman;var Bt=requireBrowser$3();cryptoBrowserify.createSign=Bt.createSign,cryptoBrowserify.Sign=Bt.Sign,cryptoBrowserify.createVerify=Bt.createVerify,cryptoBrowserify.Verify=Bt.Verify,cryptoBrowserify.createECDH=requireBrowser$2();var Dt=requireBrowser$1();cryptoBrowserify.publicEncrypt=Dt.publicEncrypt,cryptoBrowserify.privateEncrypt=Dt.privateEncrypt,cryptoBrowserify.publicDecrypt=Dt.publicDecrypt,cryptoBrowserify.privateDecrypt=Dt.privateDecrypt;var Ft=requireBrowser();return cryptoBrowserify.randomFill=Ft.randomFill,cryptoBrowserify.randomFillSync=Ft.randomFillSync,cryptoBrowserify.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
`))},cryptoBrowserify.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6},cryptoBrowserify}Object.defineProperty(node$2,"__esModule",{value:!0});node$2.NodeRandomSource=void 0;const wipe_1=wipe$1;class NodeRandomSource{constructor(){if(this.isAvailable=!1,this.isInstantiated=!1,typeof commonjsRequire<"u"){const Et=requireCryptoBrowserify();Et&&Et.randomBytes&&(this._crypto=Et,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(Et){if(!this.isAvailable||!this._crypto)throw new Error("Node.js random byte generator is not available.");let yt=this._crypto.randomBytes(Et);if(yt.length!==Et)throw new Error("NodeRandomSource: got fewer bytes than requested");const Ct=new Uint8Array(Et);for(let $t=0;$t<Ct.length;$t++)Ct[$t]=yt[$t];return(0,wipe_1.wipe)(yt),Ct}}node$2.NodeRandomSource=NodeRandomSource;Object.defineProperty(system,"__esModule",{value:!0});system.SystemRandomSource=void 0;const browser_1=browser$d,node_1=node$2;class SystemRandomSource{constructor(){if(this.isAvailable=!1,this.name="",this._source=new browser_1.BrowserRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Browser";return}if(this._source=new node_1.NodeRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Node";return}}randomBytes(Et){if(!this.isAvailable)throw new Error("System random byte generator is not available.");return this._source.randomBytes(Et)}}system.SystemRandomSource=SystemRandomSource;(function(ht){Object.defineProperty(ht,"__esModule",{value:!0}),ht.randomStringForEntropy=ht.randomString=ht.randomUint32=ht.randomBytes=ht.defaultRandomSource=void 0;const Et=system,yt=binary,Ct=wipe$1;ht.defaultRandomSource=new Et.SystemRandomSource;function $t(kt,Mt=ht.defaultRandomSource){return Mt.randomBytes(kt)}ht.randomBytes=$t;function At(kt=ht.defaultRandomSource){const Mt=$t(4,kt),Nt=(0,yt.readUint32LE)(Mt);return(0,Ct.wipe)(Mt),Nt}ht.randomUint32=At;const Bt="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function Dt(kt,Mt=Bt,Nt=ht.defaultRandomSource){if(Mt.length<2)throw new Error("randomString charset is too short");if(Mt.length>256)throw new Error("randomString charset is too long");let jt="";const zt=Mt.length,Vt=256-256%zt;for(;kt>0;){const Kt=$t(Math.ceil(kt*256/Vt),Nt);for(let Xt=0;Xt<Kt.length&&kt>0;Xt++){const Qt=Kt[Xt];Qt<Vt&&(jt+=Mt.charAt(Qt%zt),kt--)}(0,Ct.wipe)(Kt)}return jt}ht.randomString=Dt;function Ft(kt,Mt=Bt,Nt=ht.defaultRandomSource){const jt=Math.ceil(kt/(Math.log(Mt.length)/Math.LN2));return Dt(jt,Mt,Nt)}ht.randomStringForEntropy=Ft})(random);var sha256={};(function(ht){Object.defineProperty(ht,"__esModule",{value:!0});var Et=binary,yt=wipe$1;ht.DIGEST_LENGTH=32,ht.BLOCK_SIZE=64;var Ct=function(){function Dt(){this.digestLength=ht.DIGEST_LENGTH,this.blockSize=ht.BLOCK_SIZE,this._state=new Int32Array(8),this._temp=new Int32Array(64),this._buffer=new Uint8Array(128),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return Dt.prototype._initState=function(){this._state[0]=1779033703,this._state[1]=3144134277,this._state[2]=1013904242,this._state[3]=2773480762,this._state[4]=1359893119,this._state[5]=2600822924,this._state[6]=528734635,this._state[7]=1541459225},Dt.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},Dt.prototype.clean=function(){yt.wipe(this._buffer),yt.wipe(this._temp),this.reset()},Dt.prototype.update=function(Ft,kt){if(kt===void 0&&(kt=Ft.length),this._finished)throw new Error("SHA256: can't update because hash was finished.");var Mt=0;if(this._bytesHashed+=kt,this._bufferLength>0){for(;this._bufferLength<this.blockSize&&kt>0;)this._buffer[this._bufferLength++]=Ft[Mt++],kt--;this._bufferLength===this.blockSize&&(At(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(kt>=this.blockSize&&(Mt=At(this._temp,this._state,Ft,Mt,kt),kt%=this.blockSize);kt>0;)this._buffer[this._bufferLength++]=Ft[Mt++],kt--;return this},Dt.prototype.finish=function(Ft){if(!this._finished){var kt=this._bytesHashed,Mt=this._bufferLength,Nt=kt/536870912|0,jt=kt<<3,zt=kt%64<56?64:128;this._buffer[Mt]=128;for(var Vt=Mt+1;Vt<zt-8;Vt++)this._buffer[Vt]=0;Et.writeUint32BE(Nt,this._buffer,zt-8),Et.writeUint32BE(jt,this._buffer,zt-4),At(this._temp,this._state,this._buffer,0,zt),this._finished=!0}for(var Vt=0;Vt<this.digestLength/4;Vt++)Et.writeUint32BE(this._state[Vt],Ft,Vt*4);return this},Dt.prototype.digest=function(){var Ft=new Uint8Array(this.digestLength);return this.finish(Ft),Ft},Dt.prototype.saveState=function(){if(this._finished)throw new Error("SHA256: cannot save finished state");return{state:new Int32Array(this._state),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},Dt.prototype.restoreState=function(Ft){return this._state.set(Ft.state),this._bufferLength=Ft.bufferLength,Ft.buffer&&this._buffer.set(Ft.buffer),this._bytesHashed=Ft.bytesHashed,this._finished=!1,this},Dt.prototype.cleanSavedState=function(Ft){yt.wipe(Ft.state),Ft.buffer&&yt.wipe(Ft.buffer),Ft.bufferLength=0,Ft.bytesHashed=0},Dt}();ht.SHA256=Ct;var $t=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function At(Dt,Ft,kt,Mt,Nt){for(;Nt>=64;){for(var jt=Ft[0],zt=Ft[1],Vt=Ft[2],Kt=Ft[3],Xt=Ft[4],Qt=Ft[5],Zt=Ft[6],dr=Ft[7],cr=0;cr<16;cr++){var Er=Mt+cr*4;Dt[cr]=Et.readUint32BE(kt,Er)}for(var cr=16;cr<64;cr++){var pr=Dt[cr-2],gr=(pr>>>17|pr<<15)^(pr>>>19|pr<<13)^pr>>>10;pr=Dt[cr-15];var vr=(pr>>>7|pr<<25)^(pr>>>18|pr<<14)^pr>>>3;Dt[cr]=(gr+Dt[cr-7]|0)+(vr+Dt[cr-16]|0)}for(var cr=0;cr<64;cr++){var gr=(((Xt>>>6|Xt<<26)^(Xt>>>11|Xt<<21)^(Xt>>>25|Xt<<7))+(Xt&Qt^~Xt&Zt)|0)+(dr+($t[cr]+Dt[cr]|0)|0)|0,vr=((jt>>>2|jt<<30)^(jt>>>13|jt<<19)^(jt>>>22|jt<<10))+(jt&zt^jt&Vt^zt&Vt)|0;dr=Zt,Zt=Qt,Qt=Xt,Xt=Kt+gr|0,Kt=Vt,Vt=zt,zt=jt,jt=gr+vr|0}Ft[0]+=jt,Ft[1]+=zt,Ft[2]+=Vt,Ft[3]+=Kt,Ft[4]+=Xt,Ft[5]+=Qt,Ft[6]+=Zt,Ft[7]+=dr,Mt+=64,Nt-=64}return Mt}function Bt(Dt){var Ft=new Ct;Ft.update(Dt);var kt=Ft.digest();return Ft.clean(),kt}ht.hash=Bt})(sha256);var x25519={};(function(ht){Object.defineProperty(ht,"__esModule",{value:!0}),ht.sharedKey=ht.generateKeyPair=ht.generateKeyPairFromSeed=ht.scalarMultBase=ht.scalarMult=ht.SHARED_KEY_LENGTH=ht.SECRET_KEY_LENGTH=ht.PUBLIC_KEY_LENGTH=void 0;const Et=random,yt=wipe$1;ht.PUBLIC_KEY_LENGTH=32,ht.SECRET_KEY_LENGTH=32,ht.SHARED_KEY_LENGTH=32;function Ct(cr){const Er=new Float64Array(16);if(cr)for(let pr=0;pr<cr.length;pr++)Er[pr]=cr[pr];return Er}const $t=new Uint8Array(32);$t[0]=9;const At=Ct([56129,1]);function Bt(cr){let Er=1;for(let pr=0;pr<16;pr++){let gr=cr[pr]+Er+65535;Er=Math.floor(gr/65536),cr[pr]=gr-Er*65536}cr[0]+=Er-1+37*(Er-1)}function Dt(cr,Er,pr){const gr=~(pr-1);for(let vr=0;vr<16;vr++){const yr=gr&(cr[vr]^Er[vr]);cr[vr]^=yr,Er[vr]^=yr}}function Ft(cr,Er){const pr=Ct(),gr=Ct();for(let vr=0;vr<16;vr++)gr[vr]=Er[vr];Bt(gr),Bt(gr),Bt(gr);for(let vr=0;vr<2;vr++){pr[0]=gr[0]-65517;for(let xr=1;xr<15;xr++)pr[xr]=gr[xr]-65535-(pr[xr-1]>>16&1),pr[xr-1]&=65535;pr[15]=gr[15]-32767-(pr[14]>>16&1);const yr=pr[15]>>16&1;pr[14]&=65535,Dt(gr,pr,1-yr)}for(let vr=0;vr<16;vr++)cr[2*vr]=gr[vr]&255,cr[2*vr+1]=gr[vr]>>8}function kt(cr,Er){for(let pr=0;pr<16;pr++)cr[pr]=Er[2*pr]+(Er[2*pr+1]<<8);cr[15]&=32767}function Mt(cr,Er,pr){for(let gr=0;gr<16;gr++)cr[gr]=Er[gr]+pr[gr]}function Nt(cr,Er,pr){for(let gr=0;gr<16;gr++)cr[gr]=Er[gr]-pr[gr]}function jt(cr,Er,pr){let gr,vr,yr=0,xr=0,rr=0,Lt=0,Ht=0,Wt=0,Gt=0,Yt=0,er=0,lr=0,Jt=0,Ut=0,ir=0,Cr=0,_r=0,$r=0,Tr=0,Dr=0,Ar=0,Fr=0,Rr=0,wr=0,Sr=0,Br=0,Or=0,Pr=0,Nr=0,Lr=0,Wr=0,Ur=0,jr=0,Kr=pr[0],qr=pr[1],Zr=pr[2],dn=pr[3],Xr=pr[4],un=pr[5],Yr=pr[6],Gr=pr[7],Jr=pr[8],wn=pr[9],kr=pr[10],Mr=pr[11],Ir=pr[12],Hr=pr[13],Vr=pr[14],on=pr[15];gr=Er[0],yr+=gr*Kr,xr+=gr*qr,rr+=gr*Zr,Lt+=gr*dn,Ht+=gr*Xr,Wt+=gr*un,Gt+=gr*Yr,Yt+=gr*Gr,er+=gr*Jr,lr+=gr*wn,Jt+=gr*kr,Ut+=gr*Mr,ir+=gr*Ir,Cr+=gr*Hr,_r+=gr*Vr,$r+=gr*on,gr=Er[1],xr+=gr*Kr,rr+=gr*qr,Lt+=gr*Zr,Ht+=gr*dn,Wt+=gr*Xr,Gt+=gr*un,Yt+=gr*Yr,er+=gr*Gr,lr+=gr*Jr,Jt+=gr*wn,Ut+=gr*kr,ir+=gr*Mr,Cr+=gr*Ir,_r+=gr*Hr,$r+=gr*Vr,Tr+=gr*on,gr=Er[2],rr+=gr*Kr,Lt+=gr*qr,Ht+=gr*Zr,Wt+=gr*dn,Gt+=gr*Xr,Yt+=gr*un,er+=gr*Yr,lr+=gr*Gr,Jt+=gr*Jr,Ut+=gr*wn,ir+=gr*kr,Cr+=gr*Mr,_r+=gr*Ir,$r+=gr*Hr,Tr+=gr*Vr,Dr+=gr*on,gr=Er[3],Lt+=gr*Kr,Ht+=gr*qr,Wt+=gr*Zr,Gt+=gr*dn,Yt+=gr*Xr,er+=gr*un,lr+=gr*Yr,Jt+=gr*Gr,Ut+=gr*Jr,ir+=gr*wn,Cr+=gr*kr,_r+=gr*Mr,$r+=gr*Ir,Tr+=gr*Hr,Dr+=gr*Vr,Ar+=gr*on,gr=Er[4],Ht+=gr*Kr,Wt+=gr*qr,Gt+=gr*Zr,Yt+=gr*dn,er+=gr*Xr,lr+=gr*un,Jt+=gr*Yr,Ut+=gr*Gr,ir+=gr*Jr,Cr+=gr*wn,_r+=gr*kr,$r+=gr*Mr,Tr+=gr*Ir,Dr+=gr*Hr,Ar+=gr*Vr,Fr+=gr*on,gr=Er[5],Wt+=gr*Kr,Gt+=gr*qr,Yt+=gr*Zr,er+=gr*dn,lr+=gr*Xr,Jt+=gr*un,Ut+=gr*Yr,ir+=gr*Gr,Cr+=gr*Jr,_r+=gr*wn,$r+=gr*kr,Tr+=gr*Mr,Dr+=gr*Ir,Ar+=gr*Hr,Fr+=gr*Vr,Rr+=gr*on,gr=Er[6],Gt+=gr*Kr,Yt+=gr*qr,er+=gr*Zr,lr+=gr*dn,Jt+=gr*Xr,Ut+=gr*un,ir+=gr*Yr,Cr+=gr*Gr,_r+=gr*Jr,$r+=gr*wn,Tr+=gr*kr,Dr+=gr*Mr,Ar+=gr*Ir,Fr+=gr*Hr,Rr+=gr*Vr,wr+=gr*on,gr=Er[7],Yt+=gr*Kr,er+=gr*qr,lr+=gr*Zr,Jt+=gr*dn,Ut+=gr*Xr,ir+=gr*un,Cr+=gr*Yr,_r+=gr*Gr,$r+=gr*Jr,Tr+=gr*wn,Dr+=gr*kr,Ar+=gr*Mr,Fr+=gr*Ir,Rr+=gr*Hr,wr+=gr*Vr,Sr+=gr*on,gr=Er[8],er+=gr*Kr,lr+=gr*qr,Jt+=gr*Zr,Ut+=gr*dn,ir+=gr*Xr,Cr+=gr*un,_r+=gr*Yr,$r+=gr*Gr,Tr+=gr*Jr,Dr+=gr*wn,Ar+=gr*kr,Fr+=gr*Mr,Rr+=gr*Ir,wr+=gr*Hr,Sr+=gr*Vr,Br+=gr*on,gr=Er[9],lr+=gr*Kr,Jt+=gr*qr,Ut+=gr*Zr,ir+=gr*dn,Cr+=gr*Xr,_r+=gr*un,$r+=gr*Yr,Tr+=gr*Gr,Dr+=gr*Jr,Ar+=gr*wn,Fr+=gr*kr,Rr+=gr*Mr,wr+=gr*Ir,Sr+=gr*Hr,Br+=gr*Vr,Or+=gr*on,gr=Er[10],Jt+=gr*Kr,Ut+=gr*qr,ir+=gr*Zr,Cr+=gr*dn,_r+=gr*Xr,$r+=gr*un,Tr+=gr*Yr,Dr+=gr*Gr,Ar+=gr*Jr,Fr+=gr*wn,Rr+=gr*kr,wr+=gr*Mr,Sr+=gr*Ir,Br+=gr*Hr,Or+=gr*Vr,Pr+=gr*on,gr=Er[11],Ut+=gr*Kr,ir+=gr*qr,Cr+=gr*Zr,_r+=gr*dn,$r+=gr*Xr,Tr+=gr*un,Dr+=gr*Yr,Ar+=gr*Gr,Fr+=gr*Jr,Rr+=gr*wn,wr+=gr*kr,Sr+=gr*Mr,Br+=gr*Ir,Or+=gr*Hr,Pr+=gr*Vr,Nr+=gr*on,gr=Er[12],ir+=gr*Kr,Cr+=gr*qr,_r+=gr*Zr,$r+=gr*dn,Tr+=gr*Xr,Dr+=gr*un,Ar+=gr*Yr,Fr+=gr*Gr,Rr+=gr*Jr,wr+=gr*wn,Sr+=gr*kr,Br+=gr*Mr,Or+=gr*Ir,Pr+=gr*Hr,Nr+=gr*Vr,Lr+=gr*on,gr=Er[13],Cr+=gr*Kr,_r+=gr*qr,$r+=gr*Zr,Tr+=gr*dn,Dr+=gr*Xr,Ar+=gr*un,Fr+=gr*Yr,Rr+=gr*Gr,wr+=gr*Jr,Sr+=gr*wn,Br+=gr*kr,Or+=gr*Mr,Pr+=gr*Ir,Nr+=gr*Hr,Lr+=gr*Vr,Wr+=gr*on,gr=Er[14],_r+=gr*Kr,$r+=gr*qr,Tr+=gr*Zr,Dr+=gr*dn,Ar+=gr*Xr,Fr+=gr*un,Rr+=gr*Yr,wr+=gr*Gr,Sr+=gr*Jr,Br+=gr*wn,Or+=gr*kr,Pr+=gr*Mr,Nr+=gr*Ir,Lr+=gr*Hr,Wr+=gr*Vr,Ur+=gr*on,gr=Er[15],$r+=gr*Kr,Tr+=gr*qr,Dr+=gr*Zr,Ar+=gr*dn,Fr+=gr*Xr,Rr+=gr*un,wr+=gr*Yr,Sr+=gr*Gr,Br+=gr*Jr,Or+=gr*wn,Pr+=gr*kr,Nr+=gr*Mr,Lr+=gr*Ir,Wr+=gr*Hr,Ur+=gr*Vr,jr+=gr*on,yr+=38*Tr,xr+=38*Dr,rr+=38*Ar,Lt+=38*Fr,Ht+=38*Rr,Wt+=38*wr,Gt+=38*Sr,Yt+=38*Br,er+=38*Or,lr+=38*Pr,Jt+=38*Nr,Ut+=38*Lr,ir+=38*Wr,Cr+=38*Ur,_r+=38*jr,vr=1,gr=yr+vr+65535,vr=Math.floor(gr/65536),yr=gr-vr*65536,gr=xr+vr+65535,vr=Math.floor(gr/65536),xr=gr-vr*65536,gr=rr+vr+65535,vr=Math.floor(gr/65536),rr=gr-vr*65536,gr=Lt+vr+65535,vr=Math.floor(gr/65536),Lt=gr-vr*65536,gr=Ht+vr+65535,vr=Math.floor(gr/65536),Ht=gr-vr*65536,gr=Wt+vr+65535,vr=Math.floor(gr/65536),Wt=gr-vr*65536,gr=Gt+vr+65535,vr=Math.floor(gr/65536),Gt=gr-vr*65536,gr=Yt+vr+65535,vr=Math.floor(gr/65536),Yt=gr-vr*65536,gr=er+vr+65535,vr=Math.floor(gr/65536),er=gr-vr*65536,gr=lr+vr+65535,vr=Math.floor(gr/65536),lr=gr-vr*65536,gr=Jt+vr+65535,vr=Math.floor(gr/65536),Jt=gr-vr*65536,gr=Ut+vr+65535,vr=Math.floor(gr/65536),Ut=gr-vr*65536,gr=ir+vr+65535,vr=Math.floor(gr/65536),ir=gr-vr*65536,gr=Cr+vr+65535,vr=Math.floor(gr/65536),Cr=gr-vr*65536,gr=_r+vr+65535,vr=Math.floor(gr/65536),_r=gr-vr*65536,gr=$r+vr+65535,vr=Math.floor(gr/65536),$r=gr-vr*65536,yr+=vr-1+37*(vr-1),vr=1,gr=yr+vr+65535,vr=Math.floor(gr/65536),yr=gr-vr*65536,gr=xr+vr+65535,vr=Math.floor(gr/65536),xr=gr-vr*65536,gr=rr+vr+65535,vr=Math.floor(gr/65536),rr=gr-vr*65536,gr=Lt+vr+65535,vr=Math.floor(gr/65536),Lt=gr-vr*65536,gr=Ht+vr+65535,vr=Math.floor(gr/65536),Ht=gr-vr*65536,gr=Wt+vr+65535,vr=Math.floor(gr/65536),Wt=gr-vr*65536,gr=Gt+vr+65535,vr=Math.floor(gr/65536),Gt=gr-vr*65536,gr=Yt+vr+65535,vr=Math.floor(gr/65536),Yt=gr-vr*65536,gr=er+vr+65535,vr=Math.floor(gr/65536),er=gr-vr*65536,gr=lr+vr+65535,vr=Math.floor(gr/65536),lr=gr-vr*65536,gr=Jt+vr+65535,vr=Math.floor(gr/65536),Jt=gr-vr*65536,gr=Ut+vr+65535,vr=Math.floor(gr/65536),Ut=gr-vr*65536,gr=ir+vr+65535,vr=Math.floor(gr/65536),ir=gr-vr*65536,gr=Cr+vr+65535,vr=Math.floor(gr/65536),Cr=gr-vr*65536,gr=_r+vr+65535,vr=Math.floor(gr/65536),_r=gr-vr*65536,gr=$r+vr+65535,vr=Math.floor(gr/65536),$r=gr-vr*65536,yr+=vr-1+37*(vr-1),cr[0]=yr,cr[1]=xr,cr[2]=rr,cr[3]=Lt,cr[4]=Ht,cr[5]=Wt,cr[6]=Gt,cr[7]=Yt,cr[8]=er,cr[9]=lr,cr[10]=Jt,cr[11]=Ut,cr[12]=ir,cr[13]=Cr,cr[14]=_r,cr[15]=$r}function zt(cr,Er){jt(cr,Er,Er)}function Vt(cr,Er){const pr=Ct();for(let gr=0;gr<16;gr++)pr[gr]=Er[gr];for(let gr=253;gr>=0;gr--)zt(pr,pr),gr!==2&&gr!==4&&jt(pr,pr,Er);for(let gr=0;gr<16;gr++)cr[gr]=pr[gr]}function Kt(cr,Er){const pr=new Uint8Array(32),gr=new Float64Array(80),vr=Ct(),yr=Ct(),xr=Ct(),rr=Ct(),Lt=Ct(),Ht=Ct();for(let er=0;er<31;er++)pr[er]=cr[er];pr[31]=cr[31]&127|64,pr[0]&=248,kt(gr,Er);for(let er=0;er<16;er++)yr[er]=gr[er];vr[0]=rr[0]=1;for(let er=254;er>=0;--er){const lr=pr[er>>>3]>>>(er&7)&1;Dt(vr,yr,lr),Dt(xr,rr,lr),Mt(Lt,vr,xr),Nt(vr,vr,xr),Mt(xr,yr,rr),Nt(yr,yr,rr),zt(rr,Lt),zt(Ht,vr),jt(vr,xr,vr),jt(xr,yr,Lt),Mt(Lt,vr,xr),Nt(vr,vr,xr),zt(yr,vr),Nt(xr,rr,Ht),jt(vr,xr,At),Mt(vr,vr,rr),jt(xr,xr,vr),jt(vr,rr,Ht),jt(rr,yr,gr),zt(yr,Lt),Dt(vr,yr,lr),Dt(xr,rr,lr)}for(let er=0;er<16;er++)gr[er+16]=vr[er],gr[er+32]=xr[er],gr[er+48]=yr[er],gr[er+64]=rr[er];const Wt=gr.subarray(32),Gt=gr.subarray(16);Vt(Wt,Wt),jt(Gt,Gt,Wt);const Yt=new Uint8Array(32);return Ft(Yt,Gt),Yt}ht.scalarMult=Kt;function Xt(cr){return Kt(cr,$t)}ht.scalarMultBase=Xt;function Qt(cr){if(cr.length!==ht.SECRET_KEY_LENGTH)throw new Error(`x25519: seed must be ${ht.SECRET_KEY_LENGTH} bytes`);const Er=new Uint8Array(cr);return{publicKey:Xt(Er),secretKey:Er}}ht.generateKeyPairFromSeed=Qt;function Zt(cr){const Er=(0,Et.randomBytes)(32,cr),pr=Qt(Er);return(0,yt.wipe)(Er),pr}ht.generateKeyPair=Zt;function dr(cr,Er,pr=!1){if(cr.length!==ht.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(Er.length!==ht.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");const gr=Kt(cr,Er);if(pr){let vr=0;for(let yr=0;yr<gr.length;yr++)vr|=gr[yr];if(vr===0)throw new Error("X25519: invalid shared key")}return gr}ht.sharedKey=dr})(x25519);function base$3(ht,Et){if(ht.length>=255)throw new TypeError("Alphabet too long");for(var yt=new Uint8Array(256),Ct=0;Ct<yt.length;Ct++)yt[Ct]=255;for(var $t=0;$t<ht.length;$t++){var At=ht.charAt($t),Bt=At.charCodeAt(0);if(yt[Bt]!==255)throw new TypeError(At+" is ambiguous");yt[Bt]=$t}var Dt=ht.length,Ft=ht.charAt(0),kt=Math.log(Dt)/Math.log(256),Mt=Math.log(256)/Math.log(Dt);function Nt(Vt){if(Vt instanceof Uint8Array||(ArrayBuffer.isView(Vt)?Vt=new Uint8Array(Vt.buffer,Vt.byteOffset,Vt.byteLength):Array.isArray(Vt)&&(Vt=Uint8Array.from(Vt))),!(Vt instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(Vt.length===0)return"";for(var Kt=0,Xt=0,Qt=0,Zt=Vt.length;Qt!==Zt&&Vt[Qt]===0;)Qt++,Kt++;for(var dr=(Zt-Qt)*Mt+1>>>0,cr=new Uint8Array(dr);Qt!==Zt;){for(var Er=Vt[Qt],pr=0,gr=dr-1;(Er!==0||pr<Xt)&&gr!==-1;gr--,pr++)Er+=256*cr[gr]>>>0,cr[gr]=Er%Dt>>>0,Er=Er/Dt>>>0;if(Er!==0)throw new Error("Non-zero carry");Xt=pr,Qt++}for(var vr=dr-Xt;vr!==dr&&cr[vr]===0;)vr++;for(var yr=Ft.repeat(Kt);vr<dr;++vr)yr+=ht.charAt(cr[vr]);return yr}function jt(Vt){if(typeof Vt!="string")throw new TypeError("Expected String");if(Vt.length===0)return new Uint8Array;var Kt=0;if(Vt[Kt]!==" "){for(var Xt=0,Qt=0;Vt[Kt]===Ft;)Xt++,Kt++;for(var Zt=(Vt.length-Kt)*kt+1>>>0,dr=new Uint8Array(Zt);Vt[Kt];){var cr=yt[Vt.charCodeAt(Kt)];if(cr===255)return;for(var Er=0,pr=Zt-1;(cr!==0||Er<Qt)&&pr!==-1;pr--,Er++)cr+=Dt*dr[pr]>>>0,dr[pr]=cr%256>>>0,cr=cr/256>>>0;if(cr!==0)throw new Error("Non-zero carry");Qt=Er,Kt++}if(Vt[Kt]!==" "){for(var gr=Zt-Qt;gr!==Zt&&dr[gr]===0;)gr++;for(var vr=new Uint8Array(Xt+(Zt-gr)),yr=Xt;gr!==Zt;)vr[yr++]=dr[gr++];return vr}}}function zt(Vt){var Kt=jt(Vt);if(Kt)return Kt;throw new Error(`Non-${Et} character`)}return{encode:Nt,decodeUnsafe:jt,decode:zt}}var src$1=base$3,_brrp__multiformats_scope_baseX=src$1;const coerce=ht=>{if(ht instanceof Uint8Array&&ht.constructor.name==="Uint8Array")return ht;if(ht instanceof ArrayBuffer)return new Uint8Array(ht);if(ArrayBuffer.isView(ht))return new Uint8Array(ht.buffer,ht.byteOffset,ht.byteLength);throw new Error("Unknown type, must be binary type")},fromString=ht=>new TextEncoder().encode(ht),toString$l=ht=>new TextDecoder().decode(ht);class Encoder{constructor(Et,yt,Ct){this.name=Et,this.prefix=yt,this.baseEncode=Ct}encode(Et){if(Et instanceof Uint8Array)return`${this.prefix}${this.baseEncode(Et)}`;throw Error("Unknown type, must be binary type")}}class Decoder{constructor(Et,yt,Ct){if(this.name=Et,this.prefix=yt,yt.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=yt.codePointAt(0),this.baseDecode=Ct}decode(Et){if(typeof Et=="string"){if(Et.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(Et)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(Et.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(Et){return or$1(this,Et)}}class ComposedDecoder{constructor(Et){this.decoders=Et}or(Et){return or$1(this,Et)}decode(Et){const yt=Et[0],Ct=this.decoders[yt];if(Ct)return Ct.decode(Et);throw RangeError(`Unable to decode multibase string ${JSON.stringify(Et)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const or$1=(ht,Et)=>new ComposedDecoder({...ht.decoders||{[ht.prefix]:ht},...Et.decoders||{[Et.prefix]:Et}});class Codec{constructor(Et,yt,Ct,$t){this.name=Et,this.prefix=yt,this.baseEncode=Ct,this.baseDecode=$t,this.encoder=new Encoder(Et,yt,Ct),this.decoder=new Decoder(Et,yt,$t)}encode(Et){return this.encoder.encode(Et)}decode(Et){return this.decoder.decode(Et)}}const from$1=({name:ht,prefix:Et,encode:yt,decode:Ct})=>new Codec(ht,Et,yt,Ct),baseX=({prefix:ht,name:Et,alphabet:yt})=>{const{encode:Ct,decode:$t}=_brrp__multiformats_scope_baseX(yt,Et);return from$1({prefix:ht,name:Et,encode:Ct,decode:At=>coerce($t(At))})},decode$6=(ht,Et,yt,Ct)=>{const $t={};for(let Mt=0;Mt<Et.length;++Mt)$t[Et[Mt]]=Mt;let At=ht.length;for(;ht[At-1]==="=";)--At;const Bt=new Uint8Array(At*yt/8|0);let Dt=0,Ft=0,kt=0;for(let Mt=0;Mt<At;++Mt){const Nt=$t[ht[Mt]];if(Nt===void 0)throw new SyntaxError(`Non-${Ct} character`);Ft=Ft<<yt|Nt,Dt+=yt,Dt>=8&&(Dt-=8,Bt[kt++]=255&Ft>>Dt)}if(Dt>=yt||255&Ft<<8-Dt)throw new SyntaxError("Unexpected end of data");return Bt},encode$4=(ht,Et,yt)=>{const Ct=Et[Et.length-1]==="=",$t=(1<<yt)-1;let At="",Bt=0,Dt=0;for(let Ft=0;Ft<ht.length;++Ft)for(Dt=Dt<<8|ht[Ft],Bt+=8;Bt>yt;)Bt-=yt,At+=Et[$t&Dt>>Bt];if(Bt&&(At+=Et[$t&Dt<<yt-Bt]),Ct)for(;At.length*yt&7;)At+="=";return At},rfc4648=({name:ht,prefix:Et,bitsPerChar:yt,alphabet:Ct})=>from$1({prefix:Et,name:ht,encode($t){return encode$4($t,Ct,yt)},decode($t){return decode$6($t,Ct,yt,ht)}}),identity$7=from$1({prefix:"\0",name:"identity",encode:ht=>toString$l(ht),decode:ht=>fromString(ht)}),identityBase=Object.freeze(Object.defineProperty({__proto__:null,identity:identity$7},Symbol.toStringTag,{value:"Module"})),base2$1=rfc4648({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),base2$2=Object.freeze(Object.defineProperty({__proto__:null,base2:base2$1},Symbol.toStringTag,{value:"Module"})),base8=rfc4648({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),base8$1=Object.freeze(Object.defineProperty({__proto__:null,base8},Symbol.toStringTag,{value:"Module"})),base10=baseX({prefix:"9",name:"base10",alphabet:"0123456789"}),base10$1=Object.freeze(Object.defineProperty({__proto__:null,base10},Symbol.toStringTag,{value:"Module"})),base16=rfc4648({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),base16upper=rfc4648({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),base16$1=Object.freeze(Object.defineProperty({__proto__:null,base16,base16upper},Symbol.toStringTag,{value:"Module"})),base32=rfc4648({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),base32upper=rfc4648({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),base32pad=rfc4648({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),base32padupper=rfc4648({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),base32hex=rfc4648({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),base32hexupper=rfc4648({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),base32hexpad=rfc4648({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),base32hexpadupper=rfc4648({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),base32z=rfc4648({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),base32$1=Object.freeze(Object.defineProperty({__proto__:null,base32,base32hex,base32hexpad,base32hexpadupper,base32hexupper,base32pad,base32padupper,base32upper,base32z},Symbol.toStringTag,{value:"Module"})),base36=baseX({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),base36upper=baseX({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),base36$1=Object.freeze(Object.defineProperty({__proto__:null,base36,base36upper},Symbol.toStringTag,{value:"Module"})),base58btc=baseX({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),base58flickr=baseX({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),base58=Object.freeze(Object.defineProperty({__proto__:null,base58btc,base58flickr},Symbol.toStringTag,{value:"Module"})),base64=rfc4648({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),base64pad=rfc4648({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),base64url=rfc4648({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),base64urlpad=rfc4648({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),base64$1=Object.freeze(Object.defineProperty({__proto__:null,base64,base64pad,base64url,base64urlpad},Symbol.toStringTag,{value:"Module"})),alphabet=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),alphabetBytesToChars=alphabet.reduce((ht,Et,yt)=>(ht[yt]=Et,ht),[]),alphabetCharsToBytes=alphabet.reduce((ht,Et,yt)=>(ht[Et.codePointAt(0)]=yt,ht),[]);function encode$3(ht){return ht.reduce((Et,yt)=>(Et+=alphabetBytesToChars[yt],Et),"")}function decode$5(ht){const Et=[];for(const yt of ht){const Ct=alphabetCharsToBytes[yt.codePointAt(0)];if(Ct===void 0)throw new Error(`Non-base256emoji character: ${yt}`);Et.push(Ct)}return new Uint8Array(Et)}const base256emoji=from$1({prefix:"🚀",name:"base256emoji",encode:encode$3,decode:decode$5}),base256emoji$1=Object.freeze(Object.defineProperty({__proto__:null,base256emoji},Symbol.toStringTag,{value:"Module"}));new TextEncoder;new TextDecoder;var cjs$2={};/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var extendStatics=function(ht,Et){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(yt,Ct){yt.__proto__=Ct}||function(yt,Ct){for(var $t in Ct)Ct.hasOwnProperty($t)&&(yt[$t]=Ct[$t])},extendStatics(ht,Et)};function __extends$9(ht,Et){extendStatics(ht,Et);function yt(){this.constructor=ht}ht.prototype=Et===null?Object.create(Et):(yt.prototype=Et.prototype,new yt)}var __assign$5=function(){return __assign$5=Object.assign||function(Et){for(var yt,Ct=1,$t=arguments.length;Ct<$t;Ct++){yt=arguments[Ct];for(var At in yt)Object.prototype.hasOwnProperty.call(yt,At)&&(Et[At]=yt[At])}return Et},__assign$5.apply(this,arguments)};function __rest$N(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt}function __decorate(ht,Et,yt,Ct){var $t=arguments.length,At=$t<3?Et:Ct===null?Ct=Object.getOwnPropertyDescriptor(Et,yt):Ct,Bt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")At=Reflect.decorate(ht,Et,yt,Ct);else for(var Dt=ht.length-1;Dt>=0;Dt--)(Bt=ht[Dt])&&(At=($t<3?Bt(At):$t>3?Bt(Et,yt,At):Bt(Et,yt))||At);return $t>3&&At&&Object.defineProperty(Et,yt,At),At}function __param(ht,Et){return function(yt,Ct){Et(yt,Ct,ht)}}function __metadata(ht,Et){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(ht,Et)}function __awaiter$4(ht,Et,yt,Ct){function $t(At){return At instanceof yt?At:new yt(function(Bt){Bt(At)})}return new(yt||(yt=Promise))(function(At,Bt){function Dt(Mt){try{kt(Ct.next(Mt))}catch(Nt){Bt(Nt)}}function Ft(Mt){try{kt(Ct.throw(Mt))}catch(Nt){Bt(Nt)}}function kt(Mt){Mt.done?At(Mt.value):$t(Mt.value).then(Dt,Ft)}kt((Ct=Ct.apply(ht,Et||[])).next())})}function __generator$3(ht,Et){var yt={label:0,sent:function(){if(At[0]&1)throw At[1];return At[1]},trys:[],ops:[]},Ct,$t,At,Bt;return Bt={next:Dt(0),throw:Dt(1),return:Dt(2)},typeof Symbol=="function"&&(Bt[Symbol.iterator]=function(){return this}),Bt;function Dt(kt){return function(Mt){return Ft([kt,Mt])}}function Ft(kt){if(Ct)throw new TypeError("Generator is already executing.");for(;yt;)try{if(Ct=1,$t&&(At=kt[0]&2?$t.return:kt[0]?$t.throw||((At=$t.return)&&At.call($t),0):$t.next)&&!(At=At.call($t,kt[1])).done)return At;switch($t=0,At&&(kt=[kt[0]&2,At.value]),kt[0]){case 0:case 1:At=kt;break;case 4:return yt.label++,{value:kt[1],done:!1};case 5:yt.label++,$t=kt[1],kt=[0];continue;case 7:kt=yt.ops.pop(),yt.trys.pop();continue;default:if(At=yt.trys,!(At=At.length>0&&At[At.length-1])&&(kt[0]===6||kt[0]===2)){yt=0;continue}if(kt[0]===3&&(!At||kt[1]>At[0]&&kt[1]<At[3])){yt.label=kt[1];break}if(kt[0]===6&&yt.label<At[1]){yt.label=At[1],At=kt;break}if(At&&yt.label<At[2]){yt.label=At[2],yt.ops.push(kt);break}At[2]&&yt.ops.pop(),yt.trys.pop();continue}kt=Et.call(ht,yt)}catch(Mt){kt=[6,Mt],$t=0}finally{Ct=At=0}if(kt[0]&5)throw kt[1];return{value:kt[0]?kt[1]:void 0,done:!0}}}function __createBinding(ht,Et,yt,Ct){Ct===void 0&&(Ct=yt),ht[Ct]=Et[yt]}function __exportStar(ht,Et){for(var yt in ht)yt!=="default"&&!Et.hasOwnProperty(yt)&&(Et[yt]=ht[yt])}function __values$6(ht){var Et=typeof Symbol=="function"&&Symbol.iterator,yt=Et&&ht[Et],Ct=0;if(yt)return yt.call(ht);if(ht&&typeof ht.length=="number")return{next:function(){return ht&&Ct>=ht.length&&(ht=void 0),{value:ht&&ht[Ct++],done:!ht}}};throw new TypeError(Et?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read$i(ht,Et){var yt=typeof Symbol=="function"&&ht[Symbol.iterator];if(!yt)return ht;var Ct=yt.call(ht),$t,At=[],Bt;try{for(;(Et===void 0||Et-- >0)&&!($t=Ct.next()).done;)At.push($t.value)}catch(Dt){Bt={error:Dt}}finally{try{$t&&!$t.done&&(yt=Ct.return)&&yt.call(Ct)}finally{if(Bt)throw Bt.error}}return At}function __spread(){for(var ht=[],Et=0;Et<arguments.length;Et++)ht=ht.concat(__read$i(arguments[Et]));return ht}function __spreadArrays(){for(var ht=0,Et=0,yt=arguments.length;Et<yt;Et++)ht+=arguments[Et].length;for(var Ct=Array(ht),$t=0,Et=0;Et<yt;Et++)for(var At=arguments[Et],Bt=0,Dt=At.length;Bt<Dt;Bt++,$t++)Ct[$t]=At[Bt];return Ct}function __await(ht){return this instanceof __await?(this.v=ht,this):new __await(ht)}function __asyncGenerator(ht,Et,yt){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ct=yt.apply(ht,Et||[]),$t,At=[];return $t={},Bt("next"),Bt("throw"),Bt("return"),$t[Symbol.asyncIterator]=function(){return this},$t;function Bt(jt){Ct[jt]&&($t[jt]=function(zt){return new Promise(function(Vt,Kt){At.push([jt,zt,Vt,Kt])>1||Dt(jt,zt)})})}function Dt(jt,zt){try{Ft(Ct[jt](zt))}catch(Vt){Nt(At[0][3],Vt)}}function Ft(jt){jt.value instanceof __await?Promise.resolve(jt.value.v).then(kt,Mt):Nt(At[0][2],jt)}function kt(jt){Dt("next",jt)}function Mt(jt){Dt("throw",jt)}function Nt(jt,zt){jt(zt),At.shift(),At.length&&Dt(At[0][0],At[0][1])}}function __asyncDelegator(ht){var Et,yt;return Et={},Ct("next"),Ct("throw",function($t){throw $t}),Ct("return"),Et[Symbol.iterator]=function(){return this},Et;function Ct($t,At){Et[$t]=ht[$t]?function(Bt){return(yt=!yt)?{value:__await(ht[$t](Bt)),done:$t==="return"}:At?At(Bt):Bt}:At}}function __asyncValues(ht){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Et=ht[Symbol.asyncIterator],yt;return Et?Et.call(ht):(ht=typeof __values$6=="function"?__values$6(ht):ht[Symbol.iterator](),yt={},Ct("next"),Ct("throw"),Ct("return"),yt[Symbol.asyncIterator]=function(){return this},yt);function Ct(At){yt[At]=ht[At]&&function(Bt){return new Promise(function(Dt,Ft){Bt=ht[At](Bt),$t(Dt,Ft,Bt.done,Bt.value)})}}function $t(At,Bt,Dt,Ft){Promise.resolve(Ft).then(function(kt){At({value:kt,done:Dt})},Bt)}}function __makeTemplateObject(ht,Et){return Object.defineProperty?Object.defineProperty(ht,"raw",{value:Et}):ht.raw=Et,ht}function __importStar(ht){if(ht&&ht.__esModule)return ht;var Et={};if(ht!=null)for(var yt in ht)Object.hasOwnProperty.call(ht,yt)&&(Et[yt]=ht[yt]);return Et.default=ht,Et}function __importDefault$9(ht){return ht&&ht.__esModule?ht:{default:ht}}function __classPrivateFieldGet(ht,Et){if(!Et.has(ht))throw new TypeError("attempted to get private field on non-instance");return Et.get(ht)}function __classPrivateFieldSet(ht,Et,yt){if(!Et.has(ht))throw new TypeError("attempted to set private field on non-instance");return Et.set(ht,yt),yt}const tslib_es6=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return __assign$5},__asyncDelegator,__asyncGenerator,__asyncValues,__await,__awaiter:__awaiter$4,__classPrivateFieldGet,__classPrivateFieldSet,__createBinding,__decorate,__exportStar,__extends:__extends$9,__generator:__generator$3,__importDefault:__importDefault$9,__importStar,__makeTemplateObject,__metadata,__param,__read:__read$i,__rest:__rest$N,__spread,__spreadArrays,__values:__values$6},Symbol.toStringTag,{value:"Module"})),require$$0$1=getAugmentedNamespace(tslib_es6);var utils$3={},delay={},hasRequiredDelay;function requireDelay(){if(hasRequiredDelay)return delay;hasRequiredDelay=1,Object.defineProperty(delay,"__esModule",{value:!0}),delay.delay=void 0;function ht(Et){return new Promise(yt=>{setTimeout(()=>{yt(!0)},Et)})}return delay.delay=ht,delay}var convert={},constants={},misc={},hasRequiredMisc;function requireMisc(){return hasRequiredMisc||(hasRequiredMisc=1,Object.defineProperty(misc,"__esModule",{value:!0}),misc.ONE_THOUSAND=misc.ONE_HUNDRED=void 0,misc.ONE_HUNDRED=100,misc.ONE_THOUSAND=1e3),misc}var time={},hasRequiredTime;function requireTime(){return hasRequiredTime||(hasRequiredTime=1,function(ht){Object.defineProperty(ht,"__esModule",{value:!0}),ht.ONE_YEAR=ht.FOUR_WEEKS=ht.THREE_WEEKS=ht.TWO_WEEKS=ht.ONE_WEEK=ht.THIRTY_DAYS=ht.SEVEN_DAYS=ht.FIVE_DAYS=ht.THREE_DAYS=ht.ONE_DAY=ht.TWENTY_FOUR_HOURS=ht.TWELVE_HOURS=ht.SIX_HOURS=ht.THREE_HOURS=ht.ONE_HOUR=ht.SIXTY_MINUTES=ht.THIRTY_MINUTES=ht.TEN_MINUTES=ht.FIVE_MINUTES=ht.ONE_MINUTE=ht.SIXTY_SECONDS=ht.THIRTY_SECONDS=ht.TEN_SECONDS=ht.FIVE_SECONDS=ht.ONE_SECOND=void 0,ht.ONE_SECOND=1,ht.FIVE_SECONDS=5,ht.TEN_SECONDS=10,ht.THIRTY_SECONDS=30,ht.SIXTY_SECONDS=60,ht.ONE_MINUTE=ht.SIXTY_SECONDS,ht.FIVE_MINUTES=ht.ONE_MINUTE*5,ht.TEN_MINUTES=ht.ONE_MINUTE*10,ht.THIRTY_MINUTES=ht.ONE_MINUTE*30,ht.SIXTY_MINUTES=ht.ONE_MINUTE*60,ht.ONE_HOUR=ht.SIXTY_MINUTES,ht.THREE_HOURS=ht.ONE_HOUR*3,ht.SIX_HOURS=ht.ONE_HOUR*6,ht.TWELVE_HOURS=ht.ONE_HOUR*12,ht.TWENTY_FOUR_HOURS=ht.ONE_HOUR*24,ht.ONE_DAY=ht.TWENTY_FOUR_HOURS,ht.THREE_DAYS=ht.ONE_DAY*3,ht.FIVE_DAYS=ht.ONE_DAY*5,ht.SEVEN_DAYS=ht.ONE_DAY*7,ht.THIRTY_DAYS=ht.ONE_DAY*30,ht.ONE_WEEK=ht.SEVEN_DAYS,ht.TWO_WEEKS=ht.ONE_WEEK*2,ht.THREE_WEEKS=ht.ONE_WEEK*3,ht.FOUR_WEEKS=ht.ONE_WEEK*4,ht.ONE_YEAR=ht.ONE_DAY*365}(time)),time}var hasRequiredConstants;function requireConstants(){return hasRequiredConstants||(hasRequiredConstants=1,function(ht){Object.defineProperty(ht,"__esModule",{value:!0});const Et=require$$0$1;Et.__exportStar(requireMisc(),ht),Et.__exportStar(requireTime(),ht)}(constants)),constants}var hasRequiredConvert;function requireConvert(){if(hasRequiredConvert)return convert;hasRequiredConvert=1,Object.defineProperty(convert,"__esModule",{value:!0}),convert.fromMiliseconds=convert.toMiliseconds=void 0;const ht=requireConstants();function Et(Ct){return Ct*ht.ONE_THOUSAND}convert.toMiliseconds=Et;function yt(Ct){return Math.floor(Ct/ht.ONE_THOUSAND)}return convert.fromMiliseconds=yt,convert}var hasRequiredUtils;function requireUtils(){return hasRequiredUtils||(hasRequiredUtils=1,function(ht){Object.defineProperty(ht,"__esModule",{value:!0});const Et=require$$0$1;Et.__exportStar(requireDelay(),ht),Et.__exportStar(requireConvert(),ht)}(utils$3)),utils$3}var watch$1={},hasRequiredWatch$1;function requireWatch$1(){if(hasRequiredWatch$1)return watch$1;hasRequiredWatch$1=1,Object.defineProperty(watch$1,"__esModule",{value:!0}),watch$1.Watch=void 0;class ht{constructor(){this.timestamps=new Map}start(yt){if(this.timestamps.has(yt))throw new Error(`Watch already started for label: ${yt}`);this.timestamps.set(yt,{started:Date.now()})}stop(yt){const Ct=this.get(yt);if(typeof Ct.elapsed<"u")throw new Error(`Watch already stopped for label: ${yt}`);const $t=Date.now()-Ct.started;this.timestamps.set(yt,{started:Ct.started,elapsed:$t})}get(yt){const Ct=this.timestamps.get(yt);if(typeof Ct>"u")throw new Error(`No timestamp found for label: ${yt}`);return Ct}elapsed(yt){const Ct=this.get(yt);return Ct.elapsed||Date.now()-Ct.started}}return watch$1.Watch=ht,watch$1.default=ht,watch$1}var types$1={},watch={},hasRequiredWatch;function requireWatch(){if(hasRequiredWatch)return watch;hasRequiredWatch=1,Object.defineProperty(watch,"__esModule",{value:!0}),watch.IWatch=void 0;class ht{}return watch.IWatch=ht,watch}var hasRequiredTypes;function requireTypes(){return hasRequiredTypes||(hasRequiredTypes=1,function(ht){Object.defineProperty(ht,"__esModule",{value:!0}),require$$0$1.__exportStar(requireWatch(),ht)}(types$1)),types$1}(function(ht){Object.defineProperty(ht,"__esModule",{value:!0});const Et=require$$0$1;Et.__exportStar(requireUtils(),ht),Et.__exportStar(requireWatch$1(),ht),Et.__exportStar(requireTypes(),ht),Et.__exportStar(requireConstants(),ht)})(cjs$2);var cjs$1={};Object.defineProperty(cjs$1,"__esModule",{value:!0});var getLocalStorage_1=cjs$1.getLocalStorage=getLocalStorageOrThrow_1=cjs$1.getLocalStorageOrThrow=getCrypto_1=cjs$1.getCrypto=getCryptoOrThrow_1=cjs$1.getCryptoOrThrow=getLocation_1=cjs$1.getLocation=getLocationOrThrow_1=cjs$1.getLocationOrThrow=getNavigator_1=cjs$1.getNavigator=getNavigatorOrThrow_1=cjs$1.getNavigatorOrThrow=getDocument_1=cjs$1.getDocument=getDocumentOrThrow_1=cjs$1.getDocumentOrThrow=getFromWindowOrThrow_1=cjs$1.getFromWindowOrThrow=getFromWindow_1=cjs$1.getFromWindow=void 0;function getFromWindow(ht){let Et;return typeof window<"u"&&typeof window[ht]<"u"&&(Et=window[ht]),Et}var getFromWindow_1=cjs$1.getFromWindow=getFromWindow;function getFromWindowOrThrow(ht){const Et=getFromWindow(ht);if(!Et)throw new Error(`${ht} is not defined in Window`);return Et}var getFromWindowOrThrow_1=cjs$1.getFromWindowOrThrow=getFromWindowOrThrow;function getDocumentOrThrow(){return getFromWindowOrThrow("document")}var getDocumentOrThrow_1=cjs$1.getDocumentOrThrow=getDocumentOrThrow;function getDocument(){return getFromWindow("document")}var getDocument_1=cjs$1.getDocument=getDocument;function getNavigatorOrThrow(){return getFromWindowOrThrow("navigator")}var getNavigatorOrThrow_1=cjs$1.getNavigatorOrThrow=getNavigatorOrThrow;function getNavigator(){return getFromWindow("navigator")}var getNavigator_1=cjs$1.getNavigator=getNavigator;function getLocationOrThrow(){return getFromWindowOrThrow("location")}var getLocationOrThrow_1=cjs$1.getLocationOrThrow=getLocationOrThrow;function getLocation(){return getFromWindow("location")}var getLocation_1=cjs$1.getLocation=getLocation;function getCryptoOrThrow(){return getFromWindowOrThrow("crypto")}var getCryptoOrThrow_1=cjs$1.getCryptoOrThrow=getCryptoOrThrow;function getCrypto(){return getFromWindow("crypto")}var getCrypto_1=cjs$1.getCrypto=getCrypto;function getLocalStorageOrThrow(){return getFromWindowOrThrow("localStorage")}var getLocalStorageOrThrow_1=cjs$1.getLocalStorageOrThrow=getLocalStorageOrThrow;function getLocalStorage(){return getFromWindow("localStorage")}getLocalStorage_1=cjs$1.getLocalStorage=getLocalStorage;var cjs={};Object.defineProperty(cjs,"__esModule",{value:!0});var getWindowMetadata_1=cjs.getWindowMetadata=void 0;const window_getters_1=cjs$1;function getWindowMetadata(){let ht,Et;try{ht=window_getters_1.getDocumentOrThrow(),Et=window_getters_1.getLocationOrThrow()}catch{return null}function yt(){const Nt=ht.getElementsByTagName("link"),jt=[];for(let zt=0;zt<Nt.length;zt++){const Vt=Nt[zt],Kt=Vt.getAttribute("rel");if(Kt&&Kt.toLowerCase().indexOf("icon")>-1){const Xt=Vt.getAttribute("href");if(Xt)if(Xt.toLowerCase().indexOf("https:")===-1&&Xt.toLowerCase().indexOf("http:")===-1&&Xt.indexOf("//")!==0){let Qt=Et.protocol+"//"+Et.host;if(Xt.indexOf("/")===0)Qt+=Xt;else{const Zt=Et.pathname.split("/");Zt.pop();const dr=Zt.join("/");Qt+=dr+"/"+Xt}jt.push(Qt)}else if(Xt.indexOf("//")===0){const Qt=Et.protocol+Xt;jt.push(Qt)}else jt.push(Xt)}}return jt}function Ct(...Nt){const jt=ht.getElementsByTagName("meta");for(let zt=0;zt<jt.length;zt++){const Vt=jt[zt],Kt=["itemprop","property","name"].map(Xt=>Vt.getAttribute(Xt)).filter(Xt=>Xt?Nt.includes(Xt):!1);if(Kt.length&&Kt){const Xt=Vt.getAttribute("content");if(Xt)return Xt}}return""}function $t(){let Nt=Ct("name","og:site_name","og:title","twitter:title");return Nt||(Nt=ht.title),Nt}function At(){return Ct("description","og:description","twitter:description","keywords")}const Bt=$t(),Dt=At(),Ft=Et.origin,kt=yt();return{description:Dt,url:Ft,icons:kt,name:Bt}}getWindowMetadata_1=cjs.getWindowMetadata=getWindowMetadata;var queryString$1={},strictUriEncode$1=ht=>encodeURIComponent(ht).replace(/[!'()*]/g,Et=>`%${Et.charCodeAt(0).toString(16).toUpperCase()}`),token$2="%[a-f0-9]{2}",singleMatcher$1=new RegExp("("+token$2+")|([^%]+?)","gi"),multiMatcher$1=new RegExp("("+token$2+")+","gi");function decodeComponents$1(ht,Et){try{return[decodeURIComponent(ht.join(""))]}catch{}if(ht.length===1)return ht;Et=Et||1;var yt=ht.slice(0,Et),Ct=ht.slice(Et);return Array.prototype.concat.call([],decodeComponents$1(yt),decodeComponents$1(Ct))}function decode$4(ht){try{return decodeURIComponent(ht)}catch{for(var Et=ht.match(singleMatcher$1)||[],yt=1;yt<Et.length;yt++)ht=decodeComponents$1(Et,yt).join(""),Et=ht.match(singleMatcher$1)||[];return ht}}function customDecodeURIComponent$1(ht){for(var Et={"%FE%FF":"��","%FF%FE":"��"},yt=multiMatcher$1.exec(ht);yt;){try{Et[yt[0]]=decodeURIComponent(yt[0])}catch{var Ct=decode$4(yt[0]);Ct!==yt[0]&&(Et[yt[0]]=Ct)}yt=multiMatcher$1.exec(ht)}Et["%C2"]="�";for(var $t=Object.keys(Et),At=0;At<$t.length;At++){var Bt=$t[At];ht=ht.replace(new RegExp(Bt,"g"),Et[Bt])}return ht}var decodeUriComponent$1=function(ht){if(typeof ht!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof ht+"`");try{return ht=ht.replace(/\+/g," "),decodeURIComponent(ht)}catch{return customDecodeURIComponent$1(ht)}},splitOnFirst$1=(ht,Et)=>{if(!(typeof ht=="string"&&typeof Et=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(Et==="")return[ht];const yt=ht.indexOf(Et);return yt===-1?[ht]:[ht.slice(0,yt),ht.slice(yt+Et.length)]},filterObj=function(ht,Et){for(var yt={},Ct=Object.keys(ht),$t=Array.isArray(Et),At=0;At<Ct.length;At++){var Bt=Ct[At],Dt=ht[Bt];($t?Et.indexOf(Bt)!==-1:Et(Bt,Dt,ht))&&(yt[Bt]=Dt)}return yt};(function(ht){const Et=strictUriEncode$1,yt=decodeUriComponent$1,Ct=splitOnFirst$1,$t=filterObj,At=Zt=>Zt==null,Bt=Symbol("encodeFragmentIdentifier");function Dt(Zt){switch(Zt.arrayFormat){case"index":return dr=>(cr,Er)=>{const pr=cr.length;return Er===void 0||Zt.skipNull&&Er===null||Zt.skipEmptyString&&Er===""?cr:Er===null?[...cr,[Mt(dr,Zt),"[",pr,"]"].join("")]:[...cr,[Mt(dr,Zt),"[",Mt(pr,Zt),"]=",Mt(Er,Zt)].join("")]};case"bracket":return dr=>(cr,Er)=>Er===void 0||Zt.skipNull&&Er===null||Zt.skipEmptyString&&Er===""?cr:Er===null?[...cr,[Mt(dr,Zt),"[]"].join("")]:[...cr,[Mt(dr,Zt),"[]=",Mt(Er,Zt)].join("")];case"colon-list-separator":return dr=>(cr,Er)=>Er===void 0||Zt.skipNull&&Er===null||Zt.skipEmptyString&&Er===""?cr:Er===null?[...cr,[Mt(dr,Zt),":list="].join("")]:[...cr,[Mt(dr,Zt),":list=",Mt(Er,Zt)].join("")];case"comma":case"separator":case"bracket-separator":{const dr=Zt.arrayFormat==="bracket-separator"?"[]=":"=";return cr=>(Er,pr)=>pr===void 0||Zt.skipNull&&pr===null||Zt.skipEmptyString&&pr===""?Er:(pr=pr===null?"":pr,Er.length===0?[[Mt(cr,Zt),dr,Mt(pr,Zt)].join("")]:[[Er,Mt(pr,Zt)].join(Zt.arrayFormatSeparator)])}default:return dr=>(cr,Er)=>Er===void 0||Zt.skipNull&&Er===null||Zt.skipEmptyString&&Er===""?cr:Er===null?[...cr,Mt(dr,Zt)]:[...cr,[Mt(dr,Zt),"=",Mt(Er,Zt)].join("")]}}function Ft(Zt){let dr;switch(Zt.arrayFormat){case"index":return(cr,Er,pr)=>{if(dr=/\[(\d*)\]$/.exec(cr),cr=cr.replace(/\[\d*\]$/,""),!dr){pr[cr]=Er;return}pr[cr]===void 0&&(pr[cr]={}),pr[cr][dr[1]]=Er};case"bracket":return(cr,Er,pr)=>{if(dr=/(\[\])$/.exec(cr),cr=cr.replace(/\[\]$/,""),!dr){pr[cr]=Er;return}if(pr[cr]===void 0){pr[cr]=[Er];return}pr[cr]=[].concat(pr[cr],Er)};case"colon-list-separator":return(cr,Er,pr)=>{if(dr=/(:list)$/.exec(cr),cr=cr.replace(/:list$/,""),!dr){pr[cr]=Er;return}if(pr[cr]===void 0){pr[cr]=[Er];return}pr[cr]=[].concat(pr[cr],Er)};case"comma":case"separator":return(cr,Er,pr)=>{const gr=typeof Er=="string"&&Er.includes(Zt.arrayFormatSeparator),vr=typeof Er=="string"&&!gr&&Nt(Er,Zt).includes(Zt.arrayFormatSeparator);Er=vr?Nt(Er,Zt):Er;const yr=gr||vr?Er.split(Zt.arrayFormatSeparator).map(xr=>Nt(xr,Zt)):Er===null?Er:Nt(Er,Zt);pr[cr]=yr};case"bracket-separator":return(cr,Er,pr)=>{const gr=/(\[\])$/.test(cr);if(cr=cr.replace(/\[\]$/,""),!gr){pr[cr]=Er&&Nt(Er,Zt);return}const vr=Er===null?[]:Er.split(Zt.arrayFormatSeparator).map(yr=>Nt(yr,Zt));if(pr[cr]===void 0){pr[cr]=vr;return}pr[cr]=[].concat(pr[cr],vr)};default:return(cr,Er,pr)=>{if(pr[cr]===void 0){pr[cr]=Er;return}pr[cr]=[].concat(pr[cr],Er)}}}function kt(Zt){if(typeof Zt!="string"||Zt.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function Mt(Zt,dr){return dr.encode?dr.strict?Et(Zt):encodeURIComponent(Zt):Zt}function Nt(Zt,dr){return dr.decode?yt(Zt):Zt}function jt(Zt){return Array.isArray(Zt)?Zt.sort():typeof Zt=="object"?jt(Object.keys(Zt)).sort((dr,cr)=>Number(dr)-Number(cr)).map(dr=>Zt[dr]):Zt}function zt(Zt){const dr=Zt.indexOf("#");return dr!==-1&&(Zt=Zt.slice(0,dr)),Zt}function Vt(Zt){let dr="";const cr=Zt.indexOf("#");return cr!==-1&&(dr=Zt.slice(cr)),dr}function Kt(Zt){Zt=zt(Zt);const dr=Zt.indexOf("?");return dr===-1?"":Zt.slice(dr+1)}function Xt(Zt,dr){return dr.parseNumbers&&!Number.isNaN(Number(Zt))&&typeof Zt=="string"&&Zt.trim()!==""?Zt=Number(Zt):dr.parseBooleans&&Zt!==null&&(Zt.toLowerCase()==="true"||Zt.toLowerCase()==="false")&&(Zt=Zt.toLowerCase()==="true"),Zt}function Qt(Zt,dr){dr=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},dr),kt(dr.arrayFormatSeparator);const cr=Ft(dr),Er=Object.create(null);if(typeof Zt!="string"||(Zt=Zt.trim().replace(/^[?#&]/,""),!Zt))return Er;for(const pr of Zt.split("&")){if(pr==="")continue;let[gr,vr]=Ct(dr.decode?pr.replace(/\+/g," "):pr,"=");vr=vr===void 0?null:["comma","separator","bracket-separator"].includes(dr.arrayFormat)?vr:Nt(vr,dr),cr(Nt(gr,dr),vr,Er)}for(const pr of Object.keys(Er)){const gr=Er[pr];if(typeof gr=="object"&&gr!==null)for(const vr of Object.keys(gr))gr[vr]=Xt(gr[vr],dr);else Er[pr]=Xt(gr,dr)}return dr.sort===!1?Er:(dr.sort===!0?Object.keys(Er).sort():Object.keys(Er).sort(dr.sort)).reduce((pr,gr)=>{const vr=Er[gr];return vr&&typeof vr=="object"&&!Array.isArray(vr)?pr[gr]=jt(vr):pr[gr]=vr,pr},Object.create(null))}ht.extract=Kt,ht.parse=Qt,ht.stringify=(Zt,dr)=>{if(!Zt)return"";dr=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},dr),kt(dr.arrayFormatSeparator);const cr=vr=>dr.skipNull&&At(Zt[vr])||dr.skipEmptyString&&Zt[vr]==="",Er=Dt(dr),pr={};for(const vr of Object.keys(Zt))cr(vr)||(pr[vr]=Zt[vr]);const gr=Object.keys(pr);return dr.sort!==!1&&gr.sort(dr.sort),gr.map(vr=>{const yr=Zt[vr];return yr===void 0?"":yr===null?Mt(vr,dr):Array.isArray(yr)?yr.length===0&&dr.arrayFormat==="bracket-separator"?Mt(vr,dr)+"[]":yr.reduce(Er(vr),[]).join("&"):Mt(vr,dr)+"="+Mt(yr,dr)}).filter(vr=>vr.length>0).join("&")},ht.parseUrl=(Zt,dr)=>{dr=Object.assign({decode:!0},dr);const[cr,Er]=Ct(Zt,"#");return Object.assign({url:cr.split("?")[0]||"",query:Qt(Kt(Zt),dr)},dr&&dr.parseFragmentIdentifier&&Er?{fragmentIdentifier:Nt(Er,dr)}:{})},ht.stringifyUrl=(Zt,dr)=>{dr=Object.assign({encode:!0,strict:!0,[Bt]:!0},dr);const cr=zt(Zt.url).split("?")[0]||"",Er=ht.extract(Zt.url),pr=ht.parse(Er,{sort:!1}),gr=Object.assign(pr,Zt.query);let vr=ht.stringify(gr,dr);vr&&(vr=`?${vr}`);let yr=Vt(Zt.url);return Zt.fragmentIdentifier&&(yr=`#${dr[Bt]?Mt(Zt.fragmentIdentifier,dr):Zt.fragmentIdentifier}`),`${cr}${vr}${yr}`},ht.pick=(Zt,dr,cr)=>{cr=Object.assign({parseFragmentIdentifier:!0,[Bt]:!1},cr);const{url:Er,query:pr,fragmentIdentifier:gr}=ht.parseUrl(Zt,cr);return ht.stringifyUrl({url:Er,query:$t(pr,dr),fragmentIdentifier:gr},cr)},ht.exclude=(Zt,dr,cr)=>{const Er=Array.isArray(dr)?pr=>!dr.includes(pr):(pr,gr)=>!dr(pr,gr);return ht.pick(Zt,Er,cr)}})(queryString$1);function S$7(ht=[],Et=[]){return[...new Set([...ht,...Et])]}var Ot=Object.defineProperty,St=Object.defineProperties,wt=Object.getOwnPropertyDescriptors,ze$2=Object.getOwnPropertySymbols,It=Object.prototype.hasOwnProperty,Pt=Object.prototype.propertyIsEnumerable,Ye$2=(ht,Et,yt)=>Et in ht?Ot(ht,Et,{enumerable:!0,configurable:!0,writable:!0,value:yt}):ht[Et]=yt,Tt$1=(ht,Et)=>{for(var yt in Et||(Et={}))It.call(Et,yt)&&Ye$2(ht,yt,Et[yt]);if(ze$2)for(var yt of ze$2(Et))Pt.call(Et,yt)&&Ye$2(ht,yt,Et[yt]);return ht},Rt=(ht,Et)=>St(ht,wt(Et));function oe(ht){return ht.includes(":")}function Xe$1(ht){return oe(ht)?ht.split(":")[0]:ht}function se$2(ht){var Et,yt,Ct;const $t={};if(!B$1(ht))return $t;for(const[At,Bt]of Object.entries(ht)){const Dt=oe(At)?[At]:Bt.chains,Ft=Bt.methods||[],kt=Bt.events||[],Mt=Xe$1(At);$t[Mt]=Rt(Tt$1({},$t[Mt]),{chains:S$7(Dt,(Et=$t[Mt])==null?void 0:Et.chains),methods:S$7(Ft,(yt=$t[Mt])==null?void 0:yt.methods),events:S$7(kt,(Ct=$t[Mt])==null?void 0:Ct.events)})}return $t}function B$1(ht){return Object.getPrototypeOf(ht)===Object.prototype&&Object.keys(ht).length}var NAMESPACE="eip155",STORE_KEY="store",REQUESTED_CHAINS_KEY="requestedChains",ADD_ETH_CHAIN_METHOD="wallet_addEthereumChain",_provider$1,_initProviderPromise,_createProvider,createProvider_fn,_initProvider,initProvider_fn,_isChainsStale,isChainsStale_fn,_setupListeners,setupListeners_fn,_removeListeners,removeListeners_fn,_setRequestedChainsIds,setRequestedChainsIds_fn,_getRequestedChainsIds,getRequestedChainsIds_fn,_getNamespaceChainsIds,getNamespaceChainsIds_fn,_getNamespaceMethods,getNamespaceMethods_fn,WalletConnectConnector=class extends Connector{constructor(ht){super({...ht,options:{isNewChainsStale:!0,...ht.options}}),__privateAdd$1(this,_createProvider),__privateAdd$1(this,_initProvider),__privateAdd$1(this,_isChainsStale),__privateAdd$1(this,_setupListeners),__privateAdd$1(this,_removeListeners),__privateAdd$1(this,_setRequestedChainsIds),__privateAdd$1(this,_getRequestedChainsIds),__privateAdd$1(this,_getNamespaceChainsIds),__privateAdd$1(this,_getNamespaceMethods),this.id="walletConnect",this.name="WalletConnect",this.ready=!0,__privateAdd$1(this,_provider$1,void 0),__privateAdd$1(this,_initProviderPromise,void 0),this.onAccountsChanged=Et=>{Et.length===0?this.emit("disconnect"):this.emit("change",{account:getAddress$1(Et[0])})},this.onChainChanged=Et=>{const yt=Number(Et),Ct=this.isChainUnsupported(yt);this.emit("change",{chain:{id:yt,unsupported:Ct}})},this.onDisconnect=()=>{__privateMethod$1(this,_setRequestedChainsIds,setRequestedChainsIds_fn).call(this,[]),this.emit("disconnect")},this.onDisplayUri=Et=>{this.emit("message",{type:"display_uri",data:Et})},this.onConnect=()=>{this.emit("connect",{})},__privateMethod$1(this,_createProvider,createProvider_fn).call(this)}async connect({chainId:ht,pairingTopic:Et}={}){var yt,Ct,$t,At,Bt;try{let Dt=ht;if(!Dt){const Vt=(yt=this.storage)==null?void 0:yt.getItem(STORE_KEY),Kt=(At=($t=(Ct=Vt==null?void 0:Vt.state)==null?void 0:Ct.data)==null?void 0:$t.chain)==null?void 0:At.id;Kt&&!this.isChainUnsupported(Kt)?Dt=Kt:Dt=(Bt=this.chains[0])==null?void 0:Bt.id}if(!Dt)throw new Error("No chains found on connector.");const Ft=await this.getProvider();__privateMethod$1(this,_setupListeners,setupListeners_fn).call(this);const kt=__privateMethod$1(this,_isChainsStale,isChainsStale_fn).call(this);if(Ft.session&&kt&&await Ft.disconnect(),!Ft.session||kt){const Vt=this.chains.filter(Kt=>Kt.id!==Dt).map(Kt=>Kt.id);this.emit("message",{type:"connecting"}),await Ft.connect({pairingTopic:Et,optionalChains:[Dt,...Vt]}),__privateMethod$1(this,_setRequestedChainsIds,setRequestedChainsIds_fn).call(this,this.chains.map(({id:Kt})=>Kt))}const Mt=await Ft.enable(),Nt=getAddress$1(Mt[0]),jt=await this.getChainId(),zt=this.isChainUnsupported(jt);return{account:Nt,chain:{id:jt,unsupported:zt}}}catch(Dt){throw/user rejected/i.test(Dt==null?void 0:Dt.message)?new UserRejectedRequestError(Dt):Dt}}async disconnect(){const ht=await this.getProvider();try{await ht.disconnect()}catch(Et){if(!/No matching key/i.test(Et.message))throw Et}finally{__privateMethod$1(this,_removeListeners,removeListeners_fn).call(this),__privateMethod$1(this,_setRequestedChainsIds,setRequestedChainsIds_fn).call(this,[])}}async getAccount(){const{accounts:ht}=await this.getProvider();return getAddress$1(ht[0])}async getChainId(){const{chainId:ht}=await this.getProvider();return ht}async getProvider({chainId:ht}={}){return __privateGet$1(this,_provider$1)||await __privateMethod$1(this,_createProvider,createProvider_fn).call(this),ht&&await this.switchChain(ht),__privateGet$1(this,_provider$1)}async getWalletClient({chainId:ht}={}){const[Et,yt]=await Promise.all([this.getProvider({chainId:ht}),this.getAccount()]),Ct=this.chains.find($t=>$t.id===ht);if(!Et)throw new Error("provider is required.");return createWalletClient({account:yt,chain:Ct,transport:custom(Et)})}async isAuthorized(){try{const[ht,Et]=await Promise.all([this.getAccount(),this.getProvider()]),yt=__privateMethod$1(this,_isChainsStale,isChainsStale_fn).call(this);if(!ht)return!1;if(yt&&Et.session){try{await Et.disconnect()}catch{}return!1}return!0}catch{return!1}}async switchChain(ht){var yt,Ct;const Et=this.chains.find($t=>$t.id===ht);if(!Et)throw new SwitchChainError(new Error("chain not found on connector."));try{const $t=await this.getProvider(),At=__privateMethod$1(this,_getNamespaceChainsIds,getNamespaceChainsIds_fn).call(this),Bt=__privateMethod$1(this,_getNamespaceMethods,getNamespaceMethods_fn).call(this);if(!At.includes(ht)&&Bt.includes(ADD_ETH_CHAIN_METHOD)){await $t.request({method:ADD_ETH_CHAIN_METHOD,params:[{chainId:numberToHex(Et.id),blockExplorerUrls:[(Ct=(yt=Et.blockExplorers)==null?void 0:yt.default)==null?void 0:Ct.url],chainName:Et.name,nativeCurrency:Et.nativeCurrency,rpcUrls:[...Et.rpcUrls.default.http]}]});const Ft=__privateMethod$1(this,_getRequestedChainsIds,getRequestedChainsIds_fn).call(this);Ft.push(ht),__privateMethod$1(this,_setRequestedChainsIds,setRequestedChainsIds_fn).call(this,Ft)}return await $t.request({method:"wallet_switchEthereumChain",params:[{chainId:numberToHex(ht)}]}),Et}catch($t){const At=typeof $t=="string"?$t:$t==null?void 0:$t.message;throw/user rejected request/i.test(At)?new UserRejectedRequestError($t):new SwitchChainError($t)}}};_provider$1=new WeakMap;_initProviderPromise=new WeakMap;_createProvider=new WeakSet;createProvider_fn=async function(){return!__privateGet$1(this,_initProviderPromise)&&typeof window<"u"&&__privateSet$1(this,_initProviderPromise,__privateMethod$1(this,_initProvider,initProvider_fn).call(this)),__privateGet$1(this,_initProviderPromise)};_initProvider=new WeakSet;initProvider_fn=async function(){const{EthereumProvider:ht}=await __vitePreload(async()=>{const{EthereumProvider:yt}=await import("./index.es-DYOcKob5.js");return{EthereumProvider:yt}},__vite__mapDeps([0,1])),Et=this.chains.map(({id:yt})=>yt);if(Et.length){const{projectId:yt,showQrModal:Ct=!0,qrModalOptions:$t,metadata:At,relayUrl:Bt}=this.options;__privateSet$1(this,_provider$1,await ht.init({showQrModal:Ct,qrModalOptions:$t,projectId:yt,optionalChains:Et,rpcMap:Object.fromEntries(this.chains.map(Dt=>[Dt.id,Dt.rpcUrls.default.http[0]])),metadata:At,relayUrl:Bt}))}};_isChainsStale=new WeakSet;isChainsStale_fn=function(){if(__privateMethod$1(this,_getNamespaceMethods,getNamespaceMethods_fn).call(this).includes(ADD_ETH_CHAIN_METHOD)||!this.options.isNewChainsStale)return!1;const Et=__privateMethod$1(this,_getRequestedChainsIds,getRequestedChainsIds_fn).call(this),yt=this.chains.map(({id:$t})=>$t),Ct=__privateMethod$1(this,_getNamespaceChainsIds,getNamespaceChainsIds_fn).call(this);return Ct.length&&!Ct.some($t=>yt.includes($t))?!1:!yt.every($t=>Et.includes($t))};_setupListeners=new WeakSet;setupListeners_fn=function(){__privateGet$1(this,_provider$1)&&(__privateMethod$1(this,_removeListeners,removeListeners_fn).call(this),__privateGet$1(this,_provider$1).on("accountsChanged",this.onAccountsChanged),__privateGet$1(this,_provider$1).on("chainChanged",this.onChainChanged),__privateGet$1(this,_provider$1).on("disconnect",this.onDisconnect),__privateGet$1(this,_provider$1).on("session_delete",this.onDisconnect),__privateGet$1(this,_provider$1).on("display_uri",this.onDisplayUri),__privateGet$1(this,_provider$1).on("connect",this.onConnect))};_removeListeners=new WeakSet;removeListeners_fn=function(){__privateGet$1(this,_provider$1)&&(__privateGet$1(this,_provider$1).removeListener("accountsChanged",this.onAccountsChanged),__privateGet$1(this,_provider$1).removeListener("chainChanged",this.onChainChanged),__privateGet$1(this,_provider$1).removeListener("disconnect",this.onDisconnect),__privateGet$1(this,_provider$1).removeListener("session_delete",this.onDisconnect),__privateGet$1(this,_provider$1).removeListener("display_uri",this.onDisplayUri),__privateGet$1(this,_provider$1).removeListener("connect",this.onConnect))};_setRequestedChainsIds=new WeakSet;setRequestedChainsIds_fn=function(ht){var Et;(Et=this.storage)==null||Et.setItem(REQUESTED_CHAINS_KEY,ht)};_getRequestedChainsIds=new WeakSet;getRequestedChainsIds_fn=function(){var ht;return((ht=this.storage)==null?void 0:ht.getItem(REQUESTED_CHAINS_KEY))??[]};_getNamespaceChainsIds=new WeakSet;getNamespaceChainsIds_fn=function(){var Ct,$t,At;if(!__privateGet$1(this,_provider$1))return[];const ht=(Ct=__privateGet$1(this,_provider$1).session)==null?void 0:Ct.namespaces;return ht?((At=($t=se$2(ht)[NAMESPACE])==null?void 0:$t.chains)==null?void 0:At.map(Bt=>parseInt(Bt.split(":")[1]||"")))??[]:[]};_getNamespaceMethods=new WeakSet;getNamespaceMethods_fn=function(){var Ct,$t;if(!__privateGet$1(this,_provider$1))return[];const ht=(Ct=__privateGet$1(this,_provider$1).session)==null?void 0:Ct.namespaces;return ht?(($t=se$2(ht)[NAMESPACE])==null?void 0:$t.methods)??[]:[]};var switchChainAllowedRegex=/(imtoken|metamask|rainbow|trust wallet|uniswap wallet|ledger)/i,_provider,_switchChain,switchChain_fn,WalletConnectLegacyConnector=class extends Connector{constructor(){super(...arguments),__privateAdd$1(this,_switchChain),this.id="walletConnectLegacy",this.name="WalletConnectLegacy",this.ready=!0,__privateAdd$1(this,_provider,void 0),this.onAccountsChanged=ht=>{ht.length===0?this.emit("disconnect"):this.emit("change",{account:getAddress$1(ht[0])})},this.onChainChanged=ht=>{const Et=normalizeChainId(ht),yt=this.isChainUnsupported(Et);this.emit("change",{chain:{id:Et,unsupported:yt}})},this.onDisconnect=()=>{this.emit("disconnect")}}async connect({chainId:ht}={}){var Et,yt,Ct,$t,At,Bt;try{let Dt=ht;if(!Dt){const Vt=(Et=this.storage)==null?void 0:Et.getItem("store"),Kt=($t=(Ct=(yt=Vt==null?void 0:Vt.state)==null?void 0:yt.data)==null?void 0:Ct.chain)==null?void 0:$t.id;Kt&&!this.isChainUnsupported(Kt)&&(Dt=Kt)}const Ft=await this.getProvider({chainId:Dt,create:!0});Ft.on("accountsChanged",this.onAccountsChanged),Ft.on("chainChanged",this.onChainChanged),Ft.on("disconnect",this.onDisconnect),setTimeout(()=>this.emit("message",{type:"connecting"}),0);const kt=await Ft.enable(),Mt=getAddress$1(kt[0]),Nt=await this.getChainId(),jt=this.isChainUnsupported(Nt),zt=((Bt=(At=Ft.connector)==null?void 0:At.peerMeta)==null?void 0:Bt.name)??"";return switchChainAllowedRegex.test(zt)&&(this.switchChain=__privateMethod$1(this,_switchChain,switchChain_fn)),{account:Mt,chain:{id:Nt,unsupported:jt}}}catch(Dt){throw/user closed modal/i.test(Dt.message)?new UserRejectedRequestError(Dt):Dt}}async disconnect(){const ht=await this.getProvider();await ht.disconnect(),ht.removeListener("accountsChanged",this.onAccountsChanged),ht.removeListener("chainChanged",this.onChainChanged),ht.removeListener("disconnect",this.onDisconnect),typeof localStorage<"u"&&localStorage.removeItem("walletconnect")}async getAccount(){const Et=(await this.getProvider()).accounts;return getAddress$1(Et[0])}async getChainId(){const ht=await this.getProvider();return normalizeChainId(ht.chainId)}async getProvider({chainId:ht,create:Et}={}){var yt,Ct;if(!__privateGet$1(this,_provider)||ht||Et){const $t=(yt=this.options)!=null&&yt.infuraId?{}:this.chains.reduce((Bt,Dt)=>({...Bt,[Dt.id]:Dt.rpcUrls.default.http[0]}),{}),At=(await __vitePreload(async()=>{const{default:Bt}=await import("./index-CNi90x9u.js");return{default:Bt}},__vite__mapDeps([2,1,3]))).default;__privateSet$1(this,_provider,new At({...this.options,chainId:ht,rpc:{...$t,...(Ct=this.options)==null?void 0:Ct.rpc}})),__privateGet$1(this,_provider).http=await __privateGet$1(this,_provider).setHttpProvider(ht)}return __privateGet$1(this,_provider)}async getWalletClient({chainId:ht}={}){const[Et,yt]=await Promise.all([this.getProvider({chainId:ht}),this.getAccount()]),Ct=this.chains.find($t=>$t.id===ht);if(!Et)throw new Error("provider is required.");return createWalletClient({account:yt,chain:Ct,transport:custom(Et)})}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}};_provider=new WeakMap;_switchChain=new WeakSet;switchChain_fn=async function(ht){const Et=await this.getProvider(),yt=numberToHex(ht);try{return await Promise.race([Et.request({method:"wallet_switchEthereumChain",params:[{chainId:yt}]}),new Promise(Ct=>this.on("change",({chain:$t})=>{($t==null?void 0:$t.id)===ht&&Ct(ht)}))]),this.chains.find(Ct=>Ct.id===ht)??{id:ht,name:`Chain ${yt}`,network:`${yt}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(Ct){const $t=typeof Ct=="string"?Ct:Ct==null?void 0:Ct.message;throw/user rejected request/i.test($t)?new UserRejectedRequestError(Ct):new SwitchChainError(Ct)}};async function getWalletConnectUri(ht,Et){const yt=await ht.getProvider();return Et==="2"?new Promise(Ct=>yt.once("display_uri",Ct)):yt.connector.uri}var sharedConnectors=new Map;function createConnector(ht,Et){const yt=ht==="1"?new WalletConnectLegacyConnector(Et):new WalletConnectConnector(Et);return sharedConnectors.set(JSON.stringify(Et),yt),yt}function getWalletConnectConnector({chains:ht,options:Et={},projectId:yt,version:Ct="2"}){const $t="21fef48091f12692cad574a6f7753643";if(Ct==="2"){if(!yt||yt==="")throw new Error("No projectId found. Every dApp must now provide a WalletConnect Cloud projectId to enable WalletConnect v2 https://www.rainbowkit.com/docs/installation#configure");(yt==="YOUR_PROJECT_ID"||yt===$t)&&console.warn("Invalid projectId. Please create a unique WalletConnect Cloud projectId for your dApp https://www.rainbowkit.com/docs/installation#configure")}const At={chains:ht,options:Ct==="1"?{qrcode:!1,...Et}:{projectId:yt==="YOUR_PROJECT_ID"?$t:yt,showQrModal:!1,...Et}},Bt=JSON.stringify(At),Dt=sharedConnectors.get(Bt);return Dt??createConnector(Ct,At)}function isAndroid$1(){return typeof navigator<"u"&&/android/i.test(navigator.userAgent)}function isSmallIOS$1(){return typeof navigator<"u"&&/iPhone|iPod/.test(navigator.userAgent)}function isLargeIOS$1(){return typeof navigator<"u"&&(/iPad/.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)}function isIOS$1(){return isSmallIOS$1()||isLargeIOS$1()}var walletConnectWallet=({chains:ht,options:Et,projectId:yt,version:Ct="2"})=>({id:"walletConnect",name:"WalletConnect",iconUrl:async()=>(await __vitePreload(async()=>{const{default:$t}=await import("./walletConnectWallet-D6ZADJM7-8OuKJLEq.js");return{default:$t}},[])).default,iconBackground:"#3b99fc",createConnector:()=>{const $t=isIOS$1(),At=getWalletConnectConnector(Ct==="1"?{version:"1",chains:ht,options:{qrcode:$t,...Et}}:{version:"2",chains:ht,projectId:yt,options:{showQrModal:$t,...Et}}),Bt=async()=>getWalletConnectUri(At,Ct);return{connector:At,...$t?{}:{mobile:{getUri:Bt},qrCode:{getUri:Bt}}}}}),_UNSTABLE_shimOnConnectSelectAccount,MetaMaskConnector=class extends InjectedConnector{constructor({chains:ht,options:Et}={}){const yt={name:"MetaMask",shimDisconnect:!0,getProvider(){function Ct(At){if(At!=null&&At.isMetaMask&&!(At.isBraveWallet&&!At._events&&!At._state)&&!At.isApexWallet&&!At.isAvalanche&&!At.isBitKeep&&!At.isBlockWallet&&!At.isCoin98&&!At.isFordefi&&!At.isMathWallet&&!(At.isOkxWallet||At.isOKExWallet)&&!(At.isOneInchIOSWallet||At.isOneInchAndroidWallet)&&!At.isOpera&&!At.isPortal&&!At.isRabby&&!At.isDefiant&&!At.isTokenPocket&&!At.isTokenary&&!At.isZeal&&!At.isZerion)return At}if(typeof window>"u")return;const $t=window.ethereum;return $t!=null&&$t.providers?$t.providers.find(Ct):Ct($t)},...Et};super({chains:ht,options:yt}),this.id="metaMask",this.shimDisconnectKey=`${this.id}.shimDisconnect`,__privateAdd$1(this,_UNSTABLE_shimOnConnectSelectAccount,void 0),__privateSet$1(this,_UNSTABLE_shimOnConnectSelectAccount,yt.UNSTABLE_shimOnConnectSelectAccount)}async connect({chainId:ht}={}){var Et,yt,Ct,$t;try{const At=await this.getProvider();if(!At)throw new ConnectorNotFoundError;At.on&&(At.on("accountsChanged",this.onAccountsChanged),At.on("chainChanged",this.onChainChanged),At.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});let Bt=null;if(__privateGet$1(this,_UNSTABLE_shimOnConnectSelectAccount)&&((Et=this.options)!=null&&Et.shimDisconnect)&&!((yt=this.storage)!=null&&yt.getItem(this.shimDisconnectKey))&&(Bt=await this.getAccount().catch(()=>null),!!Bt))try{await At.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]}),Bt=await this.getAccount()}catch(Mt){if(this.isUserRejectedRequestError(Mt))throw new UserRejectedRequestError(Mt);if(Mt.code===new ResourceUnavailableRpcError(Mt).code)throw Mt}if(!Bt){const kt=await At.request({method:"eth_requestAccounts"});Bt=getAddress$1(kt[0])}let Dt=await this.getChainId(),Ft=this.isChainUnsupported(Dt);return ht&&Dt!==ht&&(Dt=(await this.switchChain(ht)).id,Ft=this.isChainUnsupported(Dt)),(Ct=this.options)!=null&&Ct.shimDisconnect&&(($t=this.storage)==null||$t.setItem(this.shimDisconnectKey,!0)),{account:Bt,chain:{id:Dt,unsupported:Ft},provider:At}}catch(At){throw this.isUserRejectedRequestError(At)?new UserRejectedRequestError(At):At.code===-32002?new ResourceUnavailableRpcError(At):At}}};_UNSTABLE_shimOnConnectSelectAccount=new WeakMap;function isMetaMask(ht){return!(!(ht!=null&&ht.isMetaMask)||ht.isBraveWallet&&!ht._events&&!ht._state||ht.isApexWallet||ht.isAvalanche||ht.isBackpack||ht.isBifrost||ht.isBitKeep||ht.isBitski||ht.isBlockWallet||ht.isCoinbaseWallet||ht.isDawn||ht.isEnkrypt||ht.isExodus||ht.isFrame||ht.isFrontier||ht.isGamestop||ht.isHyperPay||ht.isImToken||ht.isKuCoinWallet||ht.isMathWallet||ht.isOkxWallet||ht.isOKExWallet||ht.isOneInchIOSWallet||ht.isOneInchAndroidWallet||ht.isOpera||ht.isPhantom||ht.isPortal||ht.isRabby||ht.isRainbow||ht.isStatus||ht.isTalisman||ht.isTally||ht.isTokenPocket||ht.isTokenary||ht.isTrust||ht.isTrustWallet||ht.isXDEFI||ht.isZeal||ht.isZerion)}var metaMaskWallet=({chains:ht,projectId:Et,walletConnectOptions:yt,walletConnectVersion:Ct="2",...$t})=>{var At,Bt;const Dt=typeof window<"u"&&((At=window.ethereum)==null?void 0:At.providers),Ft=typeof window<"u"&&typeof window.ethereum<"u"&&(((Bt=window.ethereum.providers)==null?void 0:Bt.some(isMetaMask))||window.ethereum.isMetaMask),kt=!Ft;return{id:"metaMask",name:"MetaMask",iconUrl:async()=>(await __vitePreload(async()=>{const{default:Mt}=await import("./metaMaskWallet-ORHUNQRP-D9jY-BK7.js");return{default:Mt}},[])).default,iconAccent:"#f6851a",iconBackground:"#fff",installed:kt?void 0:Ft,downloadUrls:{android:"https://play.google.com/store/apps/details?id=io.metamask",ios:"https://apps.apple.com/us/app/metamask/id1438144202",mobile:"https://metamask.io/download",qrCode:"https://metamask.io/download",chrome:"https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn",edge:"https://microsoftedge.microsoft.com/addons/detail/metamask/ejbalbakoplchlghecdalmeeeajnimhm",firefox:"https://addons.mozilla.org/firefox/addon/ether-metamask",opera:"https://addons.opera.com/extensions/details/metamask-10",browserExtension:"https://metamask.io/download"},createConnector:()=>{const Mt=kt?getWalletConnectConnector({projectId:Et,chains:ht,version:Ct,options:yt}):new MetaMaskConnector({chains:ht,options:{getProvider:()=>Dt?Dt.find(isMetaMask):typeof window<"u"?window.ethereum:void 0,...$t}}),Nt=async()=>{const jt=await getWalletConnectUri(Mt,Ct);return isAndroid$1()?jt:isIOS$1()?`metamask://wc?uri=${encodeURIComponent(jt)}`:`https://metamask.app.link/wc?uri=${encodeURIComponent(jt)}`};return{connector:Mt,mobile:{getUri:kt?Nt:void 0},qrCode:kt?{getUri:Nt,instructions:{learnMoreUrl:"https://metamask.io/faqs/",steps:[{description:"wallet_connectors.metamask.qr_code.step1.description",step:"install",title:"wallet_connectors.metamask.qr_code.step1.title"},{description:"wallet_connectors.metamask.qr_code.step2.description",step:"create",title:"wallet_connectors.metamask.qr_code.step2.title"},{description:"wallet_connectors.metamask.qr_code.step3.description",step:"refresh",title:"wallet_connectors.metamask.qr_code.step3.title"}]}}:void 0,extension:{instructions:{learnMoreUrl:"https://metamask.io/faqs/",steps:[{description:"wallet_connectors.metamask.extension.step1.description",step:"install",title:"wallet_connectors.metamask.extension.step1.title"},{description:"wallet_connectors.metamask.extension.step2.description",step:"create",title:"wallet_connectors.metamask.extension.step2.title"},{description:"wallet_connectors.metamask.extension.step3.description",step:"refresh",title:"wallet_connectors.metamask.extension.step3.title"}]}}}}}},systemFontStack='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontStacks={rounded:`SFRounded, ui-rounded, "SF Pro Rounded", ${systemFontStack}`,system:systemFontStack},radiusScales={large:{actionButton:"9999px",connectButton:"12px",modal:"24px",modalMobile:"28px"},medium:{actionButton:"10px",connectButton:"8px",modal:"16px",modalMobile:"18px"},none:{actionButton:"0px",connectButton:"0px",modal:"0px",modalMobile:"0px"},small:{actionButton:"4px",connectButton:"4px",modal:"8px",modalMobile:"8px"}},blurs={large:{modalOverlay:"blur(20px)"},none:{modalOverlay:"blur(0px)"},small:{modalOverlay:"blur(4px)"}},baseTheme=({borderRadius:ht="large",fontStack:Et="rounded",overlayBlur:yt="none"})=>({blurs:{modalOverlay:blurs[yt].modalOverlay},fonts:{body:fontStacks[Et]},radii:{actionButton:radiusScales[ht].actionButton,connectButton:radiusScales[ht].connectButton,menuButton:radiusScales[ht].connectButton,modal:radiusScales[ht].modal,modalMobile:radiusScales[ht].modalMobile}}),darkGrey="#1A1B1F",accentColors$1={blue:{accentColor:"#3898FF",accentColorForeground:"#FFF"},green:{accentColor:"#4BD166",accentColorForeground:darkGrey},orange:{accentColor:"#FF983D",accentColorForeground:darkGrey},pink:{accentColor:"#FF7AB8",accentColorForeground:darkGrey},purple:{accentColor:"#7A70FF",accentColorForeground:"#FFF"},red:{accentColor:"#FF6257",accentColorForeground:"#FFF"}},defaultAccentColor$1=accentColors$1.blue,darkTheme=({accentColor:ht=defaultAccentColor$1.accentColor,accentColorForeground:Et=defaultAccentColor$1.accentColorForeground,...yt}={})=>({...baseTheme(yt),colors:{accentColor:ht,accentColorForeground:Et,actionButtonBorder:"rgba(255, 255, 255, 0.04)",actionButtonBorderMobile:"rgba(255, 255, 255, 0.08)",actionButtonSecondaryBackground:"rgba(255, 255, 255, 0.08)",closeButton:"rgba(224, 232, 255, 0.6)",closeButtonBackground:"rgba(255, 255, 255, 0.08)",connectButtonBackground:darkGrey,connectButtonBackgroundError:"#FF494A",connectButtonInnerBackground:"linear-gradient(0deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.15))",connectButtonText:"#FFF",connectButtonTextError:"#FFF",connectionIndicator:"#30E000",downloadBottomCardBackground:"linear-gradient(126deg, rgba(0, 0, 0, 0) 9.49%, rgba(120, 120, 120, 0.2) 71.04%), #1A1B1F",downloadTopCardBackground:"linear-gradient(126deg, rgba(120, 120, 120, 0.2) 9.49%, rgba(0, 0, 0, 0) 71.04%), #1A1B1F",error:"#FF494A",generalBorder:"rgba(255, 255, 255, 0.08)",generalBorderDim:"rgba(255, 255, 255, 0.04)",menuItemBackground:"rgba(224, 232, 255, 0.1)",modalBackdrop:"rgba(0, 0, 0, 0.5)",modalBackground:"#1A1B1F",modalBorder:"rgba(255, 255, 255, 0.08)",modalText:"#FFF",modalTextDim:"rgba(224, 232, 255, 0.3)",modalTextSecondary:"rgba(255, 255, 255, 0.6)",profileAction:"rgba(224, 232, 255, 0.1)",profileActionHover:"rgba(224, 232, 255, 0.2)",profileForeground:"rgba(224, 232, 255, 0.05)",selectedOptionBorder:"rgba(224, 232, 255, 0.1)",standby:"#FFD641"},shadows:{connectButton:"0px 4px 12px rgba(0, 0, 0, 0.1)",dialog:"0px 8px 32px rgba(0, 0, 0, 0.32)",profileDetailsAction:"0px 2px 6px rgba(37, 41, 46, 0.04)",selectedOption:"0px 2px 6px rgba(0, 0, 0, 0.24)",selectedWallet:"0px 2px 6px rgba(0, 0, 0, 0.24)",walletLogo:"0px 2px 16px rgba(0, 0, 0, 0.16)"}});darkTheme.accentColors=accentColors$1;var accentColors={blue:{accentColor:"#0E76FD",accentColorForeground:"#FFF"},green:{accentColor:"#1DB847",accentColorForeground:"#FFF"},orange:{accentColor:"#FF801F",accentColorForeground:"#FFF"},pink:{accentColor:"#FF5CA0",accentColorForeground:"#FFF"},purple:{accentColor:"#5F5AFA",accentColorForeground:"#FFF"},red:{accentColor:"#FA423C",accentColorForeground:"#FFF"}},defaultAccentColor=accentColors.blue,lightTheme=({accentColor:ht=defaultAccentColor.accentColor,accentColorForeground:Et=defaultAccentColor.accentColorForeground,...yt}={})=>({...baseTheme(yt),colors:{accentColor:ht,accentColorForeground:Et,actionButtonBorder:"rgba(0, 0, 0, 0.04)",actionButtonBorderMobile:"rgba(0, 0, 0, 0.06)",actionButtonSecondaryBackground:"rgba(0, 0, 0, 0.06)",closeButton:"rgba(60, 66, 66, 0.8)",closeButtonBackground:"rgba(0, 0, 0, 0.06)",connectButtonBackground:"#FFF",connectButtonBackgroundError:"#FF494A",connectButtonInnerBackground:"linear-gradient(0deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.06))",connectButtonText:"#25292E",connectButtonTextError:"#FFF",connectionIndicator:"#30E000",downloadBottomCardBackground:"linear-gradient(126deg, rgba(255, 255, 255, 0) 9.49%, rgba(171, 171, 171, 0.04) 71.04%), #FFFFFF",downloadTopCardBackground:"linear-gradient(126deg, rgba(171, 171, 171, 0.2) 9.49%, rgba(255, 255, 255, 0) 71.04%), #FFFFFF",error:"#FF494A",generalBorder:"rgba(0, 0, 0, 0.06)",generalBorderDim:"rgba(0, 0, 0, 0.03)",menuItemBackground:"rgba(60, 66, 66, 0.1)",modalBackdrop:"rgba(0, 0, 0, 0.3)",modalBackground:"#FFF",modalBorder:"transparent",modalText:"#25292E",modalTextDim:"rgba(60, 66, 66, 0.3)",modalTextSecondary:"rgba(60, 66, 66, 0.6)",profileAction:"#FFF",profileActionHover:"rgba(255, 255, 255, 0.5)",profileForeground:"rgba(60, 66, 66, 0.06)",selectedOptionBorder:"rgba(60, 66, 66, 0.1)",standby:"#FFD641"},shadows:{connectButton:"0px 4px 12px rgba(0, 0, 0, 0.1)",dialog:"0px 8px 32px rgba(0, 0, 0, 0.32)",profileDetailsAction:"0px 2px 6px rgba(37, 41, 46, 0.04)",selectedOption:"0px 2px 6px rgba(0, 0, 0, 0.24)",selectedWallet:"0px 2px 6px rgba(0, 0, 0, 0.12)",walletLogo:"0px 2px 16px rgba(0, 0, 0, 0.16)"}});lightTheme.accentColors=accentColors;function addFunctionSerializer(ht,Et){return Object.defineProperty(ht,"__recipe__",{value:Et,writable:!1}),ht}var addRecipe=addFunctionSerializer;function createNormalizeValueFn(ht){var{conditions:Et}=ht;if(!Et)throw new Error("Styles have no conditions");function yt(Ct){if(typeof Ct=="string"||typeof Ct=="number"||typeof Ct=="boolean"){if(!Et.defaultCondition)throw new Error("No default condition");return{[Et.defaultCondition]:Ct}}if(Array.isArray(Ct)){if(!("responsiveArray"in Et))throw new Error("Responsive arrays are not supported");var $t={};for(var At in Et.responsiveArray)Ct[At]!=null&&($t[Et.responsiveArray[At]]=Ct[At]);return $t}return Ct}return addRecipe(yt,{importPath:"@vanilla-extract/sprinkles/createUtils",importName:"createNormalizeValueFn",args:[{conditions:ht.conditions}]})}function createMapValueFn(ht){var{conditions:Et}=ht;if(!Et)throw new Error("Styles have no conditions");var yt=createNormalizeValueFn(ht);function Ct($t,At){if(typeof $t=="string"||typeof $t=="number"||typeof $t=="boolean"){if(!Et.defaultCondition)throw new Error("No default condition");return At($t,Et.defaultCondition)}var Bt=Array.isArray($t)?yt($t):$t,Dt={};for(var Ft in Bt)Bt[Ft]!=null&&(Dt[Ft]=At(Bt[Ft],Ft));return Dt}return addRecipe(Ct,{importPath:"@vanilla-extract/sprinkles/createUtils",importName:"createMapValueFn",args:[{conditions:ht.conditions}]})}function _defineProperty$3(ht,Et,yt){return Et in ht?Object.defineProperty(ht,Et,{value:yt,enumerable:!0,configurable:!0,writable:!0}):ht[Et]=yt,ht}function ownKeys$6(ht,Et){var yt=Object.keys(ht);if(Object.getOwnPropertySymbols){var Ct=Object.getOwnPropertySymbols(ht);Et&&(Ct=Ct.filter(function($t){return Object.getOwnPropertyDescriptor(ht,$t).enumerable})),yt.push.apply(yt,Ct)}return yt}function _objectSpread2$1(ht){for(var Et=1;Et<arguments.length;Et++){var yt=arguments[Et]!=null?arguments[Et]:{};Et%2?ownKeys$6(Object(yt),!0).forEach(function(Ct){_defineProperty$3(ht,Ct,yt[Ct])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ht,Object.getOwnPropertyDescriptors(yt)):ownKeys$6(Object(yt)).forEach(function(Ct){Object.defineProperty(ht,Ct,Object.getOwnPropertyDescriptor(yt,Ct))})}return ht}var createSprinkles$1=ht=>function(){for(var Et=arguments.length,yt=new Array(Et),Ct=0;Ct<Et;Ct++)yt[Ct]=arguments[Ct];var $t=Object.assign({},...yt.map(Ft=>Ft.styles)),At=Object.keys($t),Bt=At.filter(Ft=>"mappings"in $t[Ft]),Dt=Ft=>{var kt=[],Mt={},Nt=_objectSpread2$1({},Ft),jt=!1;for(var zt of Bt){var Vt=Ft[zt];if(Vt!=null){var Kt=$t[zt];jt=!0;for(var Xt of Kt.mappings)Mt[Xt]=Vt,Nt[Xt]==null&&delete Nt[Xt]}}var Qt=jt?_objectSpread2$1(_objectSpread2$1({},Mt),Nt):Ft;for(var Zt in Qt){var dr=Qt[Zt],cr=$t[Zt];try{if(cr.mappings)continue;if(typeof dr=="string"||typeof dr=="number")kt.push(cr.values[dr].defaultClass);else if(Array.isArray(dr))for(var Er=0;Er<dr.length;Er++){var pr=dr[Er];if(pr!=null){var gr=cr.responsiveArray[Er];kt.push(cr.values[pr].conditions[gr])}}else for(var vr in dr){var yr=dr[vr];yr!=null&&kt.push(cr.values[yr].conditions[vr])}}catch(xr){throw xr}}return ht(kt.join(" "))};return Object.assign(Dt,{properties:new Set(At)})},composeStyles=ht=>ht,createSprinkles=function ht(){return createSprinkles$1(composeStyles)(...arguments)};function toVal(ht){var Et,yt,Ct="";if(typeof ht=="string"||typeof ht=="number")Ct+=ht;else if(typeof ht=="object")if(Array.isArray(ht))for(Et=0;Et<ht.length;Et++)ht[Et]&&(yt=toVal(ht[Et]))&&(Ct&&(Ct+=" "),Ct+=yt);else for(Et in ht)ht[Et]&&(Ct&&(Ct+=" "),Ct+=Et);return Ct}function clsx2(){for(var ht=0,Et,yt,Ct="";ht<arguments.length;)(Et=arguments[ht++])&&(yt=toVal(Et))&&(Ct&&(Ct+=" "),Ct+=yt);return Ct}var require$1={},I18n$1={},isArray$j=Array.isArray,isArray_1=isArray$j,freeGlobal$3=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_freeGlobal=freeGlobal$3,freeGlobal$2=_freeGlobal,freeSelf$2=typeof self=="object"&&self&&self.Object===Object&&self,root$c=freeGlobal$2||freeSelf$2||Function("return this")(),_root=root$c,root$b=_root,Symbol$b=root$b.Symbol,_Symbol=Symbol$b,Symbol$a=_Symbol,objectProto$v=Object.prototype,hasOwnProperty$r=objectProto$v.hasOwnProperty,nativeObjectToString$4=objectProto$v.toString,symToStringTag$4=Symbol$a?Symbol$a.toStringTag:void 0;function getRawTag$3(ht){var Et=hasOwnProperty$r.call(ht,symToStringTag$4),yt=ht[symToStringTag$4];try{ht[symToStringTag$4]=void 0;var Ct=!0}catch{}var $t=nativeObjectToString$4.call(ht);return Ct&&(Et?ht[symToStringTag$4]=yt:delete ht[symToStringTag$4]),$t}var _getRawTag=getRawTag$3,objectProto$u=Object.prototype,nativeObjectToString$3=objectProto$u.toString;function objectToString$5(ht){return nativeObjectToString$3.call(ht)}var _objectToString=objectToString$5,Symbol$9=_Symbol,getRawTag$2=_getRawTag,objectToString$4=_objectToString,nullTag$2="[object Null]",undefinedTag$2="[object Undefined]",symToStringTag$3=Symbol$9?Symbol$9.toStringTag:void 0;function baseGetTag$8(ht){return ht==null?ht===void 0?undefinedTag$2:nullTag$2:symToStringTag$3&&symToStringTag$3 in Object(ht)?getRawTag$2(ht):objectToString$4(ht)}var _baseGetTag=baseGetTag$8;function isObjectLike$a(ht){return ht!=null&&typeof ht=="object"}var isObjectLike_1=isObjectLike$a,baseGetTag$7=_baseGetTag,isObjectLike$9=isObjectLike_1,symbolTag$5="[object Symbol]";function isSymbol$c(ht){return typeof ht=="symbol"||isObjectLike$9(ht)&&baseGetTag$7(ht)==symbolTag$5}var isSymbol_1=isSymbol$c,isArray$i=isArray_1,isSymbol$b=isSymbol_1,reIsDeepProp$2=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp$2=/^\w*$/;function isKey$5(ht,Et){if(isArray$i(ht))return!1;var yt=typeof ht;return yt=="number"||yt=="symbol"||yt=="boolean"||ht==null||isSymbol$b(ht)?!0:reIsPlainProp$2.test(ht)||!reIsDeepProp$2.test(ht)||Et!=null&&ht in Object(Et)}var _isKey=isKey$5;function isObject$r(ht){var Et=typeof ht;return ht!=null&&(Et=="object"||Et=="function")}var isObject_1=isObject$r,baseGetTag$6=_baseGetTag,isObject$q=isObject_1,asyncTag$1="[object AsyncFunction]",funcTag$5="[object Function]",genTag$3="[object GeneratorFunction]",proxyTag$1="[object Proxy]";function isFunction$a(ht){if(!isObject$q(ht))return!1;var Et=baseGetTag$6(ht);return Et==funcTag$5||Et==genTag$3||Et==asyncTag$1||Et==proxyTag$1}var isFunction_1=isFunction$a,root$a=_root,coreJsData$3=root$a["__core-js_shared__"],_coreJsData=coreJsData$3,coreJsData$2=_coreJsData,maskSrcKey$2=function(){var ht=/[^.]+$/.exec(coreJsData$2&&coreJsData$2.keys&&coreJsData$2.keys.IE_PROTO||"");return ht?"Symbol(src)_1."+ht:""}();function isMasked$3(ht){return!!maskSrcKey$2&&maskSrcKey$2 in ht}var _isMasked=isMasked$3,funcProto$7=Function.prototype,funcToString$7=funcProto$7.toString;function toSource$4(ht){if(ht!=null){try{return funcToString$7.call(ht)}catch{}try{return ht+""}catch{}}return""}var _toSource=toSource$4,isFunction$9=isFunction_1,isMasked$2=_isMasked,isObject$p=isObject_1,toSource$3=_toSource,reRegExpChar$2=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor$2=/^\[object .+?Constructor\]$/,funcProto$6=Function.prototype,objectProto$t=Object.prototype,funcToString$6=funcProto$6.toString,hasOwnProperty$q=objectProto$t.hasOwnProperty,reIsNative$2=RegExp("^"+funcToString$6.call(hasOwnProperty$q).replace(reRegExpChar$2,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$3(ht){if(!isObject$p(ht)||isMasked$2(ht))return!1;var Et=isFunction$9(ht)?reIsNative$2:reIsHostCtor$2;return Et.test(toSource$3(ht))}var _baseIsNative=baseIsNative$3;function getValue$6(ht,Et){return ht==null?void 0:ht[Et]}var _getValue=getValue$6,baseIsNative$2=_baseIsNative,getValue$5=_getValue;function getNative$9(ht,Et){var yt=getValue$5(ht,Et);return baseIsNative$2(yt)?yt:void 0}var _getNative=getNative$9,getNative$8=_getNative,nativeCreate$6=getNative$8(Object,"create"),_nativeCreate=nativeCreate$6,nativeCreate$5=_nativeCreate;function hashClear$3(){this.__data__=nativeCreate$5?nativeCreate$5(null):{},this.size=0}var _hashClear=hashClear$3;function hashDelete$3(ht){var Et=this.has(ht)&&delete this.__data__[ht];return this.size-=Et?1:0,Et}var _hashDelete=hashDelete$3,nativeCreate$4=_nativeCreate,HASH_UNDEFINED$6="__lodash_hash_undefined__",objectProto$s=Object.prototype,hasOwnProperty$p=objectProto$s.hasOwnProperty;function hashGet$3(ht){var Et=this.__data__;if(nativeCreate$4){var yt=Et[ht];return yt===HASH_UNDEFINED$6?void 0:yt}return hasOwnProperty$p.call(Et,ht)?Et[ht]:void 0}var _hashGet=hashGet$3,nativeCreate$3=_nativeCreate,objectProto$r=Object.prototype,hasOwnProperty$o=objectProto$r.hasOwnProperty;function hashHas$3(ht){var Et=this.__data__;return nativeCreate$3?Et[ht]!==void 0:hasOwnProperty$o.call(Et,ht)}var _hashHas=hashHas$3,nativeCreate$2=_nativeCreate,HASH_UNDEFINED$5="__lodash_hash_undefined__";function hashSet$3(ht,Et){var yt=this.__data__;return this.size+=this.has(ht)?0:1,yt[ht]=nativeCreate$2&&Et===void 0?HASH_UNDEFINED$5:Et,this}var _hashSet=hashSet$3,hashClear$2=_hashClear,hashDelete$2=_hashDelete,hashGet$2=_hashGet,hashHas$2=_hashHas,hashSet$2=_hashSet;function Hash$4(ht){var Et=-1,yt=ht==null?0:ht.length;for(this.clear();++Et<yt;){var Ct=ht[Et];this.set(Ct[0],Ct[1])}}Hash$4.prototype.clear=hashClear$2;Hash$4.prototype.delete=hashDelete$2;Hash$4.prototype.get=hashGet$2;Hash$4.prototype.has=hashHas$2;Hash$4.prototype.set=hashSet$2;var _Hash=Hash$4;function listCacheClear$3(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$3;function eq$8(ht,Et){return ht===Et||ht!==ht&&Et!==Et}var eq_1=eq$8,eq$7=eq_1;function assocIndexOf$6(ht,Et){for(var yt=ht.length;yt--;)if(eq$7(ht[yt][0],Et))return yt;return-1}var _assocIndexOf=assocIndexOf$6,assocIndexOf$5=_assocIndexOf,arrayProto$2=Array.prototype,splice$2=arrayProto$2.splice;function listCacheDelete$3(ht){var Et=this.__data__,yt=assocIndexOf$5(Et,ht);if(yt<0)return!1;var Ct=Et.length-1;return yt==Ct?Et.pop():splice$2.call(Et,yt,1),--this.size,!0}var _listCacheDelete=listCacheDelete$3,assocIndexOf$4=_assocIndexOf;function listCacheGet$3(ht){var Et=this.__data__,yt=assocIndexOf$4(Et,ht);return yt<0?void 0:Et[yt][1]}var _listCacheGet=listCacheGet$3,assocIndexOf$3=_assocIndexOf;function listCacheHas$3(ht){return assocIndexOf$3(this.__data__,ht)>-1}var _listCacheHas=listCacheHas$3,assocIndexOf$2=_assocIndexOf;function listCacheSet$3(ht,Et){var yt=this.__data__,Ct=assocIndexOf$2(yt,ht);return Ct<0?(++this.size,yt.push([ht,Et])):yt[Ct][1]=Et,this}var _listCacheSet=listCacheSet$3,listCacheClear$2=_listCacheClear,listCacheDelete$2=_listCacheDelete,listCacheGet$2=_listCacheGet,listCacheHas$2=_listCacheHas,listCacheSet$2=_listCacheSet;function ListCache$6(ht){var Et=-1,yt=ht==null?0:ht.length;for(this.clear();++Et<yt;){var Ct=ht[Et];this.set(Ct[0],Ct[1])}}ListCache$6.prototype.clear=listCacheClear$2;ListCache$6.prototype.delete=listCacheDelete$2;ListCache$6.prototype.get=listCacheGet$2;ListCache$6.prototype.has=listCacheHas$2;ListCache$6.prototype.set=listCacheSet$2;var _ListCache=ListCache$6,getNative$7=_getNative,root$9=_root,Map$6=getNative$7(root$9,"Map"),_Map=Map$6,Hash$3=_Hash,ListCache$5=_ListCache,Map$5=_Map;function mapCacheClear$3(){this.size=0,this.__data__={hash:new Hash$3,map:new(Map$5||ListCache$5),string:new Hash$3}}var _mapCacheClear=mapCacheClear$3;function isKeyable$3(ht){var Et=typeof ht;return Et=="string"||Et=="number"||Et=="symbol"||Et=="boolean"?ht!=="__proto__":ht===null}var _isKeyable=isKeyable$3,isKeyable$2=_isKeyable;function getMapData$6(ht,Et){var yt=ht.__data__;return isKeyable$2(Et)?yt[typeof Et=="string"?"string":"hash"]:yt.map}var _getMapData=getMapData$6,getMapData$5=_getMapData;function mapCacheDelete$3(ht){var Et=getMapData$5(this,ht).delete(ht);return this.size-=Et?1:0,Et}var _mapCacheDelete=mapCacheDelete$3,getMapData$4=_getMapData;function mapCacheGet$3(ht){return getMapData$4(this,ht).get(ht)}var _mapCacheGet=mapCacheGet$3,getMapData$3=_getMapData;function mapCacheHas$3(ht){return getMapData$3(this,ht).has(ht)}var _mapCacheHas=mapCacheHas$3,getMapData$2=_getMapData;function mapCacheSet$3(ht,Et){var yt=getMapData$2(this,ht),Ct=yt.size;return yt.set(ht,Et),this.size+=yt.size==Ct?0:1,this}var _mapCacheSet=mapCacheSet$3,mapCacheClear$2=_mapCacheClear,mapCacheDelete$2=_mapCacheDelete,mapCacheGet$2=_mapCacheGet,mapCacheHas$2=_mapCacheHas,mapCacheSet$2=_mapCacheSet;function MapCache$5(ht){var Et=-1,yt=ht==null?0:ht.length;for(this.clear();++Et<yt;){var Ct=ht[Et];this.set(Ct[0],Ct[1])}}MapCache$5.prototype.clear=mapCacheClear$2;MapCache$5.prototype.delete=mapCacheDelete$2;MapCache$5.prototype.get=mapCacheGet$2;MapCache$5.prototype.has=mapCacheHas$2;MapCache$5.prototype.set=mapCacheSet$2;var _MapCache=MapCache$5,MapCache$4=_MapCache,FUNC_ERROR_TEXT$3="Expected a function";function memoize$3(ht,Et){if(typeof ht!="function"||Et!=null&&typeof Et!="function")throw new TypeError(FUNC_ERROR_TEXT$3);var yt=function(){var Ct=arguments,$t=Et?Et.apply(this,Ct):Ct[0],At=yt.cache;if(At.has($t))return At.get($t);var Bt=ht.apply(this,Ct);return yt.cache=At.set($t,Bt)||At,Bt};return yt.cache=new(memoize$3.Cache||MapCache$4),yt}memoize$3.Cache=MapCache$4;var memoize_1=memoize$3,memoize$2=memoize_1,MAX_MEMOIZE_SIZE$1=500;function memoizeCapped$2(ht){var Et=memoize$2(ht,function(Ct){return yt.size===MAX_MEMOIZE_SIZE$1&&yt.clear(),Ct}),yt=Et.cache;return Et}var _memoizeCapped=memoizeCapped$2,memoizeCapped$1=_memoizeCapped,rePropName$2=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar$2=/\\(\\)?/g,stringToPath$3=memoizeCapped$1(function(ht){var Et=[];return ht.charCodeAt(0)===46&&Et.push(""),ht.replace(rePropName$2,function(yt,Ct,$t,At){Et.push($t?At.replace(reEscapeChar$2,"$1"):Ct||yt)}),Et}),_stringToPath=stringToPath$3;function arrayMap$3(ht,Et){for(var yt=-1,Ct=ht==null?0:ht.length,$t=Array(Ct);++yt<Ct;)$t[yt]=Et(ht[yt],yt,ht);return $t}var _arrayMap=arrayMap$3,Symbol$8=_Symbol,arrayMap$2=_arrayMap,isArray$h=isArray_1,isSymbol$a=isSymbol_1,INFINITY$6=1/0,symbolProto$4=Symbol$8?Symbol$8.prototype:void 0,symbolToString$2=symbolProto$4?symbolProto$4.toString:void 0;function baseToString$3(ht){if(typeof ht=="string")return ht;if(isArray$h(ht))return arrayMap$2(ht,baseToString$3)+"";if(isSymbol$a(ht))return symbolToString$2?symbolToString$2.call(ht):"";var Et=ht+"";return Et=="0"&&1/ht==-INFINITY$6?"-0":Et}var _baseToString=baseToString$3,baseToString$2=_baseToString;function toString$k(ht){return ht==null?"":baseToString$2(ht)}var toString_1=toString$k,isArray$g=isArray_1,isKey$4=_isKey,stringToPath$2=_stringToPath,toString$j=toString_1;function castPath$4(ht,Et){return isArray$g(ht)?ht:isKey$4(ht,Et)?[ht]:stringToPath$2(toString$j(ht))}var _castPath=castPath$4,isSymbol$9=isSymbol_1,INFINITY$5=1/0;function toKey$6(ht){if(typeof ht=="string"||isSymbol$9(ht))return ht;var Et=ht+"";return Et=="0"&&1/ht==-INFINITY$5?"-0":Et}var _toKey=toKey$6,castPath$3=_castPath,toKey$5=_toKey;function baseGet$5(ht,Et){Et=castPath$3(Et,ht);for(var yt=0,Ct=Et.length;ht!=null&&yt<Ct;)ht=ht[toKey$5(Et[yt++])];return yt&&yt==Ct?ht:void 0}var _baseGet=baseGet$5,baseGet$4=_baseGet;function get$7(ht,Et,yt){var Ct=ht==null?void 0:baseGet$4(ht,Et);return Ct===void 0?yt:Ct}var get_1$1=get$7,objectProto$q=Object.prototype,hasOwnProperty$n=objectProto$q.hasOwnProperty;function baseHas$1(ht,Et){return ht!=null&&hasOwnProperty$n.call(ht,Et)}var _baseHas=baseHas$1,baseGetTag$5=_baseGetTag,isObjectLike$8=isObjectLike_1,argsTag$5="[object Arguments]";function baseIsArguments$2(ht){return isObjectLike$8(ht)&&baseGetTag$5(ht)==argsTag$5}var _baseIsArguments=baseIsArguments$2,baseIsArguments$1=_baseIsArguments,isObjectLike$7=isObjectLike_1,objectProto$p=Object.prototype,hasOwnProperty$m=objectProto$p.hasOwnProperty,propertyIsEnumerable$3=objectProto$p.propertyIsEnumerable,isArguments$5=baseIsArguments$1(function(){return arguments}())?baseIsArguments$1:function(ht){return isObjectLike$7(ht)&&hasOwnProperty$m.call(ht,"callee")&&!propertyIsEnumerable$3.call(ht,"callee")},isArguments_1=isArguments$5,MAX_SAFE_INTEGER$5=9007199254740991,reIsUint$1=/^(?:0|[1-9]\d*)$/;function isIndex$4(ht,Et){var yt=typeof ht;return Et=Et??MAX_SAFE_INTEGER$5,!!Et&&(yt=="number"||yt!="symbol"&&reIsUint$1.test(ht))&&ht>-1&&ht%1==0&&ht<Et}var _isIndex=isIndex$4,MAX_SAFE_INTEGER$4=9007199254740991;function isLength$4(ht){return typeof ht=="number"&&ht>-1&&ht%1==0&&ht<=MAX_SAFE_INTEGER$4}var isLength_1=isLength$4,castPath$2=_castPath,isArguments$4=isArguments_1,isArray$f=isArray_1,isIndex$3=_isIndex,isLength$3=isLength_1,toKey$4=_toKey;function hasPath$2(ht,Et,yt){Et=castPath$2(Et,ht);for(var Ct=-1,$t=Et.length,At=!1;++Ct<$t;){var Bt=toKey$4(Et[Ct]);if(!(At=ht!=null&&yt(ht,Bt)))break;ht=ht[Bt]}return At||++Ct!=$t?At:($t=ht==null?0:ht.length,!!$t&&isLength$3($t)&&isIndex$3(Bt,$t)&&(isArray$f(ht)||isArguments$4(ht)))}var _hasPath=hasPath$2,baseHas=_baseHas,hasPath$1=_hasPath;function has$2(ht,Et){return ht!=null&&hasPath$1(ht,Et,baseHas)}var has_1$1=has$2,ListCache$4=_ListCache;function stackClear$2(){this.__data__=new ListCache$4,this.size=0}var _stackClear=stackClear$2;function stackDelete$2(ht){var Et=this.__data__,yt=Et.delete(ht);return this.size=Et.size,yt}var _stackDelete=stackDelete$2;function stackGet$2(ht){return this.__data__.get(ht)}var _stackGet=stackGet$2;function stackHas$2(ht){return this.__data__.has(ht)}var _stackHas=stackHas$2,ListCache$3=_ListCache,Map$4=_Map,MapCache$3=_MapCache,LARGE_ARRAY_SIZE$2=200;function stackSet$2(ht,Et){var yt=this.__data__;if(yt instanceof ListCache$3){var Ct=yt.__data__;if(!Map$4||Ct.length<LARGE_ARRAY_SIZE$2-1)return Ct.push([ht,Et]),this.size=++yt.size,this;yt=this.__data__=new MapCache$3(Ct)}return yt.set(ht,Et),this.size=yt.size,this}var _stackSet=stackSet$2,ListCache$2=_ListCache,stackClear$1=_stackClear,stackDelete$1=_stackDelete,stackGet$1=_stackGet,stackHas$1=_stackHas,stackSet$1=_stackSet;function Stack$4(ht){var Et=this.__data__=new ListCache$2(ht);this.size=Et.size}Stack$4.prototype.clear=stackClear$1;Stack$4.prototype.delete=stackDelete$1;Stack$4.prototype.get=stackGet$1;Stack$4.prototype.has=stackHas$1;Stack$4.prototype.set=stackSet$1;var _Stack=Stack$4,getNative$6=_getNative,defineProperty$e=function(){try{var ht=getNative$6(Object,"defineProperty");return ht({},"",{}),ht}catch{}}(),_defineProperty$2=defineProperty$e,defineProperty$d=_defineProperty$2;function baseAssignValue$4(ht,Et,yt){Et=="__proto__"&&defineProperty$d?defineProperty$d(ht,Et,{configurable:!0,enumerable:!0,value:yt,writable:!0}):ht[Et]=yt}var _baseAssignValue=baseAssignValue$4,baseAssignValue$3=_baseAssignValue,eq$6=eq_1;function assignMergeValue$2(ht,Et,yt){(yt!==void 0&&!eq$6(ht[Et],yt)||yt===void 0&&!(Et in ht))&&baseAssignValue$3(ht,Et,yt)}var _assignMergeValue=assignMergeValue$2;function createBaseFor$1(ht){return function(Et,yt,Ct){for(var $t=-1,At=Object(Et),Bt=Ct(Et),Dt=Bt.length;Dt--;){var Ft=Bt[ht?Dt:++$t];if(yt(At[Ft],Ft,At)===!1)break}return Et}}var _createBaseFor=createBaseFor$1,createBaseFor=_createBaseFor,baseFor$2=createBaseFor(),_baseFor=baseFor$2,_cloneBuffer={exports:{}};_cloneBuffer.exports;(function(ht,Et){var yt=_root,Ct=Et&&!Et.nodeType&&Et,$t=Ct&&!0&&ht&&!ht.nodeType&&ht,At=$t&&$t.exports===Ct,Bt=At?yt.Buffer:void 0,Dt=Bt?Bt.allocUnsafe:void 0;function Ft(kt,Mt){if(Mt)return kt.slice();var Nt=kt.length,jt=Dt?Dt(Nt):new kt.constructor(Nt);return kt.copy(jt),jt}ht.exports=Ft})(_cloneBuffer,_cloneBuffer.exports);var _cloneBufferExports=_cloneBuffer.exports,root$8=_root,Uint8Array$4=root$8.Uint8Array,_Uint8Array=Uint8Array$4,Uint8Array$3=_Uint8Array;function cloneArrayBuffer$2(ht){var Et=new ht.constructor(ht.byteLength);return new Uint8Array$3(Et).set(new Uint8Array$3(ht)),Et}var _cloneArrayBuffer=cloneArrayBuffer$2,cloneArrayBuffer$1=_cloneArrayBuffer;function cloneTypedArray$2(ht,Et){var yt=Et?cloneArrayBuffer$1(ht.buffer):ht.buffer;return new ht.constructor(yt,ht.byteOffset,ht.length)}var _cloneTypedArray=cloneTypedArray$2;function copyArray$2(ht,Et){var yt=-1,Ct=ht.length;for(Et||(Et=Array(Ct));++yt<Ct;)Et[yt]=ht[yt];return Et}var _copyArray=copyArray$2,isObject$o=isObject_1,objectCreate$2=Object.create,baseCreate$2=function(){function ht(){}return function(Et){if(!isObject$o(Et))return{};if(objectCreate$2)return objectCreate$2(Et);ht.prototype=Et;var yt=new ht;return ht.prototype=void 0,yt}}(),_baseCreate=baseCreate$2;function overArg$4(ht,Et){return function(yt){return ht(Et(yt))}}var _overArg=overArg$4,overArg$3=_overArg,getPrototype$4=overArg$3(Object.getPrototypeOf,Object),_getPrototype=getPrototype$4,objectProto$o=Object.prototype;function isPrototype$4(ht){var Et=ht&&ht.constructor,yt=typeof Et=="function"&&Et.prototype||objectProto$o;return ht===yt}var _isPrototype=isPrototype$4,baseCreate$1=_baseCreate,getPrototype$3=_getPrototype,isPrototype$3=_isPrototype;function initCloneObject$2(ht){return typeof ht.constructor=="function"&&!isPrototype$3(ht)?baseCreate$1(getPrototype$3(ht)):{}}var _initCloneObject=initCloneObject$2,isFunction$8=isFunction_1,isLength$2=isLength_1;function isArrayLike$7(ht){return ht!=null&&isLength$2(ht.length)&&!isFunction$8(ht)}var isArrayLike_1=isArrayLike$7,isArrayLike$6=isArrayLike_1,isObjectLike$6=isObjectLike_1;function isArrayLikeObject$2(ht){return isObjectLike$6(ht)&&isArrayLike$6(ht)}var isArrayLikeObject_1=isArrayLikeObject$2,isBuffer$5={exports:{}};function stubFalse$1(){return!1}var stubFalse_1=stubFalse$1;isBuffer$5.exports;(function(ht,Et){var yt=_root,Ct=stubFalse_1,$t=Et&&!Et.nodeType&&Et,At=$t&&!0&&ht&&!ht.nodeType&&ht,Bt=At&&At.exports===$t,Dt=Bt?yt.Buffer:void 0,Ft=Dt?Dt.isBuffer:void 0,kt=Ft||Ct;ht.exports=kt})(isBuffer$5,isBuffer$5.exports);var isBufferExports=isBuffer$5.exports,baseGetTag$4=_baseGetTag,getPrototype$2=_getPrototype,isObjectLike$5=isObjectLike_1,objectTag$8="[object Object]",funcProto$5=Function.prototype,objectProto$n=Object.prototype,funcToString$5=funcProto$5.toString,hasOwnProperty$l=objectProto$n.hasOwnProperty,objectCtorString$2=funcToString$5.call(Object);function isPlainObject$4(ht){if(!isObjectLike$5(ht)||baseGetTag$4(ht)!=objectTag$8)return!1;var Et=getPrototype$2(ht);if(Et===null)return!0;var yt=hasOwnProperty$l.call(Et,"constructor")&&Et.constructor;return typeof yt=="function"&&yt instanceof yt&&funcToString$5.call(yt)==objectCtorString$2}var isPlainObject_1=isPlainObject$4,baseGetTag$3=_baseGetTag,isLength$1=isLength_1,isObjectLike$4=isObjectLike_1,argsTag$4="[object Arguments]",arrayTag$3="[object Array]",boolTag$4="[object Boolean]",dateTag$4="[object Date]",errorTag$3="[object Error]",funcTag$4="[object Function]",mapTag$7="[object Map]",numberTag$4="[object Number]",objectTag$7="[object Object]",regexpTag$4="[object RegExp]",setTag$7="[object Set]",stringTag$4="[object String]",weakMapTag$4="[object WeakMap]",arrayBufferTag$4="[object ArrayBuffer]",dataViewTag$6="[object DataView]",float32Tag$3="[object Float32Array]",float64Tag$3="[object Float64Array]",int8Tag$3="[object Int8Array]",int16Tag$3="[object Int16Array]",int32Tag$3="[object Int32Array]",uint8Tag$3="[object Uint8Array]",uint8ClampedTag$3="[object Uint8ClampedArray]",uint16Tag$3="[object Uint16Array]",uint32Tag$3="[object Uint32Array]",typedArrayTags$1={};typedArrayTags$1[float32Tag$3]=typedArrayTags$1[float64Tag$3]=typedArrayTags$1[int8Tag$3]=typedArrayTags$1[int16Tag$3]=typedArrayTags$1[int32Tag$3]=typedArrayTags$1[uint8Tag$3]=typedArrayTags$1[uint8ClampedTag$3]=typedArrayTags$1[uint16Tag$3]=typedArrayTags$1[uint32Tag$3]=!0;typedArrayTags$1[argsTag$4]=typedArrayTags$1[arrayTag$3]=typedArrayTags$1[arrayBufferTag$4]=typedArrayTags$1[boolTag$4]=typedArrayTags$1[dataViewTag$6]=typedArrayTags$1[dateTag$4]=typedArrayTags$1[errorTag$3]=typedArrayTags$1[funcTag$4]=typedArrayTags$1[mapTag$7]=typedArrayTags$1[numberTag$4]=typedArrayTags$1[objectTag$7]=typedArrayTags$1[regexpTag$4]=typedArrayTags$1[setTag$7]=typedArrayTags$1[stringTag$4]=typedArrayTags$1[weakMapTag$4]=!1;function baseIsTypedArray$2(ht){return isObjectLike$4(ht)&&isLength$1(ht.length)&&!!typedArrayTags$1[baseGetTag$3(ht)]}var _baseIsTypedArray=baseIsTypedArray$2;function baseUnary$3(ht){return function(Et){return ht(Et)}}var _baseUnary=baseUnary$3,_nodeUtil={exports:{}};_nodeUtil.exports;(function(ht,Et){var yt=_freeGlobal,Ct=Et&&!Et.nodeType&&Et,$t=Ct&&!0&&ht&&!ht.nodeType&&ht,At=$t&&$t.exports===Ct,Bt=At&&yt.process,Dt=function(){try{var Ft=$t&&$t.require&&$t.require("util").types;return Ft||Bt&&Bt.binding&&Bt.binding("util")}catch{}}();ht.exports=Dt})(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports,baseIsTypedArray$1=_baseIsTypedArray,baseUnary$2=_baseUnary,nodeUtil$1=_nodeUtilExports,nodeIsTypedArray$1=nodeUtil$1&&nodeUtil$1.isTypedArray,isTypedArray$4=nodeIsTypedArray$1?baseUnary$2(nodeIsTypedArray$1):baseIsTypedArray$1,isTypedArray_1=isTypedArray$4;function safeGet$2(ht,Et){if(!(Et==="constructor"&&typeof ht[Et]=="function")&&Et!="__proto__")return ht[Et]}var _safeGet=safeGet$2,baseAssignValue$2=_baseAssignValue,eq$5=eq_1,objectProto$m=Object.prototype,hasOwnProperty$k=objectProto$m.hasOwnProperty;function assignValue$3(ht,Et,yt){var Ct=ht[Et];(!(hasOwnProperty$k.call(ht,Et)&&eq$5(Ct,yt))||yt===void 0&&!(Et in ht))&&baseAssignValue$2(ht,Et,yt)}var _assignValue=assignValue$3,assignValue$2=_assignValue,baseAssignValue$1=_baseAssignValue;function copyObject$2(ht,Et,yt,Ct){var $t=!yt;yt||(yt={});for(var At=-1,Bt=Et.length;++At<Bt;){var Dt=Et[At],Ft=Ct?Ct(yt[Dt],ht[Dt],Dt,yt,ht):void 0;Ft===void 0&&(Ft=ht[Dt]),$t?baseAssignValue$1(yt,Dt,Ft):assignValue$2(yt,Dt,Ft)}return yt}var _copyObject=copyObject$2;function baseTimes$2(ht,Et){for(var yt=-1,Ct=Array(ht);++yt<ht;)Ct[yt]=Et(yt);return Ct}var _baseTimes=baseTimes$2,baseTimes$1=_baseTimes,isArguments$3=isArguments_1,isArray$e=isArray_1,isBuffer$4=isBufferExports,isIndex$2=_isIndex,isTypedArray$3=isTypedArray_1,objectProto$l=Object.prototype,hasOwnProperty$j=objectProto$l.hasOwnProperty;function arrayLikeKeys$3(ht,Et){var yt=isArray$e(ht),Ct=!yt&&isArguments$3(ht),$t=!yt&&!Ct&&isBuffer$4(ht),At=!yt&&!Ct&&!$t&&isTypedArray$3(ht),Bt=yt||Ct||$t||At,Dt=Bt?baseTimes$1(ht.length,String):[],Ft=Dt.length;for(var kt in ht)(Et||hasOwnProperty$j.call(ht,kt))&&!(Bt&&(kt=="length"||$t&&(kt=="offset"||kt=="parent")||At&&(kt=="buffer"||kt=="byteLength"||kt=="byteOffset")||isIndex$2(kt,Ft)))&&Dt.push(kt);return Dt}var _arrayLikeKeys=arrayLikeKeys$3;function nativeKeysIn$2(ht){var Et=[];if(ht!=null)for(var yt in Object(ht))Et.push(yt);return Et}var _nativeKeysIn=nativeKeysIn$2,isObject$n=isObject_1,isPrototype$2=_isPrototype,nativeKeysIn$1=_nativeKeysIn,objectProto$k=Object.prototype,hasOwnProperty$i=objectProto$k.hasOwnProperty;function baseKeysIn$2(ht){if(!isObject$n(ht))return nativeKeysIn$1(ht);var Et=isPrototype$2(ht),yt=[];for(var Ct in ht)Ct=="constructor"&&(Et||!hasOwnProperty$i.call(ht,Ct))||yt.push(Ct);return yt}var _baseKeysIn=baseKeysIn$2,arrayLikeKeys$2=_arrayLikeKeys,baseKeysIn$1=_baseKeysIn,isArrayLike$5=isArrayLike_1;function keysIn$3(ht){return isArrayLike$5(ht)?arrayLikeKeys$2(ht,!0):baseKeysIn$1(ht)}var keysIn_1=keysIn$3,copyObject$1=_copyObject,keysIn$2=keysIn_1;function toPlainObject$1(ht){return copyObject$1(ht,keysIn$2(ht))}var toPlainObject_1=toPlainObject$1,assignMergeValue$1=_assignMergeValue,cloneBuffer$1=_cloneBufferExports,cloneTypedArray$1=_cloneTypedArray,copyArray$1=_copyArray,initCloneObject$1=_initCloneObject,isArguments$2=isArguments_1,isArray$d=isArray_1,isArrayLikeObject$1=isArrayLikeObject_1,isBuffer$3=isBufferExports,isFunction$7=isFunction_1,isObject$m=isObject_1,isPlainObject$3=isPlainObject_1,isTypedArray$2=isTypedArray_1,safeGet$1=_safeGet,toPlainObject=toPlainObject_1;function baseMergeDeep$1(ht,Et,yt,Ct,$t,At,Bt){var Dt=safeGet$1(ht,yt),Ft=safeGet$1(Et,yt),kt=Bt.get(Ft);if(kt){assignMergeValue$1(ht,yt,kt);return}var Mt=At?At(Dt,Ft,yt+"",ht,Et,Bt):void 0,Nt=Mt===void 0;if(Nt){var jt=isArray$d(Ft),zt=!jt&&isBuffer$3(Ft),Vt=!jt&&!zt&&isTypedArray$2(Ft);Mt=Ft,jt||zt||Vt?isArray$d(Dt)?Mt=Dt:isArrayLikeObject$1(Dt)?Mt=copyArray$1(Dt):zt?(Nt=!1,Mt=cloneBuffer$1(Ft,!0)):Vt?(Nt=!1,Mt=cloneTypedArray$1(Ft,!0)):Mt=[]:isPlainObject$3(Ft)||isArguments$2(Ft)?(Mt=Dt,isArguments$2(Dt)?Mt=toPlainObject(Dt):(!isObject$m(Dt)||isFunction$7(Dt))&&(Mt=initCloneObject$1(Ft))):Nt=!1}Nt&&(Bt.set(Ft,Mt),$t(Mt,Ft,Ct,At,Bt),Bt.delete(Ft)),assignMergeValue$1(ht,yt,Mt)}var _baseMergeDeep=baseMergeDeep$1,Stack$3=_Stack,assignMergeValue=_assignMergeValue,baseFor$1=_baseFor,baseMergeDeep=_baseMergeDeep,isObject$l=isObject_1,keysIn$1=keysIn_1,safeGet=_safeGet;function baseMerge$1(ht,Et,yt,Ct,$t){ht!==Et&&baseFor$1(Et,function(At,Bt){if($t||($t=new Stack$3),isObject$l(At))baseMergeDeep(ht,Et,Bt,yt,baseMerge$1,Ct,$t);else{var Dt=Ct?Ct(safeGet(ht,Bt),At,Bt+"",ht,Et,$t):void 0;Dt===void 0&&(Dt=At),assignMergeValue(ht,Bt,Dt)}},keysIn$1)}var _baseMerge=baseMerge$1;function identity$6(ht){return ht}var identity_1=identity$6;function apply$7(ht,Et,yt){switch(yt.length){case 0:return ht.call(Et);case 1:return ht.call(Et,yt[0]);case 2:return ht.call(Et,yt[0],yt[1]);case 3:return ht.call(Et,yt[0],yt[1],yt[2])}return ht.apply(Et,yt)}var _apply=apply$7,apply$6=_apply,nativeMax$3=Math.max;function overRest$2(ht,Et,yt){return Et=nativeMax$3(Et===void 0?ht.length-1:Et,0),function(){for(var Ct=arguments,$t=-1,At=nativeMax$3(Ct.length-Et,0),Bt=Array(At);++$t<At;)Bt[$t]=Ct[Et+$t];$t=-1;for(var Dt=Array(Et+1);++$t<Et;)Dt[$t]=Ct[$t];return Dt[Et]=yt(Bt),apply$6(ht,this,Dt)}}var _overRest=overRest$2;function constant$2(ht){return function(){return ht}}var constant_1=constant$2,constant$1=constant_1,defineProperty$c=_defineProperty$2,identity$5=identity_1,baseSetToString$2=defineProperty$c?function(ht,Et){return defineProperty$c(ht,"toString",{configurable:!0,enumerable:!1,value:constant$1(Et),writable:!0})}:identity$5,_baseSetToString=baseSetToString$2,HOT_COUNT$1=800,HOT_SPAN$1=16,nativeNow$1=Date.now;function shortOut$2(ht){var Et=0,yt=0;return function(){var Ct=nativeNow$1(),$t=HOT_SPAN$1-(Ct-yt);if(yt=Ct,$t>0){if(++Et>=HOT_COUNT$1)return arguments[0]}else Et=0;return ht.apply(void 0,arguments)}}var _shortOut=shortOut$2,baseSetToString$1=_baseSetToString,shortOut$1=_shortOut,setToString$2=shortOut$1(baseSetToString$1),_setToString=setToString$2,identity$4=identity_1,overRest$1=_overRest,setToString$1=_setToString;function baseRest$3(ht,Et){return setToString$1(overRest$1(ht,Et,identity$4),ht+"")}var _baseRest=baseRest$3,eq$4=eq_1,isArrayLike$4=isArrayLike_1,isIndex$1=_isIndex,isObject$k=isObject_1;function isIterateeCall$4(ht,Et,yt){if(!isObject$k(yt))return!1;var Ct=typeof Et;return(Ct=="number"?isArrayLike$4(yt)&&isIndex$1(Et,yt.length):Ct=="string"&&Et in yt)?eq$4(yt[Et],ht):!1}var _isIterateeCall=isIterateeCall$4,baseRest$2=_baseRest,isIterateeCall$3=_isIterateeCall;function createAssigner$1(ht){return baseRest$2(function(Et,yt){var Ct=-1,$t=yt.length,At=$t>1?yt[$t-1]:void 0,Bt=$t>2?yt[2]:void 0;for(At=ht.length>3&&typeof At=="function"?($t--,At):void 0,Bt&&isIterateeCall$3(yt[0],yt[1],Bt)&&(At=$t<3?void 0:At,$t=1),Et=Object(Et);++Ct<$t;){var Dt=yt[Ct];Dt&&ht(Et,Dt,Ct,At)}return Et})}var _createAssigner=createAssigner$1,baseMerge=_baseMerge,createAssigner=_createAssigner,merge$4=createAssigner(function(ht,Et,yt){baseMerge(ht,Et,yt)}),merge_1$1=merge$4,Locales={},HASH_UNDEFINED$4="__lodash_hash_undefined__";function setCacheAdd$2(ht){return this.__data__.set(ht,HASH_UNDEFINED$4),this}var _setCacheAdd=setCacheAdd$2;function setCacheHas$2(ht){return this.__data__.has(ht)}var _setCacheHas=setCacheHas$2,MapCache$2=_MapCache,setCacheAdd$1=_setCacheAdd,setCacheHas$1=_setCacheHas;function SetCache$3(ht){var Et=-1,yt=ht==null?0:ht.length;for(this.__data__=new MapCache$2;++Et<yt;)this.add(ht[Et])}SetCache$3.prototype.add=SetCache$3.prototype.push=setCacheAdd$1;SetCache$3.prototype.has=setCacheHas$1;var _SetCache=SetCache$3;function baseFindIndex$2(ht,Et,yt,Ct){for(var $t=ht.length,At=yt+(Ct?1:-1);Ct?At--:++At<$t;)if(Et(ht[At],At,ht))return At;return-1}var _baseFindIndex=baseFindIndex$2;function baseIsNaN$2(ht){return ht!==ht}var _baseIsNaN=baseIsNaN$2;function strictIndexOf$2(ht,Et,yt){for(var Ct=yt-1,$t=ht.length;++Ct<$t;)if(ht[Ct]===Et)return Ct;return-1}var _strictIndexOf=strictIndexOf$2,baseFindIndex$1=_baseFindIndex,baseIsNaN$1=_baseIsNaN,strictIndexOf$1=_strictIndexOf;function baseIndexOf$2(ht,Et,yt){return Et===Et?strictIndexOf$1(ht,Et,yt):baseFindIndex$1(ht,baseIsNaN$1,yt)}var _baseIndexOf=baseIndexOf$2,baseIndexOf$1=_baseIndexOf;function arrayIncludes$3(ht,Et){var yt=ht==null?0:ht.length;return!!yt&&baseIndexOf$1(ht,Et,0)>-1}var _arrayIncludes=arrayIncludes$3;function arrayIncludesWith$1(ht,Et,yt){for(var Ct=-1,$t=ht==null?0:ht.length;++Ct<$t;)if(yt(Et,ht[Ct]))return!0;return!1}var _arrayIncludesWith=arrayIncludesWith$1;function cacheHas$3(ht,Et){return ht.has(Et)}var _cacheHas=cacheHas$3,getNative$5=_getNative,root$7=_root,Set$4=getNative$5(root$7,"Set"),_Set=Set$4;function noop$8(){}var noop_1=noop$8;function setToArray$3(ht){var Et=-1,yt=Array(ht.size);return ht.forEach(function(Ct){yt[++Et]=Ct}),yt}var _setToArray=setToArray$3,Set$3=_Set,noop$7=noop_1,setToArray$2=_setToArray,INFINITY$4=1/0,createSet$1=Set$3&&1/setToArray$2(new Set$3([,-0]))[1]==INFINITY$4?function(ht){return new Set$3(ht)}:noop$7,_createSet=createSet$1,SetCache$2=_SetCache,arrayIncludes$2=_arrayIncludes,arrayIncludesWith=_arrayIncludesWith,cacheHas$2=_cacheHas,createSet=_createSet,setToArray$1=_setToArray,LARGE_ARRAY_SIZE$1=200;function baseUniq$1(ht,Et,yt){var Ct=-1,$t=arrayIncludes$2,At=ht.length,Bt=!0,Dt=[],Ft=Dt;if(yt)Bt=!1,$t=arrayIncludesWith;else if(At>=LARGE_ARRAY_SIZE$1){var kt=Et?null:createSet(ht);if(kt)return setToArray$1(kt);Bt=!1,$t=cacheHas$2,Ft=new SetCache$2}else Ft=Et?[]:Dt;e:for(;++Ct<At;){var Mt=ht[Ct],Nt=Et?Et(Mt):Mt;if(Mt=yt||Mt!==0?Mt:0,Bt&&Nt===Nt){for(var jt=Ft.length;jt--;)if(Ft[jt]===Nt)continue e;Et&&Ft.push(Nt),Dt.push(Mt)}else $t(Ft,Nt,yt)||(Ft!==Dt&&Ft.push(Nt),Dt.push(Mt))}return Dt}var _baseUniq=baseUniq$1,baseUniq=_baseUniq;function uniq(ht){return ht&&ht.length?baseUniq(ht):[]}var uniq_1=uniq;(function(ht){var Et=commonjsGlobal&&commonjsGlobal.__importDefault||function(At){return At&&At.__esModule?At:{default:At}};Object.defineProperty(ht,"__esModule",{value:!0}),ht.Locales=ht.defaultLocaleResolver=void 0;const yt=Et(uniq_1),Ct=(At,Bt)=>{const Dt=[],Ft=[];return Dt.push(Bt),Bt||Dt.push(At.locale),At.enableFallback&&Dt.push(At.defaultLocale),Dt.filter(Boolean).map(kt=>kt.toString()).forEach(function(kt){if(Ft.includes(kt)||Ft.push(kt),!At.enableFallback)return;const Mt=kt.split("-");Mt.length===3&&Ft.push(`${Mt[0]}-${Mt[1]}`),Ft.push(Mt[0])}),(0,yt.default)(Ft)};ht.defaultLocaleResolver=Ct;class $t{constructor(Bt){this.i18n=Bt,this.registry={},this.register("default",ht.defaultLocaleResolver)}register(Bt,Dt){if(typeof Dt!="function"){const Ft=Dt;Dt=()=>Ft}this.registry[Bt]=Dt}get(Bt){let Dt=this.registry[Bt]||this.registry[this.i18n.locale]||this.registry.default;return typeof Dt=="function"&&(Dt=Dt(this.i18n,Bt)),Dt instanceof Array||(Dt=[Dt]),Dt}}ht.Locales=$t})(Locales);var Pluralization={};const a$6=(ht,Et)=>Et?"other":ht==1?"one":"other",b$9=(ht,Et)=>Et?"other":ht==0||ht==1?"one":"other",c$a=(ht,Et)=>Et?"other":ht>=0&&ht<=1?"one":"other",d$b=(ht,Et)=>{const yt=String(ht).split("."),Ct=!yt[1];return Et?"other":ht==1&&Ct?"one":"other"},e$6=(ht,Et)=>"other",f$b=(ht,Et)=>Et?"other":ht==1?"one":ht==2?"two":"other",af=a$6,ak=b$9,am=c$a,an=a$6,ar=(ht,Et)=>{const yt=String(ht).split("."),Ct=Number(yt[0])==ht,$t=Ct&&yt[0].slice(-2);return Et?"other":ht==0?"zero":ht==1?"one":ht==2?"two":$t>=3&&$t<=10?"few":$t>=11&&$t<=99?"many":"other"},ars=(ht,Et)=>{const yt=String(ht).split("."),Ct=Number(yt[0])==ht,$t=Ct&&yt[0].slice(-2);return Et?"other":ht==0?"zero":ht==1?"one":ht==2?"two":$t>=3&&$t<=10?"few":$t>=11&&$t<=99?"many":"other"},as=(ht,Et)=>Et?ht==1||ht==5||ht==7||ht==8||ht==9||ht==10?"one":ht==2||ht==3?"two":ht==4?"few":ht==6?"many":"other":ht>=0&&ht<=1?"one":"other",asa=a$6,ast=d$b,az=(ht,Et)=>{const yt=String(ht).split("."),Ct=yt[0],$t=Ct.slice(-1),At=Ct.slice(-2),Bt=Ct.slice(-3);return Et?$t==1||$t==2||$t==5||$t==7||$t==8||At==20||At==50||At==70||At==80?"one":$t==3||$t==4||Bt==100||Bt==200||Bt==300||Bt==400||Bt==500||Bt==600||Bt==700||Bt==800||Bt==900?"few":Ct==0||$t==6||At==40||At==60||At==90?"many":"other":ht==1?"one":"other"},bal=(ht,Et)=>ht==1?"one":"other",be$1=(ht,Et)=>{const yt=String(ht).split("."),Ct=Number(yt[0])==ht,$t=Ct&&yt[0].slice(-1),At=Ct&&yt[0].slice(-2);return Et?($t==2||$t==3)&&At!=12&&At!=13?"few":"other":$t==1&&At!=11?"one":$t>=2&&$t<=4&&(At<12||At>14)?"few":Ct&&$t==0||$t>=5&&$t<=9||At>=11&&At<=14?"many":"other"},bem=a$6,bez=a$6,bg=a$6,bho=b$9,blo=(ht,Et)=>{const yt=String(ht).split("."),Ct=yt[0];return Et?Ct==0?"zero":Ct==1?"one":Ct==2||Ct==3||Ct==4||Ct==5||Ct==6?"few":"other":ht==0?"zero":ht==1?"one":"other"},bm=e$6,bn=(ht,Et)=>Et?ht==1||ht==5||ht==7||ht==8||ht==9||ht==10?"one":ht==2||ht==3?"two":ht==4?"few":ht==6?"many":"other":ht>=0&&ht<=1?"one":"other",bo=e$6,br=(ht,Et)=>{const yt=String(ht).split("."),Ct=Number(yt[0])==ht,$t=Ct&&yt[0].slice(-1),At=Ct&&yt[0].slice(-2),Bt=Ct&&yt[0].slice(-6);return Et?"other":$t==1&&At!=11&&At!=71&&At!=91?"one":$t==2&&At!=12&&At!=72&&At!=92?"two":($t==3||$t==4||$t==9)&&(At<10||At>19)&&(At<70||At>79)&&(At<90||At>99)?"few":ht!=0&&Ct&&Bt==0?"many":"other"},brx=a$6,bs=(ht,Et)=>{const yt=String(ht).split("."),Ct=yt[0],$t=yt[1]||"",At=!yt[1],Bt=Ct.slice(-1),Dt=Ct.slice(-2),Ft=$t.slice(-1),kt=$t.slice(-2);return Et?"other":At&&Bt==1&&Dt!=11||Ft==1&&kt!=11?"one":At&&Bt>=2&&Bt<=4&&(Dt<12||Dt>14)||Ft>=2&&Ft<=4&&(kt<12||kt>14)?"few":"other"},ca=(ht,Et)=>{const yt=String(ht).split("."),Ct=yt[0],$t=!yt[1],At=Ct.slice(-6);return Et?ht==1||ht==3?"one":ht==2?"two":ht==4?"few":"other":ht==1&&$t?"one":Ct!=0&&At==0&&$t?"many":"other"},ce$1=a$6,ceb=(ht,Et)=>{const yt=String(ht).split("."),Ct=yt[0],$t=yt[1]||"",At=!yt[1],Bt=Ct.slice(-1),Dt=$t.slice(-1);return Et?"other":At&&(Ct==1||Ct==2||Ct==3)||At&&Bt!=4&&Bt!=6&&Bt!=9||!At&&Dt!=4&&Dt!=6&&Dt!=9?"one":"other"},cgg=a$6,chr=a$6,ckb=a$6,cs=(ht,Et)=>{const yt=String(ht).split("."),Ct=yt[0],$t=!yt[1];return Et?"other":ht==1&&$t?"one":Ct>=2&&Ct<=4&&$t?"few":$t?"other":"many"},cy=(ht,Et)=>Et?ht==0||ht==7||ht==8||ht==9?"zero":ht==1?"one":ht==2?"two":ht==3||ht==4?"few":ht==5||ht==6?"many":"other":ht==0?"zero":ht==1?"one":ht==2?"two":ht==3?"few":ht==6?"many":"other",da=(ht,Et)=>{const yt=String(ht).split("."),Ct=yt[0],$t=Number(yt[0])==ht;return Et?"other":ht==1||!$t&&(Ct==0||Ct==1)?"one":"other"},de$2=d$b,doi=c$a,dsb=(ht,Et)=>{const yt=String(ht).split("."),Ct=yt[0],$t=yt[1]||"",At=!yt[1],Bt=Ct.slice(-2),Dt=$t.slice(-2);return Et?"other":At&&Bt==1||Dt==1?"one":At&&Bt==2||Dt==2?"two":At&&(Bt==3||Bt==4)||Dt==3||Dt==4?"few":"other"},dv=a$6,dz=e$6,ee$2=a$6,el=a$6,en=(ht,Et)=>{const yt=String(ht).split("."),Ct=!yt[1],$t=Number(yt[0])==ht,At=$t&&yt[0].slice(-1),Bt=$t&&yt[0].slice(-2);return Et?At==1&&Bt!=11?"one":At==2&&Bt!=12?"two":At==3&&Bt!=13?"few":"other":ht==1&&Ct?"one":"other"},eo=a$6,es=(ht,Et)=>{const yt=String(ht).split("."),Ct=yt[0],$t=!yt[1],At=Ct.slice(-6);return Et?"other":ht==1?"one":Ct!=0&&At==0&&$t?"many":"other"},et$2=d$b,eu=a$6,fa=c$a,ff=(ht,Et)=>Et?"other":ht>=0&&ht<2?"one":"other",fi=d$b,fil=(ht,Et)=>{const yt=String(ht).split("."),Ct=yt[0],$t=yt[1]||"",At=!yt[1],Bt=Ct.slice(-1),Dt=$t.slice(-1);return Et?ht==1?"one":"other":At&&(Ct==1||Ct==2||Ct==3)||At&&Bt!=4&&Bt!=6&&Bt!=9||!At&&Dt!=4&&Dt!=6&&Dt!=9?"one":"other"},fo=a$6,fr=(ht,Et)=>{const yt=String(ht).split("."),Ct=yt[0],$t=!yt[1],At=Ct.slice(-6);return Et?ht==1?"one":"other":ht>=0&&ht<2?"one":Ct!=0&&At==0&&$t?"many":"other"},fur=a$6,fy=d$b,ga=(ht,Et)=>{const yt=String(ht).split("."),Ct=Number(yt[0])==ht;return Et?ht==1?"one":"other":ht==1?"one":ht==2?"two":Ct&&ht>=3&&ht<=6?"few":Ct&&ht>=7&&ht<=10?"many":"other"},gd=(ht,Et)=>{const yt=String(ht).split("."),Ct=Number(yt[0])==ht;return Et?ht==1||ht==11?"one":ht==2||ht==12?"two":ht==3||ht==13?"few":"other":ht==1||ht==11?"one":ht==2||ht==12?"two":Ct&&ht>=3&&ht<=10||Ct&&ht>=13&&ht<=19?"few":"other"},gl=d$b,gsw=a$6,gu=(ht,Et)=>Et?ht==1?"one":ht==2||ht==3?"two":ht==4?"few":ht==6?"many":"other":ht>=0&&ht<=1?"one":"other",guw=b$9,gv=(ht,Et)=>{const yt=String(ht).split("."),Ct=yt[0],$t=!yt[1],At=Ct.slice(-1),Bt=Ct.slice(-2);return Et?"other":$t&&At==1?"one":$t&&At==2?"two":$t&&(Bt==0||Bt==20||Bt==40||Bt==60||Bt==80)?"few":$t?"other":"many"},ha=a$6,haw=a$6,he=(ht,Et)=>{const yt=String(ht).split("."),Ct=yt[0],$t=!yt[1];return Et?"other":Ct==1&&$t||Ct==0&&!$t?"one":Ct==2&&$t?"two":"other"},hi$1=(ht,Et)=>Et?ht==1?"one":ht==2||ht==3?"two":ht==4?"few":ht==6?"many":"other":ht>=0&&ht<=1?"one":"other",hnj=e$6,hr$1=(ht,Et)=>{const yt=String(ht).split("."),Ct=yt[0],$t=yt[1]||"",At=!yt[1],Bt=Ct.slice(-1),Dt=Ct.slice(-2),Ft=$t.slice(-1),kt=$t.slice(-2);return Et?"other":At&&Bt==1&&Dt!=11||Ft==1&&kt!=11?"one":At&&Bt>=2&&Bt<=4&&(Dt<12||Dt>14)||Ft>=2&&Ft<=4&&(kt<12||kt>14)?"few":"other"},hsb=(ht,Et)=>{const yt=String(ht).split("."),Ct=yt[0],$t=yt[1]||"",At=!yt[1],Bt=Ct.slice(-2),Dt=$t.slice(-2);return Et?"other":At&&Bt==1||Dt==1?"one":At&&Bt==2||Dt==2?"two":At&&(Bt==3||Bt==4)||Dt==3||Dt==4?"few":"other"},hu=(ht,Et)=>Et?ht==1||ht==5?"one":"other":ht==1?"one":"other",hy=(ht,Et)=>Et?ht==1?"one":"other":ht>=0&&ht<2?"one":"other",ia=d$b,id$3=e$6,ig=e$6,ii=e$6,io=d$b,is$1=(ht,Et)=>{const yt=String(ht).split("."),Ct=yt[0],$t=(yt[1]||"").replace(/0+$/,""),At=Number(yt[0])==ht,Bt=Ct.slice(-1),Dt=Ct.slice(-2);return Et?"other":At&&Bt==1&&Dt!=11||$t%10==1&&$t%100!=11?"one":"other"},it$1=(ht,Et)=>{const yt=String(ht).split("."),Ct=yt[0],$t=!yt[1],At=Ct.slice(-6);return Et?ht==11||ht==8||ht==80||ht==800?"many":"other":ht==1&&$t?"one":Ct!=0&&At==0&&$t?"many":"other"},iu=f$b,ja=e$6,jbo=e$6,jgo=a$6,jmc=a$6,jv=e$6,jw=e$6,ka=(ht,Et)=>{const yt=String(ht).split("."),Ct=yt[0],$t=Ct.slice(-2);return Et?Ct==1?"one":Ct==0||$t>=2&&$t<=20||$t==40||$t==60||$t==80?"many":"other":ht==1?"one":"other"},kab=(ht,Et)=>Et?"other":ht>=0&&ht<2?"one":"other",kaj=a$6,kcg=a$6,kde=e$6,kea=e$6,kk=(ht,Et)=>{const yt=String(ht).split("."),Ct=Number(yt[0])==ht,$t=Ct&&yt[0].slice(-1);return Et?$t==6||$t==9||Ct&&$t==0&&ht!=0?"many":"other":ht==1?"one":"other"},kkj=a$6,kl=a$6,km=e$6,kn=c$a,ko=e$6,ks=a$6,ksb=a$6,ksh=(ht,Et)=>Et?"other":ht==0?"zero":ht==1?"one":"other",ku=a$6,kw=(ht,Et)=>{const yt=String(ht).split("."),Ct=Number(yt[0])==ht,$t=Ct&&yt[0].slice(-2),At=Ct&&yt[0].slice(-3),Bt=Ct&&yt[0].slice(-5),Dt=Ct&&yt[0].slice(-6);return Et?Ct&&ht>=1&&ht<=4||$t>=1&&$t<=4||$t>=21&&$t<=24||$t>=41&&$t<=44||$t>=61&&$t<=64||$t>=81&&$t<=84?"one":ht==5||$t==5?"many":"other":ht==0?"zero":ht==1?"one":$t==2||$t==22||$t==42||$t==62||$t==82||Ct&&At==0&&(Bt>=1e3&&Bt<=2e4||Bt==4e4||Bt==6e4||Bt==8e4)||ht!=0&&Dt==1e5?"two":$t==3||$t==23||$t==43||$t==63||$t==83?"few":ht!=1&&($t==1||$t==21||$t==41||$t==61||$t==81)?"many":"other"},ky=a$6,lag=(ht,Et)=>{const yt=String(ht).split("."),Ct=yt[0];return Et?"other":ht==0?"zero":(Ct==0||Ct==1)&&ht!=0?"one":"other"},lb=a$6,lg=a$6,lij=(ht,Et)=>{const yt=String(ht).split("."),Ct=!yt[1],$t=Number(yt[0])==ht;return Et?ht==11||ht==8||$t&&ht>=80&&ht<=89||$t&&ht>=800&&ht<=899?"many":"other":ht==1&&Ct?"one":"other"},lkt=e$6,ln=b$9,lo=(ht,Et)=>Et&&ht==1?"one":"other",lt$1=(ht,Et)=>{const yt=String(ht).split("."),Ct=yt[1]||"",$t=Number(yt[0])==ht,At=$t&&yt[0].slice(-1),Bt=$t&&yt[0].slice(-2);return Et?"other":At==1&&(Bt<11||Bt>19)?"one":At>=2&&At<=9&&(Bt<11||Bt>19)?"few":Ct!=0?"many":"other"},lv=(ht,Et)=>{const yt=String(ht).split("."),Ct=yt[1]||"",$t=Ct.length,At=Number(yt[0])==ht,Bt=At&&yt[0].slice(-1),Dt=At&&yt[0].slice(-2),Ft=Ct.slice(-2),kt=Ct.slice(-1);return Et?"other":At&&Bt==0||Dt>=11&&Dt<=19||$t==2&&Ft>=11&&Ft<=19?"zero":Bt==1&&Dt!=11||$t==2&&kt==1&&Ft!=11||$t!=2&&kt==1?"one":"other"},mas=a$6,mg=b$9,mgo=a$6,mk=(ht,Et)=>{const yt=String(ht).split("."),Ct=yt[0],$t=yt[1]||"",At=!yt[1],Bt=Ct.slice(-1),Dt=Ct.slice(-2),Ft=$t.slice(-1),kt=$t.slice(-2);return Et?Bt==1&&Dt!=11?"one":Bt==2&&Dt!=12?"two":(Bt==7||Bt==8)&&Dt!=17&&Dt!=18?"many":"other":At&&Bt==1&&Dt!=11||Ft==1&&kt!=11?"one":"other"},ml=a$6,mn=a$6,mo=(ht,Et)=>{const yt=String(ht).split("."),Ct=!yt[1],$t=Number(yt[0])==ht,At=$t&&yt[0].slice(-2);return Et?ht==1?"one":"other":ht==1&&Ct?"one":!Ct||ht==0||ht!=1&&At>=1&&At<=19?"few":"other"},mr=(ht,Et)=>Et?ht==1?"one":ht==2||ht==3?"two":ht==4?"few":"other":ht==1?"one":"other",ms=(ht,Et)=>Et&&ht==1?"one":"other",mt$1=(ht,Et)=>{const yt=String(ht).split("."),Ct=Number(yt[0])==ht,$t=Ct&&yt[0].slice(-2);return Et?"other":ht==1?"one":ht==2?"two":ht==0||$t>=3&&$t<=10?"few":$t>=11&&$t<=19?"many":"other"},my=e$6,nah=a$6,naq=f$b,nb=a$6,nd=a$6,ne=(ht,Et)=>{const yt=String(ht).split("."),Ct=Number(yt[0])==ht;return Et?Ct&&ht>=1&&ht<=4?"one":"other":ht==1?"one":"other"},nl=d$b,nn=a$6,nnh=a$6,no=a$6,nqo=e$6,nr=a$6,nso=b$9,ny=a$6,nyn=a$6,om=a$6,or=(ht,Et)=>{const yt=String(ht).split("."),Ct=Number(yt[0])==ht;return Et?ht==1||ht==5||Ct&&ht>=7&&ht<=9?"one":ht==2||ht==3?"two":ht==4?"few":ht==6?"many":"other":ht==1?"one":"other"},os$1=a$6,osa=e$6,pa=b$9,pap=a$6,pcm=c$a,pl=(ht,Et)=>{const yt=String(ht).split("."),Ct=yt[0],$t=!yt[1],At=Ct.slice(-1),Bt=Ct.slice(-2);return Et?"other":ht==1&&$t?"one":$t&&At>=2&&At<=4&&(Bt<12||Bt>14)?"few":$t&&Ct!=1&&(At==0||At==1)||$t&&At>=5&&At<=9||$t&&Bt>=12&&Bt<=14?"many":"other"},prg=(ht,Et)=>{const yt=String(ht).split("."),Ct=yt[1]||"",$t=Ct.length,At=Number(yt[0])==ht,Bt=At&&yt[0].slice(-1),Dt=At&&yt[0].slice(-2),Ft=Ct.slice(-2),kt=Ct.slice(-1);return Et?"other":At&&Bt==0||Dt>=11&&Dt<=19||$t==2&&Ft>=11&&Ft<=19?"zero":Bt==1&&Dt!=11||$t==2&&kt==1&&Ft!=11||$t!=2&&kt==1?"one":"other"},ps=a$6,pt$1=(ht,Et)=>{const yt=String(ht).split("."),Ct=yt[0],$t=!yt[1],At=Ct.slice(-6);return Et?"other":Ct==0||Ct==1?"one":Ct!=0&&At==0&&$t?"many":"other"},pt_PT=(ht,Et)=>{const yt=String(ht).split("."),Ct=yt[0],$t=!yt[1],At=Ct.slice(-6);return Et?"other":ht==1&&$t?"one":Ct!=0&&At==0&&$t?"many":"other"},rm=a$6,ro=(ht,Et)=>{const yt=String(ht).split("."),Ct=!yt[1],$t=Number(yt[0])==ht,At=$t&&yt[0].slice(-2);return Et?ht==1?"one":"other":ht==1&&Ct?"one":!Ct||ht==0||ht!=1&&At>=1&&At<=19?"few":"other"},rof=a$6,ru=(ht,Et)=>{const yt=String(ht).split("."),Ct=yt[0],$t=!yt[1],At=Ct.slice(-1),Bt=Ct.slice(-2);return Et?"other":$t&&At==1&&Bt!=11?"one":$t&&At>=2&&At<=4&&(Bt<12||Bt>14)?"few":$t&&At==0||$t&&At>=5&&At<=9||$t&&Bt>=11&&Bt<=14?"many":"other"},rwk=a$6,sah=e$6,saq=a$6,sat=f$b,sc=(ht,Et)=>{const yt=String(ht).split("."),Ct=!yt[1];return Et?ht==11||ht==8||ht==80||ht==800?"many":"other":ht==1&&Ct?"one":"other"},scn=(ht,Et)=>{const yt=String(ht).split("."),Ct=!yt[1];return Et?ht==11||ht==8||ht==80||ht==800?"many":"other":ht==1&&Ct?"one":"other"},sd=a$6,sdh=a$6,se$1=f$b,seh=a$6,ses=e$6,sg=e$6,sh=(ht,Et)=>{const yt=String(ht).split("."),Ct=yt[0],$t=yt[1]||"",At=!yt[1],Bt=Ct.slice(-1),Dt=Ct.slice(-2),Ft=$t.slice(-1),kt=$t.slice(-2);return Et?"other":At&&Bt==1&&Dt!=11||Ft==1&&kt!=11?"one":At&&Bt>=2&&Bt<=4&&(Dt<12||Dt>14)||Ft>=2&&Ft<=4&&(kt<12||kt>14)?"few":"other"},shi=(ht,Et)=>{const yt=String(ht).split("."),Ct=Number(yt[0])==ht;return Et?"other":ht>=0&&ht<=1?"one":Ct&&ht>=2&&ht<=10?"few":"other"},si=(ht,Et)=>{const yt=String(ht).split("."),Ct=yt[0],$t=yt[1]||"";return Et?"other":ht==0||ht==1||Ct==0&&$t==1?"one":"other"},sk=(ht,Et)=>{const yt=String(ht).split("."),Ct=yt[0],$t=!yt[1];return Et?"other":ht==1&&$t?"one":Ct>=2&&Ct<=4&&$t?"few":$t?"other":"many"},sl=(ht,Et)=>{const yt=String(ht).split("."),Ct=yt[0],$t=!yt[1],At=Ct.slice(-2);return Et?"other":$t&&At==1?"one":$t&&At==2?"two":$t&&(At==3||At==4)||!$t?"few":"other"},sma=f$b,smi=f$b,smj=f$b,smn=f$b,sms=f$b,sn=a$6,so=a$6,sq=(ht,Et)=>{const yt=String(ht).split("."),Ct=Number(yt[0])==ht,$t=Ct&&yt[0].slice(-1),At=Ct&&yt[0].slice(-2);return Et?ht==1?"one":$t==4&&At!=14?"many":"other":ht==1?"one":"other"},sr=(ht,Et)=>{const yt=String(ht).split("."),Ct=yt[0],$t=yt[1]||"",At=!yt[1],Bt=Ct.slice(-1),Dt=Ct.slice(-2),Ft=$t.slice(-1),kt=$t.slice(-2);return Et?"other":At&&Bt==1&&Dt!=11||Ft==1&&kt!=11?"one":At&&Bt>=2&&Bt<=4&&(Dt<12||Dt>14)||Ft>=2&&Ft<=4&&(kt<12||kt>14)?"few":"other"},ss=a$6,ssy=a$6,st$1=a$6,su=e$6,sv=(ht,Et)=>{const yt=String(ht).split("."),Ct=!yt[1],$t=Number(yt[0])==ht,At=$t&&yt[0].slice(-1),Bt=$t&&yt[0].slice(-2);return Et?(At==1||At==2)&&Bt!=11&&Bt!=12?"one":"other":ht==1&&Ct?"one":"other"},sw=d$b,syr=a$6,ta=a$6,te$1=a$6,teo=a$6,th=e$6,ti=b$9,tig=a$6,tk=(ht,Et)=>{const yt=String(ht).split("."),Ct=Number(yt[0])==ht,$t=Ct&&yt[0].slice(-1);return Et?$t==6||$t==9||ht==10?"few":"other":ht==1?"one":"other"},tl=(ht,Et)=>{const yt=String(ht).split("."),Ct=yt[0],$t=yt[1]||"",At=!yt[1],Bt=Ct.slice(-1),Dt=$t.slice(-1);return Et?ht==1?"one":"other":At&&(Ct==1||Ct==2||Ct==3)||At&&Bt!=4&&Bt!=6&&Bt!=9||!At&&Dt!=4&&Dt!=6&&Dt!=9?"one":"other"},tn=a$6,to=e$6,tpi=e$6,tr=a$6,ts=a$6,tzm=(ht,Et)=>{const yt=String(ht).split("."),Ct=Number(yt[0])==ht;return Et?"other":ht==0||ht==1||Ct&&ht>=11&&ht<=99?"one":"other"},ug=a$6,uk=(ht,Et)=>{const yt=String(ht).split("."),Ct=yt[0],$t=!yt[1],At=Number(yt[0])==ht,Bt=At&&yt[0].slice(-1),Dt=At&&yt[0].slice(-2),Ft=Ct.slice(-1),kt=Ct.slice(-2);return Et?Bt==3&&Dt!=13?"few":"other":$t&&Ft==1&&kt!=11?"one":$t&&Ft>=2&&Ft<=4&&(kt<12||kt>14)?"few":$t&&Ft==0||$t&&Ft>=5&&Ft<=9||$t&&kt>=11&&kt<=14?"many":"other"},und=e$6,ur=d$b,uz=a$6,ve=a$6,vec=(ht,Et)=>{const yt=String(ht).split("."),Ct=yt[0],$t=!yt[1],At=Ct.slice(-6);return Et?ht==11||ht==8||ht==80||ht==800?"many":"other":ht==1&&$t?"one":Ct!=0&&At==0&&$t?"many":"other"},vi=(ht,Et)=>Et&&ht==1?"one":"other",vo=a$6,vun=a$6,wa=b$9,wae=a$6,wo=e$6,xh=a$6,xog=a$6,yi=d$b,yo=e$6,yue=e$6,zh=e$6,zu=c$a,plurals=Object.freeze(Object.defineProperty({__proto__:null,af,ak,am,an,ar,ars,as,asa,ast,az,bal,be:be$1,bem,bez,bg,bho,blo,bm,bn,bo,br,brx,bs,ca,ce:ce$1,ceb,cgg,chr,ckb,cs,cy,da,de:de$2,doi,dsb,dv,dz,ee:ee$2,el,en,eo,es,et:et$2,eu,fa,ff,fi,fil,fo,fr,fur,fy,ga,gd,gl,gsw,gu,guw,gv,ha,haw,he,hi:hi$1,hnj,hr:hr$1,hsb,hu,hy,ia,id:id$3,ig,ii,io,is:is$1,it:it$1,iu,ja,jbo,jgo,jmc,jv,jw,ka,kab,kaj,kcg,kde,kea,kk,kkj,kl,km,kn,ko,ks,ksb,ksh,ku,kw,ky,lag,lb,lg,lij,lkt,ln,lo,lt:lt$1,lv,mas,mg,mgo,mk,ml,mn,mo,mr,ms,mt:mt$1,my,nah,naq,nb,nd,ne,nl,nn,nnh,no,nqo,nr,nso,ny,nyn,om,or,os:os$1,osa,pa,pap,pcm,pl,prg,ps,pt:pt$1,pt_PT,rm,ro,rof,ru,rwk,sah,saq,sat,sc,scn,sd,sdh,se:se$1,seh,ses,sg,sh,shi,si,sk,sl,sma,smi,smj,smn,sms,sn,so,sq,sr,ss,ssy,st:st$1,su,sv,sw,syr,ta,te:te$1,teo,th,ti,tig,tk,tl,tn,to,tpi,tr,ts,tzm,ug,uk,und,ur,uz,ve,vec,vi,vo,vun,wa,wae,wo,xh,xog,yi,yo,yue,zh,zu},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(plurals);(function(ht){Object.defineProperty(ht,"__esModule",{value:!0}),ht.Pluralization=ht.defaultPluralizer=ht.useMakePlural=void 0;const Et=require$$0;function yt({pluralizer:$t,includeZero:At=!0,ordinal:Bt=!1}){return function(Dt,Ft){return[At&&Ft===0?"zero":"",$t(Ft,Bt)].filter(Boolean)}}ht.useMakePlural=yt,ht.defaultPluralizer=yt({pluralizer:Et.en,includeZero:!0});class Ct{constructor(At){this.i18n=At,this.registry={},this.register("default",ht.defaultPluralizer)}register(At,Bt){this.registry[At]=Bt}get(At){return this.registry[At]||this.registry[this.i18n.locale]||this.registry.default}}ht.Pluralization=Ct})(Pluralization);var MissingTranslation={},helpers$1={},camelCaseKeys$1={};function baseSlice$2(ht,Et,yt){var Ct=-1,$t=ht.length;Et<0&&(Et=-Et>$t?0:$t+Et),yt=yt>$t?$t:yt,yt<0&&(yt+=$t),$t=Et>yt?0:yt-Et>>>0,Et>>>=0;for(var At=Array($t);++Ct<$t;)At[Ct]=ht[Ct+Et];return At}var _baseSlice=baseSlice$2,baseSlice$1=_baseSlice;function castSlice$1(ht,Et,yt){var Ct=ht.length;return yt=yt===void 0?Ct:yt,!Et&&yt>=Ct?ht:baseSlice$1(ht,Et,yt)}var _castSlice=castSlice$1,rsAstralRange$2="\\ud800-\\udfff",rsComboMarksRange$3="\\u0300-\\u036f",reComboHalfMarksRange$3="\\ufe20-\\ufe2f",rsComboSymbolsRange$3="\\u20d0-\\u20ff",rsComboRange$3=rsComboMarksRange$3+reComboHalfMarksRange$3+rsComboSymbolsRange$3,rsVarRange$2="\\ufe0e\\ufe0f",rsZWJ$2="\\u200d",reHasUnicode=RegExp("["+rsZWJ$2+rsAstralRange$2+rsComboRange$3+rsVarRange$2+"]");function hasUnicode$2(ht){return reHasUnicode.test(ht)}var _hasUnicode=hasUnicode$2;function asciiToArray$1(ht){return ht.split("")}var _asciiToArray=asciiToArray$1,rsAstralRange$1="\\ud800-\\udfff",rsComboMarksRange$2="\\u0300-\\u036f",reComboHalfMarksRange$2="\\ufe20-\\ufe2f",rsComboSymbolsRange$2="\\u20d0-\\u20ff",rsComboRange$2=rsComboMarksRange$2+reComboHalfMarksRange$2+rsComboSymbolsRange$2,rsVarRange$1="\\ufe0e\\ufe0f",rsAstral="["+rsAstralRange$1+"]",rsCombo$2="["+rsComboRange$2+"]",rsFitz$1="\\ud83c[\\udffb-\\udfff]",rsModifier$1="(?:"+rsCombo$2+"|"+rsFitz$1+")",rsNonAstral$1="[^"+rsAstralRange$1+"]",rsRegional$1="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair$1="[\\ud800-\\udbff][\\udc00-\\udfff]",rsZWJ$1="\\u200d",reOptMod$1=rsModifier$1+"?",rsOptVar$1="["+rsVarRange$1+"]?",rsOptJoin$1="(?:"+rsZWJ$1+"(?:"+[rsNonAstral$1,rsRegional$1,rsSurrPair$1].join("|")+")"+rsOptVar$1+reOptMod$1+")*",rsSeq$1=rsOptVar$1+reOptMod$1+rsOptJoin$1,rsSymbol="(?:"+[rsNonAstral$1+rsCombo$2+"?",rsCombo$2,rsRegional$1,rsSurrPair$1,rsAstral].join("|")+")",reUnicode=RegExp(rsFitz$1+"(?="+rsFitz$1+")|"+rsSymbol+rsSeq$1,"g");function unicodeToArray$1(ht){return ht.match(reUnicode)||[]}var _unicodeToArray=unicodeToArray$1,asciiToArray=_asciiToArray,hasUnicode$1=_hasUnicode,unicodeToArray=_unicodeToArray;function stringToArray$1(ht){return hasUnicode$1(ht)?unicodeToArray(ht):asciiToArray(ht)}var _stringToArray=stringToArray$1,castSlice=_castSlice,hasUnicode=_hasUnicode,stringToArray=_stringToArray,toString$i=toString_1;function createCaseFirst$1(ht){return function(Et){Et=toString$i(Et);var yt=hasUnicode(Et)?stringToArray(Et):void 0,Ct=yt?yt[0]:Et.charAt(0),$t=yt?castSlice(yt,1).join(""):Et.slice(1);return Ct[ht]()+$t}}var _createCaseFirst=createCaseFirst$1,createCaseFirst=_createCaseFirst,upperFirst$1=createCaseFirst("toUpperCase"),upperFirst_1=upperFirst$1,toString$h=toString_1,upperFirst=upperFirst_1;function capitalize$1(ht){return upperFirst(toString$h(ht).toLowerCase())}var capitalize_1=capitalize$1;function arrayReduce$2(ht,Et,yt,Ct){var $t=-1,At=ht==null?0:ht.length;for(Ct&&At&&(yt=ht[++$t]);++$t<At;)yt=Et(yt,ht[$t],$t,ht);return yt}var _arrayReduce=arrayReduce$2;function basePropertyOf$1(ht){return function(Et){return ht==null?void 0:ht[Et]}}var _basePropertyOf=basePropertyOf$1,basePropertyOf=_basePropertyOf,deburredLetters={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},deburrLetter$1=basePropertyOf(deburredLetters),_deburrLetter=deburrLetter$1,deburrLetter=_deburrLetter,toString$g=toString_1,reLatin=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rsComboMarksRange$1="\\u0300-\\u036f",reComboHalfMarksRange$1="\\ufe20-\\ufe2f",rsComboSymbolsRange$1="\\u20d0-\\u20ff",rsComboRange$1=rsComboMarksRange$1+reComboHalfMarksRange$1+rsComboSymbolsRange$1,rsCombo$1="["+rsComboRange$1+"]",reComboMark=RegExp(rsCombo$1,"g");function deburr$1(ht){return ht=toString$g(ht),ht&&ht.replace(reLatin,deburrLetter).replace(reComboMark,"")}var deburr_1=deburr$1,reAsciiWord=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function asciiWords$1(ht){return ht.match(reAsciiWord)||[]}var _asciiWords=asciiWords$1,reHasUnicodeWord=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function hasUnicodeWord$1(ht){return reHasUnicodeWord.test(ht)}var _hasUnicodeWord=hasUnicodeWord$1,rsAstralRange="\\ud800-\\udfff",rsComboMarksRange="\\u0300-\\u036f",reComboHalfMarksRange="\\ufe20-\\ufe2f",rsComboSymbolsRange="\\u20d0-\\u20ff",rsComboRange=rsComboMarksRange+reComboHalfMarksRange+rsComboSymbolsRange,rsDingbatRange="\\u2700-\\u27bf",rsLowerRange="a-z\\xdf-\\xf6\\xf8-\\xff",rsMathOpRange="\\xac\\xb1\\xd7\\xf7",rsNonCharRange="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rsPunctuationRange="\\u2000-\\u206f",rsSpaceRange=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",rsUpperRange="A-Z\\xc0-\\xd6\\xd8-\\xde",rsVarRange="\\ufe0e\\ufe0f",rsBreakRange=rsMathOpRange+rsNonCharRange+rsPunctuationRange+rsSpaceRange,rsApos$1="['’]",rsBreak="["+rsBreakRange+"]",rsCombo="["+rsComboRange+"]",rsDigits="\\d+",rsDingbat="["+rsDingbatRange+"]",rsLower="["+rsLowerRange+"]",rsMisc="[^"+rsAstralRange+rsBreakRange+rsDigits+rsDingbatRange+rsLowerRange+rsUpperRange+"]",rsFitz="\\ud83c[\\udffb-\\udfff]",rsModifier="(?:"+rsCombo+"|"+rsFitz+")",rsNonAstral="[^"+rsAstralRange+"]",rsRegional="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair="[\\ud800-\\udbff][\\udc00-\\udfff]",rsUpper="["+rsUpperRange+"]",rsZWJ="\\u200d",rsMiscLower="(?:"+rsLower+"|"+rsMisc+")",rsMiscUpper="(?:"+rsUpper+"|"+rsMisc+")",rsOptContrLower="(?:"+rsApos$1+"(?:d|ll|m|re|s|t|ve))?",rsOptContrUpper="(?:"+rsApos$1+"(?:D|LL|M|RE|S|T|VE))?",reOptMod=rsModifier+"?",rsOptVar="["+rsVarRange+"]?",rsOptJoin="(?:"+rsZWJ+"(?:"+[rsNonAstral,rsRegional,rsSurrPair].join("|")+")"+rsOptVar+reOptMod+")*",rsOrdLower="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rsOrdUpper="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",rsSeq=rsOptVar+reOptMod+rsOptJoin,rsEmoji="(?:"+[rsDingbat,rsRegional,rsSurrPair].join("|")+")"+rsSeq,reUnicodeWord=RegExp([rsUpper+"?"+rsLower+"+"+rsOptContrLower+"(?="+[rsBreak,rsUpper,"$"].join("|")+")",rsMiscUpper+"+"+rsOptContrUpper+"(?="+[rsBreak,rsUpper+rsMiscLower,"$"].join("|")+")",rsUpper+"?"+rsMiscLower+"+"+rsOptContrLower,rsUpper+"+"+rsOptContrUpper,rsOrdUpper,rsOrdLower,rsDigits,rsEmoji].join("|"),"g");function unicodeWords$1(ht){return ht.match(reUnicodeWord)||[]}var _unicodeWords=unicodeWords$1,asciiWords=_asciiWords,hasUnicodeWord=_hasUnicodeWord,toString$f=toString_1,unicodeWords=_unicodeWords;function words$1(ht,Et,yt){return ht=toString$f(ht),Et=yt?void 0:Et,Et===void 0?hasUnicodeWord(ht)?unicodeWords(ht):asciiWords(ht):ht.match(Et)||[]}var words_1=words$1,arrayReduce$1=_arrayReduce,deburr=deburr_1,words=words_1,rsApos="['’]",reApos=RegExp(rsApos,"g");function createCompounder$1(ht){return function(Et){return arrayReduce$1(words(deburr(Et).replace(reApos,"")),ht,"")}}var _createCompounder=createCompounder$1,capitalize=capitalize_1,createCompounder=_createCompounder,camelCase$1=createCompounder(function(ht,Et,yt){return Et=Et.toLowerCase(),ht+(yt?capitalize(Et):Et)}),camelCase_1$1=camelCase$1,__importDefault$8=commonjsGlobal&&commonjsGlobal.__importDefault||function(ht){return ht&&ht.__esModule?ht:{default:ht}};Object.defineProperty(camelCaseKeys$1,"__esModule",{value:!0});camelCaseKeys$1.camelCaseKeys=void 0;const camelCase_1=__importDefault$8(camelCase_1$1);function camelCaseKeys(ht){return ht?Object.keys(ht).reduce((Et,yt)=>(Et[(0,camelCase_1.default)(yt)]=ht[yt],Et),{}):{}}camelCaseKeys$1.camelCaseKeys=camelCaseKeys;var createTranslationOptions$1={},isSet$2={};Object.defineProperty(isSet$2,"__esModule",{value:!0});isSet$2.isSet=void 0;function isSet$1(ht){return ht!=null}isSet$2.isSet=isSet$1;Object.defineProperty(createTranslationOptions$1,"__esModule",{value:!0});createTranslationOptions$1.createTranslationOptions=void 0;const isSet_1$3=isSet$2;function createTranslationOptions(ht,Et,yt){let Ct=[{scope:Et}];if((0,isSet_1$3.isSet)(yt.defaults)&&(Ct=Ct.concat(yt.defaults)),(0,isSet_1$3.isSet)(yt.defaultValue)){const $t=typeof yt.defaultValue=="function"?yt.defaultValue(ht,Et,yt):yt.defaultValue;Ct.push({message:$t}),delete yt.defaultValue}return Ct}createTranslationOptions$1.createTranslationOptions=createTranslationOptions;var expandRoundMode$1={},bignumber={exports:{}};(function(ht){(function(Et){var yt,Ct=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,$t=Math.ceil,At=Math.floor,Bt="[BigNumber Error] ",Dt=Bt+"Number primitive has more than 15 significant digits: ",Ft=1e14,kt=14,Mt=9007199254740991,Nt=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],jt=1e7,zt=1e9;function Vt(pr){var gr,vr,yr,xr=$r.prototype={constructor:$r,toString:null,valueOf:null},rr=new $r(1),Lt=20,Ht=4,Wt=-7,Gt=21,Yt=-1e7,er=1e7,lr=!1,Jt=1,Ut=0,ir={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},Cr="0123456789abcdefghijklmnopqrstuvwxyz",_r=!0;function $r(wr,Sr){var Br,Or,Pr,Nr,Lr,Wr,Ur,jr,Kr=this;if(!(Kr instanceof $r))return new $r(wr,Sr);if(Sr==null){if(wr&&wr._isBigNumber===!0){Kr.s=wr.s,!wr.c||wr.e>er?Kr.c=Kr.e=null:wr.e<Yt?Kr.c=[Kr.e=0]:(Kr.e=wr.e,Kr.c=wr.c.slice());return}if((Wr=typeof wr=="number")&&wr*0==0){if(Kr.s=1/wr<0?(wr=-wr,-1):1,wr===~~wr){for(Nr=0,Lr=wr;Lr>=10;Lr/=10,Nr++);Nr>er?Kr.c=Kr.e=null:(Kr.e=Nr,Kr.c=[wr]);return}jr=String(wr)}else{if(!Ct.test(jr=String(wr)))return yr(Kr,jr,Wr);Kr.s=jr.charCodeAt(0)==45?(jr=jr.slice(1),-1):1}(Nr=jr.indexOf("."))>-1&&(jr=jr.replace(".","")),(Lr=jr.search(/e/i))>0?(Nr<0&&(Nr=Lr),Nr+=+jr.slice(Lr+1),jr=jr.substring(0,Lr)):Nr<0&&(Nr=jr.length)}else{if(Zt(Sr,2,Cr.length,"Base"),Sr==10&&_r)return Kr=new $r(wr),Fr(Kr,Lt+Kr.e+1,Ht);if(jr=String(wr),Wr=typeof wr=="number"){if(wr*0!=0)return yr(Kr,jr,Wr,Sr);if(Kr.s=1/wr<0?(jr=jr.slice(1),-1):1,$r.DEBUG&&jr.replace(/^0\.0*|\./,"").length>15)throw Error(Dt+wr)}else Kr.s=jr.charCodeAt(0)===45?(jr=jr.slice(1),-1):1;for(Br=Cr.slice(0,Sr),Nr=Lr=0,Ur=jr.length;Lr<Ur;Lr++)if(Br.indexOf(Or=jr.charAt(Lr))<0){if(Or=="."){if(Lr>Nr){Nr=Ur;continue}}else if(!Pr&&(jr==jr.toUpperCase()&&(jr=jr.toLowerCase())||jr==jr.toLowerCase()&&(jr=jr.toUpperCase()))){Pr=!0,Lr=-1,Nr=0;continue}return yr(Kr,String(wr),Wr,Sr)}Wr=!1,jr=vr(jr,Sr,10,Kr.s),(Nr=jr.indexOf("."))>-1?jr=jr.replace(".",""):Nr=jr.length}for(Lr=0;jr.charCodeAt(Lr)===48;Lr++);for(Ur=jr.length;jr.charCodeAt(--Ur)===48;);if(jr=jr.slice(Lr,++Ur)){if(Ur-=Lr,Wr&&$r.DEBUG&&Ur>15&&(wr>Mt||wr!==At(wr)))throw Error(Dt+Kr.s*wr);if((Nr=Nr-Lr-1)>er)Kr.c=Kr.e=null;else if(Nr<Yt)Kr.c=[Kr.e=0];else{if(Kr.e=Nr,Kr.c=[],Lr=(Nr+1)%kt,Nr<0&&(Lr+=kt),Lr<Ur){for(Lr&&Kr.c.push(+jr.slice(0,Lr)),Ur-=kt;Lr<Ur;)Kr.c.push(+jr.slice(Lr,Lr+=kt));Lr=kt-(jr=jr.slice(Lr)).length}else Lr-=Ur;for(;Lr--;jr+="0");Kr.c.push(+jr)}}else Kr.c=[Kr.e=0]}$r.clone=Vt,$r.ROUND_UP=0,$r.ROUND_DOWN=1,$r.ROUND_CEIL=2,$r.ROUND_FLOOR=3,$r.ROUND_HALF_UP=4,$r.ROUND_HALF_DOWN=5,$r.ROUND_HALF_EVEN=6,$r.ROUND_HALF_CEIL=7,$r.ROUND_HALF_FLOOR=8,$r.EUCLID=9,$r.config=$r.set=function(wr){var Sr,Br;if(wr!=null)if(typeof wr=="object"){if(wr.hasOwnProperty(Sr="DECIMAL_PLACES")&&(Br=wr[Sr],Zt(Br,0,zt,Sr),Lt=Br),wr.hasOwnProperty(Sr="ROUNDING_MODE")&&(Br=wr[Sr],Zt(Br,0,8,Sr),Ht=Br),wr.hasOwnProperty(Sr="EXPONENTIAL_AT")&&(Br=wr[Sr],Br&&Br.pop?(Zt(Br[0],-zt,0,Sr),Zt(Br[1],0,zt,Sr),Wt=Br[0],Gt=Br[1]):(Zt(Br,-zt,zt,Sr),Wt=-(Gt=Br<0?-Br:Br))),wr.hasOwnProperty(Sr="RANGE"))if(Br=wr[Sr],Br&&Br.pop)Zt(Br[0],-zt,-1,Sr),Zt(Br[1],1,zt,Sr),Yt=Br[0],er=Br[1];else if(Zt(Br,-zt,zt,Sr),Br)Yt=-(er=Br<0?-Br:Br);else throw Error(Bt+Sr+" cannot be zero: "+Br);if(wr.hasOwnProperty(Sr="CRYPTO"))if(Br=wr[Sr],Br===!!Br)if(Br)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))lr=Br;else throw lr=!Br,Error(Bt+"crypto unavailable");else lr=Br;else throw Error(Bt+Sr+" not true or false: "+Br);if(wr.hasOwnProperty(Sr="MODULO_MODE")&&(Br=wr[Sr],Zt(Br,0,9,Sr),Jt=Br),wr.hasOwnProperty(Sr="POW_PRECISION")&&(Br=wr[Sr],Zt(Br,0,zt,Sr),Ut=Br),wr.hasOwnProperty(Sr="FORMAT"))if(Br=wr[Sr],typeof Br=="object")ir=Br;else throw Error(Bt+Sr+" not an object: "+Br);if(wr.hasOwnProperty(Sr="ALPHABET"))if(Br=wr[Sr],typeof Br=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(Br))_r=Br.slice(0,10)=="0123456789",Cr=Br;else throw Error(Bt+Sr+" invalid: "+Br)}else throw Error(Bt+"Object expected: "+wr);return{DECIMAL_PLACES:Lt,ROUNDING_MODE:Ht,EXPONENTIAL_AT:[Wt,Gt],RANGE:[Yt,er],CRYPTO:lr,MODULO_MODE:Jt,POW_PRECISION:Ut,FORMAT:ir,ALPHABET:Cr}},$r.isBigNumber=function(wr){if(!wr||wr._isBigNumber!==!0)return!1;if(!$r.DEBUG)return!0;var Sr,Br,Or=wr.c,Pr=wr.e,Nr=wr.s;e:if({}.toString.call(Or)=="[object Array]"){if((Nr===1||Nr===-1)&&Pr>=-zt&&Pr<=zt&&Pr===At(Pr)){if(Or[0]===0){if(Pr===0&&Or.length===1)return!0;break e}if(Sr=(Pr+1)%kt,Sr<1&&(Sr+=kt),String(Or[0]).length==Sr){for(Sr=0;Sr<Or.length;Sr++)if(Br=Or[Sr],Br<0||Br>=Ft||Br!==At(Br))break e;if(Br!==0)return!0}}}else if(Or===null&&Pr===null&&(Nr===null||Nr===1||Nr===-1))return!0;throw Error(Bt+"Invalid BigNumber: "+wr)},$r.maximum=$r.max=function(){return Dr(arguments,-1)},$r.minimum=$r.min=function(){return Dr(arguments,1)},$r.random=function(){var wr=9007199254740992,Sr=Math.random()*wr&2097151?function(){return At(Math.random()*wr)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(Br){var Or,Pr,Nr,Lr,Wr,Ur=0,jr=[],Kr=new $r(rr);if(Br==null?Br=Lt:Zt(Br,0,zt),Lr=$t(Br/kt),lr)if(crypto.getRandomValues){for(Or=crypto.getRandomValues(new Uint32Array(Lr*=2));Ur<Lr;)Wr=Or[Ur]*131072+(Or[Ur+1]>>>11),Wr>=9e15?(Pr=crypto.getRandomValues(new Uint32Array(2)),Or[Ur]=Pr[0],Or[Ur+1]=Pr[1]):(jr.push(Wr%1e14),Ur+=2);Ur=Lr/2}else if(crypto.randomBytes){for(Or=crypto.randomBytes(Lr*=7);Ur<Lr;)Wr=(Or[Ur]&31)*281474976710656+Or[Ur+1]*1099511627776+Or[Ur+2]*4294967296+Or[Ur+3]*16777216+(Or[Ur+4]<<16)+(Or[Ur+5]<<8)+Or[Ur+6],Wr>=9e15?crypto.randomBytes(7).copy(Or,Ur):(jr.push(Wr%1e14),Ur+=7);Ur=Lr/7}else throw lr=!1,Error(Bt+"crypto unavailable");if(!lr)for(;Ur<Lr;)Wr=Sr(),Wr<9e15&&(jr[Ur++]=Wr%1e14);for(Lr=jr[--Ur],Br%=kt,Lr&&Br&&(Wr=Nt[kt-Br],jr[Ur]=At(Lr/Wr)*Wr);jr[Ur]===0;jr.pop(),Ur--);if(Ur<0)jr=[Nr=0];else{for(Nr=-1;jr[0]===0;jr.splice(0,1),Nr-=kt);for(Ur=1,Wr=jr[0];Wr>=10;Wr/=10,Ur++);Ur<kt&&(Nr-=kt-Ur)}return Kr.e=Nr,Kr.c=jr,Kr}}(),$r.sum=function(){for(var wr=1,Sr=arguments,Br=new $r(Sr[0]);wr<Sr.length;)Br=Br.plus(Sr[wr++]);return Br},vr=function(){var wr="0123456789";function Sr(Br,Or,Pr,Nr){for(var Lr,Wr=[0],Ur,jr=0,Kr=Br.length;jr<Kr;){for(Ur=Wr.length;Ur--;Wr[Ur]*=Or);for(Wr[0]+=Nr.indexOf(Br.charAt(jr++)),Lr=0;Lr<Wr.length;Lr++)Wr[Lr]>Pr-1&&(Wr[Lr+1]==null&&(Wr[Lr+1]=0),Wr[Lr+1]+=Wr[Lr]/Pr|0,Wr[Lr]%=Pr)}return Wr.reverse()}return function(Br,Or,Pr,Nr,Lr){var Wr,Ur,jr,Kr,qr,Zr,dn,Xr,un=Br.indexOf("."),Yr=Lt,Gr=Ht;for(un>=0&&(Kr=Ut,Ut=0,Br=Br.replace(".",""),Xr=new $r(Or),Zr=Xr.pow(Br.length-un),Ut=Kr,Xr.c=Sr(Er(Xt(Zr.c),Zr.e,"0"),10,Pr,wr),Xr.e=Xr.c.length),dn=Sr(Br,Or,Pr,Lr?(Wr=Cr,wr):(Wr=wr,Cr)),jr=Kr=dn.length;dn[--Kr]==0;dn.pop());if(!dn[0])return Wr.charAt(0);if(un<0?--jr:(Zr.c=dn,Zr.e=jr,Zr.s=Nr,Zr=gr(Zr,Xr,Yr,Gr,Pr),dn=Zr.c,qr=Zr.r,jr=Zr.e),Ur=jr+Yr+1,un=dn[Ur],Kr=Pr/2,qr=qr||Ur<0||dn[Ur+1]!=null,qr=Gr<4?(un!=null||qr)&&(Gr==0||Gr==(Zr.s<0?3:2)):un>Kr||un==Kr&&(Gr==4||qr||Gr==6&&dn[Ur-1]&1||Gr==(Zr.s<0?8:7)),Ur<1||!dn[0])Br=qr?Er(Wr.charAt(1),-Yr,Wr.charAt(0)):Wr.charAt(0);else{if(dn.length=Ur,qr)for(--Pr;++dn[--Ur]>Pr;)dn[Ur]=0,Ur||(++jr,dn=[1].concat(dn));for(Kr=dn.length;!dn[--Kr];);for(un=0,Br="";un<=Kr;Br+=Wr.charAt(dn[un++]));Br=Er(Br,jr,Wr.charAt(0))}return Br}}(),gr=function(){function wr(Or,Pr,Nr){var Lr,Wr,Ur,jr,Kr=0,qr=Or.length,Zr=Pr%jt,dn=Pr/jt|0;for(Or=Or.slice();qr--;)Ur=Or[qr]%jt,jr=Or[qr]/jt|0,Lr=dn*Ur+jr*Zr,Wr=Zr*Ur+Lr%jt*jt+Kr,Kr=(Wr/Nr|0)+(Lr/jt|0)+dn*jr,Or[qr]=Wr%Nr;return Kr&&(Or=[Kr].concat(Or)),Or}function Sr(Or,Pr,Nr,Lr){var Wr,Ur;if(Nr!=Lr)Ur=Nr>Lr?1:-1;else for(Wr=Ur=0;Wr<Nr;Wr++)if(Or[Wr]!=Pr[Wr]){Ur=Or[Wr]>Pr[Wr]?1:-1;break}return Ur}function Br(Or,Pr,Nr,Lr){for(var Wr=0;Nr--;)Or[Nr]-=Wr,Wr=Or[Nr]<Pr[Nr]?1:0,Or[Nr]=Wr*Lr+Or[Nr]-Pr[Nr];for(;!Or[0]&&Or.length>1;Or.splice(0,1));}return function(Or,Pr,Nr,Lr,Wr){var Ur,jr,Kr,qr,Zr,dn,Xr,un,Yr,Gr,Jr,wn,kr,Mr,Ir,Hr,Vr,on=Or.s==Pr.s?1:-1,Qr=Or.c,hn=Pr.c;if(!Qr||!Qr[0]||!hn||!hn[0])return new $r(!Or.s||!Pr.s||(Qr?hn&&Qr[0]==hn[0]:!hn)?NaN:Qr&&Qr[0]==0||!hn?on*0:on/0);for(un=new $r(on),Yr=un.c=[],jr=Or.e-Pr.e,on=Nr+jr+1,Wr||(Wr=Ft,jr=Kt(Or.e/kt)-Kt(Pr.e/kt),on=on/kt|0),Kr=0;hn[Kr]==(Qr[Kr]||0);Kr++);if(hn[Kr]>(Qr[Kr]||0)&&jr--,on<0)Yr.push(1),qr=!0;else{for(Mr=Qr.length,Hr=hn.length,Kr=0,on+=2,Zr=At(Wr/(hn[0]+1)),Zr>1&&(hn=wr(hn,Zr,Wr),Qr=wr(Qr,Zr,Wr),Hr=hn.length,Mr=Qr.length),kr=Hr,Gr=Qr.slice(0,Hr),Jr=Gr.length;Jr<Hr;Gr[Jr++]=0);Vr=hn.slice(),Vr=[0].concat(Vr),Ir=hn[0],hn[1]>=Wr/2&&Ir++;do{if(Zr=0,Ur=Sr(hn,Gr,Hr,Jr),Ur<0){if(wn=Gr[0],Hr!=Jr&&(wn=wn*Wr+(Gr[1]||0)),Zr=At(wn/Ir),Zr>1)for(Zr>=Wr&&(Zr=Wr-1),dn=wr(hn,Zr,Wr),Xr=dn.length,Jr=Gr.length;Sr(dn,Gr,Xr,Jr)==1;)Zr--,Br(dn,Hr<Xr?Vr:hn,Xr,Wr),Xr=dn.length,Ur=1;else Zr==0&&(Ur=Zr=1),dn=hn.slice(),Xr=dn.length;if(Xr<Jr&&(dn=[0].concat(dn)),Br(Gr,dn,Jr,Wr),Jr=Gr.length,Ur==-1)for(;Sr(hn,Gr,Hr,Jr)<1;)Zr++,Br(Gr,Hr<Jr?Vr:hn,Jr,Wr),Jr=Gr.length}else Ur===0&&(Zr++,Gr=[0]);Yr[Kr++]=Zr,Gr[0]?Gr[Jr++]=Qr[kr]||0:(Gr=[Qr[kr]],Jr=1)}while((kr++<Mr||Gr[0]!=null)&&on--);qr=Gr[0]!=null,Yr[0]||Yr.splice(0,1)}if(Wr==Ft){for(Kr=1,on=Yr[0];on>=10;on/=10,Kr++);Fr(un,Nr+(un.e=Kr+jr*kt-1)+1,Lr,qr)}else un.e=jr,un.r=+qr;return un}}();function Tr(wr,Sr,Br,Or){var Pr,Nr,Lr,Wr,Ur;if(Br==null?Br=Ht:Zt(Br,0,8),!wr.c)return wr.toString();if(Pr=wr.c[0],Lr=wr.e,Sr==null)Ur=Xt(wr.c),Ur=Or==1||Or==2&&(Lr<=Wt||Lr>=Gt)?cr(Ur,Lr):Er(Ur,Lr,"0");else if(wr=Fr(new $r(wr),Sr,Br),Nr=wr.e,Ur=Xt(wr.c),Wr=Ur.length,Or==1||Or==2&&(Sr<=Nr||Nr<=Wt)){for(;Wr<Sr;Ur+="0",Wr++);Ur=cr(Ur,Nr)}else if(Sr-=Lr,Ur=Er(Ur,Nr,"0"),Nr+1>Wr){if(--Sr>0)for(Ur+=".";Sr--;Ur+="0");}else if(Sr+=Nr-Wr,Sr>0)for(Nr+1==Wr&&(Ur+=".");Sr--;Ur+="0");return wr.s<0&&Pr?"-"+Ur:Ur}function Dr(wr,Sr){for(var Br,Or,Pr=1,Nr=new $r(wr[0]);Pr<wr.length;Pr++)Or=new $r(wr[Pr]),(!Or.s||(Br=Qt(Nr,Or))===Sr||Br===0&&Nr.s===Sr)&&(Nr=Or);return Nr}function Ar(wr,Sr,Br){for(var Or=1,Pr=Sr.length;!Sr[--Pr];Sr.pop());for(Pr=Sr[0];Pr>=10;Pr/=10,Or++);return(Br=Or+Br*kt-1)>er?wr.c=wr.e=null:Br<Yt?wr.c=[wr.e=0]:(wr.e=Br,wr.c=Sr),wr}yr=function(){var wr=/^(-?)0([xbo])(?=\w[\w.]*$)/i,Sr=/^([^.]+)\.$/,Br=/^\.([^.]+)$/,Or=/^-?(Infinity|NaN)$/,Pr=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(Nr,Lr,Wr,Ur){var jr,Kr=Wr?Lr:Lr.replace(Pr,"");if(Or.test(Kr))Nr.s=isNaN(Kr)?null:Kr<0?-1:1;else{if(!Wr&&(Kr=Kr.replace(wr,function(qr,Zr,dn){return jr=(dn=dn.toLowerCase())=="x"?16:dn=="b"?2:8,!Ur||Ur==jr?Zr:qr}),Ur&&(jr=Ur,Kr=Kr.replace(Sr,"$1").replace(Br,"0.$1")),Lr!=Kr))return new $r(Kr,jr);if($r.DEBUG)throw Error(Bt+"Not a"+(Ur?" base "+Ur:"")+" number: "+Lr);Nr.s=null}Nr.c=Nr.e=null}}();function Fr(wr,Sr,Br,Or){var Pr,Nr,Lr,Wr,Ur,jr,Kr,qr=wr.c,Zr=Nt;if(qr){e:{for(Pr=1,Wr=qr[0];Wr>=10;Wr/=10,Pr++);if(Nr=Sr-Pr,Nr<0)Nr+=kt,Lr=Sr,Ur=qr[jr=0],Kr=At(Ur/Zr[Pr-Lr-1]%10);else if(jr=$t((Nr+1)/kt),jr>=qr.length)if(Or){for(;qr.length<=jr;qr.push(0));Ur=Kr=0,Pr=1,Nr%=kt,Lr=Nr-kt+1}else break e;else{for(Ur=Wr=qr[jr],Pr=1;Wr>=10;Wr/=10,Pr++);Nr%=kt,Lr=Nr-kt+Pr,Kr=Lr<0?0:At(Ur/Zr[Pr-Lr-1]%10)}if(Or=Or||Sr<0||qr[jr+1]!=null||(Lr<0?Ur:Ur%Zr[Pr-Lr-1]),Or=Br<4?(Kr||Or)&&(Br==0||Br==(wr.s<0?3:2)):Kr>5||Kr==5&&(Br==4||Or||Br==6&&(Nr>0?Lr>0?Ur/Zr[Pr-Lr]:0:qr[jr-1])%10&1||Br==(wr.s<0?8:7)),Sr<1||!qr[0])return qr.length=0,Or?(Sr-=wr.e+1,qr[0]=Zr[(kt-Sr%kt)%kt],wr.e=-Sr||0):qr[0]=wr.e=0,wr;if(Nr==0?(qr.length=jr,Wr=1,jr--):(qr.length=jr+1,Wr=Zr[kt-Nr],qr[jr]=Lr>0?At(Ur/Zr[Pr-Lr]%Zr[Lr])*Wr:0),Or)for(;;)if(jr==0){for(Nr=1,Lr=qr[0];Lr>=10;Lr/=10,Nr++);for(Lr=qr[0]+=Wr,Wr=1;Lr>=10;Lr/=10,Wr++);Nr!=Wr&&(wr.e++,qr[0]==Ft&&(qr[0]=1));break}else{if(qr[jr]+=Wr,qr[jr]!=Ft)break;qr[jr--]=0,Wr=1}for(Nr=qr.length;qr[--Nr]===0;qr.pop());}wr.e>er?wr.c=wr.e=null:wr.e<Yt&&(wr.c=[wr.e=0])}return wr}function Rr(wr){var Sr,Br=wr.e;return Br===null?wr.toString():(Sr=Xt(wr.c),Sr=Br<=Wt||Br>=Gt?cr(Sr,Br):Er(Sr,Br,"0"),wr.s<0?"-"+Sr:Sr)}return xr.absoluteValue=xr.abs=function(){var wr=new $r(this);return wr.s<0&&(wr.s=1),wr},xr.comparedTo=function(wr,Sr){return Qt(this,new $r(wr,Sr))},xr.decimalPlaces=xr.dp=function(wr,Sr){var Br,Or,Pr,Nr=this;if(wr!=null)return Zt(wr,0,zt),Sr==null?Sr=Ht:Zt(Sr,0,8),Fr(new $r(Nr),wr+Nr.e+1,Sr);if(!(Br=Nr.c))return null;if(Or=((Pr=Br.length-1)-Kt(this.e/kt))*kt,Pr=Br[Pr])for(;Pr%10==0;Pr/=10,Or--);return Or<0&&(Or=0),Or},xr.dividedBy=xr.div=function(wr,Sr){return gr(this,new $r(wr,Sr),Lt,Ht)},xr.dividedToIntegerBy=xr.idiv=function(wr,Sr){return gr(this,new $r(wr,Sr),0,1)},xr.exponentiatedBy=xr.pow=function(wr,Sr){var Br,Or,Pr,Nr,Lr,Wr,Ur,jr,Kr,qr=this;if(wr=new $r(wr),wr.c&&!wr.isInteger())throw Error(Bt+"Exponent not an integer: "+Rr(wr));if(Sr!=null&&(Sr=new $r(Sr)),Wr=wr.e>14,!qr.c||!qr.c[0]||qr.c[0]==1&&!qr.e&&qr.c.length==1||!wr.c||!wr.c[0])return Kr=new $r(Math.pow(+Rr(qr),Wr?wr.s*(2-dr(wr)):+Rr(wr))),Sr?Kr.mod(Sr):Kr;if(Ur=wr.s<0,Sr){if(Sr.c?!Sr.c[0]:!Sr.s)return new $r(NaN);Or=!Ur&&qr.isInteger()&&Sr.isInteger(),Or&&(qr=qr.mod(Sr))}else{if(wr.e>9&&(qr.e>0||qr.e<-1||(qr.e==0?qr.c[0]>1||Wr&&qr.c[1]>=24e7:qr.c[0]<8e13||Wr&&qr.c[0]<=9999975e7)))return Nr=qr.s<0&&dr(wr)?-0:0,qr.e>-1&&(Nr=1/Nr),new $r(Ur?1/Nr:Nr);Ut&&(Nr=$t(Ut/kt+2))}for(Wr?(Br=new $r(.5),Ur&&(wr.s=1),jr=dr(wr)):(Pr=Math.abs(+Rr(wr)),jr=Pr%2),Kr=new $r(rr);;){if(jr){if(Kr=Kr.times(qr),!Kr.c)break;Nr?Kr.c.length>Nr&&(Kr.c.length=Nr):Or&&(Kr=Kr.mod(Sr))}if(Pr){if(Pr=At(Pr/2),Pr===0)break;jr=Pr%2}else if(wr=wr.times(Br),Fr(wr,wr.e+1,1),wr.e>14)jr=dr(wr);else{if(Pr=+Rr(wr),Pr===0)break;jr=Pr%2}qr=qr.times(qr),Nr?qr.c&&qr.c.length>Nr&&(qr.c.length=Nr):Or&&(qr=qr.mod(Sr))}return Or?Kr:(Ur&&(Kr=rr.div(Kr)),Sr?Kr.mod(Sr):Nr?Fr(Kr,Ut,Ht,Lr):Kr)},xr.integerValue=function(wr){var Sr=new $r(this);return wr==null?wr=Ht:Zt(wr,0,8),Fr(Sr,Sr.e+1,wr)},xr.isEqualTo=xr.eq=function(wr,Sr){return Qt(this,new $r(wr,Sr))===0},xr.isFinite=function(){return!!this.c},xr.isGreaterThan=xr.gt=function(wr,Sr){return Qt(this,new $r(wr,Sr))>0},xr.isGreaterThanOrEqualTo=xr.gte=function(wr,Sr){return(Sr=Qt(this,new $r(wr,Sr)))===1||Sr===0},xr.isInteger=function(){return!!this.c&&Kt(this.e/kt)>this.c.length-2},xr.isLessThan=xr.lt=function(wr,Sr){return Qt(this,new $r(wr,Sr))<0},xr.isLessThanOrEqualTo=xr.lte=function(wr,Sr){return(Sr=Qt(this,new $r(wr,Sr)))===-1||Sr===0},xr.isNaN=function(){return!this.s},xr.isNegative=function(){return this.s<0},xr.isPositive=function(){return this.s>0},xr.isZero=function(){return!!this.c&&this.c[0]==0},xr.minus=function(wr,Sr){var Br,Or,Pr,Nr,Lr=this,Wr=Lr.s;if(wr=new $r(wr,Sr),Sr=wr.s,!Wr||!Sr)return new $r(NaN);if(Wr!=Sr)return wr.s=-Sr,Lr.plus(wr);var Ur=Lr.e/kt,jr=wr.e/kt,Kr=Lr.c,qr=wr.c;if(!Ur||!jr){if(!Kr||!qr)return Kr?(wr.s=-Sr,wr):new $r(qr?Lr:NaN);if(!Kr[0]||!qr[0])return qr[0]?(wr.s=-Sr,wr):new $r(Kr[0]?Lr:Ht==3?-0:0)}if(Ur=Kt(Ur),jr=Kt(jr),Kr=Kr.slice(),Wr=Ur-jr){for((Nr=Wr<0)?(Wr=-Wr,Pr=Kr):(jr=Ur,Pr=qr),Pr.reverse(),Sr=Wr;Sr--;Pr.push(0));Pr.reverse()}else for(Or=(Nr=(Wr=Kr.length)<(Sr=qr.length))?Wr:Sr,Wr=Sr=0;Sr<Or;Sr++)if(Kr[Sr]!=qr[Sr]){Nr=Kr[Sr]<qr[Sr];break}if(Nr&&(Pr=Kr,Kr=qr,qr=Pr,wr.s=-wr.s),Sr=(Or=qr.length)-(Br=Kr.length),Sr>0)for(;Sr--;Kr[Br++]=0);for(Sr=Ft-1;Or>Wr;){if(Kr[--Or]<qr[Or]){for(Br=Or;Br&&!Kr[--Br];Kr[Br]=Sr);--Kr[Br],Kr[Or]+=Ft}Kr[Or]-=qr[Or]}for(;Kr[0]==0;Kr.splice(0,1),--jr);return Kr[0]?Ar(wr,Kr,jr):(wr.s=Ht==3?-1:1,wr.c=[wr.e=0],wr)},xr.modulo=xr.mod=function(wr,Sr){var Br,Or,Pr=this;return wr=new $r(wr,Sr),!Pr.c||!wr.s||wr.c&&!wr.c[0]?new $r(NaN):!wr.c||Pr.c&&!Pr.c[0]?new $r(Pr):(Jt==9?(Or=wr.s,wr.s=1,Br=gr(Pr,wr,0,3),wr.s=Or,Br.s*=Or):Br=gr(Pr,wr,0,Jt),wr=Pr.minus(Br.times(wr)),!wr.c[0]&&Jt==1&&(wr.s=Pr.s),wr)},xr.multipliedBy=xr.times=function(wr,Sr){var Br,Or,Pr,Nr,Lr,Wr,Ur,jr,Kr,qr,Zr,dn,Xr,un,Yr,Gr=this,Jr=Gr.c,wn=(wr=new $r(wr,Sr)).c;if(!Jr||!wn||!Jr[0]||!wn[0])return!Gr.s||!wr.s||Jr&&!Jr[0]&&!wn||wn&&!wn[0]&&!Jr?wr.c=wr.e=wr.s=null:(wr.s*=Gr.s,!Jr||!wn?wr.c=wr.e=null:(wr.c=[0],wr.e=0)),wr;for(Or=Kt(Gr.e/kt)+Kt(wr.e/kt),wr.s*=Gr.s,Ur=Jr.length,qr=wn.length,Ur<qr&&(Xr=Jr,Jr=wn,wn=Xr,Pr=Ur,Ur=qr,qr=Pr),Pr=Ur+qr,Xr=[];Pr--;Xr.push(0));for(un=Ft,Yr=jt,Pr=qr;--Pr>=0;){for(Br=0,Zr=wn[Pr]%Yr,dn=wn[Pr]/Yr|0,Lr=Ur,Nr=Pr+Lr;Nr>Pr;)jr=Jr[--Lr]%Yr,Kr=Jr[Lr]/Yr|0,Wr=dn*jr+Kr*Zr,jr=Zr*jr+Wr%Yr*Yr+Xr[Nr]+Br,Br=(jr/un|0)+(Wr/Yr|0)+dn*Kr,Xr[Nr--]=jr%un;Xr[Nr]=Br}return Br?++Or:Xr.splice(0,1),Ar(wr,Xr,Or)},xr.negated=function(){var wr=new $r(this);return wr.s=-wr.s||null,wr},xr.plus=function(wr,Sr){var Br,Or=this,Pr=Or.s;if(wr=new $r(wr,Sr),Sr=wr.s,!Pr||!Sr)return new $r(NaN);if(Pr!=Sr)return wr.s=-Sr,Or.minus(wr);var Nr=Or.e/kt,Lr=wr.e/kt,Wr=Or.c,Ur=wr.c;if(!Nr||!Lr){if(!Wr||!Ur)return new $r(Pr/0);if(!Wr[0]||!Ur[0])return Ur[0]?wr:new $r(Wr[0]?Or:Pr*0)}if(Nr=Kt(Nr),Lr=Kt(Lr),Wr=Wr.slice(),Pr=Nr-Lr){for(Pr>0?(Lr=Nr,Br=Ur):(Pr=-Pr,Br=Wr),Br.reverse();Pr--;Br.push(0));Br.reverse()}for(Pr=Wr.length,Sr=Ur.length,Pr-Sr<0&&(Br=Ur,Ur=Wr,Wr=Br,Sr=Pr),Pr=0;Sr;)Pr=(Wr[--Sr]=Wr[Sr]+Ur[Sr]+Pr)/Ft|0,Wr[Sr]=Ft===Wr[Sr]?0:Wr[Sr]%Ft;return Pr&&(Wr=[Pr].concat(Wr),++Lr),Ar(wr,Wr,Lr)},xr.precision=xr.sd=function(wr,Sr){var Br,Or,Pr,Nr=this;if(wr!=null&&wr!==!!wr)return Zt(wr,1,zt),Sr==null?Sr=Ht:Zt(Sr,0,8),Fr(new $r(Nr),wr,Sr);if(!(Br=Nr.c))return null;if(Pr=Br.length-1,Or=Pr*kt+1,Pr=Br[Pr]){for(;Pr%10==0;Pr/=10,Or--);for(Pr=Br[0];Pr>=10;Pr/=10,Or++);}return wr&&Nr.e+1>Or&&(Or=Nr.e+1),Or},xr.shiftedBy=function(wr){return Zt(wr,-Mt,Mt),this.times("1e"+wr)},xr.squareRoot=xr.sqrt=function(){var wr,Sr,Br,Or,Pr,Nr=this,Lr=Nr.c,Wr=Nr.s,Ur=Nr.e,jr=Lt+4,Kr=new $r("0.5");if(Wr!==1||!Lr||!Lr[0])return new $r(!Wr||Wr<0&&(!Lr||Lr[0])?NaN:Lr?Nr:1/0);if(Wr=Math.sqrt(+Rr(Nr)),Wr==0||Wr==1/0?(Sr=Xt(Lr),(Sr.length+Ur)%2==0&&(Sr+="0"),Wr=Math.sqrt(+Sr),Ur=Kt((Ur+1)/2)-(Ur<0||Ur%2),Wr==1/0?Sr="5e"+Ur:(Sr=Wr.toExponential(),Sr=Sr.slice(0,Sr.indexOf("e")+1)+Ur),Br=new $r(Sr)):Br=new $r(Wr+""),Br.c[0]){for(Ur=Br.e,Wr=Ur+jr,Wr<3&&(Wr=0);;)if(Pr=Br,Br=Kr.times(Pr.plus(gr(Nr,Pr,jr,1))),Xt(Pr.c).slice(0,Wr)===(Sr=Xt(Br.c)).slice(0,Wr))if(Br.e<Ur&&--Wr,Sr=Sr.slice(Wr-3,Wr+1),Sr=="9999"||!Or&&Sr=="4999"){if(!Or&&(Fr(Pr,Pr.e+Lt+2,0),Pr.times(Pr).eq(Nr))){Br=Pr;break}jr+=4,Wr+=4,Or=1}else{(!+Sr||!+Sr.slice(1)&&Sr.charAt(0)=="5")&&(Fr(Br,Br.e+Lt+2,1),wr=!Br.times(Br).eq(Nr));break}}return Fr(Br,Br.e+Lt+1,Ht,wr)},xr.toExponential=function(wr,Sr){return wr!=null&&(Zt(wr,0,zt),wr++),Tr(this,wr,Sr,1)},xr.toFixed=function(wr,Sr){return wr!=null&&(Zt(wr,0,zt),wr=wr+this.e+1),Tr(this,wr,Sr)},xr.toFormat=function(wr,Sr,Br){var Or,Pr=this;if(Br==null)wr!=null&&Sr&&typeof Sr=="object"?(Br=Sr,Sr=null):wr&&typeof wr=="object"?(Br=wr,wr=Sr=null):Br=ir;else if(typeof Br!="object")throw Error(Bt+"Argument not an object: "+Br);if(Or=Pr.toFixed(wr,Sr),Pr.c){var Nr,Lr=Or.split("."),Wr=+Br.groupSize,Ur=+Br.secondaryGroupSize,jr=Br.groupSeparator||"",Kr=Lr[0],qr=Lr[1],Zr=Pr.s<0,dn=Zr?Kr.slice(1):Kr,Xr=dn.length;if(Ur&&(Nr=Wr,Wr=Ur,Ur=Nr,Xr-=Nr),Wr>0&&Xr>0){for(Nr=Xr%Wr||Wr,Kr=dn.substr(0,Nr);Nr<Xr;Nr+=Wr)Kr+=jr+dn.substr(Nr,Wr);Ur>0&&(Kr+=jr+dn.slice(Nr)),Zr&&(Kr="-"+Kr)}Or=qr?Kr+(Br.decimalSeparator||"")+((Ur=+Br.fractionGroupSize)?qr.replace(new RegExp("\\d{"+Ur+"}\\B","g"),"$&"+(Br.fractionGroupSeparator||"")):qr):Kr}return(Br.prefix||"")+Or+(Br.suffix||"")},xr.toFraction=function(wr){var Sr,Br,Or,Pr,Nr,Lr,Wr,Ur,jr,Kr,qr,Zr,dn=this,Xr=dn.c;if(wr!=null&&(Wr=new $r(wr),!Wr.isInteger()&&(Wr.c||Wr.s!==1)||Wr.lt(rr)))throw Error(Bt+"Argument "+(Wr.isInteger()?"out of range: ":"not an integer: ")+Rr(Wr));if(!Xr)return new $r(dn);for(Sr=new $r(rr),jr=Br=new $r(rr),Or=Ur=new $r(rr),Zr=Xt(Xr),Nr=Sr.e=Zr.length-dn.e-1,Sr.c[0]=Nt[(Lr=Nr%kt)<0?kt+Lr:Lr],wr=!wr||Wr.comparedTo(Sr)>0?Nr>0?Sr:jr:Wr,Lr=er,er=1/0,Wr=new $r(Zr),Ur.c[0]=0;Kr=gr(Wr,Sr,0,1),Pr=Br.plus(Kr.times(Or)),Pr.comparedTo(wr)!=1;)Br=Or,Or=Pr,jr=Ur.plus(Kr.times(Pr=jr)),Ur=Pr,Sr=Wr.minus(Kr.times(Pr=Sr)),Wr=Pr;return Pr=gr(wr.minus(Br),Or,0,1),Ur=Ur.plus(Pr.times(jr)),Br=Br.plus(Pr.times(Or)),Ur.s=jr.s=dn.s,Nr=Nr*2,qr=gr(jr,Or,Nr,Ht).minus(dn).abs().comparedTo(gr(Ur,Br,Nr,Ht).minus(dn).abs())<1?[jr,Or]:[Ur,Br],er=Lr,qr},xr.toNumber=function(){return+Rr(this)},xr.toPrecision=function(wr,Sr){return wr!=null&&Zt(wr,1,zt),Tr(this,wr,Sr,2)},xr.toString=function(wr){var Sr,Br=this,Or=Br.s,Pr=Br.e;return Pr===null?Or?(Sr="Infinity",Or<0&&(Sr="-"+Sr)):Sr="NaN":(wr==null?Sr=Pr<=Wt||Pr>=Gt?cr(Xt(Br.c),Pr):Er(Xt(Br.c),Pr,"0"):wr===10&&_r?(Br=Fr(new $r(Br),Lt+Pr+1,Ht),Sr=Er(Xt(Br.c),Br.e,"0")):(Zt(wr,2,Cr.length,"Base"),Sr=vr(Er(Xt(Br.c),Pr,"0"),10,wr,Or,!0)),Or<0&&Br.c[0]&&(Sr="-"+Sr)),Sr},xr.valueOf=xr.toJSON=function(){return Rr(this)},xr._isBigNumber=!0,pr!=null&&$r.set(pr),$r}function Kt(pr){var gr=pr|0;return pr>0||pr===gr?gr:gr-1}function Xt(pr){for(var gr,vr,yr=1,xr=pr.length,rr=pr[0]+"";yr<xr;){for(gr=pr[yr++]+"",vr=kt-gr.length;vr--;gr="0"+gr);rr+=gr}for(xr=rr.length;rr.charCodeAt(--xr)===48;);return rr.slice(0,xr+1||1)}function Qt(pr,gr){var vr,yr,xr=pr.c,rr=gr.c,Lt=pr.s,Ht=gr.s,Wt=pr.e,Gt=gr.e;if(!Lt||!Ht)return null;if(vr=xr&&!xr[0],yr=rr&&!rr[0],vr||yr)return vr?yr?0:-Ht:Lt;if(Lt!=Ht)return Lt;if(vr=Lt<0,yr=Wt==Gt,!xr||!rr)return yr?0:!xr^vr?1:-1;if(!yr)return Wt>Gt^vr?1:-1;for(Ht=(Wt=xr.length)<(Gt=rr.length)?Wt:Gt,Lt=0;Lt<Ht;Lt++)if(xr[Lt]!=rr[Lt])return xr[Lt]>rr[Lt]^vr?1:-1;return Wt==Gt?0:Wt>Gt^vr?1:-1}function Zt(pr,gr,vr,yr){if(pr<gr||pr>vr||pr!==At(pr))throw Error(Bt+(yr||"Argument")+(typeof pr=="number"?pr<gr||pr>vr?" out of range: ":" not an integer: ":" not a primitive number: ")+String(pr))}function dr(pr){var gr=pr.c.length-1;return Kt(pr.e/kt)==gr&&pr.c[gr]%2!=0}function cr(pr,gr){return(pr.length>1?pr.charAt(0)+"."+pr.slice(1):pr)+(gr<0?"e":"e+")+gr}function Er(pr,gr,vr){var yr,xr;if(gr<0){for(xr=vr+".";++gr;xr+=vr);pr=xr+pr}else if(yr=pr.length,++gr>yr){for(xr=vr,gr-=yr;--gr;xr+=vr);pr+=xr}else gr<yr&&(pr=pr.slice(0,gr)+"."+pr.slice(gr));return pr}yt=Vt(),yt.default=yt.BigNumber=yt,ht.exports?ht.exports=yt:(Et||(Et=typeof self<"u"&&self?self:window),Et.BigNumber=yt)})(commonjsGlobal)})(bignumber);var bignumberExports=bignumber.exports,__importDefault$7=commonjsGlobal&&commonjsGlobal.__importDefault||function(ht){return ht&&ht.__esModule?ht:{default:ht}};Object.defineProperty(expandRoundMode$1,"__esModule",{value:!0});expandRoundMode$1.expandRoundMode=void 0;const bignumber_js_1$5=__importDefault$7(bignumberExports);var RoundingModeMap;(function(ht){ht[ht.up=bignumber_js_1$5.default.ROUND_UP]="up",ht[ht.down=bignumber_js_1$5.default.ROUND_DOWN]="down",ht[ht.truncate=bignumber_js_1$5.default.ROUND_DOWN]="truncate",ht[ht.halfUp=bignumber_js_1$5.default.ROUND_HALF_UP]="halfUp",ht[ht.default=bignumber_js_1$5.default.ROUND_HALF_UP]="default",ht[ht.halfDown=bignumber_js_1$5.default.ROUND_HALF_DOWN]="halfDown",ht[ht.halfEven=bignumber_js_1$5.default.ROUND_HALF_EVEN]="halfEven",ht[ht.banker=bignumber_js_1$5.default.ROUND_HALF_EVEN]="banker",ht[ht.ceiling=bignumber_js_1$5.default.ROUND_CEIL]="ceiling",ht[ht.ceil=bignumber_js_1$5.default.ROUND_CEIL]="ceil",ht[ht.floor=bignumber_js_1$5.default.ROUND_FLOOR]="floor"})(RoundingModeMap||(RoundingModeMap={}));function expandRoundMode(ht){var Et;return(Et=RoundingModeMap[ht])!==null&&Et!==void 0?Et:RoundingModeMap.default}expandRoundMode$1.expandRoundMode=expandRoundMode;var formatNumber$1={},MAX_SAFE_INTEGER$3=9007199254740991,nativeFloor=Math.floor;function baseRepeat$1(ht,Et){var yt="";if(!ht||Et<1||Et>MAX_SAFE_INTEGER$3)return yt;do Et%2&&(yt+=ht),Et=nativeFloor(Et/2),Et&&(ht+=ht);while(Et);return yt}var _baseRepeat=baseRepeat$1,reWhitespace$1=/\s/;function trimmedEndIndex$2(ht){for(var Et=ht.length;Et--&&reWhitespace$1.test(ht.charAt(Et)););return Et}var _trimmedEndIndex=trimmedEndIndex$2,trimmedEndIndex$1=_trimmedEndIndex,reTrimStart$1=/^\s+/;function baseTrim$2(ht){return ht&&ht.slice(0,trimmedEndIndex$1(ht)+1).replace(reTrimStart$1,"")}var _baseTrim=baseTrim$2,baseTrim$1=_baseTrim,isObject$j=isObject_1,isSymbol$8=isSymbol_1,NAN$1=NaN,reIsBadHex$1=/^[-+]0x[0-9a-f]+$/i,reIsBinary$1=/^0b[01]+$/i,reIsOctal$1=/^0o[0-7]+$/i,freeParseInt$1=parseInt;function toNumber$3(ht){if(typeof ht=="number")return ht;if(isSymbol$8(ht))return NAN$1;if(isObject$j(ht)){var Et=typeof ht.valueOf=="function"?ht.valueOf():ht;ht=isObject$j(Et)?Et+"":Et}if(typeof ht!="string")return ht===0?ht:+ht;ht=baseTrim$1(ht);var yt=reIsBinary$1.test(ht);return yt||reIsOctal$1.test(ht)?freeParseInt$1(ht.slice(2),yt?2:8):reIsBadHex$1.test(ht)?NAN$1:+ht}var toNumber_1=toNumber$3,toNumber$2=toNumber_1,INFINITY$3=1/0,MAX_INTEGER=17976931348623157e292;function toFinite$2(ht){if(!ht)return ht===0?ht:0;if(ht=toNumber$2(ht),ht===INFINITY$3||ht===-INFINITY$3){var Et=ht<0?-1:1;return Et*MAX_INTEGER}return ht===ht?ht:0}var toFinite_1=toFinite$2,toFinite$1=toFinite_1;function toInteger$1(ht){var Et=toFinite$1(ht),yt=Et%1;return Et===Et?yt?Et-yt:Et:0}var toInteger_1=toInteger$1,baseRepeat=_baseRepeat,isIterateeCall$2=_isIterateeCall,toInteger=toInteger_1,toString$e=toString_1;function repeat$1(ht,Et,yt){return(yt?isIterateeCall$2(ht,Et,yt):Et===void 0)?Et=1:Et=toInteger(Et),baseRepeat(toString$e(ht),Et)}var repeat_1$1=repeat$1,roundNumber$1={},__importDefault$6=commonjsGlobal&&commonjsGlobal.__importDefault||function(ht){return ht&&ht.__esModule?ht:{default:ht}};Object.defineProperty(roundNumber$1,"__esModule",{value:!0});roundNumber$1.roundNumber=void 0;const bignumber_js_1$4=__importDefault$6(bignumberExports),expandRoundMode_1$1=expandRoundMode$1;function digitCount(ht){return ht.isZero()?1:Math.floor(Math.log10(ht.abs().toNumber())+1)}function getAbsolutePrecision(ht,{precision:Et,significant:yt}){return yt&&Et!==null&&Et>0?Et-digitCount(ht):Et}function roundNumber(ht,Et){const yt=getAbsolutePrecision(ht,Et);if(yt===null)return ht.toString();const Ct=(0,expandRoundMode_1$1.expandRoundMode)(Et.roundMode);if(yt>=0)return ht.toFixed(yt,Ct);const $t=Math.pow(10,Math.abs(yt));return ht=new bignumber_js_1$4.default(ht.div($t).toFixed(0,Ct)).times($t),ht.toString()}roundNumber$1.roundNumber=roundNumber;var __importDefault$5=commonjsGlobal&&commonjsGlobal.__importDefault||function(ht){return ht&&ht.__esModule?ht:{default:ht}};Object.defineProperty(formatNumber$1,"__esModule",{value:!0});formatNumber$1.formatNumber=void 0;const bignumber_js_1$3=__importDefault$5(bignumberExports),repeat_1=__importDefault$5(repeat_1$1),roundNumber_1$2=roundNumber$1;function replaceInFormat(ht,{formattedNumber:Et,unit:yt}){return ht.replace("%n",Et).replace("%u",yt)}function computeSignificand({significand:ht,whole:Et,precision:yt}){if(Et==="0"||yt===null)return ht;const Ct=Math.max(0,yt-Et.length);return(ht??"").substr(0,Ct)}function formatNumber(ht,Et){var yt,Ct,$t;const At=new bignumber_js_1$3.default(ht);if(Et.raise&&!At.isFinite())throw new Error(`"${ht}" is not a valid numeric value`);const Bt=(0,roundNumber_1$2.roundNumber)(At,Et),Dt=new bignumber_js_1$3.default(Bt),Ft=Dt.lt(0),kt=Dt.isZero();let[Mt,Nt]=Bt.split(".");const jt=[];let zt;const Vt=(yt=Et.format)!==null&&yt!==void 0?yt:"%n",Kt=(Ct=Et.negativeFormat)!==null&&Ct!==void 0?Ct:`-${Vt}`,Xt=Ft&&!kt?Kt:Vt;for(Mt=Mt.replace("-","");Mt.length>0;)jt.unshift(Mt.substr(Math.max(0,Mt.length-3),3)),Mt=Mt.substr(0,Mt.length-3);return Mt=jt.join(""),zt=jt.join(Et.delimiter),Et.significant?Nt=computeSignificand({whole:Mt,significand:Nt,precision:Et.precision}):Nt=Nt??(0,repeat_1.default)("0",($t=Et.precision)!==null&&$t!==void 0?$t:0),Et.stripInsignificantZeros&&Nt&&(Nt=Nt.replace(/0+$/,"")),At.isNaN()&&(zt=ht.toString()),Nt&&At.isFinite()&&(zt+=(Et.separator||".")+Nt),replaceInFormat(Xt,{formattedNumber:zt,unit:Et.unit})}formatNumber$1.formatNumber=formatNumber;var getFullScope$1={};Object.defineProperty(getFullScope$1,"__esModule",{value:!0});getFullScope$1.getFullScope=void 0;function getFullScope(ht,Et,yt){let Ct="";return(Et instanceof String||typeof Et=="string")&&(Ct=Et),Et instanceof Array&&(Ct=Et.join(ht.defaultSeparator)),yt.scope&&(Ct=[yt.scope,Ct].join(ht.defaultSeparator)),Ct}getFullScope$1.getFullScope=getFullScope;var inferType$1={};Object.defineProperty(inferType$1,"__esModule",{value:!0});inferType$1.inferType=void 0;function inferType(ht){var Et,yt;if(ht===null)return"null";const Ct=typeof ht;return Ct!=="object"?Ct:((yt=(Et=ht==null?void 0:ht.constructor)===null||Et===void 0?void 0:Et.name)===null||yt===void 0?void 0:yt.toLowerCase())||"object"}inferType$1.inferType=inferType;var interpolate$1={};Object.defineProperty(interpolate$1,"__esModule",{value:!0});interpolate$1.interpolate=void 0;const isSet_1$2=isSet$2;function interpolate(ht,Et,yt){yt=Object.keys(yt).reduce(($t,At)=>($t[ht.transformKey(At)]=yt[At],$t),{});const Ct=Et.match(ht.placeholder);if(!Ct)return Et;for(;Ct.length;){let $t;const At=Ct.shift(),Bt=At.replace(ht.placeholder,"$1");(0,isSet_1$2.isSet)(yt[Bt])?$t=yt[Bt].toString().replace(/\$/gm,"_#$#_"):Bt in yt?$t=ht.nullPlaceholder(ht,At,Et,yt):$t=ht.missingPlaceholder(ht,At,Et,yt);const Dt=new RegExp(At.replace(/\{/gm,"\\{").replace(/\}/gm,"\\}"));Et=Et.replace(Dt,$t)}return Et.replace(/_#\$#_/g,"$")}interpolate$1.interpolate=interpolate;var lookup$1={};Object.defineProperty(lookup$1,"__esModule",{value:!0});lookup$1.lookup=void 0;const isSet_1$1=isSet$2,getFullScope_1$1=getFullScope$1,inferType_1$1=inferType$1;function lookup(ht,Et,yt={}){yt=Object.assign({},yt);const Ct="locale"in yt?yt.locale:ht.locale,$t=(0,inferType_1$1.inferType)(Ct),At=ht.locales.get($t==="string"?Ct:typeof Ct).slice(),Bt=(0,getFullScope_1$1.getFullScope)(ht,Et,yt).split(ht.defaultSeparator).map(Ft=>ht.transformKey(Ft)),Dt=At.map(Ft=>Bt.reduce((kt,Mt)=>kt&&kt[Mt],ht.translations[Ft]));return Dt.push(yt.defaultValue),Dt.find(Ft=>(0,isSet_1$1.isSet)(Ft))}lookup$1.lookup=lookup;var numberToDelimited$1={},__importDefault$4=commonjsGlobal&&commonjsGlobal.__importDefault||function(ht){return ht&&ht.__esModule?ht:{default:ht}};Object.defineProperty(numberToDelimited$1,"__esModule",{value:!0});numberToDelimited$1.numberToDelimited=void 0;const bignumber_js_1$2=__importDefault$4(bignumberExports);function numberToDelimited(ht,Et){const yt=new bignumber_js_1$2.default(ht);if(!yt.isFinite())return ht.toString();if(!Et.delimiterPattern.global)throw new Error(`options.delimiterPattern must be a global regular expression; received ${Et.delimiterPattern}`);let[Ct,$t]=yt.toString().split(".");return Ct=Ct.replace(Et.delimiterPattern,At=>`${At}${Et.delimiter}`),[Ct,$t].filter(Boolean).join(Et.separator)}numberToDelimited$1.numberToDelimited=numberToDelimited;var numberToHuman$1={};function arrayPush$3(ht,Et){for(var yt=-1,Ct=Et.length,$t=ht.length;++yt<Ct;)ht[$t+yt]=Et[yt];return ht}var _arrayPush=arrayPush$3,Symbol$7=_Symbol,isArguments$1=isArguments_1,isArray$c=isArray_1,spreadableSymbol$1=Symbol$7?Symbol$7.isConcatSpreadable:void 0;function isFlattenable$2(ht){return isArray$c(ht)||isArguments$1(ht)||!!(spreadableSymbol$1&&ht&&ht[spreadableSymbol$1])}var _isFlattenable=isFlattenable$2,arrayPush$2=_arrayPush,isFlattenable$1=_isFlattenable;function baseFlatten$2(ht,Et,yt,Ct,$t){var At=-1,Bt=ht.length;for(yt||(yt=isFlattenable$1),$t||($t=[]);++At<Bt;){var Dt=ht[At];Et>0&&yt(Dt)?Et>1?baseFlatten$2(Dt,Et-1,yt,Ct,$t):arrayPush$2($t,Dt):Ct||($t[$t.length]=Dt)}return $t}var _baseFlatten=baseFlatten$2;function arraySome$1(ht,Et){for(var yt=-1,Ct=ht==null?0:ht.length;++yt<Ct;)if(Et(ht[yt],yt,ht))return!0;return!1}var _arraySome=arraySome$1,SetCache$1=_SetCache,arraySome=_arraySome,cacheHas$1=_cacheHas,COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays$2(ht,Et,yt,Ct,$t,At){var Bt=yt&COMPARE_PARTIAL_FLAG$5,Dt=ht.length,Ft=Et.length;if(Dt!=Ft&&!(Bt&&Ft>Dt))return!1;var kt=At.get(ht),Mt=At.get(Et);if(kt&&Mt)return kt==Et&&Mt==ht;var Nt=-1,jt=!0,zt=yt&COMPARE_UNORDERED_FLAG$3?new SetCache$1:void 0;for(At.set(ht,Et),At.set(Et,ht);++Nt<Dt;){var Vt=ht[Nt],Kt=Et[Nt];if(Ct)var Xt=Bt?Ct(Kt,Vt,Nt,Et,ht,At):Ct(Vt,Kt,Nt,ht,Et,At);if(Xt!==void 0){if(Xt)continue;jt=!1;break}if(zt){if(!arraySome(Et,function(Qt,Zt){if(!cacheHas$1(zt,Zt)&&(Vt===Qt||$t(Vt,Qt,yt,Ct,At)))return zt.push(Zt)})){jt=!1;break}}else if(!(Vt===Kt||$t(Vt,Kt,yt,Ct,At))){jt=!1;break}}return At.delete(ht),At.delete(Et),jt}var _equalArrays=equalArrays$2;function mapToArray$1(ht){var Et=-1,yt=Array(ht.size);return ht.forEach(function(Ct,$t){yt[++Et]=[$t,Ct]}),yt}var _mapToArray=mapToArray$1,Symbol$6=_Symbol,Uint8Array$2=_Uint8Array,eq$3=eq_1,equalArrays$1=_equalArrays,mapToArray=_mapToArray,setToArray=_setToArray,COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2,boolTag$3="[object Boolean]",dateTag$3="[object Date]",errorTag$2="[object Error]",mapTag$6="[object Map]",numberTag$3="[object Number]",regexpTag$3="[object RegExp]",setTag$6="[object Set]",stringTag$3="[object String]",symbolTag$4="[object Symbol]",arrayBufferTag$3="[object ArrayBuffer]",dataViewTag$5="[object DataView]",symbolProto$3=Symbol$6?Symbol$6.prototype:void 0,symbolValueOf$1=symbolProto$3?symbolProto$3.valueOf:void 0;function equalByTag$1(ht,Et,yt,Ct,$t,At,Bt){switch(yt){case dataViewTag$5:if(ht.byteLength!=Et.byteLength||ht.byteOffset!=Et.byteOffset)return!1;ht=ht.buffer,Et=Et.buffer;case arrayBufferTag$3:return!(ht.byteLength!=Et.byteLength||!At(new Uint8Array$2(ht),new Uint8Array$2(Et)));case boolTag$3:case dateTag$3:case numberTag$3:return eq$3(+ht,+Et);case errorTag$2:return ht.name==Et.name&&ht.message==Et.message;case regexpTag$3:case stringTag$3:return ht==Et+"";case mapTag$6:var Dt=mapToArray;case setTag$6:var Ft=Ct&COMPARE_PARTIAL_FLAG$4;if(Dt||(Dt=setToArray),ht.size!=Et.size&&!Ft)return!1;var kt=Bt.get(ht);if(kt)return kt==Et;Ct|=COMPARE_UNORDERED_FLAG$2,Bt.set(ht,Et);var Mt=equalArrays$1(Dt(ht),Dt(Et),Ct,$t,At,Bt);return Bt.delete(ht),Mt;case symbolTag$4:if(symbolValueOf$1)return symbolValueOf$1.call(ht)==symbolValueOf$1.call(Et)}return!1}var _equalByTag=equalByTag$1,arrayPush$1=_arrayPush,isArray$b=isArray_1;function baseGetAllKeys$2(ht,Et,yt){var Ct=Et(ht);return isArray$b(ht)?Ct:arrayPush$1(Ct,yt(ht))}var _baseGetAllKeys=baseGetAllKeys$2;function arrayFilter$2(ht,Et){for(var yt=-1,Ct=ht==null?0:ht.length,$t=0,At=[];++yt<Ct;){var Bt=ht[yt];Et(Bt,yt,ht)&&(At[$t++]=Bt)}return At}var _arrayFilter=arrayFilter$2;function stubArray$2(){return[]}var stubArray_1=stubArray$2,arrayFilter$1=_arrayFilter,stubArray$1=stubArray_1,objectProto$j=Object.prototype,propertyIsEnumerable$2=objectProto$j.propertyIsEnumerable,nativeGetSymbols$2=Object.getOwnPropertySymbols,getSymbols$2=nativeGetSymbols$2?function(ht){return ht==null?[]:(ht=Object(ht),arrayFilter$1(nativeGetSymbols$2(ht),function(Et){return propertyIsEnumerable$2.call(ht,Et)}))}:stubArray$1,_getSymbols=getSymbols$2,overArg$2=_overArg,nativeKeys$3=overArg$2(Object.keys,Object),_nativeKeys=nativeKeys$3,isPrototype$1=_isPrototype,nativeKeys$2=_nativeKeys,objectProto$i=Object.prototype,hasOwnProperty$h=objectProto$i.hasOwnProperty;function baseKeys$2(ht){if(!isPrototype$1(ht))return nativeKeys$2(ht);var Et=[];for(var yt in Object(ht))hasOwnProperty$h.call(ht,yt)&&yt!="constructor"&&Et.push(yt);return Et}var _baseKeys=baseKeys$2,arrayLikeKeys$1=_arrayLikeKeys,baseKeys$1=_baseKeys,isArrayLike$3=isArrayLike_1;function keys$8(ht){return isArrayLike$3(ht)?arrayLikeKeys$1(ht):baseKeys$1(ht)}var keys_1=keys$8,baseGetAllKeys$1=_baseGetAllKeys,getSymbols$1=_getSymbols,keys$7=keys_1;function getAllKeys$2(ht){return baseGetAllKeys$1(ht,keys$7,getSymbols$1)}var _getAllKeys=getAllKeys$2,getAllKeys$1=_getAllKeys,COMPARE_PARTIAL_FLAG$3=1,objectProto$h=Object.prototype,hasOwnProperty$g=objectProto$h.hasOwnProperty;function equalObjects$1(ht,Et,yt,Ct,$t,At){var Bt=yt&COMPARE_PARTIAL_FLAG$3,Dt=getAllKeys$1(ht),Ft=Dt.length,kt=getAllKeys$1(Et),Mt=kt.length;if(Ft!=Mt&&!Bt)return!1;for(var Nt=Ft;Nt--;){var jt=Dt[Nt];if(!(Bt?jt in Et:hasOwnProperty$g.call(Et,jt)))return!1}var zt=At.get(ht),Vt=At.get(Et);if(zt&&Vt)return zt==Et&&Vt==ht;var Kt=!0;At.set(ht,Et),At.set(Et,ht);for(var Xt=Bt;++Nt<Ft;){jt=Dt[Nt];var Qt=ht[jt],Zt=Et[jt];if(Ct)var dr=Bt?Ct(Zt,Qt,jt,Et,ht,At):Ct(Qt,Zt,jt,ht,Et,At);if(!(dr===void 0?Qt===Zt||$t(Qt,Zt,yt,Ct,At):dr)){Kt=!1;break}Xt||(Xt=jt=="constructor")}if(Kt&&!Xt){var cr=ht.constructor,Er=Et.constructor;cr!=Er&&"constructor"in ht&&"constructor"in Et&&!(typeof cr=="function"&&cr instanceof cr&&typeof Er=="function"&&Er instanceof Er)&&(Kt=!1)}return At.delete(ht),At.delete(Et),Kt}var _equalObjects=equalObjects$1,getNative$4=_getNative,root$6=_root,DataView$3=getNative$4(root$6,"DataView"),_DataView=DataView$3,getNative$3=_getNative,root$5=_root,Promise$3=getNative$3(root$5,"Promise"),_Promise=Promise$3,getNative$2=_getNative,root$4=_root,WeakMap$5=getNative$2(root$4,"WeakMap"),_WeakMap=WeakMap$5,DataView$2=_DataView,Map$3=_Map,Promise$2=_Promise,Set$2=_Set,WeakMap$4=_WeakMap,baseGetTag$2=_baseGetTag,toSource$2=_toSource,mapTag$5="[object Map]",objectTag$6="[object Object]",promiseTag$1="[object Promise]",setTag$5="[object Set]",weakMapTag$3="[object WeakMap]",dataViewTag$4="[object DataView]",dataViewCtorString$1=toSource$2(DataView$2),mapCtorString$1=toSource$2(Map$3),promiseCtorString$1=toSource$2(Promise$2),setCtorString$1=toSource$2(Set$2),weakMapCtorString$1=toSource$2(WeakMap$4),getTag$2=baseGetTag$2;(DataView$2&&getTag$2(new DataView$2(new ArrayBuffer(1)))!=dataViewTag$4||Map$3&&getTag$2(new Map$3)!=mapTag$5||Promise$2&&getTag$2(Promise$2.resolve())!=promiseTag$1||Set$2&&getTag$2(new Set$2)!=setTag$5||WeakMap$4&&getTag$2(new WeakMap$4)!=weakMapTag$3)&&(getTag$2=function(ht){var Et=baseGetTag$2(ht),yt=Et==objectTag$6?ht.constructor:void 0,Ct=yt?toSource$2(yt):"";if(Ct)switch(Ct){case dataViewCtorString$1:return dataViewTag$4;case mapCtorString$1:return mapTag$5;case promiseCtorString$1:return promiseTag$1;case setCtorString$1:return setTag$5;case weakMapCtorString$1:return weakMapTag$3}return Et});var _getTag=getTag$2,Stack$2=_Stack,equalArrays=_equalArrays,equalByTag=_equalByTag,equalObjects=_equalObjects,getTag$1=_getTag,isArray$a=isArray_1,isBuffer$2=isBufferExports,isTypedArray$1=isTypedArray_1,COMPARE_PARTIAL_FLAG$2=1,argsTag$3="[object Arguments]",arrayTag$2="[object Array]",objectTag$5="[object Object]",objectProto$g=Object.prototype,hasOwnProperty$f=objectProto$g.hasOwnProperty;function baseIsEqualDeep$1(ht,Et,yt,Ct,$t,At){var Bt=isArray$a(ht),Dt=isArray$a(Et),Ft=Bt?arrayTag$2:getTag$1(ht),kt=Dt?arrayTag$2:getTag$1(Et);Ft=Ft==argsTag$3?objectTag$5:Ft,kt=kt==argsTag$3?objectTag$5:kt;var Mt=Ft==objectTag$5,Nt=kt==objectTag$5,jt=Ft==kt;if(jt&&isBuffer$2(ht)){if(!isBuffer$2(Et))return!1;Bt=!0,Mt=!1}if(jt&&!Mt)return At||(At=new Stack$2),Bt||isTypedArray$1(ht)?equalArrays(ht,Et,yt,Ct,$t,At):equalByTag(ht,Et,Ft,yt,Ct,$t,At);if(!(yt&COMPARE_PARTIAL_FLAG$2)){var zt=Mt&&hasOwnProperty$f.call(ht,"__wrapped__"),Vt=Nt&&hasOwnProperty$f.call(Et,"__wrapped__");if(zt||Vt){var Kt=zt?ht.value():ht,Xt=Vt?Et.value():Et;return At||(At=new Stack$2),$t(Kt,Xt,yt,Ct,At)}}return jt?(At||(At=new Stack$2),equalObjects(ht,Et,yt,Ct,$t,At)):!1}var _baseIsEqualDeep=baseIsEqualDeep$1,baseIsEqualDeep=_baseIsEqualDeep,isObjectLike$3=isObjectLike_1;function baseIsEqual$2(ht,Et,yt,Ct,$t){return ht===Et?!0:ht==null||Et==null||!isObjectLike$3(ht)&&!isObjectLike$3(Et)?ht!==ht&&Et!==Et:baseIsEqualDeep(ht,Et,yt,Ct,baseIsEqual$2,$t)}var _baseIsEqual=baseIsEqual$2,Stack$1=_Stack,baseIsEqual$1=_baseIsEqual,COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch$1(ht,Et,yt,Ct){var $t=yt.length,At=$t,Bt=!Ct;if(ht==null)return!At;for(ht=Object(ht);$t--;){var Dt=yt[$t];if(Bt&&Dt[2]?Dt[1]!==ht[Dt[0]]:!(Dt[0]in ht))return!1}for(;++$t<At;){Dt=yt[$t];var Ft=Dt[0],kt=ht[Ft],Mt=Dt[1];if(Bt&&Dt[2]){if(kt===void 0&&!(Ft in ht))return!1}else{var Nt=new Stack$1;if(Ct)var jt=Ct(kt,Mt,Ft,ht,Et,Nt);if(!(jt===void 0?baseIsEqual$1(Mt,kt,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,Ct,Nt):jt))return!1}}return!0}var _baseIsMatch=baseIsMatch$1,isObject$i=isObject_1;function isStrictComparable$2(ht){return ht===ht&&!isObject$i(ht)}var _isStrictComparable=isStrictComparable$2,isStrictComparable$1=_isStrictComparable,keys$6=keys_1;function getMatchData$1(ht){for(var Et=keys$6(ht),yt=Et.length;yt--;){var Ct=Et[yt],$t=ht[Ct];Et[yt]=[Ct,$t,isStrictComparable$1($t)]}return Et}var _getMatchData=getMatchData$1;function matchesStrictComparable$2(ht,Et){return function(yt){return yt==null?!1:yt[ht]===Et&&(Et!==void 0||ht in Object(yt))}}var _matchesStrictComparable=matchesStrictComparable$2,baseIsMatch=_baseIsMatch,getMatchData=_getMatchData,matchesStrictComparable$1=_matchesStrictComparable;function baseMatches$1(ht){var Et=getMatchData(ht);return Et.length==1&&Et[0][2]?matchesStrictComparable$1(Et[0][0],Et[0][1]):function(yt){return yt===ht||baseIsMatch(yt,ht,Et)}}var _baseMatches=baseMatches$1;function baseHasIn$1(ht,Et){return ht!=null&&Et in Object(ht)}var _baseHasIn=baseHasIn$1,baseHasIn=_baseHasIn,hasPath=_hasPath;function hasIn$1(ht,Et){return ht!=null&&hasPath(ht,Et,baseHasIn)}var hasIn_1=hasIn$1,baseIsEqual=_baseIsEqual,get$6=get_1$1,hasIn=hasIn_1,isKey$3=_isKey,isStrictComparable=_isStrictComparable,matchesStrictComparable=_matchesStrictComparable,toKey$3=_toKey,COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty$1(ht,Et){return isKey$3(ht)&&isStrictComparable(Et)?matchesStrictComparable(toKey$3(ht),Et):function(yt){var Ct=get$6(yt,ht);return Ct===void 0&&Ct===Et?hasIn(yt,ht):baseIsEqual(Et,Ct,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}var _baseMatchesProperty=baseMatchesProperty$1;function baseProperty$1(ht){return function(Et){return Et==null?void 0:Et[ht]}}var _baseProperty=baseProperty$1,baseGet$3=_baseGet;function basePropertyDeep$1(ht){return function(Et){return baseGet$3(Et,ht)}}var _basePropertyDeep=basePropertyDeep$1,baseProperty=_baseProperty,basePropertyDeep=_basePropertyDeep,isKey$2=_isKey,toKey$2=_toKey;function property$1(ht){return isKey$2(ht)?baseProperty(toKey$2(ht)):basePropertyDeep(ht)}var property_1=property$1,baseMatches=_baseMatches,baseMatchesProperty=_baseMatchesProperty,identity$3=identity_1,isArray$9=isArray_1,property=property_1;function baseIteratee$1(ht){return typeof ht=="function"?ht:ht==null?identity$3:typeof ht=="object"?isArray$9(ht)?baseMatchesProperty(ht[0],ht[1]):baseMatches(ht):property(ht)}var _baseIteratee=baseIteratee$1,baseFor=_baseFor,keys$5=keys_1;function baseForOwn$1(ht,Et){return ht&&baseFor(ht,Et,keys$5)}var _baseForOwn=baseForOwn$1,isArrayLike$2=isArrayLike_1;function createBaseEach$1(ht,Et){return function(yt,Ct){if(yt==null)return yt;if(!isArrayLike$2(yt))return ht(yt,Ct);for(var $t=yt.length,At=Et?$t:-1,Bt=Object(yt);(Et?At--:++At<$t)&&Ct(Bt[At],At,Bt)!==!1;);return yt}}var _createBaseEach=createBaseEach$1,baseForOwn=_baseForOwn,createBaseEach=_createBaseEach,baseEach$1=createBaseEach(baseForOwn),_baseEach=baseEach$1,baseEach=_baseEach,isArrayLike$1=isArrayLike_1;function baseMap$1(ht,Et){var yt=-1,Ct=isArrayLike$1(ht)?Array(ht.length):[];return baseEach(ht,function($t,At,Bt){Ct[++yt]=Et($t,At,Bt)}),Ct}var _baseMap=baseMap$1;function baseSortBy$1(ht,Et){var yt=ht.length;for(ht.sort(Et);yt--;)ht[yt]=ht[yt].value;return ht}var _baseSortBy=baseSortBy$1,isSymbol$7=isSymbol_1;function compareAscending$1(ht,Et){if(ht!==Et){var yt=ht!==void 0,Ct=ht===null,$t=ht===ht,At=isSymbol$7(ht),Bt=Et!==void 0,Dt=Et===null,Ft=Et===Et,kt=isSymbol$7(Et);if(!Dt&&!kt&&!At&&ht>Et||At&&Bt&&Ft&&!Dt&&!kt||Ct&&Bt&&Ft||!yt&&Ft||!$t)return 1;if(!Ct&&!At&&!kt&&ht<Et||kt&&yt&&$t&&!Ct&&!At||Dt&&yt&&$t||!Bt&&$t||!Ft)return-1}return 0}var _compareAscending=compareAscending$1,compareAscending=_compareAscending;function compareMultiple$1(ht,Et,yt){for(var Ct=-1,$t=ht.criteria,At=Et.criteria,Bt=$t.length,Dt=yt.length;++Ct<Bt;){var Ft=compareAscending($t[Ct],At[Ct]);if(Ft){if(Ct>=Dt)return Ft;var kt=yt[Ct];return Ft*(kt=="desc"?-1:1)}}return ht.index-Et.index}var _compareMultiple=compareMultiple$1,arrayMap$1=_arrayMap,baseGet$2=_baseGet,baseIteratee=_baseIteratee,baseMap=_baseMap,baseSortBy=_baseSortBy,baseUnary$1=_baseUnary,compareMultiple=_compareMultiple,identity$2=identity_1,isArray$8=isArray_1;function baseOrderBy$1(ht,Et,yt){Et.length?Et=arrayMap$1(Et,function(At){return isArray$8(At)?function(Bt){return baseGet$2(Bt,At.length===1?At[0]:At)}:At}):Et=[identity$2];var Ct=-1;Et=arrayMap$1(Et,baseUnary$1(baseIteratee));var $t=baseMap(ht,function(At,Bt,Dt){var Ft=arrayMap$1(Et,function(kt){return kt(At)});return{criteria:Ft,index:++Ct,value:At}});return baseSortBy($t,function(At,Bt){return compareMultiple(At,Bt,yt)})}var _baseOrderBy=baseOrderBy$1,baseFlatten$1=_baseFlatten,baseOrderBy=_baseOrderBy,baseRest$1=_baseRest,isIterateeCall$1=_isIterateeCall,sortBy=baseRest$1(function(ht,Et){if(ht==null)return[];var yt=Et.length;return yt>1&&isIterateeCall$1(ht,Et[0],Et[1])?Et=[]:yt>2&&isIterateeCall$1(Et[0],Et[1],Et[2])&&(Et=[Et[0]]),baseOrderBy(ht,baseFlatten$1(Et,1),[])}),sortBy_1$1=sortBy;function baseZipObject$1(ht,Et,yt){for(var Ct=-1,$t=ht.length,At=Et.length,Bt={};++Ct<$t;){var Dt=Ct<At?Et[Ct]:void 0;yt(Bt,ht[Ct],Dt)}return Bt}var _baseZipObject=baseZipObject$1,assignValue$1=_assignValue,baseZipObject=_baseZipObject;function zipObject(ht,Et){return baseZipObject(ht||[],Et||[],assignValue$1)}var zipObject_1$1=zipObject,__importDefault$3=commonjsGlobal&&commonjsGlobal.__importDefault||function(ht){return ht&&ht.__esModule?ht:{default:ht}};Object.defineProperty(numberToHuman$1,"__esModule",{value:!0});numberToHuman$1.numberToHuman=void 0;const bignumber_js_1$1=__importDefault$3(bignumberExports),sortBy_1=__importDefault$3(sortBy_1$1),zipObject_1=__importDefault$3(zipObject_1$1),getFullScope_1=getFullScope$1,lookup_1$1=lookup$1,roundNumber_1$1=roundNumber$1,inferType_1=inferType$1,DECIMAL_UNITS={0:"unit",1:"ten",2:"hundred",3:"thousand",6:"million",9:"billion",12:"trillion",15:"quadrillion","-1":"deci","-2":"centi","-3":"mili","-6":"micro","-9":"nano","-12":"pico","-15":"femto"},INVERTED_DECIMAL_UNITS=(0,zipObject_1.default)(Object.values(DECIMAL_UNITS),Object.keys(DECIMAL_UNITS).map(ht=>parseInt(ht,10)));function numberToHuman(ht,Et,yt){const Ct={roundMode:yt.roundMode,precision:yt.precision,significant:yt.significant};let $t;if((0,inferType_1.inferType)(yt.units)==="string"){const Nt=yt.units;if($t=(0,lookup_1$1.lookup)(ht,Nt),!$t)throw new Error(`The scope "${ht.locale}${ht.defaultSeparator}${(0,getFullScope_1.getFullScope)(ht,Nt,{})}" couldn't be found`)}else $t=yt.units;let At=(0,roundNumber_1$1.roundNumber)(new bignumber_js_1$1.default(Et),Ct);const Bt=Nt=>(0,sortBy_1.default)(Object.keys(Nt).map(jt=>INVERTED_DECIMAL_UNITS[jt]),jt=>jt*-1),Dt=(Nt,jt)=>{const zt=Nt.isZero()?0:Math.floor(Math.log10(Nt.abs().toNumber()));return Bt(jt).find(Vt=>zt>=Vt)||0},Ft=(Nt,jt)=>{const zt=DECIMAL_UNITS[jt.toString()];return Nt[zt]||""},kt=Dt(new bignumber_js_1$1.default(At),$t),Mt=Ft($t,kt);if(At=(0,roundNumber_1$1.roundNumber)(new bignumber_js_1$1.default(At).div(Math.pow(10,kt)),Ct),yt.stripInsignificantZeros){let[Nt,jt]=At.split(".");jt=(jt||"").replace(/0+$/,""),At=Nt,jt&&(At+=`${yt.separator}${jt}`)}return yt.format.replace("%n",At||"0").replace("%u",Mt).trim()}numberToHuman$1.numberToHuman=numberToHuman;var numberToHumanSize$1={},__importDefault$2=commonjsGlobal&&commonjsGlobal.__importDefault||function(ht){return ht&&ht.__esModule?ht:{default:ht}};Object.defineProperty(numberToHumanSize$1,"__esModule",{value:!0});numberToHumanSize$1.numberToHumanSize=void 0;const bignumber_js_1=__importDefault$2(bignumberExports),roundNumber_1=roundNumber$1,expandRoundMode_1=expandRoundMode$1,STORAGE_UNITS=["byte","kb","mb","gb","tb","pb","eb"];function numberToHumanSize(ht,Et,yt){const Ct=(0,expandRoundMode_1.expandRoundMode)(yt.roundMode),$t=1024,At=new bignumber_js_1.default(Et).abs(),Bt=At.lt($t);let Dt;const Ft=(Vt,Kt)=>{const Xt=Kt.length-1,Qt=new bignumber_js_1.default(Math.log(Vt.toNumber())).div(Math.log($t)).integerValue(bignumber_js_1.default.ROUND_DOWN).toNumber();return Math.min(Xt,Qt)},kt=Vt=>`number.human.storage_units.units.${Bt?"byte":Vt[Mt]}`,Mt=Ft(At,STORAGE_UNITS);Bt?Dt=At.integerValue():Dt=new bignumber_js_1.default((0,roundNumber_1.roundNumber)(At.div(Math.pow($t,Mt)),{significant:yt.significant,precision:yt.precision,roundMode:yt.roundMode}));const Nt=ht.translate("number.human.storage_units.format",{defaultValue:"%n %u"}),jt=ht.translate(kt(STORAGE_UNITS),{count:At.integerValue().toNumber()});let zt=Dt.toFixed(yt.precision,Ct);return yt.stripInsignificantZeros&&(zt=zt.replace(/(\..*?)0+$/,"$1").replace(/\.$/,"")),Nt.replace("%n",zt).replace("%u",jt)}numberToHumanSize$1.numberToHumanSize=numberToHumanSize;var parseDate$1={};Object.defineProperty(parseDate$1,"__esModule",{value:!0});parseDate$1.parseDate=void 0;function parseDate(ht){if(ht instanceof Date)return ht;if(typeof ht=="number"){const Ct=new Date;return Ct.setTime(ht),Ct}const Et=new String(ht).match(/(\d{4})-(\d{2})-(\d{2})(?:[ T](\d{2}):(\d{2}):(\d{2})(?:[.,](\d{1,3}))?)?(Z|\+00:?00)?/);if(Et){const Ct=Et.slice(1,8).map(jt=>parseInt(jt,10)||0);Ct[1]-=1;const[$t,At,Bt,Dt,Ft,kt,Mt]=Ct;return Et[8]?new Date(Date.UTC($t,At,Bt,Dt,Ft,kt,Mt)):new Date($t,At,Bt,Dt,Ft,kt,Mt)}ht.match(/([A-Z][a-z]{2}) ([A-Z][a-z]{2}) (\d+) (\d+:\d+:\d+) ([+-]\d+) (\d+)/)&&new Date().setTime(Date.parse([RegExp.$1,RegExp.$2,RegExp.$3,RegExp.$6,RegExp.$4,RegExp.$5].join(" ")));const yt=new Date;return yt.setTime(Date.parse(ht)),yt}parseDate$1.parseDate=parseDate;var pluralize$1={};Object.defineProperty(pluralize$1,"__esModule",{value:!0});pluralize$1.pluralize=void 0;const isSet_1=isSet$2,lookup_1=lookup$1;function pluralize({i18n:ht,count:Et,scope:yt,options:Ct,baseScope:$t}){Ct=Object.assign({},Ct);let At,Bt;if(typeof yt=="object"&&yt?At=yt:At=(0,lookup_1.lookup)(ht,yt,Ct),!At)return ht.missingTranslation.get(yt,Ct);const Ft=ht.pluralization.get(Ct.locale)(ht,Et),kt=[];for(;Ft.length;){const Mt=Ft.shift();if((0,isSet_1.isSet)(At[Mt])){Bt=At[Mt];break}kt.push(Mt)}return(0,isSet_1.isSet)(Bt)?(Ct.count=Et,ht.interpolate(ht,Bt,Ct)):ht.missingTranslation.get($t.split(ht.defaultSeparator).concat([kt[0]]),Ct)}pluralize$1.pluralize=pluralize;var strftime$1={};Object.defineProperty(strftime$1,"__esModule",{value:!0});strftime$1.strftime=void 0;const DEFAULT_OPTIONS={meridian:{am:"AM",pm:"PM"},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],abbrDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],monthNames:[null,"January","February","March","April","May","June","July","August","September","October","November","December"],abbrMonthNames:[null,"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]};function strftime(ht,Et,yt={}){const{abbrDayNames:Ct,dayNames:$t,abbrMonthNames:At,monthNames:Bt,meridian:Dt}=Object.assign(Object.assign({},DEFAULT_OPTIONS),yt);if(isNaN(ht.getTime()))throw new Error("strftime() requires a valid date object, but received an invalid date.");const Ft=ht.getDay(),kt=ht.getDate(),Mt=ht.getFullYear(),Nt=ht.getMonth()+1,jt=ht.getHours();let zt=jt;const Vt=jt>11?"pm":"am",Kt=ht.getSeconds(),Xt=ht.getMinutes(),Qt=ht.getTimezoneOffset(),Zt=Math.floor(Math.abs(Qt/60)),dr=Math.abs(Qt)-Zt*60,cr=(Qt>0?"-":"+")+(Zt.toString().length<2?"0"+Zt:Zt)+(dr.toString().length<2?"0"+dr:dr);return zt>12?zt=zt-12:zt===0&&(zt=12),Et=Et.replace("%a",Ct[Ft]),Et=Et.replace("%A",$t[Ft]),Et=Et.replace("%b",At[Nt]),Et=Et.replace("%B",Bt[Nt]),Et=Et.replace("%d",kt.toString().padStart(2,"0")),Et=Et.replace("%e",kt.toString()),Et=Et.replace("%-d",kt.toString()),Et=Et.replace("%H",jt.toString().padStart(2,"0")),Et=Et.replace("%-H",jt.toString()),Et=Et.replace("%k",jt.toString()),Et=Et.replace("%I",zt.toString().padStart(2,"0")),Et=Et.replace("%-I",zt.toString()),Et=Et.replace("%l",zt.toString()),Et=Et.replace("%m",Nt.toString().padStart(2,"0")),Et=Et.replace("%-m",Nt.toString()),Et=Et.replace("%M",Xt.toString().padStart(2,"0")),Et=Et.replace("%-M",Xt.toString()),Et=Et.replace("%p",Dt[Vt]),Et=Et.replace("%P",Dt[Vt].toLowerCase()),Et=Et.replace("%S",Kt.toString().padStart(2,"0")),Et=Et.replace("%-S",Kt.toString()),Et=Et.replace("%w",Ft.toString()),Et=Et.replace("%y",Mt.toString().padStart(2,"0").substr(-2)),Et=Et.replace("%-y",Mt.toString().padStart(2,"0").substr(-2).replace(/^0+/,"")),Et=Et.replace("%Y",Mt.toString()),Et=Et.replace(/%z/i,cr),Et}strftime$1.strftime=strftime;var timeAgoInWords$1={},nativeCeil=Math.ceil,nativeMax$2=Math.max;function baseRange$1(ht,Et,yt,Ct){for(var $t=-1,At=nativeMax$2(nativeCeil((Et-ht)/(yt||1)),0),Bt=Array(At);At--;)Bt[Ct?At:++$t]=ht,ht+=yt;return Bt}var _baseRange=baseRange$1,baseRange=_baseRange,isIterateeCall=_isIterateeCall,toFinite=toFinite_1;function createRange$1(ht){return function(Et,yt,Ct){return Ct&&typeof Ct!="number"&&isIterateeCall(Et,yt,Ct)&&(yt=Ct=void 0),Et=toFinite(Et),yt===void 0?(yt=Et,Et=0):yt=toFinite(yt),Ct=Ct===void 0?Et<yt?1:-1:toFinite(Ct),baseRange(Et,yt,Ct,ht)}}var _createRange=createRange$1,createRange=_createRange,range$1=createRange(),range_1$1=range$1,__importDefault$1=commonjsGlobal&&commonjsGlobal.__importDefault||function(ht){return ht&&ht.__esModule?ht:{default:ht}};Object.defineProperty(timeAgoInWords$1,"__esModule",{value:!0});timeAgoInWords$1.timeAgoInWords=void 0;const range_1=__importDefault$1(range_1$1),parseDate_1=parseDate$1,within=(ht,Et,yt)=>yt>=ht&&yt<=Et;function timeAgoInWords(ht,Et,yt,Ct={}){const $t=Ct.scope||"datetime.distance_in_words",At=(gr,vr=0)=>ht.t(gr,{count:vr,scope:$t});Et=(0,parseDate_1.parseDate)(Et),yt=(0,parseDate_1.parseDate)(yt);let Bt=Et.getTime()/1e3,Dt=yt.getTime()/1e3;Bt>Dt&&([Et,yt,Bt,Dt]=[yt,Et,Dt,Bt]);const Ft=Math.round(Dt-Bt),kt=Math.round((Dt-Bt)/60),Nt=kt/60/24,jt=Math.round(kt/60),zt=Math.round(Nt),Vt=Math.round(zt/30);if(within(0,1,kt))return Ct.includeSeconds?within(0,4,Ft)?At("less_than_x_seconds",5):within(5,9,Ft)?At("less_than_x_seconds",10):within(10,19,Ft)?At("less_than_x_seconds",20):within(20,39,Ft)?At("half_a_minute"):within(40,59,Ft)?At("less_than_x_minutes",1):At("x_minutes",1):kt===0?At("less_than_x_minutes",1):At("x_minutes",kt);if(within(2,44,kt))return At("x_minutes",kt);if(within(45,89,kt))return At("about_x_hours",1);if(within(90,1439,kt))return At("about_x_hours",jt);if(within(1440,2519,kt))return At("x_days",1);if(within(2520,43199,kt))return At("x_days",zt);if(within(43200,86399,kt))return At("about_x_months",Math.round(kt/43200));if(within(86400,525599,kt))return At("x_months",Vt);let Kt=Et.getFullYear();Et.getMonth()+1>=3&&(Kt+=1);let Xt=yt.getFullYear();yt.getMonth()+1<3&&(Xt-=1);const Qt=Kt>Xt?0:(0,range_1.default)(Kt,Xt).filter(gr=>new Date(gr,1,29).getMonth()==1).length,Zt=525600,dr=Qt*1440,cr=kt-dr,Er=Math.trunc(cr/Zt),pr=parseFloat((cr/Zt-Er).toPrecision(3));return pr<.25?At("about_x_years",Er):pr<.75?At("over_x_years",Er):At("almost_x_years",Er+1)}timeAgoInWords$1.timeAgoInWords=timeAgoInWords;(function(ht){Object.defineProperty(ht,"__esModule",{value:!0}),ht.timeAgoInWords=ht.strftime=ht.roundNumber=ht.pluralize=ht.parseDate=ht.numberToHumanSize=ht.numberToHuman=ht.numberToDelimited=ht.lookup=ht.isSet=ht.interpolate=ht.inferType=ht.getFullScope=ht.formatNumber=ht.expandRoundMode=ht.createTranslationOptions=ht.camelCaseKeys=void 0;var Et=camelCaseKeys$1;Object.defineProperty(ht,"camelCaseKeys",{enumerable:!0,get:function(){return Et.camelCaseKeys}});var yt=createTranslationOptions$1;Object.defineProperty(ht,"createTranslationOptions",{enumerable:!0,get:function(){return yt.createTranslationOptions}});var Ct=expandRoundMode$1;Object.defineProperty(ht,"expandRoundMode",{enumerable:!0,get:function(){return Ct.expandRoundMode}});var $t=formatNumber$1;Object.defineProperty(ht,"formatNumber",{enumerable:!0,get:function(){return $t.formatNumber}});var At=getFullScope$1;Object.defineProperty(ht,"getFullScope",{enumerable:!0,get:function(){return At.getFullScope}});var Bt=inferType$1;Object.defineProperty(ht,"inferType",{enumerable:!0,get:function(){return Bt.inferType}});var Dt=interpolate$1;Object.defineProperty(ht,"interpolate",{enumerable:!0,get:function(){return Dt.interpolate}});var Ft=isSet$2;Object.defineProperty(ht,"isSet",{enumerable:!0,get:function(){return Ft.isSet}});var kt=lookup$1;Object.defineProperty(ht,"lookup",{enumerable:!0,get:function(){return kt.lookup}});var Mt=numberToDelimited$1;Object.defineProperty(ht,"numberToDelimited",{enumerable:!0,get:function(){return Mt.numberToDelimited}});var Nt=numberToHuman$1;Object.defineProperty(ht,"numberToHuman",{enumerable:!0,get:function(){return Nt.numberToHuman}});var jt=numberToHumanSize$1;Object.defineProperty(ht,"numberToHumanSize",{enumerable:!0,get:function(){return jt.numberToHumanSize}});var zt=parseDate$1;Object.defineProperty(ht,"parseDate",{enumerable:!0,get:function(){return zt.parseDate}});var Vt=pluralize$1;Object.defineProperty(ht,"pluralize",{enumerable:!0,get:function(){return Vt.pluralize}});var Kt=roundNumber$1;Object.defineProperty(ht,"roundNumber",{enumerable:!0,get:function(){return Kt.roundNumber}});var Xt=strftime$1;Object.defineProperty(ht,"strftime",{enumerable:!0,get:function(){return Xt.strftime}});var Qt=timeAgoInWords$1;Object.defineProperty(ht,"timeAgoInWords",{enumerable:!0,get:function(){return Qt.timeAgoInWords}})})(helpers$1);(function(ht){Object.defineProperty(ht,"__esModule",{value:!0}),ht.MissingTranslation=ht.errorStrategy=ht.messageStrategy=ht.guessStrategy=void 0;const Et=helpers$1,yt=function(Bt,Dt){Dt instanceof Array&&(Dt=Dt.join(Bt.defaultSeparator));const Ft=Dt.split(Bt.defaultSeparator).slice(-1)[0];return Bt.missingTranslationPrefix+Ft.replace("_"," ").replace(/([a-z])([A-Z])/g,(kt,Mt,Nt)=>`${Mt} ${Nt.toLowerCase()}`)};ht.guessStrategy=yt;const Ct=(Bt,Dt,Ft)=>{const kt=(0,Et.getFullScope)(Bt,Dt,Ft),Mt="locale"in Ft?Ft.locale:Bt.locale,Nt=(0,Et.inferType)(Mt);return`[missing "${[Nt=="string"?Mt:Nt,kt].join(Bt.defaultSeparator)}" translation]`};ht.messageStrategy=Ct;const $t=(Bt,Dt,Ft)=>{const kt=(0,Et.getFullScope)(Bt,Dt,Ft),Mt=[Bt.locale,kt].join(Bt.defaultSeparator);throw new Error(`Missing translation: ${Mt}`)};ht.errorStrategy=$t;class At{constructor(Dt){this.i18n=Dt,this.registry={},this.register("guess",ht.guessStrategy),this.register("message",ht.messageStrategy),this.register("error",ht.errorStrategy)}register(Dt,Ft){this.registry[Dt]=Ft}get(Dt,Ft){var kt;return this.registry[(kt=Ft.missingBehavior)!==null&&kt!==void 0?kt:this.i18n.missingBehavior](this.i18n,Dt,Ft)}}ht.MissingTranslation=At})(MissingTranslation);var __awaiter$3=commonjsGlobal&&commonjsGlobal.__awaiter||function(ht,Et,yt,Ct){function $t(At){return At instanceof yt?At:new yt(function(Bt){Bt(At)})}return new(yt||(yt=Promise))(function(At,Bt){function Dt(Mt){try{kt(Ct.next(Mt))}catch(Nt){Bt(Nt)}}function Ft(Mt){try{kt(Ct.throw(Mt))}catch(Nt){Bt(Nt)}}function kt(Mt){Mt.done?At(Mt.value):$t(Mt.value).then(Dt,Ft)}kt((Ct=Ct.apply(ht,Et||[])).next())})},__importDefault=commonjsGlobal&&commonjsGlobal.__importDefault||function(ht){return ht&&ht.__esModule?ht:{default:ht}};Object.defineProperty(I18n$1,"__esModule",{value:!0});I18n$1.I18n=void 0;const get_1=__importDefault(get_1$1),has_1=__importDefault(has_1$1),merge_1=__importDefault(merge_1$1),Locales_1=Locales,Pluralization_1=Pluralization,MissingTranslation_1=MissingTranslation,helpers_1=helpers$1,DEFAULT_I18N_OPTIONS={defaultLocale:"en",availableLocales:["en"],locale:"en",defaultSeparator:".",placeholder:/(?:\{\{|%\{)(.*?)(?:\}\}?)/gm,enableFallback:!1,missingBehavior:"message",missingTranslationPrefix:"",missingPlaceholder:(ht,Et)=>`[missing "${Et}" value]`,nullPlaceholder:(ht,Et,yt,Ct)=>ht.missingPlaceholder(ht,Et,yt,Ct),transformKey:ht=>ht};class I18n{constructor(Et={},yt={}){this._locale=DEFAULT_I18N_OPTIONS.locale,this._defaultLocale=DEFAULT_I18N_OPTIONS.defaultLocale,this._version=0,this.onChangeHandlers=[],this.translations={},this.availableLocales=[],this.t=this.translate,this.p=this.pluralize,this.l=this.localize,this.distanceOfTimeInWords=this.timeAgoInWords;const{locale:Ct,enableFallback:$t,missingBehavior:At,missingTranslationPrefix:Bt,missingPlaceholder:Dt,nullPlaceholder:Ft,defaultLocale:kt,defaultSeparator:Mt,placeholder:Nt,transformKey:jt}=Object.assign(Object.assign({},DEFAULT_I18N_OPTIONS),yt);this.locale=Ct,this.defaultLocale=kt,this.defaultSeparator=Mt,this.enableFallback=$t,this.locale=Ct,this.missingBehavior=At,this.missingTranslationPrefix=Bt,this.missingPlaceholder=Dt,this.nullPlaceholder=Ft,this.placeholder=Nt,this.pluralization=new Pluralization_1.Pluralization(this),this.locales=new Locales_1.Locales(this),this.missingTranslation=new MissingTranslation_1.MissingTranslation(this),this.transformKey=jt,this.interpolate=helpers_1.interpolate,this.store(Et)}store(Et){(0,merge_1.default)(this.translations,Et),this.hasChanged()}get locale(){return this._locale||this.defaultLocale||"en"}set locale(Et){if(typeof Et!="string")throw new Error(`Expected newLocale to be a string; got ${(0,helpers_1.inferType)(Et)}`);const yt=this._locale!==Et;this._locale=Et,yt&&this.hasChanged()}get defaultLocale(){return this._defaultLocale||"en"}set defaultLocale(Et){if(typeof Et!="string")throw new Error(`Expected newLocale to be a string; got ${(0,helpers_1.inferType)(Et)}`);const yt=this._defaultLocale!==Et;this._defaultLocale=Et,yt&&this.hasChanged()}translate(Et,yt){yt=Object.assign({},yt);const Ct=(0,helpers_1.createTranslationOptions)(this,Et,yt);let $t;return Ct.some(Bt=>((0,helpers_1.isSet)(Bt.scope)?$t=(0,helpers_1.lookup)(this,Bt.scope,yt):(0,helpers_1.isSet)(Bt.message)&&($t=Bt.message),$t!=null))?(typeof $t=="string"?$t=this.interpolate(this,$t,yt):typeof $t=="object"&&$t&&(0,helpers_1.isSet)(yt.count)&&($t=(0,helpers_1.pluralize)({i18n:this,count:yt.count||0,scope:$t,options:yt,baseScope:(0,helpers_1.getFullScope)(this,Et,yt)})),yt&&$t instanceof Array&&($t=$t.map(Bt=>typeof Bt=="string"?(0,helpers_1.interpolate)(this,Bt,yt):Bt)),$t):this.missingTranslation.get(Et,yt)}pluralize(Et,yt,Ct){return(0,helpers_1.pluralize)({i18n:this,count:Et,scope:yt,options:Object.assign({},Ct),baseScope:(0,helpers_1.getFullScope)(this,yt,Ct??{})})}localize(Et,yt,Ct){if(Ct=Object.assign({},Ct),yt==null)return"";switch(Et){case"currency":return this.numberToCurrency(yt);case"number":return(0,helpers_1.formatNumber)(yt,Object.assign({delimiter:",",precision:3,separator:".",significant:!1,stripInsignificantZeros:!1},(0,helpers_1.lookup)(this,"number.format")));case"percentage":return this.numberToPercentage(yt);default:{let $t;return Et.match(/^(date|time)/)?$t=this.toTime(Et,yt):$t=yt.toString(),(0,helpers_1.interpolate)(this,$t,Ct)}}}toTime(Et,yt){const Ct=(0,helpers_1.parseDate)(yt),$t=(0,helpers_1.lookup)(this,Et);return Ct.toString().match(/invalid/i)||!$t?Ct.toString():this.strftime(Ct,$t)}numberToCurrency(Et,yt={}){return(0,helpers_1.formatNumber)(Et,Object.assign(Object.assign(Object.assign({delimiter:",",format:"%u%n",precision:2,separator:".",significant:!1,stripInsignificantZeros:!1,unit:"$"},(0,helpers_1.camelCaseKeys)(this.get("number.format"))),(0,helpers_1.camelCaseKeys)(this.get("number.currency.format"))),yt))}numberToPercentage(Et,yt={}){return(0,helpers_1.formatNumber)(Et,Object.assign(Object.assign(Object.assign({delimiter:"",format:"%n%",precision:3,stripInsignificantZeros:!1,separator:".",significant:!1},(0,helpers_1.camelCaseKeys)(this.get("number.format"))),(0,helpers_1.camelCaseKeys)(this.get("number.percentage.format"))),yt))}numberToHumanSize(Et,yt={}){return(0,helpers_1.numberToHumanSize)(this,Et,Object.assign(Object.assign(Object.assign({delimiter:"",precision:3,significant:!0,stripInsignificantZeros:!0,units:{billion:"Billion",million:"Million",quadrillion:"Quadrillion",thousand:"Thousand",trillion:"Trillion",unit:""}},(0,helpers_1.camelCaseKeys)(this.get("number.human.format"))),(0,helpers_1.camelCaseKeys)(this.get("number.human.storage_units"))),yt))}numberToHuman(Et,yt={}){return(0,helpers_1.numberToHuman)(this,Et,Object.assign(Object.assign(Object.assign({delimiter:"",separator:".",precision:3,significant:!0,stripInsignificantZeros:!0,format:"%n %u",roundMode:"default",units:{billion:"Billion",million:"Million",quadrillion:"Quadrillion",thousand:"Thousand",trillion:"Trillion",unit:""}},(0,helpers_1.camelCaseKeys)(this.get("number.human.format"))),(0,helpers_1.camelCaseKeys)(this.get("number.human.decimal_units"))),yt))}numberToRounded(Et,yt){return(0,helpers_1.formatNumber)(Et,Object.assign({unit:"",precision:3,significant:!1,separator:".",delimiter:"",stripInsignificantZeros:!1},yt))}numberToDelimited(Et,yt={}){return(0,helpers_1.numberToDelimited)(Et,Object.assign({delimiterPattern:/(\d)(?=(\d\d\d)+(?!\d))/g,delimiter:",",separator:"."},yt))}withLocale(Et,yt){return __awaiter$3(this,void 0,void 0,function*(){const Ct=this.locale;try{this.locale=Et,yield yt()}finally{this.locale=Ct}})}strftime(Et,yt,Ct={}){return(0,helpers_1.strftime)(Et,yt,Object.assign(Object.assign(Object.assign({},(0,helpers_1.camelCaseKeys)((0,helpers_1.lookup)(this,"date"))),{meridian:{am:(0,helpers_1.lookup)(this,"time.am")||"AM",pm:(0,helpers_1.lookup)(this,"time.pm")||"PM"}}),Ct))}update(Et,yt,Ct={strict:!1}){if(Ct.strict&&!(0,has_1.default)(this.translations,Et))throw new Error(`The path "${Et}" is not currently defined`);const $t=(0,get_1.default)(this.translations,Et),At=(0,helpers_1.inferType)($t),Bt=(0,helpers_1.inferType)(yt);if(Ct.strict&&At!==Bt)throw new Error(`The current type for "${Et}" is "${At}", but you're trying to override it with "${Bt}"`);let Dt;Bt==="object"?Dt=Object.assign(Object.assign({},$t),yt):Dt=yt;const Ft=Et.split(this.defaultSeparator),kt=Ft.pop();let Mt=this.translations;for(const Nt of Ft)Mt[Nt]||(Mt[Nt]={}),Mt=Mt[Nt];Mt[kt]=Dt,this.hasChanged()}toSentence(Et,yt={}){const{wordsConnector:Ct,twoWordsConnector:$t,lastWordConnector:At}=Object.assign(Object.assign({wordsConnector:", ",twoWordsConnector:" and ",lastWordConnector:", and "},(0,helpers_1.camelCaseKeys)((0,helpers_1.lookup)(this,"support.array"))),yt),Bt=Et.length;switch(Bt){case 0:return"";case 1:return`${Et[0]}`;case 2:return Et.join($t);default:return[Et.slice(0,Bt-1).join(Ct),At,Et[Bt-1]].join("")}}timeAgoInWords(Et,yt,Ct={}){return(0,helpers_1.timeAgoInWords)(this,Et,yt,Ct)}onChange(Et){return this.onChangeHandlers.push(Et),()=>{this.onChangeHandlers.splice(this.onChangeHandlers.indexOf(Et),1)}}get version(){return this._version}formatNumber(Et,yt={}){return yt=Object.assign(Object.assign({delimiter:",",precision:3,separator:".",unit:"",format:"%u%n",significant:!1,stripInsignificantZeros:!1},(0,helpers_1.camelCaseKeys)(this.get("number.format"))),yt),(0,helpers_1.formatNumber)(Et,yt)}get(Et){return(0,helpers_1.lookup)(this,Et)}runCallbacks(){this.onChangeHandlers.forEach(Et=>Et(this))}hasChanged(){this._version+=1,this.runCallbacks()}}I18n$1.I18n=I18n;var typing={};Object.defineProperty(typing,"__esModule",{value:!0});(function(ht){var Et=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(Dt,Ft,kt,Mt){Mt===void 0&&(Mt=kt);var Nt=Object.getOwnPropertyDescriptor(Ft,kt);(!Nt||("get"in Nt?!Ft.__esModule:Nt.writable||Nt.configurable))&&(Nt={enumerable:!0,get:function(){return Ft[kt]}}),Object.defineProperty(Dt,Mt,Nt)}:function(Dt,Ft,kt,Mt){Mt===void 0&&(Mt=kt),Dt[Mt]=Ft[kt]}),yt=commonjsGlobal&&commonjsGlobal.__exportStar||function(Dt,Ft){for(var kt in Dt)kt!=="default"&&!Object.prototype.hasOwnProperty.call(Ft,kt)&&Et(Ft,Dt,kt)};Object.defineProperty(ht,"__esModule",{value:!0}),ht.useMakePlural=ht.Pluralization=ht.MissingTranslation=ht.Locales=ht.I18n=void 0;var Ct=I18n$1;Object.defineProperty(ht,"I18n",{enumerable:!0,get:function(){return Ct.I18n}});var $t=Locales;Object.defineProperty(ht,"Locales",{enumerable:!0,get:function(){return $t.Locales}});var At=MissingTranslation;Object.defineProperty(ht,"MissingTranslation",{enumerable:!0,get:function(){return At.MissingTranslation}});var Bt=Pluralization;Object.defineProperty(ht,"Pluralization",{enumerable:!0,get:function(){return Bt.Pluralization}}),Object.defineProperty(ht,"useMakePlural",{enumerable:!0,get:function(){return Bt.useMakePlural}}),yt(typing,ht)})(require$1);var __assign$4=function(){return __assign$4=Object.assign||function(Et){for(var yt,Ct=1,$t=arguments.length;Ct<$t;Ct++){yt=arguments[Ct];for(var At in yt)Object.prototype.hasOwnProperty.call(yt,At)&&(Et[At]=yt[At])}return Et},__assign$4.apply(this,arguments)};function __rest$M(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt}function __awaiter$2(ht,Et,yt,Ct){function $t(At){return At instanceof yt?At:new yt(function(Bt){Bt(At)})}return new(yt||(yt=Promise))(function(At,Bt){function Dt(Mt){try{kt(Ct.next(Mt))}catch(Nt){Bt(Nt)}}function Ft(Mt){try{kt(Ct.throw(Mt))}catch(Nt){Bt(Nt)}}function kt(Mt){Mt.done?At(Mt.value):$t(Mt.value).then(Dt,Ft)}kt((Ct=Ct.apply(ht,Et||[])).next())})}function __generator$2(ht,Et){var yt={label:0,sent:function(){if(At[0]&1)throw At[1];return At[1]},trys:[],ops:[]},Ct,$t,At,Bt;return Bt={next:Dt(0),throw:Dt(1),return:Dt(2)},typeof Symbol=="function"&&(Bt[Symbol.iterator]=function(){return this}),Bt;function Dt(kt){return function(Mt){return Ft([kt,Mt])}}function Ft(kt){if(Ct)throw new TypeError("Generator is already executing.");for(;Bt&&(Bt=0,kt[0]&&(yt=0)),yt;)try{if(Ct=1,$t&&(At=kt[0]&2?$t.return:kt[0]?$t.throw||((At=$t.return)&&At.call($t),0):$t.next)&&!(At=At.call($t,kt[1])).done)return At;switch($t=0,At&&(kt=[kt[0]&2,At.value]),kt[0]){case 0:case 1:At=kt;break;case 4:return yt.label++,{value:kt[1],done:!1};case 5:yt.label++,$t=kt[1],kt=[0];continue;case 7:kt=yt.ops.pop(),yt.trys.pop();continue;default:if(At=yt.trys,!(At=At.length>0&&At[At.length-1])&&(kt[0]===6||kt[0]===2)){yt=0;continue}if(kt[0]===3&&(!At||kt[1]>At[0]&&kt[1]<At[3])){yt.label=kt[1];break}if(kt[0]===6&&yt.label<At[1]){yt.label=At[1],At=kt;break}if(At&&yt.label<At[2]){yt.label=At[2],yt.ops.push(kt);break}At[2]&&yt.ops.pop(),yt.trys.pop();continue}kt=Et.call(ht,yt)}catch(Mt){kt=[6,Mt],$t=0}finally{Ct=At=0}if(kt[0]&5)throw kt[1];return{value:kt[0]?kt[1]:void 0,done:!0}}}function __read$h(ht,Et){var yt=typeof Symbol=="function"&&ht[Symbol.iterator];if(!yt)return ht;var Ct=yt.call(ht),$t,At=[],Bt;try{for(;(Et===void 0||Et-- >0)&&!($t=Ct.next()).done;)At.push($t.value)}catch(Dt){Bt={error:Dt}}finally{try{$t&&!$t.done&&(yt=Ct.return)&&yt.call(Ct)}finally{if(Bt)throw Bt.error}}return At}function __spreadArray$8(ht,Et,yt){if(yt||arguments.length===2)for(var Ct=0,$t=Et.length,At;Ct<$t;Ct++)(At||!(Ct in Et))&&(At||(At=Array.prototype.slice.call(Et,0,Ct)),At[Ct]=Et[Ct]);return ht.concat(At||Array.prototype.slice.call(Et))}typeof SuppressedError=="function"&&SuppressedError;var zeroRightClassName="right-scroll-bar-position",fullWidthClassName="width-before-scroll-bar",noScrollbarsClassName="with-scroll-bars-hidden",removedBarSizeVariable="--removed-body-scroll-bar-size";function assignRef(ht,Et){return typeof ht=="function"?ht(Et):ht&&(ht.current=Et),ht}function useCallbackRef(ht,Et){var yt=reactExports.useState(function(){return{value:ht,callback:Et,facade:{get current(){return yt.value},set current(Ct){var $t=yt.value;$t!==Ct&&(yt.value=Ct,yt.callback(Ct,$t))}}}})[0];return yt.callback=Et,yt.facade}var useIsomorphicLayoutEffect$2=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect,currentValues=new WeakMap;function useMergeRefs(ht,Et){var yt=useCallbackRef(null,function(Ct){return ht.forEach(function($t){return assignRef($t,Ct)})});return useIsomorphicLayoutEffect$2(function(){var Ct=currentValues.get(yt);if(Ct){var $t=new Set(Ct),At=new Set(ht),Bt=yt.current;$t.forEach(function(Dt){At.has(Dt)||assignRef(Dt,null)}),At.forEach(function(Dt){$t.has(Dt)||assignRef(Dt,Bt)})}currentValues.set(yt,ht)},[ht]),yt}function ItoI(ht){return ht}function innerCreateMedium(ht,Et){Et===void 0&&(Et=ItoI);var yt=[],Ct=!1,$t={read:function(){if(Ct)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return yt.length?yt[yt.length-1]:ht},useMedium:function(At){var Bt=Et(At,Ct);return yt.push(Bt),function(){yt=yt.filter(function(Dt){return Dt!==Bt})}},assignSyncMedium:function(At){for(Ct=!0;yt.length;){var Bt=yt;yt=[],Bt.forEach(At)}yt={push:function(Dt){return At(Dt)},filter:function(){return yt}}},assignMedium:function(At){Ct=!0;var Bt=[];if(yt.length){var Dt=yt;yt=[],Dt.forEach(At),Bt=yt}var Ft=function(){var Mt=Bt;Bt=[],Mt.forEach(At)},kt=function(){return Promise.resolve().then(Ft)};kt(),yt={push:function(Mt){Bt.push(Mt),kt()},filter:function(Mt){return Bt=Bt.filter(Mt),yt}}}};return $t}function createSidecarMedium(ht){ht===void 0&&(ht={});var Et=innerCreateMedium(null);return Et.options=__assign$4({async:!0,ssr:!1},ht),Et}var SideCar$1=function(ht){var Et=ht.sideCar,yt=__rest$M(ht,["sideCar"]);if(!Et)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var Ct=Et.read();if(!Ct)throw new Error("Sidecar medium not found");return reactExports.createElement(Ct,__assign$4({},yt))};SideCar$1.isSideCarExport=!0;function exportSidecar(ht,Et){return ht.useMedium(Et),SideCar$1}var effectCar=createSidecarMedium(),nothing=function(){},RemoveScroll=reactExports.forwardRef(function(ht,Et){var yt=reactExports.useRef(null),Ct=reactExports.useState({onScrollCapture:nothing,onWheelCapture:nothing,onTouchMoveCapture:nothing}),$t=Ct[0],At=Ct[1],Bt=ht.forwardProps,Dt=ht.children,Ft=ht.className,kt=ht.removeScrollBar,Mt=ht.enabled,Nt=ht.shards,jt=ht.sideCar,zt=ht.noIsolation,Vt=ht.inert,Kt=ht.allowPinchZoom,Xt=ht.as,Qt=Xt===void 0?"div":Xt,Zt=__rest$M(ht,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),dr=jt,cr=useMergeRefs([yt,Et]),Er=__assign$4(__assign$4({},Zt),$t);return reactExports.createElement(reactExports.Fragment,null,Mt&&reactExports.createElement(dr,{sideCar:effectCar,removeScrollBar:kt,shards:Nt,noIsolation:zt,inert:Vt,setCallbacks:At,allowPinchZoom:!!Kt,lockRef:yt}),Bt?reactExports.cloneElement(reactExports.Children.only(Dt),__assign$4(__assign$4({},Er),{ref:cr})):reactExports.createElement(Qt,__assign$4({},Er,{className:Ft,ref:cr}),Dt))});RemoveScroll.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};RemoveScroll.classNames={fullWidth:fullWidthClassName,zeroRight:zeroRightClassName};var getNonce=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function makeStyleTag(){if(!document)return null;var ht=document.createElement("style");ht.type="text/css";var Et=getNonce();return Et&&ht.setAttribute("nonce",Et),ht}function injectStyles(ht,Et){ht.styleSheet?ht.styleSheet.cssText=Et:ht.appendChild(document.createTextNode(Et))}function insertStyleTag(ht){var Et=document.head||document.getElementsByTagName("head")[0];Et.appendChild(ht)}var stylesheetSingleton=function(){var ht=0,Et=null;return{add:function(yt){ht==0&&(Et=makeStyleTag())&&(injectStyles(Et,yt),insertStyleTag(Et)),ht++},remove:function(){ht--,!ht&&Et&&(Et.parentNode&&Et.parentNode.removeChild(Et),Et=null)}}},styleHookSingleton=function(){var ht=stylesheetSingleton();return function(Et,yt){reactExports.useEffect(function(){return ht.add(Et),function(){ht.remove()}},[Et&&yt])}},styleSingleton=function(){var ht=styleHookSingleton(),Et=function(yt){var Ct=yt.styles,$t=yt.dynamic;return ht(Ct,$t),null};return Et},zeroGap={left:0,top:0,right:0,gap:0},parse$4=function(ht){return parseInt(ht||"",10)||0},getOffset$2=function(ht){var Et=window.getComputedStyle(document.body),yt=Et[ht==="padding"?"paddingLeft":"marginLeft"],Ct=Et[ht==="padding"?"paddingTop":"marginTop"],$t=Et[ht==="padding"?"paddingRight":"marginRight"];return[parse$4(yt),parse$4(Ct),parse$4($t)]},getGapWidth=function(ht){if(ht===void 0&&(ht="margin"),typeof window>"u")return zeroGap;var Et=getOffset$2(ht),yt=document.documentElement.clientWidth,Ct=window.innerWidth;return{left:Et[0],top:Et[1],right:Et[2],gap:Math.max(0,Ct-yt+Et[2]-Et[0])}},Style=styleSingleton(),lockAttribute="data-scroll-locked",getStyles=function(ht,Et,yt,Ct){var $t=ht.left,At=ht.top,Bt=ht.right,Dt=ht.gap;return yt===void 0&&(yt="margin"),`
  .`.concat(noScrollbarsClassName,` {
   overflow: hidden `).concat(Ct,`;
   padding-right: `).concat(Dt,"px ").concat(Ct,`;
  }
  body[`).concat(lockAttribute,`] {
    overflow: hidden `).concat(Ct,`;
    overscroll-behavior: contain;
    `).concat([Et&&"position: relative ".concat(Ct,";"),yt==="margin"&&`
    padding-left: `.concat($t,`px;
    padding-top: `).concat(At,`px;
    padding-right: `).concat(Bt,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(Dt,"px ").concat(Ct,`;
    `),yt==="padding"&&"padding-right: ".concat(Dt,"px ").concat(Ct,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(zeroRightClassName,` {
    right: `).concat(Dt,"px ").concat(Ct,`;
  }
  
  .`).concat(fullWidthClassName,` {
    margin-right: `).concat(Dt,"px ").concat(Ct,`;
  }
  
  .`).concat(zeroRightClassName," .").concat(zeroRightClassName,` {
    right: 0 `).concat(Ct,`;
  }
  
  .`).concat(fullWidthClassName," .").concat(fullWidthClassName,` {
    margin-right: 0 `).concat(Ct,`;
  }
  
  body[`).concat(lockAttribute,`] {
    `).concat(removedBarSizeVariable,": ").concat(Dt,`px;
  }
`)},getCurrentUseCounter=function(){var ht=parseInt(document.body.getAttribute(lockAttribute)||"0",10);return isFinite(ht)?ht:0},useLockAttribute=function(){reactExports.useEffect(function(){return document.body.setAttribute(lockAttribute,(getCurrentUseCounter()+1).toString()),function(){var ht=getCurrentUseCounter()-1;ht<=0?document.body.removeAttribute(lockAttribute):document.body.setAttribute(lockAttribute,ht.toString())}},[])},RemoveScrollBar=function(ht){var Et=ht.noRelative,yt=ht.noImportant,Ct=ht.gapMode,$t=Ct===void 0?"margin":Ct;useLockAttribute();var At=reactExports.useMemo(function(){return getGapWidth($t)},[$t]);return reactExports.createElement(Style,{styles:getStyles(At,!Et,$t,yt?"":"!important")})},passiveSupported$1=!1;if(typeof window<"u")try{var options=Object.defineProperty({},"passive",{get:function(){return passiveSupported$1=!0,!0}});window.addEventListener("test",options,options),window.removeEventListener("test",options,options)}catch{passiveSupported$1=!1}var nonPassive=passiveSupported$1?{passive:!1}:!1,elementCouldBeVScrolled=function(ht){var Et=window.getComputedStyle(ht);return Et.overflowY!=="hidden"&&!(Et.overflowY===Et.overflowX&&Et.overflowY==="visible")},elementCouldBeHScrolled=function(ht){var Et=window.getComputedStyle(ht);return Et.overflowX!=="hidden"&&!(Et.overflowY===Et.overflowX&&Et.overflowX==="visible")},locationCouldBeScrolled=function(ht,Et){var yt=Et;do{typeof ShadowRoot<"u"&&yt instanceof ShadowRoot&&(yt=yt.host);var Ct=elementCouldBeScrolled(ht,yt);if(Ct){var $t=getScrollVariables(ht,yt),At=$t[1],Bt=$t[2];if(At>Bt)return!0}yt=yt.parentNode}while(yt&&yt!==document.body);return!1},getVScrollVariables=function(ht){var Et=ht.scrollTop,yt=ht.scrollHeight,Ct=ht.clientHeight;return[Et,yt,Ct]},getHScrollVariables=function(ht){var Et=ht.scrollLeft,yt=ht.scrollWidth,Ct=ht.clientWidth;return[Et,yt,Ct]},elementCouldBeScrolled=function(ht,Et){return ht==="v"?elementCouldBeVScrolled(Et):elementCouldBeHScrolled(Et)},getScrollVariables=function(ht,Et){return ht==="v"?getVScrollVariables(Et):getHScrollVariables(Et)},getDirectionFactor=function(ht,Et){return ht==="h"&&Et==="rtl"?-1:1},handleScroll=function(ht,Et,yt,Ct,$t){var At=getDirectionFactor(ht,window.getComputedStyle(Et).direction),Bt=At*Ct,Dt=yt.target,Ft=Et.contains(Dt),kt=!1,Mt=Bt>0,Nt=0,jt=0;do{var zt=getScrollVariables(ht,Dt),Vt=zt[0],Kt=zt[1],Xt=zt[2],Qt=Kt-Xt-At*Vt;(Vt||Qt)&&elementCouldBeScrolled(ht,Dt)&&(Nt+=Qt,jt+=Vt),Dt=Dt.parentNode}while(!Ft&&Dt!==document.body||Ft&&(Et.contains(Dt)||Et===Dt));return(Mt&&(Nt===0||!$t)||!Mt&&(jt===0||!$t))&&(kt=!0),kt},getTouchXY=function(ht){return"changedTouches"in ht?[ht.changedTouches[0].clientX,ht.changedTouches[0].clientY]:[0,0]},getDeltaXY=function(ht){return[ht.deltaX,ht.deltaY]},extractRef=function(ht){return ht&&"current"in ht?ht.current:ht},deltaCompare=function(ht,Et){return ht[0]===Et[0]&&ht[1]===Et[1]},generateStyle=function(ht){return`
  .block-interactivity-`.concat(ht,` {pointer-events: none;}
  .allow-interactivity-`).concat(ht,` {pointer-events: all;}
`)},idCounter=0,lockStack=[];function RemoveScrollSideCar(ht){var Et=reactExports.useRef([]),yt=reactExports.useRef([0,0]),Ct=reactExports.useRef(),$t=reactExports.useState(idCounter++)[0],At=reactExports.useState(function(){return styleSingleton()})[0],Bt=reactExports.useRef(ht);reactExports.useEffect(function(){Bt.current=ht},[ht]),reactExports.useEffect(function(){if(ht.inert){document.body.classList.add("block-interactivity-".concat($t));var Kt=__spreadArray$8([ht.lockRef.current],(ht.shards||[]).map(extractRef),!0).filter(Boolean);return Kt.forEach(function(Xt){return Xt.classList.add("allow-interactivity-".concat($t))}),function(){document.body.classList.remove("block-interactivity-".concat($t)),Kt.forEach(function(Xt){return Xt.classList.remove("allow-interactivity-".concat($t))})}}},[ht.inert,ht.lockRef.current,ht.shards]);var Dt=reactExports.useCallback(function(Kt,Xt){if("touches"in Kt&&Kt.touches.length===2)return!Bt.current.allowPinchZoom;var Qt=getTouchXY(Kt),Zt=yt.current,dr="deltaX"in Kt?Kt.deltaX:Zt[0]-Qt[0],cr="deltaY"in Kt?Kt.deltaY:Zt[1]-Qt[1],Er,pr=Kt.target,gr=Math.abs(dr)>Math.abs(cr)?"h":"v";if("touches"in Kt&&gr==="h"&&pr.type==="range")return!1;var vr=locationCouldBeScrolled(gr,pr);if(!vr)return!0;if(vr?Er=gr:(Er=gr==="v"?"h":"v",vr=locationCouldBeScrolled(gr,pr)),!vr)return!1;if(!Ct.current&&"changedTouches"in Kt&&(dr||cr)&&(Ct.current=Er),!Er)return!0;var yr=Ct.current||Er;return handleScroll(yr,Xt,Kt,yr==="h"?dr:cr,!0)},[]),Ft=reactExports.useCallback(function(Kt){var Xt=Kt;if(!(!lockStack.length||lockStack[lockStack.length-1]!==At)){var Qt="deltaY"in Xt?getDeltaXY(Xt):getTouchXY(Xt),Zt=Et.current.filter(function(Er){return Er.name===Xt.type&&Er.target===Xt.target&&deltaCompare(Er.delta,Qt)})[0];if(Zt&&Zt.should){Xt.preventDefault();return}if(!Zt){var dr=(Bt.current.shards||[]).map(extractRef).filter(Boolean).filter(function(Er){return Er.contains(Xt.target)}),cr=dr.length>0?Dt(Xt,dr[0]):!Bt.current.noIsolation;cr&&Xt.preventDefault()}}},[]),kt=reactExports.useCallback(function(Kt,Xt,Qt,Zt){var dr={name:Kt,delta:Xt,target:Qt,should:Zt};Et.current.push(dr),setTimeout(function(){Et.current=Et.current.filter(function(cr){return cr!==dr})},1)},[]),Mt=reactExports.useCallback(function(Kt){yt.current=getTouchXY(Kt),Ct.current=void 0},[]),Nt=reactExports.useCallback(function(Kt){kt(Kt.type,getDeltaXY(Kt),Kt.target,Dt(Kt,ht.lockRef.current))},[]),jt=reactExports.useCallback(function(Kt){kt(Kt.type,getTouchXY(Kt),Kt.target,Dt(Kt,ht.lockRef.current))},[]);reactExports.useEffect(function(){return lockStack.push(At),ht.setCallbacks({onScrollCapture:Nt,onWheelCapture:Nt,onTouchMoveCapture:jt}),document.addEventListener("wheel",Ft,nonPassive),document.addEventListener("touchmove",Ft,nonPassive),document.addEventListener("touchstart",Mt,nonPassive),function(){lockStack=lockStack.filter(function(Kt){return Kt!==At}),document.removeEventListener("wheel",Ft,nonPassive),document.removeEventListener("touchmove",Ft,nonPassive),document.removeEventListener("touchstart",Mt,nonPassive)}},[]);var zt=ht.removeScrollBar,Vt=ht.inert;return reactExports.createElement(reactExports.Fragment,null,Vt?reactExports.createElement(At,{styles:generateStyle($t)}):null,zt?reactExports.createElement(RemoveScrollBar,{gapMode:"margin"}):null)}const SideCar=exportSidecar(effectCar,RemoveScrollSideCar);var ReactRemoveScroll=reactExports.forwardRef(function(ht,Et){return reactExports.createElement(RemoveScroll,__assign$4({},ht,{ref:Et,sideCar:SideCar}))});ReactRemoveScroll.classNames=RemoveScroll.classNames;function getVarName(ht){var Et=ht.match(/^var\((.*)\)$/);return Et?Et[1]:ht}function get$5(ht,Et){var yt=ht;for(var Ct of Et){if(!(Ct in yt))throw new Error("Path ".concat(Et.join(" -> ")," does not exist in object"));yt=yt[Ct]}return yt}function walkObject(ht,Et){var yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],Ct={};for(var $t in ht){var At=ht[$t],Bt=[...yt,$t];typeof At=="string"||typeof At=="number"||At==null?Ct[$t]=Et(At,Bt):typeof At=="object"&&!Array.isArray(At)?Ct[$t]=walkObject(At,Et,Bt):console.warn('Skipping invalid key "'.concat(Bt.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(At)?"Array":typeof At,'"'))}return Ct}function assignInlineVars(ht,Et){var yt={};if(typeof Et=="object"){var Ct=ht;walkObject(Et,(Bt,Dt)=>{var Ft=get$5(Ct,Dt);yt[getVarName(Ft)]=String(Bt)})}else{var $t=ht;for(var At in $t)yt[getVarName(At)]=$t[At]}return Object.defineProperty(yt,"toString",{value:function(){return Object.keys(this).map(Dt=>"".concat(Dt,":").concat(this[Dt])).join(";")},writable:!1}),yt}var uaParser={exports:{}};(function(ht,Et){(function(yt,Ct){var $t="1.0.38",At="",Bt="?",Dt="function",Ft="undefined",kt="object",Mt="string",Nt="major",jt="model",zt="name",Vt="type",Kt="vendor",Xt="version",Qt="architecture",Zt="console",dr="mobile",cr="tablet",Er="smarttv",pr="wearable",gr="embedded",vr=500,yr="Amazon",xr="Apple",rr="ASUS",Lt="BlackBerry",Ht="Browser",Wt="Chrome",Gt="Edge",Yt="Firefox",er="Google",lr="Huawei",Jt="LG",Ut="Microsoft",ir="Motorola",Cr="Opera",_r="Samsung",$r="Sharp",Tr="Sony",Dr="Xiaomi",Ar="Zebra",Fr="Facebook",Rr="Chromium OS",wr="Mac OS",Sr=function(un,Yr){var Gr={};for(var Jr in un)Yr[Jr]&&Yr[Jr].length%2===0?Gr[Jr]=Yr[Jr].concat(un[Jr]):Gr[Jr]=un[Jr];return Gr},Br=function(un){for(var Yr={},Gr=0;Gr<un.length;Gr++)Yr[un[Gr].toUpperCase()]=un[Gr];return Yr},Or=function(un,Yr){return typeof un===Mt?Pr(Yr).indexOf(Pr(un))!==-1:!1},Pr=function(un){return un.toLowerCase()},Nr=function(un){return typeof un===Mt?un.replace(/[^\d\.]/g,At).split(".")[0]:Ct},Lr=function(un,Yr){if(typeof un===Mt)return un=un.replace(/^\s\s*/,At),typeof Yr===Ft?un:un.substring(0,vr)},Wr=function(un,Yr){for(var Gr=0,Jr,wn,kr,Mr,Ir,Hr;Gr<Yr.length&&!Ir;){var Vr=Yr[Gr],on=Yr[Gr+1];for(Jr=wn=0;Jr<Vr.length&&!Ir&&Vr[Jr];)if(Ir=Vr[Jr++].exec(un),Ir)for(kr=0;kr<on.length;kr++)Hr=Ir[++wn],Mr=on[kr],typeof Mr===kt&&Mr.length>0?Mr.length===2?typeof Mr[1]==Dt?this[Mr[0]]=Mr[1].call(this,Hr):this[Mr[0]]=Mr[1]:Mr.length===3?typeof Mr[1]===Dt&&!(Mr[1].exec&&Mr[1].test)?this[Mr[0]]=Hr?Mr[1].call(this,Hr,Mr[2]):Ct:this[Mr[0]]=Hr?Hr.replace(Mr[1],Mr[2]):Ct:Mr.length===4&&(this[Mr[0]]=Hr?Mr[3].call(this,Hr.replace(Mr[1],Mr[2])):Ct):this[Mr]=Hr||Ct;Gr+=2}},Ur=function(un,Yr){for(var Gr in Yr)if(typeof Yr[Gr]===kt&&Yr[Gr].length>0){for(var Jr=0;Jr<Yr[Gr].length;Jr++)if(Or(Yr[Gr][Jr],un))return Gr===Bt?Ct:Gr}else if(Or(Yr[Gr],un))return Gr===Bt?Ct:Gr;return un},jr={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Kr={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},qr={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[Xt,[zt,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[Xt,[zt,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[zt,Xt],[/opios[\/ ]+([\w\.]+)/i],[Xt,[zt,Cr+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[Xt,[zt,Cr+" GX"]],[/\bopr\/([\w\.]+)/i],[Xt,[zt,Cr]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[Xt,[zt,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[zt,Xt],[/\bddg\/([\w\.]+)/i],[Xt,[zt,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[Xt,[zt,"UC"+Ht]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[Xt,[zt,"WeChat"]],[/konqueror\/([\w\.]+)/i],[Xt,[zt,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[Xt,[zt,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[Xt,[zt,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[Xt,[zt,"Smart Lenovo "+Ht]],[/(avast|avg)\/([\w\.]+)/i],[[zt,/(.+)/,"$1 Secure "+Ht],Xt],[/\bfocus\/([\w\.]+)/i],[Xt,[zt,Yt+" Focus"]],[/\bopt\/([\w\.]+)/i],[Xt,[zt,Cr+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[Xt,[zt,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[Xt,[zt,"Dolphin"]],[/coast\/([\w\.]+)/i],[Xt,[zt,Cr+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[Xt,[zt,"MIUI "+Ht]],[/fxios\/([-\w\.]+)/i],[Xt,[zt,Yt]],[/\bqihu|(qi?ho?o?|360)browser/i],[[zt,"360 "+Ht]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[zt,/(.+)/,"$1 "+Ht],Xt],[/samsungbrowser\/([\w\.]+)/i],[Xt,[zt,_r+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[zt,/_/g," "],Xt],[/metasr[\/ ]?([\d\.]+)/i],[Xt,[zt,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[zt,"Sogou Mobile"],Xt],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[zt,Xt],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[zt],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[zt,Fr],Xt],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[zt,Xt],[/\bgsa\/([\w\.]+) .*safari\//i],[Xt,[zt,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[Xt,[zt,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[Xt,[zt,Wt+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[zt,Wt+" WebView"],Xt],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[Xt,[zt,"Android "+Ht]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[zt,Xt],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[Xt,[zt,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[Xt,zt],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[zt,[Xt,Ur,jr]],[/(webkit|khtml)\/([\w\.]+)/i],[zt,Xt],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[zt,"Netscape"],Xt],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[Xt,[zt,Yt+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[zt,Xt],[/(cobalt)\/([\w\.]+)/i],[zt,[Xt,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[Qt,"amd64"]],[/(ia32(?=;))/i],[[Qt,Pr]],[/((?:i[346]|x)86)[;\)]/i],[[Qt,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[Qt,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[Qt,"armhf"]],[/windows (ce|mobile); ppc;/i],[[Qt,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[Qt,/ower/,At,Pr]],[/(sun4\w)[;\)]/i],[[Qt,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[Qt,Pr]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[jt,[Kt,_r],[Vt,cr]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[jt,[Kt,_r],[Vt,dr]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[jt,[Kt,xr],[Vt,dr]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[jt,[Kt,xr],[Vt,cr]],[/(macintosh);/i],[jt,[Kt,xr]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[jt,[Kt,$r],[Vt,dr]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[jt,[Kt,lr],[Vt,cr]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[jt,[Kt,lr],[Vt,dr]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[jt,/_/g," "],[Kt,Dr],[Vt,dr]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[jt,/_/g," "],[Kt,Dr],[Vt,cr]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[jt,[Kt,"OPPO"],[Vt,dr]],[/\b(opd2\d{3}a?) bui/i],[jt,[Kt,"OPPO"],[Vt,cr]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[jt,[Kt,"Vivo"],[Vt,dr]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[jt,[Kt,"Realme"],[Vt,dr]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[jt,[Kt,ir],[Vt,dr]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[jt,[Kt,ir],[Vt,cr]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[jt,[Kt,Jt],[Vt,cr]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[jt,[Kt,Jt],[Vt,dr]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[jt,[Kt,"Lenovo"],[Vt,cr]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[jt,/_/g," "],[Kt,"Nokia"],[Vt,dr]],[/(pixel c)\b/i],[jt,[Kt,er],[Vt,cr]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[jt,[Kt,er],[Vt,dr]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[jt,[Kt,Tr],[Vt,dr]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[jt,"Xperia Tablet"],[Kt,Tr],[Vt,cr]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[jt,[Kt,"OnePlus"],[Vt,dr]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[jt,[Kt,yr],[Vt,cr]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[jt,/(.+)/g,"Fire Phone $1"],[Kt,yr],[Vt,dr]],[/(playbook);[-\w\),; ]+(rim)/i],[jt,Kt,[Vt,cr]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[jt,[Kt,Lt],[Vt,dr]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[jt,[Kt,rr],[Vt,cr]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[jt,[Kt,rr],[Vt,dr]],[/(nexus 9)/i],[jt,[Kt,"HTC"],[Vt,cr]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[Kt,[jt,/_/g," "],[Vt,dr]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[jt,[Kt,"Acer"],[Vt,cr]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[jt,[Kt,"Meizu"],[Vt,dr]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[jt,[Kt,"Ulefone"],[Vt,dr]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[Kt,jt,[Vt,dr]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[Kt,jt,[Vt,cr]],[/(surface duo)/i],[jt,[Kt,Ut],[Vt,cr]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[jt,[Kt,"Fairphone"],[Vt,dr]],[/(u304aa)/i],[jt,[Kt,"AT&T"],[Vt,dr]],[/\bsie-(\w*)/i],[jt,[Kt,"Siemens"],[Vt,dr]],[/\b(rct\w+) b/i],[jt,[Kt,"RCA"],[Vt,cr]],[/\b(venue[\d ]{2,7}) b/i],[jt,[Kt,"Dell"],[Vt,cr]],[/\b(q(?:mv|ta)\w+) b/i],[jt,[Kt,"Verizon"],[Vt,cr]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[jt,[Kt,"Barnes & Noble"],[Vt,cr]],[/\b(tm\d{3}\w+) b/i],[jt,[Kt,"NuVision"],[Vt,cr]],[/\b(k88) b/i],[jt,[Kt,"ZTE"],[Vt,cr]],[/\b(nx\d{3}j) b/i],[jt,[Kt,"ZTE"],[Vt,dr]],[/\b(gen\d{3}) b.+49h/i],[jt,[Kt,"Swiss"],[Vt,dr]],[/\b(zur\d{3}) b/i],[jt,[Kt,"Swiss"],[Vt,cr]],[/\b((zeki)?tb.*\b) b/i],[jt,[Kt,"Zeki"],[Vt,cr]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[Kt,"Dragon Touch"],jt,[Vt,cr]],[/\b(ns-?\w{0,9}) b/i],[jt,[Kt,"Insignia"],[Vt,cr]],[/\b((nxa|next)-?\w{0,9}) b/i],[jt,[Kt,"NextBook"],[Vt,cr]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[Kt,"Voice"],jt,[Vt,dr]],[/\b(lvtel\-)?(v1[12]) b/i],[[Kt,"LvTel"],jt,[Vt,dr]],[/\b(ph-1) /i],[jt,[Kt,"Essential"],[Vt,dr]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[jt,[Kt,"Envizen"],[Vt,cr]],[/\b(trio[-\w\. ]+) b/i],[jt,[Kt,"MachSpeed"],[Vt,cr]],[/\btu_(1491) b/i],[jt,[Kt,"Rotor"],[Vt,cr]],[/(shield[\w ]+) b/i],[jt,[Kt,"Nvidia"],[Vt,cr]],[/(sprint) (\w+)/i],[Kt,jt,[Vt,dr]],[/(kin\.[onetw]{3})/i],[[jt,/\./g," "],[Kt,Ut],[Vt,dr]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[jt,[Kt,Ar],[Vt,cr]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[jt,[Kt,Ar],[Vt,dr]],[/smart-tv.+(samsung)/i],[Kt,[Vt,Er]],[/hbbtv.+maple;(\d+)/i],[[jt,/^/,"SmartTV"],[Kt,_r],[Vt,Er]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[Kt,Jt],[Vt,Er]],[/(apple) ?tv/i],[Kt,[jt,xr+" TV"],[Vt,Er]],[/crkey/i],[[jt,Wt+"cast"],[Kt,er],[Vt,Er]],[/droid.+aft(\w+)( bui|\))/i],[jt,[Kt,yr],[Vt,Er]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[jt,[Kt,$r],[Vt,Er]],[/(bravia[\w ]+)( bui|\))/i],[jt,[Kt,Tr],[Vt,Er]],[/(mitv-\w{5}) bui/i],[jt,[Kt,Dr],[Vt,Er]],[/Hbbtv.*(technisat) (.*);/i],[Kt,jt,[Vt,Er]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[Kt,Lr],[jt,Lr],[Vt,Er]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[Vt,Er]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[Kt,jt,[Vt,Zt]],[/droid.+; (shield) bui/i],[jt,[Kt,"Nvidia"],[Vt,Zt]],[/(playstation [345portablevi]+)/i],[jt,[Kt,Tr],[Vt,Zt]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[jt,[Kt,Ut],[Vt,Zt]],[/((pebble))app/i],[Kt,jt,[Vt,pr]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[jt,[Kt,xr],[Vt,pr]],[/droid.+; (glass) \d/i],[jt,[Kt,er],[Vt,pr]],[/droid.+; (wt63?0{2,3})\)/i],[jt,[Kt,Ar],[Vt,pr]],[/(quest( \d| pro)?)/i],[jt,[Kt,Fr],[Vt,pr]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[Kt,[Vt,gr]],[/(aeobc)\b/i],[jt,[Kt,yr],[Vt,gr]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[jt,[Vt,dr]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[jt,[Vt,cr]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[Vt,cr]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[Vt,dr]],[/(android[-\w\. ]{0,9});.+buil/i],[jt,[Kt,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[Xt,[zt,Gt+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[Xt,[zt,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[zt,Xt],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[Xt,zt]],os:[[/microsoft (windows) (vista|xp)/i],[zt,Xt],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[zt,[Xt,Ur,Kr]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[Xt,Ur,Kr],[zt,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[Xt,/_/g,"."],[zt,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[zt,wr],[Xt,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[Xt,zt],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[zt,Xt],[/\(bb(10);/i],[Xt,[zt,Lt]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[Xt,[zt,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[Xt,[zt,Yt+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[Xt,[zt,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[Xt,[zt,"watchOS"]],[/crkey\/([\d\.]+)/i],[Xt,[zt,Wt+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[zt,Rr],Xt],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[zt,Xt],[/(sunos) ?([\w\.\d]*)/i],[[zt,"Solaris"],Xt],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[zt,Xt]]},Zr=function(un,Yr){if(typeof un===kt&&(Yr=un,un=Ct),!(this instanceof Zr))return new Zr(un,Yr).getResult();var Gr=typeof yt!==Ft&&yt.navigator?yt.navigator:Ct,Jr=un||(Gr&&Gr.userAgent?Gr.userAgent:At),wn=Gr&&Gr.userAgentData?Gr.userAgentData:Ct,kr=Yr?Sr(qr,Yr):qr,Mr=Gr&&Gr.userAgent==Jr;return this.getBrowser=function(){var Ir={};return Ir[zt]=Ct,Ir[Xt]=Ct,Wr.call(Ir,Jr,kr.browser),Ir[Nt]=Nr(Ir[Xt]),Mr&&Gr&&Gr.brave&&typeof Gr.brave.isBrave==Dt&&(Ir[zt]="Brave"),Ir},this.getCPU=function(){var Ir={};return Ir[Qt]=Ct,Wr.call(Ir,Jr,kr.cpu),Ir},this.getDevice=function(){var Ir={};return Ir[Kt]=Ct,Ir[jt]=Ct,Ir[Vt]=Ct,Wr.call(Ir,Jr,kr.device),Mr&&!Ir[Vt]&&wn&&wn.mobile&&(Ir[Vt]=dr),Mr&&Ir[jt]=="Macintosh"&&Gr&&typeof Gr.standalone!==Ft&&Gr.maxTouchPoints&&Gr.maxTouchPoints>2&&(Ir[jt]="iPad",Ir[Vt]=cr),Ir},this.getEngine=function(){var Ir={};return Ir[zt]=Ct,Ir[Xt]=Ct,Wr.call(Ir,Jr,kr.engine),Ir},this.getOS=function(){var Ir={};return Ir[zt]=Ct,Ir[Xt]=Ct,Wr.call(Ir,Jr,kr.os),Mr&&!Ir[zt]&&wn&&wn.platform&&wn.platform!="Unknown"&&(Ir[zt]=wn.platform.replace(/chrome os/i,Rr).replace(/macos/i,wr)),Ir},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return Jr},this.setUA=function(Ir){return Jr=typeof Ir===Mt&&Ir.length>vr?Lr(Ir,vr):Ir,this},this.setUA(Jr),this};Zr.VERSION=$t,Zr.BROWSER=Br([zt,Xt,Nt]),Zr.CPU=Br([Qt]),Zr.DEVICE=Br([jt,Kt,Vt,Zt,dr,Er,cr,pr,gr]),Zr.ENGINE=Zr.OS=Br([zt,Xt]),ht.exports&&(Et=ht.exports=Zr),Et.UAParser=Zr;var dn=typeof yt!==Ft&&(yt.jQuery||yt.Zepto);if(dn&&!dn.ua){var Xr=new Zr;dn.ua=Xr.getResult(),dn.ua.get=function(){return Xr.getUA()},dn.ua.set=function(un){Xr.setUA(un);var Yr=Xr.getResult();for(var Gr in Yr)dn.ua[Gr]=Yr[Gr]}}})(typeof window=="object"?window:commonjsGlobal)})(uaParser,uaParser.exports);var uaParserExports=uaParser.exports,browser={},canPromise$1=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},qrcode={},utils$2={};let toSJISFunction;const CODEWORDS_COUNT=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];utils$2.getSymbolSize=function ht(Et){if(!Et)throw new Error('"version" cannot be null or undefined');if(Et<1||Et>40)throw new Error('"version" should be in range from 1 to 40');return Et*4+17};utils$2.getSymbolTotalCodewords=function ht(Et){return CODEWORDS_COUNT[Et]};utils$2.getBCHDigit=function(ht){let Et=0;for(;ht!==0;)Et++,ht>>>=1;return Et};utils$2.setToSJISFunction=function ht(Et){if(typeof Et!="function")throw new Error('"toSJISFunc" is not a valid function.');toSJISFunction=Et};utils$2.isKanjiModeEnabled=function(){return typeof toSJISFunction<"u"};utils$2.toSJIS=function ht(Et){return toSJISFunction(Et)};var errorCorrectionLevel={};(function(ht){ht.L={bit:1},ht.M={bit:0},ht.Q={bit:3},ht.H={bit:2};function Et(yt){if(typeof yt!="string")throw new Error("Param is not a string");switch(yt.toLowerCase()){case"l":case"low":return ht.L;case"m":case"medium":return ht.M;case"q":case"quartile":return ht.Q;case"h":case"high":return ht.H;default:throw new Error("Unknown EC Level: "+yt)}}ht.isValid=function(Ct){return Ct&&typeof Ct.bit<"u"&&Ct.bit>=0&&Ct.bit<4},ht.from=function(Ct,$t){if(ht.isValid(Ct))return Ct;try{return Et(Ct)}catch{return $t}}})(errorCorrectionLevel);function BitBuffer$1(){this.buffer=[],this.length=0}BitBuffer$1.prototype={get:function(ht){const Et=Math.floor(ht/8);return(this.buffer[Et]>>>7-ht%8&1)===1},put:function(ht,Et){for(let yt=0;yt<Et;yt++)this.putBit((ht>>>Et-yt-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(ht){const Et=Math.floor(this.length/8);this.buffer.length<=Et&&this.buffer.push(0),ht&&(this.buffer[Et]|=128>>>this.length%8),this.length++}};var bitBuffer=BitBuffer$1;function BitMatrix$1(ht){if(!ht||ht<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=ht,this.data=new Uint8Array(ht*ht),this.reservedBit=new Uint8Array(ht*ht)}BitMatrix$1.prototype.set=function(ht,Et,yt,Ct){const $t=ht*this.size+Et;this.data[$t]=yt,Ct&&(this.reservedBit[$t]=!0)};BitMatrix$1.prototype.get=function(ht,Et){return this.data[ht*this.size+Et]};BitMatrix$1.prototype.xor=function(ht,Et,yt){this.data[ht*this.size+Et]^=yt};BitMatrix$1.prototype.isReserved=function(ht,Et){return this.reservedBit[ht*this.size+Et]};var bitMatrix=BitMatrix$1,alignmentPattern={};(function(ht){const Et=utils$2.getSymbolSize;ht.getRowColCoords=function(Ct){if(Ct===1)return[];const $t=Math.floor(Ct/7)+2,At=Et(Ct),Bt=At===145?26:Math.ceil((At-13)/(2*$t-2))*2,Dt=[At-7];for(let Ft=1;Ft<$t-1;Ft++)Dt[Ft]=Dt[Ft-1]-Bt;return Dt.push(6),Dt.reverse()},ht.getPositions=function(Ct){const $t=[],At=ht.getRowColCoords(Ct),Bt=At.length;for(let Dt=0;Dt<Bt;Dt++)for(let Ft=0;Ft<Bt;Ft++)Dt===0&&Ft===0||Dt===0&&Ft===Bt-1||Dt===Bt-1&&Ft===0||$t.push([At[Dt],At[Ft]]);return $t}})(alignmentPattern);var finderPattern={};const getSymbolSize=utils$2.getSymbolSize,FINDER_PATTERN_SIZE=7;finderPattern.getPositions=function ht(Et){const yt=getSymbolSize(Et);return[[0,0],[yt-FINDER_PATTERN_SIZE,0],[0,yt-FINDER_PATTERN_SIZE]]};var maskPattern={};(function(ht){ht.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const Et={N1:3,N2:3,N3:40,N4:10};ht.isValid=function($t){return $t!=null&&$t!==""&&!isNaN($t)&&$t>=0&&$t<=7},ht.from=function($t){return ht.isValid($t)?parseInt($t,10):void 0},ht.getPenaltyN1=function($t){const At=$t.size;let Bt=0,Dt=0,Ft=0,kt=null,Mt=null;for(let Nt=0;Nt<At;Nt++){Dt=Ft=0,kt=Mt=null;for(let jt=0;jt<At;jt++){let zt=$t.get(Nt,jt);zt===kt?Dt++:(Dt>=5&&(Bt+=Et.N1+(Dt-5)),kt=zt,Dt=1),zt=$t.get(jt,Nt),zt===Mt?Ft++:(Ft>=5&&(Bt+=Et.N1+(Ft-5)),Mt=zt,Ft=1)}Dt>=5&&(Bt+=Et.N1+(Dt-5)),Ft>=5&&(Bt+=Et.N1+(Ft-5))}return Bt},ht.getPenaltyN2=function($t){const At=$t.size;let Bt=0;for(let Dt=0;Dt<At-1;Dt++)for(let Ft=0;Ft<At-1;Ft++){const kt=$t.get(Dt,Ft)+$t.get(Dt,Ft+1)+$t.get(Dt+1,Ft)+$t.get(Dt+1,Ft+1);(kt===4||kt===0)&&Bt++}return Bt*Et.N2},ht.getPenaltyN3=function($t){const At=$t.size;let Bt=0,Dt=0,Ft=0;for(let kt=0;kt<At;kt++){Dt=Ft=0;for(let Mt=0;Mt<At;Mt++)Dt=Dt<<1&2047|$t.get(kt,Mt),Mt>=10&&(Dt===1488||Dt===93)&&Bt++,Ft=Ft<<1&2047|$t.get(Mt,kt),Mt>=10&&(Ft===1488||Ft===93)&&Bt++}return Bt*Et.N3},ht.getPenaltyN4=function($t){let At=0;const Bt=$t.data.length;for(let Ft=0;Ft<Bt;Ft++)At+=$t.data[Ft];return Math.abs(Math.ceil(At*100/Bt/5)-10)*Et.N4};function yt(Ct,$t,At){switch(Ct){case ht.Patterns.PATTERN000:return($t+At)%2===0;case ht.Patterns.PATTERN001:return $t%2===0;case ht.Patterns.PATTERN010:return At%3===0;case ht.Patterns.PATTERN011:return($t+At)%3===0;case ht.Patterns.PATTERN100:return(Math.floor($t/2)+Math.floor(At/3))%2===0;case ht.Patterns.PATTERN101:return $t*At%2+$t*At%3===0;case ht.Patterns.PATTERN110:return($t*At%2+$t*At%3)%2===0;case ht.Patterns.PATTERN111:return($t*At%3+($t+At)%2)%2===0;default:throw new Error("bad maskPattern:"+Ct)}}ht.applyMask=function($t,At){const Bt=At.size;for(let Dt=0;Dt<Bt;Dt++)for(let Ft=0;Ft<Bt;Ft++)At.isReserved(Ft,Dt)||At.xor(Ft,Dt,yt($t,Ft,Dt))},ht.getBestMask=function($t,At){const Bt=Object.keys(ht.Patterns).length;let Dt=0,Ft=1/0;for(let kt=0;kt<Bt;kt++){At(kt),ht.applyMask(kt,$t);const Mt=ht.getPenaltyN1($t)+ht.getPenaltyN2($t)+ht.getPenaltyN3($t)+ht.getPenaltyN4($t);ht.applyMask(kt,$t),Mt<Ft&&(Ft=Mt,Dt=kt)}return Dt}})(maskPattern);var errorCorrectionCode={};const ECLevel$1=errorCorrectionLevel,EC_BLOCKS_TABLE=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],EC_CODEWORDS_TABLE=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];errorCorrectionCode.getBlocksCount=function ht(Et,yt){switch(yt){case ECLevel$1.L:return EC_BLOCKS_TABLE[(Et-1)*4+0];case ECLevel$1.M:return EC_BLOCKS_TABLE[(Et-1)*4+1];case ECLevel$1.Q:return EC_BLOCKS_TABLE[(Et-1)*4+2];case ECLevel$1.H:return EC_BLOCKS_TABLE[(Et-1)*4+3];default:return}};errorCorrectionCode.getTotalCodewordsCount=function ht(Et,yt){switch(yt){case ECLevel$1.L:return EC_CODEWORDS_TABLE[(Et-1)*4+0];case ECLevel$1.M:return EC_CODEWORDS_TABLE[(Et-1)*4+1];case ECLevel$1.Q:return EC_CODEWORDS_TABLE[(Et-1)*4+2];case ECLevel$1.H:return EC_CODEWORDS_TABLE[(Et-1)*4+3];default:return}};var polynomial={},galoisField={};const EXP_TABLE=new Uint8Array(512),LOG_TABLE=new Uint8Array(256);(function ht(){let Et=1;for(let yt=0;yt<255;yt++)EXP_TABLE[yt]=Et,LOG_TABLE[Et]=yt,Et<<=1,Et&256&&(Et^=285);for(let yt=255;yt<512;yt++)EXP_TABLE[yt]=EXP_TABLE[yt-255]})();galoisField.log=function ht(Et){if(Et<1)throw new Error("log("+Et+")");return LOG_TABLE[Et]};galoisField.exp=function ht(Et){return EXP_TABLE[Et]};galoisField.mul=function ht(Et,yt){return Et===0||yt===0?0:EXP_TABLE[LOG_TABLE[Et]+LOG_TABLE[yt]]};(function(ht){const Et=galoisField;ht.mul=function(Ct,$t){const At=new Uint8Array(Ct.length+$t.length-1);for(let Bt=0;Bt<Ct.length;Bt++)for(let Dt=0;Dt<$t.length;Dt++)At[Bt+Dt]^=Et.mul(Ct[Bt],$t[Dt]);return At},ht.mod=function(Ct,$t){let At=new Uint8Array(Ct);for(;At.length-$t.length>=0;){const Bt=At[0];for(let Ft=0;Ft<$t.length;Ft++)At[Ft]^=Et.mul($t[Ft],Bt);let Dt=0;for(;Dt<At.length&&At[Dt]===0;)Dt++;At=At.slice(Dt)}return At},ht.generateECPolynomial=function(Ct){let $t=new Uint8Array([1]);for(let At=0;At<Ct;At++)$t=ht.mul($t,new Uint8Array([1,Et.exp(At)]));return $t}})(polynomial);const Polynomial=polynomial;function ReedSolomonEncoder$1(ht){this.genPoly=void 0,this.degree=ht,this.degree&&this.initialize(this.degree)}ReedSolomonEncoder$1.prototype.initialize=function ht(Et){this.degree=Et,this.genPoly=Polynomial.generateECPolynomial(this.degree)};ReedSolomonEncoder$1.prototype.encode=function ht(Et){if(!this.genPoly)throw new Error("Encoder not initialized");const yt=new Uint8Array(Et.length+this.degree);yt.set(Et);const Ct=Polynomial.mod(yt,this.genPoly),$t=this.degree-Ct.length;if($t>0){const At=new Uint8Array(this.degree);return At.set(Ct,$t),At}return Ct};var reedSolomonEncoder=ReedSolomonEncoder$1,version$4={},mode={},versionCheck={};versionCheck.isValid=function ht(Et){return!isNaN(Et)&&Et>=1&&Et<=40};var regex$2={};const numeric="[0-9]+",alphanumeric="[A-Z $%*+\\-./:]+";let kanji="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";kanji=kanji.replace(/u/g,"\\u");const byte="(?:(?![A-Z0-9 $%*+\\-./:]|"+kanji+`)(?:.|[\r
]))+`;regex$2.KANJI=new RegExp(kanji,"g");regex$2.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");regex$2.BYTE=new RegExp(byte,"g");regex$2.NUMERIC=new RegExp(numeric,"g");regex$2.ALPHANUMERIC=new RegExp(alphanumeric,"g");const TEST_KANJI=new RegExp("^"+kanji+"$"),TEST_NUMERIC=new RegExp("^"+numeric+"$"),TEST_ALPHANUMERIC=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");regex$2.testKanji=function ht(Et){return TEST_KANJI.test(Et)};regex$2.testNumeric=function ht(Et){return TEST_NUMERIC.test(Et)};regex$2.testAlphanumeric=function ht(Et){return TEST_ALPHANUMERIC.test(Et)};(function(ht){const Et=versionCheck,yt=regex$2;ht.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},ht.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},ht.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},ht.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},ht.MIXED={bit:-1},ht.getCharCountIndicator=function(At,Bt){if(!At.ccBits)throw new Error("Invalid mode: "+At);if(!Et.isValid(Bt))throw new Error("Invalid version: "+Bt);return Bt>=1&&Bt<10?At.ccBits[0]:Bt<27?At.ccBits[1]:At.ccBits[2]},ht.getBestModeForData=function(At){return yt.testNumeric(At)?ht.NUMERIC:yt.testAlphanumeric(At)?ht.ALPHANUMERIC:yt.testKanji(At)?ht.KANJI:ht.BYTE},ht.toString=function(At){if(At&&At.id)return At.id;throw new Error("Invalid mode")},ht.isValid=function(At){return At&&At.bit&&At.ccBits};function Ct($t){if(typeof $t!="string")throw new Error("Param is not a string");switch($t.toLowerCase()){case"numeric":return ht.NUMERIC;case"alphanumeric":return ht.ALPHANUMERIC;case"kanji":return ht.KANJI;case"byte":return ht.BYTE;default:throw new Error("Unknown mode: "+$t)}}ht.from=function(At,Bt){if(ht.isValid(At))return At;try{return Ct(At)}catch{return Bt}}})(mode);(function(ht){const Et=utils$2,yt=errorCorrectionCode,Ct=errorCorrectionLevel,$t=mode,At=versionCheck,Bt=7973,Dt=Et.getBCHDigit(Bt);function Ft(jt,zt,Vt){for(let Kt=1;Kt<=40;Kt++)if(zt<=ht.getCapacity(Kt,Vt,jt))return Kt}function kt(jt,zt){return $t.getCharCountIndicator(jt,zt)+4}function Mt(jt,zt){let Vt=0;return jt.forEach(function(Kt){const Xt=kt(Kt.mode,zt);Vt+=Xt+Kt.getBitsLength()}),Vt}function Nt(jt,zt){for(let Vt=1;Vt<=40;Vt++)if(Mt(jt,Vt)<=ht.getCapacity(Vt,zt,$t.MIXED))return Vt}ht.from=function(zt,Vt){return At.isValid(zt)?parseInt(zt,10):Vt},ht.getCapacity=function(zt,Vt,Kt){if(!At.isValid(zt))throw new Error("Invalid QR Code version");typeof Kt>"u"&&(Kt=$t.BYTE);const Xt=Et.getSymbolTotalCodewords(zt),Qt=yt.getTotalCodewordsCount(zt,Vt),Zt=(Xt-Qt)*8;if(Kt===$t.MIXED)return Zt;const dr=Zt-kt(Kt,zt);switch(Kt){case $t.NUMERIC:return Math.floor(dr/10*3);case $t.ALPHANUMERIC:return Math.floor(dr/11*2);case $t.KANJI:return Math.floor(dr/13);case $t.BYTE:default:return Math.floor(dr/8)}},ht.getBestVersionForData=function(zt,Vt){let Kt;const Xt=Ct.from(Vt,Ct.M);if(Array.isArray(zt)){if(zt.length>1)return Nt(zt,Xt);if(zt.length===0)return 1;Kt=zt[0]}else Kt=zt;return Ft(Kt.mode,Kt.getLength(),Xt)},ht.getEncodedBits=function(zt){if(!At.isValid(zt)||zt<7)throw new Error("Invalid QR Code version");let Vt=zt<<12;for(;Et.getBCHDigit(Vt)-Dt>=0;)Vt^=Bt<<Et.getBCHDigit(Vt)-Dt;return zt<<12|Vt}})(version$4);var formatInfo={};const Utils$3=utils$2,G15=1335,G15_MASK=21522,G15_BCH=Utils$3.getBCHDigit(G15);formatInfo.getEncodedBits=function ht(Et,yt){const Ct=Et.bit<<3|yt;let $t=Ct<<10;for(;Utils$3.getBCHDigit($t)-G15_BCH>=0;)$t^=G15<<Utils$3.getBCHDigit($t)-G15_BCH;return(Ct<<10|$t)^G15_MASK};var segments={};const Mode$4=mode;function NumericData(ht){this.mode=Mode$4.NUMERIC,this.data=ht.toString()}NumericData.getBitsLength=function ht(Et){return 10*Math.floor(Et/3)+(Et%3?Et%3*3+1:0)};NumericData.prototype.getLength=function ht(){return this.data.length};NumericData.prototype.getBitsLength=function ht(){return NumericData.getBitsLength(this.data.length)};NumericData.prototype.write=function ht(Et){let yt,Ct,$t;for(yt=0;yt+3<=this.data.length;yt+=3)Ct=this.data.substr(yt,3),$t=parseInt(Ct,10),Et.put($t,10);const At=this.data.length-yt;At>0&&(Ct=this.data.substr(yt),$t=parseInt(Ct,10),Et.put($t,At*3+1))};var numericData=NumericData;const Mode$3=mode,ALPHA_NUM_CHARS=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function AlphanumericData(ht){this.mode=Mode$3.ALPHANUMERIC,this.data=ht}AlphanumericData.getBitsLength=function ht(Et){return 11*Math.floor(Et/2)+6*(Et%2)};AlphanumericData.prototype.getLength=function ht(){return this.data.length};AlphanumericData.prototype.getBitsLength=function ht(){return AlphanumericData.getBitsLength(this.data.length)};AlphanumericData.prototype.write=function ht(Et){let yt;for(yt=0;yt+2<=this.data.length;yt+=2){let Ct=ALPHA_NUM_CHARS.indexOf(this.data[yt])*45;Ct+=ALPHA_NUM_CHARS.indexOf(this.data[yt+1]),Et.put(Ct,11)}this.data.length%2&&Et.put(ALPHA_NUM_CHARS.indexOf(this.data[yt]),6)};var alphanumericData=AlphanumericData,encodeUtf8$1=function ht(Et){for(var yt=[],Ct=Et.length,$t=0;$t<Ct;$t++){var At=Et.charCodeAt($t);if(At>=55296&&At<=56319&&Ct>$t+1){var Bt=Et.charCodeAt($t+1);Bt>=56320&&Bt<=57343&&(At=(At-55296)*1024+Bt-56320+65536,$t+=1)}if(At<128){yt.push(At);continue}if(At<2048){yt.push(At>>6|192),yt.push(At&63|128);continue}if(At<55296||At>=57344&&At<65536){yt.push(At>>12|224),yt.push(At>>6&63|128),yt.push(At&63|128);continue}if(At>=65536&&At<=1114111){yt.push(At>>18|240),yt.push(At>>12&63|128),yt.push(At>>6&63|128),yt.push(At&63|128);continue}yt.push(239,191,189)}return new Uint8Array(yt).buffer};const encodeUtf8=encodeUtf8$1,Mode$2=mode;function ByteData(ht){this.mode=Mode$2.BYTE,this.data=new Uint8Array(encodeUtf8(ht))}ByteData.getBitsLength=function ht(Et){return Et*8};ByteData.prototype.getLength=function ht(){return this.data.length};ByteData.prototype.getBitsLength=function ht(){return ByteData.getBitsLength(this.data.length)};ByteData.prototype.write=function(ht){for(let Et=0,yt=this.data.length;Et<yt;Et++)ht.put(this.data[Et],8)};var byteData=ByteData;const Mode$1=mode,Utils$2=utils$2;function KanjiData(ht){this.mode=Mode$1.KANJI,this.data=ht}KanjiData.getBitsLength=function ht(Et){return Et*13};KanjiData.prototype.getLength=function ht(){return this.data.length};KanjiData.prototype.getBitsLength=function ht(){return KanjiData.getBitsLength(this.data.length)};KanjiData.prototype.write=function(ht){let Et;for(Et=0;Et<this.data.length;Et++){let yt=Utils$2.toSJIS(this.data[Et]);if(yt>=33088&&yt<=40956)yt-=33088;else if(yt>=57408&&yt<=60351)yt-=49472;else throw new Error("Invalid SJIS character: "+this.data[Et]+`
Make sure your charset is UTF-8`);yt=(yt>>>8&255)*192+(yt&255),ht.put(yt,13)}};var kanjiData=KanjiData,dijkstra={exports:{}};(function(ht){var Et={single_source_shortest_paths:function(yt,Ct,$t){var At={},Bt={};Bt[Ct]=0;var Dt=Et.PriorityQueue.make();Dt.push(Ct,0);for(var Ft,kt,Mt,Nt,jt,zt,Vt,Kt,Xt;!Dt.empty();){Ft=Dt.pop(),kt=Ft.value,Nt=Ft.cost,jt=yt[kt]||{};for(Mt in jt)jt.hasOwnProperty(Mt)&&(zt=jt[Mt],Vt=Nt+zt,Kt=Bt[Mt],Xt=typeof Bt[Mt]>"u",(Xt||Kt>Vt)&&(Bt[Mt]=Vt,Dt.push(Mt,Vt),At[Mt]=kt))}if(typeof $t<"u"&&typeof Bt[$t]>"u"){var Qt=["Could not find a path from ",Ct," to ",$t,"."].join("");throw new Error(Qt)}return At},extract_shortest_path_from_predecessor_list:function(yt,Ct){for(var $t=[],At=Ct;At;)$t.push(At),yt[At],At=yt[At];return $t.reverse(),$t},find_path:function(yt,Ct,$t){var At=Et.single_source_shortest_paths(yt,Ct,$t);return Et.extract_shortest_path_from_predecessor_list(At,$t)},PriorityQueue:{make:function(yt){var Ct=Et.PriorityQueue,$t={},At;yt=yt||{};for(At in Ct)Ct.hasOwnProperty(At)&&($t[At]=Ct[At]);return $t.queue=[],$t.sorter=yt.sorter||Ct.default_sorter,$t},default_sorter:function(yt,Ct){return yt.cost-Ct.cost},push:function(yt,Ct){var $t={value:yt,cost:Ct};this.queue.push($t),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};ht.exports=Et})(dijkstra);var dijkstraExports=dijkstra.exports;(function(ht){const Et=mode,yt=numericData,Ct=alphanumericData,$t=byteData,At=kanjiData,Bt=regex$2,Dt=utils$2,Ft=dijkstraExports;function kt(Qt){return unescape(encodeURIComponent(Qt)).length}function Mt(Qt,Zt,dr){const cr=[];let Er;for(;(Er=Qt.exec(dr))!==null;)cr.push({data:Er[0],index:Er.index,mode:Zt,length:Er[0].length});return cr}function Nt(Qt){const Zt=Mt(Bt.NUMERIC,Et.NUMERIC,Qt),dr=Mt(Bt.ALPHANUMERIC,Et.ALPHANUMERIC,Qt);let cr,Er;return Dt.isKanjiModeEnabled()?(cr=Mt(Bt.BYTE,Et.BYTE,Qt),Er=Mt(Bt.KANJI,Et.KANJI,Qt)):(cr=Mt(Bt.BYTE_KANJI,Et.BYTE,Qt),Er=[]),Zt.concat(dr,cr,Er).sort(function(gr,vr){return gr.index-vr.index}).map(function(gr){return{data:gr.data,mode:gr.mode,length:gr.length}})}function jt(Qt,Zt){switch(Zt){case Et.NUMERIC:return yt.getBitsLength(Qt);case Et.ALPHANUMERIC:return Ct.getBitsLength(Qt);case Et.KANJI:return At.getBitsLength(Qt);case Et.BYTE:return $t.getBitsLength(Qt)}}function zt(Qt){return Qt.reduce(function(Zt,dr){const cr=Zt.length-1>=0?Zt[Zt.length-1]:null;return cr&&cr.mode===dr.mode?(Zt[Zt.length-1].data+=dr.data,Zt):(Zt.push(dr),Zt)},[])}function Vt(Qt){const Zt=[];for(let dr=0;dr<Qt.length;dr++){const cr=Qt[dr];switch(cr.mode){case Et.NUMERIC:Zt.push([cr,{data:cr.data,mode:Et.ALPHANUMERIC,length:cr.length},{data:cr.data,mode:Et.BYTE,length:cr.length}]);break;case Et.ALPHANUMERIC:Zt.push([cr,{data:cr.data,mode:Et.BYTE,length:cr.length}]);break;case Et.KANJI:Zt.push([cr,{data:cr.data,mode:Et.BYTE,length:kt(cr.data)}]);break;case Et.BYTE:Zt.push([{data:cr.data,mode:Et.BYTE,length:kt(cr.data)}])}}return Zt}function Kt(Qt,Zt){const dr={},cr={start:{}};let Er=["start"];for(let pr=0;pr<Qt.length;pr++){const gr=Qt[pr],vr=[];for(let yr=0;yr<gr.length;yr++){const xr=gr[yr],rr=""+pr+yr;vr.push(rr),dr[rr]={node:xr,lastCount:0},cr[rr]={};for(let Lt=0;Lt<Er.length;Lt++){const Ht=Er[Lt];dr[Ht]&&dr[Ht].node.mode===xr.mode?(cr[Ht][rr]=jt(dr[Ht].lastCount+xr.length,xr.mode)-jt(dr[Ht].lastCount,xr.mode),dr[Ht].lastCount+=xr.length):(dr[Ht]&&(dr[Ht].lastCount=xr.length),cr[Ht][rr]=jt(xr.length,xr.mode)+4+Et.getCharCountIndicator(xr.mode,Zt))}}Er=vr}for(let pr=0;pr<Er.length;pr++)cr[Er[pr]].end=0;return{map:cr,table:dr}}function Xt(Qt,Zt){let dr;const cr=Et.getBestModeForData(Qt);if(dr=Et.from(Zt,cr),dr!==Et.BYTE&&dr.bit<cr.bit)throw new Error('"'+Qt+'" cannot be encoded with mode '+Et.toString(dr)+`.
 Suggested mode is: `+Et.toString(cr));switch(dr===Et.KANJI&&!Dt.isKanjiModeEnabled()&&(dr=Et.BYTE),dr){case Et.NUMERIC:return new yt(Qt);case Et.ALPHANUMERIC:return new Ct(Qt);case Et.KANJI:return new At(Qt);case Et.BYTE:return new $t(Qt)}}ht.fromArray=function(Zt){return Zt.reduce(function(dr,cr){return typeof cr=="string"?dr.push(Xt(cr,null)):cr.data&&dr.push(Xt(cr.data,cr.mode)),dr},[])},ht.fromString=function(Zt,dr){const cr=Nt(Zt,Dt.isKanjiModeEnabled()),Er=Vt(cr),pr=Kt(Er,dr),gr=Ft.find_path(pr.map,"start","end"),vr=[];for(let yr=1;yr<gr.length-1;yr++)vr.push(pr.table[gr[yr]].node);return ht.fromArray(zt(vr))},ht.rawSplit=function(Zt){return ht.fromArray(Nt(Zt,Dt.isKanjiModeEnabled()))}})(segments);const Utils$1=utils$2,ECLevel=errorCorrectionLevel,BitBuffer=bitBuffer,BitMatrix=bitMatrix,AlignmentPattern=alignmentPattern,FinderPattern=finderPattern,MaskPattern=maskPattern,ECCode=errorCorrectionCode,ReedSolomonEncoder=reedSolomonEncoder,Version=version$4,FormatInfo=formatInfo,Mode=mode,Segments=segments;function setupFinderPattern(ht,Et){const yt=ht.size,Ct=FinderPattern.getPositions(Et);for(let $t=0;$t<Ct.length;$t++){const At=Ct[$t][0],Bt=Ct[$t][1];for(let Dt=-1;Dt<=7;Dt++)if(!(At+Dt<=-1||yt<=At+Dt))for(let Ft=-1;Ft<=7;Ft++)Bt+Ft<=-1||yt<=Bt+Ft||(Dt>=0&&Dt<=6&&(Ft===0||Ft===6)||Ft>=0&&Ft<=6&&(Dt===0||Dt===6)||Dt>=2&&Dt<=4&&Ft>=2&&Ft<=4?ht.set(At+Dt,Bt+Ft,!0,!0):ht.set(At+Dt,Bt+Ft,!1,!0))}}function setupTimingPattern(ht){const Et=ht.size;for(let yt=8;yt<Et-8;yt++){const Ct=yt%2===0;ht.set(yt,6,Ct,!0),ht.set(6,yt,Ct,!0)}}function setupAlignmentPattern(ht,Et){const yt=AlignmentPattern.getPositions(Et);for(let Ct=0;Ct<yt.length;Ct++){const $t=yt[Ct][0],At=yt[Ct][1];for(let Bt=-2;Bt<=2;Bt++)for(let Dt=-2;Dt<=2;Dt++)Bt===-2||Bt===2||Dt===-2||Dt===2||Bt===0&&Dt===0?ht.set($t+Bt,At+Dt,!0,!0):ht.set($t+Bt,At+Dt,!1,!0)}}function setupVersionInfo(ht,Et){const yt=ht.size,Ct=Version.getEncodedBits(Et);let $t,At,Bt;for(let Dt=0;Dt<18;Dt++)$t=Math.floor(Dt/3),At=Dt%3+yt-8-3,Bt=(Ct>>Dt&1)===1,ht.set($t,At,Bt,!0),ht.set(At,$t,Bt,!0)}function setupFormatInfo(ht,Et,yt){const Ct=ht.size,$t=FormatInfo.getEncodedBits(Et,yt);let At,Bt;for(At=0;At<15;At++)Bt=($t>>At&1)===1,At<6?ht.set(At,8,Bt,!0):At<8?ht.set(At+1,8,Bt,!0):ht.set(Ct-15+At,8,Bt,!0),At<8?ht.set(8,Ct-At-1,Bt,!0):At<9?ht.set(8,15-At-1+1,Bt,!0):ht.set(8,15-At-1,Bt,!0);ht.set(Ct-8,8,1,!0)}function setupData(ht,Et){const yt=ht.size;let Ct=-1,$t=yt-1,At=7,Bt=0;for(let Dt=yt-1;Dt>0;Dt-=2)for(Dt===6&&Dt--;;){for(let Ft=0;Ft<2;Ft++)if(!ht.isReserved($t,Dt-Ft)){let kt=!1;Bt<Et.length&&(kt=(Et[Bt]>>>At&1)===1),ht.set($t,Dt-Ft,kt),At--,At===-1&&(Bt++,At=7)}if($t+=Ct,$t<0||yt<=$t){$t-=Ct,Ct=-Ct;break}}}function createData(ht,Et,yt){const Ct=new BitBuffer;yt.forEach(function(Ft){Ct.put(Ft.mode.bit,4),Ct.put(Ft.getLength(),Mode.getCharCountIndicator(Ft.mode,ht)),Ft.write(Ct)});const $t=Utils$1.getSymbolTotalCodewords(ht),At=ECCode.getTotalCodewordsCount(ht,Et),Bt=($t-At)*8;for(Ct.getLengthInBits()+4<=Bt&&Ct.put(0,4);Ct.getLengthInBits()%8!==0;)Ct.putBit(0);const Dt=(Bt-Ct.getLengthInBits())/8;for(let Ft=0;Ft<Dt;Ft++)Ct.put(Ft%2?17:236,8);return createCodewords(Ct,ht,Et)}function createCodewords(ht,Et,yt){const Ct=Utils$1.getSymbolTotalCodewords(Et),$t=ECCode.getTotalCodewordsCount(Et,yt),At=Ct-$t,Bt=ECCode.getBlocksCount(Et,yt),Dt=Ct%Bt,Ft=Bt-Dt,kt=Math.floor(Ct/Bt),Mt=Math.floor(At/Bt),Nt=Mt+1,jt=kt-Mt,zt=new ReedSolomonEncoder(jt);let Vt=0;const Kt=new Array(Bt),Xt=new Array(Bt);let Qt=0;const Zt=new Uint8Array(ht.buffer);for(let gr=0;gr<Bt;gr++){const vr=gr<Ft?Mt:Nt;Kt[gr]=Zt.slice(Vt,Vt+vr),Xt[gr]=zt.encode(Kt[gr]),Vt+=vr,Qt=Math.max(Qt,vr)}const dr=new Uint8Array(Ct);let cr=0,Er,pr;for(Er=0;Er<Qt;Er++)for(pr=0;pr<Bt;pr++)Er<Kt[pr].length&&(dr[cr++]=Kt[pr][Er]);for(Er=0;Er<jt;Er++)for(pr=0;pr<Bt;pr++)dr[cr++]=Xt[pr][Er];return dr}function createSymbol$1(ht,Et,yt,Ct){let $t;if(Array.isArray(ht))$t=Segments.fromArray(ht);else if(typeof ht=="string"){let kt=Et;if(!kt){const Mt=Segments.rawSplit(ht);kt=Version.getBestVersionForData(Mt,yt)}$t=Segments.fromString(ht,kt||40)}else throw new Error("Invalid data");const At=Version.getBestVersionForData($t,yt);if(!At)throw new Error("The amount of data is too big to be stored in a QR Code");if(!Et)Et=At;else if(Et<At)throw new Error(`
The chosen QR Code version cannot contain this amount of data.
Minimum version required to store current data is: `+At+`.
`);const Bt=createData(Et,yt,$t),Dt=Utils$1.getSymbolSize(Et),Ft=new BitMatrix(Dt);return setupFinderPattern(Ft,Et),setupTimingPattern(Ft),setupAlignmentPattern(Ft,Et),setupFormatInfo(Ft,yt,0),Et>=7&&setupVersionInfo(Ft,Et),setupData(Ft,Bt),isNaN(Ct)&&(Ct=MaskPattern.getBestMask(Ft,setupFormatInfo.bind(null,Ft,yt))),MaskPattern.applyMask(Ct,Ft),setupFormatInfo(Ft,yt,Ct),{modules:Ft,version:Et,errorCorrectionLevel:yt,maskPattern:Ct,segments:$t}}qrcode.create=function ht(Et,yt){if(typeof Et>"u"||Et==="")throw new Error("No input text");let Ct=ECLevel.M,$t,At;return typeof yt<"u"&&(Ct=ECLevel.from(yt.errorCorrectionLevel,ECLevel.M),$t=Version.from(yt.version),At=MaskPattern.from(yt.maskPattern),yt.toSJISFunc&&Utils$1.setToSJISFunction(yt.toSJISFunc)),createSymbol$1(Et,$t,Ct,At)};var canvas={},utils$1={};(function(ht){function Et(yt){if(typeof yt=="number"&&(yt=yt.toString()),typeof yt!="string")throw new Error("Color should be defined as hex string");let Ct=yt.slice().replace("#","").split("");if(Ct.length<3||Ct.length===5||Ct.length>8)throw new Error("Invalid hex color: "+yt);(Ct.length===3||Ct.length===4)&&(Ct=Array.prototype.concat.apply([],Ct.map(function(At){return[At,At]}))),Ct.length===6&&Ct.push("F","F");const $t=parseInt(Ct.join(""),16);return{r:$t>>24&255,g:$t>>16&255,b:$t>>8&255,a:$t&255,hex:"#"+Ct.slice(0,6).join("")}}ht.getOptions=function(Ct){Ct||(Ct={}),Ct.color||(Ct.color={});const $t=typeof Ct.margin>"u"||Ct.margin===null||Ct.margin<0?4:Ct.margin,At=Ct.width&&Ct.width>=21?Ct.width:void 0,Bt=Ct.scale||4;return{width:At,scale:At?4:Bt,margin:$t,color:{dark:Et(Ct.color.dark||"#000000ff"),light:Et(Ct.color.light||"#ffffffff")},type:Ct.type,rendererOpts:Ct.rendererOpts||{}}},ht.getScale=function(Ct,$t){return $t.width&&$t.width>=Ct+$t.margin*2?$t.width/(Ct+$t.margin*2):$t.scale},ht.getImageWidth=function(Ct,$t){const At=ht.getScale(Ct,$t);return Math.floor((Ct+$t.margin*2)*At)},ht.qrToImageData=function(Ct,$t,At){const Bt=$t.modules.size,Dt=$t.modules.data,Ft=ht.getScale(Bt,At),kt=Math.floor((Bt+At.margin*2)*Ft),Mt=At.margin*Ft,Nt=[At.color.light,At.color.dark];for(let jt=0;jt<kt;jt++)for(let zt=0;zt<kt;zt++){let Vt=(jt*kt+zt)*4,Kt=At.color.light;if(jt>=Mt&&zt>=Mt&&jt<kt-Mt&&zt<kt-Mt){const Xt=Math.floor((jt-Mt)/Ft),Qt=Math.floor((zt-Mt)/Ft);Kt=Nt[Dt[Xt*Bt+Qt]?1:0]}Ct[Vt++]=Kt.r,Ct[Vt++]=Kt.g,Ct[Vt++]=Kt.b,Ct[Vt]=Kt.a}}})(utils$1);(function(ht){const Et=utils$1;function yt($t,At,Bt){$t.clearRect(0,0,At.width,At.height),At.style||(At.style={}),At.height=Bt,At.width=Bt,At.style.height=Bt+"px",At.style.width=Bt+"px"}function Ct(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}ht.render=function(At,Bt,Dt){let Ft=Dt,kt=Bt;typeof Ft>"u"&&(!Bt||!Bt.getContext)&&(Ft=Bt,Bt=void 0),Bt||(kt=Ct()),Ft=Et.getOptions(Ft);const Mt=Et.getImageWidth(At.modules.size,Ft),Nt=kt.getContext("2d"),jt=Nt.createImageData(Mt,Mt);return Et.qrToImageData(jt.data,At,Ft),yt(Nt,kt,Mt),Nt.putImageData(jt,0,0),kt},ht.renderToDataURL=function(At,Bt,Dt){let Ft=Dt;typeof Ft>"u"&&(!Bt||!Bt.getContext)&&(Ft=Bt,Bt=void 0),Ft||(Ft={});const kt=ht.render(At,Bt,Ft),Mt=Ft.type||"image/png",Nt=Ft.rendererOpts||{};return kt.toDataURL(Mt,Nt.quality)}})(canvas);var svgTag={};const Utils=utils$1;function getColorAttrib(ht,Et){const yt=ht.a/255,Ct=Et+'="'+ht.hex+'"';return yt<1?Ct+" "+Et+'-opacity="'+yt.toFixed(2).slice(1)+'"':Ct}function svgCmd(ht,Et,yt){let Ct=ht+Et;return typeof yt<"u"&&(Ct+=" "+yt),Ct}function qrToPath(ht,Et,yt){let Ct="",$t=0,At=!1,Bt=0;for(let Dt=0;Dt<ht.length;Dt++){const Ft=Math.floor(Dt%Et),kt=Math.floor(Dt/Et);!Ft&&!At&&(At=!0),ht[Dt]?(Bt++,Dt>0&&Ft>0&&ht[Dt-1]||(Ct+=At?svgCmd("M",Ft+yt,.5+kt+yt):svgCmd("m",$t,0),$t=0,At=!1),Ft+1<Et&&ht[Dt+1]||(Ct+=svgCmd("h",Bt),Bt=0)):$t++}return Ct}svgTag.render=function ht(Et,yt,Ct){const $t=Utils.getOptions(yt),At=Et.modules.size,Bt=Et.modules.data,Dt=At+$t.margin*2,Ft=$t.color.light.a?"<path "+getColorAttrib($t.color.light,"fill")+' d="M0 0h'+Dt+"v"+Dt+'H0z"/>':"",kt="<path "+getColorAttrib($t.color.dark,"stroke")+' d="'+qrToPath(Bt,At,$t.margin)+'"/>',Mt='viewBox="0 0 '+Dt+" "+Dt+'"',jt='<svg xmlns="http://www.w3.org/2000/svg" '+($t.width?'width="'+$t.width+'" height="'+$t.width+'" ':"")+Mt+' shape-rendering="crispEdges">'+Ft+kt+`</svg>
`;return typeof Ct=="function"&&Ct(null,jt),jt};const canPromise=canPromise$1,QRCode$1=qrcode,CanvasRenderer=canvas,SvgRenderer=svgTag;function renderCanvas(ht,Et,yt,Ct,$t){const At=[].slice.call(arguments,1),Bt=At.length,Dt=typeof At[Bt-1]=="function";if(!Dt&&!canPromise())throw new Error("Callback required as last argument");if(Dt){if(Bt<2)throw new Error("Too few arguments provided");Bt===2?($t=yt,yt=Et,Et=Ct=void 0):Bt===3&&(Et.getContext&&typeof $t>"u"?($t=Ct,Ct=void 0):($t=Ct,Ct=yt,yt=Et,Et=void 0))}else{if(Bt<1)throw new Error("Too few arguments provided");return Bt===1?(yt=Et,Et=Ct=void 0):Bt===2&&!Et.getContext&&(Ct=yt,yt=Et,Et=void 0),new Promise(function(Ft,kt){try{const Mt=QRCode$1.create(yt,Ct);Ft(ht(Mt,Et,Ct))}catch(Mt){kt(Mt)}})}try{const Ft=QRCode$1.create(yt,Ct);$t(null,ht(Ft,Et,Ct))}catch(Ft){$t(Ft)}}browser.create=QRCode$1.create;browser.toCanvas=renderCanvas.bind(null,CanvasRenderer.render);browser.toDataURL=renderCanvas.bind(null,CanvasRenderer.renderToDataURL);browser.toString=renderCanvas.bind(null,function(ht,Et,yt){return SvgRenderer.render(ht,yt)});var largeScreenMinWidth=768;createMapValueFn({conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0}});createNormalizeValueFn({conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0}});var sprinkles=createSprinkles({conditions:{defaultCondition:"base",conditionNames:["base","hover","active"],responsiveArray:void 0},styles:{background:{values:{accentColor:{conditions:{base:"ju367v9h",hover:"ju367v9i",active:"ju367v9j"},defaultClass:"ju367v9h"},accentColorForeground:{conditions:{base:"ju367v9k",hover:"ju367v9l",active:"ju367v9m"},defaultClass:"ju367v9k"},actionButtonBorder:{conditions:{base:"ju367v9n",hover:"ju367v9o",active:"ju367v9p"},defaultClass:"ju367v9n"},actionButtonBorderMobile:{conditions:{base:"ju367v9q",hover:"ju367v9r",active:"ju367v9s"},defaultClass:"ju367v9q"},actionButtonSecondaryBackground:{conditions:{base:"ju367v9t",hover:"ju367v9u",active:"ju367v9v"},defaultClass:"ju367v9t"},closeButton:{conditions:{base:"ju367v9w",hover:"ju367v9x",active:"ju367v9y"},defaultClass:"ju367v9w"},closeButtonBackground:{conditions:{base:"ju367v9z",hover:"ju367va0",active:"ju367va1"},defaultClass:"ju367v9z"},connectButtonBackground:{conditions:{base:"ju367va2",hover:"ju367va3",active:"ju367va4"},defaultClass:"ju367va2"},connectButtonBackgroundError:{conditions:{base:"ju367va5",hover:"ju367va6",active:"ju367va7"},defaultClass:"ju367va5"},connectButtonInnerBackground:{conditions:{base:"ju367va8",hover:"ju367va9",active:"ju367vaa"},defaultClass:"ju367va8"},connectButtonText:{conditions:{base:"ju367vab",hover:"ju367vac",active:"ju367vad"},defaultClass:"ju367vab"},connectButtonTextError:{conditions:{base:"ju367vae",hover:"ju367vaf",active:"ju367vag"},defaultClass:"ju367vae"},connectionIndicator:{conditions:{base:"ju367vah",hover:"ju367vai",active:"ju367vaj"},defaultClass:"ju367vah"},downloadBottomCardBackground:{conditions:{base:"ju367vak",hover:"ju367val",active:"ju367vam"},defaultClass:"ju367vak"},downloadTopCardBackground:{conditions:{base:"ju367van",hover:"ju367vao",active:"ju367vap"},defaultClass:"ju367van"},error:{conditions:{base:"ju367vaq",hover:"ju367var",active:"ju367vas"},defaultClass:"ju367vaq"},generalBorder:{conditions:{base:"ju367vat",hover:"ju367vau",active:"ju367vav"},defaultClass:"ju367vat"},generalBorderDim:{conditions:{base:"ju367vaw",hover:"ju367vax",active:"ju367vay"},defaultClass:"ju367vaw"},menuItemBackground:{conditions:{base:"ju367vaz",hover:"ju367vb0",active:"ju367vb1"},defaultClass:"ju367vaz"},modalBackdrop:{conditions:{base:"ju367vb2",hover:"ju367vb3",active:"ju367vb4"},defaultClass:"ju367vb2"},modalBackground:{conditions:{base:"ju367vb5",hover:"ju367vb6",active:"ju367vb7"},defaultClass:"ju367vb5"},modalBorder:{conditions:{base:"ju367vb8",hover:"ju367vb9",active:"ju367vba"},defaultClass:"ju367vb8"},modalText:{conditions:{base:"ju367vbb",hover:"ju367vbc",active:"ju367vbd"},defaultClass:"ju367vbb"},modalTextDim:{conditions:{base:"ju367vbe",hover:"ju367vbf",active:"ju367vbg"},defaultClass:"ju367vbe"},modalTextSecondary:{conditions:{base:"ju367vbh",hover:"ju367vbi",active:"ju367vbj"},defaultClass:"ju367vbh"},profileAction:{conditions:{base:"ju367vbk",hover:"ju367vbl",active:"ju367vbm"},defaultClass:"ju367vbk"},profileActionHover:{conditions:{base:"ju367vbn",hover:"ju367vbo",active:"ju367vbp"},defaultClass:"ju367vbn"},profileForeground:{conditions:{base:"ju367vbq",hover:"ju367vbr",active:"ju367vbs"},defaultClass:"ju367vbq"},selectedOptionBorder:{conditions:{base:"ju367vbt",hover:"ju367vbu",active:"ju367vbv"},defaultClass:"ju367vbt"},standby:{conditions:{base:"ju367vbw",hover:"ju367vbx",active:"ju367vby"},defaultClass:"ju367vbw"}}},borderColor:{values:{accentColor:{conditions:{base:"ju367vbz",hover:"ju367vc0",active:"ju367vc1"},defaultClass:"ju367vbz"},accentColorForeground:{conditions:{base:"ju367vc2",hover:"ju367vc3",active:"ju367vc4"},defaultClass:"ju367vc2"},actionButtonBorder:{conditions:{base:"ju367vc5",hover:"ju367vc6",active:"ju367vc7"},defaultClass:"ju367vc5"},actionButtonBorderMobile:{conditions:{base:"ju367vc8",hover:"ju367vc9",active:"ju367vca"},defaultClass:"ju367vc8"},actionButtonSecondaryBackground:{conditions:{base:"ju367vcb",hover:"ju367vcc",active:"ju367vcd"},defaultClass:"ju367vcb"},closeButton:{conditions:{base:"ju367vce",hover:"ju367vcf",active:"ju367vcg"},defaultClass:"ju367vce"},closeButtonBackground:{conditions:{base:"ju367vch",hover:"ju367vci",active:"ju367vcj"},defaultClass:"ju367vch"},connectButtonBackground:{conditions:{base:"ju367vck",hover:"ju367vcl",active:"ju367vcm"},defaultClass:"ju367vck"},connectButtonBackgroundError:{conditions:{base:"ju367vcn",hover:"ju367vco",active:"ju367vcp"},defaultClass:"ju367vcn"},connectButtonInnerBackground:{conditions:{base:"ju367vcq",hover:"ju367vcr",active:"ju367vcs"},defaultClass:"ju367vcq"},connectButtonText:{conditions:{base:"ju367vct",hover:"ju367vcu",active:"ju367vcv"},defaultClass:"ju367vct"},connectButtonTextError:{conditions:{base:"ju367vcw",hover:"ju367vcx",active:"ju367vcy"},defaultClass:"ju367vcw"},connectionIndicator:{conditions:{base:"ju367vcz",hover:"ju367vd0",active:"ju367vd1"},defaultClass:"ju367vcz"},downloadBottomCardBackground:{conditions:{base:"ju367vd2",hover:"ju367vd3",active:"ju367vd4"},defaultClass:"ju367vd2"},downloadTopCardBackground:{conditions:{base:"ju367vd5",hover:"ju367vd6",active:"ju367vd7"},defaultClass:"ju367vd5"},error:{conditions:{base:"ju367vd8",hover:"ju367vd9",active:"ju367vda"},defaultClass:"ju367vd8"},generalBorder:{conditions:{base:"ju367vdb",hover:"ju367vdc",active:"ju367vdd"},defaultClass:"ju367vdb"},generalBorderDim:{conditions:{base:"ju367vde",hover:"ju367vdf",active:"ju367vdg"},defaultClass:"ju367vde"},menuItemBackground:{conditions:{base:"ju367vdh",hover:"ju367vdi",active:"ju367vdj"},defaultClass:"ju367vdh"},modalBackdrop:{conditions:{base:"ju367vdk",hover:"ju367vdl",active:"ju367vdm"},defaultClass:"ju367vdk"},modalBackground:{conditions:{base:"ju367vdn",hover:"ju367vdo",active:"ju367vdp"},defaultClass:"ju367vdn"},modalBorder:{conditions:{base:"ju367vdq",hover:"ju367vdr",active:"ju367vds"},defaultClass:"ju367vdq"},modalText:{conditions:{base:"ju367vdt",hover:"ju367vdu",active:"ju367vdv"},defaultClass:"ju367vdt"},modalTextDim:{conditions:{base:"ju367vdw",hover:"ju367vdx",active:"ju367vdy"},defaultClass:"ju367vdw"},modalTextSecondary:{conditions:{base:"ju367vdz",hover:"ju367ve0",active:"ju367ve1"},defaultClass:"ju367vdz"},profileAction:{conditions:{base:"ju367ve2",hover:"ju367ve3",active:"ju367ve4"},defaultClass:"ju367ve2"},profileActionHover:{conditions:{base:"ju367ve5",hover:"ju367ve6",active:"ju367ve7"},defaultClass:"ju367ve5"},profileForeground:{conditions:{base:"ju367ve8",hover:"ju367ve9",active:"ju367vea"},defaultClass:"ju367ve8"},selectedOptionBorder:{conditions:{base:"ju367veb",hover:"ju367vec",active:"ju367ved"},defaultClass:"ju367veb"},standby:{conditions:{base:"ju367vee",hover:"ju367vef",active:"ju367veg"},defaultClass:"ju367vee"}}},boxShadow:{values:{connectButton:{conditions:{base:"ju367veh",hover:"ju367vei",active:"ju367vej"},defaultClass:"ju367veh"},dialog:{conditions:{base:"ju367vek",hover:"ju367vel",active:"ju367vem"},defaultClass:"ju367vek"},profileDetailsAction:{conditions:{base:"ju367ven",hover:"ju367veo",active:"ju367vep"},defaultClass:"ju367ven"},selectedOption:{conditions:{base:"ju367veq",hover:"ju367ver",active:"ju367ves"},defaultClass:"ju367veq"},selectedWallet:{conditions:{base:"ju367vet",hover:"ju367veu",active:"ju367vev"},defaultClass:"ju367vet"},walletLogo:{conditions:{base:"ju367vew",hover:"ju367vex",active:"ju367vey"},defaultClass:"ju367vew"}}},color:{values:{accentColor:{conditions:{base:"ju367vez",hover:"ju367vf0",active:"ju367vf1"},defaultClass:"ju367vez"},accentColorForeground:{conditions:{base:"ju367vf2",hover:"ju367vf3",active:"ju367vf4"},defaultClass:"ju367vf2"},actionButtonBorder:{conditions:{base:"ju367vf5",hover:"ju367vf6",active:"ju367vf7"},defaultClass:"ju367vf5"},actionButtonBorderMobile:{conditions:{base:"ju367vf8",hover:"ju367vf9",active:"ju367vfa"},defaultClass:"ju367vf8"},actionButtonSecondaryBackground:{conditions:{base:"ju367vfb",hover:"ju367vfc",active:"ju367vfd"},defaultClass:"ju367vfb"},closeButton:{conditions:{base:"ju367vfe",hover:"ju367vff",active:"ju367vfg"},defaultClass:"ju367vfe"},closeButtonBackground:{conditions:{base:"ju367vfh",hover:"ju367vfi",active:"ju367vfj"},defaultClass:"ju367vfh"},connectButtonBackground:{conditions:{base:"ju367vfk",hover:"ju367vfl",active:"ju367vfm"},defaultClass:"ju367vfk"},connectButtonBackgroundError:{conditions:{base:"ju367vfn",hover:"ju367vfo",active:"ju367vfp"},defaultClass:"ju367vfn"},connectButtonInnerBackground:{conditions:{base:"ju367vfq",hover:"ju367vfr",active:"ju367vfs"},defaultClass:"ju367vfq"},connectButtonText:{conditions:{base:"ju367vft",hover:"ju367vfu",active:"ju367vfv"},defaultClass:"ju367vft"},connectButtonTextError:{conditions:{base:"ju367vfw",hover:"ju367vfx",active:"ju367vfy"},defaultClass:"ju367vfw"},connectionIndicator:{conditions:{base:"ju367vfz",hover:"ju367vg0",active:"ju367vg1"},defaultClass:"ju367vfz"},downloadBottomCardBackground:{conditions:{base:"ju367vg2",hover:"ju367vg3",active:"ju367vg4"},defaultClass:"ju367vg2"},downloadTopCardBackground:{conditions:{base:"ju367vg5",hover:"ju367vg6",active:"ju367vg7"},defaultClass:"ju367vg5"},error:{conditions:{base:"ju367vg8",hover:"ju367vg9",active:"ju367vga"},defaultClass:"ju367vg8"},generalBorder:{conditions:{base:"ju367vgb",hover:"ju367vgc",active:"ju367vgd"},defaultClass:"ju367vgb"},generalBorderDim:{conditions:{base:"ju367vge",hover:"ju367vgf",active:"ju367vgg"},defaultClass:"ju367vge"},menuItemBackground:{conditions:{base:"ju367vgh",hover:"ju367vgi",active:"ju367vgj"},defaultClass:"ju367vgh"},modalBackdrop:{conditions:{base:"ju367vgk",hover:"ju367vgl",active:"ju367vgm"},defaultClass:"ju367vgk"},modalBackground:{conditions:{base:"ju367vgn",hover:"ju367vgo",active:"ju367vgp"},defaultClass:"ju367vgn"},modalBorder:{conditions:{base:"ju367vgq",hover:"ju367vgr",active:"ju367vgs"},defaultClass:"ju367vgq"},modalText:{conditions:{base:"ju367vgt",hover:"ju367vgu",active:"ju367vgv"},defaultClass:"ju367vgt"},modalTextDim:{conditions:{base:"ju367vgw",hover:"ju367vgx",active:"ju367vgy"},defaultClass:"ju367vgw"},modalTextSecondary:{conditions:{base:"ju367vgz",hover:"ju367vh0",active:"ju367vh1"},defaultClass:"ju367vgz"},profileAction:{conditions:{base:"ju367vh2",hover:"ju367vh3",active:"ju367vh4"},defaultClass:"ju367vh2"},profileActionHover:{conditions:{base:"ju367vh5",hover:"ju367vh6",active:"ju367vh7"},defaultClass:"ju367vh5"},profileForeground:{conditions:{base:"ju367vh8",hover:"ju367vh9",active:"ju367vha"},defaultClass:"ju367vh8"},selectedOptionBorder:{conditions:{base:"ju367vhb",hover:"ju367vhc",active:"ju367vhd"},defaultClass:"ju367vhb"},standby:{conditions:{base:"ju367vhe",hover:"ju367vhf",active:"ju367vhg"},defaultClass:"ju367vhe"}}}}},{conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0},styles:{alignItems:{values:{"flex-start":{conditions:{smallScreen:"ju367v0",largeScreen:"ju367v1"},defaultClass:"ju367v0"},"flex-end":{conditions:{smallScreen:"ju367v2",largeScreen:"ju367v3"},defaultClass:"ju367v2"},center:{conditions:{smallScreen:"ju367v4",largeScreen:"ju367v5"},defaultClass:"ju367v4"}}},display:{values:{none:{conditions:{smallScreen:"ju367v6",largeScreen:"ju367v7"},defaultClass:"ju367v6"},block:{conditions:{smallScreen:"ju367v8",largeScreen:"ju367v9"},defaultClass:"ju367v8"},flex:{conditions:{smallScreen:"ju367va",largeScreen:"ju367vb"},defaultClass:"ju367va"},inline:{conditions:{smallScreen:"ju367vc",largeScreen:"ju367vd"},defaultClass:"ju367vc"}}}}},{conditions:void 0,styles:{margin:{mappings:["marginTop","marginBottom","marginLeft","marginRight"]},marginX:{mappings:["marginLeft","marginRight"]},marginY:{mappings:["marginTop","marginBottom"]},padding:{mappings:["paddingTop","paddingBottom","paddingLeft","paddingRight"]},paddingX:{mappings:["paddingLeft","paddingRight"]},paddingY:{mappings:["paddingTop","paddingBottom"]},alignSelf:{values:{"flex-start":{defaultClass:"ju367ve"},"flex-end":{defaultClass:"ju367vf"},center:{defaultClass:"ju367vg"}}},backgroundSize:{values:{cover:{defaultClass:"ju367vh"}}},borderRadius:{values:{1:{defaultClass:"ju367vi"},6:{defaultClass:"ju367vj"},10:{defaultClass:"ju367vk"},13:{defaultClass:"ju367vl"},actionButton:{defaultClass:"ju367vm"},connectButton:{defaultClass:"ju367vn"},menuButton:{defaultClass:"ju367vo"},modal:{defaultClass:"ju367vp"},modalMobile:{defaultClass:"ju367vq"},"25%":{defaultClass:"ju367vr"},full:{defaultClass:"ju367vs"}}},borderStyle:{values:{solid:{defaultClass:"ju367vt"}}},borderWidth:{values:{0:{defaultClass:"ju367vu"},1:{defaultClass:"ju367vv"},2:{defaultClass:"ju367vw"},4:{defaultClass:"ju367vx"}}},cursor:{values:{pointer:{defaultClass:"ju367vy"},none:{defaultClass:"ju367vz"}}},pointerEvents:{values:{none:{defaultClass:"ju367v10"},all:{defaultClass:"ju367v11"}}},minHeight:{values:{8:{defaultClass:"ju367v12"},44:{defaultClass:"ju367v13"}}},flexDirection:{values:{row:{defaultClass:"ju367v14"},column:{defaultClass:"ju367v15"}}},fontFamily:{values:{body:{defaultClass:"ju367v16"}}},fontSize:{values:{12:{defaultClass:"ju367v17"},13:{defaultClass:"ju367v18"},14:{defaultClass:"ju367v19"},16:{defaultClass:"ju367v1a"},18:{defaultClass:"ju367v1b"},20:{defaultClass:"ju367v1c"},23:{defaultClass:"ju367v1d"}}},fontWeight:{values:{regular:{defaultClass:"ju367v1e"},medium:{defaultClass:"ju367v1f"},semibold:{defaultClass:"ju367v1g"},bold:{defaultClass:"ju367v1h"},heavy:{defaultClass:"ju367v1i"}}},gap:{values:{0:{defaultClass:"ju367v1j"},1:{defaultClass:"ju367v1k"},2:{defaultClass:"ju367v1l"},3:{defaultClass:"ju367v1m"},4:{defaultClass:"ju367v1n"},5:{defaultClass:"ju367v1o"},6:{defaultClass:"ju367v1p"},8:{defaultClass:"ju367v1q"},10:{defaultClass:"ju367v1r"},12:{defaultClass:"ju367v1s"},14:{defaultClass:"ju367v1t"},16:{defaultClass:"ju367v1u"},18:{defaultClass:"ju367v1v"},20:{defaultClass:"ju367v1w"},24:{defaultClass:"ju367v1x"},28:{defaultClass:"ju367v1y"},32:{defaultClass:"ju367v1z"},36:{defaultClass:"ju367v20"},44:{defaultClass:"ju367v21"},64:{defaultClass:"ju367v22"},"-1":{defaultClass:"ju367v23"}}},height:{values:{1:{defaultClass:"ju367v24"},2:{defaultClass:"ju367v25"},4:{defaultClass:"ju367v26"},8:{defaultClass:"ju367v27"},12:{defaultClass:"ju367v28"},20:{defaultClass:"ju367v29"},24:{defaultClass:"ju367v2a"},28:{defaultClass:"ju367v2b"},30:{defaultClass:"ju367v2c"},32:{defaultClass:"ju367v2d"},34:{defaultClass:"ju367v2e"},36:{defaultClass:"ju367v2f"},40:{defaultClass:"ju367v2g"},44:{defaultClass:"ju367v2h"},48:{defaultClass:"ju367v2i"},54:{defaultClass:"ju367v2j"},60:{defaultClass:"ju367v2k"},200:{defaultClass:"ju367v2l"},full:{defaultClass:"ju367v2m"},max:{defaultClass:"ju367v2n"}}},justifyContent:{values:{"flex-start":{defaultClass:"ju367v2o"},"flex-end":{defaultClass:"ju367v2p"},center:{defaultClass:"ju367v2q"},"space-between":{defaultClass:"ju367v2r"},"space-around":{defaultClass:"ju367v2s"}}},textAlign:{values:{left:{defaultClass:"ju367v2t"},center:{defaultClass:"ju367v2u"},inherit:{defaultClass:"ju367v2v"}}},marginBottom:{values:{0:{defaultClass:"ju367v2w"},1:{defaultClass:"ju367v2x"},2:{defaultClass:"ju367v2y"},3:{defaultClass:"ju367v2z"},4:{defaultClass:"ju367v30"},5:{defaultClass:"ju367v31"},6:{defaultClass:"ju367v32"},8:{defaultClass:"ju367v33"},10:{defaultClass:"ju367v34"},12:{defaultClass:"ju367v35"},14:{defaultClass:"ju367v36"},16:{defaultClass:"ju367v37"},18:{defaultClass:"ju367v38"},20:{defaultClass:"ju367v39"},24:{defaultClass:"ju367v3a"},28:{defaultClass:"ju367v3b"},32:{defaultClass:"ju367v3c"},36:{defaultClass:"ju367v3d"},44:{defaultClass:"ju367v3e"},64:{defaultClass:"ju367v3f"},"-1":{defaultClass:"ju367v3g"}}},marginLeft:{values:{0:{defaultClass:"ju367v3h"},1:{defaultClass:"ju367v3i"},2:{defaultClass:"ju367v3j"},3:{defaultClass:"ju367v3k"},4:{defaultClass:"ju367v3l"},5:{defaultClass:"ju367v3m"},6:{defaultClass:"ju367v3n"},8:{defaultClass:"ju367v3o"},10:{defaultClass:"ju367v3p"},12:{defaultClass:"ju367v3q"},14:{defaultClass:"ju367v3r"},16:{defaultClass:"ju367v3s"},18:{defaultClass:"ju367v3t"},20:{defaultClass:"ju367v3u"},24:{defaultClass:"ju367v3v"},28:{defaultClass:"ju367v3w"},32:{defaultClass:"ju367v3x"},36:{defaultClass:"ju367v3y"},44:{defaultClass:"ju367v3z"},64:{defaultClass:"ju367v40"},"-1":{defaultClass:"ju367v41"}}},marginRight:{values:{0:{defaultClass:"ju367v42"},1:{defaultClass:"ju367v43"},2:{defaultClass:"ju367v44"},3:{defaultClass:"ju367v45"},4:{defaultClass:"ju367v46"},5:{defaultClass:"ju367v47"},6:{defaultClass:"ju367v48"},8:{defaultClass:"ju367v49"},10:{defaultClass:"ju367v4a"},12:{defaultClass:"ju367v4b"},14:{defaultClass:"ju367v4c"},16:{defaultClass:"ju367v4d"},18:{defaultClass:"ju367v4e"},20:{defaultClass:"ju367v4f"},24:{defaultClass:"ju367v4g"},28:{defaultClass:"ju367v4h"},32:{defaultClass:"ju367v4i"},36:{defaultClass:"ju367v4j"},44:{defaultClass:"ju367v4k"},64:{defaultClass:"ju367v4l"},"-1":{defaultClass:"ju367v4m"}}},marginTop:{values:{0:{defaultClass:"ju367v4n"},1:{defaultClass:"ju367v4o"},2:{defaultClass:"ju367v4p"},3:{defaultClass:"ju367v4q"},4:{defaultClass:"ju367v4r"},5:{defaultClass:"ju367v4s"},6:{defaultClass:"ju367v4t"},8:{defaultClass:"ju367v4u"},10:{defaultClass:"ju367v4v"},12:{defaultClass:"ju367v4w"},14:{defaultClass:"ju367v4x"},16:{defaultClass:"ju367v4y"},18:{defaultClass:"ju367v4z"},20:{defaultClass:"ju367v50"},24:{defaultClass:"ju367v51"},28:{defaultClass:"ju367v52"},32:{defaultClass:"ju367v53"},36:{defaultClass:"ju367v54"},44:{defaultClass:"ju367v55"},64:{defaultClass:"ju367v56"},"-1":{defaultClass:"ju367v57"}}},maxWidth:{values:{1:{defaultClass:"ju367v58"},2:{defaultClass:"ju367v59"},4:{defaultClass:"ju367v5a"},8:{defaultClass:"ju367v5b"},12:{defaultClass:"ju367v5c"},20:{defaultClass:"ju367v5d"},24:{defaultClass:"ju367v5e"},28:{defaultClass:"ju367v5f"},30:{defaultClass:"ju367v5g"},32:{defaultClass:"ju367v5h"},34:{defaultClass:"ju367v5i"},36:{defaultClass:"ju367v5j"},40:{defaultClass:"ju367v5k"},44:{defaultClass:"ju367v5l"},48:{defaultClass:"ju367v5m"},54:{defaultClass:"ju367v5n"},60:{defaultClass:"ju367v5o"},200:{defaultClass:"ju367v5p"},full:{defaultClass:"ju367v5q"},max:{defaultClass:"ju367v5r"}}},minWidth:{values:{1:{defaultClass:"ju367v5s"},2:{defaultClass:"ju367v5t"},4:{defaultClass:"ju367v5u"},8:{defaultClass:"ju367v5v"},12:{defaultClass:"ju367v5w"},20:{defaultClass:"ju367v5x"},24:{defaultClass:"ju367v5y"},28:{defaultClass:"ju367v5z"},30:{defaultClass:"ju367v60"},32:{defaultClass:"ju367v61"},34:{defaultClass:"ju367v62"},36:{defaultClass:"ju367v63"},40:{defaultClass:"ju367v64"},44:{defaultClass:"ju367v65"},48:{defaultClass:"ju367v66"},54:{defaultClass:"ju367v67"},60:{defaultClass:"ju367v68"},200:{defaultClass:"ju367v69"},full:{defaultClass:"ju367v6a"},max:{defaultClass:"ju367v6b"}}},overflow:{values:{hidden:{defaultClass:"ju367v6c"}}},paddingBottom:{values:{0:{defaultClass:"ju367v6d"},1:{defaultClass:"ju367v6e"},2:{defaultClass:"ju367v6f"},3:{defaultClass:"ju367v6g"},4:{defaultClass:"ju367v6h"},5:{defaultClass:"ju367v6i"},6:{defaultClass:"ju367v6j"},8:{defaultClass:"ju367v6k"},10:{defaultClass:"ju367v6l"},12:{defaultClass:"ju367v6m"},14:{defaultClass:"ju367v6n"},16:{defaultClass:"ju367v6o"},18:{defaultClass:"ju367v6p"},20:{defaultClass:"ju367v6q"},24:{defaultClass:"ju367v6r"},28:{defaultClass:"ju367v6s"},32:{defaultClass:"ju367v6t"},36:{defaultClass:"ju367v6u"},44:{defaultClass:"ju367v6v"},64:{defaultClass:"ju367v6w"},"-1":{defaultClass:"ju367v6x"}}},paddingLeft:{values:{0:{defaultClass:"ju367v6y"},1:{defaultClass:"ju367v6z"},2:{defaultClass:"ju367v70"},3:{defaultClass:"ju367v71"},4:{defaultClass:"ju367v72"},5:{defaultClass:"ju367v73"},6:{defaultClass:"ju367v74"},8:{defaultClass:"ju367v75"},10:{defaultClass:"ju367v76"},12:{defaultClass:"ju367v77"},14:{defaultClass:"ju367v78"},16:{defaultClass:"ju367v79"},18:{defaultClass:"ju367v7a"},20:{defaultClass:"ju367v7b"},24:{defaultClass:"ju367v7c"},28:{defaultClass:"ju367v7d"},32:{defaultClass:"ju367v7e"},36:{defaultClass:"ju367v7f"},44:{defaultClass:"ju367v7g"},64:{defaultClass:"ju367v7h"},"-1":{defaultClass:"ju367v7i"}}},paddingRight:{values:{0:{defaultClass:"ju367v7j"},1:{defaultClass:"ju367v7k"},2:{defaultClass:"ju367v7l"},3:{defaultClass:"ju367v7m"},4:{defaultClass:"ju367v7n"},5:{defaultClass:"ju367v7o"},6:{defaultClass:"ju367v7p"},8:{defaultClass:"ju367v7q"},10:{defaultClass:"ju367v7r"},12:{defaultClass:"ju367v7s"},14:{defaultClass:"ju367v7t"},16:{defaultClass:"ju367v7u"},18:{defaultClass:"ju367v7v"},20:{defaultClass:"ju367v7w"},24:{defaultClass:"ju367v7x"},28:{defaultClass:"ju367v7y"},32:{defaultClass:"ju367v7z"},36:{defaultClass:"ju367v80"},44:{defaultClass:"ju367v81"},64:{defaultClass:"ju367v82"},"-1":{defaultClass:"ju367v83"}}},paddingTop:{values:{0:{defaultClass:"ju367v84"},1:{defaultClass:"ju367v85"},2:{defaultClass:"ju367v86"},3:{defaultClass:"ju367v87"},4:{defaultClass:"ju367v88"},5:{defaultClass:"ju367v89"},6:{defaultClass:"ju367v8a"},8:{defaultClass:"ju367v8b"},10:{defaultClass:"ju367v8c"},12:{defaultClass:"ju367v8d"},14:{defaultClass:"ju367v8e"},16:{defaultClass:"ju367v8f"},18:{defaultClass:"ju367v8g"},20:{defaultClass:"ju367v8h"},24:{defaultClass:"ju367v8i"},28:{defaultClass:"ju367v8j"},32:{defaultClass:"ju367v8k"},36:{defaultClass:"ju367v8l"},44:{defaultClass:"ju367v8m"},64:{defaultClass:"ju367v8n"},"-1":{defaultClass:"ju367v8o"}}},position:{values:{absolute:{defaultClass:"ju367v8p"},fixed:{defaultClass:"ju367v8q"},relative:{defaultClass:"ju367v8r"}}},right:{values:{0:{defaultClass:"ju367v8s"}}},transition:{values:{default:{defaultClass:"ju367v8t"},transform:{defaultClass:"ju367v8u"}}},userSelect:{values:{none:{defaultClass:"ju367v8v"}}},width:{values:{1:{defaultClass:"ju367v8w"},2:{defaultClass:"ju367v8x"},4:{defaultClass:"ju367v8y"},8:{defaultClass:"ju367v8z"},12:{defaultClass:"ju367v90"},20:{defaultClass:"ju367v91"},24:{defaultClass:"ju367v92"},28:{defaultClass:"ju367v93"},30:{defaultClass:"ju367v94"},32:{defaultClass:"ju367v95"},34:{defaultClass:"ju367v96"},36:{defaultClass:"ju367v97"},40:{defaultClass:"ju367v98"},44:{defaultClass:"ju367v99"},48:{defaultClass:"ju367v9a"},54:{defaultClass:"ju367v9b"},60:{defaultClass:"ju367v9c"},200:{defaultClass:"ju367v9d"},full:{defaultClass:"ju367v9e"},max:{defaultClass:"ju367v9f"}}},backdropFilter:{values:{modalOverlay:{defaultClass:"ju367v9g"}}}}}),themeVars={colors:{accentColor:"var(--rk-colors-accentColor)",accentColorForeground:"var(--rk-colors-accentColorForeground)",actionButtonBorder:"var(--rk-colors-actionButtonBorder)",actionButtonBorderMobile:"var(--rk-colors-actionButtonBorderMobile)",actionButtonSecondaryBackground:"var(--rk-colors-actionButtonSecondaryBackground)",closeButton:"var(--rk-colors-closeButton)",closeButtonBackground:"var(--rk-colors-closeButtonBackground)",connectButtonBackground:"var(--rk-colors-connectButtonBackground)",connectButtonBackgroundError:"var(--rk-colors-connectButtonBackgroundError)",connectButtonInnerBackground:"var(--rk-colors-connectButtonInnerBackground)",connectButtonText:"var(--rk-colors-connectButtonText)",connectButtonTextError:"var(--rk-colors-connectButtonTextError)",connectionIndicator:"var(--rk-colors-connectionIndicator)",downloadBottomCardBackground:"var(--rk-colors-downloadBottomCardBackground)",downloadTopCardBackground:"var(--rk-colors-downloadTopCardBackground)",error:"var(--rk-colors-error)",generalBorder:"var(--rk-colors-generalBorder)",generalBorderDim:"var(--rk-colors-generalBorderDim)",menuItemBackground:"var(--rk-colors-menuItemBackground)",modalBackdrop:"var(--rk-colors-modalBackdrop)",modalBackground:"var(--rk-colors-modalBackground)",modalBorder:"var(--rk-colors-modalBorder)",modalText:"var(--rk-colors-modalText)",modalTextDim:"var(--rk-colors-modalTextDim)",modalTextSecondary:"var(--rk-colors-modalTextSecondary)",profileAction:"var(--rk-colors-profileAction)",profileActionHover:"var(--rk-colors-profileActionHover)",profileForeground:"var(--rk-colors-profileForeground)",selectedOptionBorder:"var(--rk-colors-selectedOptionBorder)",standby:"var(--rk-colors-standby)"},fonts:{body:"var(--rk-fonts-body)"},radii:{actionButton:"var(--rk-radii-actionButton)",connectButton:"var(--rk-radii-connectButton)",menuButton:"var(--rk-radii-menuButton)",modal:"var(--rk-radii-modal)",modalMobile:"var(--rk-radii-modalMobile)"},shadows:{connectButton:"var(--rk-shadows-connectButton)",dialog:"var(--rk-shadows-dialog)",profileDetailsAction:"var(--rk-shadows-profileDetailsAction)",selectedOption:"var(--rk-shadows-selectedOption)",selectedWallet:"var(--rk-shadows-selectedWallet)",walletLogo:"var(--rk-shadows-walletLogo)"},blurs:{modalOverlay:"var(--rk-blurs-modalOverlay)"}},active={shrink:"_12cbo8i6",shrinkSm:"_12cbo8i7"},base$2="_12cbo8i3 ju367v8r",hover={grow:"_12cbo8i4",growLg:"_12cbo8i5"};function touchableStyles({active:ht,hover:Et}){return[base$2,Et&&hover[Et],active[ht]]}var AuthenticationContext=reactExports.createContext(null);function useAuthenticationAdapter(){var ht;const{adapter:Et}=(ht=reactExports.useContext(AuthenticationContext))!=null?ht:{};if(!Et)throw new Error("No authentication adapter found");return Et}function useAuthenticationStatus(){var ht;const Et=reactExports.useContext(AuthenticationContext);return(ht=Et==null?void 0:Et.status)!=null?ht:null}function useConnectionStatus(){const ht=useAuthenticationStatus(),{isConnected:Et}=useAccount();return Et?ht&&(ht==="loading"||ht==="unauthenticated")?ht:"connected":"disconnected"}function isAndroid(){return typeof navigator<"u"&&/android/i.test(navigator.userAgent)}function isSmallIOS(){return typeof navigator<"u"&&/iPhone|iPod/.test(navigator.userAgent)}function isLargeIOS(){return typeof navigator<"u"&&(/iPad/.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)}function isIOS(){return isSmallIOS()||isLargeIOS()}function isMobile$4(){return isAndroid()||isIOS()}var base2="iekbcc0",element={a:"iekbcca",blockquote:"iekbcc2",button:"iekbcc9",input:"iekbcc8 iekbcc5 iekbcc4",mark:"iekbcc6",ol:"iekbcc1",q:"iekbcc2",select:"iekbcc7 iekbcc5 iekbcc4",table:"iekbcc3",textarea:"iekbcc5 iekbcc4",ul:"iekbcc1"},atoms=({reset:ht,...Et})=>{if(!ht)return sprinkles(Et);const yt=element[ht],Ct=sprinkles(Et);return clsx2(base2,yt,Ct)},Box=reactExports.forwardRef(({as:ht="div",className:Et,testId:yt,...Ct},$t)=>{const At={},Bt={};for(const Ft in Ct)sprinkles.properties.has(Ft)?At[Ft]=Ct[Ft]:Bt[Ft]=Ct[Ft];const Dt=atoms({reset:typeof ht=="string"?ht:"div",...At});return reactExports.createElement(ht,{className:clsx2(Dt,Et),...Bt,"data-testid":yt?`rk-${yt.replace(/^rk-/,"")}`:void 0,ref:$t})});Box.displayName="Box";var cachedUrls=new Map,cachedRequestPromises=new Map;async function loadAsyncImage(ht){const Et=cachedRequestPromises.get(ht);if(Et)return Et;const yt=async()=>ht().then(async $t=>(cachedUrls.set(ht,$t),$t)),Ct=yt().catch($t=>yt().catch(At=>{cachedRequestPromises.delete(ht)}));return cachedRequestPromises.set(ht,Ct),Ct}async function loadImages(...ht){return await Promise.all(ht.map(Et=>typeof Et=="function"?loadAsyncImage(Et):Et))}function useForceUpdate$1(){const[,ht]=reactExports.useReducer(Et=>Et+1,0);return ht}function useAsyncImage(ht){const Et=typeof ht=="function"?cachedUrls.get(ht):void 0,yt=useForceUpdate$1();return reactExports.useEffect(()=>{typeof ht=="function"&&!Et&&loadAsyncImage(ht).then(yt)},[ht,Et,yt]),typeof ht=="function"?Et:ht}function AsyncImage({alt:ht,background:Et,borderColor:yt,borderRadius:Ct,boxShadow:$t,height:At,src:Bt,width:Dt,testId:Ft}){const kt=useAsyncImage(Bt),Mt=kt&&/^http/.test(kt),[Nt,jt]=reactExports.useReducer(()=>!0,!1);return React$8.createElement(Box,{"aria-label":ht,borderRadius:Ct,boxShadow:$t,height:typeof At=="string"?At:void 0,overflow:"hidden",position:"relative",role:"img",style:{background:Et,height:typeof At=="number"?At:void 0,width:typeof Dt=="number"?Dt:void 0},width:typeof Dt=="string"?Dt:void 0,testId:Ft},React$8.createElement(Box,{...Mt?{"aria-hidden":!0,as:"img",onLoad:jt,src:kt}:{backgroundSize:"cover"},height:"full",position:"absolute",style:{touchCallout:"none",transition:"opacity .15s linear",userSelect:"none",...Mt?{opacity:Nt?1:0}:{backgroundImage:kt?`url(${kt})`:void 0,backgroundRepeat:"no-repeat",opacity:kt?1:0}},width:"full"}),yt?React$8.createElement(Box,{...typeof yt=="object"&&"custom"in yt?{style:{borderColor:yt.custom}}:{borderColor:yt},borderRadius:Ct,borderStyle:"solid",borderWidth:"1",height:"full",position:"relative",width:"full"}):null)}var SpinnerIconClassName="_1luule42",SpinnerIconPathClassName="_1luule43",useRandomId=ht=>reactExports.useMemo(()=>`${ht}_${Math.round(Math.random()*1e9)}`,[ht]),SpinnerIcon=({height:ht=21,width:Et=21})=>{const yt=useRandomId("spinner");return React$8.createElement("svg",{className:SpinnerIconClassName,fill:"none",height:ht,viewBox:"0 0 21 21",width:Et,xmlns:"http://www.w3.org/2000/svg"},React$8.createElement("clipPath",{id:yt},React$8.createElement("path",{d:"M10.5 3C6.35786 3 3 6.35786 3 10.5C3 14.6421 6.35786 18 10.5 18C11.3284 18 12 18.6716 12 19.5C12 20.3284 11.3284 21 10.5 21C4.70101 21 0 16.299 0 10.5C0 4.70101 4.70101 0 10.5 0C16.299 0 21 4.70101 21 10.5C21 11.3284 20.3284 12 19.5 12C18.6716 12 18 11.3284 18 10.5C18 6.35786 14.6421 3 10.5 3Z"})),React$8.createElement("foreignObject",{clipPath:`url(#${yt})`,height:"21",width:"21",x:"0",y:"0"},React$8.createElement("div",{className:SpinnerIconPathClassName})))},colors=["#FC5C54","#FFD95A","#E95D72","#6A87C8","#5FD0F3","#75C06B","#FFDD86","#5FC6D4","#FF949A","#FF8024","#9BA1A4","#EC66FF","#FF8CBC","#FF9A23","#C5DADB","#A8CE63","#71ABFF","#FFE279","#B6B1B6","#FF6780","#A575FF","#4D82FF","#FFB35A"],avatars=[{color:colors[0],emoji:"🌶"},{color:colors[1],emoji:"🤑"},{color:colors[2],emoji:"🐙"},{color:colors[3],emoji:"🫐"},{color:colors[4],emoji:"🐳"},{color:colors[0],emoji:"🤶"},{color:colors[5],emoji:"🌲"},{color:colors[6],emoji:"🌞"},{color:colors[7],emoji:"🐒"},{color:colors[8],emoji:"🐵"},{color:colors[9],emoji:"🦊"},{color:colors[10],emoji:"🐼"},{color:colors[11],emoji:"🦄"},{color:colors[12],emoji:"🐷"},{color:colors[13],emoji:"🐧"},{color:colors[8],emoji:"🦩"},{color:colors[14],emoji:"👽"},{color:colors[0],emoji:"🎈"},{color:colors[8],emoji:"🍉"},{color:colors[1],emoji:"🎉"},{color:colors[15],emoji:"🐲"},{color:colors[16],emoji:"🌎"},{color:colors[17],emoji:"🍊"},{color:colors[18],emoji:"🐭"},{color:colors[19],emoji:"🍣"},{color:colors[1],emoji:"🐥"},{color:colors[20],emoji:"👾"},{color:colors[15],emoji:"🥦"},{color:colors[0],emoji:"👹"},{color:colors[17],emoji:"🙀"},{color:colors[4],emoji:"⛱"},{color:colors[21],emoji:"⛵️"},{color:colors[17],emoji:"🥳"},{color:colors[8],emoji:"🤯"},{color:colors[22],emoji:"🤠"}];function hashCode(ht){let Et=0;if(ht.length===0)return Et;for(let yt=0;yt<ht.length;yt++){const Ct=ht.charCodeAt(yt);Et=(Et<<5)-Et+Ct,Et|=0}return Et}function emojiAvatarForAddress(ht){const yt=Math.abs(hashCode((typeof ht=="string"?ht:"").toLowerCase())%avatars.length);return avatars[yt??0]}var EmojiAvatar=({address:ht,ensImage:Et,size:yt})=>{const[Ct,$t]=reactExports.useState(!1);reactExports.useEffect(()=>{if(Et){const Dt=new Image;Dt.src=Et,Dt.onload=()=>$t(!0)}},[Et]);const{color:At,emoji:Bt}=reactExports.useMemo(()=>emojiAvatarForAddress(ht),[ht]);return Et?Ct?React$8.createElement(Box,{backgroundSize:"cover",borderRadius:"full",position:"absolute",style:{backgroundImage:`url(${Et})`,backgroundPosition:"center",height:yt,width:yt}}):React$8.createElement(Box,{alignItems:"center",backgroundSize:"cover",borderRadius:"full",color:"modalText",display:"flex",justifyContent:"center",position:"absolute",style:{height:yt,width:yt}},React$8.createElement(SpinnerIcon,null)):React$8.createElement(Box,{alignItems:"center",display:"flex",justifyContent:"center",overflow:"hidden",style:{...!Et&&{backgroundColor:At},height:yt,width:yt}},Bt)},defaultAvatar=EmojiAvatar,AvatarContext=reactExports.createContext(defaultAvatar);function Avatar$1({address:ht,imageUrl:Et,loading:yt,size:Ct}){const $t=reactExports.useContext(AvatarContext);return React$8.createElement(Box,{"aria-hidden":!0,borderRadius:"full",overflow:"hidden",position:"relative",style:{height:`${Ct}px`,width:`${Ct}px`},userSelect:"none"},React$8.createElement(Box,{alignItems:"center",borderRadius:"full",display:"flex",justifyContent:"center",overflow:"hidden",position:"absolute",style:{fontSize:`${Math.round(Ct*.55)}px`,height:`${Ct}px`,transform:yt?"scale(0.72)":void 0,transition:".25s ease",transitionDelay:yt?void 0:".1s",width:`${Ct}px`,willChange:"transform"},userSelect:"none"},React$8.createElement($t,{address:ht,ensImage:Et,size:Ct})),yt&&React$8.createElement(Box,{color:"accentColor",display:"flex",height:"full",position:"absolute",width:"full"},React$8.createElement(SpinnerIcon,{height:"100%",width:"100%"})))}var connect_wallet={label:"اتصال المحفظة"},intro={title:"ما هو المحفظة؟",description:"تُستخدم المحفظة لإرسال واستلام وتخزين وعرض الأصول الرقمية. إنها أيضاً طريقة جديدة لتسجيل الدخول، دون الحاجة إلى إنشاء حسابات وكلمات مرور جديدة على كل موقع.",digital_asset:{title:"دار لأصولك الرقمية",description:"تُستخدم المحافظ لإرسال واستلام وتخزين وعرض الأصول الرقمية مثل إيثيريوم والـ NFTs."},login:{title:"طريقة جديدة لتسجيل الدخول",description:"بدلاً من إنشاء حسابات وكلمات مرور جديدة على كل موقع، فقط قم بتوصيل محفظتك."},get:{label:"احصل على محفظة"},learn_more:{label:"تعلم المزيد"}},sign_in={label:"تحقق من حسابك",description:"لإنهاء الاتصال، يجب عليك توقيع رسالة في محفظتك للتحقق من أنك صاحب هذا الحساب.",message:{send:"إرسال الرسالة",preparing:"جارٍ تجهيز الرسالة...",cancel:"إلغاء",preparing_error:"خطأ في تجهيز الرسالة، يرجى المحاولة مرة أخرى!"},signature:{waiting:"انتظار التوقيع...",verifying:"جار التحقق من التوقيع...",signing_error:"خطأ في توقيع الرسالة، يرجى المحاولة مرة أخرى!",verifying_error:"خطأ في التحقق من التوقيع، يرجى المحاولة مرة أخرى!",oops_error:"عذرًا، حدث خطأ ما!"}},connect={label:"اتصل",title:"اتصال بالمحفظة",new_to_ethereum:{description:"جديد في محافظ Ethereum؟",learn_more:{label:"تعلم المزيد"}},learn_more:{label:"أعرف أكثر"},recent:"الأخير",status:{opening:"جار فتح %{wallet}...",connecting:"جارٍ الاتصال",connect_mobile:"استمر في %{wallet}",not_installed:"%{wallet} غير مثبت",not_available:"%{wallet} غير متاح",confirm:"تأكيد الاتصال في الامتداد",confirm_mobile:"قبل طلب الاتصال في المحفظة"},secondary_action:{get:{description:"لا يوجد لديك %{wallet}؟",label:"احصل"},install:{label:"تثبيت"},retry:{label:"أعد المحاولة"}},walletconnect:{description:{full:"هل تحتاج إلى النافذة الرسمية لـ WalletConnect؟",compact:"هل تحتاج إلى النافذة لـ WalletConnect؟"},open:{label:"افتح"}}},connect_scan={title:"المسح باستخدام %{wallet}",fallback_title:"المسح باستخدام هاتفك"},connector_group={recommended:"موصى به",other:"آخر",popular:"شائع",more:"المزيد",others:"الآخرين"},get$4={title:"احصل على محفظة",action:{label:"احصل"},mobile:{description:"محفظة الموبايل"},extension:{description:"ملحق المتصفح"},mobile_and_extension:{description:"محفظة موبايل وملحق"},mobile_and_desktop:{description:"محفظة الموبايل والكمبيوتر"},looking_for:{title:"ليست هذه هي ما تبحث عنه؟",mobile:{description:"حدد محفظة على الشاشة الرئيسية للبدء باستخدام موفر محفظة مختلف."},desktop:{compact_description:"حدد محفظة على الشاشة الرئيسية للبدء باستخدام موفر محفظة مختلف.",wide_description:"حدد محفظة على اليسار للبدء باستخدام موفر محفظة مختلف."}}},get_options={title:"ابدأ مع %{wallet}",short_title:"احصل على %{wallet}",mobile:{title:"%{wallet} للجوال",description:"استخدم محفظة الموبايل لاستكشاف عالم Ethereum.",download:{label:"احصل على التطبيق"}},extension:{title:"%{wallet} لـ %{browser}",description:"وصول لمحفظتك مباشرة من متصفح الويب المفضل لديك.",download:{label:"أضف إلى %{browser}"}},desktop:{title:"%{wallet} لـ %{platform}",description:"قم بالوصول إلى محفظتك بشكل أصلي من كمبيوترك القوي.",download:{label:"أضف إلى %{platform}"}}},get_mobile={title:"قم بالتثبيت %{wallet}",description:"استخدم هاتفك للتحميل على iOS أو Android",continue:{label:"استمر"}},get_instructions={mobile:{connect:{label:"اتصل"},learn_more:{label:"تعلم المزيد"}},extension:{refresh:{label:"تحديث"},learn_more:{label:"تعلم المزيد"}},desktop:{connect:{label:"اتصل"},learn_more:{label:"تعلم المزيد"}}},chains$1={title:"تبديل الشبكات",wrong_network:"تم اكتشاف شبكة غير صحيحة، قم بالتبديل أو القطع للمتابعة.",confirm:"التأكيد في المحفظة",switching_not_supported:"محفظتك لا تدعم التبديل بين الشبكات من %{appName}. جرب التبديل بين الشبكات من داخل المحفظة بدلاً من ذلك.",switching_not_supported_fallback:"محفظتك لا تدعم تبديل الشبكات من هذا التطبيق. حاول تبديل الشبكات من داخل المحفظة بدلاً من ذلك.",disconnect:"قطع الاتصال",connected:"متصل"},profile={disconnect:{label:"قطع الاتصال"},copy_address:{label:"نسخ العنوان",copied:"تم النسخ!"},explorer:{label:"عرض المزيد على المستكشف"},transactions:{description:"%{appName} ستظهر المعاملات هنا...",description_fallback:"سوف تظهر معاملاتك هنا...",recent:{title:"المعاملات الأخيرة"},clear:{label:"مسح الكل"}}},wallet_connectors={argent:{qr_code:{step1:{description:"ضع أرجنت على شاشتك الرئيسية للوصول السريع إلى محفظتك.",title:"افتح تطبيق Argent"},step2:{description:"أنشئ محفظة واسم مستخدم، أو استورد محفظة موجودة بالفعل.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بعد الفحص، سيظهر لك موجه الاتصال لتوصيل المحفظة الخاصة بك.",title:"اضغط على زر فحص الكود الشريطي"}}},bifrost:{qr_code:{step1:{description:"نوصي بوضع محفظة Bifrost على الشاشة الرئيسية للوصول الأسرع.",title:"افتح تطبيق محفظة Bifrost"},step2:{description:"أنشئ أو استورد محفظة باستخدام عبارة الاستعادة الخاصة بك.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بعد الفحص، سيظهر موجه الاتصال لك لتوصيل محفظتك.",title:"اضغط على زر المسح"}}},bitget:{qr_code:{step1:{description:"نوصي بوضع محفظة Bitget على الشاشة الرئيسية للوصول الأسرع.",title:"افتح تطبيق محفظة Bitget"},step2:{description:"تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أحد.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بعد الفحص، ستظهر لك موجه اتصال لتوصيل محفظتك.",title:"اضغط على زر الفحص"}},extension:{step1:{description:"نوصي بتثبيت محفظة Bitget على شريط المهام للوصول الأسرع إلى محفظتك.",title:"قم بتثبيت امتداد محفظة Bitget"},step2:{description:"تأكد من نسخ محفظتك احتياطيًا باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"أنشئ محفظة أو استورد محفظة"},step3:{description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد.",title:"قم بتحديث متصفحك"}}},bitski:{extension:{step1:{description:"نوصي بتثبيت Bitski على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك.",title:"قم بتثبيت امتداد Bitski"},step2:{description:"تأكد من الاحتفاظ بنسخة احتياطية من محفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بعد إعداد المحفظة الخاصة بك، انقر أدناه لتحديث المتصفح وتحميل الإضافة.",title:"تحديث المتصفح الخاص بك"}}},coin98:{qr_code:{step1:{description:"نوصي بوضع محفظة Coin98 على الشاشة الرئيسية لسرعة الوصول إلى محفظتك.",title:"افتح تطبيق محفظة Coin98"},step2:{description:"يمكنك بسهولة نسخ محفظتك الاحتياطي باستخدام ميزة النسخ الاحتياطي على هاتفك.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بعد الفحص، ستظهر لك مطالبة بالاتصال لتوصيل محفظتك.",title:"اضغط على زر WalletConnect"}},extension:{step1:{description:"انقر في الجزء العلوي الأيمن من المتصفح وثبت Coin98 Wallet لسهولة الوصول.",title:"قم بتثبيت امتداد Coin98 Wallet"},step2:{description:"أنشئ محفظة جديدة أو استورد واحدة موجودة بالفعل.",title:"أنشئ محفظة أو استورد محفظة"},step3:{description:"بمجرد إعداد Coin98 Wallet ، انقر أدناه لتحديث المتصفح وتحميل الامتداد.",title:"تحديث المتصفح الخاص بك"}}},coinbase:{qr_code:{step1:{description:"نوصي بوضع Coinbase Wallet على الشاشة الرئيسية لسهولة الوصول.",title:"افتح تطبيق Coinbase Wallet"},step2:{description:"يمكنك بسهولة النسخ الاحتياطي لمحفظتك باستخدام ميزة النسخ الاحتياطي السحابي.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بعد الفحص، ستظهر لك مطالبة بالاتصال لتوصيل محفظتك.",title:"اضغط على زر الفحص"}},extension:{step1:{description:"نوصي بتثبيت محفظة Coinbase على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك.",title:"تثبيت امتداد محفظة Coinbase"},step2:{description:"تأكد من النسخ الاحتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"إنشاء أو استيراد المحفظة"},step3:{description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة.",title:"تحديث المتصفح الخاص بك"}}},core:{qr_code:{step1:{description:"نوصي بوضع Core على الشاشة الرئيسية للوصول السريع إلى محفظتك.",title:"افتح تطبيق Core"},step2:{description:"يمكنك بسهولة النسخ الاحتياطي لمحفظتك باستخدام ميزة النسخ الاحتياطي على هاتفك.",title:"إنشاء أو استيراد المحفظة"},step3:{description:"بعد الفحص، سيظهر لك موجه الاتصال لتوصيل محفظتك.",title:"اضغط على زر WalletConnect"}},extension:{step1:{description:"نوصي بتثبيت Core على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك.",title:"قم بتثبيت امتداد Core"},step2:{description:"تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد.",title:"تحديث متصفحك"}}},fox:{qr_code:{step1:{description:"نوصي بوضع FoxWallet على شاشتك الرئيسية للوصول الأسرع.",title:"افتح تطبيق FoxWallet"},step2:{description:"تأكد من الاحتفاظ بنسخة احتياطية من محفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"إنشاء محفظة أو استيراد محفظة"},step3:{description:"بعد الفحص، ستظهر لك موجه الاتصال لتتمكن من اتصال محفظتك.",title:"اضغط على زر الفحص"}}},frontier:{qr_code:{step1:{description:"نوصي بوضع Frontier Wallet على شاشتك الرئيسية للوصول الأسرع.",title:"افتح تطبيق Frontier Wallet"},step2:{description:"تأكد من نسخ محفظتك احتياطيا باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بعد الفحص، ستظهر لك موجه الاتصال لربط محفظتك.",title:"اضغط على زر الفحص"}},extension:{step1:{description:"نوصي بتثبيت محفظة Frontier على شريط المهام للوصول الأسرع إلى محفظتك.",title:"تثبيت امتداد محفظة Frontier"},step2:{description:"تأكد من نسخ محفظتك احتياطيا باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"إنشاء أو استيراد محفظة"},step3:{description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة.",title:"قم بتحديث المتصفح الخاص بك"}}},im_token:{qr_code:{step1:{title:"افتح تطبيق imToken",description:"ضع تطبيق imToken على الشاشة الرئيسية للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"قم بإنشاء محفظة جديدة أو استيراد واحدة موجودة."},step3:{title:"اضغط على أيقونة الماسح الضوئي في الزاوية العليا اليمنى",description:"اختر الاتصال الجديد، ثم امسح الرمز الشريطي وأكد الموجه للاتصال."}}},metamask:{qr_code:{step1:{title:"افتح تطبيق MetaMask",description:"نوصي بوضع MetaMask على الشاشة الرئيسية لديك للوصول بشكل أسرع."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من نسخ الحفاظ على محفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"اضغط على زر المسح",description:"بعد الفحص، ستظهر لك موجه اتصال لتوصيل محفظتك."}},extension:{step1:{title:"قم بتثبيت امتداد MetaMask",description:"نوصي بتثبيت MetaMask في شريط المهام للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من نسخ احتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"تحديث متصفحك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد."}}},okx:{qr_code:{step1:{title:"افتح تطبيق محفظة OKX",description:"نوصي بوضع محفظة OKX على الشاشة الرئيسية للوصول الأسرع."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من نسخ احتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"اضغط على زر المسح",description:"بعد الفحص، ستظهر لك مطالبة بالاتصال لتوصيل محفظتك."}},extension:{step1:{title:"قم بتثبيت امتداد محفظة OKX",description:"نوصي بتثبيت محفظة OKX على شريط المهام للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من حفظ نسخة احتياطية من محفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"قم بتحديث المتصفح الخاص بك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},omni:{qr_code:{step1:{title:"افتح تطبيق Omni",description:"أضف Omni إلى شاشتك الرئيسية للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"إنشاء محفظة جديدة أو استيراد واحدة موجودة."},step3:{title:"اضغط على أيقونة الرمز الاستجابة السريعة وامسحها",description:"اضغط على الرمز QR على الشاشة الرئيسية الخاصة بك، امسح الرمز وأكد الموافقة للاتصال."}}},token_pocket:{qr_code:{step1:{title:"افتح تطبيق TokenPocket",description:"نوصي بوضع TokenPocket على الشاشة الرئيسية للوصول السريع."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من نسخ احتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"اضغط على زر المسح",description:"بعد الفحص، ستظهر لك رسالة موجهة للاتصال بمحفظتك."}},extension:{step1:{title:"قم بتثبيت امتداد TokenPocket",description:"نوصي بتثبيت TokenPocket على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك."},step2:{title:"قم بإنشاء محفظة أو استيراد محفظة",description:"تأكد من الاحتفاظ بنسخة احتياطية من محفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"قم بتحديث المتصفح الخاص بك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},trust:{qr_code:{step1:{title:"افتح تطبيق Trust Wallet",description:"ضع Trust Wallet على الشاشة الرئيسية للوصول السريع إلى محفظتك."},step2:{title:"أنشئ محفظة أو استورد محفظة",description:"أنشئ محفظة جديدة أو استورد واحدة موجودة."},step3:{title:"اضغط على WalletConnect في الإعدادات",description:"اختر الاتصال الجديد، ثم امسح الرمز الشريطي QR وأكد الموجه للاتصال."}},extension:{step1:{title:"قم بتثبيت امتداد Trust Wallet",description:"انقر في الجزء العلوي الأيمن من المتصفح وثبت Trust Wallet للوصول بسهولة."},step2:{title:"أنشئ محفظة أو استورد محفظة",description:"أنشئ محفظة جديدة أو استورد واحدة موجودة."},step3:{title:"قم بتحديث متصفحك",description:"بمجرد إعداد Trust Wallet، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},uniswap:{qr_code:{step1:{title:"افتح تطبيق Uniswap",description:"أضف محفظة Uniswap إلى شاشة الرئيسية للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"قم بإنشاء محفظة جديدة أو استيراد واحدة موجودة."},step3:{title:"اضغط على الأيقونة QR واقرأ الرمز",description:"اضغط على أيقونة QR على الشاشة الرئيسية، قراءة الرمز وتأكيد الرسالة الموجهة للاتصال."}}},zerion:{qr_code:{step1:{title:"افتح تطبيق Zerion",description:"نوصي بوضع Zerion على شاشتك الرئيسية للوصول الأسرع."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من حفظ نسخة احتياطية من محفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"اضغط على زر المسح",description:"بعد المسح، سوف يظهر لك نافذة الاتصال لتوصيل محفظتك."}},extension:{step1:{title:"تثبيت امتداد Zerion",description:"نوصي بتثبيت Zerion على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من الاحتفاظ بنسخة احتياطية من محفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"قم بتحديث المتصفح الخاص بك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},rainbow:{qr_code:{step1:{title:"افتح تطبيق Rainbow",description:"نوصي بوضع Rainbow على شاشة البداية للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء محفظة أو استيراد محفظة",description:"يمكنك عمل نسخة احتياطية بسهولة لمحفظتك باستخدام ميزة النسخ الاحتياطي على هاتفك."},step3:{title:"اضغط على الزر الماسح الضوئي",description:"بعد الفحص، سيظهر لك موجه اتصال لربط محفظتك."}}},enkrypt:{extension:{step1:{description:"نوصي بتثبيت محفظة Enkrypt على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك.",title:"تثبيت امتداد محفظة Enkrypt"},step2:{description:"تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"أنشئ أو استورد محفظة"},step3:{description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة.",title:"حدث المتصفح الخاص بك"}}},frame:{extension:{step1:{description:"نوصي بتعليق Frame على شريط المهام للوصول السريع إلى محفظتك.",title:"ثبت Frame والإضافة المصاحبة"},step2:{description:"تأكد من النسخ الاحتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص.",title:"أنشئ أو استورد محفظة"},step3:{description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة.",title:"حدث المتصفح الخاص بك"}}},one_key:{extension:{step1:{title:"قم بتثبيت امتداد محفظة OneKey",description:"نوصي بتثبيت محفظة OneKey على شريط المهام للوصول السريع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من نسخ احتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"تحديث المتصفح الخاص بك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد."}}},phantom:{extension:{step1:{title:"قم بتثبيت امتداد Phantom",description:"نوصي بتثبيت Phantom على شريط المهام للوصول الأسهل إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من نسخ محفظتك احتياطيًا باستخدام طريقة آمنة. لا تشارك عبارة الاستعادة السرية الخاصة بك مع أي شخص."},step3:{title:"قم بتحديث المتصفح",description:"بمجرد إعداد المحفظة، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},rabby:{extension:{step1:{title:"ثبت امتداد Rabby",description:"نوصي بتثبيت Rabby على شريط المهام للوصول الأسرع إلى محفظتك."},step2:{title:"أنشئ محفظة أو استورد محفظة",description:"تأكد من نسخ محفظتك احتياطيًا باستخدام طريقة آمنة. لا تشارك العبارة السرية مع أي شخص."},step3:{title:"قم بتحديث المتصفح",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},safeheron:{extension:{step1:{title:"قم بتثبيت إضافة النواة",description:"نوصي بتثبيت Safeheron على شريط المهام الخاص بك للوصول السريع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من نسخ محفظتك بطريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"تحديث المتصفح الخاص بك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},taho:{extension:{step1:{title:"تثبيت إضافة Taho",description:"نوصي بتثبيت Taho على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء محفظة أو استيراد محفظة",description:"تأكد من النسخ الاحتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أي شخص."},step3:{title:"تحديث المتصفح الخاص بك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},talisman:{extension:{step1:{title:"تثبيت إضافة Talisman",description:"نوصي بتثبيت Talisman على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء محفظة Ethereum أو استيرادها",description:"تأكد من النسخ الاحتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارة الاستعادة الخاصة بك مع أي شخص."},step3:{title:"قم بتحديث المستعرض الخاص بك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المستعرض وتحميل الإضافة."}}},xdefi:{extension:{step1:{title:"قم بتثبيت إضافة XDEFI Wallet",description:"نوصي بتثبيت XDEFI Wallet على شريط المهام للوصول الأسرع إلى محفظتك."},step2:{title:"أنشئ محفظة أو استورد محفظة",description:"تأكد من النسخ الاحتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك العبارة السرية الخاصة بك مع أي شخص."},step3:{title:"قم بتحديث المستعرض الخاص بك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}}},zeal:{extension:{step1:{title:"قم بتثبيت امتداد Zeal",description:"نوصي بتثبيت Zeal في شريط المهام الخاص بك للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أحد."},step3:{title:"قم بتحديث متصفحك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد."}}},safepal:{extension:{step1:{title:"قم بتثبيت صيغة SafePal Wallet",description:"انقر في أعلى يمين المتصفح وثبت صيغة SafePal Wallet لسهولة الوصول."},step2:{title:"أنشئ محفظة أو استورد محفظة",description:"أنشئ محفظة جديدة أو استورد واحدة موجودة بالفعل."},step3:{title:"قم بتحديث متصفحك",description:"بمجرد إعداد محفظة SafePal، انقر أدناه لتحديث المتصفح وتحميل الإضافة."}},qr_code:{step1:{title:"افتح تطبيق محفظة SafePal",description:"ضع محفظة SafePal على شاشة الرئيسية لسهولة الوصول إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"أنشئ محفظة جديدة أو استورد واحدة موجودة بالفعل."},step3:{title:"اضغط على WalletConnect في الإعدادات",description:"اختر الاتصال الجديد، ثم امسح الرمز الشريطي وأكد الموجه للاتصال."}}},desig:{extension:{step1:{title:"قم بتثبيت إضافة Desig",description:"نوصي بتثبيت Desig على شريط المهام الخاص بك للوصول الأسهل إلى محفظتك."},step2:{title:"إنشاء محفظة",description:"تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أحد."},step3:{title:"قم بتحديث متصفحك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد."}}},subwallet:{extension:{step1:{title:"قم بتثبيت إضافة SubWallet",description:"نوصي بتثبيت SubWallet على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من النسخ الاحتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارة الاستعادة الخاصة بك مع أي شخص."},step3:{title:"قم بتحديث متصفحك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد."}},qr_code:{step1:{title:"افتح تطبيق SubWallet",description:"نوصي بوضع SubWallet على شاشة الرئيسية الخاصة بك للوصول الأسرع."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أحد."},step3:{title:"اضغط على زر المسح",description:"بعد الفحص، سيظهر لك موجه الاتصال لتوصيل المحفظة الخاصة بك."}}},clv:{extension:{step1:{title:"قم بتثبيت إضافة CLV Wallet",description:"نوصي بتثبيت CLV Wallet على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أحد."},step3:{title:"قم بتحديث متصفحك",description:"بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد."}},qr_code:{step1:{title:"افتح تطبيق محفظة CLV",description:"نوصي بوضع محفظة CLV على الشاشة الرئيسية للوصول الأسرع."},step2:{title:"إنشاء أو استيراد محفظة",description:"تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أحد."},step3:{title:"اضغط على زر المسح",description:"بعد الفحص، سيظهر لك موجه الاتصال لتوصيل المحفظة الخاصة بك."}}},okto:{qr_code:{step1:{title:"افتح تطبيق Okto",description:"أضف Okto إلى الشاشة الرئيسية للوصول السريع"},step2:{title:"أنشئ محفظة MPC",description:"أنشئ حسابًا وقم بإنشاء محفظة"},step3:{title:"اضغط على WalletConnect في الإعدادات",description:"اضغط على أيقونة فحص الشاشة في الجهة العليا اليمنى وأكد الإدخال للاتصال."}}},ledger:{desktop:{step1:{title:"افتح تطبيق Ledger Live",description:"نوصي بوضع Ledger Live على شاشة الرئيسية لديك لسرعة الوصول."},step2:{title:"قم بإعداد Ledger الخاص بك",description:"قم بإعداد Ledger جديد أو قم بالاتصال بواحد موجود ."},step3:{title:"اتصل",description:"بعد المسح، سوف يظهر لك نافذة الاتصال لتوصيل محفظتك."}},qr_code:{step1:{title:"افتح تطبيق Ledger Live",description:"نوصي بوضع Ledger Live على شاشة الرئيسية لديك لسرعة الوصول."},step2:{title:"قم بإعداد Ledger الخاص بك",description:"يمكنك إما المزامنة مع تطبيق سطح المكتب أو توصيل Ledger الخاص بك."},step3:{title:"مسح الرمز",description:"اضغط على WalletConnect ثم انتقل إلى الفحص. بعد المسح، سوف يظهر لك نافذة الاتصال لتوصيل محفظتك."}}}},ar_AR_default={connect_wallet,intro,sign_in,connect,connect_scan,connector_group,get:get$4,get_options,get_mobile,get_instructions,chains:chains$1,profile,wallet_connectors},connect_wallet2={label:"Connect Wallet"},intro2={title:"What is a Wallet?",description:"A wallet is used to send, receive, store, and display digital assets. It's also a new way to log in, without needing to create new accounts and passwords on every website.",digital_asset:{title:"A Home for your Digital Assets",description:"Wallets are used to send, receive, store, and display digital assets like Ethereum and NFTs."},login:{title:"A New Way to Log In",description:"Instead of creating new accounts and passwords on every website, just connect your wallet."},get:{label:"Get a Wallet"},learn_more:{label:"Learn More"}},sign_in2={label:"Verify your account",description:"To finish connecting, you must sign a message in your wallet to verify that you are the owner of this account.",message:{send:"Sign message",preparing:"Preparing message...",cancel:"Cancel",preparing_error:"Error preparing message, please retry!"},signature:{waiting:"Waiting for signature...",verifying:"Verifying signature...",signing_error:"Error signing message, please retry!",verifying_error:"Error verifying signature, please retry!",oops_error:"Oops, something went wrong!"}},connect2={label:"Connect",title:"Connect a Wallet",new_to_ethereum:{description:"New to Ethereum wallets?",learn_more:{label:"Learn More"}},learn_more:{label:"Learn more"},recent:"Recent",status:{opening:"Opening %{wallet}...",connecting:"Connecting",connect_mobile:"Continue in %{wallet}",not_installed:"%{wallet} is not installed",not_available:"%{wallet} is not available",confirm:"Confirm connection in the extension",confirm_mobile:"Accept connection request in the wallet"},secondary_action:{get:{description:"Don't have %{wallet}?",label:"GET"},install:{label:"INSTALL"},retry:{label:"RETRY"}},walletconnect:{description:{full:"Need the official WalletConnect modal?",compact:"Need the WalletConnect modal?"},open:{label:"OPEN"}}},connect_scan2={title:"Scan with %{wallet}",fallback_title:"Scan with your phone"},connector_group2={recommended:"Recommended",other:"Other",popular:"Popular",more:"More",others:"Others"},get2={title:"Get a Wallet",action:{label:"GET"},mobile:{description:"Mobile Wallet"},extension:{description:"Browser Extension"},mobile_and_extension:{description:"Mobile Wallet and Extension"},mobile_and_desktop:{description:"Mobile and Desktop Wallet"},looking_for:{title:"Not what you're looking for?",mobile:{description:"Select a wallet on the main screen to get started with a different wallet provider."},desktop:{compact_description:"Select a wallet on the main screen to get started with a different wallet provider.",wide_description:"Select a wallet on the left to get started with a different wallet provider."}}},get_options2={title:"Get started with %{wallet}",short_title:"Get %{wallet}",mobile:{title:"%{wallet} for Mobile",description:"Use the mobile wallet to explore the world of Ethereum.",download:{label:"Get the app"}},extension:{title:"%{wallet} for %{browser}",description:"Access your wallet right from your favorite web browser.",download:{label:"Add to %{browser}"}},desktop:{title:"%{wallet} for %{platform}",description:"Access your wallet natively from your powerful desktop.",download:{label:"Add to %{platform}"}}},get_mobile2={title:"Install %{wallet}",description:"Scan with your phone to download on iOS or Android",continue:{label:"Continue"}},get_instructions2={mobile:{connect:{label:"Connect"},learn_more:{label:"Learn More"}},extension:{refresh:{label:"Refresh"},learn_more:{label:"Learn More"}},desktop:{connect:{label:"Connect"},learn_more:{label:"Learn More"}}},chains2={title:"Switch Networks",wrong_network:"Wrong network detected, switch or disconnect to continue.",confirm:"Confirm in Wallet",switching_not_supported:"Your wallet does not support switching networks from %{appName}. Try switching networks from within your wallet instead.",switching_not_supported_fallback:"Your wallet does not support switching networks from this app. Try switching networks from within your wallet instead.",disconnect:"Disconnect",connected:"Connected"},profile2={disconnect:{label:"Disconnect"},copy_address:{label:"Copy Address",copied:"Copied!"},explorer:{label:"View more on explorer"},transactions:{description:"%{appName} transactions will appear here...",description_fallback:"Your transactions will appear here...",recent:{title:"Recent Transactions"},clear:{label:"Clear All"}}},wallet_connectors2={argent:{qr_code:{step1:{description:"Put Argent on your home screen for faster access to your wallet.",title:"Open the Argent app"},step2:{description:"Create a wallet and username, or import an existing wallet.",title:"Create or Import a Wallet"},step3:{description:"After you scan, a connection prompt will appear for you to connect your wallet.",title:"Tap the Scan QR button"}}},bifrost:{qr_code:{step1:{description:"We recommend putting Bifrost Wallet on your home screen for quicker access.",title:"Open the Bifrost Wallet app"},step2:{description:"Create or import a wallet using your recovery phrase.",title:"Create or Import a Wallet"},step3:{description:"After you scan, a connection prompt will appear for you to connect your wallet.",title:"Tap the scan button"}}},bitget:{qr_code:{step1:{description:"We recommend putting Bitget Wallet on your home screen for quicker access.",title:"Open the Bitget Wallet app"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"After you scan, a connection prompt will appear for you to connect your wallet.",title:"Tap the scan button"}},extension:{step1:{description:"We recommend pinning Bitget Wallet to your taskbar for quicker access to your wallet.",title:"Install the Bitget Wallet extension"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"Once you set up your wallet, click below to refresh the browser and load up the extension.",title:"Refresh your browser"}}},bitski:{extension:{step1:{description:"We recommend pinning Bitski to your taskbar for quicker access to your wallet.",title:"Install the Bitski extension"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"Once you set up your wallet, click below to refresh the browser and load up the extension.",title:"Refresh your browser"}}},coin98:{qr_code:{step1:{description:"We recommend putting Coin98 Wallet on your home screen for faster access to your wallet.",title:"Open the Coin98 Wallet app"},step2:{description:"You can easily backup your wallet using our backup feature on your phone.",title:"Create or Import a Wallet"},step3:{description:"After you scan, a connection prompt will appear for you to connect your wallet.",title:"Tap the WalletConnect button"}},extension:{step1:{description:"Click at the top right of your browser and pin Coin98 Wallet for easy access.",title:"Install the Coin98 Wallet extension"},step2:{description:"Create a new wallet or import an existing one.",title:"Create or Import a wallet"},step3:{description:"Once you set up Coin98 Wallet, click below to refresh the browser and load up the extension.",title:"Refresh your browser"}}},coinbase:{qr_code:{step1:{description:"We recommend putting Coinbase Wallet on your home screen for quicker access.",title:"Open the Coinbase Wallet app"},step2:{description:"You can easily backup your wallet using the cloud backup feature.",title:"Create or Import a Wallet"},step3:{description:"After you scan, a connection prompt will appear for you to connect your wallet.",title:"Tap the scan button"}},extension:{step1:{description:"We recommend pinning Coinbase Wallet to your taskbar for quicker access to your wallet.",title:"Install the Coinbase Wallet extension"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"Once you set up your wallet, click below to refresh the browser and load up the extension.",title:"Refresh your browser"}}},core:{qr_code:{step1:{description:"We recommend putting Core on your home screen for faster access to your wallet.",title:"Open the Core app"},step2:{description:"You can easily backup your wallet using our backup feature on your phone.",title:"Create or Import a Wallet"},step3:{description:"After you scan, a connection prompt will appear for you to connect your wallet.",title:"Tap the WalletConnect button"}},extension:{step1:{description:"We recommend pinning Core to your taskbar for quicker access to your wallet.",title:"Install the Core extension"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"Once you set up your wallet, click below to refresh the browser and load up the extension.",title:"Refresh your browser"}}},fox:{qr_code:{step1:{description:"We recommend putting FoxWallet on your home screen for quicker access.",title:"Open the FoxWallet app"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"After you scan, a connection prompt will appear for you to connect your wallet.",title:"Tap the scan button"}}},frontier:{qr_code:{step1:{description:"We recommend putting Frontier Wallet on your home screen for quicker access.",title:"Open the Frontier Wallet app"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"After you scan, a connection prompt will appear for you to connect your wallet.",title:"Tap the scan button"}},extension:{step1:{description:"We recommend pinning Frontier Wallet to your taskbar for quicker access to your wallet.",title:"Install the Frontier Wallet extension"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"Once you set up your wallet, click below to refresh the browser and load up the extension.",title:"Refresh your browser"}}},im_token:{qr_code:{step1:{title:"Open the imToken app",description:"Put imToken app on your home screen for faster access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Create a new wallet or import an existing one."},step3:{title:"Tap Scanner Icon in top right corner",description:"Choose New Connection, then scan the QR code and confirm the prompt to connect."}}},metamask:{qr_code:{step1:{title:"Open the MetaMask app",description:"We recommend putting MetaMask on your home screen for quicker access."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Tap the scan button",description:"After you scan, a connection prompt will appear for you to connect your wallet."}},extension:{step1:{title:"Install the MetaMask extension",description:"We recommend pinning MetaMask to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},okx:{qr_code:{step1:{title:"Open the OKX Wallet app",description:"We recommend putting OKX Wallet on your home screen for quicker access."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Tap the scan button",description:"After you scan, a connection prompt will appear for you to connect your wallet."}},extension:{step1:{title:"Install the OKX Wallet extension",description:"We recommend pinning OKX Wallet to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},omni:{qr_code:{step1:{title:"Open the Omni app",description:"Add Omni to your home screen for faster access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Create a new wallet or import an existing one."},step3:{title:"Tap the QR icon and scan",description:"Tap the QR icon on your home screen, scan the code and confirm the prompt to connect."}}},token_pocket:{qr_code:{step1:{title:"Open the TokenPocket app",description:"We recommend putting TokenPocket on your home screen for quicker access."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Tap the scan button",description:"After you scan, a connection prompt will appear for you to connect your wallet."}},extension:{step1:{title:"Install the TokenPocket extension",description:"We recommend pinning TokenPocket to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},trust:{qr_code:{step1:{title:"Open the Trust Wallet app",description:"Put Trust Wallet on your home screen for faster access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Create a new wallet or import an existing one."},step3:{title:"Tap WalletConnect in Settings",description:"Choose New Connection, then scan the QR code and confirm the prompt to connect."}},extension:{step1:{title:"Install the Trust Wallet extension",description:"Click at the top right of your browser and pin Trust Wallet for easy access."},step2:{title:"Create or Import a wallet",description:"Create a new wallet or import an existing one."},step3:{title:"Refresh your browser",description:"Once you set up Trust Wallet, click below to refresh the browser and load up the extension."}}},uniswap:{qr_code:{step1:{title:"Open the Uniswap app",description:"Add Uniswap Wallet to your home screen for faster access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Create a new wallet or import an existing one."},step3:{title:"Tap the QR icon and scan",description:"Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."}}},zerion:{qr_code:{step1:{title:"Open the Zerion app",description:"We recommend putting Zerion on your home screen for quicker access."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Tap the scan button",description:"After you scan, a connection prompt will appear for you to connect your wallet."}},extension:{step1:{title:"Install the Zerion extension",description:"We recommend pinning Zerion to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},rainbow:{qr_code:{step1:{title:"Open the Rainbow app",description:"We recommend putting Rainbow on your home screen for faster access to your wallet."},step2:{title:"Create or Import a Wallet",description:"You can easily backup your wallet using our backup feature on your phone."},step3:{title:"Tap the scan button",description:"After you scan, a connection prompt will appear for you to connect your wallet."}}},enkrypt:{extension:{step1:{description:"We recommend pinning Enkrypt Wallet to your taskbar for quicker access to your wallet.",title:"Install the Enkrypt Wallet extension"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"Once you set up your wallet, click below to refresh the browser and load up the extension.",title:"Refresh your browser"}}},frame:{extension:{step1:{description:"We recommend pinning Frame to your taskbar for quicker access to your wallet.",title:"Install Frame & the companion extension"},step2:{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",title:"Create or Import a Wallet"},step3:{description:"Once you set up your wallet, click below to refresh the browser and load up the extension.",title:"Refresh your browser"}}},one_key:{extension:{step1:{title:"Install the OneKey Wallet extension",description:"We recommend pinning OneKey Wallet to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},phantom:{extension:{step1:{title:"Install the Phantom extension",description:"We recommend pinning Phantom to your taskbar for easier access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret recovery phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},rabby:{extension:{step1:{title:"Install the Rabby extension",description:"We recommend pinning Rabby to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},safeheron:{extension:{step1:{title:"Install the Core extension",description:"We recommend pinning Safeheron to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},taho:{extension:{step1:{title:"Install the Taho extension",description:"We recommend pinning Taho to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},talisman:{extension:{step1:{title:"Install the Talisman extension",description:"We recommend pinning Talisman to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import an Ethereum Wallet",description:"Be sure to back up your wallet using a secure method. Never share your recovery phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},xdefi:{extension:{step1:{title:"Install the XDEFI Wallet extension",description:"We recommend pinning XDEFI Wallet to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},zeal:{extension:{step1:{title:"Install the Zeal extension",description:"We recommend pinning Zeal to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},safepal:{extension:{step1:{title:"Install the SafePal Wallet extension",description:"Click at the top right of your browser and pin SafePal Wallet for easy access."},step2:{title:"Create or Import a wallet",description:"Create a new wallet or import an existing one."},step3:{title:"Refresh your browser",description:"Once you set up SafePal Wallet, click below to refresh the browser and load up the extension."}},qr_code:{step1:{title:"Open the SafePal Wallet app",description:"Put SafePal Wallet on your home screen for faster access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Create a new wallet or import an existing one."},step3:{title:"Tap WalletConnect in Settings",description:"Choose New Connection, then scan the QR code and confirm the prompt to connect."}}},desig:{extension:{step1:{title:"Install the Desig extension",description:"We recommend pinning Desig to your taskbar for easier access to your wallet."},step2:{title:"Create a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}}},subwallet:{extension:{step1:{title:"Install the SubWallet extension",description:"We recommend pinning SubWallet to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your recovery phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}},qr_code:{step1:{title:"Open the SubWallet app",description:"We recommend putting SubWallet on your home screen for quicker access."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Tap the scan button",description:"After you scan, a connection prompt will appear for you to connect your wallet."}}},clv:{extension:{step1:{title:"Install the CLV Wallet extension",description:"We recommend pinning CLV Wallet to your taskbar for quicker access to your wallet."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Refresh your browser",description:"Once you set up your wallet, click below to refresh the browser and load up the extension."}},qr_code:{step1:{title:"Open the CLV Wallet app",description:"We recommend putting CLV Wallet on your home screen for quicker access."},step2:{title:"Create or Import a Wallet",description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."},step3:{title:"Tap the scan button",description:"After you scan, a connection prompt will appear for you to connect your wallet."}}},okto:{qr_code:{step1:{title:"Open the Okto app",description:"Add Okto to your home screen for quick access"},step2:{title:"Create an MPC Wallet",description:"Create an account and generate a wallet"},step3:{title:"Tap WalletConnect in Settings",description:"Tap the Scan QR icon at the top right and confirm the prompt to connect."}}},ledger:{desktop:{step1:{title:"Open the Ledger Live app",description:"We recommend putting Ledger Live on your home screen for quicker access."},step2:{title:"Set up your Ledger",description:"Set up a new Ledger or connect to an existing one."},step3:{title:"Connect",description:"A connection prompt will appear for you to connect your wallet."}},qr_code:{step1:{title:"Open the Ledger Live app",description:"We recommend putting Ledger Live on your home screen for quicker access."},step2:{title:"Set up your Ledger",description:"You can either sync with the desktop app or connect your Ledger."},step3:{title:"Scan the code",description:"Tap WalletConnect then Switch to Scanner. After you scan, a connection prompt will appear for you to connect your wallet."}}}},en_US_default={connect_wallet:connect_wallet2,intro:intro2,sign_in:sign_in2,connect:connect2,connect_scan:connect_scan2,connector_group:connector_group2,get:get2,get_options:get_options2,get_mobile:get_mobile2,get_instructions:get_instructions2,chains:chains2,profile:profile2,wallet_connectors:wallet_connectors2},connect_wallet3={label:"Conectar la billetera"},intro3={title:"¿Qué es una billetera?",description:"Una billetera se usa para enviar, recibir, almacenar y mostrar activos digitales. También es una nueva forma de iniciar sesión, sin necesidad de crear nuevas cuentas y contraseñas en cada sitio web.",digital_asset:{title:"Un hogar para tus Activos Digitales",description:"Las carteras se utilizan para enviar, recibir, almacenar y mostrar activos digitales como Ethereum y NFTs."},login:{title:"Una nueva forma de iniciar sesión",description:"En lugar de crear nuevas cuentas y contraseñas en cada sitio web, simplemente conecta tu cartera."},get:{label:"Obtener una billetera"},learn_more:{label:"Obtener más información"}},sign_in3={label:"Verifica tu cuenta",description:"Para terminar de conectar, debes firmar un mensaje en tu billetera para verificar que eres el propietario de esta cuenta.",message:{send:"Enviar mensaje",preparing:"Preparando mensaje...",cancel:"Cancelar",preparing_error:"Error al preparar el mensaje, ¡intenta de nuevo!"},signature:{waiting:"Esperando firma...",verifying:"Verificando firma...",signing_error:"Error al firmar el mensaje, ¡intenta de nuevo!",verifying_error:"Error al verificar la firma, ¡intenta de nuevo!",oops_error:"¡Ups! Algo salió mal."}},connect3={label:"Conectar",title:"Conectar una billetera",new_to_ethereum:{description:"¿Eres nuevo en las billeteras Ethereum?",learn_more:{label:"Obtener más información"}},learn_more:{label:"Obtener más información"},recent:"Reciente",status:{opening:"Abriendo %{wallet}...",connecting:"Conectando",connect_mobile:"Continuar en %{wallet}",not_installed:"%{wallet} no está instalado",not_available:"%{wallet} no está disponible",confirm:"Confirma la conexión en la extensión",confirm_mobile:"Aceptar la solicitud de conexión en la cartera"},secondary_action:{get:{description:"¿No tienes %{wallet}?",label:"OBTENER"},install:{label:"INSTALAR"},retry:{label:"REINTENTAR"}},walletconnect:{description:{full:"¿Necesitas el modal oficial de WalletConnect?",compact:"¿Necesitas el modal de WalletConnect?"},open:{label:"ABRIR"}}},connect_scan3={title:"Escanea con %{wallet}",fallback_title:"Escanea con tu teléfono"},connector_group3={recommended:"Recomendado",other:"Otro",popular:"Popular",more:"Más",others:"Otros"},get3={title:"Obtener una billetera",action:{label:"OBTENER"},mobile:{description:"Billetera Móvil"},extension:{description:"Extensión de navegador"},mobile_and_extension:{description:"Billetera móvil y extensión"},mobile_and_desktop:{description:"Billetera Móvil y de Escritorio"},looking_for:{title:"¿No es lo que estás buscando?",mobile:{description:"Seleccione una billetera en la pantalla principal para comenzar con un proveedor de billetera diferente."},desktop:{compact_description:"Seleccione una cartera en la pantalla principal para comenzar con un proveedor de cartera diferente.",wide_description:"Seleccione una cartera a la izquierda para comenzar con un proveedor de cartera diferente."}}},get_options3={title:"Comienza con %{wallet}",short_title:"Obtener %{wallet}",mobile:{title:"%{wallet} para móvil",description:"Use la billetera móvil para explorar el mundo de Ethereum.",download:{label:"Obtener la aplicación"}},extension:{title:"%{wallet} para %{browser}",description:"Acceda a su billetera directamente desde su navegador web favorito.",download:{label:"Añadir a %{browser}"}},desktop:{title:"%{wallet} para %{platform}",description:"Acceda a su billetera de forma nativa desde su potente escritorio.",download:{label:"Añadir a %{platform}"}}},get_mobile3={title:"Instalar %{wallet}",description:"Escanee con su teléfono para descargar en iOS o Android",continue:{label:"Continuar"}},get_instructions3={mobile:{connect:{label:"Conectar"},learn_more:{label:"Obtener más información"}},extension:{refresh:{label:"Actualizar"},learn_more:{label:"Obtener más información"}},desktop:{connect:{label:"Conectar"},learn_more:{label:"Obtener más información"}}},chains3={title:"Cambiar redes",wrong_network:"Se detectó la red incorrecta, cambia o desconéctate para continuar.",confirm:"Confirmar en la cartera",switching_not_supported:"Tu cartera no admite cambiar las redes desde %{appName}. Intenta cambiar las redes desde tu cartera.",switching_not_supported_fallback:"Su billetera no admite el cambio de redes desde esta aplicación. Intente cambiar de red desde dentro de su billetera en su lugar.",disconnect:"Desconectar",connected:"Conectado"},profile3={disconnect:{label:"Desconectar"},copy_address:{label:"Copiar dirección",copied:"¡Copiado!"},explorer:{label:"Ver más en el explorador"},transactions:{description:"%{appName} transacciones aparecerán aquí...",description_fallback:"Tus transacciones aparecerán aquí...",recent:{title:"Transacciones recientes"},clear:{label:"Borrar Todo"}}},wallet_connectors3={argent:{qr_code:{step1:{description:"Coloque Argent en su pantalla de inicio para un acceso más rápido a su billetera.",title:"Abra la aplicación Argent"},step2:{description:"Cree una billetera y un nombre de usuario, o importe una billetera existente.",title:"Crear o Importar una Billetera"},step3:{description:"Después de escanear, aparecerá un mensaje de conexión para que conecte su billetera.",title:"Toque el botón Escanear QR"}}},bifrost:{qr_code:{step1:{description:"Recomendamos poner Bifrost Wallet en su pantalla de inicio para un acceso más rápido.",title:"Abra la aplicación Bifrost Wallet"},step2:{description:"Cree o importe una billetera usando su frase de recuperación.",title:"Crear o Importar una Billetera"},step3:{description:"Después de escanear, aparecerá un aviso de conexión para que conecte su billetera.",title:"Toque el botón de escaneo"}}},bitget:{qr_code:{step1:{description:"Recomendamos colocar Bitget Wallet en su pantalla de inicio para un acceso más rápido.",title:"Abra la aplicación Bitget Wallet"},step2:{description:"Asegúrese de respaldar su billetera utilizando un método seguro. Nunca comparta su frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Después de escanear, aparecerá un aviso de conexión para que pueda conectar su billetera.",title:"Toque el botón de escanear"}},extension:{step1:{description:"Recomendamos anclar Bitget Wallet a su barra de tareas para un acceso más rápido a su billetera.",title:"Instale la extensión de la Billetera Bitget"},step2:{description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Una vez que configures tu billetera, haz clic a continuación para refrescar el navegador y cargar la extensión.",title:"Refrescar tu navegador"}}},bitski:{extension:{step1:{description:"Recomendamos anclar Bitski a tu barra de tareas para un acceso más rápido a tu billetera.",title:"Instala la extensión Bitski"},step2:{description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Una vez que configure su billetera, haga clic abajo para actualizar el navegador y cargar la extensión.",title:"Actualiza tu navegador"}}},coin98:{qr_code:{step1:{description:"Recomendamos poner Coin98 Wallet en la pantalla de inicio para un acceso más rápido a su billetera.",title:"Abra la aplicación Coin98 Wallet"},step2:{description:"Puede respaldar fácilmente su billetera utilizando nuestra función de respaldo en su teléfono.",title:"Crear o Importar una Billetera"},step3:{description:"Después de escanear, aparecerá un aviso de conexión para que conecte su billetera.",title:"Toque el botón WalletConnect"}},extension:{step1:{description:"Haga clic en la parte superior derecha de su navegador y fije Coin98 Wallet para un fácil acceso.",title:"Instale la extensión Coin98 Wallet"},step2:{description:"Crea una nueva billetera o importa una existente.",title:"Crear o Importar una billetera"},step3:{description:"Una vez que configures Coin98 Wallet, haz clic a continuación para refrescar el navegador y cargar la extensión.",title:"Refresca tu navegador"}}},coinbase:{qr_code:{step1:{description:"Recomendamos poner Coinbase Wallet en tu pantalla de inicio para un acceso más rápido.",title:"Abre la aplicación de la Billetera Coinbase"},step2:{description:"Puedes respaldar tu billetera fácilmente utilizando la función de respaldo en la nube.",title:"Crear o Importar una Billetera"},step3:{description:"Después de escanear, aparecerá un aviso de conexión para que conectes tu billetera.",title:"Pulsa el botón de escanear"}},extension:{step1:{description:"Te recomendamos anclar la Billetera Coinbase a tu barra de tareas para un acceso más rápido a tu billetera.",title:"Instala la extensión de la Billetera Coinbase"},step2:{description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Una vez que configure su billetera, haga clic abajo para refrescar el navegador y cargar la extensión.",title:"Refresca tu navegador"}}},core:{qr_code:{step1:{description:"Recomendamos poner Core en su pantalla de inicio para un acceso más rápido a su billetera.",title:"Abra la aplicación Core"},step2:{description:"Puedes respaldar fácilmente tu billetera utilizando nuestra función de respaldo en tu teléfono.",title:"Crear o Importar una Billetera"},step3:{description:"Después de escanear, aparecerá un aviso de conexión para que conectes tu billetera.",title:"Toque el botón WalletConnect"}},extension:{step1:{description:"Recomendamos fijar Core a tu barra de tareas para acceder más rápido a tu billetera.",title:"Instala la extensión Core"},step2:{description:"Asegúrate de hacer una copia de seguridad de tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Una vez que configures tu billetera, haz clic a continuación para refrescar el navegador y cargar la extensión.",title:"Refresca tu navegador"}}},fox:{qr_code:{step1:{description:"Recomendamos poner FoxWallet en tu pantalla de inicio para un acceso más rápido.",title:"Abre la aplicación FoxWallet"},step2:{description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Después de escanear, aparecerá una solicitud de conexión para que conectes tu billetera.",title:"Toca el botón de escanear"}}},frontier:{qr_code:{step1:{description:"Recomendamos poner la Billetera Frontier en tu pantalla principal para un acceso más rápido.",title:"Abre la aplicación de la Billetera Frontier"},step2:{description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Después de escanear, aparecerá un mensaje para que conectes tu billetera.",title:"Haz clic en el botón de escaneo"}},extension:{step1:{description:"Recomendamos anclar la billetera Frontier a tu barra de tareas para un acceso más rápido a tu billetera.",title:"Instala la extensión de la billetera Frontier"},step2:{description:"Asegúrese de hacer una copia de seguridad de su billetera utilizando un método seguro. Nunca comparta su frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Una vez que configure su billetera, haga clic a continuación para actualizar el navegador y cargar la extensión.",title:"Actualizar tu navegador"}}},im_token:{qr_code:{step1:{title:"Abrir la aplicación imToken",description:"Pon la aplicación imToken en tu pantalla de inicio para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Crea una nueva billetera o importa una existente."},step3:{title:"Toca el Icono del Escáner en la esquina superior derecha",description:"Elija Nueva Conexión, luego escanee el código QR y confirme el aviso para conectar."}}},metamask:{qr_code:{step1:{title:"Abre la aplicación MetaMask",description:"Recomendamos colocar MetaMask en tu pantalla de inicio para un acceso más rápido."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Toca el botón de escanear",description:"Después de escanear, aparecerá un aviso de conexión para que conectes tu billetera."}},extension:{step1:{title:"Instala la extensión MetaMask",description:"Recomendamos anclar MetaMask a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de hacer una copia de seguridad de tu billetera usando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Refresca tu navegador",description:"Una vez que configures tu billetera, haz clic abajo para refrescar el navegador y cargar la extensión."}}},okx:{qr_code:{step1:{title:"Abre la aplicación OKX Wallet",description:"Recomendamos colocar OKX Wallet en tu pantalla de inicio para un acceso más rápido."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de respaldar tu billetera usando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Toca el botón de escanear",description:"Después de escanear, aparecerá un aviso de conexión para que conectes tu billetera."}},extension:{step1:{title:"Instala la extensión de Billetera OKX",description:"Recomendamos anclar la Billetera OKX a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de respaldar tu billetera usando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Refresca tu navegador",description:"Una vez que configure su billetera, haga clic abajo para actualizar el navegador y cargar la extensión."}}},omni:{qr_code:{step1:{title:"Abra la aplicación Omni",description:"Agregue Omni a su pantalla de inicio para un acceso más rápido a su billetera."},step2:{title:"Crear o Importar una Billetera",description:"Crear una nueva billetera o importar una existente."},step3:{title:"Toque el icono de QR y escanee",description:"Toca el icono QR en tu pantalla principal, escanea el código y confirma el aviso para conectar."}}},token_pocket:{qr_code:{step1:{title:"Abre la aplicación TokenPocket",description:"Recomendamos colocar TokenPocket en tu pantalla principal para un acceso más rápido."},step2:{title:"Crear o importar una Billetera",description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Toca el botón de escaneo",description:"Después de escanear, aparecerá una solicitud de conexión para que puedas conectar tu billetera."}},extension:{step1:{title:"Instala la extensión TokenPocket",description:"Recomendamos anclar TokenPocket a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Actualiza tu navegador",description:"Una vez que configures tu billetera, haz clic a continuación para actualizar el navegador y cargar la extensión."}}},trust:{qr_code:{step1:{title:"Abre la aplicación Trust Wallet",description:"Ubica Trust Wallet en tu pantalla de inicio para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Crea una nueva billetera o importa una existente."},step3:{title:"Toca WalletConnect en Configuraciones",description:"Elige Nueva Conexión, luego escanea el código QR y confirma el aviso para conectar."}},extension:{step1:{title:"Instala la extensión de Trust Wallet",description:"Haz clic en la parte superior derecha de tu navegador y fija Trust Wallet para un fácil acceso."},step2:{title:"Crea o Importa una billetera",description:"Crea una nueva billetera o importa una existente."},step3:{title:"Refresca tu navegador",description:"Una vez que configures Trust Wallet, haz clic abajo para refrescar el navegador y cargar la extensión."}}},uniswap:{qr_code:{step1:{title:"Abre la aplicación Uniswap",description:"Agrega la billetera Uniswap a tu pantalla de inicio para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Crea una nueva billetera o importa una existente."},step3:{title:"Toca el icono QR y escanea",description:"Toca el icono QR en tu pantalla de inicio, escanea el código y confirma el prompt para conectar."}}},zerion:{qr_code:{step1:{title:"Abre la aplicación Zerion",description:"Recomendamos poner Zerion en tu pantalla de inicio para un acceso más rápido."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de hacer una copia de seguridad de tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Toca el botón de escanear",description:"Después de escanear, aparecerá un aviso de conexión para que conectes tu billetera."}},extension:{step1:{title:"Instala la extensión Zerion",description:"Recomendamos anclar Zerion a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrese de respaldar su billetera usando un método seguro. Nunca comparta su frase secreta con nadie."},step3:{title:"Actualiza tu navegador",description:"Una vez que configures tu billetera, haz clic a continuación para actualizar el navegador y cargar la extensión."}}},rainbow:{qr_code:{step1:{title:"Abre la aplicación Rainbow",description:"Recomendamos poner Rainbow en tu pantalla de inicio para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Puedes respaldar fácilmente tu billetera usando nuestra función de respaldo en tu teléfono."},step3:{title:"Toca el botón de escanear",description:"Después de escanear, aparecerá una solicitud de conexión para que conectes tu billetera."}}},enkrypt:{extension:{step1:{description:"Recomendamos anclar la Billetera Enkrypt a tu barra de tareas para un acceso más rápido a tu billetera.",title:"Instala la extensión de Billetera Enkrypt"},step2:{description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Una vez que configures tu billetera, haz clic abajo para refrescar el navegador y cargar la extensión.",title:"Refresca tu navegador"}}},frame:{extension:{step1:{description:"Recomendamos anclar Frame a tu barra de tareas para un acceso más rápido a tu billetera.",title:"Instala Frame y la extensión complementaria"},step2:{description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie.",title:"Crear o Importar una Billetera"},step3:{description:"Una vez que configures tu billetera, haz clic a continuación para refrescar el navegador y cargar la extensión.",title:"Refresca tu navegador"}}},one_key:{extension:{step1:{title:"Instale la extensión de Billetera OneKey",description:"Recomendamos anclar la Billetera OneKey a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrese de respaldar su billetera usando un método seguro. Nunca comparta su frase secreta con nadie."},step3:{title:"Actualiza tu navegador",description:"Una vez que configures tu billetera, haz clic a continuación para actualizar el navegador y cargar la extensión."}}},phantom:{extension:{step1:{title:"Instala la extensión Phantom",description:"Recomendamos fijar Phantom a tu barra de tareas para un acceso más fácil a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrese de respaldar su billetera usando un método seguro. Nunca comparta su frase secreta de recuperación con nadie."},step3:{title:"Actualiza tu navegador",description:"Una vez que configures tu billetera, haz clic abajo para refrescar el navegador y cargar la extensión."}}},rabby:{extension:{step1:{title:"Instala la extensión Rabby",description:"Recomendamos anclar Rabby a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de hacer una copia de seguridad de tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Actualiza tu navegador",description:"Una vez que configures tu billetera, haz clic abajo para actualizar el navegador y cargar la extensión."}}},safeheron:{extension:{step1:{title:"Instala la extensión Core",description:"Recomendamos anclar Safeheron a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Refresca tu navegador",description:"Una vez que configures tu billetera, haz clic abajo para refrescar el navegador y cargar la extensión."}}},taho:{extension:{step1:{title:"Instala la extensión de Taho",description:"Recomendamos anclar Taho a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crea o Importa una Billetera",description:"Asegúrate de respaldar tu billetera utilizando un método seguro. Nunca compartas tu frase secreta con nadie."},step3:{title:"Refresca tu navegador",description:"Una vez que configures tu billetera, haz clic abajo para refrescar el navegador y cargar la extensión."}}},talisman:{extension:{step1:{title:"Instala la extensión de Talisman",description:"Recomendamos anclar Talisman a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crea o importa una billetera Ethereum",description:"Asegúrate de respaldar tu billetera usando un método seguro. Nunca compartas tu frase de recuperación con nadie."},step3:{title:"Recarga tu navegador",description:"Una vez que configures tu billetera, haz clic abajo para refrescar el navegador y cargar la extensión."}}},xdefi:{extension:{step1:{title:"Instala la extensión de la billetera XDEFI",description:"Recomendamos anclar XDEFI Wallet a su barra de tareas para un acceso más rápido a su billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrese de respaldar su billetera utilizando un método seguro. Nunca comparta su frase secreta con nadie."},step3:{title:"Actualice su navegador",description:"Una vez que configure su billetera, haga clic abajo para actualizar el navegador y cargar la extensión."}}},zeal:{extension:{step1:{title:"Instale la extensión Zeal",description:"Recomendamos anclar Zeal a su barra de tareas para un acceso más rápido a su billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrese de respaldar su billetera utilizando un método seguro. Nunca comparta su frase secreta con nadie."},step3:{title:"Refrescar tu navegador",description:"Una vez que configures tu billetera, haz clic a continuación para refrescar el navegador y cargar la extensión."}}},safepal:{extension:{step1:{title:"Instale la extensión de la billetera SafePal",description:"Haga clic en la esquina superior derecha de su navegador y ancle SafePal Wallet para un fácil acceso."},step2:{title:"Crear o Importar una billetera",description:"Crea una nueva billetera o importa una existente."},step3:{title:"Refrescar tu navegador",description:"Una vez que configure la Billetera SafePal, haga clic abajo para refrescar el navegador y cargar la extensión."}},qr_code:{step1:{title:"Abra la aplicación Billetera SafePal",description:"Coloque la Billetera SafePal en su pantalla de inicio para un acceso más rápido a su billetera."},step2:{title:"Crear o Importar una Billetera",description:"Crea una nueva billetera o importa una existente."},step3:{title:"Toca WalletConnect en Configuraciones",description:"Elija Nueva Conexión, luego escanee el código QR y confirme el aviso para conectar."}}},desig:{extension:{step1:{title:"Instala la extensión Desig",description:"Recomendamos anclar Desig a tu barra de tareas para acceder más fácilmente a tu cartera."},step2:{title:"Crea una Cartera",description:"Asegúrese de respaldar su billetera utilizando un método seguro. Nunca comparta su frase secreta con nadie."},step3:{title:"Refrescar tu navegador",description:"Una vez que configures tu billetera, haz clic a continuación para refrescar el navegador y cargar la extensión."}}},subwallet:{extension:{step1:{title:"Instala la extensión SubWallet",description:"Recomendamos anclar SubWallet a tu barra de tareas para acceder a tu cartera más rápidamente."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrate de respaldar tu billetera usando un método seguro. Nunca compartas tu frase de recuperación con nadie."},step3:{title:"Refrescar tu navegador",description:"Una vez que configures tu billetera, haz clic a continuación para refrescar el navegador y cargar la extensión."}},qr_code:{step1:{title:"Abre la aplicación SubWallet",description:"Recomendamos colocar SubWallet en tu pantalla principal para un acceso más rápido."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrese de respaldar su billetera utilizando un método seguro. Nunca comparta su frase secreta con nadie."},step3:{title:"Toque el botón de escaneo",description:"Después de escanear, aparecerá un mensaje de conexión para que conecte su billetera."}}},clv:{extension:{step1:{title:"Instala la extensión CLV Wallet",description:"Recomendamos anclar la billetera CLV a tu barra de tareas para un acceso más rápido a tu billetera."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrese de respaldar su billetera utilizando un método seguro. Nunca comparta su frase secreta con nadie."},step3:{title:"Refrescar tu navegador",description:"Una vez que configures tu billetera, haz clic a continuación para refrescar el navegador y cargar la extensión."}},qr_code:{step1:{title:"Abra la aplicación CLV Wallet",description:"Recomendamos colocar la billetera CLV en tu pantalla de inicio para un acceso más rápido."},step2:{title:"Crear o Importar una Billetera",description:"Asegúrese de respaldar su billetera utilizando un método seguro. Nunca comparta su frase secreta con nadie."},step3:{title:"Toque el botón de escaneo",description:"Después de escanear, aparecerá un mensaje de conexión para que conecte su billetera."}}},okto:{qr_code:{step1:{title:"Abra la aplicación Okto",description:"Agrega Okto a tu pantalla de inicio para un acceso rápido"},step2:{title:"Crea una billetera MPC",description:"Crea una cuenta y genera una billetera"},step3:{title:"Toca WalletConnect en Configuraciones",description:"Toca el icono de Escanear QR en la parte superior derecha y confirma el mensaje para conectar."}}},ledger:{desktop:{step1:{title:"Abra la aplicación Ledger Live",description:"Recomendamos poner Ledger Live en su pantalla de inicio para un acceso más rápido."},step2:{title:"Configure su Ledger",description:"Configure un nuevo Ledger o conéctese a uno existente."},step3:{title:"Conectar",description:"Después de escanear, aparecerá un aviso de conexión para que conectes tu billetera."}},qr_code:{step1:{title:"Abra la aplicación Ledger Live",description:"Recomendamos poner Ledger Live en su pantalla de inicio para un acceso más rápido."},step2:{title:"Configure su Ledger",description:"Puedes sincronizar con la aplicación de escritorio o conectar tu Ledger."},step3:{title:"Escanea el código",description:"Toca WalletConnect y luego cambia a Scanner. Después de escanear, aparecerá un aviso de conexión para que conectes tu billetera."}}}},es_419_default={connect_wallet:connect_wallet3,intro:intro3,sign_in:sign_in3,connect:connect3,connect_scan:connect_scan3,connector_group:connector_group3,get:get3,get_options:get_options3,get_mobile:get_mobile3,get_instructions:get_instructions3,chains:chains3,profile:profile3,wallet_connectors:wallet_connectors3},connect_wallet4={label:"Connecter le portefeuille"},intro4={title:"Qu'est-ce qu'un portefeuille?",description:"Un portefeuille est utilisé pour envoyer, recevoir, stocker et afficher des actifs numériques. C'est aussi une nouvelle façon de se connecter, sans avoir besoin de créer de nouveaux comptes et mots de passe sur chaque site.",digital_asset:{title:"Un foyer pour vos actifs numériques",description:"Les portefeuilles sont utilisés pour envoyer, recevoir, stocker et afficher des actifs numériques comme Ethereum et les NFTs."},login:{title:"Une nouvelle façon de se connecter",description:"Au lieu de créer de nouveaux comptes et mots de passe sur chaque site Web, connectez simplement votre portefeuille."},get:{label:"Obtenir un portefeuille"},learn_more:{label:"En savoir plus"}},sign_in4={label:"Vérifiez votre compte",description:"Pour terminer la connexion, vous devez signer un message dans votre portefeuille pour vérifier que vous êtes le propriétaire de ce compte.",message:{send:"Envoyer le message",preparing:"Préparation du message...",cancel:"Annuler",preparing_error:"Erreur lors de la préparation du message, veuillez réessayer!"},signature:{waiting:"En attente de la signature...",verifying:"Vérification de la signature...",signing_error:"Erreur lors de la signature du message, veuillez réessayer!",verifying_error:"Erreur lors de la vérification de la signature, veuillez réessayer!",oops_error:"Oups, quelque chose a mal tourné!"}},connect4={label:"Connecter",title:"Connecter un portefeuille",new_to_ethereum:{description:"Nouveau aux portefeuilles Ethereum?",learn_more:{label:"En savoir plus"}},learn_more:{label:"En savoir plus"},recent:"Récents",status:{opening:"Ouverture %{wallet}...",connecting:"Connect :)ing",connect_mobile:"Continuer dans %{wallet}",not_installed:"%{wallet} n'est pas installé",not_available:"%{wallet} n'est pas disponible",confirm:"Confirmez la connexion dans l'extension",confirm_mobile:"Accepter la demande de connexion dans le portefeuille"},secondary_action:{get:{description:"Vous n'avez pas de %{wallet}?",label:"OBTENIR"},install:{label:"INSTALLER"},retry:{label:"RÉESSAYER"}},walletconnect:{description:{full:"Vous avez besoin du modal officiel de WalletConnect ?",compact:"Besoin du modal de WalletConnect ?"},open:{label:"OUVRIR"}}},connect_scan4={title:"Scannez avec %{wallet}",fallback_title:"Scannez avec votre téléphone"},connector_group4={recommended:"Recommandé",other:"Autre",popular:"Populaire",more:"Plus",others:"Autres"},get4={title:"Obtenez un portefeuille",action:{label:"OBTENIR"},mobile:{description:"Portefeuille mobile"},extension:{description:"Extension de navigateur"},mobile_and_extension:{description:"Portefeuille mobile et extension"},mobile_and_desktop:{description:"Portefeuille mobile et de bureau"},looking_for:{title:"Ce n'est pas ce que vous cherchez ?",mobile:{description:"Sélectionnez un portefeuille sur l'écran principal pour commencer avec un autre fournisseur de portefeuille."},desktop:{compact_description:"Sélectionnez un portefeuille sur l'écran principal pour commencer avec un autre fournisseur de portefeuille.",wide_description:"Sélectionnez un portefeuille sur la gauche pour commencer avec un autre fournisseur de portefeuille."}}},get_options4={title:"Commencez avec %{wallet}",short_title:"Obtenez %{wallet}",mobile:{title:"%{wallet} pour mobile",description:"Utilisez le portefeuille mobile pour explorer le monde d'Ethereum.",download:{label:"Obtenez l'application"}},extension:{title:"%{wallet} pour %{browser}",description:"Accédez à votre portefeuille directement depuis votre navigateur web préféré.",download:{label:"Ajouter à %{browser}"}},desktop:{title:"%{wallet} pour %{platform}",description:"Accédez à votre portefeuille nativement depuis votre puissant ordinateur de bureau.",download:{label:"Ajouter à %{platform}"}}},get_mobile4={title:"Installer %{wallet}",description:"Scannez avec votre téléphone pour télécharger sur iOS ou Android",continue:{label:"Continuer"}},get_instructions4={mobile:{connect:{label:"Connecter"},learn_more:{label:"En savoir plus"}},extension:{refresh:{label:"Rafraîchir"},learn_more:{label:"En savoir plus"}},desktop:{connect:{label:"Connecter"},learn_more:{label:"En savoir plus"}}},chains4={title:"Changer de Réseaux",wrong_network:"Mauvais réseau détecté, changez ou déconnectez-vous pour continuer.",confirm:"Confirmer dans le portefeuille",switching_not_supported:"Votre portefeuille ne supporte pas le changement de réseaux depuis %{appName}. Essayez de changer de réseau depuis votre portefeuille.",switching_not_supported_fallback:"Votre portefeuille ne prend pas en charge le changement de réseaux à partir de cette application. Essayez de changer de réseau à partir de votre portefeuille à la place.",disconnect:"Déconnecter",connected:"Connecté"},profile4={disconnect:{label:"Déconnecter"},copy_address:{label:"Copier l'adresse",copied:"Copié !"},explorer:{label:"Voir plus sur l'explorateur"},transactions:{description:"%{appName} transactions apparaîtront ici...",description_fallback:"Vos transactions apparaîtront ici...",recent:{title:"Transactions Récentes"},clear:{label:"Tout supprimer"}}},wallet_connectors4={argent:{qr_code:{step1:{description:"Mettez Argent sur votre écran d'accueil pour un accès plus rapide à votre portefeuille.",title:"Ouvrez l'application Argent"},step2:{description:"Créez un portefeuille et un nom d'utilisateur, ou importez un portefeuille existant.",title:"Créer ou Importer un Portefeuille"},step3:{description:"Après avoir numérisé, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille.",title:"Appuyez sur le bouton Scan QR"}}},bifrost:{qr_code:{step1:{description:"Nous vous recommandons de mettre le portefeuille Bifrost sur votre écran d'accueil pour un accès plus rapide.",title:"Ouvrez l'application Bifrost Wallet"},step2:{description:"Créez ou importez un portefeuille en utilisant votre phrase de récupération.",title:"Créer ou Importer un portefeuille"},step3:{description:"Après votre scan, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille.",title:"Appuyez sur le bouton de scan"}}},bitget:{qr_code:{step1:{description:"Nous vous recommandons de placer Bitget Wallet sur votre écran d'accueil pour un accès plus rapide.",title:"Ouvrez l'application Bitget Wallet"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque.",title:"Créer ou Importer un portefeuille"},step3:{description:"Après le scan, une incitation de connexion apparaîtra pour vous permettre de connecter votre portefeuille.",title:"Appuyez sur le bouton de scan"}},extension:{step1:{description:"Nous vous recommandons d'épingler Bitget Wallet à votre barre des tâches pour un accès plus rapide à votre portefeuille.",title:"Installez l'extension de portefeuille Bitget"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec personne.",title:"Créez ou Importez un portefeuille"},step3:{description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension.",title:"Rafraîchissez votre navigateur"}}},bitski:{extension:{step1:{description:"Nous recommandons d'épingler Bitski à votre barre des tâches pour un accès plus rapide à votre portefeuille.",title:"Installez l'extension Bitski"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec qui que ce soit.",title:"Créer ou Importer un portefeuille"},step3:{description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension.",title:"Rafraîchissez votre navigateur"}}},coin98:{qr_code:{step1:{description:"Nous vous recommandons de placer Coin98 Wallet sur votre écran d'accueil pour un accès plus rapide à votre portefeuille.",title:"Ouvrez l'application Coin98 Wallet"},step2:{description:"Vous pouvez facilement sauvegarder votre portefeuille en utilisant notre fonction de sauvegarde sur votre téléphone.",title:"Créer ou Importer un portefeuille"},step3:{description:"Après que vous ayez scanné, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille.",title:"Appuyez sur le bouton WalletConnect"}},extension:{step1:{description:"Cliquez en haut à droite de votre navigateur et épinglez Coin98 Wallet pour un accès facile.",title:"Installez l'extension Coin98 Wallet"},step2:{description:"Créez un nouveau portefeuille ou importez-en un existant.",title:"Créer ou Importer un portefeuille"},step3:{description:"Une fois que vous avez configuré Coin98 Wallet, cliquez ci-dessous pour actualiser le navigateur et charger l'extension.",title:"Rafraîchissez votre navigateur"}}},coinbase:{qr_code:{step1:{description:"Nous recommandons de placer Coinbase Wallet sur votre écran d'accueil pour un accès plus rapide.",title:"Ouvrez l'application Coinbase Wallet"},step2:{description:"Vous pouvez facilement sauvegarder votre portefeuille en utilisant la fonction de sauvegarde cloud.",title:"Créer ou Importer un portefeuille"},step3:{description:"Après avoir scanné, une invite de connexion s'affichera pour que vous puissiez connecter votre portefeuille.",title:"Appuyez sur le bouton de scan"}},extension:{step1:{description:"Nous recommandons d'épingler Coinbase Wallet à votre barre des tâches pour un accès plus rapide à votre portefeuille.",title:"Installez l'extension Coinbase Wallet"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sûre. Ne partagez jamais votre phrase secrète avec quiconque.",title:"Créer ou Importer un portefeuille"},step3:{description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension.",title:"Actualisez votre navigateur"}}},core:{qr_code:{step1:{description:"Nous recommandons de placer Core sur votre écran d'accueil pour un accès plus rapide à votre portefeuille.",title:"Ouvrez l'application Core"},step2:{description:"Vous pouvez facilement sauvegarder votre portefeuille en utilisant notre fonction de sauvegarde sur votre téléphone.",title:"Créer ou Importer un portefeuille"},step3:{description:"Après avoir scanné, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille.",title:"Appuyez sur le bouton WalletConnect"}},extension:{step1:{description:"Nous recommandons d'épingler Core à votre barre des tâches pour un accès plus rapide à votre portefeuille.",title:"Installez l'extension Core"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque.",title:"Créez ou Importer un Portefeuille"},step3:{description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension.",title:"Rafraîchissez votre navigateur"}}},fox:{qr_code:{step1:{description:"Nous recommandons de mettre FoxWallet sur votre écran d'accueil pour un accès plus rapide.",title:"Ouvrez l'application FoxWallet"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec personne.",title:"Créer ou Importer un portefeuille"},step3:{description:"Après avoir scanné, une invitation à la connexion apparaîtra pour vous permettre de connecter votre portefeuille.",title:"Appuyez sur le bouton de scan"}}},frontier:{qr_code:{step1:{description:"Nous vous recommandons de placer le portefeuille Frontier sur votre écran d'accueil pour un accès plus rapide.",title:"Ouvrez l'application Frontier Wallet"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec personne.",title:"Créer ou Importer un portefeuille"},step3:{description:"Après avoir scanné, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille.",title:"Appuyez sur le bouton de scan"}},extension:{step1:{description:"Nous recommandons d'épingler Frontier Wallet à votre barre des tâches pour un accès plus rapide à votre portefeuille.",title:"Installez l'extension Frontier Wallet"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec personne.",title:"Créez ou importez un portefeuille"},step3:{description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension.",title:"Rafraîchissez votre navigateur"}}},im_token:{qr_code:{step1:{title:"Ouvrez l'application imToken",description:"Placez l'application imToken sur votre écran d'accueil pour un accès plus rapide à votre portefeuille."},step2:{title:"Créez ou importez un portefeuille",description:"Créez un nouveau portefeuille ou importez-en un existant ."},step3:{title:"Appuyez sur l'icône du scanner dans le coin supérieur droit",description:"Choisissez Nouvelle Connexion, puis scannez le code QR et confirmez l'invite pour vous connecter."}}},metamask:{qr_code:{step1:{title:"Ouvrez l'application MetaMask",description:"Nous vous recommandons de mettre MetaMask sur votre écran d'accueil pour un accès plus rapide."},step2:{title:"Créer ou Importer un Portefeuille",description:"Veillez à sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec qui que ce soit."},step3:{title:"Appuyez sur le bouton de scan",description:"Après avoir scanné, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille."}},extension:{step1:{title:"Installez l’extension de MetaMask",description:"Nous recommandons d'épingler MetaMask à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},okx:{qr_code:{step1:{title:"Ouvrez l'application OKX Wallet",description:"Nous recommandons de mettre OKX Wallet sur votre écran d'accueil pour un accès plus rapide."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Appuyez sur le bouton de numérisation",description:"Après avoir numérisé, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille."}},extension:{step1:{title:"Installez l'extension de portefeuille OKX",description:"Nous vous recommandons d'épingler le portefeuille OKX à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension."}}},omni:{qr_code:{step1:{title:"Ouvrez l'application Omni",description:"Ajoutez Omni à votre écran d'accueil pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un Portefeuille",description:"Créez un nouveau portefeuille ou importez-en un existant."},step3:{title:"Touchez l'icône QR et scannez",description:"Appuyez sur l'icône QR sur votre écran d'accueil, scannez le code et confirmez l'invite pour vous connecter."}}},token_pocket:{qr_code:{step1:{title:"Ouvrez l'application TokenPocket",description:"Nous vous recommandons de mettre TokenPocket sur votre écran d'accueil pour un accès plus rapide."},step2:{title:"Créez ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille à l'aide d'une méthode sécurisée. Ne partagez jamais votre phrase secrète avec qui que ce soit."},step3:{title:"Appuyez sur le bouton de scan",description:"Après votre scan, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille."}},extension:{step1:{title:"Installez l'extension TokenPocket",description:"Nous recommandons d'épingler TokenPocket à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec qui que ce soit."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},trust:{qr_code:{step1:{title:"Ouvrez l'application Trust Wallet",description:"Placez Trust Wallet sur votre écran d'accueil pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Créer un nouveau portefeuille ou en importer un existant."},step3:{title:"Appuyez sur WalletConnect dans les paramètres",description:"Choisissez Nouvelle Connexion, puis scannez le code QR et confirmez l'invite pour vous connecter."}},extension:{step1:{title:"Installez l'extension Trust Wallet",description:"Cliquez en haut à droite de votre navigateur et épinglez Trust Wallet pour un accès facile."},step2:{title:"Créer ou importer un portefeuille",description:"Créer un nouveau portefeuille ou en importer un existant."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré Trust Wallet, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},uniswap:{qr_code:{step1:{title:"Ouvrez l'application Uniswap",description:"Ajoutez Uniswap Wallet à votre écran d'accueil pour un accès plus rapide à votre portefeuille."},step2:{title:"Créez ou importez un portefeuille",description:"Créez un nouveau portefeuille ou importez-en un existant."},step3:{title:"Tapez sur l'icône QR et scannez",description:"Touchez l'icône QR sur votre écran d'accueil, scannez le code et confirmez l'invite pour vous connecter."}}},zerion:{qr_code:{step1:{title:"Ouvrez l'application Zerion",description:"Nous vous recommandons de mettre Zerion sur votre écran d'accueil pour un accès plus rapide."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec personne."},step3:{title:"Appuyez sur le bouton de scan",description:"Une fois que vous avez scanné, une invite de connexion apparaîtra pour que vous puissiez connecter votre portefeuille."}},extension:{step1:{title:"Installer l'extension Zerion",description:"Nous recommandons d'épingler Zerion à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créez ou Importez un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},rainbow:{qr_code:{step1:{title:"Ouvre l'application Rainbow",description:"Nous vous recommandons de mettre Rainbow sur votre écran d'accueil pour un accès plus rapide à votre portefeuille."},step2:{title:"Créez ou Importez un portefeuille",description:"Vous pouvez facilement sauvegarder votre portefeuille en utilisant notre fonction de sauvegarde sur votre téléphone."},step3:{title:"Appuyez sur le bouton de scan",description:"Après avoir scanné, une invite de connexion apparaîtra pour que vous connectiez votre portefeuille."}}},enkrypt:{extension:{step1:{description:"Nous vous recommandons d'épingler Enkrypt Wallet à votre barre des tâches pour un accès plus rapide à votre portefeuille.",title:"Installez l'extension Enkrypt Wallet"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quelqu'un.",title:"Créer ou Importer un portefeuille"},step3:{description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l’extension.",title:"Rafraîchissez votre navigateur"}}},frame:{extension:{step1:{description:"Nous vous recommandons d'épingler Frame à votre barre des tâches pour un accès plus rapide à votre portefeuille.",title:"Installez Frame & l'extension complémentaire"},step2:{description:"Assurez-vous de sauvegarder votre portefeuille à l'aide d'une méthode sécurisée. Ne partagez jamais votre phrase secrète avec personne.",title:"Créer ou Importer un portefeuille"},step3:{description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension.",title:"Rafraîchissez votre navigateur"}}},one_key:{extension:{step1:{title:"Installez l'extension OneKey Wallet",description:"Nous vous recommandons d'épingler OneKey Wallet à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec personne."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},phantom:{extension:{step1:{title:"Installez l'extension Phantom",description:"Nous vous recommandons d'épingler Phantom à votre barre des tâches pour un accès plus facile à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase de récupération secrète avec personne."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},rabby:{extension:{step1:{title:"Installez l'extension Rabby",description:"Nous recommandons d'épingler Rabby à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec qui que ce soit."},step3:{title:"Actualisez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension."}}},safeheron:{extension:{step1:{title:"Installez l'extension Core",description:"Nous recommandons d'épingler Safeheron à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quelqu'un."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},taho:{extension:{step1:{title:"Installez l'extension Taho",description:"Nous vous recommandons d'épingler Taho à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créez ou Importez un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quelqu'un."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},talisman:{extension:{step1:{title:"Installez l'extension Talisman",description:"Nous vous recommandons d'épingler Talisman à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou importer un portefeuille Ethereum",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase de récupération avec personne."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},xdefi:{extension:{step1:{title:"Installez l'extension du portefeuille XDEFI",description:"Nous vous recommandons d'épingler XDEFI Wallet à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec qui que ce soit."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}}},zeal:{extension:{step1:{title:"Installez l'extension Zeal",description:"Nous vous recommandons d'épingler Zeal à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un Portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension."}}},safepal:{extension:{step1:{title:"Installez l'extension SafePal Wallet",description:"Cliquez en haut à droite de votre navigateur et épinglez SafePal Wallet pour un accès facile."},step2:{title:"Créer ou Importer un portefeuille",description:"Créez un nouveau portefeuille ou importez-en un existant."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré SafePal Wallet, cliquez ci-dessous pour rafraîchir le navigateur et charger l'extension."}},qr_code:{step1:{title:"Ouvrez l'application SafePal Wallet",description:"Mettez SafePal Wallet sur votre écran d'accueil pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un Portefeuille",description:"Créez un nouveau portefeuille ou importez-en un existant."},step3:{title:"Appuyez sur WalletConnect dans les paramètres",description:"Choisissez Nouvelle Connexion, puis scannez le code QR et confirmez l'invite pour vous connecter."}}},desig:{extension:{step1:{title:"Installez l'extension Desig",description:"Nous vous recommandons d'épingler Desig à votre barre des tâches pour un accès plus facile à votre portefeuille."},step2:{title:"Créer un Portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension."}}},subwallet:{extension:{step1:{title:"Installez l'extension SubWallet",description:"Nous vous recommandons d'épingler SubWallet à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un Portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase de récupération avec personne."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension."}},qr_code:{step1:{title:"Ouvrez l'application SubWallet",description:"Nous vous recommandons de mettre SubWallet sur votre écran d'accueil pour un accès plus rapide."},step2:{title:"Créer ou Importer un Portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Appuyez sur le bouton de scan",description:"Après avoir numérisé, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille."}}},clv:{extension:{step1:{title:"Installez l'extension CLV Wallet",description:"Nous vous recommandons d'épingler CLV Wallet à votre barre des tâches pour un accès plus rapide à votre portefeuille."},step2:{title:"Créer ou Importer un Portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Rafraîchissez votre navigateur",description:"Une fois que vous avez configuré votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension."}},qr_code:{step1:{title:"Ouvrez l'application CLV Wallet",description:"Nous vous recommandons de mettre CLV Wallet sur votre écran d'accueil pour un accès plus rapide."},step2:{title:"Créer ou Importer un Portefeuille",description:"Assurez-vous de sauvegarder votre portefeuille en utilisant une méthode sécurisée. Ne partagez jamais votre phrase secrète avec quiconque."},step3:{title:"Appuyez sur le bouton de scan",description:"Après avoir numérisé, une invite de connexion apparaîtra pour vous permettre de connecter votre portefeuille."}}},okto:{qr_code:{step1:{title:"Ouvrez l'application Okto",description:"Ajoutez Okto à votre écran d'accueil pour un accès rapide"},step2:{title:"Créer un portefeuille MPC",description:"Créez un compte et générez un portefeuille"},step3:{title:"Appuyez sur WalletConnect dans les paramètres",description:"Touchez l'icône 'Scan QR' en haut à droite et confirmez l'invite pour vous connecter."}}},ledger:{desktop:{step1:{title:"Ouvrez l'application Ledger Live",description:"Nous vous recommandons de mettre Ledger Live sur votre écran d'accueil pour un accès plus rapide."},step2:{title:"Configurez votre Ledger",description:"Configurez un nouveau Ledger ou connectez-vous à un existant."},step3:{title:"Connecter",description:"Une fois que vous avez scanné, une invite de connexion apparaîtra pour que vous puissiez connecter votre portefeuille."}},qr_code:{step1:{title:"Ouvrez l'application Ledger Live",description:"Nous vous recommandons de mettre Ledger Live sur votre écran d'accueil pour un accès plus rapide."},step2:{title:"Configurez votre Ledger",description:"Vous pouvez soit synchroniser avec l'application de bureau, soit connecter votre Ledger."},step3:{title:"Scannez le code",description:"Appuyez sur WalletConnect puis passez au Scanner. Une fois que vous avez scanné, une invite de connexion apparaîtra pour que vous puissiez connecter votre portefeuille."}}}},fr_FR_default={connect_wallet:connect_wallet4,intro:intro4,sign_in:sign_in4,connect:connect4,connect_scan:connect_scan4,connector_group:connector_group4,get:get4,get_options:get_options4,get_mobile:get_mobile4,get_instructions:get_instructions4,chains:chains4,profile:profile4,wallet_connectors:wallet_connectors4},connect_wallet5={label:"वॉलेट को कनेक्ट करें"},intro5={title:"वॉलेट क्या है?",description:"एक वॉलेट का उपयोग डिजिटल संपत्तियों को भेजने, प्राप्त करने, संग्रहित करने और प्रदर्शित करने के लिए किया जाता है। यह एक नया तरीका भी है लॉग इन करने का, हर वेबसाइट पर नए खाते और पासवर्ड बनाने की जरूरत के बिना।",digital_asset:{title:"अपने डिजिटल संपत्तियों के लिए एक घर",description:"वॉलेट का उपयोग Ethereum और NFTs जैसी डिजिटल संपत्तियों को भेजने, प्राप्त करने, संग्रहित करने और प्रदर्शित करने के लिए किया जाता है."},login:{title:"लॉग इन करने का एक नया तरीका",description:"हर वेबसाइट पर नए खाते और पासवर्ड बनाने की बजाय, बस अपना वॉलेट कनेक्ट करें."},get:{label:"एक वॉलेट प्राप्त करें"},learn_more:{label:"और जानें"}},sign_in5={label:"अपने खाते की पुष्टि करें",description:"जुड़ने को पूरा करने के लिए, आपको अपने बटुए में एक संदेश पर हस्ताक्षर करना होगा ताकि पुष्टि हो सके कि आप इस खाते के मालिक हैं।",message:{send:"संदेश भेजें",preparing:"संदेश तैयार कर रहा है...",cancel:"रद्द करें",preparing_error:"संदेश तैयार करते समय त्रुटि, कृपया पुनः प्रयास करें!"},signature:{waiting:"हस्ताक्षर का इंतजार कर रहा है...",verifying:"हस्ताक्षर की पुष्टि की जा रही है...",signing_error:"संदेश पर हस्ताक्षर करते समय त्रुटि, कृपया पुनः प्रयास करें!",verifying_error:"हस्ताक्षर की पुष्टि में त्रुटि, कृपया पुनः प्रयास करें!",oops_error:"ओह, कुछ गलत हो गया!"}},connect5={label:"कनेक्ट करें",title:"वॉलेट को कनेक्ट करें",new_to_ethereum:{description:"Ethereum वॉलेट्स में नए हैं?",learn_more:{label:"और जानें"}},learn_more:{label:"और जानें।"},recent:"हाल ही में",status:{opening:"%{wallet}खोल रहा है...",connecting:"जोड़ रहा है",connect_mobile:"जारी रखें %{wallet}",not_installed:"%{wallet} स्थापित नहीं है",not_available:"%{wallet} उपलब्ध नहीं है",confirm:"एक्सटेंशन में कनेक्शन की पुष्टि करें",confirm_mobile:"वॉलेट में कनेक्शन अनुरोध स्वीकार करें"},secondary_action:{get:{description:"क्या आपके पास %{wallet}नहीं है ?",label:"प्राप्त करें"},install:{label:"स्थापित करें"},retry:{label:"पुनः प्रयास करें"}},walletconnect:{description:{full:"क्या आपको आधिकारिक WalletConnect मोडल की आवश्यकता है?",compact:"क्या आपको WalletConnect मोडल की आवश्यकता है?"},open:{label:"खोलें"}}},connect_scan5={title:"स्कैन करें विथ %{wallet}",fallback_title:"अपने फोन से स्कैन करें"},connector_group5={recommended:"अनुशंसित",other:"अन्य",popular:"लोकप्रिय",more:"अधिक",others:"अन्य लोग"},get5={title:"एक वॉलेट प्राप्त करें",action:{label:"प्राप्त करें"},mobile:{description:"मोबाइल वॉलेट"},extension:{description:"ब्राउज़र एक्सटेंशन"},mobile_and_extension:{description:"मोबाइल वॉलेट और एक्सटेंशन"},mobile_and_desktop:{description:"मोबाइल और डेस्कटॉप वॉलेट"},looking_for:{title:"क्या आपको जो चाहिए वह नहीं मिल रहा है?",mobile:{description:"मुख्य स्क्रीन पर एक बटुआ चुनें ताकि आप एक अलग बटुआ प्रदाता के साथ शुरू कर सकें।"},desktop:{compact_description:"मुख्य स्क्रीन पर एक बटुआ चुनें ताकि आप एक अलग बटुआ प्रदाता के साथ शुरू कर सकें।",wide_description:"बाएं एक बटुआ चुनें ताकि आप एक अलग बटुआ प्रदाता के साथ शुरू कर सकें।"}}},get_options5={title:"%{wallet}के साथ शुरू करें",short_title:"%{wallet}प्राप्त करें",mobile:{title:"मोबाइल के लिए %{wallet}",description:"मोबाइल वॉलेट का उपयोग करके Ethereum की दुनिया का अन्वेषण करें।",download:{label:"ऐप प्राप्त करें"}},extension:{title:"%{wallet} के लिए %{browser}",description:"अपने पसंदीदा वेब ब्राउज़र से अपने वॉलेट तक पहुंचें।",download:{label:"करें जोड़ें %{browser}"}},desktop:{title:"%{wallet} के लिए %{platform}",description:"अपने शक्तिशाली डेस्कटॉप से आपके वॉलेट की स्वतंत्रता द्वारा पहुंच।",download:{label:"को जोड़ें %{platform}"}}},get_mobile5={title:"स्थापित करें %{wallet}",description:"iOS या Android पर डाउनलोड करने के लिए अपने फोन से स्कैन करें",continue:{label:"जारी रखें"}},get_instructions5={mobile:{connect:{label:"जोड़ें"},learn_more:{label:"और जानें"}},extension:{refresh:{label:"ताज़ा करें"},learn_more:{label:"और जानें"}},desktop:{connect:{label:"कनेक्ट करें"},learn_more:{label:"और जानें"}}},chains5={title:"नेटवर्क स्विच करें",wrong_network:"गलत नेटवर्क का पता चला, जारी रखने के लिए स्विच करें या कनेक्ट करें।",confirm:"वॉलेट में पुष्टि करें",switching_not_supported:"आपका वॉलेट नेटवर्क्स को %{appName}से स्विच करना समर्थन नहीं करता . बजाय अपने वॉलेट के भीतर से नेटवर्क स्विच करने का प्रयास करें।",switching_not_supported_fallback:"आपका वॉलेट इस एप से नेटवर्क्स स्विच करने का समर्थन नहीं करता। बजाय उसके, अपना वॉलेट द्वारा नेटवर्क्स स्विच करने की कोशिश करें।",disconnect:"डिकनेक्ट",connected:"कनेक्ट किया गया"},profile5={disconnect:{label:"डिकनेक्ट"},copy_address:{label:"पता कॉपी करें",copied:"कॉपी कर दिया गया!"},explorer:{label:"एक्सप्लोरर पर अधिक देखें"},transactions:{description:"%{appName} लेन - देन यहां दिखाई देंगे...",description_fallback:"आपके लेन-देन यहां दिखाई देंगे...",recent:{title:"हाल के लेन - देन"},clear:{label:"सभी को हटाएं"}}},wallet_connectors5={argent:{qr_code:{step1:{description:"अपने वॉलेट को जल्दी से एक्सेस करने के लिए आपके होम स्क्रीन पर Argent डालें।",title:"Argent ऐप खोलें"},step2:{description:"वॉलेट और उपयोगकर्ता नाम बनाएं, या मौजूदा वॉलेट को आयात करें।",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"जैसे ही आप स्कैन करेंगे, एक कनेक्शन संकेत आपके वॉलेट को कनेक्ट करने के लिए प्रकट होगा।",title:"QR स्कैन बटन को टैप करें"}}},bifrost:{qr_code:{step1:{description:"हम आपको सलाह देते हैं कि Bifrost Wallet को अपने होम स्क्रीन पर लगाएं, ताकि त्वरित एक्सेस को सुनिश्चित किया जा सके।",title:"Bifrost Wallet ऐप को खोलें"},step2:{description:"अपने रिकवरी फ़्रेज़ का उपयोग करके एक वॉलेट बनाएं या इंपोर्ट करें।",title:"वॉलेट बनाएं या इंपोर्ट करें"},step3:{description:"स्कैन करने के बाद, आपके वॉलेट को कनेक्ट करने के लिए एक कनेक्शन संकेत दिखाई देगा।",title:"स्कैन बटन को टैप करें"}}},bitget:{qr_code:{step1:{description:"हम इसे सुझाव देते हैं कि आप अपने होम स्क्रीन पर Bitget वॉलेट को रखें ताकि जल्दी एक्सेस कर सकें।",title:"Bitget वॉलेट एप को खोलें"},step2:{description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेने के लिए सुनिश्चित करें। किसी के साथ भी अपना गुप्त वाक्यांश साझा न करें।",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"स्कैन करने के बाद, आपके वॉलेट को कनेक्ट करने का एक संकेत दिखाई देगा।",title:"स्कैन बटन पर टैप करें"}},extension:{step1:{description:"हम इसे सुझाव देते हैं कि आप Bitget वॉलेट को आपके टास्कबार में पिन करें ताकि आपके वॉलेट तक जल्दी पहुंच सकें।",title:"Bitget Wallet एक्सटेंशन स्थापित करें"},step2:{description:"सुनिश्चित करें कि आप अपने वॉलेट का बैकअप किसी सुरक्षित तरीके से ले रहे हैं। अपनी गुप्त वाक्यांश को कभी किसी के साथ साझा न करें।",title:"एक वॉलेट बनाएं या आयात करें"},step3:{description:"एक बार जब आप अपना वॉलेट सेटअप कर लेते हैं, तो नीचे क्लिक करें ताकि ब्राउज़र को ताज़ा करें और एक्सटेंशन लोड करें।",title:"अपने ब्राउज़र को ताज़ा करें"}}},bitski:{extension:{step1:{description:"हम आपको अपने वॉलेट तक जल्दी पहुंचने के लिए Bitski को अपने टास्कबार में पिन करने की सलाह देते हैं।",title:"Bitski एक्सटेंशन स्थापित करें"},step2:{description:"सुनिश्चित करें कि आप एक सुरक्षित तरीके से अपने वॉलेट का बैकअप बना रहे हैं। कभी भी किसी के साथ अपने गोपनीय वाक्यांश को साझा न करें।",title:"एक वॉलेट बनाएं या आयात करें"},step3:{description:"एक बार जब आप अपना वॉलेट सेट कर लेते हैं, तो ब्राउज़र को ताज़ा करने और एक्सटेंशन को लोड करने के लिए नीचे क्लिक करें।",title:"अपने ब्राउज़र को ताज़ा करें"}}},coin98:{qr_code:{step1:{description:"हम आपके वॉलेट तक तेजी से पहुंचने के लिए अपने होम स्क्रीन पर Coin98 वॉलेट रखने की सलाह देते हैं।",title:"Coin98 वॉलेट ऐप को खोलें"},step2:{description:"आप अपने फोन पर हमारे बैकअप फीचर का उपयोग करके आसानी से अपने वॉलेट का बैकअप कर सकते हैं।",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"स्कैन करने के बाद, आपके वॉलेट को कनेक्ट करने के लिए एक कनेक्शन प्रांप्ट दिखाई देगा।",title:"WalletConnect बटन पर टैप करें"}},extension:{step1:{description:"अपने ब्राउज़र के ऊपरी दाएं हिस्से पर क्लिक करें और आसानी से पहुंच के लिए Coin98 वॉलेट को पिन करें।",title:"Coin98 वॉलेट एक्सटेंशन स्थापित करें"},step2:{description:"नया बटुआ बनाएं या मौजूदा को आयात करें।",title:"एक बटुआ बनाएं या आयात करें"},step3:{description:"एक बार जब आप Coin98 वॉलेट सेट करते हैं, तो नीचे क्लिक करके ब्राउजर को ताजा करें और एक्सटेंशन को लोड करें।",title:"अपने ब्राउज़र को ताज़ा करें"}}},coinbase:{qr_code:{step1:{description:"हम आपको सलाह देते हैं कि आपकी मुख्य बिल्ड स्क्रीन पर Coinbase वॉलेट को रखें जिससे आपकी पहुंच तेज हो।",title:"Coinbase वॉलेट ऐप खोलें"},step2:{description:"आप बादल बैकअप सुविधा का उपयोग करके आसानी से अपने वॉलेट का बैकअप ले सकते हैं।",title:"एक वॉलेट बनाएं या आयात करें"},step3:{description:"जैसे ही आप स्कैन करते हैं, आपको अपने वॉलेट से कनेक्ट करने के लिए एक कनेक्शन संकेत दिखाई देगा।",title:"स्कैन बटन को छूना"}},extension:{step1:{description:"हमारा सिफारिश है कि आप अपने वॉलेट तक जल्दी पहुंचने के लिए Coinbase वॉलेट को अपने टास्कबार पर पिन पर रखें।",title:"Coinbase वॉलेट एक्सटेंशन स्थापित करें"},step2:{description:"सुरक्षित विधि का उपयोग करके अपने बटुए का बैकअप लेना सुनिश्चित करें। अपना गुप्त पुनर्प्राप्ति वाक्यांश कभी भी किसी के साथ साझा न करें।",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"एक बार जब आप अपना वॉलेट सेट अप करते हैं, तो ब्राउज़र को ताजगी देने और एक्सटेंशन को लोड करने के लिए नीचे क्लिक करें.",title:"अपना ब्राउज़र ताजा करें"}}},core:{qr_code:{step1:{description:"हम आपकी वॉलेट के तेज एक्सेस के लिए Core को आपके होम स्क्रीन पर डालने की सलाह देते हैं.",title:"Core एप खोलें"},step2:{description:"आप आसानी से अपने फ़ोन पर हमारे बैकअप फीचर का उपयोग करके अपना वॉलेट बैकअप कर सकते हैं.",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"स्कैन करने के बाद, आपके वॉलेट को कनेक्ट करने के लिए आपके लिए कनेक्शन प्राम्प्ट प्रकट होगा.",title:"WalletConnect बटन को छूने के साथ"}},extension:{step1:{description:"हम अपने वॉलेट के लिए तेज एक्सेस के लिए कोर को अपने टास्कबार में पिन करने की सिफारिश करते हैं।",title:"कोर एक्सटेंशन स्थापित करें"},step2:{description:"सुनिश्चित करें कि आप अपने वॉलेट का बैकअप एक सुरक्षित तरीके से ले। कभी भी किसी के साथ अपनी गुप्त वाक्यांश साझा न करें।",title:"एक वॉलेट बनाएं या आयात करें"},step3:{description:"एक बार जब आप अपने वॉलेट की स्थापना कर लें, तो नीचे क्लिक करें ताकि ब्राउज़र को ताज़ा कर सकें और एक्सटेंशन को लोड कर सकें।",title:"अपने ब्राउज़र को ताज़ा करें"}}},fox:{qr_code:{step1:{description:"हम FoxWallet को अपने होम स्क्रीन पर रखने की सिफारिश करते हैं ताकि त्वरित एक्सेस मिल सके।",title:"FoxWallet ऐप खोलें"},step2:{description:"सुनिश्चित करें कि आप एक सुरक्षित तरीके का उपयोग करके अपने वॉलेट का बैकअप ले रहे हैं। कभी भी किसी के साथ अपना गुप्त वाक्यांश साझा न करें।",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"जब आप स्कैन करेंगे, तो आपके वॉलेट को कनेक्ट करने के लिए एक कनेक्शन संकेत प्रकट होगा।",title:"स्कैन बटन पर टैप करें"}}},frontier:{qr_code:{step1:{description:"हमारी सिफारिश है कि आप अपने होम स्क्रीन पर फ्रंटियर वॉलेट रखें जिससे कि आपको त्वरित पहुंच मिले।",title:"फ्रंटियर वॉलेट ऐप को खोलें"},step2:{description:"सुनिश्चित करें कि आप एक सुरक्षित तरीके का उपयोग करके अपने वॉलेट का बैकअप ले रहे हैं। कभी भी किसी के साथ अपना गुप्त वाक्यांश साझा न करें।",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"जब आप स्कैन करते हैं, तो आपके वॉलेट को कनेक्ट करने के लिए एक कनेक्शन संकेत प्रकट होगा।",title:"स्कैन बटन को टैप करें"}},extension:{step1:{description:"हम आपके वॉलेट की तेजी से पहुंच के लिए Frontier Wallet को अपने टास्कबार में पिन करने की सिफारिश करते हैं।",title:"Frontier Wallet एक्सटेंशन इंस्टॉल करें"},step2:{description:"सुनिश्चित करें कि आप एक सुरक्षित तरीके से अपना वॉलेट बैकअप कर रहे हैं। कभी भी किसी के साथ अपना गुप्त वाक्यांश साझा न करें।",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"वॉलेट सेटअप होने के बाद, ब्राउज़र को रिफ्रेश करने के लिए नीचे क्लिक करें और एक्सटेंशन लोड करें।",title:"अपना ब्राउज़र रिफ्रेश करें"}}},im_token:{qr_code:{step1:{title:"imToken ऐप खोलें",description:"अपने वॉलेट के तेजी से पहुँच के लिए imToken एप्लीकेशन को अपने होम स्क्रीन पर रखें।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"एक नया वॉलेट बनाएं या मौजूदा एक को आयात करें।"},step3:{title:"ऊपरी दाएं कोने में स्कैनर आइकॉन पर टैप करें",description:"नया कनेक्शन चुनें, फिर QR कोड स्कैन करें और कनेक्ट करने के लिए प्रॉम्प्ट की पुष्टि करें।"}}},metamask:{qr_code:{step1:{title:"MetaMask ऐप को खोलें",description:"हम आपको MetaMask को आपकी होम स्क्रीन पर रखने की सलाह देते हैं, इससे आपको त्वरित पहुँच मिलेगी।"},step2:{title:"एक वॉलेट बनाएं या इम्पोर्ट करें",description:"सुरक्षित विधि का उपयोग करके अपने बटुए का बैकअप लेना सुनिश्चित करें। अपना गुप्त वाक्यांश कभी भी किसी के साथ साझा न करें।"},step3:{title:"स्कैन बटन पर टैप करें",description:"स्कैन करने के बाद, आपके वॉलेट को कनेक्ट करने के लिए एक कनेक्शन प्रॉम्प्ट दिखाई देगा।"}},extension:{step1:{title:"MetaMask एक्सटेंशन स्थापित करें",description:"हम अपने वॉलेट तक जल्दी से पहुँचने के लिए MetaMask को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेना सुनिश्चित करें। अपनी गुप्त वाक्यांश को किसी के साथ शेयर न करें।"},step3:{title:"अपना ब्राउज़र ताज़ा करें",description:"एक बार जब आप अपना वॉलेट सेट अप करते हैं, तो ब्राउजर को ताज़ा करने और एक्सटेंशन को लोड करने के लिए नीचे क्लिक करें।"}}},okx:{qr_code:{step1:{title:"OKX Wallet ऐप खोलें",description:"हम आपको OKX Wallet को अपने होम स्क्रीन पर रखने की सलाह देते हैं, जिससे आप जल्दी से पहुंच सकें।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेने का यकीन करें। कभी भी किसी के साथ अपने गुप्त वाक्यांश साझा न करें।"},step3:{title:"स्कैन बटन पर टैप करें",description:"जब आप स्कैन करते हैं, तो आपके वॉलेट को कनेक्ट करने के लिए एक कनेक्शन संकेत प्रकट होगा।"}},extension:{step1:{title:"OKX वॉलेट एक्सटेंशन स्थापित करें",description:"हम अपने वॉलेट तक तेज़ी से पहुंचने के लिए आपको OKX वॉलेट को अपने कार्यपट्टी में पिन करने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेने का यकीन करें। कभी भी किसी के साथ अपने गुप्त वाक्यांश साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"जब आप अपना वॉलेट सेट अप कर लेते हैं, तो नीचे क्लिक करके ब्राउज़र को ताजा करें और एक्सटेंशन को लोड करें।"}}},omni:{qr_code:{step1:{title:"Omni ऐप को खोलें",description:"अपने वॉलेट तक अधिक जल्दी पहुंचने के लिए Omni को अपने होम स्क्रीन पर जोड़ें।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"एक नया वॉलेट बनाएं या मौजूदा एक को आयात करें।"},step3:{title:"QR आइकन पर टैप करें और स्कैन करें",description:"अपने होम स्क्रीन पर QR आइकन पर टैप करें, कोड स्कैन करें और कनेक्ट करने के लिए प्रॉम्प्ट की पुष्टि करें।"}}},token_pocket:{qr_code:{step1:{title:"TokenPocket ऐप को खोलें",description:"हम आपको TokenPocket को अपने होम स्क्रीन पर रखने की सलाह देते हैं ताकि आपको तेज एक्सेस मिल सके।"},step2:{title:"एक वॉलेट बनाएँ या आयात करें",description:"सुरक्षित विधि का उपयोग करके अपने बटुए का बैकअप लेना सुनिश्चित करें। अपना गुप्त वाक्यांश कभी भी किसी के साथ साझा न करें।"},step3:{title:"स्कैन बटन पर टैप करें",description:"एक बार स्कैन करने के बाद, आपके लिए एक कनेक्शन प्रॉम्प्ट प्रकट होगा ताकि आप अपने वॉलेट को कनेक्ट कर सकें।"}},extension:{step1:{title:"TokenPocket एक्सटेंशन स्थापित करें",description:"हम अपने वॉलेट तक त्वरित पहुंच के लिए TokenPocket को अपने taskbar पर pin करने की सिफारिश करते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"सुनिश्चित करें कि आप अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेते हैं। कभी किसी के साथ अपना गुप्त वाक्यांश साझा न करें।"},step3:{title:"अपना ब्राउज़र ताज़ा करें",description:"एक बार जब आप अपना वॉलेट सेटअप कर लेते हैं, तो नीचे क्लिक करें ताज़ा ब्राउज़र  लोड करें और एक्सटेंशन अप करें।"}}},trust:{qr_code:{step1:{title:"Trust Wallet ऐप खोलें",description:"अपने वॉलेट तक तेज़ी से पहुंचने के लिए Trust Wallet को अपने होम स्क्रीन पर रखें।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"एक नया वॉलेट बनाएं या मौजूदा वॉलेट आयात करें।"},step3:{title:"सेटिंग्स में WalletConnect को टैप करें",description:"नया कनेक्शन चुनें, फिर QR कोड स्कैन करें और प्रम्प्ट की पुष्टि करें।"}},extension:{step1:{title:"Trust Wallet एक्सटेंशन को इंस्टॉल करें",description:"अपने ब्राउज़र के ऊपरी दाएं कोने पर क्लिक करें और Trust Wallet को आसानी से प्रवेश के लिए पिन करें।"},step2:{title:"एक वॉलेट बनाएं या आयात करें",description:"एक नया वॉलेट बनाएं या मौजूदा वॉलेट आयात करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार Trust Wallet सेट अप करने के बाद, नीचे क्लिक करें ब्राउज़र को ताज़ा करने और एक्सटेंशन लोड करने के लिए।"}}},uniswap:{qr_code:{step1:{title:"Uniswap ऐप को खोलें",description:"अपने होम स्क्रीन पर Uniswap वॉलेट जोड़ें, इससे आपके वॉलेट तक तेजी से पहुंचने की सुविधा होगी।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"एक नया वॉलेट बनाएं या मौजूदा वॉलेट को आयात करें।"},step3:{title:"QR आइकन पर टैप करें और स्कैन करें",description:"अपने होमस्क्रीन पर QR आइकन पर टैप करें, कोड स्कैन करें और प्रम्प्ट को कनेक्ट करने की पुष्टि करें।"}}},zerion:{qr_code:{step1:{title:"Zerion ऐप को खोलें",description:"हम सलाह देते हैं कि आप Zerion को अपने होम स्क्रीन पर रखें, इससे तेजी से एक्सेस करने में आसानी होगी।"},step2:{title:"एक वॉलेट बनाएं या आयात करें",description:"सुरक्षित विधि का उपयोग करके अपने बटुए का बैकअप लेना सुनिश्चित करें। अपना गुप्त वाक्यांश कभी भी किसी के साथ साझा न करें।"},step3:{title:"स्कैन बटन को टैप करें",description:"आप स्कैन करने के बाद, एक कनेक्शन प्रोम्प्ट आपके बटुए को कनेक्ट करने के लिए प्रकट होगा।"}},extension:{step1:{title:"Zerion एक्सटेंशन स्थापित करें",description:"हमारी सिफारिश है कि आप अपने वॉलेट तक जल्दी पहुँचने के लिए Zerion को अपने टास्कबार में पिन करें।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"सुनिश्चित करें कि आप एक सुरक्षित विधि का उपयोग करके अपने वॉलेट का बैकअप ले रहे हैं। अपना गुप्त वाक्य कभी किसी के साथ साझा न करें।"},step3:{title:"अपना ब्राउज़र ताज़ा करें",description:"एक बार जब आप अपने वॉलेट की स्थापना कर लें, तो ब्राउज़र को ताज़ा करने और एक्सटेंशन को लोड करने के लिए नीचे क्लिक करें।"}}},rainbow:{qr_code:{step1:{title:"Rainbow ऐप को खोलें",description:"हम अपने वॉलेट के तेज एक्सेस के लिए Rainbow को अपने होम स्क्रीन पर रखने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"आप अपने फ़ोन पर हमारे बैकअप फीचर का उपयोग करके अपने वॉलेट का बैकअप आसानी से ले सकते हैं।"},step3:{title:"स्कैन बटन पर टैप करें",description:"जब आप स्कैन करते हैं, तो आपकी वॉलेट से कनेक्ट करने के लिए एक कनेक्शन संकेत दिखाई देगा।"}}},enkrypt:{extension:{step1:{description:"हम अपनी वॉलेट तक तेज़ी से पहुँच के लिए Enkrypt वॉलेट को अपने टास्कबार में पिन करने की सलाह देते हैं।",title:"Enkrypt वॉलेट एक्सटेंशन स्थापित करें"},step2:{description:"सुनिश्चित करें कि आप अपनी वॉलेट का बैकअप एक सुरक्षित तरीके से ले। अपनी गुप्त वाक्यांश को कभी भी किसी के साथ साझा न करें।",title:"एक वॉलेट बनाएं या आयात करें"},step3:{description:"एक बार जब आप अपनी वॉलेट सेट कर लें, तो नीचे क्लिक करें ब्राउज़र को ताज़ा करने और एक्सटेंशन लोड करने के लिए।",title:"अपने ब्राउज़र को ताज़ा करें"}}},frame:{extension:{step1:{description:"हम अपनी वॉलेट तक तेज़ी से पहुँच के लिए Frame को अपने टास्कबार में पिन करने की सलाह देते हैं।",title:"Frame और साथी एक्सटेंशन स्थापित करें"},step2:{description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेना सुनिश्चित करें। कभी भी अपनी गुप्त वाक्यांश को किसी के साथ साझा न करें।",title:"वॉलेट बनाएं या आयात करें"},step3:{description:"एक बार जब आप अपने वॉलेट की सेटअप कर लेते हैं, तो नीचे क्लिक करके ब्राउज़र को ताज़ा करें और एक्सटेंशन को लोड करें।",title:"अपना ब्राउज़र ताज़ा करें"}}},one_key:{extension:{step1:{title:"OneKey Wallet एक्सटेंशन स्थापित करें",description:"हम आपको अपने वॉलेट की तेज एक्सेस के लिए OneKey Wallet को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"सुनिश्चित करें कि आप अपने वॉलेट का बैकअप एक सुरक्षित तरीके से ले रहे हैं। अपना गुप्त वाक्यांश किसी के साथ भी साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपना वॉलेट सेट अप कर लेते हैं, तो ब्राउज़र को ताज़ा करने और एक्सटेंशन को लोड करने के लिए नीचे क्लिक करें।"}}},phantom:{extension:{step1:{title:"फैंटम एक्सटेंशन स्थापित करें",description:"हम आपके वॉलेट के आसान उपयोग के लिए फैंटम को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"एक वॉलेट बनाएं या आयात करें",description:"सुनिश्चित करें कि आप अपने वॉलेट का बैकअप एक सुरक्षित तरीके से ले रहे हैं। अपना गुप्त वसूली वाक्यांश किसी के साथ भी साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपना वॉलेट सेट कर लें, तो ब्राउज़र को ताजगी देने और एक्सटेंशन को लोड करने के लिए नीचे क्लिक करें।"}}},rabby:{extension:{step1:{title:"Rabby एक्सटेंशन स्थापित करें",description:"हम आपको सलाह देते हैं कि अपने वॉलेट की जल्दी से पहुँच के लिए Rabby को अपने टास्कबार में पिन करें।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"सुनिश्चित करें कि आप अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेते हैं। कभी भी किसी के साथ अपना गुप्त वाक्यांश साझा न करें।"},step3:{title:"अपना ब्राउज़र ताज़ा करें",description:"जब आप अपना वॉलेट सेट अप कर लेते हैं, तो ब्राउज़र को ताज़ा करने और एक्सटेंशन लोड करने के लिए नीचे क्लिक करें।"}}},safeheron:{extension:{step1:{title:"कोर एक्सटेंशन स्थापित करें",description:"हम आपको सलाह देते हैं कि अपने वॉलेट की जल्दी से पहुँच के लिए Safeheron को अपने टास्कबार में पिन करें।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"सुनिश्चित करें कि आप एक सुरक्षित तरीके से अपना वॉलेट बैकअप कर रहे हैं। कभी भी किसी के साथ अपने गुप्त वाक्यांश को साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपने वॉलेट को सेट अप करते हैं, तो नीचे क्लिक करें ताकि ब्राउज़र को ताज़ा करें और एक्सटेंशन को लोड करें।"}}},taho:{extension:{step1:{title:"ताहो एक्सटेंशन स्थापित करें",description:"हम आपके वॉलेट तक त्वरित पहुँच के लिए ताहो को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"एक वॉलेट बनाएँ या आयात करें",description:"सुनिश्चित करें कि आप एक सुरक्षित तरीके से अपना वॉलेट बैकअप कर रहे हैं। कभी भी किसी के साथ अपने गुप्त वाक्यांश को साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपना बटुआ सेट कर लेते हैं, तो नीचे क्लिक करके ब्राउज़र को ताज़ा करें और एक्सटेंशन को लोड करें।"}}},talisman:{extension:{step1:{title:"तालिसमान एक्सटेंशन स्थापित करें",description:"हम आपके बटुए के त्वरित पहुँच के लिए तालिसमान को अपने टास्कबार में पिन करने की सिफारिश करते हैं।"},step2:{title:"एक ईथेरियम बटुए बनाएं या आयात करें",description:"अपने बटुए का बैकअप एक सुरक्षित तरीके से लेने का ध्यान रखें। कभी भी अपनी वसूली वाक्यांश को किसी के साथ साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपना बटुआ सेट कर लेते हैं, तो नीचे क्लिक करके ब्राउज़र को ताज़ा करें और एक्सटेंशन को लोड करें।"}}},xdefi:{extension:{step1:{title:"XDEFI वॉलेट एक्सटेंशन स्थापित करें",description:"हम आपकी वॉलेट की जल्दी से पहुँच के लिए XDEFI Wallet को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"एक वॉलेट बनाएं या आयात करें",description:"निश्चित रूप से अपने वॉलेट का बैकअप किसी सुरक्षित तरीके से लें। अपनी गोपनीय वाक्यांश को किसी के साथ शेयर ना करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आपने अपनी वॉलेट सेट अप कर ली हो, तो ब्राउज़र को ताज़ा करने और एक्सटेंशन को लोड करने के लिए नीचे क्लिक करें।"}}},zeal:{extension:{step1:{title:"Zeal एक्सटेंशन स्थापित करें",description:"हम आपको अपने वॉलेट तक जल्दी पहुँचने के लिए Zeal को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेने के लिए सुनिश्चित करें। किसी के साथ भी अपना गुप्त वाक्यांश साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपना वॉलेट सेटअप कर लेते हैं, तो नीचे क्लिक करें ताकि ब्राउज़र को ताज़ा करें और एक्सटेंशन लोड करें।"}}},safepal:{extension:{step1:{title:"SafePal Wallet एक्सटेंशन स्थापित करें",description:"अपने ब्राउज़र के शीर्ष दाएं में क्लिक करें और SafePal Wallet को आसानी से पहुंच के लिए पिन करें।"},step2:{title:"एक बटुआ बनाएं या आयात करें",description:"नया बटुआ बनाएं या मौजूदा को आयात करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप SafePal वॉलेट सेट अप कर लेते हैं, तो नीचे क्लिक करें ताकि ब्राउज़र को रिफ्रेश करें और एक्सटेंशन लोड करें।"}},qr_code:{step1:{title:"SafePal वॉलेट ऐप खोलें",description:"अपने वॉलेट तक जल्दी पहुंचने के लिए SafePal वॉलेट को अपनी होम स्क्रीन पर रखें।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"नया बटुआ बनाएं या मौजूदा को आयात करें।"},step3:{title:"सेटिंग्स में WalletConnect को टैप करें",description:"नया कनेक्शन चुनें, फिर QR कोड स्कैन करें और कनेक्ट करने के लिए प्रॉम्प्ट की पुष्टि करें।"}}},desig:{extension:{step1:{title:"Desig एक्सटेंशन स्थापित करें",description:"हम आपको अपने वॉलेट के लिए आसानी से पहुंच पाने के लिए Desig को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"एक वॉलेट बनाएँ",description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेने के लिए सुनिश्चित करें। किसी के साथ भी अपना गुप्त वाक्यांश साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपना वॉलेट सेटअप कर लेते हैं, तो नीचे क्लिक करें ताकि ब्राउज़र को ताज़ा करें और एक्सटेंशन लोड करें।"}}},subwallet:{extension:{step1:{title:"SubWallet एक्सटेंशन स्थापित करें",description:"हम आपको अपने वॉलेट तक तेजी से पहुंचने के लिए SubWallet को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"अपने बटुए का बैकअप एक सुरक्षित तरीके से लेने का ध्यान रखें। कभी भी अपनी वसूली वाक्यांश को किसी के साथ साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपना वॉलेट सेटअप कर लेते हैं, तो नीचे क्लिक करें ताकि ब्राउज़र को ताज़ा करें और एक्सटेंशन लोड करें।"}},qr_code:{step1:{title:"SubWallet ऐप खोलें",description:"हम आपको तेजी से पहुंचने के लिए SubWallet को अपने होम स्क्रीन पर रखने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेने के लिए सुनिश्चित करें। किसी के साथ भी अपना गुप्त वाक्यांश साझा न करें।"},step3:{title:"स्कैन बटन को टैप करें",description:"जैसे ही आप स्कैन करेंगे, एक कनेक्शन संकेत आपके वॉलेट को कनेक्ट करने के लिए प्रकट होगा।"}}},clv:{extension:{step1:{title:"CLV Wallet एक्सटेंशन स्थापित करें",description:"हम आपको अपने वॉलेट तक तेजी से पहुंचने के लिए CLV Wallet को अपने टास्कबार में पिन करने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेने के लिए सुनिश्चित करें। किसी के साथ भी अपना गुप्त वाक्यांश साझा न करें।"},step3:{title:"अपने ब्राउज़र को ताज़ा करें",description:"एक बार जब आप अपना वॉलेट सेटअप कर लेते हैं, तो नीचे क्लिक करें ताकि ब्राउज़र को ताज़ा करें और एक्सटेंशन लोड करें।"}},qr_code:{step1:{title:"CLV वॉलेट ऐप खोलें",description:"हम तीव्र पहुंच के लिए आपके होम स्क्रीन पर CLV वॉलेट रखने की सलाह देते हैं।"},step2:{title:"वॉलेट बनाएं या आयात करें",description:"अपने वॉलेट का बैकअप एक सुरक्षित तरीके से लेने के लिए सुनिश्चित करें। किसी के साथ भी अपना गुप्त वाक्यांश साझा न करें।"},step3:{title:"स्कैन बटन को टैप करें",description:"जैसे ही आप स्कैन करेंगे, एक कनेक्शन संकेत आपके वॉलेट को कनेक्ट करने के लिए प्रकट होगा।"}}},okto:{qr_code:{step1:{title:"Okto ऐप को खोलें",description:"त्वरित पहुंच के लिए अपने होम स्क्रीन पर Okto जोड़ें"},step2:{title:"एक MPC वॉलेट बनाएं",description:"एक खाता बनाएं और वॉलेट उत्पन्न करें"},step3:{title:"सेटिंग्स में WalletConnect को टैप करें",description:"ऊपरी दाएँ में स्कैन QR आइकन को टैप करें और कनेक्ट करने के लिए संकेत दें।"}}},ledger:{desktop:{step1:{title:"लेजर लाइव ऐप खोलें",description:"हम तेज एक्सेस के लिए अपने होम स्क्रीन पर Ledger Live डालने की सिफारिश करते हैं।"},step2:{title:"अपना लेजर सेट करें",description:"एक नया लेजर सेट अप करें या मौजूदा वाले से कनेक्ट करें।"},step3:{title:"कनेक्ट करें",description:"स्कैन करने के बाद, आपके वॉलेट को कनेक्ट करने के लिए एक कनेक्शन प्रॉम्प्ट दिखाई देगा।"}},qr_code:{step1:{title:"लेजर लाइव ऐप खोलें",description:"हम तेज एक्सेस के लिए अपने होम स्क्रीन पर Ledger Live डालने की सिफारिश करते हैं।"},step2:{title:"अपना लेजर सेट करें",description:"आप डेस्कटॉप ऐप के साथ सिंक कर सकते हैं या अपने Ledger को कनेक्ट कर सकते हैं।"},step3:{title:"कोड स्कैन करें",description:"WalletConnect पर टैप करें फिर स्कैनर पर स्विच करें। जब आप स्कैन करेंगे, तो आपके वॉलेट को कनेक्ट करने के लिए एक कनेक्शन संकेत प्रकट होगा।"}}}},hi_IN_default={connect_wallet:connect_wallet5,intro:intro5,sign_in:sign_in5,connect:connect5,connect_scan:connect_scan5,connector_group:connector_group5,get:get5,get_options:get_options5,get_mobile:get_mobile5,get_instructions:get_instructions5,chains:chains5,profile:profile5,wallet_connectors:wallet_connectors5},connect_wallet6={label:"Hubungkan Dompet"},intro6={title:"Apa itu Dompet?",description:"Sebuah dompet digunakan untuk mengirim, menerima, menyimpan, dan menampilkan aset digital. Ini juga cara baru untuk masuk, tanpa perlu membuat akun dan kata sandi baru di setiap situs web.",digital_asset:{title:"Sebuah Rumah untuk Aset Digital Anda",description:"Dompet digunakan untuk mengirim, menerima, menyimpan, dan menampilkan aset digital seperti Ethereum dan NFTs."},login:{title:"Cara Baru untuk Masuk",description:"Alih-alih membuat akun dan kata sandi baru di setiap situs web, cukup hubungkan dompet Anda."},get:{label:"Dapatkan Dompet"},learn_more:{label:"Pelajari lebih lanjut"}},sign_in6={label:"Verifikasi akun Anda",description:"Untuk menyelesaikan koneksi, Anda harus menandatangani sebuah pesan di dompet Anda untuk memastikan bahwa Anda adalah pemilik dari akun ini.",message:{send:"Kirim pesan",preparing:"Mempersiapkan pesan...",cancel:"Batal",preparing_error:"Kesalahan dalam mempersiapkan pesan, silakan coba lagi!"},signature:{waiting:"Menunggu tanda tangan...",verifying:"Memverifikasi tanda tangan...",signing_error:"Kesalahan dalam menandatangani pesan, silakan coba lagi!",verifying_error:"Kesalahan dalam memverifikasi tanda tangan, silakan coba lagi!",oops_error:"Ups, ada yang salah!"}},connect6={label:"Hubungkan",title:"Hubungkan Dompet",new_to_ethereum:{description:"Baru dalam dompet Ethereum?",learn_more:{label:"Pelajari lebih lanjut"}},learn_more:{label:"Pelajari lebih lanjut"},recent:"Terkini",status:{opening:"Membuka %{wallet}...",connecting:"Menghubungkan",connect_mobile:"Lanjutkan di %{wallet}",not_installed:"%{wallet} tidak terpasang",not_available:"%{wallet} tidak tersedia",confirm:"Konfirmasikan koneksi di ekstensi",confirm_mobile:"Terima permintaan koneksi di dompet"},secondary_action:{get:{description:"Tidak memiliki %{wallet}?",label:"DAPATKAN"},install:{label:"PASANG"},retry:{label:"COBA LAGI"}},walletconnect:{description:{full:"Perlu modal resmi WalletConnect?",compact:"Perlu modal WalletConnect?"},open:{label:"BUKA"}}},connect_scan6={title:"Pindai dengan %{wallet}",fallback_title:"Pindai dengan ponsel Anda"},connector_group6={recommended:"Direkomendasikan",other:"Lainnya",popular:"Populer",more:"Lebih Banyak",others:"Lainnya"},get6={title:"Dapatkan Dompet",action:{label:"DAPATKAN"},mobile:{description:"Dompet Mobile"},extension:{description:"Ekstensi Browser"},mobile_and_extension:{description:"Dompet Mobile dan Ekstensi"},mobile_and_desktop:{description:"Dompet Seluler dan Desktop"},looking_for:{title:"Bukan yang Anda cari?",mobile:{description:"Pilih dompet di layar utama untuk memulai dengan penyedia dompet yang berbeda."},desktop:{compact_description:"Pilih dompet di layar utama untuk memulai dengan penyedia dompet yang berbeda.",wide_description:"Pilih dompet di sebelah kiri untuk memulai dengan penyedia dompet yang berbeda."}}},get_options6={title:"Mulai dengan %{wallet}",short_title:"Dapatkan %{wallet}",mobile:{title:"%{wallet} untuk Mobile",description:"Gunakan dompet mobile untuk menjelajahi dunia Ethereum.",download:{label:"Dapatkan aplikasinya"}},extension:{title:"%{wallet} untuk %{browser}",description:"Akses dompet Anda langsung dari browser web favorit Anda.",download:{label:"Tambahkan ke %{browser}"}},desktop:{title:"%{wallet} untuk %{platform}",description:"Akses dompet Anda secara native dari desktop yang kuat Anda.",download:{label:"Tambahkan ke %{platform}"}}},get_mobile6={title:"Instal %{wallet}",description:"Pindai dengan ponsel Anda untuk mengunduh di iOS atau Android",continue:{label:"Lanjutkan"}},get_instructions6={mobile:{connect:{label:"Hubungkan"},learn_more:{label:"Pelajari lebih lanjut"}},extension:{refresh:{label:"Segarkan"},learn_more:{label:"Pelajari lebih lanjut"}},desktop:{connect:{label:"Hubungkan"},learn_more:{label:"Pelajari lebih lanjut"}}},chains6={title:"Alihkan Jaringan",wrong_network:"Jaringan yang salah terdeteksi, alihkan atau diskonek untuk melanjutkan.",confirm:"Konfirmasi di Dompet",switching_not_supported:"Dompet Anda tidak mendukung pengalihan jaringan dari %{appName}. Coba alihkan jaringan dari dalam dompet Anda.",switching_not_supported_fallback:"Wallet Anda tidak mendukung penggantian jaringan dari aplikasi ini. Cobalah ganti jaringan dari dalam wallet Anda.",disconnect:"Putuskan koneksi",connected:"Terkoneksi"},profile6={disconnect:{label:"Putuskan koneksi"},copy_address:{label:"Salin Alamat",copied:"Tersalin!"},explorer:{label:"Lihat lebih banyak di penjelajah"},transactions:{description:"%{appName} transaksi akan muncul di sini...",description_fallback:"Transaksi Anda akan muncul di sini...",recent:{title:"Transaksi Terbaru"},clear:{label:"Hapus Semua"}}},wallet_connectors6={argent:{qr_code:{step1:{description:"Letakkan Argent di layar utama Anda untuk akses lebih cepat ke dompet Anda.",title:"Buka aplikasi Argent"},step2:{description:"Buat dompet dan nama pengguna, atau impor dompet yang ada.",title:"Buat atau Impor Dompet"},step3:{description:"Setelah Anda memindai, akan muncul petunjuk koneksi untuk Anda menghubungkan dompet Anda.",title:"Tekan tombol Scan QR"}}},bifrost:{qr_code:{step1:{description:"Kami merekomendasikan untuk menempatkan Bifrost Wallet di layar utama anda untuk akses yang lebih cepat.",title:"Buka aplikasi Bifrost Wallet"},step2:{description:"Buat atau impor sebuah dompet menggunakan frasa pemulihan Anda.",title:"Buat atau Impor sebuah Wallet"},step3:{description:"Setelah Anda memindai, sebuah pesan akan muncul untuk menghubungkan dompet Anda.",title:"Tekan tombol scan"}}},bitget:{qr_code:{step1:{description:"Kami menyarankan untuk meletakkan Bitget Wallet di layar depan Anda untuk akses yang lebih cepat.",title:"Buka aplikasi Bitget Wallet"},step2:{description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun.",title:"Buat atau Impor Wallet"},step3:{description:"Setelah Anda pindai, akan muncul petunjuk untuk menghubungkan wallet Anda.",title:"Tekan tombol pindai"}},extension:{step1:{description:"Kami menyarankan untuk memasang Bitget Wallet ke taskbar Anda untuk akses yang lebih cepat ke wallet Anda.",title:"Instal ekstensi Dompet Bitget"},step2:{description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frasa rahasia Anda kepada siapa pun.",title:"Buat atau Impor Dompet"},step3:{description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi.",title:"Segarkan browser Anda"}}},bitski:{extension:{step1:{description:"Kami merekomendasikan untuk memasang Bitski ke taskbar Anda untuk akses dompet Anda yang lebih cepat.",title:"Pasang ekstensi Bitski"},step2:{description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun.",title:"Buat atau Impor Dompet"},step3:{description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi.",title:"Segarkan browser Anda"}}},coin98:{qr_code:{step1:{description:"Kami merekomendasikan untuk menaruh Coin98 Wallet di layar utama Anda untuk akses wallet Anda lebih cepat.",title:"Buka aplikasi Coin98 Wallet"},step2:{description:"Anda dapat dengan mudah mencadangkan wallet Anda menggunakan fitur cadangan kami di telepon Anda.",title:"Buat atau Impor Wallet"},step3:{description:"Setelah Anda melakukan pemindaian, akan muncul prompt koneksi untuk Anda menghubungkan wallet Anda.",title:"Ketuk tombol WalletConnect"}},extension:{step1:{description:"Klik di pojok kanan atas browser Anda dan sematkan Coin98 Wallet untuk akses mudah.",title:"Pasang ekstensi Coin98 Wallet"},step2:{description:"Buat dompet baru atau impor yang sudah ada.",title:"Buat atau Impor sebuah dompet"},step3:{description:"Setelah Anda menyiapkan Coin98 Wallet, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi.",title:"Segarkan browser Anda"}}},coinbase:{qr_code:{step1:{description:"Kami merekomendasikan memasang Coinbase Wallet di layar utama Anda untuk akses yang lebih cepat.",title:"Buka aplikasi Coinbase Wallet"},step2:{description:"Anda dapat dengan mudah mencadangkan dompet Anda menggunakan fitur cadangan awan.",title:"Buat atau Impor sebuah Dompet"},step3:{description:"Setelah Anda memindai, akan muncul sebuah petunjuk koneksi untuk Anda menyambungkan dompet Anda.",title:"Ketuk tombol pindai"}},extension:{step1:{description:"Kami merekomendasikan untuk menempel Coinbase Wallet ke taskbar Anda untuk akses lebih cepat ke dompet Anda.",title:"Instal ekstensi Coinbase Wallet"},step2:{description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase pemulihan rahasia Anda kepada siapa pun.",title:"Buat atau Import Wallet"},step3:{description:"Setelah Anda menyiapkan wallet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi.",title:"Segarkan browser Anda"}}},core:{qr_code:{step1:{description:"Kami merekomendasikan untuk meletakkan Core di layar utama Anda untuk akses lebih cepat ke wallet Anda.",title:"Buka aplikasi Core"},step2:{description:"Anda dapat dengan mudah mencadangkan wallet Anda dengan menggunakan fitur cadangan kami di telepon Anda.",title:"Buat atau Import Wallet"},step3:{description:"Setelah Anda memindai, akan muncul petunjuk koneksi untuk Anda menyambungkan wallet Anda.",title:"Ketuk tombol WalletConnect"}},extension:{step1:{description:"Kami merekomendasikan untuk menempelkan Core pada taskbar Anda untuk akses ke dompet Anda lebih cepat.",title:"Pasang ekstensi Core"},step2:{description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase rahasia Anda kepada siapa pun.",title:"Buat atau Impor Dompet"},step3:{description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi.",title:"Segarkan browser Anda"}}},fox:{qr_code:{step1:{description:"Kami merekomendasikan untuk menaruh FoxWallet pada layar utama Anda untuk akses lebih cepat.",title:"Buka aplikasi FoxWallet"},step2:{description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase rahasia Anda kepada siapa pun.",title:"Buat atau Impor Wallet"},step3:{description:"Setelah Anda memindai, prompt koneksi akan muncul untuk Anda hubungkan dompet Anda.",title:"Ketuk tombol pindai"}}},frontier:{qr_code:{step1:{description:"Kami merekomendasikan untuk meletakkan Frontier Wallet di layar awal Anda untuk akses yang lebih cepat.",title:"Buka aplikasi Frontier Wallet"},step2:{description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase rahasia Anda kepada siapa pun.",title:"Buat atau Impor Wallet"},step3:{description:"Setelah Anda memindai, prompt koneksi akan muncul untuk Anda menghubungkan dompet Anda.",title:"Ketuk tombol pindai"}},extension:{step1:{description:"Kami menyarankan menempelkan Frontier Wallet ke taskbar Anda untuk akses yang lebih cepat ke dompet Anda.",title:"Instal ekstensi Frontier Wallet"},step2:{description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun.",title:"Buat atau Impor Dompet"},step3:{description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi.",title:"Segarkan browser Anda"}}},im_token:{qr_code:{step1:{title:"Buka aplikasi imToken",description:"Letakkan aplikasi imToken di layar utama Anda untuk akses yang lebih cepat ke dompet Anda."},step2:{title:"Buat atau Impor Dompet",description:"Buat dompet baru atau impor yang sudah ada."},step3:{title:"Ketuk Ikon Scanner di pojok kanan atas",description:"Pilih Koneksi Baru, lalu pindai kode QR dan konfirmasi petunjuk untuk terhubung."}}},metamask:{qr_code:{step1:{title:"Buka aplikasi MetaMask",description:"Kami merekomendasikan untuk meletakkan MetaMask di layar beranda Anda untuk akses yang lebih cepat."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase rahasia Anda kepada siapa pun."},step3:{title:"Ketuk tombol pindai",description:"Setelah Anda memindai, petunjuk koneksi akan muncul untuk Anda menyambungkan dompet Anda."}},extension:{step1:{title:"Pasang ekstensi MetaMask",description:"Kami menyarankan untuk memasang MetaMask pada taskbar Anda untuk akses wallet lebih cepat."},step2:{title:"Buat atau Impor Wallet",description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah membagikan frase rahasia Anda kepada siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan wallet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},okx:{qr_code:{step1:{title:"Buka aplikasi OKX Wallet",description:"Kami menyarankan untuk menaruh OKX Wallet di layar utama Anda untuk akses lebih cepat."},step2:{title:"Buat atau Impor Wallet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frasa rahasia Anda kepada siapa pun."},step3:{title:"Ketuk tombol scan",description:"Setelah Anda memindai, prompt koneksi akan muncul untuk Anda hubungkan dompet Anda."}},extension:{step1:{title:"Instal ekstensi OKX Wallet",description:"Kami menyarankan untuk menempelkan OKX Wallet ke taskbar Anda untuk akses lebih cepat ke dompet Anda."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frasa rahasia Anda kepada siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda mengatur wallet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},omni:{qr_code:{step1:{title:"Buka aplikasi Omni",description:"Tambahkan Omni ke layar utama Anda untuk akses yang lebih cepat ke wallet Anda."},step2:{title:"Buat atau Impor Wallet",description:"Buat wallet baru atau impor yang sudah ada."},step3:{title:"Ketuk ikon QR dan scan",description:"Ketuk ikon QR di layar utama Anda, pindai kode dan konfirmasi petunjuk untuk terhubung."}}},token_pocket:{qr_code:{step1:{title:"Buka aplikasi TokenPocket",description:"Kami sarankan meletakkan TokenPocket di layar utama Anda untuk akses yang lebih cepat."},step2:{title:"Buat atau impor Dompet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase pemulihan rahasia Anda kepada siapa pun."},step3:{title:"Ketuk tombol pindai",description:"Setelah Anda memindai, Indikasi sambungan akan muncul untuk Anda menghubungkan dompet Anda."}},extension:{step1:{title:"Instal ekstensi TokenPocket",description:"Kami merekomendasikan penambatan TokenPocket ke taskbar Anda untuk akses dompet Anda lebih cepat."},step2:{title:"Buat atau Impor Wallet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda mengatur dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},trust:{qr_code:{step1:{title:"Buka aplikasi Trust Wallet",description:"Pasang Trust Wallet di layar utama Anda untuk akses dompet Anda lebih cepat."},step2:{title:"Buat atau Impor Wallet",description:"Buat dompet baru atau impor yang sudah ada."},step3:{title:"Ketuk WalletConnect di Pengaturan",description:"Pilih Koneksi Baru, kemudian pindai kode QR dan konfirmasi perintah untuk terhubung."}},extension:{step1:{title:"Instal ekstensi Trust Wallet",description:"Klik di pojok kanan atas browser Anda dan sematkan Trust Wallet untuk akses mudah."},step2:{title:"Buat atau Impor dompet",description:"Buat dompet baru atau impor yang sudah ada."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda mengatur Trust Wallet, klik di bawah untuk menyegarkan browser dan memuat ekstensi."}}},uniswap:{qr_code:{step1:{title:"Buka aplikasi Uniswap",description:"Tambahkan Uniswap Wallet ke layar utama Anda untuk akses ke wallet Anda lebih cepat."},step2:{title:"Buat atau Impor Wallet",description:"Buat wallet baru atau impor yang sudah ada."},step3:{title:"Ketuk ikon QR dan pindai",description:"Ketuk ikon QR di layar utama Anda, pindai kode dan konfirmasi prompt untuk terhubung."}}},zerion:{qr_code:{step1:{title:"Buka aplikasi Zerion",description:"Kami merekomendasikan untuk meletakkan Zerion di layar utama Anda untuk akses lebih cepat."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase pemulihan rahasia Anda kepada siapa pun."},step3:{title:"Ketuk tombol scan",description:"Setelah Anda scan, muncul prompt koneksi untuk Anda menghubungkan dompet Anda."}},extension:{step1:{title:"Instal ekstensi Zerion",description:"Kami menyarankan untuk menempelkan Zerion ke taskbar Anda untuk akses lebih cepat ke dompet Anda."},step2:{title:"Buat atau Impor Wallet",description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda mengatur wallet Anda, klik di bawah untuk menyegarkan browser dan memuat ekstensi."}}},rainbow:{qr_code:{step1:{title:"Buka aplikasi Rainbow",description:"Kami menyarankan menempatkan Rainbow di layar home Anda untuk akses yang lebih cepat ke wallet Anda."},step2:{title:"Buat atau Impor Wallet",description:"Anda dapat dengan mudah mencadangkan wallet Anda menggunakan fitur cadangan kami di telepon Anda."},step3:{title:"Tekan tombol scan",description:"Setelah Anda memindai, akan muncul pesan untuk menghubungkan dompet Anda."}}},enkrypt:{extension:{step1:{description:"Kami menyarankan untuk memasang Enkrypt Wallet ke taskbar Anda untuk akses dompet yang lebih cepat.",title:"Instal ekstensi Enkrypt Wallet"},step2:{description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah berbagi frase rahasia Anda dengan siapa pun.",title:"Buat atau Impor Dompet"},step3:{description:"Setelah Anda menyiapkan dompet, klik di bawah ini untuk memuat ulang peramban dan meload ekstensi.",title:"Segarkan browser Anda"}}},frame:{extension:{step1:{description:"Kami menyarankan untuk memasang Frame ke taskbar Anda untuk akses dompet yang lebih cepat.",title:"Instal Frame & ekstensi pendamping"},step2:{description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah membagikan frase rahasia Anda kepada siapa pun.",title:"Buat atau Impor Wallet"},step3:{description:"Setelah Anda menyetel wallet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi.",title:"Segarkan browser Anda"}}},one_key:{extension:{step1:{title:"Instal ekstensi OneKey Wallet",description:"Kami menyarankan untuk menempelkan OneKey Wallet ke taskbar Anda untuk akses wallet yang lebih cepat."},step2:{title:"Buat atau Impor Wallet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase rahasia Anda kepada siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},phantom:{extension:{step1:{title:"Instal ekstensi Phantom",description:"Kami menyarankan untuk mem-pin Phantom ke taskbar Anda untuk akses dompet yang lebih mudah."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah membagikan frase pemulihan rahasia Anda kepada siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},rabby:{extension:{step1:{title:"Instal ekstensi Rabby",description:"Kami merekomendasikan menempelkan Rabby ke taskbar Anda untuk akses lebih cepat ke wallet Anda."},step2:{title:"Buat atau Impor Wallet",description:"Pastikan untuk mencadangkan wallet Anda dengan metode yang aman. Jangan pernah berbagi frase rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan wallet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},safeheron:{extension:{step1:{title:"Instal ekstensi Core",description:"Kami merekomendasikan menempelkan Safeheron ke taskbar Anda untuk akses lebih cepat ke wallet Anda."},step2:{title:"Buat atau Impor Wallet",description:"Pastikan untuk mencadangkan dompet Anda dengan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda mengatur dompet Anda, klik di bawah untuk menyegarkan browser dan memuat ekstensi."}}},taho:{extension:{step1:{title:"Instal ekstensi Taho",description:"Kami merekomendasikan pengepinan Taho ke taskbar Anda untuk akses yang lebih cepat ke dompet Anda."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan dompet Anda dengan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},talisman:{extension:{step1:{title:"Instal ekstensi Talisman",description:"Kami merekomendasikan menempelkan Talisman ke taskbar Anda untuk akses dompet Anda lebih cepat."},step2:{title:"Buat atau Impor Dompet Ethereum",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah berbagi frase pemulihan Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},xdefi:{extension:{step1:{title:"Instal ekstensi Dompet XDEFI",description:"Kami merekomendasikan menempelkan XDEFI Wallet ke taskbar Anda untuk akses lebih cepat ke dompet Anda."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan dompet Anda dengan metode yang aman. Jangan pernah berbagi frase rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},zeal:{extension:{step1:{title:"Instal ekstensi Zeal",description:"Kami merekomendasikan untuk mem-pin Zeal ke taskbar Anda untuk akses wallet lebih cepat."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},safepal:{extension:{step1:{title:"Pasang ekstensi SafePal Wallet",description:"Klik di pojok kanan atas browser Anda dan pin SafePal Wallet untuk akses mudah."},step2:{title:"Buat atau Impor sebuah dompet",description:"Buat dompet baru atau impor yang sudah ada."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan SafePal Wallet, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}},qr_code:{step1:{title:"Buka aplikasi SafePal Wallet",description:"Letakkan SafePal Wallet di layar utama Anda untuk akses yang lebih cepat ke wallet Anda."},step2:{title:"Buat atau Impor Dompet",description:"Buat dompet baru atau impor yang sudah ada."},step3:{title:"Ketuk WalletConnect di Pengaturan",description:"Pilih Koneksi Baru, lalu pindai kode QR dan konfirmasi petunjuk untuk terhubung."}}},desig:{extension:{step1:{title:"Instal ekstensi Desig",description:"Kami merekomendasikan menempelkan Desig ke taskbar Anda untuk akses dompet Anda lebih mudah."},step2:{title:"Buat Dompet",description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}}},subwallet:{extension:{step1:{title:"Instal ekstensi SubWallet",description:"Kami merekomendasikan menempelkan SubWallet ke taskbar Anda untuk akses dompet Anda lebih cepat."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan dompet Anda menggunakan metode yang aman. Jangan pernah berbagi frase pemulihan Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}},qr_code:{step1:{title:"Buka aplikasi SubWallet",description:"Kami merekomendasikan menaruh SubWallet di layar utama Anda untuk akses lebih cepat."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Tekan tombol scan",description:"Setelah Anda memindai, akan muncul petunjuk koneksi untuk Anda menghubungkan dompet Anda."}}},clv:{extension:{step1:{title:"Instal ekstensi CLV Wallet",description:"Kami merekomendasikan menempelkan CLV Wallet ke taskbar Anda untuk akses dompet Anda lebih cepat."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Segarkan browser Anda",description:"Setelah Anda menyiapkan dompet Anda, klik di bawah ini untuk menyegarkan browser dan memuat ekstensi."}},qr_code:{step1:{title:"Buka aplikasi CLV Wallet",description:"Kami sarankan untuk menempatkan CLV Wallet di layar utama Anda untuk akses yang lebih cepat."},step2:{title:"Buat atau Impor Dompet",description:"Pastikan untuk mencadangkan wallet Anda menggunakan metode yang aman. Jangan pernah berbagi frasa rahasia Anda dengan siapa pun."},step3:{title:"Tekan tombol scan",description:"Setelah Anda memindai, akan muncul petunjuk koneksi untuk Anda menghubungkan dompet Anda."}}},okto:{qr_code:{step1:{title:"Buka aplikasi Okto",description:"Tambahkan Okto ke layar utama Anda untuk akses cepat"},step2:{title:"Buat Wallet MPC",description:"Buat akun dan generate wallet"},step3:{title:"Ketuk WalletConnect di Pengaturan",description:"Ketuk ikon Scan QR di pojok kanan atas dan konfirmasi prompt untuk terhubung."}}},ledger:{desktop:{step1:{title:"Buka aplikasi Ledger Live",description:"Kami merekomendasikan menempatkan Ledger Live di layar utama Anda untuk akses lebih cepat."},step2:{title:"Atur Ledger Anda",description:"Atur Ledger baru atau hubungkan ke Ledger yang sudah ada."},step3:{title:"Hubungkan",description:"Setelah Anda scan, muncul prompt koneksi untuk Anda menghubungkan dompet Anda."}},qr_code:{step1:{title:"Buka aplikasi Ledger Live",description:"Kami merekomendasikan menempatkan Ledger Live di layar utama Anda untuk akses lebih cepat."},step2:{title:"Atur Ledger Anda",description:"Anda dapat melakukan sinkronisasi dengan aplikasi desktop atau menghubungkan Ledger Anda."},step3:{title:"Pindai kode",description:"Ketuk WalletConnect lalu Beralih ke Scanner. Setelah Anda scan, muncul prompt koneksi untuk Anda menghubungkan dompet Anda."}}}},id_ID_default={connect_wallet:connect_wallet6,intro:intro6,sign_in:sign_in6,connect:connect6,connect_scan:connect_scan6,connector_group:connector_group6,get:get6,get_options:get_options6,get_mobile:get_mobile6,get_instructions:get_instructions6,chains:chains6,profile:profile6,wallet_connectors:wallet_connectors6},connect_wallet7={label:"ウォレットを接続"},intro7={title:"ウォレットとは何ですか?",description:"ウォレットは、デジタルアセットを送信、受信、保存、表示するために使用されます。また、各ウェブサイトで新たなアカウントやパスワードを作成する必要なく、ログインする新しい方法でもあります。",digital_asset:{title:"あなたのデジタル資産のための家",description:"ウォレットは、EthereumやNFTのようなデジタル資産を送信、受信、保存、表示するために使用されます。"},login:{title:"新しいログイン方法",description:"すべてのウェブサイトで新しいアカウントとパスワードを作成する代わりに、ウォレットを接続します。"},get:{label:"ウォレットを取得する"},learn_more:{label:"詳しくはこちら"}},sign_in7={label:"アカウントを確認する",description:"接続を完了するには、このアカウントの所有者であることを証明するためにウォレットでメッセージに署名する必要があります。",message:{send:"メッセージを送信",preparing:"メッセージの準備中...",cancel:"キャンセル",preparing_error:"メッセージの準備中にエラーが発生しました、再試行してください!"},signature:{waiting:"署名を待っています...",verifying:"署名を検証中...",signing_error:"メッセージの署名中にエラーが発生しました、再試行してください!",verifying_error:"署名の検証中にエラーが発生しました、再試行してください!",oops_error:"おっと、何かが間違っていました!"}},connect7={label:"接続",title:"ウォレットを接続する",new_to_ethereum:{description:"Ethereumのウォレットが初めてですか?",learn_more:{label:"詳しくはこちら"}},learn_more:{label:"詳しくはこちら"},recent:"最近利用しました",status:{opening:"%{wallet}を開いています...",connecting:"接続中",connect_mobile:"%{wallet}で続行",not_installed:"%{wallet} はインストールされていません",not_available:"%{wallet} は利用できません",confirm:"エクステンションで接続を確認してください",confirm_mobile:"ウォレットでの接続リクエストを承認する"},secondary_action:{get:{description:"%{wallet}がありませんか?",label:"取得"},install:{label:"インストール"},retry:{label:"再試行"}},walletconnect:{description:{full:"公式のWalletConnectモーダルが必要ですか?",compact:"WalletConnectモーダルが必要ですか?"},open:{label:"開く"}}},connect_scan7={title:"%{wallet}でスキャン",fallback_title:"携帯電話でスキャンしてください"},connector_group7={recommended:"おすすめのウォレット",other:"その他",popular:"人気のウォレット",more:"もっと",others:"その他"},get7={title:"ウォレットを取得",action:{label:"取得"},mobile:{description:"モバイルウォレット"},extension:{description:"ブラウザ拡張"},mobile_and_extension:{description:"モバイルウォレットと拡張機能"},mobile_and_desktop:{description:"モバイルとデスクトップウォレット"},looking_for:{title:"お探しのウォレットがありませんか?",mobile:{description:"メイン画面でウォレットを選択し、異なるウォレットプロバイダーで始めてください。"},desktop:{compact_description:"メイン画面でウォレットを選択し、異なるウォレットプロバイダーで始めてください。",wide_description:"左側のウォレットを選択して、別のウォレットプロバイダーで始めてください。"}}},get_options7={title:"%{wallet}で始める",short_title:"%{wallet}を取得する",mobile:{title:"モバイル用 %{wallet}",description:"モバイルウォレットを使用して、イーサリアムの世界を探索します。",download:{label:"アプリを取得"}},extension:{title:"%{wallet} for %{browser}",description:"お好きなウェブブラウザからウォレットに直接アクセスします。",download:{label:"%{browser}に追加"}},desktop:{title:"%{wallet} for %{platform}",description:"あなたの強力なデスクトップからネイティブにウォレットにアクセスします。",download:{label:"%{platform}に追加する"}}},get_mobile7={title:"%{wallet}をインストール",description:"iOSまたはAndroidでダウンロードするために電話でスキャン",continue:{label:"続行"}},get_instructions7={mobile:{connect:{label:"接続"},learn_more:{label:"詳しくはこちら"}},extension:{refresh:{label:"更新"},learn_more:{label:"詳しくはこちら"}},desktop:{connect:{label:"接続"},learn_more:{label:"詳しくはこちら"}}},chains7={title:"ネットワークを切り替える",wrong_network:"誤ったネットワークが検出されました、続行するには切り替えるか切断してください。",confirm:"ウォレットで確認する",switching_not_supported:"あなたのウォレットは %{appName}からネットワークを切り替えることをサポートしていません。ウォレット内でネットワークを切り替えてみてください。",switching_not_supported_fallback:"あなたのウォレットは、このアプリからネットワークを切り替えることをサポートしていません。代わりにウォレット内からネットワークを切り替えてみてください。",disconnect:"切断する",connected:"接続しました"},profile7={disconnect:{label:"切断する"},copy_address:{label:"アドレスをコピーする",copied:"コピーしました!"},explorer:{label:"エクスプローラーで詳しく見る"},transactions:{description:"%{appName} トランザクションがここに表示されます...",description_fallback:"あなたのトランザクションはここに表示されます...",recent:{title:"最近のトランザクション"},clear:{label:"すべてクリア"}}},wallet_connectors7={argent:{qr_code:{step1:{description:"より速くウォレットにアクセスするために、Argentをホーム画面に置いてください。",title:"Argentアプリを開く"},step2:{description:"ウォレットとユーザーネームを作成するか、既存のウォレットをインポートします。",title:"ウォレットを作成またはインポート"},step3:{description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。",title:"「QRをスキャン」ボタンをタップします"}}},bifrost:{qr_code:{step1:{description:"より速くアクセスできるように、Bifrost Walletをホーム画面に置くことをお勧めします。",title:"Bifrost Walletアプリを開きます"},step2:{description:"リカバリーフレーズを使用してウォレットを作成またはインポートします。",title:"ウォレットを作成またはインポート"},step3:{description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。",title:"「スキャン」ボタンをタップします"}}},bitget:{qr_code:{step1:{description:"より迅速なアクセスのために、ホーム画面にBitget Walletを配置することをお勧めします。",title:"Bitget Walletアプリを開く"},step2:{description:"ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。",title:"ウォレットを作成またはインポート"},step3:{description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。",title:"スキャンボタンをタップする"}},extension:{step1:{description:"ウォレットへのより迅速なアクセスのためにBitget Walletをタスクバーにピン留めすることをお勧めします。",title:"Bitget Wallet拡張機能をインストールします"},step2:{description:"ウォレットを安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。",title:"ウォレットを作成またはインポートします"},step3:{description:"ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。",title:"ブラウザを更新する"}}},bitski:{extension:{step1:{description:"ウォレットへの素早いアクセスのために、Bitskiをタスクバーにピン留めすることをお勧めします。",title:"Bitskiエクステンションをインストールする"},step2:{description:"ウォレットを安全な方法でバックアップしてください。シークレットフレーズは誰とも共有しないでください。",title:"ウォレットを作成するか、インポートする"},step3:{description:"ウォレットのセットアップが完了したら、以下をクリックしてブラウザを更新し、エクステンションを読み込みます。",title:"ブラウザを更新する"}}},coin98:{qr_code:{step1:{description:"Coin98ウォレットをホーム画面に置くことで、ウォレットへのアクセスが高速化されることをお勧めします。",title:"Coin98ウォレットアプリを開きます"},step2:{description:"電話のバックアップ機能を使用して、ウォレットを簡単にバックアップすることができます。",title:"ウォレットを作成またはインポートする"},step3:{description:"スキャン後、ウォレットへの接続を促すプロンプトが表示されます。",title:"WalletConnectボタンをタップします"}},extension:{step1:{description:"ブラウザの右上をクリックして、Coin98ウォレットをピン留めして簡単にアクセスできるようにします。",title:"Coin98ウォレットの拡張機能をインストールします"},step2:{description:"新しいウォレットを作成するか、既存のものをインポートします。",title:"ウォレットを作成またはインポートする"},step3:{description:"Coin98ウォレットをセットアップしたら、下のリンクをクリックしてブラウザを更新し、拡張機能をロードします。",title:"ブラウザを更新する"}}},coinbase:{qr_code:{step1:{description:"より素早くアクセスできるように、Coinbaseウォレットをホームスクリーンに置くことをお勧めします。",title:"Coinbase Walletアプリを開く"},step2:{description:"クラウドバックアップ機能を使用して、簡単にウォレットをバックアップできます。",title:"ウォレットを作成またはインポートする"},step3:{description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。",title:"スキャンボタンをタップする"}},extension:{step1:{description:"タスクバーにCoinbase Walletをピン留めして、ウォレットにより早くアクセスできるように推奨します。",title:"Coinbase Wallet拡張機能をインストールする"},step2:{description:"必ず安全な方法を使用してウォレットをバックアップしてください。秘密のフレーズを誰にも共有しないでください。",title:"ウォレットを作成またはインポート"},step3:{description:"ウォレットの設定が完了したら、下のボタンをクリックしてブラウザを更新し、拡張機能をロードします。",title:"ブラウザを更新する"}}},core:{qr_code:{step1:{description:"ウォレットへの迅速なアクセスのため、コアをホーム画面に設定することを推奨します。",title:"Coreアプリを開く"},step2:{description:"電話のバックアップ機能を使って、簡単にウォレットをバックアップできます。",title:"ウォレットを作成またはインポート"},step3:{description:"スキャン後、ウォレットを接続するようにプロンプトが表示されます。",title:"WalletConnectボタンをタップする"}},extension:{step1:{description:"ウォレットへのより迅速なアクセスのために、タスクバーにCoreをピン留めすることをお勧めします。",title:"Core拡張機能をインストールする"},step2:{description:"セキュアな方法を使用してウォレットをバックアップしてください。秘密のフレーズを誰とも共有しないでください。",title:"ウォレットを作成またはインポートする"},step3:{description:"ウォレットの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能をロードします。",title:"ブラウザを更新する"}}},fox:{qr_code:{step1:{description:"より迅速なアクセスのために、ホーム画面にFoxWalletを置くことをお勧めします。",title:"FoxWalletアプリを開く"},step2:{description:"セキュアな方法を使用してウォレットをバックアップすることを確認してください。秘密のフレーズは誰とも共有しないでください。",title:"ウォレットを作成またはインポート"},step3:{description:"スキャンした後、ウォレットを接続するための接続プロンプトが表示されます。",title:"スキャンボタンをタップします"}}},frontier:{qr_code:{step1:{description:"Frontierウォレットをホーム画面に置くことで、より早くアクセスできることをお勧めします。",title:"Frontierウォレットアプリを開きます"},step2:{description:"セキュアな方法を使用してウォレットをバックアップすることを確認してください。秘密のフレーズは誰とも共有しないでください。",title:"ウォレットを作成またはインポート"},step3:{description:"スキャン後に、ウォレットの接続を促すメッセージが表示されます。",title:"スキャンボタンをタップします"}},extension:{step1:{description:"より迅速なウォレットへのアクセスを可能にするために、フロンティアウォレットをタスクバーにピン留めすることを推奨します。",title:"フロンティアウォレットの拡張機能をインストールします"},step2:{description:"安全な方法を使用してウォレットをバックアップしてください。秘密のフレーズは決して誰とも共有しないでください。",title:"ウォレットを作成またはインポート"},step3:{description:"ウォレットの設定が完了したら、ブラウザを更新して拡張機能を読み込みます。",title:"ブラウザを更新する"}}},im_token:{qr_code:{step1:{title:"imTokenアプリを開く",description:"ウォレットへのアクセスを速くするために、imTokenアプリをホーム画面に置いてください。"},step2:{title:"ウォレットを作成またはインポート",description:"新しいウォレットを作成するか、既存のものをインポートします。"},step3:{title:"右上隅のスキャナーアイコンをタップします",description:"新しい接続を選択し、QRコードをスキャンしてプロンプトを確認し接続します。"}}},metamask:{qr_code:{step1:{title:"MetaMaskアプリを開きます",description:"迅速なアクセスのために、MetaMaskをホーム画面に置くことをお勧めします。"},step2:{title:"ウォレットを作成またはインポートします",description:"必ず安全な方法を使用してウォレットをバックアップしてください。秘密の回復フレーズを誰にも共有しないでください。"},step3:{title:"スキャンボタンをタップします",description:"スキャンすると、ウォレットを接続するための接続プロンプトが表示されます。"}},extension:{step1:{title:"MetaMaskの拡張機能をインストールします",description:"ウォレットへのより速いアクセスのために、MetaMaskをタスクバーにピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"安全な方法を使用してウォレットをバックアップし、秘密のフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新",description:"ウォレットを設定した後は、下のリンクをクリックしてブラウザを更新し、エクステンションを読み込んでください。"}}},okx:{qr_code:{step1:{title:"OKX Walletアプリを開く",description:"OKX Walletをホーム画面に配置して、より早くアクセスできるようにすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"セキュアな方法を使ってウォレットをバックアップしてください。秘密フレーズは誰とも共有しないでください。"},step3:{title:"スキャンボタンをタップする",description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。"}},extension:{step1:{title:"OKXウォレット拡張機能をインストールする",description:"ウォレットへの迅速なアクセスのため、OKXウォレットをタスクバーにピン止めすることをお勧めします。"},step2:{title:"ウォレットを作成するか、インポートする",description:"セキュアな方法を使ってウォレットをバックアップしてください。秘密フレーズは誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットを設定したら、下をクリックしてブラウザをリフレッシュし、拡張機能を読み込みます。"}}},omni:{qr_code:{step1:{title:"Omniアプリを開く",description:"Omniをホーム画面に追加して、ウォレットへのアクセスを早めます。"},step2:{title:"ウォレットを作成またはインポート",description:"新しいウォレットを作成するか、既存のものをインポートします。"},step3:{title:"QRアイコンをタップしてスキャン",description:"ホーム画面のQRアイコンをタップし、コードをスキャンし、プロンプトを確認して接続します。"}}},token_pocket:{qr_code:{step1:{title:"TokenPocketアプリを開く",description:"より速いアクセスのために、TokenPocketをホーム画面に置くことをお勧めします。"},step2:{title:"ウォレットを作成またはインポートする",description:"必ず安全な方法を使用してウォレットをバックアップしてください。秘密の回復フレーズを誰にも共有しないでください。"},step3:{title:"スキャンボタンをタップする",description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。"}},extension:{step1:{title:"TokenPocketエクステンションをインストールする",description:"ウォレットへのより早いアクセスのために、TokenPocketをタスクバーにピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"ウォレットを安全な方法でバックアップすることを確認してください。シークレットフレーズを決して他の人と共有しないでください。"},step3:{title:"ブラウザを更新",description:"ウォレットのセットアップが完了したら、以下をクリックしてブラウザを更新し、拡張機能をロードします。"}}},trust:{qr_code:{step1:{title:"Trust Walletアプリを開く",description:"ウォレットへの高速アクセスのために、Trust Walletをホーム画面に置きます。"},step2:{title:"ウォレットを作成またはインポート",description:"新しいウォレットを作成するか、既存のものをインポートします。"},step3:{title:"設定でWalletConnectをタップします",description:"新しい接続を選択し、QRコードをスキャンして、プロンプトで接続を確認します。"}},extension:{step1:{title:"Trust Wallet拡張機能をインストールします",description:"ブラウザの右上をクリックし、Trust Walletをピン留めして簡単にアクセスできるようにします。"},step2:{title:"ウォレットを作成するかインポートします",description:"新しいウォレットを作成するか、既存のものをインポートします。"},step3:{title:"ブラウザを更新する",description:"Trust Walletの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。"}}},uniswap:{qr_code:{step1:{title:"Uniswapアプリを開く",description:"Uniswapウォレットをホーム画面に追加して、ウォレットへのアクセスを高速化します。"},step2:{title:"ウォレットを作成またはインポートする",description:"新しいウォレットを作成するか、既存のものをインポートします。"},step3:{title:"QRアイコンをタップしてスキャンする",description:"ホーム画面のQRアイコンをタップし、コードをスキャンしてプロンプトを確認して接続します。"}}},zerion:{qr_code:{step1:{title:"Zerionアプリを開く",description:"より速くアクセスするために、Zerionをホーム画面に置くことをお勧めします。"},step2:{title:"ウォレットを作成するか、インポートする",description:"必ず安全な方法を使用してウォレットをバックアップしてください。秘密の回復フレーズを誰にも共有しないでください。"},step3:{title:"スキャンボタンを押す",description:"スキャンした後、ウォレットを接続するための接続プロンプトが表示されます。"}},extension:{step1:{title:"Zerion拡張機能をインストールする",description:"ウォレットへの素早いアクセスのため、Zerionをタスクバーにピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"ウォレットをセキュアな方法でバックアップすることを確認してください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットをセットアップしたら、下のボタンをクリックしてブラウザを更新し、拡張機能をロードします。"}}},rainbow:{qr_code:{step1:{title:"Rainbowアプリを開く",description:"ウォレットへの早いアクセスのために、Rainbowをホーム画面に置くことをおすすめします。"},step2:{title:"ウォレットを作成またはインポート",description:"電話のバックアップ機能を使用して、簡単にウォレットをバックアップすることができます。"},step3:{title:"スキャンボタンをタップする",description:"スキャンした後、ウォレットを接続するための接続プロンプトが表示されます。"}}},enkrypt:{extension:{step1:{description:"ウォレットへのアクセスをより早くするため、タスクバーにEnkrypt Walletをピン留めすることを推奨します。",title:"Enkrypt Wallet拡張機能をインストールしてください"},step2:{description:"安全な方法でウォレットのバックアップを必ず取り、秘密のフレーズを誰とも共有しないでください。",title:"ウォレットを作成するか、インポートする"},step3:{description:"ウォレットの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。",title:"ブラウザを更新する"}}},frame:{extension:{step1:{description:"ウォレットへのアクセスをより早くするため、タスクバーにFrameをピン留めすることを推奨します。",title:"Frameとその付属の拡張機能をインストール"},step2:{description:"ウォレットを安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。",title:"ウォレットを作成、またはインポート"},step3:{description:"ウォレットの設定が完了したら、下のリンクをクリックしてブラウザを更新し、拡張機能をロードします。",title:"ブラウザを更新"}}},one_key:{extension:{step1:{title:"OneKey Wallet拡張機能をインストール",description:"ウォレットへのアクセスを素早く行うため、OneKey Walletをタスクバーにピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成、またはインポート",description:"安全な方法を使用してウォレットをバックアップしてください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能をロードします。"}}},phantom:{extension:{step1:{title:"Phantom拡張機能をインストールする",description:"ウォレットへの容易なアクセスのため、Phantomをタスクバーにピン留めすることを推奨します。"},step2:{title:"ウォレットを作成またはインポートする",description:"安全な方法を使用してウォレットをバックアップしてください。秘密の回復フレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットの設定が完了したら、以下をクリックしてブラウザを更新し、エクステンションを読み込みます。"}}},rabby:{extension:{step1:{title:"Rabbyエクステンションをインストールする",description:"ウォレットへの素早いアクセスのため、タスクバーにRabbyをピン止めすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"セキュアな方法を使用してウォレットをバックアップしてください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新",description:"ウォレットの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能をロードします。"}}},safeheron:{extension:{step1:{title:"コア拡張機能をインストール",description:"ウォレットへの素早いアクセスのため、タスクバーにSafeheronをピン止めすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"確実に安全な方法でウォレットをバックアップしてください。秘密のフレーズは決して誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能をロードします。"}}},taho:{extension:{step1:{title:"Taho拡張機能をインストールする",description:"ウォレットへのより迅速なアクセスのため、Tahoをタスクバーにピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成するか、インポートする",description:"確実に安全な方法でウォレットをバックアップしてください。秘密のフレーズは決して誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットの設定が完了したら、下をクリックしてブラウザを更新し、拡張機能をロードします。"}}},talisman:{extension:{step1:{title:"Talisman拡張機能をインストールする",description:"ウォレットへのより早いアクセスのために、Talismanをタスクバーにピン留めすることをお勧めします。"},step2:{title:"Ethereumウォレットを作成するか、インポートする",description:"ウォレットを安全な方法でバックアップしておくことを確認してください。リカバリーフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットの設定が完了したら、下をクリックしてブラウザを更新し、拡張機能をロードします。"}}},xdefi:{extension:{step1:{title:"XDEFI Wallet拡張機能をインストールする",description:"XDEFI Walletをタスクバーにピン留めすることで、ウォレットへのアクセスが速くなることをお勧めします。"},step2:{title:"ウォレットの作成またはインポート",description:"ウォレットを安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能をロードしてください。"}}},zeal:{extension:{step1:{title:"Zeal 拡張機能をインストール",description:"ウォレットに素早くアクセスするために、タスクバーに Zeal をピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。"}}},safepal:{extension:{step1:{title:"SafePal Wallet拡張機能をインストールする",description:"ブラウザの右上でクリックし、Easy AccessのためにSafePal Walletをピン留めします。"},step2:{title:"ウォレットを作成またはインポートする",description:"新しいウォレットを作成するか、既存のものをインポートします。"},step3:{title:"ブラウザを更新する",description:"SafePal Walletのセットアップが完了したら、以下をクリックしてブラウザをリフレッシュし、エクステンションをロードします。"}},qr_code:{step1:{title:"SafePal Walletアプリを開く",description:"SafePal Walletをホーム画面に置くことで、ウォレットへの素早いアクセスが可能になります。"},step2:{title:"ウォレットを作成またはインポート",description:"新しいウォレットを作成するか、既存のものをインポートします。"},step3:{title:"設定でWalletConnectをタップします",description:"新しい接続を選択し、QRコードをスキャンしてプロンプトを確認し接続します。"}}},desig:{extension:{step1:{title:"Desig拡張機能をインストール",description:"あなたのウォレットへの簡単なアクセスのために、Desigをタスクバーにピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成",description:"ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。"}}},subwallet:{extension:{step1:{title:"SubWallet拡張機能をインストール",description:"ウォレットへのより素早いアクセスのため、SubWalletをタスクバーにピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"ウォレットを安全な方法でバックアップしておくことを確認してください。リカバリーフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。"}},qr_code:{step1:{title:"SubWalletアプリを開く",description:"より迅速なアクセスのために、SubWalletをホーム画面に置くことをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"「スキャン」ボタンをタップします",description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。"}}},clv:{extension:{step1:{title:"CLV Wallet拡張機能をインストール",description:"ウォレットへのより素早いアクセスのため、CLV Walletをタスクバーにピン留めすることをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"ブラウザを更新する",description:"ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。"}},qr_code:{step1:{title:"CLV Walletアプリを開く",description:"より迅速なアクセスのために、ホーム画面にCLV Walletを置くことをお勧めします。"},step2:{title:"ウォレットを作成またはインポート",description:"ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。"},step3:{title:"「スキャン」ボタンをタップします",description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。"}}},okto:{qr_code:{step1:{title:"Oktoアプリを開く",description:"素早くアクセスするために、ホーム画面にOktoを追加します"},step2:{title:"MPCウォレットを作成する",description:"アカウントを作成し、ウォレットを生成します"},step3:{title:"設定でWalletConnectをタップします",description:"右上のScan QRアイコンをタップし、接続するためのプロンプトを確認します。"}}},ledger:{desktop:{step1:{title:"Ledger Liveアプリを開く",description:"より速いアクセスのために、ホーム画面にLedger Liveを置くことを推奨します。"},step2:{title:"あなたのLedgerを設定する",description:"新しいLedgerを設定するか、既存のものに接続します。"},step3:{title:"接続",description:"スキャン後、ウォレットを接続するための接続プロンプトが表示されます。"}},qr_code:{step1:{title:"Ledger Liveアプリを開く",description:"より速いアクセスのために、ホーム画面にLedger Liveを置くことを推奨します。"},step2:{title:"あなたのLedgerを設定する",description:"デスクトップアプリと同期するか、あなたのLedgerに接続することができます。"},step3:{title:"コードをスキャンする",description:"WalletConnectをタップし、スキャナーに切り替えてください。スキャン後、ウォレットを接続するための接続プロンプトが表示されます。"}}}},ja_JP_default={connect_wallet:connect_wallet7,intro:intro7,sign_in:sign_in7,connect:connect7,connect_scan:connect_scan7,connector_group:connector_group7,get:get7,get_options:get_options7,get_mobile:get_mobile7,get_instructions:get_instructions7,chains:chains7,profile:profile7,wallet_connectors:wallet_connectors7},connect_wallet8={label:"지갑 연결"},intro8={title:"지갑이란 무엇인가요?",description:"지갑은 디지털 자산을 보내고, 받고, 저장하고, 표시하는 데 사용됩니다. 또한, 모든 웹 사이트에서 새 계정과 비밀번호를 생성할 필요 없이 로그인하는 새로운 방법입니다.",digital_asset:{title:"당신의 디지털 자산을 위한 집",description:"지갑은 이더리움 및 NFT와 같은 디지털 자산을 보내고, 받고, 저장하고, 표시하는데 사용됩니다."},login:{title:"새로운 로그인 방식",description:"모든 웹사이트에서 새 계정과 비밀번호를 생성하는 대신, 당신의 지갑을 연결하기만 하면 됩니다."},get:{label:"지갑 가져오기"},learn_more:{label:"더 알아보기"}},sign_in8={label:"계정을 확인하세요",description:"연결을 완료하려면 이 계정의 소유자임을 확인하기 위해 지갑에 메시지에 서명해야 합니다.",message:{send:"메시지 보내기",preparing:"메시지 준비 중...",cancel:"취소",preparing_error:"메시지 준비 중 오류가 발생했습니다. 다시 시도하세요!"},signature:{waiting:"서명을 기다리는 중...",verifying:"서명 검증 중...",signing_error:"메시지 서명 중 오류가 발생했습니다. 다시 시도하세요!",verifying_error:"서명 검증 중 오류가 발생했습니다. 다시 시도하세요!",oops_error:"앗, 문제가 발생했습니다!"}},connect8={label:"연결",title:"지갑 연결",new_to_ethereum:{description:"이더리움 지갑에 처음 접하시나요?",learn_more:{label:"더 알아보기"}},learn_more:{label:"더 알아보기"},recent:"최근",status:{opening:"%{wallet}열기 ...",connecting:"연결 중",connect_mobile:"%{wallet}에서 계속 진행",not_installed:"%{wallet} 가 설치되어 있지 않습니다",not_available:"%{wallet} 를 사용할 수 없습니다",confirm:"확장 프로그램에서 연결을 확인하세요",confirm_mobile:"지갑에서 연결 요청을 수락하십시오"},secondary_action:{get:{description:"%{wallet}가 없나요?",label:"GET"},install:{label:"설치"},retry:{label:"다시 시도"}},walletconnect:{description:{full:"공식 WalletConnect 모달이 필요한가요?",compact:"WalletConnect 모달이 필요한가요?"},open:{label:"열기"}}},connect_scan8={title:"%{wallet}로 스캔하기",fallback_title:"휴대폰으로 스캔하기"},connector_group8={recommended:"추천",other:"기타",popular:"인기",more:"더 보기",others:"다른 지갑들"},get8={title:"월렛 받기",action:{label:"받기"},mobile:{description:"모바일 월렛"},extension:{description:"브라우저 확장 프로그램"},mobile_and_extension:{description:"모바일 지갑 및 확장 프로그램"},mobile_and_desktop:{description:"모바일 및 데스크톱 지갑"},looking_for:{title:"찾고 계신 것이 아닌가요?",mobile:{description:"메인 화면에서 다른 지갑 제공자를 사용하기 위해 지갑을 선택하세요."},desktop:{compact_description:"메인 화면에서 다른 지갑 제공자를 사용하기 위해 지갑을 선택하세요.",wide_description:"왼쪽에서 지갑을 선택하여 다른 지갑 제공자를 사용하기 시작하세요."}}},get_options8={title:"%{wallet}로 시작하세요",short_title:"%{wallet}얻기",mobile:{title:"모바일용 %{wallet}",description:"모바일 지갑으로 이더리움 세계를 탐험하세요.",download:{label:"앱 받기"}},extension:{title:"%{browser}용 %{wallet}",description:"가장 좋아하는 웹 브라우저에서 바로 지갑에 접근하세요.",download:{label:"추가하기 %{browser}"}},desktop:{title:"%{wallet} 용 %{platform}",description:"강력한 데스크톱에서 네이티브로 지갑에 접근하세요.",download:{label:"%{platform}에 추가"}}},get_mobile8={title:"설치하기 %{wallet}",description:"iOS 또는 Android에서 다운로드하기 위해 휴대폰으로 스캔하세요",continue:{label:"계속"}},get_instructions8={mobile:{connect:{label:"연결"},learn_more:{label:"더 알아보기"}},extension:{refresh:{label:"새로고침"},learn_more:{label:"더 알아보기"}},desktop:{connect:{label:"연결"},learn_more:{label:"더 알아보기"}}},chains8={title:"네트워크 전환",wrong_network:"잘못된 네트워크를 탐지했습니다, 계속하려면 전환하거나 연결을 해제하세요.",confirm:"지갑에서 승인",switching_not_supported:"지갑에서 %{appName}네트워크를 전환하는 것은 지원되지 않습니다. 대신 지갑 내에서 네트워크를 전환해 보세요.",switching_not_supported_fallback:"당신의 지갑은 이 앱에서 네트워크를 바꾸는 것을 지원하지 않습니다. 대신 지갑 내에서 네트워크를 변경해 보세요.",disconnect:"연결 해제",connected:"연결됨"},profile8={disconnect:{label:"연결 해제"},copy_address:{label:"주소 복사",copied:"복사됨!"},explorer:{label:"탐색기에서 더 보기"},transactions:{description:"%{appName} 거래가 여기에 나타납니다...",description_fallback:"여기에 트랜잭션이 표시됩니다...",recent:{title:"최근 거래 내역"},clear:{label:"모두 지우기"}}},wallet_connectors8={argent:{qr_code:{step1:{description:"지갑에 더 빠르게 액세스하려면 Argent를 홈 화면에 놓으세요.",title:"Argent 앱을 열기"},step2:{description:"지갑과 사용자 이름을 생성하거나 기존의 지갑을 가져옵니다.",title:"지갑 생성 또는 가져오기"},step3:{description:"스캔 후에 지갑을 연결하기 위한 연결 요청이 표시됩니다.",title:"QR 코드 스캔 버튼을 누르기"}}},bifrost:{qr_code:{step1:{description:"더 빠른 접근을 위해 홈 화면에 Bifrost Wallet을 놓는 것을 권장합니다.",title:"Bifrost 지갑 앱을 열어주세요"},step2:{description:"복구 문구를 사용하여 지갑을 생성하거나 가져옵니다.",title:"지갑 생성 또는 가져오기"},step3:{description:"스캔 후 연결 프롬프트가 나타나고 지갑을 연결할 수 있습니다.",title:"스캔 버튼을 누릅니다"}}},bitget:{qr_code:{step1:{description:"더 빠른 접근을 위해 Bitget 지갑을 홈 화면에 두는 것을 권장합니다.",title:"Bitget 지갑 앱을 여세요"},step2:{description:"안전한 방법을 사용하여 지갑을 백업하세요. 절대로 비밀 구문을 누구와도 공유하지 마세요.",title:"지갑 생성 또는 가져오기"},step3:{description:"스캔 후, 지갑을 연결하라는 연결 요청 메시지가 나타납니다.",title:"스캔 버튼을 누르세요"}},extension:{step1:{description:"지갑에 빠르게 액세스하기 위해 Bitget Wallet을 작업 표시줄에 고정하는 것을 권장합니다.",title:"Bitget Wallet 확장 프로그램을 설치하세요"},step2:{description:"지갑을 안전한 방법으로 백업하세요. 절대로 비밀 문구를 누구와도 공유하지 마세요.",title:"지갑 생성 또는 가져오기"},step3:{description:"지갑 설정을 마친 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요.",title:"브라우저를 새로 고침하세요"}}},bitski:{extension:{step1:{description:"지갑에 더 빠르게 액세스하기 위해 Bitski를 작업 표시줄에 고정하는 것을 권장합니다.",title:"Bitski 확장 프로그램을 설치합니다"},step2:{description:"안전한 방법을 사용하여 지갑을 백업하세요. 비밀 문구를 누구와도 공유하지 마세요.",title:"지갑 만들기 또는 가져오기"},step3:{description:"지갑을 설정한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요.",title:"브라우저를 새로고침하세요"}}},coin98:{qr_code:{step1:{description:"지갑에 빠르게 액세스하기 위해 Coin98 Wallet을 홈 화면에 두는 것을 권장합니다.",title:"Coin98 Wallet 앱을 열기"},step2:{description:"휴대폰에서 백업 기능을 이용하여 지갑을 쉽게 백업할 수 있습니다.",title:"지갑 만들기 또는 가져오기"},step3:{description:"스캔한 후 연결 프롬프트가 나타나 지갑을 연결하도록 합니다.",title:"WalletConnect 버튼을 누르세요"}},extension:{step1:{description:"브라우저 오른쪽 상단을 클릭하고 쉽게 액세스할 수 있도록 Coin98 Wallet을 고정하세요.",title:"Coin98 Wallet 확장 프로그램을 설치하세요"},step2:{description:"새로운 지갑을 만들거나 기존의 지갑을 가져옵니다.",title:"지갑을 만들거나 가져옵니다"},step3:{description:"Coin98 Wallet을 설정하면 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요.",title:"브라우저를 새로고침 하세요"}}},coinbase:{qr_code:{step1:{description:"더 빠른 액세스를 위해 Coinbase Wallet을 홈 화면에 두는 것을 권장합니다.",title:"Coinbase Wallet 앱을 엽니다"},step2:{description:"클라우드 백업 기능을 사용하여 지갑을 쉽게 백업할 수 있습니다.",title:"지갑 생성 또는 가져오기"},step3:{description:"스캔한 후에 지갑을 연결하라는 연결 프롬프트가 나타납니다.",title:"스캔 버튼을 탭하세요"}},extension:{step1:{description:"지갑에 더 빠르게 접근할 수 있도록 Coinbase Wallet을 작업 표시줄에 고정하는 것을 권장합니다.",title:"Coinbase Wallet 확장 프로그램을 설치하세요"},step2:{description:"안전한 방법을 사용하여 지갑을 백업하세요. 비밀 문구는 절대로 누구와도 공유하지 마세요.",title:"지갑 만들기 또는 가져오기"},step3:{description:"지갑을 설정한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요.",title:"브라우저 새로고침"}}},core:{qr_code:{step1:{description:"지갑에 빠르게 액세스할 수 있도록 Core를 홈 화면에 두는 것을 추천드립니다.",title:"Core 앱 열기"},step2:{description:"휴대폰에서 우리의 백업 기능을 이용해 지갑을 쉽게 백업할 수 있습니다.",title:"지갑 만들기 또는 가져오기"},step3:{description:"스캔 한 후에는 지갑을 연결하라는 연결 요청이 표시됩니다.",title:"WalletConnect 버튼을 누르세요"}},extension:{step1:{description:"지갑에 더 빠르게 액세스하기 위해 작업 표시줄에 Core를 고정하는 것을 권장합니다.",title:"Core 확장 프로그램을 설치하세요"},step2:{description:"안전한 방법을 사용하여 지갑을 백업해야 합니다. 절대로 비밀 문구를 다른 사람과 공유하지 마세요.",title:"지갑 만들기 또는 가져오기"},step3:{description:"지갑을 설정한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요.",title:"브라우저를 새로 고치세요"}}},fox:{qr_code:{step1:{description:"FoxWallet을 홈 화면에 놓는 것을 추천합니다. 이렇게 하면 더 빠르게 접근할 수 있습니다.",title:"FoxWallet 앱을 열어주세요"},step2:{description:"지갑을 안전한 방법으로 백업하세요. 절대로 비밀 문구를 다른 사람과 공유하지 마세요.",title:"지갑을 생성하거나 가져오기"},step3:{description:"스캔 후, 지갑을 연결하라는 연결 프롬프트가 표시됩니다.",title:"스캔 버튼을 누르세요"}}},frontier:{qr_code:{step1:{description:"Frontier Wallet을 홈 화면에 놓는 것을 추천합니다. 이렇게 하면 더 빠르게 접근할 수 있습니다.",title:"Frontier Wallet 앱을 열어주세요"},step2:{description:"지갑을 안전한 방법으로 백업해야 합니다. 비밀 구문을 누구와도 공유하지 마세요.",title:"지갑 생성 또는 가져오기"},step3:{description:"스캔 후에 지갑을 연결하라는 연결 프롬프트가 표시됩니다.",title:"스캔 버튼을 누르세요"}},extension:{step1:{description:"지갑에 더 빠르게 액세스 할 수 있도록 Frontier Wallet을 작업 표시줄에 고정하는 것을 권장합니다.",title:"Frontier Wallet 확장 프로그램 설치"},step2:{description:"지갑을 안전한 방법으로 백업해야 합니다. 비밀 구문을 누구와도 공유하지 마세요.",title:"지갑 생성 또는 가져오기"},step3:{description:"지갑을 설정한 후에 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요.",title:"브라우저를 새로 고칩니다"}}},im_token:{qr_code:{step1:{title:"imToken 앱을 연다",description:"당신의 지갑에 더 빠르게 접근하기 위해 imToken 앱을 홈 화면에 둡니다."},step2:{title:"지갑을 만들거나 불러옵니다",description:"새 지갑을 생성하거나 기존의 것을 가져옵니다."},step3:{title:"오른쪽 상단의 스캐너 아이콘을 누릅니다",description:"새 연결을 선택하고 QR 코드를 스캔한 뒤, 연결하려는 프롬프트를 확인합니다."}}},metamask:{qr_code:{step1:{title:"MetaMask 앱을 엽니다",description:"빠른 액세스를 위해 MetaMask를 홈 화면에 두는 것을 권장합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"당신의 지갑을 안전한 방법으로 백업하는 것을 잊지 마세요. 절대로 비밀 구절을 공유하지 마세요."},step3:{title:"스캔 버튼을 누릅니다",description:"스캔한 후에 지갑을 연결하라는 연결 프롬프트가 나타납니다."}},extension:{step1:{title:"MetaMask 확장 프로그램을 설치하세요",description:"지갑에 빠르게 접근하기 위해 MetaMask를 작업표시줄에 고정하는 것을 추천합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하세요. 결코 비밀 문구를 다른 사람과 공유하지 마세요."},step3:{title:"브라우저를 새로 고치세요",description:"지갑 설정을 마친 후에는 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요."}}},okx:{qr_code:{step1:{title:"OKX Wallet 앱을 열기",description:"더 빠른 접근을 위해 OKX 지갑을 홈 화면에 두는 것을 추천합니다."},step2:{title:"지갑 만들기 또는 불러오기",description:"안전한 방법으로 지갑을 백업하세요. 절대 비밀 문구를 다른 사람과 공유하지 마세요."},step3:{title:"스캔 버튼을 탭하세요",description:"스캔 후 연결 요청이 나타나며, 이를 통해 지갑을 연결할 수 있습니다."}},extension:{step1:{title:"OKX 지갑 확장 프로그램 설치하기",description:"지갑에 빠르게 접근할 수 있도록 OKX 지갑을 작업 표시줄에 고정하는 것을 추천합니다."},step2:{title:"지갑 만들기 또는 불러오기",description:"당신의 지갑을 안전한 방법으로 백업해야 합니다. 비밀 문구를 절대로 다른 사람과 공유하지 마세요."},step3:{title:"브라우저를 새로 고치세요",description:"지갑을 설정한 후, 브라우저를 새로고침하고 확장 프로그램을 로드하기 위해 아래를 클릭하세요."}}},omni:{qr_code:{step1:{title:"Omni 앱을 열기",description:"더 빠른 액세스를 위해 Omni를 홈 스크린에 추가하세요."},step2:{title:"지갑 만들기 또는 가져오기",description:"새로운 지갑을 만들거나 기존의 하나를 가져옵니다."},step3:{title:"QR 아이콘을 탭하고 스캔하기",description:"홈 화면의 QR 아이콘을 탭하고, 코드를 스캔하고 프롬프트를 확인하여 연결하세요."}}},token_pocket:{qr_code:{step1:{title:"TokenPocket 앱을 열어주세요",description:"빠른 접근을 위해 홈 화면에 TokenPocket을 추가하는 것을 권장합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하세요. 절대로 누구에게도 비밀 문구를 공유하지 마세요."},step3:{title:"스캔 버튼을 탭하세요",description:"스캔 후에 지갑을 연결하라는 프롬프트가 표시됩니다."}},extension:{step1:{title:"TokenPocket 확장 프로그램을 설치하세요",description:"지갑에 빠르게 접근하기 위해 TokenPocket를 작업 표시줄에 고정하는 것을 추천합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하세요. 절대로 비밀 문구를 다른 사람과 공유하지 마세요."},step3:{title:"브라우저 새로고침",description:"지갑을 설정하면 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드합니다."}}},trust:{qr_code:{step1:{title:"Trust Wallet 앱을 열기",description:"지갑에 빠르게 접근하기 위해 Trust Wallet을 홈 스크린에 두세요."},step2:{title:"지갑 생성 또는 가져오기",description:"새로운 지갑을 생성하거나 기존의 것을 가져오세요."},step3:{title:"설정에서 WalletConnect를 탭하세요",description:"새 연결을 선택한 다음 QR 코드를 스캔하고, 연결을 확인하는 프롬프트를 확인하세요."}},extension:{step1:{title:"Trust Wallet 확장 프로그램을 설치하세요",description:"브라우저의 오른쪽 상단을 클릭하고 Trust Wallet을 고정하여 쉽게 접근하세요."},step2:{title:"지갑 생성 또는 가져오기",description:"새로운 지갑을 생성하거나 기존의 것을 가져오세요."},step3:{title:"브라우저를 새로고침하세요",description:"Trust Wallet을 설정한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드합니다."}}},uniswap:{qr_code:{step1:{title:"Uniswap 앱을 엽니다",description:"Uniswap Wallet을 홈 화면에 추가하여 지갑에 더 빠르게 액세스하세요."},step2:{title:"지갑을 만들거나 가져오기",description:"새 지갑을 생성하거나 기존의 것을 가져옵니다."},step3:{title:"QR 아이콘을 누르고 스캔하기",description:"홈화면의 QR 아이콘을 누르고 코드를 스캔하고 프롬프트를 확인하여 연결하세요."}}},zerion:{qr_code:{step1:{title:"Zerion 앱을 엽니다",description:"더 빠른 접근을 위해 Zerion을 홈 화면에 두는 것을 권장합니다."},step2:{title:"지갑 만들기 또는 가져오기",description:"안전한 방법으로 지갑을 백업하세요. 절대로 비밀 구절을 누군가와 공유하지 마세요."},step3:{title:"스캔 버튼을 탭하세요",description:"스캔 후 연결 프롬프트가 나타나 지갑을 연결하세요."}},extension:{step1:{title:"Zerion 확장 프로그램을 설치하세요",description:"지갑에 더 빠르게 접근할 수 있도록 Zerion을 작업 표시줄에 고정하는 것을 권장합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하세요. 비밀 구문을 절대로 다른 사람과 공유하지 마세요."},step3:{title:"브라우저를 새로 고치세요",description:"지갑을 설정한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요."}}},rainbow:{qr_code:{step1:{title:"Rainbow 앱 열기",description:"지갑에 더 빠르게 접근하기 위해 홈 화면에 Rainbow를 두는 것을 추천합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"휴대폰에 있는 백업 기능을 사용하여 지갑을 쉽게 백업할 수 있습니다."},step3:{title:"스캔 버튼을 누르세요",description:"스캔 후, 지갑을 연결하라는 연결 프롬프트가 나타납니다."}}},enkrypt:{extension:{step1:{description:"지갑에 더 빠르게 접근하기 위해 작업 표시줄에 Enkrypt Wallet를 고정하는 것을 추천합니다.",title:"Enkrypt Wallet 확장 프로그램을 설치하세요"},step2:{description:"지갑을 안전한 방법으로 백업하세요. 절대로 비밀 문구를 다른 사람과 공유하지 마세요.",title:"지갑 생성 또는 가져오기"},step3:{description:"지갑을 설정한 후에는 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요.",title:"브라우저 새로고침"}}},frame:{extension:{step1:{description:"지갑에 더 빠르게 접근할 수 있도록 Frame을 작업 표시줄에 고정하는 것을 추천합니다.",title:"Frame 및 동반 확장 프로그램 설치"},step2:{description:"안전한 방법을 사용하여 지갑을 백업하세요. 절대로 비밀 구문을 다른 사람과 공유하지 마세요.",title:"지갑 생성 또는 가져오기"},step3:{description:"지갑을 설정한 후에는 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요.",title:"브라우저 새로고침"}}},one_key:{extension:{step1:{title:"OneKey Wallet 확장 프로그램을 설치하세요",description:"지갑에 빠르게 접근할 수 있도록 OneKey Wallet을 작업 표시줄에 고정하는 것을 권장합니다."},step2:{title:"지갑 생성 또는 불러오기",description:"지갑을 안전한 방법으로 백업하세요. 절대로 비밀 문구를 다른 사람과 공유하지 마세요."},step3:{title:"브라우저를 새로고침 하세요",description:"지갑을 설정한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요."}}},phantom:{extension:{step1:{title:"Phantom 확장 프로그램을 설치하세요",description:"지갑에 더 쉽게 접근할 수 있도록 Phantom을 작업 표시줄에 고정하는 것을 권장합니다."},step2:{title:"지갑 생성 또는 불러오기",description:"안전한 방법을 사용하여 지갑을 백업하세요. 절대로 누구와도 비밀 복구 구문을 공유하지 마세요."},step3:{title:"브라우저를 새로고침 하세요",description:"지갑을 설정한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요."}}},rabby:{extension:{step1:{title:"Rabby 확장 프로그램을 설치하세요",description:"지갑에 더 빠르게 액세스할 수 있도록 Rabby를 작업표시줄에 고정하는 것을 권장합니다."},step2:{title:"지갑 만들기 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하세요. 절대로 누구와도 비밀 구문을 공유하지 마세요."},step3:{title:"브라우저를 새로고침 하세요",description:"지갑 설정을 완료하면 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드합니다."}}},safeheron:{extension:{step1:{title:"코어 확장 프로그램 설치",description:"지갑에 빠르게 액세스하기 위해 Safeheron을 작업 표시줄에 고정하는 것을 권장합니다."},step2:{title:"지갑 만들기 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하세요. 비밀 문구를 절대 다른 사람과 공유하지 마세요."},step3:{title:"브라우저 새로고침",description:"지갑 설정을 완료하면 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드합니다."}}},taho:{extension:{step1:{title:"Taho 확장 프로그램 설치",description:"지갑에 더 빠르게 액세스하기 위해 Taho를 작업 표시줄에 고정하는 것을 추천합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하세요. 결코 비밀 문구를 누군가와 공유하지 마세요."},step3:{title:"브라우저를 새로고침 하세요",description:"지갑을 설정한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요."}}},talisman:{extension:{step1:{title:"탈리스만 확장 프로그램 설치",description:"지갑에 더 빠르게 접근하기 위해 Talisman을 작업 표시줄에 고정하는 것을 추천합니다."},step2:{title:"이더리움 지갑 생성 또는 가져오기",description:"반드시 안전한 방법을 사용하여 지갑을 백업하세요. 복구 문구를 누구와도 공유하지 마세요."},step3:{title:"브라우저를 새로고침 하세요",description:"지갑을 설정 한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요."}}},xdefi:{extension:{step1:{title:"XDEFI 지갑 확장 프로그램을 설치하세요",description:"지갑에 빠르게 액세스하기 위해 작업 표시줄에 XDEFI Wallet을 고정하는 것을 권장합니다."},step2:{title:"지갑을 만들거나 가져오기",description:"반드시 안전한 방법을 사용하여 지갑을 백업하세요. 비밀 문구를 누구와도 공유하지 마세요."},step3:{title:"브라우저를 새로고침 하세요",description:"지갑을 설정한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요."}}},zeal:{extension:{step1:{title:"Zeal 확장 프로그램을 설치하세요",description:"월렛에 더 빠르게 액세스할 수 있도록 Zeal을 작업 표시 줄에 고정하는 것을 권장합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하세요. 절대로 비밀 구문을 누구와도 공유하지 마세요."},step3:{title:"브라우저를 새로 고침하세요",description:"지갑 설정을 마친 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요."}}},safepal:{extension:{step1:{title:"SafePal Wallet 확장 프로그램을 설치하세요",description:"브라우저의 오른쪽 상단에서 클릭하고 SafePal Wallet을 고정하여 쉽게 접근하세요."},step2:{title:"지갑을 만들거나 가져옵니다",description:"새로운 지갑을 만들거나 기존의 지갑을 가져옵니다."},step3:{title:"브라우저를 새로 고침하세요",description:"SafePal Wallet을 설정한 후에는 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요."}},qr_code:{step1:{title:"SafePal Wallet 앱을 여세요",description:"월렛에 빠르게 액세스할 수 있도록 SafePal Wallet을 홈 화면에 두세요."},step2:{title:"지갑 생성 또는 가져오기",description:"새로운 지갑을 만들거나 기존의 지갑을 가져옵니다."},step3:{title:"설정에서 WalletConnect를 탭하세요",description:"새 연결을 선택하고 QR 코드를 스캔한 뒤, 연결하려는 프롬프트를 확인합니다."}}},desig:{extension:{step1:{title:"Desig 확장 프로그램 설치",description:"당신의 지갑에 더 쉽게 접근하기 위해 작업 표시줄에 Desig을 고정하는 것을 권장합니다."},step2:{title:"지갑 생성",description:"안전한 방법을 사용하여 지갑을 백업하세요. 절대로 비밀 구문을 누구와도 공유하지 마세요."},step3:{title:"브라우저를 새로 고침하세요",description:"지갑 설정을 마친 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요."}}},subwallet:{extension:{step1:{title:"SubWallet 확장 프로그램 설치",description:"당신의 지갑에 더 빠르게 접근하기 위해 작업 표시줄에 SubWallet을 고정하는 것을 권장합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"반드시 안전한 방법을 사용하여 지갑을 백업하세요. 복구 문구를 누구와도 공유하지 마세요."},step3:{title:"브라우저를 새로 고침하세요",description:"지갑 설정을 마친 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요."}},qr_code:{step1:{title:"SubWallet 앱 열기",description:"더 빠른 접근을 위해 SubWallet을 홈 화면에 두는 것을 권장합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하세요. 절대로 비밀 구문을 누구와도 공유하지 마세요."},step3:{title:"스캔 버튼을 누릅니다",description:"스캔 후에 지갑을 연결하기 위한 연결 요청이 표시됩니다."}}},clv:{extension:{step1:{title:"CLV Wallet 확장 프로그램 설치",description:"당신의 지갑에 더 빠르게 접근하기 위해 작업 표시줄에 CLV Wallet을 고정하는 것을 권장합니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하세요. 절대로 비밀 구문을 누구와도 공유하지 마세요."},step3:{title:"브라우저를 새로 고침하세요",description:"지갑 설정을 마친 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요."}},qr_code:{step1:{title:"CLV Wallet 앱을 엽니다",description:"더 빠른 접근을 위해 CLV Wallet을 홈 화면에 놓는 것이 좋습니다."},step2:{title:"지갑 생성 또는 가져오기",description:"안전한 방법을 사용하여 지갑을 백업하세요. 절대로 비밀 구문을 누구와도 공유하지 마세요."},step3:{title:"스캔 버튼을 누릅니다",description:"스캔 후에 지갑을 연결하기 위한 연결 요청이 표시됩니다."}}},okto:{qr_code:{step1:{title:"Okto 앱을 엽니다",description:"빠른 접근을 위해 Okto를 홈 화면에 추가합니다"},step2:{title:"MPC Wallet을 만듭니다",description:"계정을 만들고 지갑을 생성합니다"},step3:{title:"설정에서 WalletConnect를 탭하세요",description:"오른쪽 상단의 QR 아이콘을 탭하고 연결하려면 알림을 확인합니다."}}},ledger:{desktop:{step1:{title:"Ledger Live 앱을 엽니다",description:"빠른 접근을 위해 Ledger Live를 홈화면에 두는 것을 권장합니다."},step2:{title:"Ledger 설정",description:"새 Ledger를 설정하거나 기존 Ledger에 연결하세요."},step3:{title:"연결",description:"스캔 후 연결 요청이 나타나며, 이를 통해 지갑을 연결할 수 있습니다."}},qr_code:{step1:{title:"Ledger Live 앱을 엽니다",description:"빠른 접근을 위해 Ledger Live를 홈화면에 두는 것을 권장합니다."},step2:{title:"Ledger 설정",description:"데스크톱 앱과 동기화하거나 Ledger를 연결할 수 있습니다."},step3:{title:"코드를 스캔하세요",description:"WalletConnect를 탭하고 스캐너로 전환합니다. 스캔 후 연결 요청이 나타나며, 이를 통해 지갑을 연결할 수 있습니다."}}}},ko_KR_default={connect_wallet:connect_wallet8,intro:intro8,sign_in:sign_in8,connect:connect8,connect_scan:connect_scan8,connector_group:connector_group8,get:get8,get_options:get_options8,get_mobile:get_mobile8,get_instructions:get_instructions8,chains:chains8,profile:profile8,wallet_connectors:wallet_connectors8},connect_wallet9={label:"Conectar Carteira"},intro9={title:"O que é uma Carteira?",description:"Uma carteira é usada para enviar, receber, armazenar e exibir ativos digitais. Também é uma nova forma de se conectar, sem precisar criar novas contas e senhas em todo site.",digital_asset:{title:"Um lar para seus ativos digitais",description:"Carteiras são usadas para enviar, receber, armazenar e exibir ativos digitais como Ethereum e NFTs."},login:{title:"Uma nova maneira de fazer login",description:"Em vez de criar novas contas e senhas em todos os sites, basta conectar sua carteira."},get:{label:"Obter uma Carteira"},learn_more:{label:"Saiba mais"}},sign_in9={label:"Verifique sua conta",description:"Para concluir a conexão, você deve assinar uma mensagem em sua carteira para confirmar que você é o proprietário desta conta.",message:{send:"Enviar mensagem",preparing:"Preparando mensagem...",cancel:"Cancelar",preparing_error:"Erro ao preparar a mensagem, tente novamente!"},signature:{waiting:"Aguardando assinatura...",verifying:"Verificando assinatura...",signing_error:"Erro ao assinar a mensagem, tente novamente!",verifying_error:"Erro ao verificar assinatura, tente novamente!",oops_error:"Ops, algo deu errado!"}},connect9={label:"Conectar",title:"Conectar uma Carteira",new_to_ethereum:{description:"Novo nas carteiras Ethereum?",learn_more:{label:"Saiba mais"}},learn_more:{label:"Saiba mais"},recent:"Recente",status:{opening:"Abrindo %{wallet}...",connecting:"Conectando",connect_mobile:"Continue em %{wallet}",not_installed:"%{wallet} não está instalado",not_available:"%{wallet} não está disponível",confirm:"Confirme a conexão na extensão",confirm_mobile:"Aceite o pedido de conexão na carteira"},secondary_action:{get:{description:"Não tem %{wallet}?",label:"OBTER"},install:{label:"INSTALAR"},retry:{label:"TENTAR DE NOVO"}},walletconnect:{description:{full:"Precisa do modal oficial do WalletConnect?",compact:"Precisa do modal WalletConnect?"},open:{label:"ABRIR"}}},connect_scan9={title:"Digitalize com %{wallet}",fallback_title:"Digitalize com o seu telefone"},connector_group9={recommended:"Recomendado",other:"Outro",popular:"Popular",more:"Mais",others:"Outros"},get9={title:"Obter uma Carteira",action:{label:"OBTER"},mobile:{description:"Carteira Móvel"},extension:{description:"Extensão do Navegador"},mobile_and_extension:{description:"Carteira Móvel e Extensão"},mobile_and_desktop:{description:"Carteira para Mobile e Desktop"},looking_for:{title:"Não é o que você está procurando?",mobile:{description:"Selecione uma carteira na tela principal para começar com um provedor de carteira diferente."},desktop:{compact_description:"Selecione uma carteira na tela principal para começar com um provedor de carteira diferente.",wide_description:"Selecione uma carteira à esquerda para começar com um provedor de carteira diferente."}}},get_options9={title:"Comece com %{wallet}",short_title:"Obtenha %{wallet}",mobile:{title:"%{wallet} para Móvel",description:"Use a carteira móvel para explorar o mundo do Ethereum.",download:{label:"Baixe o aplicativo"}},extension:{title:"%{wallet} para %{browser}",description:"Acesse sua carteira diretamente do seu navegador web favorito.",download:{label:"Adicionar ao %{browser}"}},desktop:{title:"%{wallet} para %{platform}",description:"Acesse sua carteira nativamente do seu desktop poderoso.",download:{label:"Adicionar ao %{platform}"}}},get_mobile9={title:"Instale %{wallet}",description:"Escaneie com seu celular para baixar no iOS ou Android",continue:{label:"Continuar"}},get_instructions9={mobile:{connect:{label:"Conectar"},learn_more:{label:"Saiba mais"}},extension:{refresh:{label:"Atualizar"},learn_more:{label:"Saiba mais"}},desktop:{connect:{label:"Conectar"},learn_more:{label:"Saiba mais"}}},chains9={title:"Mudar Redes",wrong_network:"Rede errada detectada, mude ou desconecte para continuar.",confirm:"Confirme na Carteira",switching_not_supported:"Sua carteira não suporta a mudança de redes de %{appName}. Tente mudar de redes dentro da sua carteira.",switching_not_supported_fallback:"Sua carteira não suporta a troca de redes a partir deste aplicativo. Tente trocar de rede dentro de sua carteira.",disconnect:"Desconectar",connected:"Conectado"},profile9={disconnect:{label:"Desconectar"},copy_address:{label:"Copiar Endereço",copied:"Copiado!"},explorer:{label:"Veja mais no explorador"},transactions:{description:"%{appName} transações aparecerão aqui...",description_fallback:"Suas transações aparecerão aqui...",recent:{title:"Transações Recentes"},clear:{label:"Limpar Tudo"}}},wallet_connectors9={argent:{qr_code:{step1:{description:"Coloque o Argent na tela inicial para um acesso mais rápido à sua carteira.",title:"Abra o aplicativo Argent"},step2:{description:"Crie uma carteira e nome de usuário, ou importe uma carteira existente.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois que você escanear, um prompt de conexão aparecerá para você conectar sua carteira.",title:"Toque no botão Scan QR"}}},bifrost:{qr_code:{step1:{description:"Recomendamos colocar a Bifrost Wallet na sua tela inicial para um acesso mais rápido.",title:"Abra o aplicativo Bifrost Wallet"},step2:{description:"Crie ou importe uma carteira usando sua frase de recuperação.",title:"Criar ou Importar uma Carteira"},step3:{description:"Após você escanear, um prompt de conexão aparecerá para você conectar sua carteira.",title:"Toque no botão de escanear"}}},bitget:{qr_code:{step1:{description:"Recomendamos colocar a Bitget Wallet na sua tela inicial para um acesso mais rápido.",title:"Abra o aplicativo Bitget Wallet"},step2:{description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de escanear, um prompt de conexão aparecerá para você conectar sua carteira.",title:"Toque no botão de escaneamento"}},extension:{step1:{description:"Recomendamos fixar a Bitget Wallet na sua barra de tarefas para um acesso mais rápido à sua carteira.",title:"Instale a extensão da Carteira Bitget"},step2:{description:"Certifique-se de fazer o backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão.",title:"Atualize seu navegador"}}},bitski:{extension:{step1:{description:"Recomendamos fixar o Bitski na sua barra de tarefas para um acesso mais rápido à sua carteira.",title:"Instale a extensão Bitski"},step2:{description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão.",title:"Atualize seu navegador"}}},coin98:{qr_code:{step1:{description:"Recomendamos colocar a Carteira Coin98 na tela inicial para um acesso mais rápido à sua carteira.",title:"Abra o aplicativo Carteira Coin98"},step2:{description:"Você pode facilmente fazer backup de sua carteira usando nosso recurso de backup em seu telefone.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de escanear, uma solicitação de conexão aparecerá para você conectar sua carteira.",title:"Toque no botão WalletConnect"}},extension:{step1:{description:"Clique no canto superior direito do seu navegador e fixe a Carteira Coin98 para fácil acesso.",title:"Instale a extensão da Carteira Coin98"},step2:{description:"Crie uma nova carteira ou importe uma existente.",title:"Criar ou Importar uma carteira"},step3:{description:"Depois de configurar a Carteira Coin98, clique abaixo para atualizar o navegador e carregar a extensão.",title:"Atualize seu navegador"}}},coinbase:{qr_code:{step1:{description:"Recomendamos colocar a Carteira Coinbase na tela inicial para um acesso mais rápido.",title:"Abra o aplicativo Coinbase Wallet"},step2:{description:"Você pode fazer backup da sua carteira facilmente usando o recurso de backup na nuvem.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de escanear, um prompt de conexão aparecerá para que você conecte sua carteira.",title:"Toque no botão de escanear"}},extension:{step1:{description:"Recomendamos fixar o Coinbase Wallet na sua barra de tarefas para um acesso mais rápido à sua carteira.",title:"Instale a extensão Coinbase Wallet"},step2:{description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Uma vez que você configurou sua carteira, clique abaixo para atualizar o navegador e carregar a extensão.",title:"Atualize seu navegador"}}},core:{qr_code:{step1:{description:"Recomendamos colocar o Core na tela inicial para um acesso mais rápido à sua carteira.",title:"Abra o aplicativo Core"},step2:{description:"Você pode facilmente salvar sua carteira usando nosso recurso de backup no seu celular.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de escanear, um prompt de conexão aparecerá para você conectar sua carteira.",title:"Toque no botão WalletConnect"}},extension:{step1:{description:"Recomendamos fixar o Core na sua barra de tarefas para um acesso mais rápido à sua carteira.",title:"Instale a extensão Core"},step2:{description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão.",title:"Atualize seu navegador"}}},fox:{qr_code:{step1:{description:"Recomendamos colocar o FoxWallet na tela inicial para um acesso mais rápido.",title:"Abra o aplicativo FoxWallet"},step2:{description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de escanear, uma solicitação de conexão aparecerá para você conectar sua carteira.",title:"Toque no botão de escaneamento"}}},frontier:{qr_code:{step1:{description:"Recomendamos colocar o Frontier Wallet na tela inicial para um acesso mais rápido.",title:"Abra o aplicativo Frontier Wallet"},step2:{description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de escanear, aparecerá um prompt de conexão para você conectar sua carteira.",title:"Toque no botão de varredura"}},extension:{step1:{description:"Recomendamos fixar a Carteira Frontier na sua barra de tarefas para um acesso mais rápido à sua carteira.",title:"Instale a extensão da Carteira Frontier"},step2:{description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão.",title:"Atualize seu navegador"}}},im_token:{qr_code:{step1:{title:"Abra o aplicativo imToken",description:"Coloque o aplicativo imToken na tela inicial para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Crie uma nova carteira ou importe uma existente."},step3:{title:"Toque no ícone do Scanner no canto superior direito",description:"Escolha Nova Conexão, em seguida, escaneie o código QR e confirme o prompt para conectar."}}},metamask:{qr_code:{step1:{title:"Abra o aplicativo MetaMask",description:"Recomendamos colocar o MetaMask na tela inicial para um acesso mais rápido."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Toque no botão escanear",description:"Depois de escanear, aparecerá um prompt de conexão para você conectar sua carteira."}},extension:{step1:{title:"Instale a extensão MetaMask",description:"Recomendamos fixar o MetaMask na barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize o seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},okx:{qr_code:{step1:{title:"Abra o aplicativo da Carteira OKX",description:"Recomendamos colocar a Carteira OKX na tela inicial para um acesso mais rápido."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer o backup da sua carteira utilizando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Toque no botão de digitalização",description:"Depois de escanear, aparecerá um prompt de conexão para você conectar sua carteira."}},extension:{step1:{title:"Instale a extensão OKX Wallet",description:"Recomendamos fixar a OKX Wallet na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer o backup da sua carteira utilizando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize o seu navegador",description:"Uma vez que você configurou sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},omni:{qr_code:{step1:{title:"Abra o aplicativo Omni",description:"Adicione o Omni à sua tela inicial para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Crie uma nova carteira ou importe uma existente."},step3:{title:"Toque no ícone do QR e escaneie",description:"Toque no ícone QR na tela inicial, escaneie o código e confirme o prompt para conectar."}}},token_pocket:{qr_code:{step1:{title:"Abra o aplicativo TokenPocket",description:"Recomendamos colocar o TokenPocket na tela inicial para um acesso mais rápido."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Toque no botão de digitalização",description:"Depois de escanear, aparecerá um prompt de conexão para você conectar sua carteira."}},extension:{step1:{title:"Instale a extensão TokenPocket",description:"Recomendamos fixar o TokenPocket em sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Uma vez que você configurou sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},trust:{qr_code:{step1:{title:"Abra o aplicativo Trust Wallet",description:"Coloque o Trust Wallet na tela inicial para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Crie uma nova carteira ou importe uma existente."},step3:{title:"Toque em WalletConnect nas Configurações",description:"Escolha Nova Conexão, depois escaneie o QR code e confirme o prompt para se conectar."}},extension:{step1:{title:"Instale a extensão Trust Wallet",description:"Clique no canto superior direito do seu navegador e marque Trust Wallet para fácil acesso."},step2:{title:"Crie ou Importe uma carteira",description:"Crie uma nova carteira ou importe uma existente."},step3:{title:"Atualize seu navegador",description:"Depois que configurar a Trust Wallet, clique abaixo para atualizar o navegador e carregar a extensão."}}},uniswap:{qr_code:{step1:{title:"Abra o aplicativo Uniswap",description:"Adicione a Carteira Uniswap à sua tela inicial para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Crie uma nova carteira ou importe uma existente."},step3:{title:"Toque no ícone QR e escaneie",description:"Toque no ícone QR na sua tela inicial, escaneie o código e confirme o prompt para conectar."}}},zerion:{qr_code:{step1:{title:"Abra o aplicativo Zerion",description:"Recomendamos colocar o Zerion na sua tela inicial para um acesso mais rápido."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Toque no botão de digitalização",description:"Depois de digitalizar, um prompt de conexão aparecerá para que você possa conectar sua carteira."}},extension:{step1:{title:"Instale a extensão Zerion",description:"Recomendamos fixar o Zerion na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},rainbow:{qr_code:{step1:{title:"Abra o aplicativo Rainbow",description:"Recomendamos colocar o Rainbow na tela inicial para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Você pode facilmente fazer backup da sua carteira usando nosso recurso de backup no seu telefone."},step3:{title:"Toque no botão de digitalizar",description:"Depois de escanear, uma solicitação de conexão aparecerá para você conectar sua carteira."}}},enkrypt:{extension:{step1:{description:"Recomendamos fixar a Carteira Enkrypt na sua barra de tarefas para um acesso mais rápido à sua carteira.",title:"Instale a extensão da Carteira Enkrypt"},step2:{description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão.",title:"Atualize o seu navegador"}}},frame:{extension:{step1:{description:"Recomendamos fixar o Frame na sua barra de tarefas para um acesso mais rápido à sua carteira.",title:"Instale o Frame e a extensão complementar"},step2:{description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém.",title:"Criar ou Importar uma Carteira"},step3:{description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão.",title:"Atualize seu navegador"}}},one_key:{extension:{step1:{title:"Instale a extensão OneKey Wallet",description:"Recomendamos fixar a OneKey Wallet na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Uma vez que você configurou sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},phantom:{extension:{step1:{title:"Instale a extensão Phantom",description:"Recomendamos fixar o Phantom na sua barra de tarefas para facilitar o acesso à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta de recuperação com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},rabby:{extension:{step1:{title:"Instale a extensão Rabby",description:"Recomendamos fixar Rabby na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},safeheron:{extension:{step1:{title:"Instale a extensão Core",description:"Recomendamos fixar Safeheron na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer o backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},taho:{extension:{step1:{title:"Instale a extensão Taho",description:"Recomendamos fixar o Taho na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer o backup da sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},talisman:{extension:{step1:{title:"Instale a extensão Talisman",description:"Recomendamos fixar o Talisman na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Crie ou Importe uma Carteira Ethereum",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase de recuperação com ninguém."},step3:{title:"Atualize o seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},xdefi:{extension:{step1:{title:"Instale a extensão XDEFI Wallet",description:"Recomendamos fixar a Carteira XDEFI na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},zeal:{extension:{step1:{title:"Instale a extensão Zeal",description:"Recomendamos fixar o Zeal na sua barra de tarefas para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},safepal:{extension:{step1:{title:"Instale a extensão da Carteira SafePal",description:"Clique no canto superior direito do seu navegador e fixe a Carteira SafePal para fácil acesso."},step2:{title:"Criar ou Importar uma carteira",description:"Crie uma nova carteira ou importe uma existente."},step3:{title:"Atualize seu navegador",description:"Depois de configurar a Carteira SafePal, clique abaixo para atualizar o navegador e carregar a extensão."}},qr_code:{step1:{title:"Abra o aplicativo Carteira SafePal",description:"Coloque a Carteira SafePal na tela inicial para um acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Crie uma nova carteira ou importe uma existente."},step3:{title:"Toque em WalletConnect nas Configurações",description:"Escolha Nova Conexão, em seguida, escaneie o código QR e confirme o prompt para conectar."}}},desig:{extension:{step1:{title:"Instale a extensão Desig",description:"Recomendamos fixar Desig na sua barra de tarefas para facilitar o acesso à sua carteira."},step2:{title:"Criar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}}},subwallet:{extension:{step1:{title:"Instale a extensão SubWallet",description:"Recomendamos fixar SubWallet na sua barra de tarefas para acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase de recuperação com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}},qr_code:{step1:{title:"Abra o aplicativo SubWallet",description:"Recomendamos colocar SubWallet na tela inicial para acesso mais rápido."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Toque no botão de escanear",description:"Depois que você escanear, um prompt de conexão aparecerá para você conectar sua carteira."}}},clv:{extension:{step1:{title:"Instale a extensão CLV Wallet",description:"Recomendamos fixar CLV Wallet na sua barra de tarefas para acesso mais rápido à sua carteira."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Atualize seu navegador",description:"Depois de configurar sua carteira, clique abaixo para atualizar o navegador e carregar a extensão."}},qr_code:{step1:{title:"Abra o aplicativo da carteira CLV",description:"Recomendamos colocar a Carteira CLV na tela inicial para acesso mais rápido."},step2:{title:"Criar ou Importar uma Carteira",description:"Certifique-se de fazer backup de sua carteira usando um método seguro. Nunca compartilhe sua frase secreta com ninguém."},step3:{title:"Toque no botão de escanear",description:"Depois que você escanear, um prompt de conexão aparecerá para você conectar sua carteira."}}},okto:{qr_code:{step1:{title:"Abra o aplicativo Okto",description:"Adicione Okto à sua tela inicial para acesso rápido"},step2:{title:"Crie uma carteira MPC",description:"Crie uma conta e gere uma carteira"},step3:{title:"Toque em WalletConnect nas Configurações",description:"Toque no ícone Scan QR no canto superior direito e confirme o prompt para conectar."}}},ledger:{desktop:{step1:{title:"Abra o aplicativo Ledger Live",description:"Recomendamos colocar o Ledger Live na tela inicial para um acesso mais rápido."},step2:{title:"Configure seu Ledger",description:"Configure um novo Ledger ou conecte-se a um já existente."},step3:{title:"Conectar",description:"Depois de escanear, aparecerá um prompt de conexão para você conectar sua carteira."}},qr_code:{step1:{title:"Abra o aplicativo Ledger Live",description:"Recomendamos colocar o Ledger Live na tela inicial para um acesso mais rápido."},step2:{title:"Configure seu Ledger",description:"Você pode sincronizar com o aplicativo de desktop ou conectar seu Ledger."},step3:{title:"Escanear o código",description:"Toque em WalletConnect e em seguida mude para Scanner. Depois de escanear, aparecerá um prompt de conexão para você conectar sua carteira."}}}},pt_BR_default={connect_wallet:connect_wallet9,intro:intro9,sign_in:sign_in9,connect:connect9,connect_scan:connect_scan9,connector_group:connector_group9,get:get9,get_options:get_options9,get_mobile:get_mobile9,get_instructions:get_instructions9,chains:chains9,profile:profile9,wallet_connectors:wallet_connectors9},connect_wallet10={label:"Подключить кошелек"},intro10={title:"Что такое кошелек?",description:"Кошелек используется для отправки, получения, хранения и отображения цифровых активов. Это также новый способ входа в систему, без необходимости создания новых учетных записей и паролей на каждом сайте.",digital_asset:{title:"Дом для ваших цифровых активов",description:"Кошельки используются для отправки, получения, хранения и отображения цифровых активов, таких как Ethereum и NFT."},login:{title:"Новый способ входа в систему",description:"Вместо создания новых аккаунтов и паролей на каждом сайте, просто подключите ваш кошелек."},get:{label:"Получить кошелек"},learn_more:{label:"Узнать больше"}},sign_in10={label:"Проверьте ваш аккаунт",description:"Чтобы завершить подключение, вы должны подписать сообщение в вашем кошельке, чтобы подтвердить, что вы являетесь владельцем этого аккаунта.",message:{send:"Отправить сообщение",preparing:"Подготовка сообщения...",cancel:"Отмена",preparing_error:"Ошибка при подготовке сообщения, пожалуйста, попробуйте снова!"},signature:{waiting:"Ожидание подписи...",verifying:"Проверка подписи...",signing_error:"Ошибка при подписании сообщения, пожалуйста, попробуйте снова!",verifying_error:"Ошибка при проверке подписи, пожалуйста, попробуйте снова!",oops_error:"Ой, что-то пошло не так!"}},connect10={label:"Подключить",title:"Подключить кошелек",new_to_ethereum:{description:"Впервые столкнулись с кошельками Ethereum?",learn_more:{label:"Узнать больше"}},learn_more:{label:"Узнать больше"},recent:"Недавние",status:{opening:"Открывается %{wallet}...",connecting:"Подключение",connect_mobile:"Продолжить в %{wallet}",not_installed:"%{wallet} не установлен",not_available:"%{wallet} не доступен",confirm:"Подтвердите подключение в расширении",confirm_mobile:"Принять запрос на подключение в кошельке"},secondary_action:{get:{description:"У вас нет %{wallet}?",label:"ПОЛУЧИТЬ"},install:{label:"УСТАНОВИТЬ"},retry:{label:"ПОВТОРИТЬ"}},walletconnect:{description:{full:"Нужен официальный модальный окно WalletConnect?",compact:"Нужен модальный окно WalletConnect?"},open:{label:"ОТКРЫТЬ"}}},connect_scan10={title:"Сканировать с помощью %{wallet}",fallback_title:"Сканировать с помощью вашего телефона"},connector_group10={recommended:"Рекомендуемые",other:"Другие",popular:"Популярные",more:"Больше",others:"Другие"},get10={title:"Получить кошелек",action:{label:"ПОЛУЧИТЬ"},mobile:{description:"Мобильный кошелек"},extension:{description:"Расширение для браузера"},mobile_and_extension:{description:"Мобильный кошелек и расширение"},mobile_and_desktop:{description:"Мобильный и настольный кошелек"},looking_for:{title:"Не то, что вы ищете?",mobile:{description:"Выберите кошелек на главном экране, чтобы начать работу с другим провайдером кошелька."},desktop:{compact_description:"Выберите кошелек на главном экране, чтобы начать работу с другим провайдером кошелька.",wide_description:"Выберите кошелек слева, чтобы начать работу с другим провайдером кошелька."}}},get_options10={title:"Начните с %{wallet}",short_title:"Получить %{wallet}",mobile:{title:"%{wallet} для мобильных",description:"Используйте мобильный кошелек для исследования мира Ethereum.",download:{label:"Скачать приложение"}},extension:{title:"%{wallet} для %{browser}",description:"Доступ к вашему кошельку прямо из вашего любимого веб-браузера.",download:{label:"Добавить в %{browser}"}},desktop:{title:"%{wallet} для %{platform}",description:"Получите доступ к вашему кошельку нативно со своего мощного рабочего стола.",download:{label:"Добавить в %{platform}"}}},get_mobile10={title:"Установить %{wallet}",description:"Отсканируйте на своем телефоне для скачивания на iOS или Android",continue:{label:"Продолжить"}},get_instructions10={mobile:{connect:{label:"Подключить"},learn_more:{label:"Узнать больше"}},extension:{refresh:{label:"Обновить"},learn_more:{label:"Узнать больше"}},desktop:{connect:{label:"Подключить"},learn_more:{label:"Узнать больше"}}},chains10={title:"Переключить сети",wrong_network:"Обнаружена неверная сеть, переключитесь или отключитесь для продолжения.",confirm:"Подтвердить в кошельке",switching_not_supported:"Ваш кошелек не поддерживает переключение сетей с %{appName}. Попробуйте переключить сети из вашего кошелька.",switching_not_supported_fallback:"Ваш кошелек не поддерживает переключение сетей из этого приложения. Попробуйте переключить сети из вашего кошелька.",disconnect:"Отключить",connected:"Подключено"},profile10={disconnect:{label:"Отключить"},copy_address:{label:"Скопировать адрес",copied:"Скопировано!"},explorer:{label:"Посмотреть больше в эксплорере"},transactions:{description:"%{appName} транзакции появятся здесь...",description_fallback:"Ваши транзакции появятся здесь...",recent:{title:"Недавние транзакции"},clear:{label:"Очистить все"}}},wallet_connectors10={argent:{qr_code:{step1:{description:"Добавьте Argent на домашний экран для более быстрого доступа к вашему кошельку.",title:"Откройте приложение Argent"},step2:{description:"Создайте кошелек и имя пользователя или импортируйте существующий кошелек.",title:"Создать или Импортировать кошелек"},step3:{description:"После сканирования появится запрос на подключение для подключения вашего кошелька.",title:"Нажмите кнопку Сканировать QR"}}},bifrost:{qr_code:{step1:{description:"Мы рекомендуем добавить кошелек Bifrost на ваш начальный экран для более быстрого доступа.",title:"Откройте приложение Bifrost Wallet"},step2:{description:"Создайте или импортируйте кошелек, используя вашу фразу восстановления.",title:"Создать или импортировать кошелек"},step3:{description:"После сканирования появится запрос на подключение вашего кошелька.",title:"Нажмите кнопку сканирования"}}},bitget:{qr_code:{step1:{description:"Мы рекомендуем добавить Bitget Wallet на ваш экран для более быстрого доступа.",title:"Откройте приложение Bitget Wallet"},step2:{description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создать или импортировать кошелек"},step3:{description:"После сканирования появится запрос на подключение вашего кошелька.",title:"Нажмите кнопку сканирования"}},extension:{step1:{description:"Мы рекомендуем закрепить Bitget Wallet на панели задач для более быстрого доступа к вашему кошельку.",title:"Установите расширение Bitget Wallet"},step2:{description:"Обязательно сохраните резервную копию вашего кошелька с помощью надёжного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создать или Импортировать кошелек"},step3:{description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение.",title:"Обновите ваш браузер"}}},bitski:{extension:{step1:{description:"Мы рекомендуем прикрепить Bitski к вашей панели задач для более быстрого доступа к вашему кошельку.",title:"Установите расширение Bitski"},step2:{description:"Обязательно сохраните резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создать кошелек или Импортировать кошелек"},step3:{description:"После того как вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение.",title:"Обновите ваш браузер"}}},coin98:{qr_code:{step1:{description:"Мы рекомендуем добавить Coin98 Wallet на ваш главный экран для более быстрого доступа к вашему кошельку.",title:"Откройте приложение Coin98 Wallet"},step2:{description:"Вы можете легко сделать резервную копию вашего кошелька, используя нашу функцию резервного копирования на вашем телефоне.",title:"Создать или импортировать кошелек"},step3:{description:"После сканирования для вас появится запрос на подключение, чтобы подключить ваш кошелек.",title:"Нажмите кнопку WalletConnect"}},extension:{step1:{description:"Нажмите в верхнем правом углу вашего браузера и закрепите Coin98 Wallet для удобного доступа.",title:"Установите расширение Coin98 Wallet"},step2:{description:"Создайте новый кошелек или импортируйте существующий.",title:"Создайте или импортируйте кошелек"},step3:{description:"После того как вы настроите Кошелек Coin98, нажмите ниже, чтобы обновить браузер и загрузить расширение.",title:"Обновите ваш браузер"}}},coinbase:{qr_code:{step1:{description:"Мы рекомендуем добавить Coinbase Wallet на ваш экран начала для более быстрого доступа.",title:"Откройте приложение Coinbase Wallet"},step2:{description:"Вы легко можете сделать резервную копию вашего кошелька, используя функцию облачного резервного копирования.",title:"Создать или Импортировать кошелек"},step3:{description:"После сканирования появится запрос на подключение для подключения вашего кошелька.",title:"Нажмите кнопку сканирования"}},extension:{step1:{description:"Мы рекомендуем закрепить Coinbase Wallet на вашей панели задач для более быстрого доступа к вашему кошельку.",title:"Установите расширение Coinbase Wallet"},step2:{description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создать или Импортировать кошелек"},step3:{description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение.",title:"Обновите ваш браузер"}}},core:{qr_code:{step1:{description:"Мы рекомендуем добавить Core на ваш экран быстрого доступа для ускоренного доступа к вашему кошельку.",title:"Открыть приложение Core"},step2:{description:"Вы можете легко создать резервную копию вашего кошелька, используя нашу функцию резервного копирования на вашем телефоне.",title:"Создать или Импортировать кошелек"},step3:{description:"После сканирования появится запрос на подключение, чтобы вы могли подключить ваш кошелек.",title:"Нажмите кнопку WalletConnect"}},extension:{step1:{description:"Мы рекомендуем закрепить Core на панели задач для более быстрого доступа к вашему кошельку.",title:"Установите расширение Core"},step2:{description:"Обязательно создайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь вашей секретной фразой с кем-либо.",title:"Создать или Импортировать кошелек"},step3:{description:"Как только вы настроите ваш кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение.",title:"Обновите ваш браузер"}}},fox:{qr_code:{step1:{description:"Мы рекомендуем поместить FoxWallet на ваш экран начального экрана для более быстрого доступа.",title:"Откройте приложение FoxWallet"},step2:{description:"Обязательно сделайте резервное копирование вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создать или Импортировать кошелек"},step3:{description:"После сканирования появится приглашение для подключения вашего кошелька.",title:"Нажмите кнопку сканирования"}}},frontier:{qr_code:{step1:{description:"Мы рекомендуем установить Frontier Wallet на экран вашего смартфона для более быстрого доступа.",title:"Откройте приложение Frontier Wallet"},step2:{description:"Обязательно сделайте резервное копирование вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создать или Импортировать кошелек"},step3:{description:"После сканирования появится запрос на подключение кошелька.",title:"Нажмите кнопку сканирования"}},extension:{step1:{description:"Мы рекомендуем прикрепить кошелек Frontier к панели задач для более быстрого доступа к вашему кошельку.",title:"Установите расширение кошелька Frontier"},step2:{description:"Обязательно сделайте резервную копию своего кошелька с использованием надежного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создать или импортировать кошелек"},step3:{description:"После настройки вашего кошелька нажмите ниже, чтобы обновить браузер и загрузить расширение.",title:"Обновите ваш браузер"}}},im_token:{qr_code:{step1:{title:"Откройте приложение imToken",description:"Поместите приложение imToken на главный экран для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или импортировать кошелек",description:"Создайте новый кошелек или импортируйте существующий."},step3:{title:"Нажмите на иконку сканера в верхнем правом углу",description:"Выберите Новое соединение, затем отсканируйте QR-код и подтвердите запрос на соединение."}}},metamask:{qr_code:{step1:{title:"Откройте приложение MetaMask",description:"Мы рекомендуем поместить MetaMask на главный экран для быстрого доступа."},step2:{title:"Создайте или импортируйте кошелек",description:"Обязательно сохраните копию своего кошелька с помощью надежного метода. Никогда не делитесь своей секретной фразой с кем бы то ни было."},step3:{title:"Нажмите кнопку сканирования",description:"После сканирования появится запрос на соединение вашего кошелька."}},extension:{step1:{title:"Установите расширение MetaMask",description:"Мы рекомендуем закрепить MetaMask на вашей панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или импортировать кошелек",description:"Обязательно сохраните резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После настройки вашего кошелька, щелкните ниже, чтобы обновить браузер и загрузить расширение."}}},okx:{qr_code:{step1:{title:"Откройте приложение кошелька OKX",description:"Мы рекомендуем разместить кошелек OKX на вашем главном экране для более быстрого доступа."},step2:{title:"Создать или импортировать кошелек",description:"Обязательно сохраните резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Нажмите на кнопку сканирования",description:"После сканирования появится запрос на подключение вашего кошелька."}},extension:{step1:{title:"Установите расширение кошелька OKX",description:"Мы рекомендуем закрепить OKX Wallet на панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать кошелек или импортировать кошелек",description:"Обязательно сохраните резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"Как только вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},omni:{qr_code:{step1:{title:"Откройте приложение Omni",description:"Добавьте Omni на свой домашний экран для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или импортировать кошелек",description:"Создайте новый кошелек или импортируйте существующий."},step3:{title:"Нажмите на иконку QR и отсканируйте",description:"Нажмите на иконку QR на вашем домашнем экране, отсканируйте код и подтвердите подсказку, чтобы подключиться."}}},token_pocket:{qr_code:{step1:{title:"Откройте приложение TokenPocket",description:"Мы рекомендуем разместить TokenPocket на вашем домашнем экране для быстрого доступа."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька при помощи безопасного метода. Никогда не делитесь своим секретным кодом с кем-либо."},step3:{title:"Нажмите на кнопку сканирования",description:"После сканирования появится подсказка о подключении для подключения вашего кошелька."}},extension:{step1:{title:"Установите расширение TokenPocket",description:"Мы рекомендуем закрепить TokenPocket на вашей панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно создайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После того как вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},trust:{qr_code:{step1:{title:"Откройте приложение Trust Wallet",description:"Разместите Trust Wallet на вашем домашнем экране для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или Импортировать кошелек",description:"Создайте новый кошелек или импортируйте существующий."},step3:{title:"Нажмите WalletConnect в настройках",description:"Выберите Новое соединение, затем сканируйте QR-код и подтвердите запрос на подключение."}},extension:{step1:{title:"Установите расширение Trust Wallet",description:"Кликните в правом верхнем углу вашего браузера и закрепите Trust Wallet для легкого доступа."},step2:{title:"Создайте или импортируйте кошелек",description:"Создайте новый кошелек или импортируйте существующий."},step3:{title:"Обновите ваш браузер",description:"После настройки Trust Wallet, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},uniswap:{qr_code:{step1:{title:"Откройте приложение Uniswap",description:"Добавьте кошелек Uniswap на главный экран для быстрого доступа к вашему кошельку."},step2:{title:"Создать или импортировать кошелек",description:"Создайте новый кошелек или импортируйте существующий."},step3:{title:"Нажмите на иконку QR и отсканируйте",description:"Нажмите на иконку QR на главном экране, отсканируйте код и подтвердите запрос на подключение."}}},zerion:{qr_code:{step1:{title:"Откройте приложение Zerion",description:"Мы рекомендуем разместить Zerion на главном экране для более быстрого доступа."},step2:{title:"Создать или импортировать кошелек",description:"Обязательно создайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Нажмите кнопку сканирования",description:"После сканирования вам будет предложено подключить ваш кошелек."}},extension:{step1:{title:"Установите расширение Zerion",description:"Мы рекомендуем прикрепить Zerion к вашей панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создайте или импортируйте кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делясь своим секретным паролем с кем-либо."},step3:{title:"Обновите ваш браузер",description:"Как только вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},rainbow:{qr_code:{step1:{title:"Откройте приложение Rainbow",description:"Мы рекомендуем поместить Rainbow на ваш экран главного меню для более быстрого доступа к вашему кошельку."},step2:{title:"Создайте или импортируйте кошелек",description:"Вы можете легко сделать резервную копию вашего кошелька с помощью нашей функции резервного копирования на вашем телефоне."},step3:{title:"Нажмите кнопку сканировать",description:"После сканирования появится запрос на подключение вашего кошелька."}}},enkrypt:{extension:{step1:{description:"Мы рекомендуем закрепить Enkrypt Wallet на панели задач для более быстрого доступа к вашему кошельку.",title:"Установите расширение Enkrypt Wallet"},step2:{description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создать или импортировать кошелек"},step3:{description:"Как только вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение.",title:"Обновите ваш браузер"}}},frame:{extension:{step1:{description:"Мы рекомендуем закрепить Frame на панели задач для более быстрого доступа к вашему кошельку.",title:"Установите Frame и дополнительное расширение"},step2:{description:"Обязательно создайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо.",title:"Создайте или Импортируйте кошелек"},step3:{description:"После того как вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение.",title:"Обновите ваш браузер"}}},one_key:{extension:{step1:{title:"Установите расширение OneKey Wallet",description:"Мы рекомендуем закрепить OneKey Wallet на панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создайте или Импортируйте кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После настройки кошелька нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},phantom:{extension:{step1:{title:"Установите расширение Phantom",description:"Мы рекомендуем закрепить Phantom на панели задач для более удобного доступа к вашему кошельку."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой восстановления с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После того как вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},rabby:{extension:{step1:{title:"Установите расширение Rabby",description:"Мы рекомендуем закрепить Rabby на панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем бы то ни было."},step3:{title:"Обновите ваш браузер",description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},safeheron:{extension:{step1:{title:"Установите основное расширение",description:"Мы рекомендуем закрепить SafeHeron на панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После того, как вы настроите ваш кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},taho:{extension:{step1:{title:"Установите расширение Taho",description:"Мы рекомендуем закрепить Taho на вашей панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},talisman:{extension:{step1:{title:"Установите расширение Talisman",description:"Мы рекомендуем закрепить Talisman на вашей панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создайте или импортируйте кошелек Ethereum",description:"Обязательно сделайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь вашей фразой восстановления с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},xdefi:{extension:{step1:{title:"Установите расширение кошелька XDEFI",description:"Мы рекомендуем закрепить XDEFI Wallet на панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно создайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После того, как вы настроите свой кошелек, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},zeal:{extension:{step1:{title:"Установите расширение Zeal",description:"Мы рекомендуем закрепить Zeal на панели задач для быстрого доступа к вашему кошельку."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},safepal:{extension:{step1:{title:"Установите расширение SafePal Wallet",description:"Кликните в верхнем правом углу вашего браузера и закрепите SafePal Wallet для удобного доступа."},step2:{title:"Создайте или импортируйте кошелек",description:"Создайте новый кошелек или импортируйте существующий."},step3:{title:"Обновите ваш браузер",description:"После настройки кошелька SafePal нажмите ниже, чтобы обновить браузер и загрузить расширение."}},qr_code:{step1:{title:"Откройте приложение SafePal Wallet",description:"Разместите SafePal Wallet на главном экране для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или Импортировать кошелек",description:"Создайте новый кошелек или импортируйте существующий."},step3:{title:"Нажмите WalletConnect в настройках",description:"Выберите Новое соединение, затем отсканируйте QR-код и подтвердите запрос на соединение."}}},desig:{extension:{step1:{title:"Установите расширение Desig",description:"Мы рекомендуем закрепить Desig на вашей панели задач для более удобного доступа к вашему кошельку."},step2:{title:"Создать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение."}}},subwallet:{extension:{step1:{title:"Установите расширение SubWallet",description:"Мы рекомендуем закрепить SubWallet на вашей панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с помощью безопасного метода. Никогда не делитесь вашей фразой восстановления с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение."}},qr_code:{step1:{title:"Откройте приложение SubWallet",description:"Мы рекомендуем добавить SubWallet на ваш экран начальной страницы для более быстрого доступа."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Нажмите кнопку сканирования",description:"После сканирования появится запрос на подключение для подключения вашего кошелька."}}},clv:{extension:{step1:{title:"Установите расширение CLV Wallet",description:"Мы рекомендуем закрепить CLV Wallet на вашей панели задач для более быстрого доступа к вашему кошельку."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Обновите ваш браузер",description:"После настройки вашего кошелька, нажмите ниже, чтобы обновить браузер и загрузить расширение."}},qr_code:{step1:{title:"Откройте приложение CLV Wallet",description:"Мы рекомендуем поместить CLV Wallet на ваш экран домой для более быстрого доступа."},step2:{title:"Создать или Импортировать кошелек",description:"Обязательно сделайте резервную копию вашего кошелька с использованием безопасного метода. Никогда не делитесь своей секретной фразой с кем-либо."},step3:{title:"Нажмите кнопку сканирования",description:"После сканирования появится запрос на подключение для подключения вашего кошелька."}}},okto:{qr_code:{step1:{title:"Откройте приложение Okto",description:"Добавьте Okto на ваш экран домой для быстрого доступа"},step2:{title:"Создать кошелек MPC",description:"Создайте учетную запись и сгенерируйте кошелек"},step3:{title:"Нажмите WalletConnect в настройках",description:"Коснитесь значка Scan QR в верхнем правом углу и подтвердите запрос на подключение."}}},ledger:{desktop:{step1:{title:"Откройте приложение Ledger Live",description:"Мы рекомендуем поместить Ledger Live на ваш экран домой для более быстрого доступа."},step2:{title:"Настройте ваш Ledger",description:"Настройте новый Ledger или подключитесь к существующему."},step3:{title:"Подключить",description:"После сканирования вам будет предложено подключить ваш кошелек."}},qr_code:{step1:{title:"Откройте приложение Ledger Live",description:"Мы рекомендуем поместить Ledger Live на ваш экран домой для более быстрого доступа."},step2:{title:"Настройте ваш Ledger",description:"Вы можете синхронизировать с настольным приложением или подключить свой Ledger."},step3:{title:"Сканировать код",description:"Нажмите WalletConnect, затем переключитесь на Scanner. После сканирования вам будет предложено подключить ваш кошелек."}}}},ru_RU_default={connect_wallet:connect_wallet10,intro:intro10,sign_in:sign_in10,connect:connect10,connect_scan:connect_scan10,connector_group:connector_group10,get:get10,get_options:get_options10,get_mobile:get_mobile10,get_instructions:get_instructions10,chains:chains10,profile:profile10,wallet_connectors:wallet_connectors10},connect_wallet11={label:"เชื่อมต่อกระเป๋าเงิน"},intro11={title:"อะไรคือกระเป๋าเงิน?",description:"กระเป๋าเงินใช้ในการส่ง, รับ, เก็บ, และแสดงสินทรัพย์ดิจิทัล มันยังเป็นวิธีใหม่ในการเข้าสู่ระบบ, โดยไม่จำเป็นต้องสร้างบัญชีและรหัสผ่านใหม่ในทุกเว็บไซต์.",digital_asset:{title:"บ้านสำหรับสินทรัพย์ดิจิทัลของคุณ",description:"กระเป๋าเงินถูกใช้เพื่อส่ง, รับ, เก็บ, แสดงสินทรัพย์ดิจิทัล เช่น Ethereum และ NFTs."},login:{title:"วิธีใหม่ในการเข้าสู่ระบบ",description:"แทนที่จะสร้างบัญชีและรหัสผ่านใหม่ในทุกเว็บไซต์, แค่เชื่อมต่อกระเป๋าของคุณ."},get:{label:"รับกระเป๋าเงิน"},learn_more:{label:"เรียนรู้เพิ่มเติม"}},sign_in11={label:"ยืนยันบัญชีของคุณ",description:"เพื่อการเชื่อมต่อที่สมบูรณ์, คุณต้องลงนามในข้อความในกระเป๋าเงินของคุณเพื่อยืนยันว่าคุณเป็นเจ้าของบัญชีนี้",message:{send:"ส่งข้อความ",preparing:"กำลังเตรียมข้อความ...",cancel:"ยกเลิก",preparing_error:"เกิดข้อผิดพลาดในการเตรียมข้อความ โปรดลองใหม่!"},signature:{waiting:"รอการลงนาม...",verifying:"กำลังตรวจสอบลายเซ็น...",signing_error:"เกิดข้อผิดพลาดในการลงนามในข้อความ โปรดลองใหม่!",verifying_error:"เกิดข้อผิดพลาดในการตรวจสอบลายเซ็น โปรดลองใหม่!",oops_error:"อ๊ะ, เกิดข้อผิดพลาดบางอย่าง!"}},connect11={label:"เชื่อมต่อ",title:"เชื่อมต่อกระเป๋าเงิน",new_to_ethereum:{description:"ใหม่กับกระเป๋า Ethereum หรือไม่?",learn_more:{label:"เรียนรู้เพิ่มเติม"}},learn_more:{label:"เรียนรู้เพิ่มเติม"},recent:"ล่าสุด",status:{opening:"กำลังเปิด %{wallet}...",connecting:"กำลังเชื่อมต่อ",connect_mobile:"ดำเนินการต่อใน %{wallet}",not_installed:"%{wallet} ไม่ได้ติดตั้ง",not_available:"%{wallet} ไม่สามารถใช้ได้",confirm:"ยืนยันการเชื่อมต่อในส่วนขยาย",confirm_mobile:"ยอมรับคำขอเชื่อมต่อในกระเป๋าเงิน"},secondary_action:{get:{description:"ไม่มี %{wallet}?",label:"รับ"},install:{label:"ติดตั้ง"},retry:{label:"ลองใหม่"}},walletconnect:{description:{full:"ต้องการ modal อย่างเป็นทางการจาก WalletConnect หรือไม่?",compact:"ต้องการ modal จาก WalletConnect หรือไม่?"},open:{label:"เปิด"}}},connect_scan11={title:"สแกนด้วย %{wallet}",fallback_title:"สแกนด้วยโทรศัพท์ของคุณ"},connector_group11={recommended:"แนะนำ",other:"อื่น ๆ",popular:"ยอดนิยม",more:"เพิ่มเติม",others:"อื่น ๆ"},get11={title:"รับ Wallet",action:{label:"รับ"},mobile:{description:"Wallet บนมือถือ"},extension:{description:"ส่วนขยายบราวเซอร์"},mobile_and_extension:{description:"กระเป๋าเงินมือถือและส่วนขยาย"},mobile_and_desktop:{description:"กระเป๋าเงินบนมือถือและคอมพิวเตอร์"},looking_for:{title:"ไม่ใช่สิ่งที่คุณกำลังหาหรือไม่?",mobile:{description:"เลือกกระเป๋าเงินบนหน้าจอหลักเพื่อเริ่มต้นใช้งานกับผู้ให้บริการกระเป๋าเงินที่แตกต่างกัน"},desktop:{compact_description:"เลือกกระเป๋าเงินบนหน้าจอหลักเพื่อเริ่มต้นใช้งานกับผู้ให้บริการกระเป๋าเงินที่แตกต่างกัน",wide_description:"เลือกกระเป๋าเงินที่อยู่ทางซ้ายเพื่อเริ่มต้นใช้งานกับผู้ให้บริการกระเป๋าเงินที่แตกต่างกัน"}}},get_options11={title:"เริ่มต้นกับ %{wallet}",short_title:"รับ %{wallet}",mobile:{title:"%{wallet} สำหรับมือถือ",description:"ใช้กระเป๋าระบบมือถือในการสำรวจโลกของ Ethereum.",download:{label:"รับแอป"}},extension:{title:"%{wallet} สำหรับ %{browser}",description:"เข้าถึงกระเป๋าเงินของคุณได้โดยตรงจากบราวเซอร์ที่คุณชื่นชอบ.",download:{label:"เพิ่มไปยัง %{browser}"}},desktop:{title:"%{wallet} สำหรับ %{platform}",description:"เข้าถึงกระเป๋าเงินของคุณโดยตรงจากคอมพิวเตอร์ที่มีประสิทธิภาพของคุณ",download:{label:"เพิ่มไปยัง %{platform}"}}},get_mobile11={title:"ติดตั้ง %{wallet}",description:"สแกนด้วยโทรศัพท์ของคุณเพื่อดาวน์โหลดบน iOS หรือ Android",continue:{label:"ดำเนินการต่อ"}},get_instructions11={mobile:{connect:{label:"เชื่อมต่อ"},learn_more:{label:"เรียนรู้เพิ่มเติม"}},extension:{refresh:{label:"รีเฟรช"},learn_more:{label:"เรียนรู้เพิ่มเติม"}},desktop:{connect:{label:"เชื่อมต่อ"},learn_more:{label:"เรียนรู้เพิ่มเติม"}}},chains11={title:"เปลี่ยนเครือข่าย",wrong_network:"ตรวจสอบพบเครือข่ายที่ไม่ถูกต้อง สลับหรือตัดการเชื่อมต่อเพื่อดำเนินการต่อ.",confirm:"ยืนยันใน Wallet",switching_not_supported:"กระเป๋าสตางค์ของคุณไม่สนับสนุนการเปลี่ยนเครือข่ายจาก %{appName}ลองเปลี่ยนเครือข่ายจากภายในกระเป๋าสตางค์ของคุณแทน",switching_not_supported_fallback:"กระเป๋าสตางค์ของคุณไม่สนับสนุนการสลับเครือข่ายจากแอปนี้ ลองสลับเครือข่ายจากภายในกระเป๋าสตางค์ของคุณแทน",disconnect:"ตัดการเชื่อมต่อ",connected:"เชื่อมต่อแล้ว"},profile11={disconnect:{label:"ตัดการเชื่อมต่อ"},copy_address:{label:"คัดลอกที่อยู่",copied:"คัดลอกแล้ว!"},explorer:{label:"ดูเพิ่มเติมบน explorer"},transactions:{description:"%{appName} รายการจะปรากฎที่นี่...",description_fallback:"การทำธุรกรรมของคุณจะปรากฎที่นี่...",recent:{title:"ธุรกรรมล่าสุด"},clear:{label:"ลบทั้งหมด"}}},wallet_connectors11={argent:{qr_code:{step1:{description:"วาง Argent บนหน้าจอหลักของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น",title:"เปิดแอป Argent"},step2:{description:"สร้างกระเป๋าเงินและชื่อผู้ใช้หรือนำเข้ากระเป๋าเงินที่มีอยู่แล้ว",title:"สร้างหรือนำเข้า Wallet"},step3:{description:"หลังจากคุณสแกน จะปรากฏหน้าต่างเชื่อมต่อให้คุณเชื่อมต่อกระเป๋าเงินของคุณ",title:"แตะที่คุ่มุ่งสแกน QR"}}},bifrost:{qr_code:{step1:{description:"เราขอแนะนำให้คุณวาง Bifrost Wallet บนหน้าจอหลักของคุณเพื่อเข้าถึงได้เร็วขึ้น",title:"เปิดแอพฯ Bifrost Wallet"},step2:{description:"สร้างหรือนำเข้ากระเป๋าเงินด้วย recovery phrase ของคุณ",title:"สร้างหรือนำเข้ากระเป๋าเงิน"},step3:{description:"หลังจากที่คุณสแกนแล้วยินยันการเชื่อมต่อกับกระเป๋าเงินของคุณ",title:"แตะปุ่มสแกน"}}},bitget:{qr_code:{step1:{description:"เราขอแนะนำให้วาง Bitget Wallet บนหน้าจอหน้าแรกของคุณเพื่อการเข้าถึงที่รวดเร็วขึ้น.",title:"เปิดแอพ Bitget Wallet"},step2:{description:"ตรวจสอบการสำรองข้อมูลกระเป๋าสตางค์ของคุณให้แน่นอนโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใครเป็นอันขาด.",title:"สร้างหรือนำเข้า Wallet"},step3:{description:"หลังจากที่คุณสแกน จะมีข้อความขอเชื่อมต่อที่จะปรากฏขึ้นให้คุณเชื่อมต่อกระเป๋าสตางค์ของคุณ.",title:"แตะปุ่มสแกน"}},extension:{step1:{description:"เราแนะนำให้คุณปัก Bitget Wallet ไว้บนแถบงานของคุณเพื่อเข้าถึงกระเป๋าสตางค์ได้เร็วขึ้น",title:"ติดตั้งส่วนเสริม Bitget Wallet"},step2:{description:"โปรดแน่ใจว่าคุณได้สำรองข้อมูลกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับบุคคลใดๆ",title:"สร้างหรือนำเข้า Wallet"},step3:{description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้วคลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนเสริม",title:"รีเฟรชเบราว์เซอร์ของคุณ"}}},bitski:{extension:{step1:{description:"เราแนะนำให้ทำปัก Bitski ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าเงินได้โดยไม่ต้องรอ",title:"ติดตั้งส่วนขยาย Bitski"},step2:{description:"ควรสำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยคำลับของคุณให้ใครทราบ",title:"สร้างหรือนำเข้ากระเป๋าเงิน"},step3:{description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย",title:"รีเฟรชเบราว์เซอร์ของคุณ"}}},coin98:{qr_code:{step1:{description:"เราขอแนะนำให้คุณวาง Coin98 Wallet บนหน้าจอหลักของคุณ เพื่อให้เข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น.",title:"เปิดแอพ Coin98 Wallet"},step2:{description:"คุณสามารถสำรองข้อมูลกระเป๋าเงินของคุณได้ง่ายๆ ด้วยฟีเจอร์สำรองข้อมูลบนโทรศัพท์ของคุณ.",title:"สร้างหรือนำเข้ากระเป๋าเงิน"},step3:{description:"หลังจากคุณสแกน จะมีเตือนการเชื่อมต่อที่ปรากฏขึ้นให้คุณเชื่อมต่อกระเป๋าเงินของคุณ.",title:"แตะที่ปุ่ม WalletConnect"}},extension:{step1:{description:"คลิกที่ด้านบนขวาของเบราว์เซอร์ของคุณและปัก Coin98 Wallet ไว้เพื่อให้เข้าถึงได้ง่าย.",title:"ติดตั้งส่วนขยาย Coin98 Wallet"},step2:{description:"สร้างกระเป๋าเงินใหม่หรือนำเข้าที่มีอยู่แล้ว.",title:"สร้างหรือนำเข้ากระเป๋าเงิน"},step3:{description:"เมื่อคุณตั้งค่า Coin98 Wallet แล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยายขึ้นมา.",title:"รีเฟรชเบราว์เซอร์ของคุณ"}}},coinbase:{qr_code:{step1:{description:"เราแนะนำให้วาง Coinbase Wallet ไว้ที่หน้าจอหลักของคุณเพื่อให้เข้าถึงได้เร็วขึ้น.",title:"เปิดแอป Coinbase Wallet"},step2:{description:"คุณสามารถสำรองข้อมูลกระเป๋าสตางค์ของคุณได้ง่ายๆ โดยใช้ฟีเจอร์การสำรองข้อมูลด้วยคลาวด์",title:"สร้างหรือนำเข้ากระเป๋าสตางค์"},step3:{description:"หลังจากที่คุณสแกนแล้ว จะมีการแสดงขอ้มูลเพื่อให้คุณเชื่อมต่อกระเป๋าสตางค์ของคุณ",title:"แตะที่ปุ่มสแกน"}},extension:{step1:{description:"เราแนะนำให้คุณยัด Coinbase Wallet ไว้ที่แถบงานของคุณเพื่อให้สามารถเข้าถึงกระเป๋าสตางค์ของคุณได้เร็วขึ้น",title:"ติดตั้งส่วนขยาย Coinbase Wallet"},step2:{description:"ตรวจสอบให้แน่ใจว่าคุณได้สำรองข้อมูลกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยประโยคลับของคุณให้กับใครเลย",title:"สร้างหรือนำเข้ากระเป๋าเงิน"},step3:{description:"เมื่อคุณได้ตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อเรียกดูเบราว์เซอร์ใหม่และโหลดส่วนขยาย",title:"รีเฟรชเบราว์เซอร์ของคุณ"}}},core:{qr_code:{step1:{description:"เราแนะนำให้คุณวาง Core ลงสนามหลักเพื่อให้เข้าถึงกระเป๋าเงินได้เร็วขึ้น",title:"เปิดแอปเครื่องมือช่วยอีเกิร์น"},step2:{description:"คุณสามารถสำรองกระเป๋าเงินของคุณได้ง่ายๆ โดยใช้ฟีเจอร์สำรองของเราบนโทรศัพท์ของคุณ",title:"สร้างหรือนำเข้ากระเป๋าเงิน"},step3:{description:"หลังจากที่คุณสแกนแล้ว จะมีการแจ้งเตือนเพื่อให้คุณเชื่อมต่อกับกระเป๋าสตางค์ของคุณ",title:"แตะปุ่ม WalletConnect"}},extension:{step1:{description:"เราขอแนะนำให้คุณปัก Core ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าสตางค์ของคุณได้อย่างรวดเร็ว",title:"ติดตั้งส่วนขยาย Core"},step2:{description:"โปรดแน่ใจว่าคุณได้สำรองกระเป๋าสตางค์ของคุณใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใคร",title:"สร้างหรือนำเข้า Wallet"},step3:{description:"เมื่อคุณตั้งค่ากระเป๋าสตางค์ของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย",title:"รีเฟรชเบราว์เซอร์ของคุณ"}}},fox:{qr_code:{step1:{description:"เราขอแนะนำให้คุณวาง FoxWallet บนหน้าจอหลักเพื่อให้เข้าถึงได้เร็วขึ้น",title:"เปิดแอป FoxWallet"},step2:{description:"ตรวจสอบที่จะสำรองข้อมูลกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย จงอย่าเปิดเผยประโยคลับลับของคุณให้ผู้อื่นรู้",title:"สร้างหรือนำเข้ากระเป๋าเงิน"},step3:{description:"หลังจากที่คุณสแกน จะมีการเชื่อมต่อที่แสดงให้คุณเชื่อมต่อกระเป๋าเงินของคุณ",title:"แตะปุ่มสแกน"}}},frontier:{qr_code:{step1:{description:"เราขอแนะนำให้คุณวาง Frontier Wallet บนหน้าจอหลักเพื่อให้เข้าถึงได้เร็วขึ้น",title:"เปิดแอป Frontier Wallet"},step2:{description:"ตรวจสอบให้แน่ใจว่าคุณได้สำรองข้อมูลกระเป๋าสตางค์ของคุณโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใคร",title:"สร้างหรือนำเข้ากระเป๋าสตางค์"},step3:{description:"หลังจากที่คุณสแกนแล้ว จะมีการแสดงข้อมูลเพื่อให้คุณเชื่อมต่อกับกระเป๋าสตางค์ของคุณ",title:"แตะปุ่มสแกน"}},extension:{step1:{description:"เราแนะนำให้คุณปักหมุด Frontier Wallet ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าสตางค์ของคุณได้ง่ายขึ้น",title:"ติดตั้งส่วนเสริม Frontier Wallet"},step2:{description:"ตรวจสอบให้แน่ใจว่าคุณได้สำรองข้อมูลกระเป๋าสตางค์ของคุณโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใคร",title:"สร้างหรือนำเข้ากระเป๋าสตางค์"},step3:{description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย",title:"รีเฟรชเบราว์เซอร์ของคุณ"}}},im_token:{qr_code:{step1:{title:"เปิดแอพ imToken",description:"ใส่แอพ imToken ไว้ที่หน้าจอหลักเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น."},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"สร้างกระเป๋าเงินใหม่หรือนำเข้ากระเป๋าเงินที่มีอยู่แล้ว"},step3:{title:"แตะไอคอนสแกนเนอร์ในมุมบนขวา",description:"เลือก New Connection, แล้วสแกน QR code และยืนยันการรับรองสำหรับการเชื่อมต่อ"}}},metamask:{qr_code:{step1:{title:"เปิดแอป MetaMask",description:"เราขอแนะนำให้วาง MetaMask บนหน้าจอหลักของคุณเพื่อเข้าถึงได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"ตรวจสอบว่าได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยวลีลับของคุณให้กับใคร"},step3:{title:"แตะที่ปุ่มสแกน",description:"หลังจากการสแกน, จะปรากฏข้อความเชื่อมต่อสำหรับคุณเพื่อเชื่อมต่อกับกระเป๋าเงินของคุณ"}},extension:{step1:{title:"ติดตั้งส่วนขยาย MetaMask",description:"เราขอแนะนำให้คุณปัก MetaMask ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้รวดเร็ว"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"อย่างแน่นอนให้สำรองข้อมูลกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าแชร์ประโยคลับของคุณกับใครเลย"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}}},okx:{qr_code:{step1:{title:"เปิดแอพ OKX Wallet",description:"เราแนะนำให้วาง OKX Wallet บนหน้าจอหลักของคุณเพื่อให้เข้าถึงได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"จงแน่ใจว่าคุณได้สำรองข้อมูล wallet ของคุณด้วยวิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณให้คนอื่น"},step3:{title:"แตะปุ่มสแกน",description:"หลังจากคุณสแกน จะมีการแสดงข้อมูลเพื่อให้คุณเชื่อมต่อ wallet ของคุณ"}},extension:{step1:{title:"ติดตั้งส่วนเสริม OKX Wallet",description:"เราแนะนำให้ยึด OKX Wallet ไว้ที่แถบงานของคุณเพื่อให้เข้าถึง wallet ของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"โปรดแน่ใจว่าคุณได้สำรองกระเป๋าสตางค์ของคุณด้วยวิธีที่ปลอดภัย อย่าเปิดเผยประโยคลับของคุณให้ใครทราบ"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าสตางค์ของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}}},omni:{qr_code:{step1:{title:"เปิดแอป Omni",description:"เพิ่ม Omni ไปยังหน้าจอแรกเพื่อเข้าถึงกระเป๋าสตางค์ของคุณได้รวดเร็วขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าสตางค์",description:"สร้างกระเป๋าสตางค์ใหม่หรือนำเข้ากระเป๋าสตางค์ที่มีอยู่"},step3:{title:"แตะที่ไอคอน QR แล้วสแกน",description:"แตะที่ไอคอน QR บนหน้าจอหน้าแรกของคุณ, สแกนรหัสและยืนยันการเตือนเพื่อเชื่อมต่อ."}}},token_pocket:{qr_code:{step1:{title:"เปิดแอป TokenPocket",description:"เราแนะนำให้วาง TokenPocket บนหน้าจอหน้าแรกของคุณเพื่อเข้าถึงได้เร็วขึ้น."},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"ตรวจสอบว่าได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยวลีลับของคุณให้ผู้อื่นทราบในทางใดทางหนึ่ง."},step3:{title:"แตะปุ่มสแกน",description:"หลังจากที่คุณสแกนแล้ว จะมีการเรียกให้เชื่อมต่อกับกระเป๋าเงินของคุณ"}},extension:{step1:{title:"ติดตั้งส่วนขยาย TokenPocket",description:"เราขอแนะนำให้คุณปัก TokenPocket ไว้ที่แถบงานเพื่อทำให้สามารถเข้าถึงกระเป๋าเงินของคุณได้ง่ายขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"ตรวจสอบให้แน่ใจว่าคุณได้สำรองข้อมูลกระเป๋าเงินของคุณด้วยวิธีที่ปลอดภัย อย่าทำการแชร์ประโยคลับด้วยความลับของคุณกับใคร"},step3:{title:"รีเฟรชบราวเซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชบราวเซอร์และโหลดส่วนขยาย"}}},trust:{qr_code:{step1:{title:"เปิดแอพ Trust Wallet",description:"วาง Trust Wallet ที่หน้าจอหลักของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้รวดเร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"สร้าง wallet ใหม่หรือนำเข้า wallet ที่มีอยู่แล้ว"},step3:{title:"แตะ WalletConnect ในการตั้งค่า",description:"เลือก New Connection จากนั้นสแกน QR code และยืนยันการแจ้งเตือนเพื่อเชื่อมต่อ"}},extension:{step1:{title:"ติดตั้งส่วนขยาย Trust Wallet",description:"คลิกที่มุมบนขวาของเบราว์เซอร์ของคุณและปัก Trust Wallet เพื่อเข้าถึงได้ง่าย"},step2:{title:"สร้างหรือนำเข้า wallet",description:"สร้าง wallet ใหม่หรือนำเข้า wallet ที่มีอยู่แล้ว"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่า Trust Wallet แล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยายขึ้นมา"}}},uniswap:{qr_code:{step1:{title:"เปิดแอป Uniswap",description:"เพิ่ม Uniswap Wallet ไปยังหน้าจอหลักของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"สร้างกระเป๋าเงินใหม่หรือนำเข้ากระเป๋าเงินที่มีอยู่แล้ว"},step3:{title:"แตะที่ไอคอน QR และสแกน",description:"แตะที่ไอคอน QR บนหน้าจอหลักของคุณ สแกนรหัสและยืนยันการเชื่อมต่อ"}}},zerion:{qr_code:{step1:{title:"เปิดแอป Zerion",description:"เราแนะนำให้คุณวาง Zerion บนหน้าจอหลักของคุณเพื่อเข้าถึงได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"ลองทำสำเนาข้อมูล wallet ของคุณไว้ในช่องทางที่ปลอดภัย อย่าเปิดเผยวลีลับของคุณให้กับผู้อื่น"},step3:{title:"แตะที่ปุ่มสแกน",description:"หลังจากสแกน จะมีหน้าต่างแสดงคำสั่งเชื่อมต่อให้คุณเชื่อมต่อ wallet ของคุณ"}},extension:{step1:{title:"ติดตั้งส่วนขยาย Zerion",description:"เราแนะนำให้คุณติด Zerion บนแถบงานของคุณเพื่อเข้าถึง wallet ของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"ตรวจสอบให้แน่ใจว่าคุณได้สำรองข้อมูลกระเป๋าเงินของคุณโดยวิธีที่ปลอดภัย อย่าเปิดเผยประโยคลับลับของคุณให้ใครทราบครับ"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}}},rainbow:{qr_code:{step1:{title:"เปิดแอป Rainbow",description:"เราขอแนะนำให้คุณวาง Rainbow อยู่บนหน้าจอหลักของคุณเพื่อรับผิดชอบจากกระเป๋าสตางค์ของคุณอย่างรวดเร็ว"},step2:{title:"สร้างหรือนำเข้ากระเป๋าสตางค์",description:"คุณสามารถสำรองข้อมูลกระเป๋าสตางค์ของคุณได้ง่ายๆ ด้วยฟีเจอร์สำรองข้อมูลบนโทรศัพท์ของคุณ"},step3:{title:"แตะปุ่มสแกน",description:"หลังจากสแกนแล้ว จะแสดงข้อความขอเชื่อมต่อเพื่อให้คุณเชื่อมต่อกระเป๋าสตางค์ของคุณ"}}},enkrypt:{extension:{step1:{description:"เราขอแนะนำให้คุณปัก Enkrypt Wallet ไว้ที่แทบงานของคุณเพื่อให้สามารถเข้าถึงกระเป๋าสตางค์ของคุณได้เร็วขึ้น",title:"ติดตั้งส่วนขยาย Enkrypt Wallet"},step2:{description:"ตรวจสอบให้แน่ใจว่าคุณได้สำรองกระเป๋าสตางค์ของคุณโดยใช้วิธีที่ปลอดภัย ห้ามแชร์วลีลับของคุณให้กับใคร",title:"สร้างหรือนำเข้า Wallet"},step3:{description:"เมื่อคุณตั้งค่า wallet ของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรช browser และโหลดขึ้น extension",title:"รีเฟรช browser ของคุณ"}}},frame:{extension:{step1:{description:"เราแนะนำให้หมุน Frame ไว้บน taskbar ของคุณเพื่อให้เข้าถึง wallet ได้เร็วขึ้น",title:"ติดตั้ง Frame และ extension ที่เป็นคู่"},step2:{description:"ตรวจสอบว่าได้สำรอง wallet ของคุณโดยใช้วิธีการที่ปลอดภัย อย่าเปิดเผยวลีลับของคุณให้กับใคร",title:"สร้างหรือนำเข้า Wallet"},step3:{description:"เมื่อคุณตั้งค่า wallet ของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรช browser และโหลดขึ้น extension",title:"รีเฟรช browser ของคุณ"}}},one_key:{extension:{step1:{title:"ติดตั้งส่วนเสริม OneKey Wallet",description:"เราแนะนำการปัก OneKey Wallet ไว้บนแทบงานของคุณเพื่อเข้าถึงกระเป๋าเงินได้ง่ายขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"อย่าลืมสำรองกระเป๋าเงินของคุณด้วยวิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใคร"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนเสริม"}}},phantom:{extension:{step1:{title:"ติดตั้งส่วนเสริม Phantom",description:"เราแนะนำการปัก Phantom ไว้บนแทบงานของคุณเพื่อเข้าถึงกระเป๋าเงินได้ง่ายขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"แน่ใจว่าคุณได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยข้อความลับสำหรับการกู้คืนของคุณกับบุคคลใด ๆ"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินเรียบร้อยแล้ว, คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}}},rabby:{extension:{step1:{title:"ติดตั้งส่วนขยาย Rabby",description:"เราแนะนำให้คุณปัก Rabby ไว้ที่แถบงานเพื่อให้เข้าถึงกระเป๋าเงินของคุณได้รวดเร็วขึ้น."},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"แน่ใจว่าคุณได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าแชร์ข้อความลับของคุณกับบุคคลอื่น"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}}},safeheron:{extension:{step1:{title:"ติดตั้งส่วนขยาย Core",description:"เราขอแนะนำให้คุณปัก Safeheron ไว้ที่แถบงานเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"อย่าลืมสำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยประโยคลับของคุณให้ผู้อื่นทราบ"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}}},taho:{extension:{step1:{title:"ติดตั้งส่วนขยาย Taho",description:"เราแนะนำให้คุณปัก Taho ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"โปรดแน่ใจว่าคุณได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าแชร์ประโยคลับคุณกับผู้อื่น"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}}},talisman:{extension:{step1:{title:"ติดตั้งส่วนขยาย Talisman",description:"เราแนะนำให้คุณปัก Talisman ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน Ethereum",description:"ให้แน่ใจว่าคุณได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยวลีการกู้คืนของคุณให้ใครทราบเด็ดขาด"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}}},xdefi:{extension:{step1:{title:"ติดตั้งส่วนขยาย XDEFI Wallet",description:"เราแนะนำให้คุณตรา XDEFI Wallet ไว้ที่แถบงานเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"ให้แน่ใจว่าคุณได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยวลีลับของคุณให้ใครทราบเด็ดขาด"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"หลังจากที่คุณตั้งค่ากระเป๋าสตางค์ของคุณแล้ว คลิกด้านล่างเพื่อรีเฟรชบราวเซอร์และโหลดส่วนเสริม."}}},zeal:{extension:{step1:{title:"ติดตั้งส่วนขยาย Zeal",description:"เราแนะนำให้ปัก Zeal ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"ตรวจสอบการสำรองข้อมูลกระเป๋าสตางค์ของคุณให้แน่นอนโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใครเป็นอันขาด."},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้วคลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนเสริม"}}},safepal:{extension:{step1:{title:"ติดตั้งส่วนขยาย SafePal Wallet",description:"คลิกที่มุมบนขวาของเบราว์เซอร์ของคุณและปักมุม SafePal Wallet เพื่อที่จะเข้าถึงได้ง่าย"},step2:{title:"สร้างหรือนำเข้ากระเป๋าเงิน",description:"สร้างกระเป๋าเงินใหม่หรือนำเข้าที่มีอยู่แล้ว."},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"หลังจากคุณตั้งค่า SafePal Wallet เรียบร้อยแล้ว คลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนขยาย"}},qr_code:{step1:{title:"เปิดแอป SafePal Wallet",description:"วาง SafePal Wallet ที่หน้าจอหลักของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"สร้างกระเป๋าเงินใหม่หรือนำเข้าที่มีอยู่แล้ว."},step3:{title:"แตะ WalletConnect ในการตั้งค่า",description:"เลือก New Connection, แล้วสแกน QR code และยืนยันการรับรองสำหรับการเชื่อมต่อ"}}},desig:{extension:{step1:{title:"ติดตั้งส่วนขยาย Desig",description:"เราขอแนะนำให้คุณตรึง Desig ไว้ที่แถบงานของคุณเพื่อให้เข้าถึงกระเป๋าเงินของคุณได้ง่ายขึ้น"},step2:{title:"สร้างกระเป๋าเงิน",description:"ตรวจสอบการสำรองข้อมูลกระเป๋าสตางค์ของคุณให้แน่นอนโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใครเป็นอันขาด."},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้วคลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนเสริม"}}},subwallet:{extension:{step1:{title:"ติดตั้งส่วนขยาย SubWallet",description:"เราขอแนะนำให้คุณตรึง SubWallet ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"ให้แน่ใจว่าคุณได้สำรองกระเป๋าเงินของคุณโดยใช้วิธีที่ปลอดภัย อย่าเปิดเผยวลีการกู้คืนของคุณให้ใครทราบเด็ดขาด"},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้วคลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนเสริม"}},qr_code:{step1:{title:"เปิดแอพ SubWallet",description:"เราขอแนะนำให้วาง SubWallet ไว้ที่หน้าจอหลักของคุณเพื่อเข้าถึงได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"ตรวจสอบการสำรองข้อมูลกระเป๋าสตางค์ของคุณให้แน่นอนโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใครเป็นอันขาด."},step3:{title:"แตะปุ่มสแกน",description:"หลังจากคุณสแกน จะปรากฏหน้าต่างเชื่อมต่อให้คุณเชื่อมต่อกระเป๋าเงินของคุณ"}}},clv:{extension:{step1:{title:"ติดตั้งส่วนขยาย CLV Wallet",description:"เราขอแนะนำให้คุณตรึง CLV Wallet ไว้ที่แถบงานของคุณเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"ตรวจสอบการสำรองข้อมูลกระเป๋าสตางค์ของคุณให้แน่นอนโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใครเป็นอันขาด."},step3:{title:"รีเฟรชเบราว์เซอร์ของคุณ",description:"เมื่อคุณตั้งค่ากระเป๋าเงินของคุณแล้วคลิกด้านล่างเพื่อรีเฟรชเบราว์เซอร์และโหลดส่วนเสริม"}},qr_code:{step1:{title:"เปิดแอพ CLV Wallet",description:"เราแนะนำให้คุณวาง CLV Wallet บนหน้าจอหลักเพื่อให้สามารถเข้าถึงได้เร็วขึ้น"},step2:{title:"สร้างหรือนำเข้า Wallet",description:"ตรวจสอบการสำรองข้อมูลกระเป๋าสตางค์ของคุณให้แน่นอนโดยใช้วิธีที่ปลอดภัย อย่าแชร์วลีลับของคุณกับใครเป็นอันขาด."},step3:{title:"แตะปุ่มสแกน",description:"หลังจากคุณสแกน จะปรากฏหน้าต่างเชื่อมต่อให้คุณเชื่อมต่อกระเป๋าเงินของคุณ"}}},okto:{qr_code:{step1:{title:"เปิดแอพ Okto",description:"เพิ่ม Okto ไปยังหน้าจอหลักของคุณเพื่อเข้าถึงได้เร็ว"},step2:{title:"สร้างกระเป๋าเงิน MPC",description:"สร้างบัญชีและสร้างกระเป๋าเงิน"},step3:{title:"แตะ WalletConnect ในการตั้งค่า",description:"แตะที่ไอคอน Scan QR ที่บริเวณมุมบนขวาและยืนยันข้อความเพื่อเชื่อมต่อ."}}},ledger:{desktop:{step1:{title:"เปิดแอป Ledger Live",description:"เราแนะนำให้คุณวาง Ledger Live บนหน้าจอหลักเพื่อให้สามารถเข้าถึงได้เร็วขึ้น"},step2:{title:"ตั้งค่า Ledger ของคุณ",description:"ตั้งค่า Ledger ใหม่หรือเชื่อมต่อกับ Ledger ที่มีอยู่แล้ว"},step3:{title:"เชื่อมต่อ",description:"หลังจากที่คุณสแกนแล้ว จะมีการเรียกให้เชื่อมต่อกับกระเป๋าเงินของคุณ"}},qr_code:{step1:{title:"เปิดแอป Ledger Live",description:"เราแนะนำให้วาง Ledger Live บนหน้าจอหลักของคุณเพื่อการเข้าถึงที่รวดเร็วขึ้น"},step2:{title:"ตั้งค่า Ledger ของคุณ",description:"คุณสามารถซิงค์กับแอพพลิเคชันบนเดสก์ท็อปหรือเชื่อมต่อ Ledger ของคุณ"},step3:{title:"สแกนรหัส",description:"แตะ WalletConnect แล้วเปลี่ยนไปที่ Scanner. หลังจากที่คุณสแกนแล้ว จะมีการเรียกให้เชื่อมต่อกับกระเป๋าเงินของคุณ"}}}},th_TH_default={connect_wallet:connect_wallet11,intro:intro11,sign_in:sign_in11,connect:connect11,connect_scan:connect_scan11,connector_group:connector_group11,get:get11,get_options:get_options11,get_mobile:get_mobile11,get_instructions:get_instructions11,chains:chains11,profile:profile11,wallet_connectors:wallet_connectors11},connect_wallet12={label:"Cüzdanı Bağla"},intro12={title:"Cüzdan nedir?",description:"Bir cüzdan, dijital varlıkları göndermek, almak, saklamak ve görüntülemek için kullanılır. Aynı zamanda her web sitesinde yeni hesaplar ve şifreler oluşturmanıza gerek kalmadan oturum açmanın yeni bir yoludur.",digital_asset:{title:"Dijital Varlıklarınız İçin Bir Ev",description:"Cüzdanlar, Ethereum ve NFT'ler gibi dijital varlıkları göndermek, almak, depolamak ve görüntülemek için kullanılır."},login:{title:"Yeni Bir Giriş Yolu",description:"Her web sitesinde yeni hesap ve parolalar oluşturmak yerine, sadece cüzdanınızı bağlayın."},get:{label:"Bir Cüzdan Edinin"},learn_more:{label:"Daha fazla bilgi edinin"}},sign_in12={label:"Hesabınızı doğrulayın",description:"Bağlantıyı tamamlamak için, bu hesabın sahibi olduğunuzu doğrulamak için cüzdanınızdaki bir mesaja imza atmalısınız.",message:{send:"Mesajı gönder",preparing:"Mesaj hazırlanıyor...",cancel:"İptal",preparing_error:"Mesajı hazırlarken hata oluştu, lütfen tekrar deneyin!"},signature:{waiting:"İmza bekleniyor...",verifying:"İmza doğrulanıyor...",signing_error:"Mesajı imzalarken hata oluştu, lütfen tekrar deneyin!",verifying_error:"İmza doğrulanırken hata oluştu, lütfen tekrar deneyin!",oops_error:"Hata, bir şeyler yanlış gitti!"}},connect12={label:"Bağlan",title:"Bir Cüzdanı Bağla",new_to_ethereum:{description:"Ethereum cüzdanlarına yeni misiniz?",learn_more:{label:"Daha fazla bilgi edinin"}},learn_more:{label:"Daha fazla bilgi edinin"},recent:"Son",status:{opening:"%{wallet}açılıyor...",connecting:"Bağlanıyor",connect_mobile:"%{wallet}'da devam edin",not_installed:"%{wallet} yüklü değil",not_available:"%{wallet} kullanılabilir değil",confirm:"Bağlantıyı eklentide onaylayın",confirm_mobile:"Cüzdanında bağlantı isteğini kabul et"},secondary_action:{get:{description:"%{wallet}yok mu?",label:"AL"},install:{label:"YÜKLE"},retry:{label:"YENİDEN DENE"}},walletconnect:{description:{full:"Resmi WalletConnect modalına mı ihtiyacınız var?",compact:"WalletConnect modalına mı ihtiyacınız var?"},open:{label:"AÇ"}}},connect_scan12={title:"%{wallet}ile tarama yapın",fallback_title:"Telefonunuzla tarama yapın"},connector_group12={recommended:"Tavsiye Edilen",other:"Diğer",popular:"Popüler",more:"Daha Fazla",others:"Diğerleri"},get12={title:"Bir Cüzdan Edinin",action:{label:"AL"},mobile:{description:"Mobil Cüzdan"},extension:{description:"Tarayıcı Eklentisi"},mobile_and_extension:{description:"Mobil Cüzdan ve Eklenti"},mobile_and_desktop:{description:"Mobil ve Masaüstü Cüzdan"},looking_for:{title:"Aradığınız şey bu değil mi?",mobile:{description:"Ana ekranda başka bir cüzdan sağlayıcısıyla başlamak için bir cüzdan seçin."},desktop:{compact_description:"Ana ekranda başka bir cüzdan sağlayıcısıyla başlamak için bir cüzdan seçin.",wide_description:"Başka bir cüzdan sağlayıcısıyla başlamak için sol tarafta bir cüzdan seçin."}}},get_options12={title:"%{wallet}ile başlayın",short_title:"%{wallet}Edinin",mobile:{title:"%{wallet} Mobil İçin",description:"Mobil cüzdanı kullanarak Ethereum dünyasını keşfedin.",download:{label:"Uygulamayı alın"}},extension:{title:"%{wallet} için %{browser}",description:"Cüzdanınıza favori web tarayıcınızdan doğrudan erişin.",download:{label:"%{browser}'e ekle"}},desktop:{title:"%{wallet} için %{platform}",description:"Güçlü masaüstünüzden cüzdanınıza yerel olarak erişin.",download:{label:"%{platform}ekleyin"}}},get_mobile12={title:"%{wallet}'i yükleyin",description:"iOS veya Android'de indirmek için telefonunuzla tarayın",continue:{label:"Devam et"}},get_instructions12={mobile:{connect:{label:"Bağlan"},learn_more:{label:"Daha fazla bilgi edinin"}},extension:{refresh:{label:"Yenile"},learn_more:{label:"Daha fazla bilgi edinin"}},desktop:{connect:{label:"Bağlan"},learn_more:{label:"Daha fazla bilgi edinin"}}},chains12={title:"Ağları Değiştir",wrong_network:"Yanlış ağ algılandı, devam etmek için bağlantıyı kesin veya değiştirin.",confirm:"Cüzdanında Onayla",switching_not_supported:"Cüzdanınız %{appName}. ağları değiştirmeyi desteklemiyor. Bunun yerine cüzdanınızdan ağları değiştirmeyi deneyin.",switching_not_supported_fallback:"Cüzdanınız bu uygulamadan ağları değiştirmeyi desteklemiyor. Bunun yerine cüzdanınızdaki ağları değiştirmeyi deneyin.",disconnect:"Bağlantıyı Kes",connected:"Bağlı"},profile12={disconnect:{label:"Bağlantıyı Kes"},copy_address:{label:"Adresi Kopyala",copied:"Kopyalandı!"},explorer:{label:"Explorer üzerinde daha fazlasını görün"},transactions:{description:"%{appName} işlem burada görünecek...",description_fallback:"İşlemleriniz burada görünecek...",recent:{title:"Son İşlemler"},clear:{label:"Hepsini Temizle"}}},wallet_connectors12={argent:{qr_code:{step1:{description:"Cüzdanınıza daha hızlı erişim için Argent'i ana ekranınıza koyun.",title:"Argent uygulamasını açın"},step2:{description:"Bir cüzdan ve kullanıcı adı oluşturun veya mevcut bir cüzdanı içe aktarın.",title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar"},step3:{description:"Taradıktan sonra, cüzdanınızı bağlamak için bir bağlantı istemi görünecektir.",title:"QR tarayıcı düğmesine dokunun"}}},bifrost:{qr_code:{step1:{description:"Daha hızlı erişim için Bifrost Cüzdan'ı ana ekranınıza koymanızı öneririz.",title:"Bifrost Cüzdan uygulamasını açın"},step2:{description:"Kurtarma ifadenizle bir cüzdan oluşturun veya içe aktarın.",title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar"},step3:{description:"Tarama işlemi sonrasında, cüzdanınızı bağlamak için bir bağlantı istemi gözükecektir.",title:"Tarayıcı düğmesine dokunun"}}},bitget:{qr_code:{step1:{description:"Daha hızlı erişim için Bitget Cüzdanınızı ana ekranınıza koymanızı öneririz.",title:"Bitget Cüzdan uygulamasını açın"},step2:{description:"Cüzdanınızı güvenli bir yöntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle paylaşmayın.",title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar"},step3:{description:"Tarama yaptıktan sonra, cüzdanınızı bağlamak için bir bağlantı istemi görünecektir.",title:"Tarama düğmesine dokunun"}},extension:{step1:{description:"Cüzdanınıza daha hızlı erişim için Bitget Cüzdanını görev çubuğunuza sabitlemenizi öneririz.",title:"Bitget Cüzdan eklentisini yükleyin"},step2:{description:"Cüzdanınızı güvenli bir yöntemle yedeklemekten emin olun. Gizli ifadenizi hiç kimseyle paylaşmayın.",title:"Bir Cüzdan Oluşturun veya İçe Aktarın"},step3:{description:"Cüzdanınızı kurduktan sonra, aşağıya tıklayın ve tarayıcıyı yenileyin ve eklentiyi yükleyin.",title:"Tarayıcınızı yenileyin"}}},bitski:{extension:{step1:{description:"Cüzdanınıza daha hızlı erişim için Bitski'yi görev çubuğunuza sabitlemenizi öneririz.",title:"Bitski eklentisini yükleyin"},step2:{description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli ifadenizi kimseyle paylaşmayın.",title:"Bir Cüzdan Oluşturun veya İçe Aktarın"},step3:{description:"Cüzdanınızı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın.",title:"Tarayıcınızı yenileyin"}}},coin98:{qr_code:{step1:{description:"Cüzdanınıza daha hızlı erişim için Coin98 Cüzdanınızı ana ekranınıza koymanızı öneririz.",title:"Coin98 Cüzdan uygulamasını açın"},step2:{description:"Telefonunuzdaki yedekleme özelliğimizi kullanarak cüzdanınızı kolayca yedekleyebilirsiniz.",title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar"},step3:{description:"Tarama işlemi yaptıktan sonra, cüzdanınızı bağlamak için bir bağlantı istemi görünecektir.",title:"CüzdanBağlantısı düğmesine dokunun"}},extension:{step1:{description:"Tarayıcınızın sağ üst köşesinde tıklayın ve Coin98 Cüzdanınızı kolay erişim için sabitleyin.",title:"Coin98 Cüzdan eklentisini yükleyin"},step2:{description:"Yeni bir cüzdan oluşturun veya mevcut birini içe aktarın.",title:"Bir cüzdan oluşturun veya içe aktarın"},step3:{description:"Coin98 Cüzdan'ı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın.",title:"Tarayıcınızı yenileyin"}}},coinbase:{qr_code:{step1:{description:"Coinbase Cüzdan'ı ana ekranınıza koymanızı öneririz, böylece daha hızlı erişim sağlanır.",title:"Coinbase Wallet uygulamasını açın"},step2:{description:"Cüzdanınızı bulut yedekleme özelliğini kullanarak kolayca yedekleyebilirsiniz.",title:"Bir Cüzdan Oluşturun veya İçe Aktarın"},step3:{description:"Tarama yaptıktan sonra, cüzdanınızı bağlamanız için bir bağlantı istemi belirecektir.",title:"Tarama düğmesine dokunun"}},extension:{step1:{description:"Cüzdanınıza daha hızlı erişim için Coinbase Wallet'ı görev çubuğunuza sabitlemenizi öneririz.",title:"Coinbase Wallet uzantısını yükleyin"},step2:{description:"Cüzdanınızı güvenli bir yöntem kullanarak yedekleyin. Gizli ifadenizi asla başkalarıyla paylaşmayın.",title:"Cüzdan Oluştur veya İçe Aktar"},step3:{description:"Cüzdanınızı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın.",title:"Tarayıcınızı yenileyin"}}},core:{qr_code:{step1:{description:"Cüzdanınıza daha hızlı erişim için Core'u ana ekranınıza koymanızı öneririz.",title:"Core uygulamasını açın"},step2:{description:"Cüzdanınızın yedeğini telefonunuzda bulunan yedekleme özelliğimizi kullanarak kolayca alabilirsiniz.",title:"Cüzdan Oluştur veya İçe Aktar"},step3:{description:"Tarama yaptıktan sonra, cüzdanınızı bağlamak üzere bir bağlantı istemi görünecektir.",title:"WalletConnect düğmesine dokunun"}},extension:{step1:{description:"Cüzdanınıza daha hızlı erişim için Core'u görev çubuğunuza sabitlemenizi öneririz.",title:"Core eklentisini yükleyin"},step2:{description:"Cüzdanınızı güvenli bir yöntemle yedeklemeye dikkat edin. Gizli ifadenizi asla kimseyle paylaşmayın.",title:"Bir Cüzdan Oluşturun veya İçe Aktarın"},step3:{description:"Cüzdanınızı kurduktan sonra, aşağıya tıklayarak tarayıcıyı yenileyin ve eklentiyi yükleyin.",title:"Tarayıcınızı yenileyin"}}},fox:{qr_code:{step1:{description:"Daha hızlı erişim için FoxWallet'ı ana ekranınıza koymanızı öneririz.",title:"FoxWallet uygulamasını açın"},step2:{description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli ifadenizi asla kimseyle paylaşmayın.",title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar"},step3:{description:"Tarama yaptıktan sonra cüzdanınızı bağlamanız için bir bağlantı istemi belirecektir.",title:"Tarama düğmesine dokunun"}}},frontier:{qr_code:{step1:{description:"Daha hızlı erişim için Frontier Cüzdanını ana ekranınıza koymanızı öneririz.",title:"Frontier Cüzdan uygulamasını açın"},step2:{description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli ifadenizi asla kimseyle paylaşmayın.",title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar"},step3:{description:"Taramadan sonra, cüzdanınızı bağlamak için bir bağlantı istemi görünecektir.",title:"Tarama düğmesine dokunun"}},extension:{step1:{description:"Cüzdanınıza daha hızlı erişim için Frontier Cüzdanını görev çubuğunuza sabitlemenizi öneririz.",title:"Frontier Cüzdan eklentisini yükleyin"},step2:{description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli ifadenizi hiç kimseyle paylaşmayın.",title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar"},step3:{description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemeye ve eklentiyi yüklemeye başlamak için aşağıya tıklayın.",title:"Tarayıcınızı Yenileyin"}}},im_token:{qr_code:{step1:{title:"imToken uygulamasını açın",description:"Cüzdanınıza daha hızlı erişim için imToken uygulamasını ana ekranınıza koyun."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Yeni bir cüzdan oluşturun veya mevcut bir cüzdanı içe aktarın."},step3:{title:"Sağ üst köşede Tarayıcı Simgesine dokunun",description:"Yeni Bağlantı'yı seçin, ardından QR kodunu tarayın ve bağlantıyı onaylamak için istemi onaylayın."}}},metamask:{qr_code:{step1:{title:"MetaMask uygulamasını açın",description:"Daha hızlı erişim için MetaMask'ı ana ekranınıza koymanızı öneririz."},step2:{title:"Bir Cüzdan Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntem kullanarak yedekleyin. Gizli kurtarma ifadenizi asla başkalarıyla paylaşmayın."},step3:{title:"Tarama düğmesine dokunun",description:"Taramayı yaptıktan sonra, cüzdanınızı bağlamak için bir bağlantı istemi belirecektir."}},extension:{step1:{title:"MetaMask eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için MetaMask'i görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Bir Cüzdan Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli ifadenizi hiç kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı Yenileyin",description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},okx:{qr_code:{step1:{title:"OKX Wallet uygulamasını açın",description:"Daha hızlı erişim için OKX Wallet'ı ana ekranınıza koymanızı öneririz."},step2:{title:"Bir Cüzdan Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli cümlenizi asla kimseyle paylaşmayın."},step3:{title:"Tarama düğmesine dokunun",description:"Tarama yaptıktan sonra, cüzdanınızı bağlama istemi görünecektir."}},extension:{step1:{title:"OKX Cüzdan eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için OKX Cüzdan'ı görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli cümlenizi asla kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},omni:{qr_code:{step1:{title:"Omni uygulamasını açın",description:"Cüzdanınıza daha hızlı erişim için Omni'yi ana ekranınıza ekleyin."},step2:{title:"Bir Cüzdan Oluşturun ya da İçe Aktarın",description:"Yeni bir cüzdan oluşturun veya mevcut birini içe aktarın."},step3:{title:"QR simgesine dokunun ve tarayın",description:"Ana ekranınızdaki QR simgesine dokunun, kodu tarayın ve bağlanmak için istemi onaylayın."}}},token_pocket:{qr_code:{step1:{title:"TokenPocket uygulamasını açın",description:"Daha hızlı erişim için TokenPocket'ı ana ekranınıza koymanızı öneririz."},step2:{title:"Bir Cüzdan Oluşturun veya Cüzdanı İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntem kullanarak yedekleyin. Gizli ifadenizi asla başkalarıyla paylaşmayın."},step3:{title:"Tarama düğmesine dokunun",description:"Taramayı yaptıktan sonra, cüzdanınızı bağlamak için bir bağlantı istemi belirecektir."}},extension:{step1:{title:"TokenPocket eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için TokenPocket'i görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli cümlenizi asla başkalarıyla paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemekte ve eklentiyi yüklemek için aşağıya tıklayın."}}},trust:{qr_code:{step1:{title:"Trust Wallet uygulamasını açın",description:"Cüzdanınıza daha hızlı erişim için Trust Wallet'ı ana ekranınıza koyun."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Yeni bir cüzdan oluşturun veya mevcut bir tane içe aktarın."},step3:{title:"Ayarlar'da WalletConnect'e dokunun",description:"Yeni Bağlantı'yı seçin, ardından QR kodunu tarayın ve bağlanmak için istemi onaylayın."}},extension:{step1:{title:"Trust Wallet eklentisini yükleyin",description:"Tarayıcınızın sağ üst köşesine tıklayın ve kolay erişim için Trust Wallet'i sabitleyin."},step2:{title:"Bir cüzdan oluşturun veya içe aktarın",description:"Yeni bir cüzdan oluşturun veya mevcut bir tane içe aktarın."},step3:{title:"Tarayıcınızı yenileyin",description:"Trust Wallet'ı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},uniswap:{qr_code:{step1:{title:"Uniswap uygulamasını açın",description:"Cüzdanınıza daha hızlı erişim için Uniswap Cüzdanınızı ana ekranınıza ekleyin."},step2:{title:"Cüzdan Oluştur veya İçe Aktar",description:"Yeni bir cüzdan oluşturun veya mevcut birini içe aktarın."},step3:{title:"QR ikonuna dokunun ve tarama yapın",description:"Ana ekranınızdaki QR simgesine dokunun, kodu tarayın ve bağlanmayı onaylamak için istemi kabul edin."}}},zerion:{qr_code:{step1:{title:"Zerion uygulamasını açın",description:"Daha hızlı erişim için Zerion'un ana ekranınıza konumlandırmanızı öneririz."},step2:{title:"Bir Cüzdan Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntem kullanarak yedekleyin. Gizli ifadenizi asla başkalarıyla paylaşmayın."},step3:{title:"Tarama düğmesine basın",description:"Taramadan sonra, cüzdanınızı bağlamak için bir bağlantı istemi belirecektir."}},extension:{step1:{title:"Zerion eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için Zerion'u görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluştur veya İçe Aktar",description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklemeye emin olun. Gizli ifadenizi asla başkalarıyla paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},rainbow:{qr_code:{step1:{title:"Rainbow uygulamasını açın",description:"Cüzdanınıza daha hızlı erişim için Rainbow'u ana ekranınıza koymanızı öneririz."},step2:{title:"Cüzdan Oluştur veya İçe Aktar",description:"Telefonunuzdaki yedekleme özelliğimizi kullanarak cüzdanınızı kolayca yedekleyebilirsiniz."},step3:{title:"Tarama düğmesine dokunun",description:"Tarama yaptıktan sonra, cüzdanınızı bağlamanız için bir bağlantı istemi belirecektir."}}},enkrypt:{extension:{step1:{description:"Cüzdanınıza daha hızlı erişim sağlamak için Enkrypt Cüzdan'ı görev çubuğunuza sabitlemenizi öneririz.",title:"Enkrypt Cüzdan eklentisini yükleyin"},step2:{description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli ifadenizi hiç kimseyle paylaşmayın.",title:"Bir Cüzdan Oluşturun veya İçe Aktarın"},step3:{description:"Cüzdanınızı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın.",title:"Tarayıcınızı yenileyin"}}},frame:{extension:{step1:{description:"Cüzdanınıza daha hızlı erişim sağlamak için Frame'ı görev çubuğunuza sabitlemenizi öneririz.",title:"Frame ve eşlik eden uzantıyı yükleyin"},step2:{description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli ifadenizi asla başkasıyla paylaşmayın.",title:"Cüzdan Oluştur veya İçe Aktar"},step3:{description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve uzantıyı yüklemek için aşağıya tıklayın.",title:"Tarayıcınızı yenileyin"}}},one_key:{extension:{step1:{title:"OneKey Wallet uzantısını yükleyin",description:"Cüzdanınıza daha hızlı erişim için OneKey Wallet'ı görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluştur veya İçe Aktar",description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli ifadenizi kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},phantom:{extension:{step1:{title:"Phantom eklentisini yükleyin",description:"Cüzdanınıza daha kolay erişim sağlamak için Phantom'u görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Bir Cüzdan Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntem kullanarak yedeklediğinizden emin olun. Gizli kurtarma ifadenizi kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},rabby:{extension:{step1:{title:"Rabby eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için Rabby'yi görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluştur veya İçe Aktar",description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli ifadenizi asla başkalarıyla paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıdaki düğmeye tıklayın."}}},safeheron:{extension:{step1:{title:"Core eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için Safeheron'u görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluştur veya İçe Aktar",description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli ifadenizi hiç kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},taho:{extension:{step1:{title:"Taho uzantısını yükleyin",description:"Cüzdanınıza daha hızlı erişim için Taho'yu görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Bir Cüzdan Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli ifadenizi hiç kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},talisman:{extension:{step1:{title:"Talisman eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için Talisman'ı görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Ethereum Cüzdanı Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Kurtarma ifadenizi hiç kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},xdefi:{extension:{step1:{title:"XDEFI Cüzdan eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için XDEFI Wallet'ı görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Bir Cüzdan Oluşturun veya İçe Aktarın",description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Gizli ifadenizi hiç kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı ayarladıktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}}},zeal:{extension:{step1:{title:"Zeal eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için Zeal'ı görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Cüzdanınızı güvenli bir yöntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı kurduktan sonra, aşağıya tıklayın ve tarayıcıyı yenileyin ve eklentiyi yükleyin."}}},safepal:{extension:{step1:{title:"SafePal Wallet eklentisini yükleyin",description:"Tarayıcınızın sağ üst köşesine tıklayın ve kolay erişim için SafePal Wallet'ı sabitleyin."},step2:{title:"Bir cüzdan oluşturun veya içe aktarın",description:"Yeni bir cüzdan oluşturun veya mevcut birini içe aktarın."},step3:{title:"Tarayıcınızı yenileyin",description:"SafePal Cüzdan'ı kurduktan sonra, tarayıcıyı yenilemek ve eklentiyi yüklemek için aşağıya tıklayın."}},qr_code:{step1:{title:"SafePal Cüzdan uygulamasını açın",description:"SafePal Cüzdan'ı ana ekranınıza koyun, cüzdanınıza daha hızlı erişim için."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Yeni bir cüzdan oluşturun veya mevcut birini içe aktarın."},step3:{title:"Ayarlar'da WalletConnect'e dokunun",description:"Yeni Bağlantı'yı seçin, ardından QR kodunu tarayın ve bağlantıyı onaylamak için istemi onaylayın."}}},desig:{extension:{step1:{title:"Desig eklentisini yükleyin",description:"Cüzdanınıza daha kolay erişim sağlamak için Desig'i görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Bir Cüzdan Oluşturun",description:"Cüzdanınızı güvenli bir yöntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı kurduktan sonra, aşağıya tıklayın ve tarayıcıyı yenileyin ve eklentiyi yükleyin."}}},subwallet:{extension:{step1:{title:"SubWallet eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için SubWallet'ı görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Cüzdanınızı güvenli bir yöntemle yedeklediğinizden emin olun. Kurtarma ifadenizi hiç kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı kurduktan sonra, aşağıya tıklayın ve tarayıcıyı yenileyin ve eklentiyi yükleyin."}},qr_code:{step1:{title:"SubWallet uygulamasını açın",description:"Daha hızlı erişim için SubWallet'ı ana ekranınıza koymenizi öneririz."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Cüzdanınızı güvenli bir yöntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle paylaşmayın."},step3:{title:"Tarayıcı düğmesine dokunun",description:"Taradıktan sonra, cüzdanınızı bağlamak için bir bağlantı istemi görünecektir."}}},clv:{extension:{step1:{title:"CLV Cüzdanı eklentisini yükleyin",description:"Cüzdanınıza daha hızlı erişim için CLV Cüzdanını görev çubuğunuza sabitlemenizi öneririz."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Cüzdanınızı güvenli bir yöntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle paylaşmayın."},step3:{title:"Tarayıcınızı yenileyin",description:"Cüzdanınızı kurduktan sonra, aşağıya tıklayın ve tarayıcıyı yenileyin ve eklentiyi yükleyin."}},qr_code:{step1:{title:"CLV Cüzdan uygulamasını açın",description:"Daha hızlı erişim için CLV Cüzdanını ana ekranınıza koymanızı öneririz."},step2:{title:"Cüzdan Oluştur veya Cüzdanı İçe Aktar",description:"Cüzdanınızı güvenli bir yöntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle paylaşmayın."},step3:{title:"Tarayıcı düğmesine dokunun",description:"Taradıktan sonra, cüzdanınızı bağlamak için bir bağlantı istemi görünecektir."}}},okto:{qr_code:{step1:{title:"Okto uygulamasını açın",description:"Hızlı erişim için Okto'yu ana ekranınıza ekleyin"},step2:{title:"MPC Cüzdanı oluşturun",description:"Bir hesap oluşturun ve bir cüzdan oluşturun"},step3:{title:"Ayarlar'da WalletConnect'e dokunun",description:"Sağ üstteki Tarama QR simgesine dokunun ve bağlanmak için istemi onaylayın."}}},ledger:{desktop:{step1:{title:"Ledger Live uygulamasını açın",description:"Daha hızlı erişim için Ledger Live'ı ana ekranınıza koymanızı öneririz."},step2:{title:"Ledger'ınızı kurun",description:"Yeni bir Ledger kurun veya mevcut birine bağlanın."},step3:{title:"Bağlan",description:"Cüzdanınızı bağlamak için bir bağlantı istemi belirecektir."}},qr_code:{step1:{title:"Ledger Live uygulamasını açın",description:"Daha hızlı erişim için Ledger Live'ı ana ekranınıza koymanızı öneririz."},step2:{title:"Ledger'ınızı kurun",description:"Masaüstü uygulama ile senkronize olabilir veya Ledger'ınızı bağlayabilirsiniz."},step3:{title:"Kodu tarayın",description:"WalletConnect'e dokunun ve ardından Tarayıcı'ya geçin. Taramadan sonra, cüzdanınızı bağlamak için bir bağlantı istemi belirecektir."}}}},tr_TR_default={connect_wallet:connect_wallet12,intro:intro12,sign_in:sign_in12,connect:connect12,connect_scan:connect_scan12,connector_group:connector_group12,get:get12,get_options:get_options12,get_mobile:get_mobile12,get_instructions:get_instructions12,chains:chains12,profile:profile12,wallet_connectors:wallet_connectors12},connect_wallet13={label:"连接钱包"},intro13={title:"什么是钱包?",description:"钱包用于发送、接收、存储和显示数字资产。它也是一种新型的登录方式,无需在每个网站上创建新账户和密码。",digital_asset:{title:"您的数字资产之家",description:"钱包用于发送、接收、存储和显示像以太坊和NFT这样的数字资产。"},login:{title:"一种新的登录方式",description:"而不是在每个网站上创建新的账户和密码,只需连接您的钱包。"},get:{label:"获取钱包"},learn_more:{label:"了解更多"}},sign_in13={label:"验证您的账户",description:"为了完成连接,您必须在钱包中签署一条消息,以验证您是此账户的所有者。",message:{send:"发送消息",preparing:"准备消息中...",cancel:"取消",preparing_error:"准备消息时出错,请重试!"},signature:{waiting:"等待签名...",verifying:"正在验证签名...",signing_error:"签署消息时出错,请重试!",verifying_error:"验证签名时出错,请重试!",oops_error:"哎呀,出了点问题!"}},connect13={label:"连接",title:"连接钱包",new_to_ethereum:{description:"对以太坊钱包不熟悉?",learn_more:{label:"了解更多"}},learn_more:{label:"了解更多"},recent:"近期",status:{opening:"正在打开 %{wallet}...",connecting:"正在连接",connect_mobile:"在 %{wallet}中继续",not_installed:"%{wallet} 尚未安装",not_available:"%{wallet} 不可用",confirm:"在扩展中确认连接",confirm_mobile:"在钱包中接受连接请求"},secondary_action:{get:{description:"没有 %{wallet}吗?",label:"获取"},install:{label:"安装"},retry:{label:"重试"}},walletconnect:{description:{full:"需要官方的 WalletConnect 弹窗吗?",compact:"需要 WalletConnect 弹窗吗?"},open:{label:"打开"}}},connect_scan13={title:"使用 %{wallet}扫描",fallback_title:"使用您的手机扫描"},connector_group13={recommended:"推荐",other:"其他",popular:"流行",more:"更多",others:"其他的"},get13={title:"获取一个钱包",action:{label:"获取"},mobile:{description:"移动钱包"},extension:{description:"浏览器扩展"},mobile_and_extension:{description:"移动钱包和扩展"},mobile_and_desktop:{description:"移动和桌面钱包"},looking_for:{title:"不是你要找的吗?",mobile:{description:"在主屏幕上选择一个钱包,以开始使用不同的钱包提供商。"},desktop:{compact_description:"在主屏幕上选择一个钱包,以开始使用不同的钱包提供商。",wide_description:"在左侧选择一个钱包,以开始使用不同的钱包提供商。"}}},get_options13={title:"开始使用 %{wallet}",short_title:"获取 %{wallet}",mobile:{title:"%{wallet} 用于移动",description:"使用移动钱包探索以太坊的世界。",download:{label:"获取应用"}},extension:{title:"%{wallet} 为 %{browser}",description:"从您最喜欢的网络浏览器直接访问您的钱包。",download:{label:"添加到 %{browser}"}},desktop:{title:"%{wallet} 对于 %{platform}",description:"从您强大的桌面原生访问您的钱包。",download:{label:"添加到 %{platform}"}}},get_mobile13={title:"安装 %{wallet}",description:"用手机扫描下载 iOS 或 Android",continue:{label:"继续"}},get_instructions13={mobile:{connect:{label:"连接"},learn_more:{label:"了解更多"}},extension:{refresh:{label:"刷新"},learn_more:{label:"了解更多"}},desktop:{connect:{label:"连接"},learn_more:{label:"了解更多"}}},chains13={title:"切换网络",wrong_network:"检测到错误的网络,请切换或断开连接以继续。",confirm:"在钱包中确认",switching_not_supported:"您的钱包不支持从 %{appName}切换网络。请尝试从您的钱包内部切换网络。",switching_not_supported_fallback:"您的钱包不支持从此应用切换网络。尝试从您的钱包内切换网络。",disconnect:"断开连接",connected:"已连接"},profile13={disconnect:{label:"断开连接"},copy_address:{label:"复制地址",copied:"已复制!"},explorer:{label:"在浏览器上查看更多"},transactions:{description:"%{appName} 交易将会出现在这里...",description_fallback:"您的交易将会出现在这里...",recent:{title:"最近交易"},clear:{label:"清除全部"}}},wallet_connectors13={argent:{qr_code:{step1:{description:"将 Argent 放到您的主屏幕上,以便更快地访问您的钱包。",title:"打开 Argent 应用"},step2:{description:"创建钱包和用户名,或导入现有钱包。",title:"创建或导入钱包"},step3:{description:"在您扫描后,将出现连接提示,供您连接您的钱包。",title:"点击扫描二维码按钮"}}},bifrost:{qr_code:{step1:{description:"我们建议将Bifrost Wallet放在您的主屏幕上,以便更快地访问。",title:"打开 Bifrost Wallet 应用"},step2:{description:"使用恢复短语创建或导入钱包。",title:"创建或导入钱包"},step3:{description:"在您扫描后,将出现连接提示,供您连接您的钱包。",title:"点击扫描按钮"}}},bitget:{qr_code:{step1:{description:"我们建议您将Bitget钱包添加到主屏幕,以便更快地访问。",title:"打开Bitget钱包应用程序"},step2:{description:"务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"扫描后,将出现一个连接提示,供您连接您的钱包。",title:"点击扫描按钮"}},extension:{step1:{description:"我们建议您将Bitget钱包固定在任务栏,以便更快地访问您的钱包。",title:"安装Bitget Wallet扩展"},step2:{description:"确保使用安全的方式备份您的钱包。绝不与任何人分享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"设置钱包后,点击下方刷新浏览器并加载扩展。",title:"刷新您的浏览器"}}},bitski:{extension:{step1:{description:"我们建议您将Bitski固定在任务栏上,以便更快地访问您的钱包。",title:"安装Bitski扩展"},step2:{description:"请确保用安全的方法备份您的钱包。绝不与任何人共享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"设置完您的钱包后,点击下方以刷新浏览器并加载扩展程序。",title:"刷新您的浏览器"}}},coin98:{qr_code:{step1:{description:"我们建议将Coin98钱包放在您的主屏幕上,以便更快地访问您的钱包。",title:"打开Coin98钱包应用程序"},step2:{description:"您可以使用我们的手机上的备份功能轻松备份您的钱包。",title:"创建或导入钱包"},step3:{description:"扫描后,将出现一个连接提示,让您连接您的钱包。",title:"点击WalletConnect按钮"}},extension:{step1:{description:"点击浏览器右上角并固定Coin98钱包,以便轻松访问。",title:"安装Coin98钱包扩展"},step2:{description:"创建新钱包或导入现有钱包。",title:"创建或导入钱包。"},step3:{description:"设置完成Coin98 钱包后,单击下方以刷新浏览器并加载扩展程序。",title:"刷新您的浏览器"}}},coinbase:{qr_code:{step1:{description:"我们建议您把Coinbase钱包放到主屏幕上,以便更快地访问。",title:"打开Coinbase钱包应用"},step2:{description:"您可以轻松地使用云备份功能备份您的钱包。",title:"创建或导入钱包"},step3:{description:"扫描后,将出现连接提示,供您连接您的钱包。",title:"点击扫描按钮"}},extension:{step1:{description:"我们建议您将Coinbase钱包固定在任务栏上,以便更快地访问您的钱包。",title:"安装Coinbase钱包扩展"},step2:{description:"务必使用安全的方法备份您的钱包。永远不要与任何人分享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"设置好钱包后,点击下方以刷新浏览器并加载扩展。",title:"刷新您的浏览器"}}},core:{qr_code:{step1:{description:"我们建议您将Core添加到主屏幕,以便更快地访问您的钱包。",title:"打开Core应用程序"},step2:{description:"您可以使用我们的手机备份功能轻松备份您的钱包。",title:"创建或导入钱包"},step3:{description:"扫描后,将出现连接提示,让您连接您的钱包。",title:"点击WalletConnect按钮"}},extension:{step1:{description:"我们建议将 Core 固定到任务栏,以便更快地访问您的钱包。",title:"安装 Core 扩展"},step2:{description:"一定要使用安全的方法备份您的钱包。切勿与任何人分享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"设置好钱包后,点击下方以刷新浏览器并加载扩展。",title:"刷新你的浏览器"}}},fox:{qr_code:{step1:{description:"我们建议您将 FoxWallet 放到主屏幕上,以便更快的访问。",title:"打开 FoxWallet 应用"},step2:{description:"确保使用安全的方法备份您的钱包。永远不要与任何人共享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"扫描后,将出现连接提示,让您连接您的钱包。",title:"点击扫描按钮"}}},frontier:{qr_code:{step1:{description:"我们建议将 Frontier 钱包放在您的主屏幕上,以便更快地访问。",title:"打开 Frontier 钱包应用"},step2:{description:"确保使用安全的方法备份您的钱包。永远不要与任何人共享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"扫描后,将出现连接提示,让您连接您的钱包。",title:"点击扫描按钮"}},extension:{step1:{description:"我们建议您将Frontier钱包固定到任务栏,以便更快地访问您的钱包。",title:"安装Frontier钱包扩展"},step2:{description:"确保使用安全的方法备份您的钱包。永远不要与任何人分享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"设置完成钱包后,点击下方刷新浏览器并加载扩展。",title:"刷新你的浏览器"}}},im_token:{qr_code:{step1:{title:"打开imToken应用",description:"将imToken应用放在您的主屏幕上,以更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"创建新钱包或导入已有的钱包。"},step3:{title:"点击右上角的扫描图标",description:"选择新连接,然后扫描二维码并确认提示以进行连接。"}}},metamask:{qr_code:{step1:{title:"打开 MetaMask 应用",description:"我们建议将 MetaMask 放在您的主屏幕上,以便更快地访问。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方法备份您的钱包。永远不要与任何人分享你的秘密短语。"},step3:{title:"点击扫描按钮",description:"扫描后,将出现连接提示,以便你连接你的钱包。"}},extension:{step1:{title:"安装 MetaMask 扩展",description:"我们建议将MetaMask固定在您的任务栏上,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"请务必使用安全的方法备份您的钱包。切勿与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"一旦您设置好您的钱包,点击下面刷新浏览器并加载扩展。"}}},okx:{qr_code:{step1:{title:"打开OKX钱包应用程序",description:"我们建议将OKX钱包放在您的主屏幕上,以便更快地访问。"},step2:{title:"创建或导入钱包",description:"务必使用安全的方法备份您的钱包。千万不要与任何人分享您的秘密短语。"},step3:{title:"点击扫描按钮",description:"扫描后,将出现一个连接提示,让您连接您的钱包。"}},extension:{step1:{title:"安装 OKX 钱包扩展",description:"我们建议将 OKX 钱包固定到您的任务栏,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"务必使用安全的方法备份您的钱包。千万不要与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"一旦你设置好你的钱包,点击下方刷新浏览器并加载扩展。"}}},omni:{qr_code:{step1:{title:"打开Omni应用",description:"将Omni添加到你的主屏幕,以便更快地访问你的钱包。"},step2:{title:"创建或导入钱包",description:"创建新的钱包或导入现有的钱包。"},step3:{title:"点击QR图标并扫描",description:"点击首页的二维码图标,扫描代码并确认提示以连接。"}}},token_pocket:{qr_code:{step1:{title:"打开TokenPocket应用",description:"我们建议将TokenPocket放在您的主屏幕上以便更快的访问。"},step2:{title:"创建或导入钱包",description:"一定要使用安全的方法备份您的钱包。切勿与任何人分享您的秘密短语。"},step3:{title:"点击扫描按钮",description:"扫描后,将出现连接提示,供您连接钱包。"}},extension:{step1:{title:"安装TokenPocket扩展",description:"我们建议将TokenPocket固定到任务栏,以便更快地访问您的钱包。"},step2:{title:"创建或导入一个钱包",description:"一定要使用安全的方法备份您的钱包。绝对不要与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"设置好您的钱包后,点击下面刷新浏览器并加载扩展。"}}},trust:{qr_code:{step1:{title:"打开Trust Wallet应用",description:"将Trust Wallet放在主屏幕上,以便更快地访问您的钱包。"},step2:{title:"创建或导入一个钱包",description:"创建新的钱包或导入现有的钱包。"},step3:{title:"在设置中点击WalletConnect",description:"选择新的连接,然后扫描二维码并确认提示以进行连接。"}},extension:{step1:{title:"安装Trust Wallet扩展程序",description:"在浏览器的右上角点击并固定Trust Wallet以便于访问。"},step2:{title:"创建或导入钱包",description:"创建新的钱包或导入现有的钱包。"},step3:{title:"刷新您的浏览器",description:"设置Trust Wallet后,点击下面以刷新浏览器并加载扩展程序。"}}},uniswap:{qr_code:{step1:{title:"打开Uniswap应用",description:"将Uniswap钱包添加到您的主屏幕,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"创建新钱包或导入现有钱包。"},step3:{title:"点击QR图标并扫描",description:"在您的主屏幕上点击QR图标,扫描代码并确认提示以进行连接。"}}},zerion:{qr_code:{step1:{title:"打开Zerion应用",description:"我们建议将Zerion放在您的主屏幕上以便更快地访问。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方式备份你的钱包。绝对不要与任何人分享你的私人密语。"},step3:{title:"点击扫描按钮",description:"你扫描后,会出现一个连接提示让你连接你的钱包。"}},extension:{step1:{title:"安装 Zerion 扩展",description:"我们建议将 Zerion 固定在你的任务栏以便更快访问你的钱包。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方法备份你的钱包。永远不要与任何人分享你的秘密短语。"},step3:{title:"刷新您的浏览器",description:"设置您的钱包后,点击下面以刷新浏览器并加载扩展程序。"}}},rainbow:{qr_code:{step1:{title:"打开 Rainbow 应用",description:"我们建议将 Rainbow 放在您的主屏幕上,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"您可以使用我们的备份功能在您的手机上轻松备份你的钱包。"},step3:{title:"点击扫描按钮",description:"扫描后,将出现连接提示,让您连接您的钱包。"}}},enkrypt:{extension:{step1:{description:"我们建议将Enkrypt Wallet固定到任务栏,以便更快地访问您的钱包。",title:"安装Enkrypt Wallet扩展"},step2:{description:"请确保使用安全方法备份您的钱包。永远不要与任何人分享您的秘密短语。",title:"创建钱包或导入钱包"},step3:{description:"设置钱包后,点击下面刷新浏览器并加载扩展。",title:"刷新您的浏览器"}}},frame:{extension:{step1:{description:"我们建议将Frame固定到任务栏,以便更快地访问您的钱包。",title:"安装Frame及其配套扩展"},step2:{description:"务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。",title:"创建或导入钱包"},step3:{description:"设置钱包后,点击下方以刷新浏览器并加载扩展。",title:"刷新你的浏览器"}}},one_key:{extension:{step1:{title:"安装OneKey Wallet扩展",description:"我们建议将OneKey Wallet固定到任务栏,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方法备份您的钱包。切勿与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"设置您的钱包后,点击下方以刷新浏览器并加载扩展程序。"}}},phantom:{extension:{step1:{title:"安装 Phantom 扩展程序",description:"我们建议将 Phantom 固定到您的任务栏,以便更容易访问您的钱包。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方法备份您的钱包。切勿与任何人分享您的秘密恢复短语。"},step3:{title:"刷新您的浏览器",description:"设置好您的钱包后,点击下方以刷新浏览器并加载扩展程序。"}}},rabby:{extension:{step1:{title:"安装 Rabby 扩展程序",description:"我们建议将 Rabby 固定在您的任务栏,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"一定要使用安全的方法备份您的钱包。切勿与任何人分享您的密钥短语。"},step3:{title:"刷新您的浏览器",description:"一旦您设置好您的钱包,点击以下以刷新浏览器并加载扩展程序。"}}},safeheron:{extension:{step1:{title:"安装 Core 扩展",description:"我们建议将 Safeheron 固定在您的任务栏,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方法备份您的钱包。切勿与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"设置好您的钱包后,点击下方以刷新浏览器并加载扩展程序。"}}},taho:{extension:{step1:{title:"安装Taho扩展程序",description:"我们建议将Taho固定在您的任务栏上,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方法备份您的钱包。切勿与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"设置好您的钱包后,点击下方以刷新浏览器并加载扩展程序。"}}},talisman:{extension:{step1:{title:"安装 Talisman 扩展程序",description:"我们建议将 Talisman 固定在任务栏上,以便更快地访问您的钱包。"},step2:{title:"创建或导入以太坊钱包",description:"确保使用安全的方法备份您的钱包。永远不要与任何人分享您的恢复短语。"},step3:{title:"刷新您的浏览器",description:"设置好您的钱包后,点击下方以刷新浏览器并加载扩展程序。"}}},xdefi:{extension:{step1:{title:"安装 XDEFI 钱包扩展程序",description:"我们建议将XDEFI钱包固定到您的任务栏,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方法备份您的钱包。永远不要与任何人共享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"一旦你设置好你的钱包,点击下面刷新浏览器和加载扩展。"}}},zeal:{extension:{step1:{title:"安装Zeal扩展程序",description:"我们建议将Zeal固定在您的任务栏上,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"设置钱包后,点击下方刷新浏览器并加载扩展。"}}},safepal:{extension:{step1:{title:"安装SafePal Wallet扩展程序",description:"点击浏览器右上角并固定SafePal Wallet以便于快速访问。"},step2:{title:"创建或导入钱包。",description:"创建新钱包或导入现有钱包。"},step3:{title:"刷新您的浏览器",description:"一旦设置了SafePal钱包,点击下方刷新浏览器并加载扩展程序。"}},qr_code:{step1:{title:"打开SafePal钱包应用程序",description:"将SafePal钱包放在主屏幕上以更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"创建新钱包或导入现有钱包。"},step3:{title:"在设置中点击WalletConnect",description:"选择新连接,然后扫描二维码并确认提示以进行连接。"}}},desig:{extension:{step1:{title:"安装 Desig 扩展",description:"我们建议将 Desig 固定到任务栏,以便更轻松地访问您的钱包。"},step2:{title:"创建一个钱包",description:"务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"设置钱包后,点击下方刷新浏览器并加载扩展。"}}},subwallet:{extension:{step1:{title:"安装 SubWallet 扩展",description:"我们建议将 SubWallet 固定到任务栏,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"确保使用安全的方法备份您的钱包。永远不要与任何人分享您的恢复短语。"},step3:{title:"刷新您的浏览器",description:"设置钱包后,点击下方刷新浏览器并加载扩展。"}},qr_code:{step1:{title:"打开 SubWallet 应用",description:"我们建议将 SubWallet 放置在主屏幕上,以便更快地访问。"},step2:{title:"创建或导入钱包",description:"务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。"},step3:{title:"点击扫描按钮",description:"在您扫描后,将出现连接提示,供您连接您的钱包。"}}},clv:{extension:{step1:{title:"安装 CLV Wallet 扩展",description:"我们建议将 CLV Wallet 固定到任务栏,以便更快地访问您的钱包。"},step2:{title:"创建或导入钱包",description:"务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。"},step3:{title:"刷新您的浏览器",description:"设置钱包后,点击下方刷新浏览器并加载扩展。"}},qr_code:{step1:{title:"打开 CLV 钱包应用",description:"我们建议将 CLV 钱包添加到您的主屏幕,以便更快地访问。"},step2:{title:"创建或导入钱包",description:"务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。"},step3:{title:"点击扫描按钮",description:"在您扫描后,将出现连接提示,供您连接您的钱包。"}}},okto:{qr_code:{step1:{title:"打开 Okto 应用",description:"将 Okto 添加到您的主屏幕以便快速访问"},step2:{title:"创建一个 MPC 钱包",description:"创建一个账户并生成一个钱包"},step3:{title:"在设置中点击WalletConnect",description:"点击右上角的扫描二维码图标,并确认提示以连接。"}}},ledger:{desktop:{step1:{title:"打开Ledger Live应用",description:"我们建议将Ledger Live放在您的主屏幕上,以便更快地访问。"},step2:{title:"设置您的Ledger",description:"设置一个新的Ledger或连接到一个现有的。"},step3:{title:"连接",description:"你扫描后,会出现一个连接提示让你连接你的钱包。"}},qr_code:{step1:{title:"打开Ledger Live应用",description:"我们建议将Ledger Live放在您的主屏幕上,以便更快地访问。"},step2:{title:"设置您的Ledger",description:"您可以同步桌面应用程式,或连接您的Ledger。"},step3:{title:"扫描代码",description:"点击 WalletConnect 然后切换到扫描器。你扫描后,会出现一个连接提示让你连接你的钱包。"}}}},zh_CN_default={connect_wallet:connect_wallet13,intro:intro13,sign_in:sign_in13,connect:connect13,connect_scan:connect_scan13,connector_group:connector_group13,get:get13,get_options:get_options13,get_mobile:get_mobile13,get_instructions:get_instructions13,chains:chains13,profile:profile13,wallet_connectors:wallet_connectors13},i18n=new require$1.I18n({ar:ar_AR_default,"ar-AR":ar_AR_default,en:en_US_default,"en-US":en_US_default,es:es_419_default,"es-419":es_419_default,fr:fr_FR_default,"fr-FR":fr_FR_default,hi:hi_IN_default,"hi-IN":hi_IN_default,id:id_ID_default,"id-ID":id_ID_default,ja:ja_JP_default,"ja-JP":ja_JP_default,ko:ko_KR_default,"ko-KR":ko_KR_default,pt:pt_BR_default,"pt-BR":pt_BR_default,ru:ru_RU_default,"ru-RU":ru_RU_default,th:th_TH_default,"th-TH":th_TH_default,tr:tr_TR_default,"tr-TR":tr_TR_default,zh:zh_CN_default,"zh-CN":zh_CN_default});i18n.defaultLocale="en-US";i18n.locale="en-US";i18n.enableFallback=!0;var detectedBrowserLocale=()=>{var ht;if(typeof window<"u"&&typeof navigator<"u"){if((ht=navigator.languages)!=null&&ht.length)return navigator.languages[0];if(navigator.language)return navigator.language}},I18nContext=reactExports.createContext(i18n),I18nProvider=({children:ht,locale:Et})=>{const yt=reactExports.useMemo(()=>detectedBrowserLocale(),[]),Ct=reactExports.useMemo(()=>(Et?i18n.locale=Et:!Et&&yt&&(i18n.locale=yt),i18n),[Et,yt]);return React$8.createElement(I18nContext.Provider,{value:Ct},ht)};function isNotNullish(ht){return ht!=null}var arbitrumIcon={iconBackground:"#96bedc",iconUrl:async()=>(await __vitePreload(async()=>{const{default:ht}=await import("./arbitrum-LYDBJZP3-BqjyWlr0.js");return{default:ht}},[])).default},avalancheIcon={iconBackground:"#e84141",iconUrl:async()=>(await __vitePreload(async()=>{const{default:ht}=await import("./avalanche-TFPKP544-D_4HPsrK.js");return{default:ht}},[])).default},baseIcon={iconBackground:"#0052ff",iconUrl:async()=>(await __vitePreload(async()=>{const{default:ht}=await import("./base-3MIUIYGA-CzL856e2.js");return{default:ht}},[])).default},bscIcon={iconBackground:"#ebac0e",iconUrl:async()=>(await __vitePreload(async()=>{const{default:ht}=await import("./bsc-S2GSW6VX-CTFL85G7.js");return{default:ht}},[])).default},cronosIcon={iconBackground:"#002D74",iconUrl:async()=>(await __vitePreload(async()=>{const{default:ht}=await import("./cronos-DQKKIEX7-BC8OGSkQ.js");return{default:ht}},[])).default},ethereumIcon={iconBackground:"#484c50",iconUrl:async()=>(await __vitePreload(async()=>{const{default:ht}=await import("./ethereum-4FY57XJF-BhI8i5E7.js");return{default:ht}},[])).default},hardhatIcon={iconBackground:"#f9f7ec",iconUrl:async()=>(await __vitePreload(async()=>{const{default:ht}=await import("./hardhat-ARRFHFKB-DXjWs0mo.js");return{default:ht}},[])).default},optimismIcon={iconBackground:"#ff5a57",iconUrl:async()=>(await __vitePreload(async()=>{const{default:ht}=await import("./optimism-UUP5Y7TB-CkwAWENU.js");return{default:ht}},[])).default},polygonIcon={iconBackground:"#9f71ec",iconUrl:async()=>(await __vitePreload(async()=>{const{default:ht}=await import("./polygon-Z4QITDL7-BdYUrcfE.js");return{default:ht}},[])).default},xdcIcon={iconBackground:"#f9f7ec",iconUrl:async()=>(await __vitePreload(async()=>{const{default:ht}=await import("./xdc-5UHQ25DW-DEC0KCO4.js");return{default:ht}},[])).default},zkSyncIcon={iconBackground:"#f9f7ec",iconUrl:async()=>(await __vitePreload(async()=>{const{default:ht}=await import("./zkSync-XRUC4ZHO-BbodPLR7.js");return{default:ht}},[])).default},zoraIcon={iconBackground:"#000000",iconUrl:async()=>(await __vitePreload(async()=>{const{default:ht}=await import("./zora-KVO7WIOK-D5bRxKPW.js");return{default:ht}},[])).default},mantaIcon={iconBackground:"#ffffff",iconUrl:async()=>(await __vitePreload(async()=>{const{default:ht}=await import("./manta-JYEUAXSP-C6lt7zBL.js");return{default:ht}},[])).default},mantleIcon={iconBackground:"#000000",iconUrl:async()=>(await __vitePreload(async()=>{const{default:ht}=await import("./mantle-HHBU2HM2-UP8L7kpE.js");return{default:ht}},[])).default},chainMetadataByName={arbitrum:{chainId:42161,name:"Arbitrum",...arbitrumIcon},arbitrumGoerli:{chainId:421613,...arbitrumIcon},arbitrumSepolia:{chainId:421614,...arbitrumIcon},avalanche:{chainId:43114,...avalancheIcon},avalancheFuji:{chainId:43113,...avalancheIcon},base:{chainId:8453,name:"Base",...baseIcon},baseGoerli:{chainId:84531,...baseIcon},baseSepolia:{chainId:84532,...baseIcon},bsc:{chainId:56,name:"BSC",...bscIcon},bscTestnet:{chainId:97,...bscIcon},cronos:{chainId:25,...cronosIcon},cronosTestnet:{chainId:338,...cronosIcon},goerli:{chainId:5,...ethereumIcon},hardhat:{chainId:31337,...hardhatIcon},holesky:{chainId:17e3,...ethereumIcon},kovan:{chainId:42,...ethereumIcon},localhost:{chainId:1337,...ethereumIcon},mainnet:{chainId:1,name:"Ethereum",...ethereumIcon},optimism:{chainId:10,name:"Optimism",...optimismIcon},optimismGoerli:{chainId:420,...optimismIcon},optimismKovan:{chainId:69,...optimismIcon},optimismSepolia:{chainId:11155420,...optimismIcon},polygon:{chainId:137,name:"Polygon",...polygonIcon},polygonMumbai:{chainId:80001,...polygonIcon},rinkeby:{chainId:4,...ethereumIcon},ropsten:{chainId:3,...ethereumIcon},sepolia:{chainId:11155111,...ethereumIcon},xdc:{chainId:50,name:"XinFin",...xdcIcon},xdcTestnet:{chainId:51,...xdcIcon},zkSync:{chainId:324,name:"zkSync",...zkSyncIcon},zkSyncTestnet:{chainId:280,...zkSyncIcon},zora:{chainId:7777777,name:"Zora",...zoraIcon},zoraSepolia:{chainId:999999999,...zoraIcon},zoraTestnet:{chainId:999,...zoraIcon},manta:{chainId:169,name:"Manta",...mantaIcon},mantaSepolia:{chainId:3441006,...mantaIcon},mantaTestnet:{chainId:3441005,...mantaIcon},mantle:{chainId:5e3,...mantleIcon},mantleTestnet:{chainId:5001,...mantleIcon}},chainMetadataById=Object.fromEntries(Object.values(chainMetadataByName).filter(isNotNullish).map(({chainId:ht,...Et})=>[ht,Et])),provideRainbowKitChains=ht=>ht.map(Et=>{var yt,Ct,$t,At;const Bt=(yt=chainMetadataById[Et.id])!=null?yt:{};return{...Et,name:(Ct=Bt.name)!=null?Ct:Et.name,iconUrl:($t=Et.iconUrl)!=null?$t:Bt.iconUrl,iconBackground:(At=Et.iconBackground)!=null?At:Bt.iconBackground}}),RainbowKitChainContext=reactExports.createContext({chains:[]});function RainbowKitChainProvider({chains:ht,children:Et,initialChain:yt}){return React$8.createElement(RainbowKitChainContext.Provider,{value:reactExports.useMemo(()=>({chains:provideRainbowKitChains(ht),initialChainId:typeof yt=="number"?yt:yt==null?void 0:yt.id}),[ht,yt])},Et)}var useRainbowKitChains=()=>reactExports.useContext(RainbowKitChainContext).chains,useInitialChainId=()=>reactExports.useContext(RainbowKitChainContext).initialChainId,useRainbowKitChainsById=()=>{const ht=useRainbowKitChains();return reactExports.useMemo(()=>{const Et={};return ht.forEach(yt=>{Et[yt.id]=yt}),Et},[ht])};function useIsMounted(){const[ht,Et]=reactExports.useState(!1);return reactExports.useEffect(()=>(Et(!0),()=>{Et(!1)}),[]),reactExports.useCallback(()=>ht,[ht])}function useMainnet(){const ht=mainnet$1.id,Et=usePublicClient(),yt=Array.isArray(Et.chains)?Et.chains:[],Ct=yt==null?void 0:yt.some($t=>($t==null?void 0:$t.id)===ht);return{chainId:ht,enabled:Ct}}function useMainnetEnsAvatar(ht){const{chainId:Et,enabled:yt}=useMainnet(),{data:Ct}=useEnsAvatar({chainId:Et,enabled:yt,name:ht});return Ct}function useMainnetEnsName(ht){const{chainId:Et,enabled:yt}=useMainnet(),{data:Ct}=useEnsName({address:ht,chainId:Et,enabled:yt});return Ct}function useChainId(){var ht;const{chain:Et}=useNetwork();return(ht=Et==null?void 0:Et.id)!=null?ht:null}var storageKey="rk-transactions";function safeParseJsonData(ht){try{const Et=ht?JSON.parse(ht):{};return typeof Et=="object"?Et:{}}catch{return{}}}function loadData(){return safeParseJsonData(typeof localStorage<"u"?localStorage.getItem(storageKey):null)}var transactionHashRegex=/^0x([A-Fa-f0-9]{64})$/;function validateTransaction(ht){const Et=[];return transactionHashRegex.test(ht.hash)||Et.push("Invalid transaction hash"),typeof ht.description!="string"&&Et.push("Transaction must have a description"),typeof ht.confirmations<"u"&&(!Number.isInteger(ht.confirmations)||ht.confirmations<1)&&Et.push("Transaction confirmations must be a positiver integer"),Et}function createTransactionStore({provider:ht}){let Et=loadData(),yt=ht;const Ct=new Set,$t=new Map;function At(Kt){yt=Kt}function Bt(Kt,Xt){var Qt,Zt;return(Zt=(Qt=Et[Kt])==null?void 0:Qt[Xt])!=null?Zt:[]}function Dt(Kt,Xt,Qt){const Zt=validateTransaction(Qt);if(Zt.length>0)throw new Error(["Unable to add transaction",...Zt].join(`
`));Nt(Kt,Xt,dr=>[{...Qt,status:"pending"},...dr.filter(({hash:cr})=>cr!==Qt.hash)])}function Ft(Kt,Xt){Nt(Kt,Xt,()=>[])}function kt(Kt,Xt,Qt,Zt){Nt(Kt,Xt,dr=>dr.map(cr=>cr.hash===Qt?{...cr,status:Zt}:cr))}async function Mt(Kt,Xt){await Promise.all(Bt(Kt,Xt).filter(Qt=>Qt.status==="pending").map(async Qt=>{const{confirmations:Zt,hash:dr}=Qt,cr=$t.get(dr);if(cr)return await cr;const Er=yt.waitForTransactionReceipt({confirmations:Zt,hash:dr}).then(({status:pr})=>{$t.delete(dr),pr!==void 0&&kt(Kt,Xt,dr,pr===0||pr==="reverted"?"failed":"confirmed")});return $t.set(dr,Er),await Er}))}function Nt(Kt,Xt,Qt){var Zt,dr;Et=loadData(),Et[Kt]=(Zt=Et[Kt])!=null?Zt:{};let cr=0;const Er=10,pr=Qt((dr=Et[Kt][Xt])!=null?dr:[]).filter(({status:gr})=>gr==="pending"?!0:cr++<=Er);Et[Kt][Xt]=pr.length>0?pr:void 0,jt(),zt(),Mt(Kt,Xt)}function jt(){localStorage.setItem(storageKey,JSON.stringify(Et))}function zt(){Ct.forEach(Kt=>Kt())}function Vt(Kt){return Ct.add(Kt),()=>{Ct.delete(Kt)}}return{addTransaction:Dt,clearTransactions:Ft,getTransactions:Bt,onChange:Vt,setProvider:At,waitForPendingTransactions:Mt}}var storeSingleton,TransactionStoreContext=reactExports.createContext(null);function TransactionStoreProvider({children:ht}){const Et=usePublicClient(),{address:yt}=useAccount(),Ct=useChainId(),[$t]=reactExports.useState(()=>storeSingleton??(storeSingleton=createTransactionStore({provider:Et})));return reactExports.useEffect(()=>{$t.setProvider(Et)},[$t,Et]),reactExports.useEffect(()=>{yt&&Ct&&$t.waitForPendingTransactions(yt,Ct)},[$t,yt,Ct]),React$8.createElement(TransactionStoreContext.Provider,{value:$t},ht)}function useTransactionStore(){const ht=reactExports.useContext(TransactionStoreContext);if(!ht)throw new Error("Transaction hooks must be used within RainbowKitProvider");return ht}function useRecentTransactions(){const ht=useTransactionStore(),{address:Et}=useAccount(),yt=useChainId(),[Ct,$t]=reactExports.useState(()=>ht&&Et&&yt?ht.getTransactions(Et,yt):[]);return reactExports.useEffect(()=>{if(ht&&Et&&yt)return $t(ht.getTransactions(Et,yt)),ht.onChange(()=>{$t(ht.getTransactions(Et,yt))})},[ht,Et,yt]),Ct}var resolveThemeVars=ht=>typeof ht=="function"?ht():ht;function cssObjectFromTheme(ht,{extends:Et}={}){const yt={...assignInlineVars(themeVars,resolveThemeVars(ht))};if(!Et)return yt;const Ct=assignInlineVars(themeVars,resolveThemeVars(Et));return Object.fromEntries(Object.entries(yt).filter(([At,Bt])=>Bt!==Ct[At]))}function cssStringFromTheme(ht,Et={}){return Object.entries(cssObjectFromTheme(ht,Et)).map(([yt,Ct])=>`${yt}:${Ct.replace(/[:;{}</>]/g,"")};`).join("")}var defaultAppInfo={appName:void 0,disclaimer:void 0,learnMoreUrl:"https://learn.rainbow.me/understanding-web3?utm_source=rainbowkit&utm_campaign=learnmore"},AppContext$2=reactExports.createContext(defaultAppInfo),CoolModeContext=reactExports.createContext(!1),useWindowSize=()=>{const[ht,Et]=reactExports.useState({height:void 0,width:void 0});return reactExports.useEffect(()=>{function yt(){Et({height:window.innerHeight,width:window.innerWidth})}return window.addEventListener("resize",yt),yt(),()=>window.removeEventListener("resize",yt)},[]),ht},WalletButtonContext=reactExports.createContext({connector:null,setConnector:()=>{}});function WalletButtonProvider({children:ht}){const[Et,yt]=reactExports.useState(null);return React$8.createElement(WalletButtonContext.Provider,{value:reactExports.useMemo(()=>({connector:Et,setConnector:yt}),[Et])},ht)}var ModalSizeOptions={COMPACT:"compact",WIDE:"wide"},ModalSizeContext=reactExports.createContext(ModalSizeOptions.WIDE);function ModalSizeProvider({children:ht,modalSize:Et}){const{width:yt}=useWindowSize(),Ct=yt&&yt<largeScreenMinWidth,{connector:$t}=reactExports.useContext(WalletButtonContext);return React$8.createElement(ModalSizeContext.Provider,{value:Ct||$t?ModalSizeOptions.COMPACT:Et},ht)}var ShowRecentTransactionsContext=reactExports.createContext(!1),storageKey2="rk-version";function setRainbowKitVersion({version:ht}){localStorage.setItem(storageKey2,ht)}function useFingerprint(){const ht=reactExports.useCallback(()=>{setRainbowKitVersion({version:"1.3.1"})},[]);reactExports.useEffect(()=>{ht()},[ht])}function flatten$1(ht){const Et=[];for(const yt of ht)Et.push(...yt);return Et}function indexBy(ht,Et){const yt={};return ht.forEach(Ct=>{const $t=Et(Ct);$t&&(yt[$t]=Ct)}),yt}function isSafari(){return typeof navigator<"u"&&/Version\/([0-9._]+).*Safari/.test(navigator.userAgent)}function isArc(){return typeof document<"u"&&getComputedStyle(document.body).getPropertyValue("--arc-palette-focus")!==""}function getBrowser(){var ht;if(typeof navigator>"u")return"Browser";const Et=navigator.userAgent.toLowerCase();return(ht=navigator.brave)!=null&&ht.isBrave?"Brave":Et.indexOf("edg/")>-1?"Edge":Et.indexOf("op")>-1?"Opera":isArc()?"Arc":Et.indexOf("chrome")>-1?"Chrome":Et.indexOf("firefox")>-1?"Firefox":isSafari()?"Safari":"Browser"}var ua=uaParserExports.UAParser(),{os}=ua;function isWindows(){return os.name==="Windows"}function isMacOS(){return os.name==="Mac OS"}function isLinux(){return["Ubuntu","Mint","Fedora","Debian","Arch","Linux"].includes(os.name)}function getPlatform(){return isWindows()?"Windows":isMacOS()?"macOS":isLinux()?"Linux":"Desktop"}var getExtensionDownloadUrl=ht=>{var Et,yt,Ct,$t,At,Bt,Dt,Ft,kt,Mt,Nt,jt;const zt=getBrowser();return(jt={Arc:(Et=ht==null?void 0:ht.downloadUrls)==null?void 0:Et.chrome,Brave:(yt=ht==null?void 0:ht.downloadUrls)==null?void 0:yt.chrome,Chrome:(Ct=ht==null?void 0:ht.downloadUrls)==null?void 0:Ct.chrome,Edge:(($t=ht==null?void 0:ht.downloadUrls)==null?void 0:$t.edge)||((At=ht==null?void 0:ht.downloadUrls)==null?void 0:At.chrome),Firefox:(Bt=ht==null?void 0:ht.downloadUrls)==null?void 0:Bt.firefox,Opera:((Dt=ht==null?void 0:ht.downloadUrls)==null?void 0:Dt.opera)||((Ft=ht==null?void 0:ht.downloadUrls)==null?void 0:Ft.chrome),Safari:(kt=ht==null?void 0:ht.downloadUrls)==null?void 0:kt.safari,Browser:(Mt=ht==null?void 0:ht.downloadUrls)==null?void 0:Mt.browserExtension}[zt])!=null?jt:(Nt=ht==null?void 0:ht.downloadUrls)==null?void 0:Nt.browserExtension},getMobileDownloadUrl=ht=>{var Et,yt,Ct,$t;return($t=isIOS()?(Et=ht==null?void 0:ht.downloadUrls)==null?void 0:Et.ios:(yt=ht==null?void 0:ht.downloadUrls)==null?void 0:yt.android)!=null?$t:(Ct=ht==null?void 0:ht.downloadUrls)==null?void 0:Ct.mobile},getDesktopDownloadUrl=ht=>{var Et,yt,Ct,$t,At,Bt;const Dt=getPlatform();return(Bt={Windows:(Et=ht==null?void 0:ht.downloadUrls)==null?void 0:Et.windows,macOS:(yt=ht==null?void 0:ht.downloadUrls)==null?void 0:yt.macos,Linux:(Ct=ht==null?void 0:ht.downloadUrls)==null?void 0:Ct.linux,Desktop:($t=ht==null?void 0:ht.downloadUrls)==null?void 0:$t.desktop}[Dt])!=null?Bt:(At=ht==null?void 0:ht.downloadUrls)==null?void 0:At.desktop},storageKey3="rk-recent";function safeParseJsonArray(ht){try{const Et=ht?JSON.parse(ht):[];return Array.isArray(Et)?Et:[]}catch{return[]}}function getRecentWalletIds(){return typeof localStorage<"u"?safeParseJsonArray(localStorage.getItem(storageKey3)):[]}function dedupe(ht){return[...new Set(ht)]}function addRecentWalletId(ht){const Et=dedupe([ht,...getRecentWalletIds()]);localStorage.setItem(storageKey3,JSON.stringify(Et))}function useWalletConnectors(){const ht=useRainbowKitChains(),Et=useInitialChainId(),{connectAsync:yt,connectors:Ct}=useConnect(),$t=Ct;async function At(zt,Vt){var Kt,Xt,Qt;const Zt=await Vt.getChainId(),dr=await yt({chainId:(Qt=Et??((Kt=ht.find(({id:cr})=>cr===Zt))==null?void 0:Kt.id))!=null?Qt:(Xt=ht[0])==null?void 0:Xt.id,connector:Vt});return dr&&addRecentWalletId(zt),dr}async function Bt(zt,Vt){try{return await At(zt,Vt)}catch(Kt){if(!(Kt.name==="UserRejectedRequestError"||Kt.message==="Connection request reset. Please try again."))throw Kt}}const Dt=flatten$1($t.map(zt=>{var Vt;return(Vt=zt._wallets)!=null?Vt:[]})).sort((zt,Vt)=>zt.index-Vt.index),Ft=indexBy(Dt,zt=>zt.id),Mt=getRecentWalletIds().map(zt=>Ft[zt]).filter(isNotNullish).slice(0,3),Nt=[...Mt,...Dt.filter(zt=>!Mt.includes(zt))],jt=[];return Nt.forEach(zt=>{var Vt;if(!zt)return;const Kt=Mt.includes(zt);jt.push({...zt,connect:()=>zt.connector.showQrModal?Bt(zt.id,zt.connector):At(zt.id,zt.connector),desktopDownloadUrl:getDesktopDownloadUrl(zt),extensionDownloadUrl:getExtensionDownloadUrl(zt),groupName:zt.groupName,mobileDownloadUrl:getMobileDownloadUrl(zt),onConnecting:Xt=>zt.connector.on("message",({type:Qt})=>Qt==="connecting"?Xt():void 0),ready:((Vt=zt.installed)!=null?Vt:!0)&&zt.connector.ready,recent:Kt,showWalletConnectModal:zt.walletConnectModalConnector?()=>Bt(zt.id,zt.walletConnectModalConnector):void 0})}),jt}var src=async()=>(await __vitePreload(async()=>{const{default:ht}=await import("./assets-26YY4GVD-unq2KRLS.js");return{default:ht}},[])).default,preloadAssetsIcon=()=>loadImages(src),AssetsIcon=()=>React$8.createElement(AsyncImage,{background:"#d0d5de",borderRadius:"10",height:"48",src,width:"48"}),src2=async()=>(await __vitePreload(async()=>{const{default:ht}=await import("./login-ZSMM5UYL-Dwac7LJ-.js");return{default:ht}},[])).default,preloadLoginIcon=()=>loadImages(src2),LoginIcon=()=>React$8.createElement(AsyncImage,{background:"#d0d5de",borderRadius:"10",height:"48",src:src2,width:"48"}),Text=React$8.forwardRef(({as:ht="div",children:Et,className:yt,color:Ct,display:$t,font:At="body",id:Bt,size:Dt="16",style:Ft,tabIndex:kt,textAlign:Mt="inherit",weight:Nt="regular",testId:jt},zt)=>React$8.createElement(Box,{as:ht,className:yt,color:Ct,display:$t,fontFamily:At,fontSize:Dt,fontWeight:Nt,id:Bt,ref:zt,style:Ft,tabIndex:kt,textAlign:Mt,testId:jt},Et));Text.displayName="Text";var sizeVariants={large:{fontSize:"16",paddingX:"24",paddingY:"10"},medium:{fontSize:"14",height:"28",paddingX:"12",paddingY:"4"},small:{fontSize:"14",paddingX:"10",paddingY:"5"}};function ActionButton$1({disabled:ht=!1,href:Et,label:yt,onClick:Ct,rel:$t="noreferrer noopener",size:At="medium",target:Bt="_blank",testId:Dt,type:Ft="primary"}){const kt=Ft==="primary",Mt=At!=="large",Nt=isMobile$4(),jt=ht?"actionButtonSecondaryBackground":kt?"accentColor":Mt?"actionButtonSecondaryBackground":null,{fontSize:zt,height:Vt,paddingX:Kt,paddingY:Xt}=sizeVariants[At],Qt=!Nt||!Mt;return React$8.createElement(Box,{...Et?ht?{}:{as:"a",href:Et,rel:$t,target:Bt}:{as:"button",type:"button"},onClick:ht?void 0:Ct,...Qt?{borderColor:Nt&&!Mt&&!kt?"actionButtonBorderMobile":"actionButtonBorder",borderStyle:"solid",borderWidth:"1"}:{},borderRadius:"actionButton",className:!ht&&touchableStyles({active:"shrinkSm",hover:"grow"}),display:"block",paddingX:Kt,paddingY:Xt,style:{willChange:"transform"},testId:Dt,textAlign:"center",transition:"transform",...jt?{background:jt}:{},...Vt?{height:Vt}:{}},React$8.createElement(Text,{color:ht?"modalTextSecondary":kt?"accentColorForeground":"accentColor",size:zt,weight:"bold"},yt))}var CloseIcon=()=>isMobile$4()?React$8.createElement("svg",{"aria-hidden":!0,fill:"none",height:"11.5",viewBox:"0 0 11.5 11.5",width:"11.5",xmlns:"http://www.w3.org/2000/svg"},React$8.createElement("path",{d:"M2.13388 0.366117C1.64573 -0.122039 0.854272 -0.122039 0.366117 0.366117C-0.122039 0.854272 -0.122039 1.64573 0.366117 2.13388L3.98223 5.75L0.366117 9.36612C-0.122039 9.85427 -0.122039 10.6457 0.366117 11.1339C0.854272 11.622 1.64573 11.622 2.13388 11.1339L5.75 7.51777L9.36612 11.1339C9.85427 11.622 10.6457 11.622 11.1339 11.1339C11.622 10.6457 11.622 9.85427 11.1339 9.36612L7.51777 5.75L11.1339 2.13388C11.622 1.64573 11.622 0.854272 11.1339 0.366117C10.6457 -0.122039 9.85427 -0.122039 9.36612 0.366117L5.75 3.98223L2.13388 0.366117Z",fill:"currentColor"})):React$8.createElement("svg",{"aria-hidden":!0,fill:"none",height:"10",viewBox:"0 0 10 10",width:"10",xmlns:"http://www.w3.org/2000/svg"},React$8.createElement("path",{d:"M1.70711 0.292893C1.31658 -0.0976311 0.683417 -0.0976311 0.292893 0.292893C-0.0976311 0.683417 -0.0976311 1.31658 0.292893 1.70711L3.58579 5L0.292893 8.29289C-0.0976311 8.68342 -0.0976311 9.31658 0.292893 9.70711C0.683417 10.0976 1.31658 10.0976 1.70711 9.70711L5 6.41421L8.29289 9.70711C8.68342 10.0976 9.31658 10.0976 9.70711 9.70711C10.0976 9.31658 10.0976 8.68342 9.70711 8.29289L6.41421 5L9.70711 1.70711C10.0976 1.31658 10.0976 0.683417 9.70711 0.292893C9.31658 -0.0976311 8.68342 -0.0976311 8.29289 0.292893L5 3.58579L1.70711 0.292893Z",fill:"currentColor"})),CloseButton=({"aria-label":ht="Close",onClose:Et})=>{const yt=isMobile$4();return React$8.createElement(Box,{alignItems:"center","aria-label":ht,as:"button",background:"closeButtonBackground",borderColor:"actionButtonBorder",borderRadius:"full",borderStyle:"solid",borderWidth:yt?"0":"1",className:touchableStyles({active:"shrinkSm",hover:"growLg"}),color:"closeButton",display:"flex",height:yt?"30":"28",justifyContent:"center",onClick:Et,style:{willChange:"transform"},transition:"default",type:"button",width:yt?"30":"28"},React$8.createElement(CloseIcon,null))},signInIcon=async()=>(await __vitePreload(async()=>{const{default:ht}=await import("./sign-FZVB2CS6-CGsRnPrd.js");return{default:ht}},[])).default;function SignIn({onClose:ht}){const Et=reactExports.useContext(I18nContext),[{status:yt,...Ct},$t]=React$8.useState({status:"idle"}),At=useAuthenticationAdapter(),Bt=reactExports.useCallback(async()=>{try{const zt=await At.getNonce();$t(Vt=>({...Vt,nonce:zt}))}catch{$t(zt=>({...zt,errorMessage:Et.t("sign_in.message.preparing_error"),status:"idle"}))}},[At,Et]),Dt=reactExports.useRef(!1);React$8.useEffect(()=>{Dt.current||(Dt.current=!0,Bt())},[Bt]);const Ft=isMobile$4(),{address:kt}=useAccount(),{chain:Mt}=useNetwork(),{signMessageAsync:Nt}=useSignMessage(),jt=async()=>{try{const zt=Mt==null?void 0:Mt.id,{nonce:Vt}=Ct;if(!kt||!zt||!Vt)return;$t(Qt=>({...Qt,errorMessage:void 0,status:"signing"}));const Kt=At.createMessage({address:kt,chainId:zt,nonce:Vt});let Xt;try{Xt=await Nt({message:At.getMessageBody({message:Kt})})}catch(Qt){return Qt instanceof UserRejectedRequestError?$t(Zt=>({...Zt,status:"idle"})):$t(Zt=>({...Zt,errorMessage:Et.t("sign_in.signature.signing_error"),status:"idle"}))}$t(Qt=>({...Qt,status:"verifying"}));try{if(await At.verify({message:Kt,signature:Xt}))return;throw new Error}catch{return $t(Qt=>({...Qt,errorMessage:Et.t("sign_in.signature.verifying_error"),status:"idle"}))}}catch{$t({errorMessage:Et.t("sign_in.signature.oops_error"),status:"idle"})}};return React$8.createElement(Box,{position:"relative"},React$8.createElement(Box,{display:"flex",paddingRight:"16",paddingTop:"16",position:"absolute",right:"0"},React$8.createElement(CloseButton,{onClose:ht})),React$8.createElement(Box,{alignItems:"center",display:"flex",flexDirection:"column",gap:Ft?"32":"24",padding:"24",paddingX:"18",style:{paddingTop:Ft?"60px":"36px"}},React$8.createElement(Box,{alignItems:"center",display:"flex",flexDirection:"column",gap:Ft?"6":"4",style:{maxWidth:Ft?320:280}},React$8.createElement(Box,{alignItems:"center",display:"flex",flexDirection:"column",gap:Ft?"32":"16"},React$8.createElement(AsyncImage,{height:40,src:signInIcon,width:40}),React$8.createElement(Text,{color:"modalText",size:Ft?"20":"18",textAlign:"center",weight:"heavy"},Et.t("sign_in.label"))),React$8.createElement(Box,{alignItems:"center",display:"flex",flexDirection:"column",gap:Ft?"16":"12"},React$8.createElement(Text,{color:"modalTextSecondary",size:Ft?"16":"14",textAlign:"center"},Et.t("sign_in.description")),yt==="idle"&&Ct.errorMessage?React$8.createElement(Text,{color:"error",size:Ft?"16":"14",textAlign:"center",weight:"bold"},Ct.errorMessage):null)),React$8.createElement(Box,{alignItems:Ft?void 0:"center",display:"flex",flexDirection:"column",gap:"8",width:"full"},React$8.createElement(ActionButton$1,{disabled:!Ct.nonce||yt==="signing"||yt==="verifying",label:Ct.nonce?yt==="signing"?Et.t("sign_in.signature.waiting"):yt==="verifying"?Et.t("sign_in.signature.verifying"):Et.t("sign_in.message.send"):Et.t("sign_in.message.preparing"),onClick:jt,size:Ft?"large":"medium",testId:"auth-message-button"}),Ft?React$8.createElement(ActionButton$1,{label:"Cancel",onClick:ht,size:"large",type:"secondary"}):React$8.createElement(Box,{as:"button",borderRadius:"full",className:touchableStyles({active:"shrink",hover:"grow"}),display:"block",onClick:ht,paddingX:"10",paddingY:"5",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},React$8.createElement(Text,{color:"closeButton",size:Ft?"16":"14",weight:"bold"},Et.t("sign_in.message.cancel"))))))}function usePreloadImages(){const ht=useRainbowKitChains(),Et=useWalletConnectors(),yt=useAuthenticationStatus()==="unauthenticated",Ct=reactExports.useCallback(()=>{loadImages(...Et.map($t=>$t.iconUrl),...ht.map($t=>$t.iconUrl).filter(isNotNullish)),isMobile$4()||(preloadAssetsIcon(),preloadLoginIcon()),yt&&loadImages(signInIcon)},[Et,ht,yt]);reactExports.useEffect(()=>{Ct()},[Ct])}var storageKey4="WALLETCONNECT_DEEPLINK_CHOICE";function setWalletConnectDeepLink({mobileUri:ht,name:Et}){localStorage.setItem(storageKey4,JSON.stringify({href:ht.split("?")[0],name:Et}))}function clearWalletConnectDeepLink(){localStorage.removeItem(storageKey4)}var ThemeIdContext=reactExports.createContext(void 0),attr="data-rk",createThemeRootProps=ht=>({[attr]:ht||""}),createThemeRootSelector=ht=>{if(ht&&!/^[a-zA-Z0-9_]+$/.test(ht))throw new Error(`Invalid ID: ${ht}`);return ht?`[${attr}="${ht}"]`:`[${attr}]`},useThemeRootProps=()=>{const ht=reactExports.useContext(ThemeIdContext);return createThemeRootProps(ht)},defaultTheme$1=lightTheme();function RainbowKitProvider({appInfo:ht,avatar:Et,chains:yt,children:Ct,coolMode:$t=!1,id:At,initialChain:Bt,locale:Dt,modalSize:Ft=ModalSizeOptions.WIDE,showRecentTransactions:kt=!1,theme:Mt=defaultTheme$1}){if(usePreloadImages(),useFingerprint(),useAccount({onDisconnect:clearWalletConnectDeepLink}),typeof Mt=="function")throw new Error('A theme function was provided to the "theme" prop instead of a theme object. You must execute this function to get the resulting theme object.');const Nt=createThemeRootSelector(At),jt={...defaultAppInfo,...ht},zt=Et??defaultAvatar;return React$8.createElement(RainbowKitChainProvider,{chains:yt,initialChain:Bt},React$8.createElement(WalletButtonProvider,null,React$8.createElement(I18nProvider,{locale:Dt},React$8.createElement(CoolModeContext.Provider,{value:$t},React$8.createElement(ModalSizeProvider,{modalSize:Ft},React$8.createElement(ShowRecentTransactionsContext.Provider,{value:kt},React$8.createElement(TransactionStoreProvider,null,React$8.createElement(AvatarContext.Provider,{value:zt},React$8.createElement(AppContext$2.Provider,{value:jt},React$8.createElement(ThemeIdContext.Provider,{value:At},React$8.createElement(ModalProvider,null,Mt?React$8.createElement("div",{...createThemeRootProps(At)},React$8.createElement("style",{dangerouslySetInnerHTML:{__html:[`${Nt}{${cssStringFromTheme("lightMode"in Mt?Mt.lightMode:Mt)}}`,"darkMode"in Mt?`@media(prefers-color-scheme:dark){${Nt}{${cssStringFromTheme(Mt.darkMode,{extends:Mt.lightMode})}}}`:null].join("")}}),Ct):Ct)))))))))))}var content$1="_9pm4ki5 ju367va ju367v15 ju367v8r",overlay="_9pm4ki3 ju367v9g ju367vb2 ju367va ju367v2q ju367v8q",moveFocusWithin=(ht,Et)=>{const yt=ht.querySelectorAll("button:not(:disabled), a[href]");yt.length!==0&&yt[Et==="end"?yt.length-1:0].focus()};function FocusTrap(ht){const Et=reactExports.useRef(null);return reactExports.useEffect(()=>{const yt=document.activeElement;return()=>{var Ct;(Ct=yt.focus)==null||Ct.call(yt)}},[]),reactExports.useEffect(()=>{if(Et.current){const yt=Et.current.querySelector("[data-auto-focus]");yt?yt.focus():Et.current.focus()}},[]),React$8.createElement(React$8.Fragment,null,React$8.createElement("div",{onFocus:reactExports.useCallback(()=>Et.current&&moveFocusWithin(Et.current,"end"),[]),tabIndex:0}),React$8.createElement("div",{ref:Et,style:{outline:"none"},tabIndex:-1,...ht}),React$8.createElement("div",{onFocus:reactExports.useCallback(()=>Et.current&&moveFocusWithin(Et.current,"start"),[]),tabIndex:0}))}var stopPropagation=ht=>ht.stopPropagation();function Dialog$1({children:ht,onClose:Et,open:yt,titleId:Ct}){reactExports.useEffect(()=>{const kt=Mt=>yt&&Mt.key==="Escape"&&Et();return document.addEventListener("keydown",kt),()=>document.removeEventListener("keydown",kt)},[yt,Et]);const[$t,At]=reactExports.useState(!0);reactExports.useEffect(()=>{At(getComputedStyle(window.document.body).overflow!=="hidden")},[]);const Bt=reactExports.useCallback(()=>Et(),[Et]),Dt=useThemeRootProps(),Ft=isMobile$4();return React$8.createElement(React$8.Fragment,null,yt?reactDomExports.createPortal(React$8.createElement(ReactRemoveScroll,{enabled:$t},React$8.createElement(Box,{...Dt},React$8.createElement(Box,{...Dt,alignItems:Ft?"flex-end":"center","aria-labelledby":Ct,"aria-modal":!0,className:overlay,onClick:Bt,position:"fixed",role:"dialog"},React$8.createElement(FocusTrap,{className:content$1,onClick:stopPropagation,role:"document"},ht)))),document.body):null)}var bottomSheetOverrides="_1ckjpok7",dialogContent="_1ckjpok1 ju367vb5 ju367vdq ju367vp ju367vt ju367vv ju367vek ju367va ju367v15 ju367v6c ju367v8r",dialogContentCompactMode="_1ckjpok4 _1ckjpok1 ju367vb5 ju367vdq ju367vp ju367vt ju367vv ju367vek ju367va ju367v15 ju367v6c ju367v8r",dialogContentMobile="_1ckjpok6 ju367vq",dialogContentWideDesktop="_1ckjpok3 _1ckjpok1 ju367vb5 ju367vdq ju367vp ju367vt ju367vv ju367vek ju367va ju367v15 ju367v6c ju367v8r",dialogContentWideMobile="_1ckjpok2 _1ckjpok1 ju367vb5 ju367vdq ju367vp ju367vt ju367vv ju367vek ju367va ju367v15 ju367v6c ju367v8r";function DialogContent({bottomSheetOnMobile:ht=!1,children:Et,marginTop:yt,padding:Ct="16",paddingBottom:$t,wide:At=!1}){const Bt=isMobile$4(),Ft=reactExports.useContext(ModalSizeContext)===ModalSizeOptions.COMPACT;return React$8.createElement(Box,{marginTop:yt},React$8.createElement(Box,{className:[At?Bt?dialogContentWideMobile:Ft?dialogContentCompactMode:dialogContentWideDesktop:dialogContent,Bt?dialogContentMobile:null,Bt&&ht?bottomSheetOverrides:null].join(" ")},React$8.createElement(Box,{padding:Ct,paddingBottom:$t??Ct},Et)))}var units=["k","m","b","t"];function toPrecision(ht,Et=1){return ht.toString().replace(new RegExp(`(.+\\.\\d{${Et}})\\d+`),"$1").replace(/(\.[1-9]*)0+$/,"$1").replace(/\.$/,"")}function abbreviateETHBalance(ht){if(ht<1)return toPrecision(ht,3);if(ht<10**2)return toPrecision(ht,2);if(ht<10**4)return new Intl.NumberFormat().format(parseFloat(toPrecision(ht,1)));const Et=10**1;let yt=String(ht);for(let Ct=units.length-1;Ct>=0;Ct--){const $t=10**((Ct+1)*3);if($t<=ht){ht=ht*Et/$t/Et,yt=toPrecision(ht,1)+units[Ct];break}}return yt}function formatAddress(ht){return ht.length<8?ht:`${ht.substring(0,4)}…${ht.substring(ht.length-4)}`}function formatENS(ht){const Et=ht.split("."),yt=Et.pop();return Et.join(".").length>24?`${Et.join(".").substring(0,24)}...`:`${Et.join(".")}.${yt}`}var CopiedIcon=()=>React$8.createElement("svg",{fill:"none",height:"13",viewBox:"0 0 13 13",width:"13",xmlns:"http://www.w3.org/2000/svg"},React$8.createElement("path",{d:"M4.94568 12.2646C5.41052 12.2646 5.77283 12.0869 6.01892 11.7109L12.39 1.96973C12.5677 1.69629 12.6429 1.44336 12.6429 1.2041C12.6429 0.561523 12.1644 0.0966797 11.5082 0.0966797C11.057 0.0966797 10.7767 0.260742 10.5033 0.691406L4.9115 9.50977L2.07458 5.98926C1.82166 5.68848 1.54822 5.55176 1.16541 5.55176C0.502319 5.55176 0.0238037 6.02344 0.0238037 6.66602C0.0238037 6.95312 0.112671 7.20605 0.358765 7.48633L3.88611 11.7588C4.18005 12.1074 4.50818 12.2646 4.94568 12.2646Z",fill:"currentColor"})),CopyIcon=()=>React$8.createElement("svg",{fill:"none",height:"16",viewBox:"0 0 17 16",width:"17",xmlns:"http://www.w3.org/2000/svg"},React$8.createElement("path",{d:"M3.04236 12.3027H4.18396V13.3008C4.18396 14.8525 5.03845 15.7002 6.59705 15.7002H13.6244C15.183 15.7002 16.0375 14.8525 16.0375 13.3008V6.24609C16.0375 4.69434 15.183 3.84668 13.6244 3.84668H12.4828V2.8418C12.4828 1.29688 11.6283 0.442383 10.0697 0.442383H3.04236C1.48376 0.442383 0.629272 1.29004 0.629272 2.8418V9.90332C0.629272 11.4551 1.48376 12.3027 3.04236 12.3027ZM3.23376 10.5391C2.68689 10.5391 2.39294 10.2656 2.39294 9.68457V3.06055C2.39294 2.47949 2.68689 2.21289 3.23376 2.21289H9.8783C10.4252 2.21289 10.7191 2.47949 10.7191 3.06055V3.84668H6.59705C5.03845 3.84668 4.18396 4.69434 4.18396 6.24609V10.5391H3.23376ZM6.78845 13.9365C6.24158 13.9365 5.94763 13.6699 5.94763 13.0889V6.45801C5.94763 5.87695 6.24158 5.61035 6.78845 5.61035H13.433C13.9799 5.61035 14.2738 5.87695 14.2738 6.45801V13.0889C14.2738 13.6699 13.9799 13.9365 13.433 13.9365H6.78845Z",fill:"currentColor"})),DisconnectIcon=()=>React$8.createElement("svg",{fill:"none",height:"16",viewBox:"0 0 18 16",width:"18",xmlns:"http://www.w3.org/2000/svg"},React$8.createElement("path",{d:"M2.67834 15.5908H9.99963C11.5514 15.5908 12.399 14.7432 12.399 13.1777V10.2656H10.6354V12.9863C10.6354 13.5332 10.3688 13.8271 9.78772 13.8271H2.89026C2.3092 13.8271 2.0426 13.5332 2.0426 12.9863V3.15625C2.0426 2.60254 2.3092 2.30859 2.89026 2.30859H9.78772C10.3688 2.30859 10.6354 2.60254 10.6354 3.15625V5.89746H12.399V2.95801C12.399 1.39941 11.5514 0.544922 9.99963 0.544922H2.67834C1.12659 0.544922 0.278931 1.39941 0.278931 2.95801V13.1777C0.278931 14.7432 1.12659 15.5908 2.67834 15.5908ZM7.43616 8.85059H14.0875L15.0924 8.78906L14.566 9.14453L13.6842 9.96484C13.5406 10.1016 13.4586 10.2861 13.4586 10.4844C13.4586 10.8398 13.7321 11.168 14.1217 11.168C14.3199 11.168 14.4635 11.0928 14.6002 10.9561L16.7809 8.68652C16.986 8.48145 17.0543 8.27637 17.0543 8.06445C17.0543 7.85254 16.986 7.64746 16.7809 7.43555L14.6002 5.17285C14.4635 5.03613 14.3199 4.9541 14.1217 4.9541C13.7321 4.9541 13.4586 5.27539 13.4586 5.6377C13.4586 5.83594 13.5406 6.02734 13.6842 6.15723L14.566 6.98438L15.0924 7.33984L14.0875 7.27148H7.43616C7.01917 7.27148 6.65686 7.62012 6.65686 8.06445C6.65686 8.50195 7.01917 8.85059 7.43616 8.85059Z",fill:"currentColor"}));function useClearRecentTransactions(){const ht=useTransactionStore(),{address:Et}=useAccount(),yt=useChainId();return reactExports.useCallback(()=>{if(!Et||!yt)throw new Error("No address or chain ID found");ht.clearTransactions(Et,yt)},[ht,Et,yt])}var chainToExplorerUrl=ht=>{var Et,yt;return(yt=(Et=ht==null?void 0:ht.blockExplorers)==null?void 0:Et.default)==null?void 0:yt.url},ExternalLinkIcon=()=>React$8.createElement("svg",{fill:"none",height:"19",viewBox:"0 0 20 19",width:"20",xmlns:"http://www.w3.org/2000/svg"},React$8.createElement("path",{d:"M10 18.9443C15.0977 18.9443 19.2812 14.752 19.2812 9.6543C19.2812 4.56543 15.0889 0.373047 10 0.373047C4.90234 0.373047 0.71875 4.56543 0.71875 9.6543C0.71875 14.752 4.91113 18.9443 10 18.9443ZM10 16.6328C6.1416 16.6328 3.03906 13.5215 3.03906 9.6543C3.03906 5.7959 6.13281 2.68457 10 2.68457C13.8584 2.68457 16.9697 5.7959 16.9697 9.6543C16.9785 13.5215 13.8672 16.6328 10 16.6328ZM12.7158 12.1416C13.2432 12.1416 13.5684 11.7549 13.5684 11.1836V7.19336C13.5684 6.44629 13.1377 6.05957 12.417 6.05957H8.40918C7.8291 6.05957 7.45117 6.38477 7.45117 6.91211C7.45117 7.43945 7.8291 7.77344 8.40918 7.77344H9.69238L10.7207 7.63281L9.53418 8.67871L6.73047 11.4912C6.53711 11.6758 6.41406 11.9395 6.41406 12.2031C6.41406 12.7832 6.85352 13.1699 7.39844 13.1699C7.68848 13.1699 7.92578 13.0732 8.1543 12.8623L10.9316 10.0762L11.9775 8.89844L11.8545 9.98828V11.1836C11.8545 11.7725 12.1885 12.1416 12.7158 12.1416Z",fill:"currentColor"})),CancelIcon=()=>React$8.createElement("svg",{fill:"none",height:"19",viewBox:"0 0 20 19",width:"20",xmlns:"http://www.w3.org/2000/svg"},React$8.createElement("path",{d:"M10 18.9443C15.0977 18.9443 19.2812 14.752 19.2812 9.6543C19.2812 4.56543 15.0889 0.373047 10 0.373047C4.90234 0.373047 0.71875 4.56543 0.71875 9.6543C0.71875 14.752 4.91113 18.9443 10 18.9443ZM10 16.6328C6.1416 16.6328 3.03906 13.5215 3.03906 9.6543C3.03906 5.7959 6.13281 2.68457 10 2.68457C13.8584 2.68457 16.9697 5.7959 16.9697 9.6543C16.9785 13.5215 13.8672 16.6328 10 16.6328ZM7.29297 13.3018C7.58301 13.3018 7.81152 13.2139 7.99609 13.0205L10 11.0166L12.0127 13.0205C12.1973 13.2051 12.4258 13.3018 12.707 13.3018C13.2432 13.3018 13.6562 12.8887 13.6562 12.3525C13.6562 12.0977 13.5508 11.8691 13.3662 11.6934L11.3535 9.67188L13.375 7.6416C13.5596 7.44824 13.6562 7.22852 13.6562 6.98242C13.6562 6.44629 13.2432 6.0332 12.7158 6.0332C12.4346 6.0332 12.2148 6.12109 12.0215 6.31445L10 8.32715L7.9873 6.32324C7.80273 6.12988 7.58301 6.04199 7.29297 6.04199C6.76562 6.04199 6.35254 6.45508 6.35254 6.99121C6.35254 7.2373 6.44922 7.46582 6.63379 7.6416L8.65527 9.67188L6.63379 11.6934C6.44922 11.8691 6.35254 12.1064 6.35254 12.3525C6.35254 12.8887 6.76562 13.3018 7.29297 13.3018Z",fill:"currentColor"})),SuccessIcon=()=>React$8.createElement("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},React$8.createElement("path",{d:"M10 19.4443C15.0977 19.4443 19.2812 15.252 19.2812 10.1543C19.2812 5.06543 15.0889 0.873047 10 0.873047C4.90234 0.873047 0.71875 5.06543 0.71875 10.1543C0.71875 15.252 4.91113 19.4443 10 19.4443ZM10 17.1328C6.1416 17.1328 3.03906 14.0215 3.03906 10.1543C3.03906 6.2959 6.13281 3.18457 10 3.18457C13.8584 3.18457 16.9697 6.2959 16.9697 10.1543C16.9785 14.0215 13.8672 17.1328 10 17.1328ZM9.07715 14.3379C9.4375 14.3379 9.7627 14.1533 9.97363 13.8369L13.7441 8.00977C13.8848 7.79883 13.9814 7.5791 13.9814 7.36816C13.9814 6.84961 13.5244 6.48926 13.0322 6.48926C12.707 6.48926 12.4258 6.66504 12.2148 7.0166L9.05957 12.0967L7.5918 10.2949C7.37207 10.0225 7.13477 9.9082 6.84473 9.9082C6.33496 9.9082 5.92188 10.3125 5.92188 10.8223C5.92188 11.0684 6.00098 11.2793 6.18555 11.5078L8.1543 13.8545C8.40918 14.1709 8.70801 14.3379 9.07715 14.3379Z",fill:"currentColor"})),getTxStatusIcon=ht=>{switch(ht){case"pending":return SpinnerIcon;case"confirmed":return SuccessIcon;case"failed":return CancelIcon;default:return SpinnerIcon}};function TxItem({tx:ht}){const Et=isMobile$4(),yt=getTxStatusIcon(ht.status),Ct=ht.status==="failed"?"error":"accentColor",{chain:$t}=useNetwork(),At=ht.status==="confirmed"?"Confirmed":ht.status==="failed"?"Failed":"Pending",Bt=chainToExplorerUrl($t);return React$8.createElement(React$8.Fragment,null,React$8.createElement(Box,{...Bt?{as:"a",background:{hover:"profileForeground"},borderRadius:"menuButton",className:touchableStyles({active:"shrink"}),href:`${Bt}/tx/${ht.hash}`,rel:"noreferrer noopener",target:"_blank",transition:"default"}:{},color:"modalText",display:"flex",flexDirection:"row",justifyContent:"space-between",padding:"8",width:"full"},React$8.createElement(Box,{alignItems:"center",display:"flex",flexDirection:"row",gap:Et?"16":"14"},React$8.createElement(Box,{color:Ct},React$8.createElement(yt,null)),React$8.createElement(Box,{display:"flex",flexDirection:"column",gap:Et?"3":"1"},React$8.createElement(Box,null,React$8.createElement(Text,{color:"modalText",font:"body",size:Et?"16":"14",weight:"bold"},ht==null?void 0:ht.description)),React$8.createElement(Box,null,React$8.createElement(Text,{color:ht.status==="pending"?"modalTextSecondary":Ct,font:"body",size:"14",weight:Et?"medium":"regular"},At)))),Bt&&React$8.createElement(Box,{alignItems:"center",color:"modalTextDim",display:"flex"},React$8.createElement(ExternalLinkIcon,null))))}var NUMBER_OF_VISIBLE_TXS=3;function TxList({address:ht}){const Et=useRecentTransactions(),yt=useClearRecentTransactions(),{chain:Ct}=useNetwork(),$t=chainToExplorerUrl(Ct),At=Et.slice(0,NUMBER_OF_VISIBLE_TXS),Bt=At.length>0,Dt=isMobile$4(),{appName:Ft}=reactExports.useContext(AppContext$2),kt=reactExports.useContext(I18nContext);return React$8.createElement(React$8.Fragment,null,React$8.createElement(Box,{display:"flex",flexDirection:"column",gap:"10",paddingBottom:"2",paddingTop:"16",paddingX:Dt?"8":"18"},Bt&&React$8.createElement(Box,{paddingBottom:Dt?"4":"0",paddingTop:"8",paddingX:Dt?"12":"6"},React$8.createElement(Box,{display:"flex",justifyContent:"space-between"},React$8.createElement(Text,{color:"modalTextSecondary",size:Dt?"16":"14",weight:"semibold"},kt.t("profile.transactions.recent.title")),React$8.createElement(Box,{style:{marginBottom:-6,marginLeft:-10,marginRight:-10,marginTop:-6}},React$8.createElement(Box,{as:"button",background:{hover:"profileForeground"},borderRadius:"actionButton",className:touchableStyles({active:"shrink"}),onClick:yt,paddingX:Dt?"8":"12",paddingY:Dt?"4":"5",transition:"default",type:"button"},React$8.createElement(Text,{color:"modalTextSecondary",size:Dt?"16":"14",weight:"semibold"},kt.t("profile.transactions.clear.label")))))),React$8.createElement(Box,{display:"flex",flexDirection:"column",gap:"4"},Bt?At.map(Mt=>React$8.createElement(TxItem,{key:Mt.hash,tx:Mt})):React$8.createElement(React$8.Fragment,null,React$8.createElement(Box,{padding:Dt?"12":"8"},React$8.createElement(Text,{color:"modalTextDim",size:Dt?"16":"14",weight:Dt?"medium":"bold"},Ft?kt.t("profile.transactions.description",{appName:Ft}):kt.t("profile.transactions.description_fallback"))),Dt&&React$8.createElement(Box,{background:"generalBorderDim",height:"1",marginX:"12",marginY:"8"})))),$t&&React$8.createElement(Box,{paddingBottom:"18",paddingX:Dt?"8":"18"},React$8.createElement(Box,{alignItems:"center",as:"a",background:{hover:"profileForeground"},borderRadius:"menuButton",className:touchableStyles({active:"shrink"}),color:"modalTextDim",display:"flex",flexDirection:"row",href:`${$t}/address/${ht}`,justifyContent:"space-between",paddingX:"8",paddingY:"12",rel:"noreferrer noopener",style:{willChange:"transform"},target:"_blank",transition:"default",width:"full",...Dt?{paddingLeft:"12"}:{}},React$8.createElement(Text,{color:"modalText",font:"body",size:Dt?"16":"14",weight:Dt?"semibold":"bold"},kt.t("profile.explorer.label")),React$8.createElement(ExternalLinkIcon,null))))}function ProfileDetailsAction({action:ht,icon:Et,label:yt,testId:Ct,url:$t}){const At=isMobile$4();return React$8.createElement(Box,{...$t?{as:"a",href:$t,rel:"noreferrer noopener",target:"_blank"}:{as:"button",type:"button"},background:{base:"profileAction",...At?{}:{hover:"profileActionHover"}},borderRadius:"menuButton",boxShadow:"profileDetailsAction",className:touchableStyles({active:"shrinkSm",hover:At?void 0:"grow"}),display:"flex",onClick:ht,padding:At?"6":"8",style:{willChange:"transform"},testId:Ct,transition:"default",width:"full"},React$8.createElement(Box,{alignItems:"center",display:"flex",flexDirection:"column",gap:"1",justifyContent:"center",paddingTop:"2",width:"full"},React$8.createElement(Box,{color:"modalText",height:"max"},Et),React$8.createElement(Box,null,React$8.createElement(Text,{color:"modalText",size:At?"12":"13",weight:"semibold"},yt))))}function ProfileDetails({address:ht,balanceData:Et,ensAvatar:yt,ensName:Ct,onClose:$t,onDisconnect:At}){const Bt=reactExports.useContext(ShowRecentTransactionsContext),[Dt,Ft]=reactExports.useState(!1),kt=reactExports.useContext(I18nContext),Mt=reactExports.useCallback(()=>{ht&&(navigator.clipboard.writeText(ht),Ft(!0))},[ht]);if(reactExports.useEffect(()=>{if(Dt){const Xt=setTimeout(()=>{Ft(!1)},1500);return()=>clearTimeout(Xt)}},[Dt]),!ht)return null;const Nt=Ct?formatENS(Ct):formatAddress(ht),jt=Et==null?void 0:Et.formatted,zt=jt?abbreviateETHBalance(parseFloat(jt)):void 0,Vt="rk_profile_title",Kt=isMobile$4();return React$8.createElement(React$8.Fragment,null,React$8.createElement(Box,{display:"flex",flexDirection:"column"},React$8.createElement(Box,{background:"profileForeground",padding:"16"},React$8.createElement(Box,{alignItems:"center",display:"flex",flexDirection:"column",gap:Kt?"16":"12",justifyContent:"center",margin:"8",style:{textAlign:"center"}},React$8.createElement(Box,{style:{position:"absolute",right:16,top:16,willChange:"transform"}},React$8.createElement(CloseButton,{onClose:$t}))," ",React$8.createElement(Box,{marginTop:Kt?"24":"0"},React$8.createElement(Avatar$1,{address:ht,imageUrl:yt,size:Kt?82:74})),React$8.createElement(Box,{display:"flex",flexDirection:"column",gap:Kt?"4":"0",textAlign:"center"},React$8.createElement(Box,{textAlign:"center"},React$8.createElement(Text,{as:"h1",color:"modalText",id:Vt,size:Kt?"20":"18",weight:"heavy"},Nt)),Et&&React$8.createElement(Box,{textAlign:"center"},React$8.createElement(Text,{as:"h1",color:"modalTextSecondary",id:Vt,size:Kt?"16":"14",weight:"semibold"},zt," ",Et.symbol)))),React$8.createElement(Box,{display:"flex",flexDirection:"row",gap:"8",margin:"2",marginTop:"16"},React$8.createElement(ProfileDetailsAction,{action:Mt,icon:Dt?React$8.createElement(CopiedIcon,null):React$8.createElement(CopyIcon,null),label:Dt?kt.t("profile.copy_address.copied"):kt.t("profile.copy_address.label")}),React$8.createElement(ProfileDetailsAction,{action:At,icon:React$8.createElement(DisconnectIcon,null),label:kt.t("profile.disconnect.label"),testId:"disconnect-button"}))),Bt&&React$8.createElement(React$8.Fragment,null,React$8.createElement(Box,{background:"generalBorder",height:"1",marginTop:"-1"}),React$8.createElement(Box,null,React$8.createElement(TxList,{address:ht})))))}function AccountModal({onClose:ht,open:Et}){const{address:yt}=useAccount(),{data:Ct}=useBalance({address:yt}),$t=useMainnetEnsName(yt),At=useMainnetEnsAvatar($t),{disconnect:Bt}=useDisconnect();return yt?React$8.createElement(React$8.Fragment,null,yt&&React$8.createElement(Dialog$1,{onClose:ht,open:Et,titleId:"rk_account_modal_title"},React$8.createElement(DialogContent,{bottomSheetOnMobile:!0,padding:"0"},React$8.createElement(ProfileDetails,{address:yt,balanceData:Ct,ensAvatar:At,ensName:$t,onClose:ht,onDisconnect:Bt})))):null}var DisconnectSqIcon=({size:ht})=>React$8.createElement("svg",{fill:"none",height:ht,viewBox:"0 0 28 28",width:ht,xmlns:"http://www.w3.org/2000/svg"},React$8.createElement("path",{d:"M6.742 22.195h8.367c1.774 0 2.743-.968 2.743-2.758V16.11h-2.016v3.11c0 .625-.305.96-.969.96H6.984c-.664 0-.968-.335-.968-.96V7.984c0-.632.304-.968.968-.968h7.883c.664 0 .969.336.969.968v3.133h2.016v-3.36c0-1.78-.97-2.757-2.743-2.757H6.742C4.97 5 4 5.977 4 7.758v11.68c0 1.789.969 2.757 2.742 2.757Zm5.438-7.703h7.601l1.149-.07-.602.406-1.008.938a.816.816 0 0 0-.258.593c0 .407.313.782.758.782.227 0 .39-.086.547-.243l2.492-2.593c.235-.235.313-.47.313-.711 0-.242-.078-.477-.313-.719l-2.492-2.586c-.156-.156-.32-.25-.547-.25-.445 0-.758.367-.758.781 0 .227.094.446.258.594l1.008.945.602.407-1.149-.079H12.18a.904.904 0 0 0 0 1.805Z",fill:"currentColor"})),unsetBackgroundOnHover="v9horb0",MenuButton=React$8.forwardRef(({children:ht,currentlySelected:Et=!1,onClick:yt,testId:Ct,...$t},At)=>{const Bt=isMobile$4();return React$8.createElement(Box,{as:"button",borderRadius:"menuButton",disabled:Et,display:"flex",onClick:yt,ref:At,testId:Ct,type:"button"},React$8.createElement(Box,{borderRadius:"menuButton",className:[Bt?unsetBackgroundOnHover:void 0,!Et&&touchableStyles({active:"shrink"})],padding:Bt?"8":"6",transition:"default",width:"full",...Et?{background:"accentColor",borderColor:"selectedOptionBorder",borderStyle:"solid",borderWidth:"1",boxShadow:"selectedOption",color:"accentColorForeground"}:{background:{hover:"menuItemBackground"},color:"modalText",transition:"default"},...$t},ht))});MenuButton.displayName="MenuButton";var DesktopScrollClassName="_18dqw9x0",MobileScrollClassName="_18dqw9x1";function ChainModal({onClose:ht,open:Et}){var yt;const{chain:Ct}=useNetwork(),{chains:$t,pendingChainId:At,reset:Bt,switchNetwork:Dt}=useSwitchNetwork({onSettled:()=>{Bt(),ht()}}),Ft=reactExports.useContext(I18nContext),{disconnect:kt}=useDisconnect(),Mt="rk_chain_modal_title",Nt=isMobile$4(),jt=(yt=Ct==null?void 0:Ct.unsupported)!=null?yt:!1,zt=Nt?"36":"28",{appName:Vt}=reactExports.useContext(AppContext$2),Kt=useRainbowKitChains();return!Ct||!(Ct!=null&&Ct.id)?null:React$8.createElement(Dialog$1,{onClose:ht,open:Et,titleId:Mt},React$8.createElement(DialogContent,{bottomSheetOnMobile:!0,paddingBottom:"0"},React$8.createElement(Box,{display:"flex",flexDirection:"column",gap:"14"},React$8.createElement(Box,{display:"flex",flexDirection:"row",justifyContent:"space-between"},Nt&&React$8.createElement(Box,{width:"30"}),React$8.createElement(Box,{paddingBottom:"0",paddingLeft:"8",paddingTop:"4"},React$8.createElement(Text,{as:"h1",color:"modalText",id:Mt,size:Nt?"20":"18",weight:"heavy"},Ft.t("chains.title"))),React$8.createElement(CloseButton,{onClose:ht})),jt&&React$8.createElement(Box,{marginX:"8",textAlign:Nt?"center":"left"},React$8.createElement(Text,{color:"modalTextSecondary",size:"14",weight:"medium"},Ft.t("chains.wrong_network"))),React$8.createElement(Box,{className:Nt?MobileScrollClassName:DesktopScrollClassName,display:"flex",flexDirection:"column",gap:"4",padding:"2",paddingBottom:"16"},Dt?Kt.map(({iconBackground:Xt,iconUrl:Qt,id:Zt,name:dr},cr)=>{const Er=$t.find(vr=>vr.id===Zt);if(!Er)return null;const pr=Er.id===(Ct==null?void 0:Ct.id),gr=!pr&&Er.id===At;return React$8.createElement(reactExports.Fragment,{key:Er.id},React$8.createElement(MenuButton,{currentlySelected:pr,onClick:pr?void 0:()=>Dt(Er.id),testId:`chain-option-${Er.id}`},React$8.createElement(Box,{fontFamily:"body",fontSize:"16",fontWeight:"bold"},React$8.createElement(Box,{alignItems:"center",display:"flex",flexDirection:"row",justifyContent:"space-between"},React$8.createElement(Box,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",height:zt},Qt&&React$8.createElement(Box,{height:"full",marginRight:"8"},React$8.createElement(AsyncImage,{alt:dr??Er.name,background:Xt,borderRadius:"full",height:zt,src:Qt,width:zt,testId:`chain-option-${Er.id}-icon`})),React$8.createElement("div",null,dr??Er.name)),pr&&React$8.createElement(Box,{alignItems:"center",display:"flex",flexDirection:"row",marginRight:"6"},React$8.createElement(Text,{color:"accentColorForeground",size:"14",weight:"medium"},Ft.t("chains.connected")),React$8.createElement(Box,{background:"connectionIndicator",borderColor:"selectedOptionBorder",borderRadius:"full",borderStyle:"solid",borderWidth:"1",height:"8",marginLeft:"8",width:"8"})),gr&&React$8.createElement(Box,{alignItems:"center",display:"flex",flexDirection:"row",marginRight:"6"},React$8.createElement(Text,{color:"modalText",size:"14",weight:"medium"},Ft.t("chains.confirm")),React$8.createElement(Box,{background:"standby",borderRadius:"full",height:"8",marginLeft:"8",width:"8"}))))),Nt&&cr<Kt.length-1&&React$8.createElement(Box,{background:"generalBorderDim",height:"1",marginX:"8"}))}):React$8.createElement(Box,{background:"generalBorder",borderRadius:"menuButton",paddingX:"18",paddingY:"12"},React$8.createElement(Text,{color:"modalText",size:"14",weight:"medium"},Vt?Ft.t("chains.switching_not_supported",{appName:Vt}):Ft.t("chains.switching_not_supported_fallback"))),jt&&React$8.createElement(React$8.Fragment,null,React$8.createElement(Box,{background:"generalBorderDim",height:"1",marginX:"8"}),React$8.createElement(MenuButton,{onClick:()=>kt(),testId:"chain-option-disconnect"},React$8.createElement(Box,{color:"error",fontFamily:"body",fontSize:"16",fontWeight:"bold"},React$8.createElement(Box,{alignItems:"center",display:"flex",flexDirection:"row",justifyContent:"space-between"},React$8.createElement(Box,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",height:zt},React$8.createElement(Box,{alignItems:"center",color:"error",height:zt,justifyContent:"center",marginRight:"8"},React$8.createElement(DisconnectSqIcon,{size:Number(zt)})),React$8.createElement("div",null,Ft.t("chains.disconnect")))))))))))}function groupBy(ht,Et){const yt={};return ht.forEach(Ct=>{const $t=Et(Ct);$t&&(yt[$t]||(yt[$t]=[]),yt[$t].push(Ct))}),yt}var storageKey5="rk-latest-id";function addLatestWalletId(ht){localStorage.setItem(storageKey5,ht)}var DisclaimerLink=({children:ht,href:Et})=>React$8.createElement(Box,{as:"a",color:"accentColor",href:Et,rel:"noreferrer",target:"_blank"},ht),DisclaimerText=({children:ht})=>React$8.createElement(Text,{color:"modalTextSecondary",size:"12",weight:"medium"},ht);function ConnectModalIntro({compactModeEnabled:ht=!1,getWallet:Et}){const{disclaimer:yt,learnMoreUrl:Ct}=reactExports.useContext(AppContext$2),$t=reactExports.useContext(I18nContext);return React$8.createElement(React$8.Fragment,null,React$8.createElement(Box,{alignItems:"center",color:"accentColor",display:"flex",flexDirection:"column",height:"full",justifyContent:"space-around"},React$8.createElement(Box,{marginBottom:"10"},!ht&&React$8.createElement(Text,{color:"modalText",size:"18",weight:"heavy"},$t.t("intro.title"))),React$8.createElement(Box,{display:"flex",flexDirection:"column",gap:"32",justifyContent:"center",marginY:"20",style:{maxWidth:312}},React$8.createElement(Box,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},React$8.createElement(Box,{borderRadius:"6",height:"48",minWidth:"48",width:"48"},React$8.createElement(AssetsIcon,null)),React$8.createElement(Box,{display:"flex",flexDirection:"column",gap:"4"},React$8.createElement(Text,{color:"modalText",size:"14",weight:"bold"},$t.t("intro.digital_asset.title")),React$8.createElement(Text,{color:"modalTextSecondary",size:"14",weight:"medium"},$t.t("intro.digital_asset.description")))),React$8.createElement(Box,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},React$8.createElement(Box,{borderRadius:"6",height:"48",minWidth:"48",width:"48"},React$8.createElement(LoginIcon,null)),React$8.createElement(Box,{display:"flex",flexDirection:"column",gap:"4"},React$8.createElement(Text,{color:"modalText",size:"14",weight:"bold"},$t.t("intro.login.title")),React$8.createElement(Text,{color:"modalTextSecondary",size:"14",weight:"medium"},$t.t("intro.login.description"))))),React$8.createElement(Box,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",margin:"10"},React$8.createElement(ActionButton$1,{label:$t.t("intro.get.label"),onClick:Et}),React$8.createElement(Box,{as:"a",className:touchableStyles({active:"shrink",hover:"grow"}),display:"block",href:Ct,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},React$8.createElement(Text,{color:"accentColor",size:"14",weight:"bold"},$t.t("intro.learn_more.label")))),yt&&!ht&&React$8.createElement(Box,{marginBottom:"8",marginTop:"12",textAlign:"center"},React$8.createElement(yt,{Link:DisclaimerLink,Text:DisclaimerText}))))}var BackIcon=()=>React$8.createElement("svg",{fill:"none",height:"17",viewBox:"0 0 11 17",width:"11",xmlns:"http://www.w3.org/2000/svg"},React$8.createElement("path",{d:"M0.99707 8.6543C0.99707 9.08496 1.15527 9.44531 1.51562 9.79688L8.16016 16.3096C8.43262 16.5732 8.74902 16.7051 9.13574 16.7051C9.90918 16.7051 10.5508 16.0811 10.5508 15.3076C10.5508 14.9121 10.3838 14.5605 10.0938 14.2705L4.30176 8.64551L10.0938 3.0293C10.3838 2.74805 10.5508 2.3877 10.5508 2.00098C10.5508 1.23633 9.90918 0.603516 9.13574 0.603516C8.74902 0.603516 8.43262 0.735352 8.16016 0.999023L1.51562 7.51172C1.15527 7.85449 1.00586 8.21484 0.99707 8.6543Z",fill:"currentColor"})),InfoIcon=()=>React$8.createElement("svg",{fill:"none",height:"12",viewBox:"0 0 8 12",width:"8",xmlns:"http://www.w3.org/2000/svg"},React$8.createElement("path",{d:"M3.64258 7.99609C4.19336 7.99609 4.5625 7.73828 4.68555 7.24609C4.69141 7.21094 4.70312 7.16406 4.70898 7.13477C4.80859 6.60742 5.05469 6.35547 6.04492 5.76367C7.14648 5.10156 7.67969 4.3457 7.67969 3.24414C7.67969 1.39844 6.17383 0.255859 3.95898 0.255859C2.32422 0.255859 1.05859 0.894531 0.548828 1.86719C0.396484 2.14844 0.320312 2.44727 0.320312 2.74023C0.314453 3.37305 0.742188 3.79492 1.42188 3.79492C1.91406 3.79492 2.33594 3.54883 2.53516 3.11523C2.78711 2.47656 3.23242 2.21289 3.83594 2.21289C4.55664 2.21289 5.10742 2.65234 5.10742 3.29102C5.10742 3.9707 4.7793 4.29883 3.81836 4.87891C3.02148 5.36523 2.50586 5.92773 2.50586 6.76562V6.90039C2.50586 7.55664 2.96289 7.99609 3.64258 7.99609ZM3.67188 11.4473C4.42773 11.4473 5.04297 10.8672 5.04297 10.1406C5.04297 9.41406 4.42773 8.83984 3.67188 8.83984C2.91602 8.83984 2.30664 9.41406 2.30664 10.1406C2.30664 10.8672 2.91602 11.4473 3.67188 11.4473Z",fill:"currentColor"})),InfoButton=({"aria-label":ht="Info",onClick:Et})=>{const yt=isMobile$4();return React$8.createElement(Box,{alignItems:"center","aria-label":ht,as:"button",background:"closeButtonBackground",borderColor:"actionButtonBorder",borderRadius:"full",borderStyle:"solid",borderWidth:yt?"0":"1",className:touchableStyles({active:"shrinkSm",hover:"growLg"}),color:"closeButton",display:"flex",height:yt?"30":"28",justifyContent:"center",onClick:Et,style:{willChange:"transform"},transition:"default",type:"button",width:yt?"30":"28"},React$8.createElement(InfoIcon,null))},useCoolMode=ht=>{const Et=reactExports.useRef(null),yt=reactExports.useContext(CoolModeContext),Ct=useAsyncImage(ht);return reactExports.useEffect(()=>{if(yt&&Et.current&&Ct)return makeElementCool(Et.current,Ct)},[yt,Ct]),Et},getContainer$1=()=>{const ht="_rk_coolMode",Et=document.getElementById(ht);if(Et)return Et;const yt=document.createElement("div");return yt.setAttribute("id",ht),yt.setAttribute("style",["overflow:hidden","position:fixed","height:100%","top:0","left:0","right:0","bottom:0","pointer-events:none","z-index:2147483647"].join(";")),document.body.appendChild(yt),yt},instanceCounter=0;function makeElementCool(ht,Et){instanceCounter++;const yt=[15,20,25,35,45],Ct=35;let $t=[],At=!1,Bt=0,Dt=0;const Ft=getContainer$1();function kt(){const cr=yt[Math.floor(Math.random()*yt.length)],Er=Math.random()*10,pr=Math.random()*25,gr=Math.random()*360,vr=Math.random()*35*(Math.random()<=.5?-1:1),yr=Dt-cr/2,xr=Bt-cr/2,rr=Math.random()<=.5?-1:1,Lt=document.createElement("div");Lt.innerHTML=`<img src="${Et}" width="${cr}" height="${cr}" style="border-radius: 25%">`,Lt.setAttribute("style",["position:absolute","will-change:transform",`top:${yr}px`,`left:${xr}px`,`transform:rotate(${gr}deg)`].join(";")),Ft.appendChild(Lt),$t.push({direction:rr,element:Lt,left:xr,size:cr,speedHorz:Er,speedUp:pr,spinSpeed:vr,spinVal:gr,top:yr})}function Mt(){$t.forEach(cr=>{cr.left=cr.left-cr.speedHorz*cr.direction,cr.top=cr.top-cr.speedUp,cr.speedUp=Math.min(cr.size,cr.speedUp-1),cr.spinVal=cr.spinVal+cr.spinSpeed,cr.top>=Math.max(window.innerHeight,document.body.clientHeight)+cr.size&&($t=$t.filter(Er=>Er!==cr),cr.element.remove()),cr.element.setAttribute("style",["position:absolute","will-change:transform",`top:${cr.top}px`,`left:${cr.left}px`,`transform:rotate(${cr.spinVal}deg)`].join(";"))})}let Nt;function jt(){At&&$t.length<Ct&&kt(),Mt(),Nt=requestAnimationFrame(jt)}jt();const zt="ontouchstart"in window||navigator.msMaxTouchPoints,Vt=zt?"touchstart":"mousedown",Kt=zt?"touchend":"mouseup",Xt=zt?"touchmove":"mousemove",Qt=cr=>{var Er,pr;"touches"in cr?(Bt=(Er=cr.touches)==null?void 0:Er[0].clientX,Dt=(pr=cr.touches)==null?void 0:pr[0].clientY):(Bt=cr.clientX,Dt=cr.clientY)},Zt=cr=>{Qt(cr),At=!0},dr=()=>{At=!1};return ht.addEventListener(Xt,Qt,{passive:!1}),ht.addEventListener(Vt,Zt),ht.addEventListener(Kt,dr),ht.addEventListener("mouseleave",dr),()=>{ht.removeEventListener(Xt,Qt),ht.removeEventListener(Vt,Zt),ht.removeEventListener(Kt,dr),ht.removeEventListener("mouseleave",dr);const cr=setInterval(()=>{Nt&&$t.length===0&&(cancelAnimationFrame(Nt),clearInterval(cr),--instanceCounter===0&&Ft.remove())},500)}}var transparentBorder="g5kl0l0",ModalSelection=({as:ht="button",currentlySelected:Et=!1,iconBackground:yt,iconUrl:Ct,name:$t,onClick:At,ready:Bt,recent:Dt,testId:Ft,...kt})=>{const Mt=useCoolMode(Ct),[Nt,jt]=reactExports.useState(!1),zt=reactExports.useContext(I18nContext);return React$8.createElement(Box,{display:"flex",flexDirection:"column",onMouseEnter:()=>jt(!0),onMouseLeave:()=>jt(!1),ref:Mt},React$8.createElement(Box,{as:ht,borderRadius:"menuButton",borderStyle:"solid",borderWidth:"1",className:Et?void 0:[transparentBorder,touchableStyles({active:"shrink"})],disabled:Et,onClick:At,padding:"5",style:{willChange:"transform"},testId:Ft,transition:"default",width:"full",...Et?{background:"accentColor",borderColor:"selectedOptionBorder",boxShadow:"selectedWallet"}:{background:{hover:"menuItemBackground"}},...kt},React$8.createElement(Box,{color:Et?"accentColorForeground":"modalText",disabled:!Bt,fontFamily:"body",fontSize:"16",fontWeight:"bold",transition:"default"},React$8.createElement(Box,{alignItems:"center",display:"flex",flexDirection:"row",gap:"12"},React$8.createElement(AsyncImage,{background:yt,...Nt?{}:{borderColor:"actionButtonBorder"},borderRadius:"6",height:"28",src:Ct,width:"28"}),React$8.createElement(Box,null,React$8.createElement(Box,{style:{marginTop:Dt?-2:void 0}},$t),Dt&&React$8.createElement(Text,{color:Et?"accentColorForeground":"accentColor",size:"12",style:{lineHeight:1,marginTop:-1},weight:"medium"},zt.t("connect.recent")))))))};ModalSelection.displayName="ModalSelection";var convertHexToRGBA=(ht,Et=1)=>{let yt=ht.replace("#","");yt.length===3&&(yt=`${yt[0]}${yt[0]}${yt[1]}${yt[1]}${yt[2]}${yt[2]}`);const Ct=parseInt(yt.substring(0,2),16),$t=parseInt(yt.substring(2,4),16),At=parseInt(yt.substring(4,6),16);return Et>1&&Et<=100&&(Et=Et/100),`rgba(${Ct},${$t},${At},${Et})`},getGradientRGBAs=ht=>ht?[convertHexToRGBA(ht,.2),convertHexToRGBA(ht,.14),convertHexToRGBA(ht,.1)]:null,isHexString$1=ht=>/^#([0-9a-f]{3}){1,2}$/i.test(ht),src3=async()=>(await __vitePreload(async()=>{const{default:ht}=await import("./connect-XNDTNVUH-BrWe_DLP.js");return{default:ht}},[])).default,preloadConnectIcon=()=>loadImages(src3),ConnectIcon=()=>React$8.createElement(AsyncImage,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:src3,width:"48"}),src4=async()=>(await __vitePreload(async()=>{const{default:ht}=await import("./create-PAJXJDV3-aLc4x62m.js");return{default:ht}},[])).default,preloadCreateIcon=()=>loadImages(src4),CreateIcon=()=>React$8.createElement(AsyncImage,{background:"#e3a5e8",borderColor:"generalBorder",borderRadius:"10",height:"48",src:src4,width:"48"}),src5=async()=>(await __vitePreload(async()=>{const{default:ht}=await import("./refresh-5KGGHTJP-C8QGCTrU.js");return{default:ht}},[])).default,preloadRefreshIcon=()=>loadImages(src5),RefreshIcon=()=>React$8.createElement(AsyncImage,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:src5,width:"48"}),src6=async()=>(await __vitePreload(async()=>{const{default:ht}=await import("./scan-HZBLXLM4-DsV3US5d.js");return{default:ht}},[])).default,preloadScanIcon=()=>loadImages(src6),ScanIcon=()=>React$8.createElement(AsyncImage,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:src6,width:"48"}),QRCodeBackgroundClassName="_1vwt0cg0",ScrollClassName="_1vwt0cg2 ju367v7a ju367v7v",sidebar="_1vwt0cg3",sidebarCompactMode="_1vwt0cg4",generateMatrix=(ht,Et)=>{const yt=Array.prototype.slice.call(browser.create(ht,{errorCorrectionLevel:Et}).modules.data,0),Ct=Math.sqrt(yt.length);return yt.reduce(($t,At,Bt)=>(Bt%Ct===0?$t.push([At]):$t[$t.length-1].push(At))&&$t,[])};function QRCode({ecl:ht="M",logoBackground:Et,logoMargin:yt=10,logoSize:Ct=50,logoUrl:$t,size:At=200,uri:Bt}){const Dt="20",Ft=At-parseInt(Dt,10)*2,kt=reactExports.useMemo(()=>{const jt=[],zt=generateMatrix(Bt,ht),Vt=Ft/zt.length;[{x:0,y:0},{x:1,y:0},{x:0,y:1}].forEach(({x:dr,y:cr})=>{const Er=(zt.length-7)*Vt*dr,pr=(zt.length-7)*Vt*cr;for(let gr=0;gr<3;gr++)jt.push(React$8.createElement("rect",{fill:gr%2!==0?"white":"black",height:Vt*(7-gr*2),key:`${gr}-${dr}-${cr}`,rx:(gr-2)*-5+(gr===0?2:0),ry:(gr-2)*-5+(gr===0?2:0),width:Vt*(7-gr*2),x:Er+Vt*gr,y:pr+Vt*gr}))});const Xt=Math.floor((Ct+25)/Vt),Qt=zt.length/2-Xt/2,Zt=zt.length/2+Xt/2-1;return zt.forEach((dr,cr)=>{dr.forEach((Er,pr)=>{zt[cr][pr]&&(cr<7&&pr<7||cr>zt.length-8&&pr<7||cr<7&&pr>zt.length-8||cr>Qt&&cr<Zt&&pr>Qt&&pr<Zt||jt.push(React$8.createElement("circle",{cx:cr*Vt+Vt/2,cy:pr*Vt+Vt/2,fill:"black",key:`circle-${cr}-${pr}`,r:Vt/3})))})}),jt},[ht,Ct,Ft,Bt]),Mt=Ft/2-Ct/2,Nt=Ct+yt*2;return React$8.createElement(Box,{borderColor:"generalBorder",borderRadius:"menuButton",borderStyle:"solid",borderWidth:"1",className:QRCodeBackgroundClassName,padding:Dt,width:"max"},React$8.createElement(Box,{style:{height:Ft,userSelect:"none",width:Ft},userSelect:"none"},React$8.createElement(Box,{display:"flex",justifyContent:"center",position:"relative",style:{height:0,top:Mt,width:Ft},width:"full"},React$8.createElement(AsyncImage,{background:Et,borderColor:{custom:"rgba(0, 0, 0, 0.06)"},borderRadius:"13",height:Ct,src:$t,width:Ct})),React$8.createElement("svg",{height:Ft,style:{all:"revert"},width:Ft},React$8.createElement("defs",null,React$8.createElement("clipPath",{id:"clip-wrapper"},React$8.createElement("rect",{height:Nt,width:Nt})),React$8.createElement("clipPath",{id:"clip-logo"},React$8.createElement("rect",{height:Ct,width:Ct}))),React$8.createElement("rect",{fill:"transparent",height:Ft,width:Ft}),kt)))}var getBrowserSrc=async()=>{switch(getBrowser()){case"Arc":return(await __vitePreload(async()=>{const{default:Et}=await import("./Arc-QDJFTGH2-CMIt7t_M.js");return{default:Et}},[])).default;case"Brave":return(await __vitePreload(async()=>{const{default:Et}=await import("./Brave-YATE5BIM-BT0QgSna.js");return{default:Et}},[])).default;case"Chrome":return(await __vitePreload(async()=>{const{default:Et}=await import("./Chrome-LGF33C3S-BAtiMVmP.js");return{default:Et}},[])).default;case"Edge":return(await __vitePreload(async()=>{const{default:Et}=await import("./Edge-K2JEGI5S-CaW1Fen3.js");return{default:Et}},[])).default;case"Firefox":return(await __vitePreload(async()=>{const{default:Et}=await import("./Firefox-NP5SYEK5-BKk6Wa02.js");return{default:Et}},[])).default;case"Opera":return(await __vitePreload(async()=>{const{default:Et}=await import("./Opera-KV54PXPA-BCqqyEOJ.js");return{default:Et}},[])).default;case"Safari":return(await __vitePreload(async()=>{const{default:Et}=await import("./Safari-2QIYKJ4P-CgF0kJQK.js");return{default:Et}},[])).default;default:return(await __vitePreload(async()=>{const{default:Et}=await import("./Browser-HN7O5MN7-BIvPkI4Y.js");return{default:Et}},[])).default}},preloadBrowserIcon=()=>loadImages(getBrowserSrc),getPlatformSrc=async()=>{switch(getPlatform()){case"Windows":return(await __vitePreload(async()=>{const{default:Et}=await import("./Windows-R3CKAIUV-DfNT6Oej.js");return{default:Et}},[])).default;case"macOS":return(await __vitePreload(async()=>{const{default:Et}=await import("./Macos-2KTZ2XLP-bkMn-PIg.js");return{default:Et}},[])).default;case"Linux":return(await __vitePreload(async()=>{const{default:Et}=await import("./Linux-NS2LQPT4-9fsHcAq6.js");return{default:Et}},[])).default;default:return(await __vitePreload(async()=>{const{default:Et}=await import("./Linux-NS2LQPT4-9fsHcAq6.js");return{default:Et}},[])).default}},preloadPlatformIcon=()=>loadImages(getPlatformSrc);function GetDetail({getWalletDownload:ht,compactModeEnabled:Et}){const Ct=useWalletConnectors().splice(0,5),$t=reactExports.useContext(I18nContext);return React$8.createElement(Box,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",marginTop:"18",width:"full"},React$8.createElement(Box,{alignItems:"center",display:"flex",flexDirection:"column",gap:"28",height:"full",width:"full"},Ct==null?void 0:Ct.filter(At=>{var Bt;return At.extensionDownloadUrl||At.desktopDownloadUrl||At.qrCode&&((Bt=At.downloadUrls)==null?void 0:Bt.qrCode)}).map(At=>{const{downloadUrls:Bt,iconBackground:Dt,iconUrl:Ft,id:kt,name:Mt,qrCode:Nt}=At,jt=(Bt==null?void 0:Bt.qrCode)&&Nt,zt=!!At.extensionDownloadUrl,Vt=(Bt==null?void 0:Bt.qrCode)&&zt,Kt=(Bt==null?void 0:Bt.qrCode)&&!!At.desktopDownloadUrl;return React$8.createElement(Box,{alignItems:"center",display:"flex",gap:"16",justifyContent:"space-between",key:At.id,width:"full"},React$8.createElement(Box,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},React$8.createElement(AsyncImage,{background:Dt,borderColor:"actionButtonBorder",borderRadius:"10",height:"48",src:Ft,width:"48"}),React$8.createElement(Box,{display:"flex",flexDirection:"column",gap:"2"},React$8.createElement(Text,{color:"modalText",size:"14",weight:"bold"},Mt),React$8.createElement(Text,{color:"modalTextSecondary",size:"14",weight:"medium"},Vt?$t.t("get.mobile_and_extension.description"):Kt?$t.t("get.mobile_and_desktop.description"):jt?$t.t("get.mobile.description"):zt?$t.t("get.extension.description"):null))),React$8.createElement(Box,{display:"flex",flexDirection:"column",gap:"4"},React$8.createElement(ActionButton$1,{label:$t.t("get.action.label"),onClick:()=>ht(kt),type:"secondary"})))})),React$8.createElement(Box,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"column",gap:"8",justifyContent:"space-between",marginBottom:"4",paddingY:"8",style:{maxWidth:275,textAlign:"center"}},React$8.createElement(Text,{color:"modalText",size:"14",weight:"bold"},$t.t("get.looking_for.title")),React$8.createElement(Text,{color:"modalTextSecondary",size:"14",weight:"medium"},Et?$t.t("get.looking_for.desktop.compact_description"):$t.t("get.looking_for.desktop.wide_description"))))}var LOGO_SIZE="44";function ConnectDetail({changeWalletStep:ht,compactModeEnabled:Et,connectionError:yt,onClose:Ct,qrCodeUri:$t,reconnect:At,wallet:Bt}){var Dt;const{downloadUrls:Ft,iconBackground:kt,iconUrl:Mt,name:Nt,qrCode:jt,ready:zt,showWalletConnectModal:Vt}=Bt,Kt=(Dt=Bt.desktop)==null?void 0:Dt.getUri,Xt=isSafari(),Qt=reactExports.useContext(I18nContext),Zt=!!Bt.extensionDownloadUrl,dr=(Ft==null?void 0:Ft.qrCode)&&Zt,cr=(Ft==null?void 0:Ft.qrCode)&&!!Bt.desktopDownloadUrl,Er=jt&&$t,pr=Vt?{description:Et?Qt.t("connect.walletconnect.description.compact"):Qt.t("connect.walletconnect.description.full"),label:Qt.t("connect.walletconnect.open.label"),onClick:()=>{Ct(),Vt()}}:Er?{description:Qt.t("connect.secondary_action.get.description",{wallet:Nt}),label:Qt.t("connect.secondary_action.get.label"),onClick:()=>ht(dr||cr?"DOWNLOAD_OPTIONS":"DOWNLOAD")}:null,{width:gr}=useWindowSize(),vr=gr&&gr<768;return reactExports.useEffect(()=>{preloadBrowserIcon(),preloadPlatformIcon()},[]),React$8.createElement(Box,{display:"flex",flexDirection:"column",height:"full",width:"full"},Er?React$8.createElement(Box,{alignItems:"center",display:"flex",height:"full",justifyContent:"center"},React$8.createElement(QRCode,{logoBackground:kt,logoSize:Et?60:72,logoUrl:Mt,size:Et?318:vr?Math.max(280,Math.min(gr-308,382)):382,uri:$t})):React$8.createElement(Box,{alignItems:"center",display:"flex",justifyContent:"center",style:{flexGrow:1}},React$8.createElement(Box,{alignItems:"center",display:"flex",flexDirection:"column",gap:"8"},React$8.createElement(Box,{borderRadius:"10",height:LOGO_SIZE,overflow:"hidden"},React$8.createElement(AsyncImage,{height:LOGO_SIZE,src:Mt,width:LOGO_SIZE})),React$8.createElement(Box,{alignItems:"center",display:"flex",flexDirection:"column",gap:"4",paddingX:"32",style:{textAlign:"center"}},React$8.createElement(Text,{color:"modalText",size:"18",weight:"bold"},zt?Qt.t("connect.status.opening",{wallet:Nt}):Zt?Qt.t("connect.status.not_installed",{wallet:Nt}):Qt.t("connect.status.not_available",{wallet:Nt})),!zt&&Zt?React$8.createElement(Box,{paddingTop:"20"},React$8.createElement(ActionButton$1,{href:Bt.extensionDownloadUrl,label:Qt.t("connect.secondary_action.install.label"),type:"secondary"})):null,zt&&!Er&&React$8.createElement(React$8.Fragment,null,React$8.createElement(Box,{alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center"},React$8.createElement(Text,{color:"modalTextSecondary",size:"14",textAlign:"center",weight:"medium"},Qt.t("connect.status.confirm"))),React$8.createElement(Box,{alignItems:"center",color:"modalText",display:"flex",flexDirection:"row",height:"32",marginTop:"8"},yt?React$8.createElement(ActionButton$1,{label:Qt.t("connect.secondary_action.retry.label"),onClick:Kt?async()=>{const yr=await Kt();window.open(yr,Xt?"_blank":"_self")}:()=>{At(Bt)}}):React$8.createElement(Box,{color:"modalTextSecondary"},React$8.createElement(SpinnerIcon,null))))))),React$8.createElement(Box,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"row",gap:"8",height:"28",justifyContent:"space-between",marginTop:"12"},zt&&pr&&React$8.createElement(React$8.Fragment,null,React$8.createElement(Text,{color:"modalTextSecondary",size:"14",weight:"medium"},pr.description),React$8.createElement(ActionButton$1,{label:pr.label,onClick:pr.onClick,type:"secondary"}))))}var DownloadOptionsBox=({actionLabel:ht,description:Et,iconAccent:yt,iconBackground:Ct,iconUrl:$t,isCompact:At,onAction:Bt,title:Dt,url:Ft,variant:kt})=>{const Mt=kt==="browser",Nt=!Mt&&yt&&getGradientRGBAs(yt);return React$8.createElement(Box,{alignItems:"center",borderRadius:"13",display:"flex",justifyContent:"center",overflow:"hidden",paddingX:At?"18":"44",position:"relative",style:{flex:1,isolation:"isolate"},width:"full"},React$8.createElement(Box,{borderColor:"actionButtonBorder",borderRadius:"13",borderStyle:"solid",borderWidth:"1",style:{bottom:"0",left:"0",position:"absolute",right:"0",top:"0",zIndex:1}}),Mt&&React$8.createElement(Box,{background:"downloadTopCardBackground",height:"full",position:"absolute",style:{zIndex:0},width:"full"},React$8.createElement(Box,{display:"flex",flexDirection:"row",justifyContent:"space-between",style:{bottom:"0",filter:"blur(20px)",left:"0",position:"absolute",right:"0",top:"0",transform:"translate3d(0, 0, 0)"}},React$8.createElement(Box,{style:{filter:"blur(100px)",marginLeft:-27,marginTop:-20,opacity:.6,transform:"translate3d(0, 0, 0)"}},React$8.createElement(AsyncImage,{borderRadius:"full",height:"200",src:$t,width:"200"})),React$8.createElement(Box,{style:{filter:"blur(100px)",marginRight:0,marginTop:105,opacity:.6,overflow:"auto",transform:"translate3d(0, 0, 0)"}},React$8.createElement(AsyncImage,{borderRadius:"full",height:"200",src:$t,width:"200"})))),!Mt&&Nt&&React$8.createElement(Box,{background:"downloadBottomCardBackground",style:{bottom:"0",left:"0",position:"absolute",right:"0",top:"0"}},React$8.createElement(Box,{position:"absolute",style:{background:`radial-gradient(50% 50% at 50% 50%, ${Nt[0]} 0%, ${Nt[1]} 25%, rgba(0,0,0,0) 100%)`,height:564,left:-215,top:-197,transform:"translate3d(0, 0, 0)",width:564}}),React$8.createElement(Box,{position:"absolute",style:{background:`radial-gradient(50% 50% at 50% 50%, ${Nt[2]} 0%, rgba(0, 0, 0, 0) 100%)`,height:564,left:-1,top:-76,transform:"translate3d(0, 0, 0)",width:564}})),React$8.createElement(Box,{alignItems:"flex-start",display:"flex",flexDirection:"row",gap:"24",height:"max",justifyContent:"center",style:{zIndex:1}},React$8.createElement(Box,null,React$8.createElement(AsyncImage,{height:"60",src:$t,width:"60",...Ct?{background:Ct,borderColor:"generalBorder",borderRadius:"10"}:null})),React$8.createElement(Box,{display:"flex",flexDirection:"column",gap:"4",style:{flex:1},width:"full"},React$8.createElement(Text,{color:"modalText",size:"14",weight:"bold"},Dt),React$8.createElement(Text,{color:"modalTextSecondary",size:"14",weight:"medium"},Et),React$8.createElement(Box,{marginTop:"14",width:"max"},React$8.createElement(ActionButton$1,{href:Ft,label:ht,onClick:Bt,size:"medium"})))))};function DownloadOptionsDetail({changeWalletStep:ht,wallet:Et}){const yt=getBrowser(),Ct=getPlatform(),At=reactExports.useContext(ModalSizeContext)==="compact",{desktop:Bt,desktopDownloadUrl:Dt,extension:Ft,extensionDownloadUrl:kt,mobileDownloadUrl:Mt}=Et,Nt=reactExports.useContext(I18nContext);return reactExports.useEffect(()=>{preloadCreateIcon(),preloadScanIcon(),preloadRefreshIcon(),preloadConnectIcon()},[]),React$8.createElement(Box,{alignItems:"center",display:"flex",flexDirection:"column",gap:"24",height:"full",marginBottom:"8",marginTop:"4",width:"full"},React$8.createElement(Box,{alignItems:"center",display:"flex",flexDirection:"column",gap:"8",height:"full",justifyContent:"center",width:"full"},kt&&React$8.createElement(DownloadOptionsBox,{actionLabel:Nt.t("get_options.extension.download.label",{browser:yt}),description:Nt.t("get_options.extension.description"),iconUrl:getBrowserSrc,isCompact:At,onAction:()=>ht(Ft!=null&&Ft.instructions?"INSTRUCTIONS_EXTENSION":"CONNECT"),title:Nt.t("get_options.extension.title",{wallet:Et.name,browser:yt}),url:kt,variant:"browser"}),Dt&&React$8.createElement(DownloadOptionsBox,{actionLabel:Nt.t("get_options.desktop.download.label",{platform:Ct}),description:Nt.t("get_options.desktop.description"),iconUrl:getPlatformSrc,isCompact:At,onAction:()=>ht(Bt!=null&&Bt.instructions?"INSTRUCTIONS_DESKTOP":"CONNECT"),title:Nt.t("get_options.desktop.title",{wallet:Et.name,platform:Ct}),url:Dt,variant:"desktop"}),Mt&&React$8.createElement(DownloadOptionsBox,{actionLabel:Nt.t("get_options.mobile.download.label",{wallet:Et.name}),description:Nt.t("get_options.mobile.description"),iconAccent:Et.iconAccent,iconBackground:Et.iconBackground,iconUrl:Et.iconUrl,isCompact:At,onAction:()=>{ht("DOWNLOAD")},title:Nt.t("get_options.mobile.title",{wallet:Et.name}),variant:"app"})))}function DownloadDetail({changeWalletStep:ht,wallet:Et}){const{downloadUrls:yt,qrCode:Ct}=Et,$t=reactExports.useContext(I18nContext);return reactExports.useEffect(()=>{preloadCreateIcon(),preloadScanIcon()},[]),React$8.createElement(Box,{alignItems:"center",display:"flex",flexDirection:"column",gap:"24",height:"full",width:"full"},React$8.createElement(Box,{style:{maxWidth:220,textAlign:"center"}},React$8.createElement(Text,{color:"modalTextSecondary",size:"14",weight:"semibold"},$t.t("get_mobile.description"))),React$8.createElement(Box,{height:"full"},yt!=null&&yt.qrCode?React$8.createElement(QRCode,{logoSize:0,size:268,uri:yt.qrCode}):null),React$8.createElement(Box,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"row",gap:"8",height:"34",justifyContent:"space-between",marginBottom:"12",paddingY:"8"},React$8.createElement(ActionButton$1,{label:$t.t("get_mobile.continue.label"),onClick:()=>ht(Ct!=null&&Ct.instructions?"INSTRUCTIONS_MOBILE":"CONNECT")})))}var stepIcons={connect:()=>React$8.createElement(ConnectIcon,null),create:()=>React$8.createElement(CreateIcon,null),install:ht=>React$8.createElement(AsyncImage,{background:ht.iconBackground,borderColor:"generalBorder",borderRadius:"10",height:"48",src:ht.iconUrl,width:"48"}),refresh:()=>React$8.createElement(RefreshIcon,null),scan:()=>React$8.createElement(ScanIcon,null)};function InstructionMobileDetail({connectWallet:ht,wallet:Et}){var yt,Ct,$t,At;const Bt=reactExports.useContext(I18nContext);return React$8.createElement(Box,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},React$8.createElement(Box,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},(Ct=(yt=Et==null?void 0:Et.qrCode)==null?void 0:yt.instructions)==null?void 0:Ct.steps.map((Dt,Ft)=>{var kt;return React$8.createElement(Box,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:Ft},React$8.createElement(Box,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},(kt=stepIcons[Dt.step])==null?void 0:kt.call(stepIcons,Et)),React$8.createElement(Box,{display:"flex",flexDirection:"column",gap:"4"},React$8.createElement(Text,{color:"modalText",size:"14",weight:"bold"},Bt.t(Dt.title)),React$8.createElement(Text,{color:"modalTextSecondary",size:"14",weight:"medium"},Bt.t(Dt.description))))})),React$8.createElement(Box,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},React$8.createElement(ActionButton$1,{label:Bt.t("get_instructions.mobile.connect.label"),onClick:()=>ht(Et)}),React$8.createElement(Box,{as:"a",className:touchableStyles({active:"shrink",hover:"grow"}),display:"block",href:(At=($t=Et==null?void 0:Et.qrCode)==null?void 0:$t.instructions)==null?void 0:At.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},React$8.createElement(Text,{color:"accentColor",size:"14",weight:"bold"},Bt.t("get_instructions.mobile.learn_more.label")))))}function InstructionExtensionDetail({wallet:ht}){var Et,yt,Ct,$t;const At=reactExports.useContext(I18nContext);return React$8.createElement(Box,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},React$8.createElement(Box,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},(yt=(Et=ht==null?void 0:ht.extension)==null?void 0:Et.instructions)==null?void 0:yt.steps.map((Bt,Dt)=>{var Ft;return React$8.createElement(Box,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:Dt},React$8.createElement(Box,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},(Ft=stepIcons[Bt.step])==null?void 0:Ft.call(stepIcons,ht)),React$8.createElement(Box,{display:"flex",flexDirection:"column",gap:"4"},React$8.createElement(Text,{color:"modalText",size:"14",weight:"bold"},At.t(Bt.title)),React$8.createElement(Text,{color:"modalTextSecondary",size:"14",weight:"medium"},At.t(Bt.description))))})),React$8.createElement(Box,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},React$8.createElement(ActionButton$1,{label:At.t("get_instructions.extension.refresh.label"),onClick:window.location.reload.bind(window.location)}),React$8.createElement(Box,{as:"a",className:touchableStyles({active:"shrink",hover:"grow"}),display:"block",href:($t=(Ct=ht==null?void 0:ht.extension)==null?void 0:Ct.instructions)==null?void 0:$t.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},React$8.createElement(Text,{color:"accentColor",size:"14",weight:"bold"},At.t("get_instructions.extension.learn_more.label")))))}function InstructionDesktopDetail({connectWallet:ht,wallet:Et}){var yt,Ct,$t,At;const Bt=reactExports.useContext(I18nContext);return React$8.createElement(Box,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},React$8.createElement(Box,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},(Ct=(yt=Et==null?void 0:Et.desktop)==null?void 0:yt.instructions)==null?void 0:Ct.steps.map((Dt,Ft)=>{var kt;return React$8.createElement(Box,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:Ft},React$8.createElement(Box,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},(kt=stepIcons[Dt.step])==null?void 0:kt.call(stepIcons,Et)),React$8.createElement(Box,{display:"flex",flexDirection:"column",gap:"4"},React$8.createElement(Text,{color:"modalText",size:"14",weight:"bold"},Bt.t(Dt.title)),React$8.createElement(Text,{color:"modalTextSecondary",size:"14",weight:"medium"},Bt.t(Dt.description))))})),React$8.createElement(Box,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},React$8.createElement(ActionButton$1,{label:Bt.t("get_instructions.desktop.connect.label"),onClick:()=>ht(Et)}),React$8.createElement(Box,{as:"a",className:touchableStyles({active:"shrink",hover:"grow"}),display:"block",href:(At=($t=Et==null?void 0:Et.desktop)==null?void 0:$t.instructions)==null?void 0:At.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},React$8.createElement(Text,{color:"accentColor",size:"14",weight:"bold"},Bt.t("get_instructions.desktop.learn_more.label")))))}function DesktopOptions({onClose:ht}){const Et="rk_connect_title",yt=isSafari(),[Ct,$t]=reactExports.useState(),[At,Bt]=reactExports.useState(),[Dt,Ft]=reactExports.useState(),kt=!!(At!=null&&At.qrCode)&&Dt,[Mt,Nt]=reactExports.useState(!1),zt=reactExports.useContext(ModalSizeContext)===ModalSizeOptions.COMPACT,{disclaimer:Vt}=reactExports.useContext(AppContext$2),Kt=reactExports.useContext(I18nContext),Xt=reactExports.useRef(!1),{connector:Qt}=reactExports.useContext(WalletButtonContext),Zt=useWalletConnectors().filter(Ut=>Ut.ready||!!Ut.extensionDownloadUrl).sort((Ut,ir)=>Ut.groupIndex-ir.groupIndex),dr=groupBy(Zt,Ut=>Ut.groupName),cr=["Recommended","Other","Popular","More","Others"];reactExports.useEffect(()=>{Qt&&!Xt.current&&(yr("CONNECT"),pr(Qt),Xt.current=!0)},[Qt]);const Er=Ut=>{var ir,Cr,_r;if(Nt(!1),Ut.ready){(Cr=(ir=Ut==null?void 0:Ut.connect)==null?void 0:ir.call(Ut))==null||Cr.catch(()=>{Nt(!0)});const $r=(_r=Ut.desktop)==null?void 0:_r.getUri;$r&&setTimeout(async()=>{const Tr=await $r();window.open(Tr,yt?"_blank":"_self")},0)}},pr=Ut=>{var ir;if(addLatestWalletId(Ut.id),Er(Ut),$t(Ut.id),Ut.ready){let Cr=!1;(ir=Ut==null?void 0:Ut.onConnecting)==null||ir.call(Ut,async()=>{var _r,$r;if(Cr)return;Cr=!0;const Tr=Zt.find(Rr=>Ut.id===Rr.id),Dr=await((_r=Tr==null?void 0:Tr.qrCode)==null?void 0:_r.getUri());Ft(Dr),setTimeout(()=>{Bt(Tr),yr("CONNECT")},Dr?0:50);const Ar=await(Tr==null?void 0:Tr.connector.getProvider()),Fr=($r=Ar==null?void 0:Ar.signer)==null?void 0:$r.connection;if(Fr!=null&&Fr.on&&(Fr!=null&&Fr.off)){const Rr=()=>{wr(),pr(Ut)},wr=()=>{Fr.off("close",Rr),Fr.off("open",wr)};Fr.on("close",Rr),Fr.on("open",wr)}})}else Bt(Ut),yr(Ut!=null&&Ut.extensionDownloadUrl?"DOWNLOAD_OPTIONS":"CONNECT")},gr=Ut=>{var ir;$t(Ut);const Cr=Zt.find(Dr=>Ut===Dr.id),_r=(ir=Cr==null?void 0:Cr.downloadUrls)==null?void 0:ir.qrCode,$r=!!(Cr!=null&&Cr.desktopDownloadUrl),Tr=!!(Cr!=null&&Cr.extensionDownloadUrl);Bt(Cr),yr(_r&&(Tr||$r)?"DOWNLOAD_OPTIONS":_r?"DOWNLOAD":$r?"INSTRUCTIONS_DESKTOP":"INSTRUCTIONS_EXTENSION")},vr=()=>{$t(void 0),Bt(void 0),Ft(void 0)},yr=(Ut,ir=!1)=>{ir&&Ut==="GET"&&xr==="GET"?vr():!ir&&Ut==="GET"?rr("GET"):!ir&&Ut==="CONNECT"&&rr("CONNECT"),Ht(Ut)},[xr,rr]=reactExports.useState("NONE"),[Lt,Ht]=reactExports.useState("NONE");let Wt=null,Gt=null,Yt=null,er;reactExports.useEffect(()=>{Nt(!1)},[Lt,At]);const Jt=!!(!!(At!=null&&At.extensionDownloadUrl)&&(At!=null&&At.mobileDownloadUrl));switch(Lt){case"NONE":Wt=React$8.createElement(ConnectModalIntro,{getWallet:()=>yr("GET")});break;case"LEARN_COMPACT":Wt=React$8.createElement(ConnectModalIntro,{compactModeEnabled:zt,getWallet:()=>yr("GET")}),Gt=Kt.t("intro.title"),Yt="NONE";break;case"GET":Wt=React$8.createElement(GetDetail,{getWalletDownload:gr,compactModeEnabled:zt}),Gt=Kt.t("get.title"),Yt=zt?"LEARN_COMPACT":"NONE";break;case"CONNECT":Wt=At&&React$8.createElement(ConnectDetail,{changeWalletStep:yr,compactModeEnabled:zt,connectionError:Mt,onClose:ht,qrCodeUri:Dt,reconnect:Er,wallet:At}),Gt=kt&&(At.name==="WalletConnect"?Kt.t("connect_scan.fallback_title"):Kt.t("connect_scan.title",{wallet:At.name})),Yt=zt?Qt?null:"NONE":null,er=zt?Qt?()=>{}:vr:()=>{};break;case"DOWNLOAD_OPTIONS":Wt=At&&React$8.createElement(DownloadOptionsDetail,{changeWalletStep:yr,wallet:At}),Gt=At&&Kt.t("get_options.short_title",{wallet:At.name}),Yt=Qt?"CONNECT":Jt?xr:null;break;case"DOWNLOAD":Wt=At&&React$8.createElement(DownloadDetail,{changeWalletStep:yr,wallet:At}),Gt=At&&Kt.t("get_mobile.title",{wallet:At.name}),Yt=Jt?"DOWNLOAD_OPTIONS":xr;break;case"INSTRUCTIONS_MOBILE":Wt=At&&React$8.createElement(InstructionMobileDetail,{connectWallet:pr,wallet:At}),Gt=At&&Kt.t("get_options.title",{wallet:zt&&At.shortName||At.name}),Yt="DOWNLOAD";break;case"INSTRUCTIONS_EXTENSION":Wt=At&&React$8.createElement(InstructionExtensionDetail,{wallet:At}),Gt=At&&Kt.t("get_options.title",{wallet:zt&&At.shortName||At.name}),Yt="DOWNLOAD_OPTIONS";break;case"INSTRUCTIONS_DESKTOP":Wt=At&&React$8.createElement(InstructionDesktopDetail,{connectWallet:pr,wallet:At}),Gt=At&&Kt.t("get_options.title",{wallet:zt&&At.shortName||At.name}),Yt="DOWNLOAD_OPTIONS";break}return React$8.createElement(Box,{display:"flex",flexDirection:"row",style:{maxHeight:zt?468:504}},(zt?Lt==="NONE":!0)&&React$8.createElement(Box,{className:zt?sidebarCompactMode:sidebar,display:"flex",flexDirection:"column",marginTop:"16"},React$8.createElement(Box,{display:"flex",justifyContent:"space-between"},zt&&Vt&&React$8.createElement(Box,{marginLeft:"16",width:"28"},React$8.createElement(InfoButton,{onClick:()=>yr("LEARN_COMPACT")})),zt&&!Vt&&React$8.createElement(Box,{marginLeft:"16",width:"28"}),React$8.createElement(Box,{marginLeft:zt?"0":"6",paddingBottom:"8",paddingTop:"2",paddingX:"18"},React$8.createElement(Text,{as:"h1",color:"modalText",id:Et,size:"18",weight:"heavy",testId:"connect-header-label"},Kt.t("connect.title"))),zt&&React$8.createElement(Box,{marginRight:"16"},React$8.createElement(CloseButton,{onClose:ht}))),React$8.createElement(Box,{className:ScrollClassName,paddingBottom:"18"},Object.entries(dr).map(([Ut,ir],Cr)=>ir.length>0&&React$8.createElement(reactExports.Fragment,{key:Cr},Ut?React$8.createElement(Box,{marginBottom:"8",marginTop:"16",marginX:"6"},React$8.createElement(Text,{color:"modalTextSecondary",size:"14",weight:"bold"},cr.includes(Ut)?Kt.t(`connector_group.${Ut.toLowerCase()}`):Ut)):null,React$8.createElement(Box,{display:"flex",flexDirection:"column",gap:"4"},ir.map(_r=>React$8.createElement(ModalSelection,{currentlySelected:_r.id===Ct,iconBackground:_r.iconBackground,iconUrl:_r.iconUrl,key:_r.id,name:_r.name,onClick:()=>pr(_r),ready:_r.ready,recent:_r.recent,testId:`wallet-option-${_r.id}`})))))),zt&&React$8.createElement(React$8.Fragment,null,React$8.createElement(Box,{background:"generalBorder",height:"1",marginTop:"-1"}),Vt?React$8.createElement(Box,{paddingX:"24",paddingY:"16",textAlign:"center"},React$8.createElement(Vt,{Link:DisclaimerLink,Text:DisclaimerText})):React$8.createElement(Box,{alignItems:"center",display:"flex",justifyContent:"space-between",paddingX:"24",paddingY:"16"},React$8.createElement(Box,{paddingY:"4"},React$8.createElement(Text,{color:"modalTextSecondary",size:"14",weight:"medium"},Kt.t("connect.new_to_ethereum.description"))),React$8.createElement(Box,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",justifyContent:"center"},React$8.createElement(Box,{className:touchableStyles({active:"shrink",hover:"grow"}),cursor:"pointer",onClick:()=>yr("LEARN_COMPACT"),paddingY:"4",style:{willChange:"transform"},transition:"default"},React$8.createElement(Text,{color:"accentColor",size:"14",weight:"bold"},Kt.t("connect.new_to_ethereum.learn_more.label"))))))),(zt?Lt!=="NONE":!0)&&React$8.createElement(React$8.Fragment,null,!zt&&React$8.createElement(Box,{background:"generalBorder",minWidth:"1",width:"1"}),React$8.createElement(Box,{display:"flex",flexDirection:"column",margin:"16",style:{flexGrow:1}},React$8.createElement(Box,{alignItems:"center",display:"flex",justifyContent:"space-between",marginBottom:"12"},React$8.createElement(Box,{width:"28"},Yt&&React$8.createElement(Box,{as:"button",className:touchableStyles({active:"shrinkSm",hover:"growLg"}),color:"accentColor",onClick:()=>{Yt&&yr(Yt,!0),er==null||er()},paddingX:"8",paddingY:"4",style:{boxSizing:"content-box",height:17,willChange:"transform"},transition:"default",type:"button"},React$8.createElement(BackIcon,null))),React$8.createElement(Box,{display:"flex",justifyContent:"center",style:{flexGrow:1}},Gt&&React$8.createElement(Text,{color:"modalText",size:"18",textAlign:"center",weight:"heavy"},Gt)),React$8.createElement(CloseButton,{onClose:ht})),React$8.createElement(Box,{display:"flex",flexDirection:"column",style:{minHeight:zt?396:432}},React$8.createElement(Box,{alignItems:"center",display:"flex",flexDirection:"column",gap:"6",height:"full",justifyContent:"center",marginX:"8"},Wt)))))}var rotatingBorder="_1am14412",scroll$1="_1am14410",spinner="_1am14413",LoadingSpinner=({wallet:ht})=>React$8.createElement("svg",{className:spinner,viewBox:"0 0 86 86",width:"86",height:"86"},React$8.createElement("rect",{x:"3",y:"3",width:80,height:80,rx:20,ry:20,strokeDasharray:`${160/3} ${2*160/3}`,strokeDashoffset:160,className:rotatingBorder,style:{stroke:(ht==null?void 0:ht.iconAccent)||"#0D3887"}}));function WalletButton({onClose:ht,wallet:Et,connecting:yt}){const{connect:Ct,connector:$t,iconBackground:At,iconUrl:Bt,id:Dt,mobile:Ft,name:kt,onConnecting:Mt,ready:Nt,shortName:jt}=Et,zt=Ft==null?void 0:Ft.getUri,Vt=useCoolMode(Bt),Kt=reactExports.useRef(!1),Xt=reactExports.useContext(I18nContext),Qt=reactExports.useCallback(async()=>{var Zt;Dt==="walletConnect"&&(ht==null||ht()),(Zt=Ct==null?void 0:Ct())==null||Zt.catch(()=>{});let dr=!1;Mt==null||Mt(async()=>{if(!dr&&(dr=!0,zt)){const cr=await zt();if(($t.id==="walletConnect"||$t.id==="walletConnectLegacy")&&setWalletConnectDeepLink({mobileUri:cr,name:kt}),cr.startsWith("http")){const Er=document.createElement("a");Er.href=cr,Er.target="_blank",Er.rel="noreferrer noopener",Er.click()}else window.location.href=cr}})},[$t,Ct,zt,Mt,ht,kt,Dt]);return reactExports.useEffect(()=>{yt&&!Kt.current&&(Qt(),Kt.current=!0)},[yt,Qt]),React$8.createElement(Box,{as:"button",color:Nt?"modalText":"modalTextSecondary",disabled:!Nt,fontFamily:"body",key:Dt,onClick:Qt,ref:Vt,style:{overflow:"visible",textAlign:"center"},testId:`wallet-option-${Dt}`,type:"button",width:"full"},React$8.createElement(Box,{alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center"},React$8.createElement(Box,{display:"flex",alignItems:"center",justifyContent:"center",paddingBottom:"8",paddingTop:"10",position:"relative"},yt?React$8.createElement(LoadingSpinner,{wallet:Et}):null,React$8.createElement(AsyncImage,{background:At,borderRadius:"13",boxShadow:"walletLogo",height:"60",src:Bt,width:"60"})),yt?null:React$8.createElement(Box,{display:"flex",flexDirection:"column",textAlign:"center"},React$8.createElement(Text,{as:"h2",color:Et.ready?"modalText":"modalTextSecondary",size:"13",weight:"medium"},React$8.createElement(Box,{as:"span",position:"relative"},jt??kt,!Et.ready&&" (unsupported)")),Et.recent&&React$8.createElement(Text,{color:"accentColor",size:"12",weight:"medium"},Xt.t("connect.recent")))))}function MobileOptions({onClose:ht}){var Et;const yt="rk_connect_title",Ct=useWalletConnectors(),{disclaimer:$t,learnMoreUrl:At}=reactExports.useContext(AppContext$2);let Bt=null,Dt=null,Ft=!1,kt=null;const[Mt,Nt]=reactExports.useState("CONNECT"),jt=reactExports.useContext(I18nContext),zt=isIOS();switch(Mt){case"CONNECT":{Bt=jt.t("connect.title"),Ft=!0,Dt=React$8.createElement(Box,null,React$8.createElement(Box,{background:"profileForeground",className:scroll$1,display:"flex",paddingBottom:"20",paddingTop:"6"},React$8.createElement(Box,{display:"flex",style:{margin:"0 auto"}},Ct.filter(Vt=>Vt.ready).map(Vt=>React$8.createElement(Box,{key:Vt.id,paddingX:"20"},React$8.createElement(Box,{width:"60"},React$8.createElement(WalletButton,{onClose:ht,wallet:Vt})))))),React$8.createElement(Box,{background:"generalBorder",height:"1",marginBottom:"32",marginTop:"-1"}),React$8.createElement(Box,{alignItems:"center",display:"flex",flexDirection:"column",gap:"32",paddingX:"32",style:{textAlign:"center"}},React$8.createElement(Box,{display:"flex",flexDirection:"column",gap:"8",textAlign:"center"},React$8.createElement(Text,{color:"modalText",size:"16",weight:"bold"},jt.t("intro.title")),React$8.createElement(Text,{color:"modalTextSecondary",size:"16"},jt.t("intro.description")))),React$8.createElement(Box,{paddingTop:"32",paddingX:"20"},React$8.createElement(Box,{display:"flex",gap:"14",justifyContent:"center"},React$8.createElement(ActionButton$1,{label:jt.t("intro.get.label"),onClick:()=>Nt("GET"),size:"large",type:"secondary"}),React$8.createElement(ActionButton$1,{href:At,label:jt.t("intro.learn_more.label"),size:"large",type:"secondary"}))),$t&&React$8.createElement(Box,{marginTop:"28",marginX:"32",textAlign:"center"},React$8.createElement($t,{Link:DisclaimerLink,Text:DisclaimerText})));break}case"GET":{Bt=jt.t("get.title"),kt="CONNECT";const Vt=(Et=Ct==null?void 0:Ct.filter(Kt=>{var Xt,Qt,Zt;return((Xt=Kt.downloadUrls)==null?void 0:Xt.ios)||((Qt=Kt.downloadUrls)==null?void 0:Qt.android)||((Zt=Kt.downloadUrls)==null?void 0:Zt.mobile)}))==null?void 0:Et.splice(0,3);Dt=React$8.createElement(Box,null,React$8.createElement(Box,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",marginBottom:"36",marginTop:"5",paddingTop:"12",width:"full"},Vt.map((Kt,Xt)=>{const{downloadUrls:Qt,iconBackground:Zt,iconUrl:dr,name:cr}=Kt;return!(Qt!=null&&Qt.ios)&&!(Qt!=null&&Qt.android)&&!(Qt!=null&&Qt.mobile)?null:React$8.createElement(Box,{display:"flex",gap:"16",key:Kt.id,paddingX:"20",width:"full"},React$8.createElement(Box,{style:{minHeight:48,minWidth:48}},React$8.createElement(AsyncImage,{background:Zt,borderColor:"generalBorder",borderRadius:"10",height:"48",src:dr,width:"48"})),React$8.createElement(Box,{display:"flex",flexDirection:"column",width:"full"},React$8.createElement(Box,{alignItems:"center",display:"flex",height:"48"},React$8.createElement(Box,{width:"full"},React$8.createElement(Text,{color:"modalText",size:"18",weight:"bold"},cr)),React$8.createElement(ActionButton$1,{href:(zt?Qt==null?void 0:Qt.ios:Qt==null?void 0:Qt.android)||(Qt==null?void 0:Qt.mobile),label:jt.t("get.action.label"),size:"small",type:"secondary"})),Xt<Vt.length-1&&React$8.createElement(Box,{background:"generalBorderDim",height:"1",marginY:"10",width:"full"})))})),React$8.createElement(Box,{style:{marginBottom:"42px"}}),React$8.createElement(Box,{alignItems:"center",display:"flex",flexDirection:"column",gap:"36",paddingX:"36",style:{textAlign:"center"}},React$8.createElement(Box,{display:"flex",flexDirection:"column",gap:"12",textAlign:"center"},React$8.createElement(Text,{color:"modalText",size:"16",weight:"bold"},jt.t("get.looking_for.title")),React$8.createElement(Text,{color:"modalTextSecondary",size:"16"},jt.t("get.looking_for.mobile.description")))));break}}return React$8.createElement(Box,{display:"flex",flexDirection:"column",paddingBottom:"36"},React$8.createElement(Box,{background:Ft?"profileForeground":"modalBackground",display:"flex",flexDirection:"column",paddingBottom:"4",paddingTop:"14"},React$8.createElement(Box,{display:"flex",justifyContent:"center",paddingBottom:"6",paddingX:"20",position:"relative"},kt&&React$8.createElement(Box,{display:"flex",position:"absolute",style:{left:0,marginBottom:-20,marginTop:-20}},React$8.createElement(Box,{alignItems:"center",as:"button",className:touchableStyles({active:"shrinkSm",hover:"growLg"}),color:"accentColor",display:"flex",marginLeft:"4",marginTop:"20",onClick:()=>Nt(kt),padding:"16",style:{height:17,willChange:"transform"},transition:"default",type:"button"},React$8.createElement(BackIcon,null))),React$8.createElement(Box,{marginTop:"4",textAlign:"center",width:"full"},React$8.createElement(Text,{as:"h1",color:"modalText",id:yt,size:"20",weight:"bold"},Bt)),React$8.createElement(Box,{alignItems:"center",display:"flex",height:"32",paddingRight:"14",position:"absolute",right:"0"},React$8.createElement(Box,{style:{marginBottom:-20,marginTop:-20}},React$8.createElement(CloseButton,{onClose:ht}))))),React$8.createElement(Box,{display:"flex",flexDirection:"column"},Dt))}var MobileStatus=({onClose:ht})=>{const{connector:Et}=reactExports.useContext(WalletButtonContext),yt=reactExports.useContext(I18nContext),Ct=(Et==null?void 0:Et.name)||"";return React$8.createElement(Box,null,React$8.createElement(Box,{display:"flex",paddingBottom:"32",justifyContent:"center",alignItems:"center",background:"profileForeground",flexDirection:"column"},React$8.createElement(Box,{width:"full",display:"flex",justifyContent:"flex-end",marginTop:"18",marginRight:"24"},React$8.createElement(CloseButton,{onClose:ht})),React$8.createElement(Box,{width:"60"},React$8.createElement(WalletButton,{onClose:ht,wallet:Et,connecting:!0})),React$8.createElement(Box,{marginTop:"20"},React$8.createElement(Text,{textAlign:"center",color:"modalText",size:"18",weight:"semibold"},yt.t("connect.status.connect_mobile",{wallet:Ct}))),React$8.createElement(Box,{maxWidth:"full",marginTop:"8"},React$8.createElement(Text,{textAlign:"center",color:"modalText",size:"16",weight:"medium"},yt.t("connect.status.confirm_mobile",{wallet:Ct})))))};function ConnectOptions({onClose:ht}){const{connector:Et}=reactExports.useContext(WalletButtonContext);return isMobile$4()?Et?React$8.createElement(MobileStatus,{onClose:ht}):React$8.createElement(MobileOptions,{onClose:ht}):React$8.createElement(DesktopOptions,{onClose:ht})}function ConnectModal({onClose:ht,open:Et}){const yt="rk_connect_title",Ct=useConnectionStatus(),{disconnect:$t}=useDisconnect(),{isConnecting:At}=useAccount(),Bt=React$8.useCallback(()=>{ht(),$t()},[ht,$t]),Dt=React$8.useCallback(()=>{At&&$t(),ht()},[ht,$t,At]);return Ct==="disconnected"?React$8.createElement(Dialog$1,{onClose:Dt,open:Et,titleId:yt},React$8.createElement(DialogContent,{bottomSheetOnMobile:!0,padding:"0",wide:!0},React$8.createElement(ConnectOptions,{onClose:Dt}))):Ct==="unauthenticated"?React$8.createElement(Dialog$1,{onClose:Bt,open:Et,titleId:yt},React$8.createElement(DialogContent,{bottomSheetOnMobile:!0,padding:"0"},React$8.createElement(SignIn,{onClose:Bt}))):null}function useModalStateValue(){const[ht,Et]=reactExports.useState(!1);return{closeModal:reactExports.useCallback(()=>Et(!1),[]),isModalOpen:ht,openModal:reactExports.useCallback(()=>Et(!0),[])}}var ModalContext$1=reactExports.createContext({accountModalOpen:!1,chainModalOpen:!1,connectModalOpen:!1});function ModalProvider({children:ht}){const{closeModal:Et,isModalOpen:yt,openModal:Ct}=useModalStateValue(),{closeModal:$t,isModalOpen:At,openModal:Bt}=useModalStateValue(),{closeModal:Dt,isModalOpen:Ft,openModal:kt}=useModalStateValue(),Mt=useConnectionStatus(),{chain:Nt}=useNetwork(),jt=!(Nt!=null&&Nt.unsupported);function zt({keepConnectModalOpen:Kt=!1}={}){Kt||Et(),$t(),Dt()}const Vt=useAuthenticationStatus()==="unauthenticated";return useAccount({onConnect:()=>zt({keepConnectModalOpen:Vt}),onDisconnect:()=>zt()}),React$8.createElement(ModalContext$1.Provider,{value:reactExports.useMemo(()=>({accountModalOpen:At,chainModalOpen:Ft,connectModalOpen:yt,openAccountModal:jt&&Mt==="connected"?Bt:void 0,openChainModal:Mt==="connected"?kt:void 0,openConnectModal:Mt==="disconnected"||Mt==="unauthenticated"?Ct:void 0}),[Mt,jt,At,Ft,yt,Bt,kt,Ct])},ht,React$8.createElement(ConnectModal,{onClose:Et,open:yt}),React$8.createElement(AccountModal,{onClose:$t,open:At}),React$8.createElement(ChainModal,{onClose:Dt,open:Ft}))}function useModalState(){const{accountModalOpen:ht,chainModalOpen:Et,connectModalOpen:yt}=reactExports.useContext(ModalContext$1);return{accountModalOpen:ht,chainModalOpen:Et,connectModalOpen:yt}}function useAccountModal(){const{accountModalOpen:ht,openAccountModal:Et}=reactExports.useContext(ModalContext$1);return{accountModalOpen:ht,openAccountModal:Et}}function useChainModal(){const{chainModalOpen:ht,openChainModal:Et}=reactExports.useContext(ModalContext$1);return{chainModalOpen:ht,openChainModal:Et}}function useConnectModal(){const{connectModalOpen:ht,openConnectModal:Et}=reactExports.useContext(ModalContext$1);return{connectModalOpen:ht,openConnectModal:Et}}var noop$6=()=>{};function ConnectButtonRenderer({children:ht}){var Et,yt,Ct,$t;const At=useIsMounted(),{address:Bt}=useAccount(),Dt=useMainnetEnsName(Bt),Ft=useMainnetEnsAvatar(Dt),{data:kt}=useBalance({address:Bt}),{chain:Mt}=useNetwork(),Nt=useRainbowKitChainsById(),jt=(Et=useAuthenticationStatus())!=null?Et:void 0,zt=Mt?Nt[Mt.id]:void 0,Vt=(yt=zt==null?void 0:zt.name)!=null?yt:void 0,Kt=(Ct=zt==null?void 0:zt.iconUrl)!=null?Ct:void 0,Xt=($t=zt==null?void 0:zt.iconBackground)!=null?$t:void 0,Qt=useAsyncImage(Kt),Zt=reactExports.useContext(ShowRecentTransactionsContext),dr=useRecentTransactions().some(({status:rr})=>rr==="pending")&&Zt,cr=kt?`${abbreviateETHBalance(parseFloat(kt.formatted))} ${kt.symbol}`:void 0,{openConnectModal:Er}=useConnectModal(),{openChainModal:pr}=useChainModal(),{openAccountModal:gr}=useAccountModal(),{accountModalOpen:vr,chainModalOpen:yr,connectModalOpen:xr}=useModalState();return React$8.createElement(React$8.Fragment,null,ht({account:Bt?{address:Bt,balanceDecimals:kt==null?void 0:kt.decimals,balanceFormatted:kt==null?void 0:kt.formatted,balanceSymbol:kt==null?void 0:kt.symbol,displayBalance:cr,displayName:Dt?formatENS(Dt):formatAddress(Bt),ensAvatar:Ft??void 0,ensName:Dt??void 0,hasPendingTransactions:dr}:void 0,accountModalOpen:vr,authenticationStatus:jt,chain:Mt?{hasIcon:!!Kt,iconBackground:Xt,iconUrl:Qt,id:Mt.id,name:Vt??Mt.name,unsupported:Mt.unsupported}:void 0,chainModalOpen:yr,connectModalOpen:xr,mounted:At(),openAccountModal:gr??noop$6,openChainModal:pr??noop$6,openConnectModal:Er??noop$6}))}ConnectButtonRenderer.displayName="ConnectButton.Custom";function omitUndefinedValues(ht){return Object.fromEntries(Object.entries(ht).filter(([Et,yt])=>yt!==void 0))}function connectorsForWallets(ht){return"groupName"in ht[0]?_connectorsForWallets(ht):_connectorsForWallets([{groupName:"",wallets:ht}])()}var _connectorsForWallets=ht=>()=>{let Et=-1;const yt=[],Ct=[],$t=[],At=[];return ht.forEach(({groupName:Dt,wallets:Ft},kt)=>{Ft.forEach(Mt=>{if(Et++,Mt!=null&&Mt.iconAccent&&!isHexString$1(Mt==null?void 0:Mt.iconAccent))throw new Error(`Property \`iconAccent\` is not a hex value for wallet: ${Mt.name}`);const Nt={...Mt,groupIndex:kt,groupName:Dt,index:Et};typeof Mt.hidden=="function"?$t.push(Nt):Ct.push(Nt)})}),[...Ct,...$t].forEach(({createConnector:Dt,groupIndex:Ft,groupName:kt,hidden:Mt,index:Nt,...jt})=>{if(typeof Mt=="function"&&Mt({wallets:[...At.map(({connector:Zt,id:dr,installed:cr,name:Er})=>({connector:Zt,id:dr,installed:cr,name:Er}))]}))return;const{connector:zt,...Vt}=omitUndefinedValues(Dt());let Kt;if(jt.id==="walletConnect"&&Vt.qrCode&&!isMobile$4()){const{chains:Qt,options:Zt}=zt;Kt=new WalletConnectConnector({chains:Qt,options:{...Zt,showQrModal:!0}}),yt.push(Kt)}const Xt={connector:zt,groupIndex:Ft,groupName:kt,index:Nt,walletConnectModalConnector:Kt,...jt,...Vt};At.push(Xt),yt.includes(zt)||(yt.push(zt),zt._wallets=[]),zt._wallets.push(Xt)}),yt},arbitrum={id:42161,name:"Arbitrum One",network:"arbitrum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://arb-mainnet.g.alchemy.com/v2"],webSocket:["wss://arb-mainnet.g.alchemy.com/v2"]},infura:{http:["https://arbitrum-mainnet.infura.io/v3"],webSocket:["wss://arbitrum-mainnet.infura.io/ws/v3"]},default:{http:["https://arb1.arbitrum.io/rpc"]},public:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://arbiscan.io"},default:{name:"Arbiscan",url:"https://arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7654707}}},avalanche={id:43114,name:"Avalanche",network:"avalanche",nativeCurrency:{decimals:18,name:"Avalanche",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax.network/ext/bc/C/rpc"]},public:{http:["https://api.avax.network/ext/bc/C/rpc"]}},blockExplorers:{etherscan:{name:"SnowTrace",url:"https://snowtrace.io"},default:{name:"SnowTrace",url:"https://snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11907934}}},bsc={id:56,name:"BSC",network:"bsc",nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://rpc.ankr.com/bsc"]},public:{http:["https://rpc.ankr.com/bsc"]}},blockExplorers:{etherscan:{name:"BscScan",url:"https://bscscan.com"},default:{name:"BscScan",url:"https://bscscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15921452}}},bscTestnet={id:97,name:"Binance Smart Chain Testnet",network:"bsc-testnet",nativeCurrency:{decimals:18,name:"BNB",symbol:"tBNB"},rpcUrls:{default:{http:["https://data-seed-prebsc-1-s1.binance.org:8545"]},public:{http:["https://data-seed-prebsc-1-s1.binance.org:8545"]}},blockExplorers:{etherscan:{name:"BscScan",url:"https://testnet.bscscan.com"},default:{name:"BscScan",url:"https://testnet.bscscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:17422483}},testnet:!0},cronos={id:25,name:"Cronos",network:"cronos",nativeCurrency:{decimals:18,name:"Cronos",symbol:"CRO"},rpcUrls:{default:{http:["https://node.croswap.com/rpc"]},public:{http:["https://node.croswap.com/rpc"]}},blockExplorers:{etherscan:{name:"CronosScan",url:"https://cronoscan.com"},default:{name:"CronosScan",url:"https://cronoscan.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1963112}}},evmos={id:9001,name:"Evmos",network:"evmos",nativeCurrency:{decimals:18,name:"Evmos",symbol:"EVMOS"},rpcUrls:{default:{http:["https://eth.bd.evmos.org:8545"]},public:{http:["https://eth.bd.evmos.org:8545"]}},blockExplorers:{default:{name:"Evmos Block Explorer",url:"https://escan.live/"}}},fantom={id:250,name:"Fantom",network:"fantom",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://rpc.ankr.com/fantom"]},public:{http:["https://rpc.ankr.com/fantom"]}},blockExplorers:{etherscan:{name:"FTMScan",url:"https://ftmscan.com"},default:{name:"FTMScan",url:"https://ftmscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:33001987}}},mainnet={id:1,network:"homestead",name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-mainnet.g.alchemy.com/v2"],webSocket:["wss://eth-mainnet.g.alchemy.com/v2"]},infura:{http:["https://mainnet.infura.io/v3"],webSocket:["wss://mainnet.infura.io/ws/v3"]},default:{http:["https://cloudflare-eth.com"]},public:{http:["https://cloudflare-eth.com"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://etherscan.io"},default:{name:"Etherscan",url:"https://etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xE4Acdd618deED4e6d2f03b9bf62dc6118FC9A4da",blockCreated:16773775},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}},optimism={id:10,name:"Optimism",network:"optimism",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://opt-mainnet.g.alchemy.com/v2"],webSocket:["wss://opt-mainnet.g.alchemy.com/v2"]},infura:{http:["https://optimism-mainnet.infura.io/v3"],webSocket:["wss://optimism-mainnet.infura.io/ws/v3"]},default:{http:["https://mainnet.optimism.io"]},public:{http:["https://mainnet.optimism.io"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://optimistic.etherscan.io"},default:{name:"Optimism Explorer",url:"https://explorer.optimism.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263}}},polygon={id:137,name:"Polygon",network:"matic",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{alchemy:{http:["https://polygon-mainnet.g.alchemy.com/v2"],webSocket:["wss://polygon-mainnet.g.alchemy.com/v2"]},infura:{http:["https://polygon-mainnet.infura.io/v3"],webSocket:["wss://polygon-mainnet.infura.io/ws/v3"]},default:{http:["https://polygon-rpc.com"]},public:{http:["https://polygon-rpc.com"]}},blockExplorers:{etherscan:{name:"PolygonScan",url:"https://polygonscan.com"},default:{name:"PolygonScan",url:"https://polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}}},sepolia={id:11155111,network:"sepolia",name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"SEP",decimals:18},rpcUrls:{alchemy:{http:["https://eth-sepolia.g.alchemy.com/v2"],webSocket:["wss://eth-sepolia.g.alchemy.com/v2"]},infura:{http:["https://sepolia.infura.io/v3"],webSocket:["wss://sepolia.infura.io/ws/v3"]},default:{http:["https://rpc.sepolia.org"]},public:{http:["https://rpc.sepolia.org"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://sepolia.etherscan.io"},default:{name:"Etherscan",url:"https://sepolia.etherscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0},zkSync={id:324,name:"zkSync Era",network:"zksync-era",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.era.zksync.io"],webSocket:["wss://mainnet.era.zksync.io/ws"]},public:{http:["https://mainnet.era.zksync.io"],webSocket:["wss://mainnet.era.zksync.io/ws"]}},blockExplorers:{default:{name:"zkExplorer",url:"https://explorer.zksync.io"}}},base$1={id:8453,network:"base",name:"Base",nativeCurrency:{name:"Base",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.base.org"]},public:{http:["https://mainnet.base.org"]}},blockExplorers:{blockscout:{name:"Basescout",url:"https://base.blockscout.com"},default:{name:"Basescan",url:"https://basescan.org"},etherscan:{name:"Basescan",url:"https://basescan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022}}},linea={id:59144,name:"Linea Mainnet",network:"linea-mainnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{infura:{http:["https://linea-mainnet.infura.io/v3"],webSocket:["wss://linea-mainnet.infura.io/ws/v3"]},default:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]},public:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://lineascan.build"},etherscan:{name:"Etherscan",url:"https://lineascan.build"},blockscout:{name:"Blockscout",url:"https://explorer.linea.build"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:42}},testnet:!1},kava={id:2222,name:"Kava EVM",network:"kava-mainnet",nativeCurrency:{name:"Kava",symbol:"KAVA",decimals:18},rpcUrls:{default:{http:["https://evm.kava.io"]},public:{http:["https://evm.kava.io"]}},blockExplorers:{default:{name:"Kava EVM Explorer",url:"https://kavascan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:3661165}},testnet:!1},holesky={id:17e3,name:"Holesky",network:"goerli",nativeCurrency:{name:"Holesky Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://ethereum-holesky.publicnode.com"]},public:{http:["https://ethereum-holesky.publicnode.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://holesky.etherscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:77},ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",blockCreated:801613},ensUniversalResolver:{address:"0x2548a7E09deE955c4d97688dcB6C5b24085725f5",blockCreated:815385}},testnet:!0},merlin={id:4200,name:"Merlin",network:"arbitrum",nativeCurrency:{name:"BTC",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://rpc.merlinchain.io"]},public:{http:["https://rpc.merlinchain.io"]}},blockExplorers:{default:{name:"blockscout",url:"https://scan.merlinchain.io"}}},manta={id:169,name:"Manta Pacific Mainnet",network:"manta",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://pacific-rpc.manta.network/http"]},public:{http:["https://pacific-rpc.manta.network/http"]}},blockExplorers:{default:{name:"Manta Explorer",url:"https://pacific-explorer.manta.network"}}},mantle={id:5e3,name:"Mantle",network:"mantle",nativeCurrency:{decimals:18,name:"MNT",symbol:"MNT"},rpcUrls:{default:{http:["https://rpc.mantle.xyz"]},public:{http:["https://rpc.mantle.xyz"]}},blockExplorers:{default:{name:"MantleScan",url:"https://mantlescan.xyz"}}},solana={id:-3,name:"Solana",network:"solana",nativeCurrency:{decimals:9,name:"SOL",symbol:"SOL"},rpcUrls:{default:{http:["https://api.mainnet-beta.solana.com"]},public:{http:["https://api.mainnet-beta.solana.com"]}},blockExplorers:{default:{name:"SolScan",url:"https://solscan.io"}}},storyTestnet={id:1513,name:"Story Partner Testnet",network:"story-testnet",nativeCurrency:{decimals:18,name:"IP",symbol:"IP"},rpcUrls:{default:{http:["https://rpc.partner.testnet.storyprotocol.net"]},public:{http:["https://rpc.partner.testnet.storyprotocol.net"]}},blockExplorers:{default:{name:"BlockScout",url:"https://explorer.testnet.storyprotocol.net"}}},scroll={id:534352,name:"Scroll",network:"scroll",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.scroll.io"],webSocket:["wss://wss-rpc.scroll.io/ws"]},public:{http:["https://rpc.scroll.io"],webSocket:["wss://wss-rpc.scroll.io/ws"]}},blockExplorers:{default:{name:"Scrollscan",url:"https://scrollscan.com"}},testnet:!1},BLOCKSEC_TOKEN="blocksec_token",USER_INFO="user_info",classnames={exports:{}};/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/(function(ht){(function(){var Et={}.hasOwnProperty;function yt(){for(var At="",Bt=0;Bt<arguments.length;Bt++){var Dt=arguments[Bt];Dt&&(At=$t(At,Ct(Dt)))}return At}function Ct(At){if(typeof At=="string"||typeof At=="number")return At;if(typeof At!="object")return"";if(Array.isArray(At))return yt.apply(null,At);if(At.toString!==Object.prototype.toString&&!At.toString.toString().includes("[native code]"))return At.toString();var Bt="";for(var Dt in At)Et.call(At,Dt)&&At[Dt]&&(Bt=$t(Bt,Dt));return Bt}function $t(At,Bt){return Bt?At?At+" "+Bt:At+Bt:At}ht.exports?(yt.default=yt,ht.exports=yt):window.classNames=yt})()})(classnames);var classnamesExports=classnames.exports;const cls=getDefaultExportFromCjs$1(classnamesExports);function _extends$5(){return _extends$5=Object.assign?Object.assign.bind():function(ht){for(var Et=1;Et<arguments.length;Et++){var yt=arguments[Et];for(var Ct in yt)({}).hasOwnProperty.call(yt,Ct)&&(ht[Ct]=yt[Ct])}return ht},_extends$5.apply(null,arguments)}var reactIs$2={exports:{}},reactIs_production_min$1={};/**
 * @license React
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var b$8=Symbol.for("react.element"),c$9=Symbol.for("react.portal"),d$a=Symbol.for("react.fragment"),e$5=Symbol.for("react.strict_mode"),f$a=Symbol.for("react.profiler"),g$3=Symbol.for("react.provider"),h$6=Symbol.for("react.context"),k$3=Symbol.for("react.server_context"),l$9=Symbol.for("react.forward_ref"),m$5=Symbol.for("react.suspense"),n$7=Symbol.for("react.suspense_list"),p$9=Symbol.for("react.memo"),q$3=Symbol.for("react.lazy"),t$b=Symbol.for("react.offscreen"),u$b;u$b=Symbol.for("react.module.reference");function v$5(ht){if(typeof ht=="object"&&ht!==null){var Et=ht.$$typeof;switch(Et){case b$8:switch(ht=ht.type,ht){case d$a:case f$a:case e$5:case m$5:case n$7:return ht;default:switch(ht=ht&&ht.$$typeof,ht){case k$3:case h$6:case l$9:case q$3:case p$9:case g$3:return ht;default:return Et}}case c$9:return Et}}}reactIs_production_min$1.ContextConsumer=h$6;reactIs_production_min$1.ContextProvider=g$3;reactIs_production_min$1.Element=b$8;reactIs_production_min$1.ForwardRef=l$9;reactIs_production_min$1.Fragment=d$a;reactIs_production_min$1.Lazy=q$3;reactIs_production_min$1.Memo=p$9;reactIs_production_min$1.Portal=c$9;reactIs_production_min$1.Profiler=f$a;reactIs_production_min$1.StrictMode=e$5;reactIs_production_min$1.Suspense=m$5;reactIs_production_min$1.SuspenseList=n$7;reactIs_production_min$1.isAsyncMode=function(){return!1};reactIs_production_min$1.isConcurrentMode=function(){return!1};reactIs_production_min$1.isContextConsumer=function(ht){return v$5(ht)===h$6};reactIs_production_min$1.isContextProvider=function(ht){return v$5(ht)===g$3};reactIs_production_min$1.isElement=function(ht){return typeof ht=="object"&&ht!==null&&ht.$$typeof===b$8};reactIs_production_min$1.isForwardRef=function(ht){return v$5(ht)===l$9};reactIs_production_min$1.isFragment=function(ht){return v$5(ht)===d$a};reactIs_production_min$1.isLazy=function(ht){return v$5(ht)===q$3};reactIs_production_min$1.isMemo=function(ht){return v$5(ht)===p$9};reactIs_production_min$1.isPortal=function(ht){return v$5(ht)===c$9};reactIs_production_min$1.isProfiler=function(ht){return v$5(ht)===f$a};reactIs_production_min$1.isStrictMode=function(ht){return v$5(ht)===e$5};reactIs_production_min$1.isSuspense=function(ht){return v$5(ht)===m$5};reactIs_production_min$1.isSuspenseList=function(ht){return v$5(ht)===n$7};reactIs_production_min$1.isValidElementType=function(ht){return typeof ht=="string"||typeof ht=="function"||ht===d$a||ht===f$a||ht===e$5||ht===m$5||ht===n$7||ht===t$b||typeof ht=="object"&&ht!==null&&(ht.$$typeof===q$3||ht.$$typeof===p$9||ht.$$typeof===g$3||ht.$$typeof===h$6||ht.$$typeof===l$9||ht.$$typeof===u$b||ht.getModuleId!==void 0)};reactIs_production_min$1.typeOf=v$5;reactIs$2.exports=reactIs_production_min$1;var reactIsExports$1=reactIs$2.exports;function toArray$5(ht){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},yt=[];return React$8.Children.forEach(ht,function(Ct){Ct==null&&!Et.keepEmpty||(Array.isArray(Ct)?yt=yt.concat(toArray$5(Ct)):reactIsExports$1.isFragment(Ct)&&Ct.props?yt=yt.concat(toArray$5(Ct.props.children,Et)):yt.push(Ct))}),yt}var warned={},preMessage=function ht(Et){};function warning$2(ht,Et){}function note(ht,Et){}function resetWarned(){warned={}}function call$b(ht,Et,yt){!Et&&!warned[yt]&&(ht(!1,yt),warned[yt]=!0)}function warningOnce(ht,Et){call$b(warning$2,ht,Et)}function noteOnce(ht,Et){call$b(note,ht,Et)}warningOnce.preMessage=preMessage;warningOnce.resetWarned=resetWarned;warningOnce.noteOnce=noteOnce;function _typeof$1(ht){"@babel/helpers - typeof";return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Et){return typeof Et}:function(Et){return Et&&typeof Symbol=="function"&&Et.constructor===Symbol&&Et!==Symbol.prototype?"symbol":typeof Et},_typeof$1(ht)}function toPrimitive$4(ht,Et){if(_typeof$1(ht)!="object"||!ht)return ht;var yt=ht[Symbol.toPrimitive];if(yt!==void 0){var Ct=yt.call(ht,Et||"default");if(_typeof$1(Ct)!="object")return Ct;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Et==="string"?String:Number)(ht)}function toPropertyKey$4(ht){var Et=toPrimitive$4(ht,"string");return _typeof$1(Et)=="symbol"?Et:Et+""}function _defineProperty$1(ht,Et,yt){return(Et=toPropertyKey$4(Et))in ht?Object.defineProperty(ht,Et,{value:yt,enumerable:!0,configurable:!0,writable:!0}):ht[Et]=yt,ht}function ownKeys$5(ht,Et){var yt=Object.keys(ht);if(Object.getOwnPropertySymbols){var Ct=Object.getOwnPropertySymbols(ht);Et&&(Ct=Ct.filter(function($t){return Object.getOwnPropertyDescriptor(ht,$t).enumerable})),yt.push.apply(yt,Ct)}return yt}function _objectSpread2(ht){for(var Et=1;Et<arguments.length;Et++){var yt=arguments[Et]!=null?arguments[Et]:{};Et%2?ownKeys$5(Object(yt),!0).forEach(function(Ct){_defineProperty$1(ht,Ct,yt[Ct])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ht,Object.getOwnPropertyDescriptors(yt)):ownKeys$5(Object(yt)).forEach(function(Ct){Object.defineProperty(ht,Ct,Object.getOwnPropertyDescriptor(yt,Ct))})}return ht}function isDOM(ht){return ht instanceof HTMLElement||ht instanceof SVGElement}function getDOM(ht){return ht&&_typeof$1(ht)==="object"&&isDOM(ht.nativeElement)?ht.nativeElement:isDOM(ht)?ht:null}function findDOMNode(ht){var Et=getDOM(ht);if(Et)return Et;if(ht instanceof React$8.Component){var yt;return(yt=ReactDOM.findDOMNode)===null||yt===void 0?void 0:yt.call(ReactDOM,ht)}return null}function useMemo(ht,Et,yt){var Ct=reactExports.useRef({});return(!("value"in Ct.current)||yt(Ct.current.condition,Et))&&(Ct.current.value=ht(),Ct.current.condition=Et),Ct.current.value}var fillRef=function ht(Et,yt){typeof Et=="function"?Et(yt):_typeof$1(Et)==="object"&&Et&&"current"in Et&&(Et.current=yt)},composeRef=function ht(){for(var Et=arguments.length,yt=new Array(Et),Ct=0;Ct<Et;Ct++)yt[Ct]=arguments[Ct];var $t=yt.filter(Boolean);return $t.length<=1?$t[0]:function(At){yt.forEach(function(Bt){fillRef(Bt,At)})}},useComposeRef=function ht(){for(var Et=arguments.length,yt=new Array(Et),Ct=0;Ct<Et;Ct++)yt[Ct]=arguments[Ct];return useMemo(function(){return composeRef.apply(void 0,yt)},yt,function($t,At){return $t.length!==At.length||$t.every(function(Bt,Dt){return Bt!==At[Dt]})})},supportRef=function ht(Et){var yt,Ct,$t=reactIsExports$1.isMemo(Et)?Et.type.type:Et.type;return!(typeof $t=="function"&&!((yt=$t.prototype)!==null&&yt!==void 0&&yt.render)&&$t.$$typeof!==reactIsExports$1.ForwardRef||typeof Et=="function"&&!((Ct=Et.prototype)!==null&&Ct!==void 0&&Ct.render)&&Et.$$typeof!==reactIsExports$1.ForwardRef)};function isReactElement(ht){return reactExports.isValidElement(ht)&&!reactIsExports$1.isFragment(ht)}var supportNodeRef=function ht(Et){return isReactElement(Et)&&supportRef(Et)};Number(reactExports.version.split(".")[0])>=19;var CollectionContext=reactExports.createContext(null);function Collection(ht){var Et=ht.children,yt=ht.onBatchResize,Ct=reactExports.useRef(0),$t=reactExports.useRef([]),At=reactExports.useContext(CollectionContext),Bt=reactExports.useCallback(function(Dt,Ft,kt){Ct.current+=1;var Mt=Ct.current;$t.current.push({size:Dt,element:Ft,data:kt}),Promise.resolve().then(function(){Mt===Ct.current&&(yt==null||yt($t.current),$t.current=[])}),At==null||At(Dt,Ft,kt)},[yt,At]);return reactExports.createElement(CollectionContext.Provider,{value:Bt},Et)}var MapShim=function(){if(typeof Map<"u")return Map;function ht(Et,yt){var Ct=-1;return Et.some(function($t,At){return $t[0]===yt?(Ct=At,!0):!1}),Ct}return function(){function Et(){this.__entries__=[]}return Object.defineProperty(Et.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),Et.prototype.get=function(yt){var Ct=ht(this.__entries__,yt),$t=this.__entries__[Ct];return $t&&$t[1]},Et.prototype.set=function(yt,Ct){var $t=ht(this.__entries__,yt);~$t?this.__entries__[$t][1]=Ct:this.__entries__.push([yt,Ct])},Et.prototype.delete=function(yt){var Ct=this.__entries__,$t=ht(Ct,yt);~$t&&Ct.splice($t,1)},Et.prototype.has=function(yt){return!!~ht(this.__entries__,yt)},Et.prototype.clear=function(){this.__entries__.splice(0)},Et.prototype.forEach=function(yt,Ct){Ct===void 0&&(Ct=null);for(var $t=0,At=this.__entries__;$t<At.length;$t++){var Bt=At[$t];yt.call(Ct,Bt[1],Bt[0])}},Et}()}(),isBrowser$2=typeof window<"u"&&typeof document<"u"&&window.document===document,global$1$1=function(){return typeof global$g<"u"&&global$g.Math===Math?global$g:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),requestAnimationFrame$1$1=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(global$1$1):function(ht){return setTimeout(function(){return ht(Date.now())},1e3/60)}}(),trailingTimeout=2;function throttle$1(ht,Et){var yt=!1,Ct=!1,$t=0;function At(){yt&&(yt=!1,ht()),Ct&&Dt()}function Bt(){requestAnimationFrame$1$1(At)}function Dt(){var Ft=Date.now();if(yt){if(Ft-$t<trailingTimeout)return;Ct=!0}else yt=!0,Ct=!1,setTimeout(Bt,Et);$t=Ft}return Dt}var REFRESH_DELAY=20,transitionKeys=["top","right","bottom","left","width","height","size","weight"],mutationObserverSupported=typeof MutationObserver<"u",ResizeObserverController=function(){function ht(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=throttle$1(this.refresh.bind(this),REFRESH_DELAY)}return ht.prototype.addObserver=function(Et){~this.observers_.indexOf(Et)||this.observers_.push(Et),this.connected_||this.connect_()},ht.prototype.removeObserver=function(Et){var yt=this.observers_,Ct=yt.indexOf(Et);~Ct&&yt.splice(Ct,1),!yt.length&&this.connected_&&this.disconnect_()},ht.prototype.refresh=function(){var Et=this.updateObservers_();Et&&this.refresh()},ht.prototype.updateObservers_=function(){var Et=this.observers_.filter(function(yt){return yt.gatherActive(),yt.hasActive()});return Et.forEach(function(yt){return yt.broadcastActive()}),Et.length>0},ht.prototype.connect_=function(){!isBrowser$2||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),mutationObserverSupported?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},ht.prototype.disconnect_=function(){!isBrowser$2||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},ht.prototype.onTransitionEnd_=function(Et){var yt=Et.propertyName,Ct=yt===void 0?"":yt,$t=transitionKeys.some(function(At){return!!~Ct.indexOf(At)});$t&&this.refresh()},ht.getInstance=function(){return this.instance_||(this.instance_=new ht),this.instance_},ht.instance_=null,ht}(),defineConfigurable=function(ht,Et){for(var yt=0,Ct=Object.keys(Et);yt<Ct.length;yt++){var $t=Ct[yt];Object.defineProperty(ht,$t,{value:Et[$t],enumerable:!1,writable:!1,configurable:!0})}return ht},getWindowOf=function(ht){var Et=ht&&ht.ownerDocument&&ht.ownerDocument.defaultView;return Et||global$1$1},emptyRect=createRectInit(0,0,0,0);function toFloat(ht){return parseFloat(ht)||0}function getBordersSize(ht){for(var Et=[],yt=1;yt<arguments.length;yt++)Et[yt-1]=arguments[yt];return Et.reduce(function(Ct,$t){var At=ht["border-"+$t+"-width"];return Ct+toFloat(At)},0)}function getPaddings(ht){for(var Et=["top","right","bottom","left"],yt={},Ct=0,$t=Et;Ct<$t.length;Ct++){var At=$t[Ct],Bt=ht["padding-"+At];yt[At]=toFloat(Bt)}return yt}function getSVGContentRect(ht){var Et=ht.getBBox();return createRectInit(0,0,Et.width,Et.height)}function getHTMLElementContentRect(ht){var Et=ht.clientWidth,yt=ht.clientHeight;if(!Et&&!yt)return emptyRect;var Ct=getWindowOf(ht).getComputedStyle(ht),$t=getPaddings(Ct),At=$t.left+$t.right,Bt=$t.top+$t.bottom,Dt=toFloat(Ct.width),Ft=toFloat(Ct.height);if(Ct.boxSizing==="border-box"&&(Math.round(Dt+At)!==Et&&(Dt-=getBordersSize(Ct,"left","right")+At),Math.round(Ft+Bt)!==yt&&(Ft-=getBordersSize(Ct,"top","bottom")+Bt)),!isDocumentElement(ht)){var kt=Math.round(Dt+At)-Et,Mt=Math.round(Ft+Bt)-yt;Math.abs(kt)!==1&&(Dt-=kt),Math.abs(Mt)!==1&&(Ft-=Mt)}return createRectInit($t.left,$t.top,Dt,Ft)}var isSVGGraphicsElement=function(){return typeof SVGGraphicsElement<"u"?function(ht){return ht instanceof getWindowOf(ht).SVGGraphicsElement}:function(ht){return ht instanceof getWindowOf(ht).SVGElement&&typeof ht.getBBox=="function"}}();function isDocumentElement(ht){return ht===getWindowOf(ht).document.documentElement}function getContentRect(ht){return isBrowser$2?isSVGGraphicsElement(ht)?getSVGContentRect(ht):getHTMLElementContentRect(ht):emptyRect}function createReadOnlyRect(ht){var Et=ht.x,yt=ht.y,Ct=ht.width,$t=ht.height,At=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,Bt=Object.create(At.prototype);return defineConfigurable(Bt,{x:Et,y:yt,width:Ct,height:$t,top:yt,right:Et+Ct,bottom:$t+yt,left:Et}),Bt}function createRectInit(ht,Et,yt,Ct){return{x:ht,y:Et,width:yt,height:Ct}}var ResizeObservation=function(){function ht(Et){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=createRectInit(0,0,0,0),this.target=Et}return ht.prototype.isActive=function(){var Et=getContentRect(this.target);return this.contentRect_=Et,Et.width!==this.broadcastWidth||Et.height!==this.broadcastHeight},ht.prototype.broadcastRect=function(){var Et=this.contentRect_;return this.broadcastWidth=Et.width,this.broadcastHeight=Et.height,Et},ht}(),ResizeObserverEntry=function(){function ht(Et,yt){var Ct=createReadOnlyRect(yt);defineConfigurable(this,{target:Et,contentRect:Ct})}return ht}(),ResizeObserverSPI=function(){function ht(Et,yt,Ct){if(this.activeObservations_=[],this.observations_=new MapShim,typeof Et!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=Et,this.controller_=yt,this.callbackCtx_=Ct}return ht.prototype.observe=function(Et){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(Et instanceof getWindowOf(Et).Element))throw new TypeError('parameter 1 is not of type "Element".');var yt=this.observations_;yt.has(Et)||(yt.set(Et,new ResizeObservation(Et)),this.controller_.addObserver(this),this.controller_.refresh())}},ht.prototype.unobserve=function(Et){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(Et instanceof getWindowOf(Et).Element))throw new TypeError('parameter 1 is not of type "Element".');var yt=this.observations_;yt.has(Et)&&(yt.delete(Et),yt.size||this.controller_.removeObserver(this))}},ht.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},ht.prototype.gatherActive=function(){var Et=this;this.clearActive(),this.observations_.forEach(function(yt){yt.isActive()&&Et.activeObservations_.push(yt)})},ht.prototype.broadcastActive=function(){if(this.hasActive()){var Et=this.callbackCtx_,yt=this.activeObservations_.map(function(Ct){return new ResizeObserverEntry(Ct.target,Ct.broadcastRect())});this.callback_.call(Et,yt,Et),this.clearActive()}},ht.prototype.clearActive=function(){this.activeObservations_.splice(0)},ht.prototype.hasActive=function(){return this.activeObservations_.length>0},ht}(),observers=typeof WeakMap<"u"?new WeakMap:new MapShim,ResizeObserver$2=function(){function ht(Et){if(!(this instanceof ht))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var yt=ResizeObserverController.getInstance(),Ct=new ResizeObserverSPI(Et,yt,this);observers.set(this,Ct)}return ht}();["observe","unobserve","disconnect"].forEach(function(ht){ResizeObserver$2.prototype[ht]=function(){var Et;return(Et=observers.get(this))[ht].apply(Et,arguments)}});var index=function(){return typeof global$1$1.ResizeObserver<"u"?global$1$1.ResizeObserver:ResizeObserver$2}(),elementListeners=new Map;function onResize(ht){ht.forEach(function(Et){var yt,Ct=Et.target;(yt=elementListeners.get(Ct))===null||yt===void 0||yt.forEach(function($t){return $t(Ct)})})}var resizeObserver=new index(onResize);function observe(ht,Et){elementListeners.has(ht)||(elementListeners.set(ht,new Set),resizeObserver.observe(ht)),elementListeners.get(ht).add(Et)}function unobserve(ht,Et){elementListeners.has(ht)&&(elementListeners.get(ht).delete(Et),elementListeners.get(ht).size||(resizeObserver.unobserve(ht),elementListeners.delete(ht)))}function _classCallCheck(ht,Et){if(!(ht instanceof Et))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1(ht,Et){for(var yt=0;yt<Et.length;yt++){var Ct=Et[yt];Ct.enumerable=Ct.enumerable||!1,Ct.configurable=!0,"value"in Ct&&(Ct.writable=!0),Object.defineProperty(ht,toPropertyKey$4(Ct.key),Ct)}}function _createClass$1(ht,Et,yt){return Et&&_defineProperties$1(ht.prototype,Et),yt&&_defineProperties$1(ht,yt),Object.defineProperty(ht,"prototype",{writable:!1}),ht}function _setPrototypeOf$2(ht,Et){return _setPrototypeOf$2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(yt,Ct){return yt.__proto__=Ct,yt},_setPrototypeOf$2(ht,Et)}function _inherits(ht,Et){if(typeof Et!="function"&&Et!==null)throw new TypeError("Super expression must either be null or a function");ht.prototype=Object.create(Et&&Et.prototype,{constructor:{value:ht,writable:!0,configurable:!0}}),Object.defineProperty(ht,"prototype",{writable:!1}),Et&&_setPrototypeOf$2(ht,Et)}function _getPrototypeOf(ht){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Et){return Et.__proto__||Object.getPrototypeOf(Et)},_getPrototypeOf(ht)}function _isNativeReflectConstruct$5(){try{var ht=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$5=function(){return!!ht})()}function _assertThisInitialized$1(ht){if(ht===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ht}function _possibleConstructorReturn(ht,Et){if(Et&&(_typeof$1(Et)=="object"||typeof Et=="function"))return Et;if(Et!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$1(ht)}function _createSuper$5(ht){var Et=_isNativeReflectConstruct$5();return function(){var yt,Ct=_getPrototypeOf(ht);if(Et){var $t=_getPrototypeOf(this).constructor;yt=Reflect.construct(Ct,arguments,$t)}else yt=Ct.apply(this,arguments);return _possibleConstructorReturn(this,yt)}}var DomWrapper$1=function(ht){_inherits(yt,ht);var Et=_createSuper$5(yt);function yt(){return _classCallCheck(this,yt),Et.apply(this,arguments)}return _createClass$1(yt,[{key:"render",value:function(){return this.props.children}}]),yt}(reactExports.Component);function SingleObserver(ht,Et){var yt=ht.children,Ct=ht.disabled,$t=reactExports.useRef(null),At=reactExports.useRef(null),Bt=reactExports.useContext(CollectionContext),Dt=typeof yt=="function",Ft=Dt?yt($t):yt,kt=reactExports.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),Mt=!Dt&&reactExports.isValidElement(Ft)&&supportRef(Ft),Nt=Mt?Ft.ref:null,jt=useComposeRef(Nt,$t),zt=function(){var Qt;return findDOMNode($t.current)||($t.current&&_typeof$1($t.current)==="object"?findDOMNode((Qt=$t.current)===null||Qt===void 0?void 0:Qt.nativeElement):null)||findDOMNode(At.current)};reactExports.useImperativeHandle(Et,function(){return zt()});var Vt=reactExports.useRef(ht);Vt.current=ht;var Kt=reactExports.useCallback(function(Xt){var Qt=Vt.current,Zt=Qt.onResize,dr=Qt.data,cr=Xt.getBoundingClientRect(),Er=cr.width,pr=cr.height,gr=Xt.offsetWidth,vr=Xt.offsetHeight,yr=Math.floor(Er),xr=Math.floor(pr);if(kt.current.width!==yr||kt.current.height!==xr||kt.current.offsetWidth!==gr||kt.current.offsetHeight!==vr){var rr={width:yr,height:xr,offsetWidth:gr,offsetHeight:vr};kt.current=rr;var Lt=gr===Math.round(Er)?Er:gr,Ht=vr===Math.round(pr)?pr:vr,Wt=_objectSpread2(_objectSpread2({},rr),{},{offsetWidth:Lt,offsetHeight:Ht});Bt==null||Bt(Wt,Xt,dr),Zt&&Promise.resolve().then(function(){Zt(Wt,Xt)})}},[]);return reactExports.useEffect(function(){var Xt=zt();return Xt&&!Ct&&observe(Xt,Kt),function(){return unobserve(Xt,Kt)}},[$t.current,Ct]),reactExports.createElement(DomWrapper$1,{ref:At},Mt?reactExports.cloneElement(Ft,{ref:jt}):Ft)}var RefSingleObserver=reactExports.forwardRef(SingleObserver),INTERNAL_PREFIX_KEY="rc-observer-key";function ResizeObserver$1(ht,Et){var yt=ht.children,Ct=typeof yt=="function"?[yt]:toArray$5(yt);return Ct.map(function($t,At){var Bt=($t==null?void 0:$t.key)||"".concat(INTERNAL_PREFIX_KEY,"-").concat(At);return reactExports.createElement(RefSingleObserver,_extends$5({},ht,{key:Bt,ref:At===0?Et:void 0}),$t)})}var RefResizeObserver=reactExports.forwardRef(ResizeObserver$1);RefResizeObserver.Collection=Collection;function omit$1(ht,Et){var yt=Object.assign({},ht);return Array.isArray(Et)&&Et.forEach(function(Ct){delete yt[Ct]}),yt}function _arrayLikeToArray$1(ht,Et){(Et==null||Et>ht.length)&&(Et=ht.length);for(var yt=0,Ct=Array(Et);yt<Et;yt++)Ct[yt]=ht[yt];return Ct}function _arrayWithoutHoles(ht){if(Array.isArray(ht))return _arrayLikeToArray$1(ht)}function _iterableToArray(ht){if(typeof Symbol<"u"&&ht[Symbol.iterator]!=null||ht["@@iterator"]!=null)return Array.from(ht)}function _unsupportedIterableToArray$1(ht,Et){if(ht){if(typeof ht=="string")return _arrayLikeToArray$1(ht,Et);var yt={}.toString.call(ht).slice(8,-1);return yt==="Object"&&ht.constructor&&(yt=ht.constructor.name),yt==="Map"||yt==="Set"?Array.from(ht):yt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(yt)?_arrayLikeToArray$1(ht,Et):void 0}}function _nonIterableSpread(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _toConsumableArray(ht){return _arrayWithoutHoles(ht)||_iterableToArray(ht)||_unsupportedIterableToArray$1(ht)||_nonIterableSpread()}var raf$2=function ht(Et){return+setTimeout(Et,16)},caf$1=function ht(Et){return clearTimeout(Et)};typeof window<"u"&&"requestAnimationFrame"in window&&(raf$2=function(Et){return window.requestAnimationFrame(Et)},caf$1=function(Et){return window.cancelAnimationFrame(Et)});var rafUUID=0,rafIds=new Map;function cleanup(ht){rafIds.delete(ht)}var wrapperRaf=function ht(Et){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;rafUUID+=1;var Ct=rafUUID;function $t(At){if(At===0)cleanup(Ct),Et();else{var Bt=raf$2(function(){$t(At-1)});rafIds.set(Ct,Bt)}}return $t(yt),Ct};wrapperRaf.cancel=function(ht){var Et=rafIds.get(ht);return cleanup(ht),caf$1(Et)};function _arrayWithHoles(ht){if(Array.isArray(ht))return ht}function _iterableToArrayLimit(ht,Et){var yt=ht==null?null:typeof Symbol<"u"&&ht[Symbol.iterator]||ht["@@iterator"];if(yt!=null){var Ct,$t,At,Bt,Dt=[],Ft=!0,kt=!1;try{if(At=(yt=yt.call(ht)).next,Et===0){if(Object(yt)!==yt)return;Ft=!1}else for(;!(Ft=(Ct=At.call(yt)).done)&&(Dt.push(Ct.value),Dt.length!==Et);Ft=!0);}catch(Mt){kt=!0,$t=Mt}finally{try{if(!Ft&&yt.return!=null&&(Bt=yt.return(),Object(Bt)!==Bt))return}finally{if(kt)throw $t}}return Dt}}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _slicedToArray(ht,Et){return _arrayWithHoles(ht)||_iterableToArrayLimit(ht,Et)||_unsupportedIterableToArray$1(ht,Et)||_nonIterableRest()}function murmur2(ht){for(var Et=0,yt,Ct=0,$t=ht.length;$t>=4;++Ct,$t-=4)yt=ht.charCodeAt(Ct)&255|(ht.charCodeAt(++Ct)&255)<<8|(ht.charCodeAt(++Ct)&255)<<16|(ht.charCodeAt(++Ct)&255)<<24,yt=(yt&65535)*1540483477+((yt>>>16)*59797<<16),yt^=yt>>>24,Et=(yt&65535)*1540483477+((yt>>>16)*59797<<16)^(Et&65535)*1540483477+((Et>>>16)*59797<<16);switch($t){case 3:Et^=(ht.charCodeAt(Ct+2)&255)<<16;case 2:Et^=(ht.charCodeAt(Ct+1)&255)<<8;case 1:Et^=ht.charCodeAt(Ct)&255,Et=(Et&65535)*1540483477+((Et>>>16)*59797<<16)}return Et^=Et>>>13,Et=(Et&65535)*1540483477+((Et>>>16)*59797<<16),((Et^Et>>>15)>>>0).toString(36)}function canUseDom(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function contains(ht,Et){if(!ht)return!1;if(ht.contains)return ht.contains(Et);for(var yt=Et;yt;){if(yt===ht)return!0;yt=yt.parentNode}return!1}var APPEND_ORDER="data-rc-order",APPEND_PRIORITY="data-rc-priority",MARK_KEY="rc-util-key",containerCache=new Map;function getMark(){var ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Et=ht.mark;return Et?Et.startsWith("data-")?Et:"data-".concat(Et):MARK_KEY}function getContainer(ht){if(ht.attachTo)return ht.attachTo;var Et=document.querySelector("head");return Et||document.body}function getOrder(ht){return ht==="queue"?"prependQueue":ht?"prepend":"append"}function findStyles(ht){return Array.from((containerCache.get(ht)||ht).children).filter(function(Et){return Et.tagName==="STYLE"})}function injectCSS(ht){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!canUseDom())return null;var yt=Et.csp,Ct=Et.prepend,$t=Et.priority,At=$t===void 0?0:$t,Bt=getOrder(Ct),Dt=Bt==="prependQueue",Ft=document.createElement("style");Ft.setAttribute(APPEND_ORDER,Bt),Dt&&At&&Ft.setAttribute(APPEND_PRIORITY,"".concat(At)),yt!=null&&yt.nonce&&(Ft.nonce=yt==null?void 0:yt.nonce),Ft.innerHTML=ht;var kt=getContainer(Et),Mt=kt.firstChild;if(Ct){if(Dt){var Nt=(Et.styles||findStyles(kt)).filter(function(jt){if(!["prepend","prependQueue"].includes(jt.getAttribute(APPEND_ORDER)))return!1;var zt=Number(jt.getAttribute(APPEND_PRIORITY)||0);return At>=zt});if(Nt.length)return kt.insertBefore(Ft,Nt[Nt.length-1].nextSibling),Ft}kt.insertBefore(Ft,Mt)}else kt.appendChild(Ft);return Ft}function findExistNode(ht){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},yt=getContainer(Et);return(Et.styles||findStyles(yt)).find(function(Ct){return Ct.getAttribute(getMark(Et))===ht})}function removeCSS(ht){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},yt=findExistNode(ht,Et);if(yt){var Ct=getContainer(Et);Ct.removeChild(yt)}}function syncRealContainer(ht,Et){var yt=containerCache.get(ht);if(!yt||!contains(document,yt)){var Ct=injectCSS("",Et),$t=Ct.parentNode;containerCache.set(ht,$t),ht.removeChild(Ct)}}function updateCSS(ht,Et){var yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ct=getContainer(yt),$t=findStyles(Ct),At=_objectSpread2(_objectSpread2({},yt),{},{styles:$t});syncRealContainer(Ct,At);var Bt=findExistNode(Et,At);if(Bt){var Dt,Ft;if((Dt=At.csp)!==null&&Dt!==void 0&&Dt.nonce&&Bt.nonce!==((Ft=At.csp)===null||Ft===void 0?void 0:Ft.nonce)){var kt;Bt.nonce=(kt=At.csp)===null||kt===void 0?void 0:kt.nonce}return Bt.innerHTML!==ht&&(Bt.innerHTML=ht),Bt}var Mt=injectCSS(ht,At);return Mt.setAttribute(getMark(At),Et),Mt}function _objectWithoutPropertiesLoose$2(ht,Et){if(ht==null)return{};var yt={};for(var Ct in ht)if({}.hasOwnProperty.call(ht,Ct)){if(Et.includes(Ct))continue;yt[Ct]=ht[Ct]}return yt}function _objectWithoutProperties$1(ht,Et){if(ht==null)return{};var yt,Ct,$t=_objectWithoutPropertiesLoose$2(ht,Et);if(Object.getOwnPropertySymbols){var At=Object.getOwnPropertySymbols(ht);for(Ct=0;Ct<At.length;Ct++)yt=At[Ct],Et.includes(yt)||{}.propertyIsEnumerable.call(ht,yt)&&($t[yt]=ht[yt])}return $t}function isEqual$3(ht,Et){var yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ct=new Set;function $t(At,Bt){var Dt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Ft=Ct.has(At);if(warningOnce(!Ft,"Warning: There may be circular references"),Ft)return!1;if(At===Bt)return!0;if(yt&&Dt>1)return!1;Ct.add(At);var kt=Dt+1;if(Array.isArray(At)){if(!Array.isArray(Bt)||At.length!==Bt.length)return!1;for(var Mt=0;Mt<At.length;Mt++)if(!$t(At[Mt],Bt[Mt],kt))return!1;return!0}if(At&&Bt&&_typeof$1(At)==="object"&&_typeof$1(Bt)==="object"){var Nt=Object.keys(At);return Nt.length!==Object.keys(Bt).length?!1:Nt.every(function(jt){return $t(At[jt],Bt[jt],kt)})}return!1}return $t(ht,Et)}var SPLIT$1="%";function pathKey(ht){return ht.join(SPLIT$1)}var Entity=function(){function ht(Et){_classCallCheck(this,ht),_defineProperty$1(this,"instanceId",void 0),_defineProperty$1(this,"cache",new Map),this.instanceId=Et}return _createClass$1(ht,[{key:"get",value:function(yt){return this.opGet(pathKey(yt))}},{key:"opGet",value:function(yt){return this.cache.get(yt)||null}},{key:"update",value:function(yt,Ct){return this.opUpdate(pathKey(yt),Ct)}},{key:"opUpdate",value:function(yt,Ct){var $t=this.cache.get(yt),At=Ct($t);At===null?this.cache.delete(yt):this.cache.set(yt,At)}}]),ht}(),ATTR_TOKEN="data-token-hash",ATTR_MARK="data-css-hash",CSS_IN_JS_INSTANCE="__cssinjs_instance__";function createCache(){var ht=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var Et=document.body.querySelectorAll("style[".concat(ATTR_MARK,"]"))||[],yt=document.head.firstChild;Array.from(Et).forEach(function($t){$t[CSS_IN_JS_INSTANCE]=$t[CSS_IN_JS_INSTANCE]||ht,$t[CSS_IN_JS_INSTANCE]===ht&&document.head.insertBefore($t,yt)});var Ct={};Array.from(document.querySelectorAll("style[".concat(ATTR_MARK,"]"))).forEach(function($t){var At=$t.getAttribute(ATTR_MARK);if(Ct[At]){if($t[CSS_IN_JS_INSTANCE]===ht){var Bt;(Bt=$t.parentNode)===null||Bt===void 0||Bt.removeChild($t)}}else Ct[At]=!0})}return new Entity(ht)}var StyleContext=reactExports.createContext({hashPriority:"low",cache:createCache(),defaultCache:!0}),AbstractCalculator=_createClass$1(function ht(){_classCallCheck(this,ht)}),CALC_UNIT="CALC_UNIT",regexp$1=new RegExp(CALC_UNIT,"g");function unit$1(ht){return typeof ht=="number"?"".concat(ht).concat(CALC_UNIT):ht}var CSSCalculator=function(ht){_inherits(yt,ht);var Et=_createSuper$5(yt);function yt(Ct,$t){var At;_classCallCheck(this,yt),At=Et.call(this),_defineProperty$1(_assertThisInitialized$1(At),"result",""),_defineProperty$1(_assertThisInitialized$1(At),"unitlessCssVar",void 0),_defineProperty$1(_assertThisInitialized$1(At),"lowPriority",void 0);var Bt=_typeof$1(Ct);return At.unitlessCssVar=$t,Ct instanceof yt?At.result="(".concat(Ct.result,")"):Bt==="number"?At.result=unit$1(Ct):Bt==="string"&&(At.result=Ct),At}return _createClass$1(yt,[{key:"add",value:function($t){return $t instanceof yt?this.result="".concat(this.result," + ").concat($t.getResult()):(typeof $t=="number"||typeof $t=="string")&&(this.result="".concat(this.result," + ").concat(unit$1($t))),this.lowPriority=!0,this}},{key:"sub",value:function($t){return $t instanceof yt?this.result="".concat(this.result," - ").concat($t.getResult()):(typeof $t=="number"||typeof $t=="string")&&(this.result="".concat(this.result," - ").concat(unit$1($t))),this.lowPriority=!0,this}},{key:"mul",value:function($t){return this.lowPriority&&(this.result="(".concat(this.result,")")),$t instanceof yt?this.result="".concat(this.result," * ").concat($t.getResult(!0)):(typeof $t=="number"||typeof $t=="string")&&(this.result="".concat(this.result," * ").concat($t)),this.lowPriority=!1,this}},{key:"div",value:function($t){return this.lowPriority&&(this.result="(".concat(this.result,")")),$t instanceof yt?this.result="".concat(this.result," / ").concat($t.getResult(!0)):(typeof $t=="number"||typeof $t=="string")&&(this.result="".concat(this.result," / ").concat($t)),this.lowPriority=!1,this}},{key:"getResult",value:function($t){return this.lowPriority||$t?"(".concat(this.result,")"):this.result}},{key:"equal",value:function($t){var At=this,Bt=$t||{},Dt=Bt.unit,Ft=!0;return typeof Dt=="boolean"?Ft=Dt:Array.from(this.unitlessCssVar).some(function(kt){return At.result.includes(kt)})&&(Ft=!1),this.result=this.result.replace(regexp$1,Ft?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),yt}(AbstractCalculator),NumCalculator=function(ht){_inherits(yt,ht);var Et=_createSuper$5(yt);function yt(Ct){var $t;return _classCallCheck(this,yt),$t=Et.call(this),_defineProperty$1(_assertThisInitialized$1($t),"result",0),Ct instanceof yt?$t.result=Ct.result:typeof Ct=="number"&&($t.result=Ct),$t}return _createClass$1(yt,[{key:"add",value:function($t){return $t instanceof yt?this.result+=$t.result:typeof $t=="number"&&(this.result+=$t),this}},{key:"sub",value:function($t){return $t instanceof yt?this.result-=$t.result:typeof $t=="number"&&(this.result-=$t),this}},{key:"mul",value:function($t){return $t instanceof yt?this.result*=$t.result:typeof $t=="number"&&(this.result*=$t),this}},{key:"div",value:function($t){return $t instanceof yt?this.result/=$t.result:typeof $t=="number"&&(this.result/=$t),this}},{key:"equal",value:function(){return this.result}}]),yt}(AbstractCalculator),genCalc=function ht(Et,yt){var Ct=Et==="css"?CSSCalculator:NumCalculator;return function($t){return new Ct($t,yt)}};function sameDerivativeOption(ht,Et){if(ht.length!==Et.length)return!1;for(var yt=0;yt<ht.length;yt++)if(ht[yt]!==Et[yt])return!1;return!0}var ThemeCache=function(){function ht(){_classCallCheck(this,ht),_defineProperty$1(this,"cache",void 0),_defineProperty$1(this,"keys",void 0),_defineProperty$1(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return _createClass$1(ht,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(yt){var Ct,$t,At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Bt={map:this.cache};return yt.forEach(function(Dt){if(!Bt)Bt=void 0;else{var Ft;Bt=(Ft=Bt)===null||Ft===void 0||(Ft=Ft.map)===null||Ft===void 0?void 0:Ft.get(Dt)}}),(Ct=Bt)!==null&&Ct!==void 0&&Ct.value&&At&&(Bt.value[1]=this.cacheCallTimes++),($t=Bt)===null||$t===void 0?void 0:$t.value}},{key:"get",value:function(yt){var Ct;return(Ct=this.internalGet(yt,!0))===null||Ct===void 0?void 0:Ct[0]}},{key:"has",value:function(yt){return!!this.internalGet(yt)}},{key:"set",value:function(yt,Ct){var $t=this;if(!this.has(yt)){if(this.size()+1>ht.MAX_CACHE_SIZE+ht.MAX_CACHE_OFFSET){var At=this.keys.reduce(function(kt,Mt){var Nt=_slicedToArray(kt,2),jt=Nt[1];return $t.internalGet(Mt)[1]<jt?[Mt,$t.internalGet(Mt)[1]]:kt},[this.keys[0],this.cacheCallTimes]),Bt=_slicedToArray(At,1),Dt=Bt[0];this.delete(Dt)}this.keys.push(yt)}var Ft=this.cache;yt.forEach(function(kt,Mt){if(Mt===yt.length-1)Ft.set(kt,{value:[Ct,$t.cacheCallTimes++]});else{var Nt=Ft.get(kt);Nt?Nt.map||(Nt.map=new Map):Ft.set(kt,{map:new Map}),Ft=Ft.get(kt).map}})}},{key:"deleteByPath",value:function(yt,Ct){var $t=yt.get(Ct[0]);if(Ct.length===1){var At;return $t.map?yt.set(Ct[0],{map:$t.map}):yt.delete(Ct[0]),(At=$t.value)===null||At===void 0?void 0:At[0]}var Bt=this.deleteByPath($t.map,Ct.slice(1));return(!$t.map||$t.map.size===0)&&!$t.value&&yt.delete(Ct[0]),Bt}},{key:"delete",value:function(yt){if(this.has(yt))return this.keys=this.keys.filter(function(Ct){return!sameDerivativeOption(Ct,yt)}),this.deleteByPath(this.cache,yt)}}]),ht}();_defineProperty$1(ThemeCache,"MAX_CACHE_SIZE",20);_defineProperty$1(ThemeCache,"MAX_CACHE_OFFSET",5);var uuid$6=0,Theme=function(){function ht(Et){_classCallCheck(this,ht),_defineProperty$1(this,"derivatives",void 0),_defineProperty$1(this,"id",void 0),this.derivatives=Array.isArray(Et)?Et:[Et],this.id=uuid$6,Et.length===0&&(Et.length>0,void 0),uuid$6+=1}return _createClass$1(ht,[{key:"getDerivativeToken",value:function(yt){return this.derivatives.reduce(function(Ct,$t){return $t(yt,Ct)},void 0)}}]),ht}(),cacheThemes=new ThemeCache;function createTheme(ht){var Et=Array.isArray(ht)?ht:[ht];return cacheThemes.has(Et)||cacheThemes.set(Et,new Theme(Et)),cacheThemes.get(Et)}var resultCache=new WeakMap,RESULT_VALUE={};function memoResult(ht,Et){for(var yt=resultCache,Ct=0;Ct<Et.length;Ct+=1){var $t=Et[Ct];yt.has($t)||yt.set($t,new WeakMap),yt=yt.get($t)}return yt.has(RESULT_VALUE)||yt.set(RESULT_VALUE,ht()),yt.get(RESULT_VALUE)}var flattenTokenCache=new WeakMap;function flattenToken(ht){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,yt=flattenTokenCache.get(ht)||"";return yt||(Object.keys(ht).forEach(function(Ct){var $t=ht[Ct];yt+=Ct,$t instanceof Theme?yt+=$t.id:$t&&_typeof$1($t)==="object"?yt+=flattenToken($t,Et):yt+=$t}),Et&&(yt=murmur2(yt)),flattenTokenCache.set(ht,yt)),yt}function token2key(ht,Et){return murmur2("".concat(Et,"_").concat(flattenToken(ht,!0)))}var isClientSide=canUseDom();function unit(ht){return typeof ht=="number"?"".concat(ht,"px"):ht}function toStyleStr(ht,Et,yt){var Ct=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},$t=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if($t)return ht;var At=_objectSpread2(_objectSpread2({},Ct),{},_defineProperty$1(_defineProperty$1({},ATTR_TOKEN,Et),ATTR_MARK,yt)),Bt=Object.keys(At).map(function(Dt){var Ft=At[Dt];return Ft?"".concat(Dt,'="').concat(Ft,'"'):null}).filter(function(Dt){return Dt}).join(" ");return"<style ".concat(Bt,">").concat(ht,"</style>")}var token2CSSVar=function ht(Et){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(yt?"".concat(yt,"-"):"").concat(Et).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},serializeCSSVar=function ht(Et,yt,Ct){return Object.keys(Et).length?".".concat(yt).concat(Ct!=null&&Ct.scope?".".concat(Ct.scope):"","{").concat(Object.entries(Et).map(function($t){var At=_slicedToArray($t,2),Bt=At[0],Dt=At[1];return"".concat(Bt,":").concat(Dt,";")}).join(""),"}"):""},transformToken=function ht(Et,yt,Ct){var $t={},At={};return Object.entries(Et).forEach(function(Bt){var Dt,Ft,kt=_slicedToArray(Bt,2),Mt=kt[0],Nt=kt[1];if(Ct!=null&&(Dt=Ct.preserve)!==null&&Dt!==void 0&&Dt[Mt])At[Mt]=Nt;else if((typeof Nt=="string"||typeof Nt=="number")&&!(Ct!=null&&(Ft=Ct.ignore)!==null&&Ft!==void 0&&Ft[Mt])){var jt,zt=token2CSSVar(Mt,Ct==null?void 0:Ct.prefix);$t[zt]=typeof Nt=="number"&&!(Ct!=null&&(jt=Ct.unitless)!==null&&jt!==void 0&&jt[Mt])?"".concat(Nt,"px"):String(Nt),At[Mt]="var(".concat(zt,")")}}),[At,serializeCSSVar($t,yt,{scope:Ct==null?void 0:Ct.scope})]},useInternalLayoutEffect=canUseDom()?reactExports.useLayoutEffect:reactExports.useEffect,useLayoutEffect$1=function ht(Et,yt){var Ct=reactExports.useRef(!0);useInternalLayoutEffect(function(){return Et(Ct.current)},yt),useInternalLayoutEffect(function(){return Ct.current=!1,function(){Ct.current=!0}},[])},useLayoutUpdateEffect=function ht(Et,yt){useLayoutEffect$1(function(Ct){if(!Ct)return Et()},yt)},fullClone$3=_objectSpread2({},e$9),useInsertionEffect$1=fullClone$3.useInsertionEffect,useInsertionEffectPolyfill=function ht(Et,yt,Ct){reactExports.useMemo(Et,Ct),useLayoutEffect$1(function(){return yt(!0)},Ct)},useCompatibleInsertionEffect=useInsertionEffect$1?function(ht,Et,yt){return useInsertionEffect$1(function(){return ht(),Et()},yt)}:useInsertionEffectPolyfill,fullClone$2=_objectSpread2({},e$9),useInsertionEffect=fullClone$2.useInsertionEffect,useCleanupRegister=function ht(Et){var yt=[],Ct=!1;function $t(At){Ct||yt.push(At)}return reactExports.useEffect(function(){return Ct=!1,function(){Ct=!0,yt.length&&yt.forEach(function(At){return At()})}},Et),$t},useRun=function ht(){return function(Et){Et()}},useEffectCleanupRegister=typeof useInsertionEffect<"u"?useCleanupRegister:useRun;function useGlobalCache(ht,Et,yt,Ct,$t){var At=reactExports.useContext(StyleContext),Bt=At.cache,Dt=[ht].concat(_toConsumableArray(Et)),Ft=pathKey(Dt),kt=useEffectCleanupRegister([Ft]),Mt=function(Vt){Bt.opUpdate(Ft,function(Kt){var Xt=Kt||[void 0,void 0],Qt=_slicedToArray(Xt,2),Zt=Qt[0],dr=Zt===void 0?0:Zt,cr=Qt[1],Er=cr,pr=Er||yt(),gr=[dr,pr];return Vt?Vt(gr):gr})};reactExports.useMemo(function(){Mt()},[Ft]);var Nt=Bt.opGet(Ft),jt=Nt[1];return useCompatibleInsertionEffect(function(){$t==null||$t(jt)},function(zt){return Mt(function(Vt){var Kt=_slicedToArray(Vt,2),Xt=Kt[0],Qt=Kt[1];return zt&&Xt===0&&($t==null||$t(jt)),[Xt+1,Qt]}),function(){Bt.opUpdate(Ft,function(Vt){var Kt=Vt||[],Xt=_slicedToArray(Kt,2),Qt=Xt[0],Zt=Qt===void 0?0:Qt,dr=Xt[1],cr=Zt-1;return cr===0?(kt(function(){(zt||!Bt.opGet(Ft))&&(Ct==null||Ct(dr,!1))}),null):[Zt-1,dr]})}},[Ft]),jt}var EMPTY_OVERRIDE={},hashPrefix="css",tokenKeys=new Map;function recordCleanToken(ht){tokenKeys.set(ht,(tokenKeys.get(ht)||0)+1)}function removeStyleTags(ht,Et){if(typeof document<"u"){var yt=document.querySelectorAll("style[".concat(ATTR_TOKEN,'="').concat(ht,'"]'));yt.forEach(function(Ct){if(Ct[CSS_IN_JS_INSTANCE]===Et){var $t;($t=Ct.parentNode)===null||$t===void 0||$t.removeChild(Ct)}})}}var TOKEN_THRESHOLD=0;function cleanTokenStyle(ht,Et){tokenKeys.set(ht,(tokenKeys.get(ht)||0)-1);var yt=Array.from(tokenKeys.keys()),Ct=yt.filter(function($t){var At=tokenKeys.get($t)||0;return At<=0});yt.length-Ct.length>TOKEN_THRESHOLD&&Ct.forEach(function($t){removeStyleTags($t,Et),tokenKeys.delete($t)})}var getComputedToken$1=function ht(Et,yt,Ct,$t){var At=Ct.getDerivativeToken(Et),Bt=_objectSpread2(_objectSpread2({},At),yt);return $t&&(Bt=$t(Bt)),Bt},TOKEN_PREFIX="token";function useCacheToken(ht,Et){var yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ct=reactExports.useContext(StyleContext),$t=Ct.cache.instanceId,At=Ct.container,Bt=yt.salt,Dt=Bt===void 0?"":Bt,Ft=yt.override,kt=Ft===void 0?EMPTY_OVERRIDE:Ft,Mt=yt.formatToken,Nt=yt.getComputedToken,jt=yt.cssVar,zt=memoResult(function(){return Object.assign.apply(Object,[{}].concat(_toConsumableArray(Et)))},Et),Vt=flattenToken(zt),Kt=flattenToken(kt),Xt=jt?flattenToken(jt):"",Qt=useGlobalCache(TOKEN_PREFIX,[Dt,ht.id,Vt,Kt,Xt],function(){var Zt,dr=Nt?Nt(zt,kt,ht):getComputedToken$1(zt,kt,ht,Mt),cr=_objectSpread2({},dr),Er="";if(jt){var pr=transformToken(dr,jt.key,{prefix:jt.prefix,ignore:jt.ignore,unitless:jt.unitless,preserve:jt.preserve}),gr=_slicedToArray(pr,2);dr=gr[0],Er=gr[1]}var vr=token2key(dr,Dt);dr._tokenKey=vr,cr._tokenKey=token2key(cr,Dt);var yr=(Zt=jt==null?void 0:jt.key)!==null&&Zt!==void 0?Zt:vr;dr._themeKey=yr,recordCleanToken(yr);var xr="".concat(hashPrefix,"-").concat(murmur2(vr));return dr._hashId=xr,[dr,xr,cr,Er,(jt==null?void 0:jt.key)||""]},function(Zt){cleanTokenStyle(Zt[0]._themeKey,$t)},function(Zt){var dr=_slicedToArray(Zt,4),cr=dr[0],Er=dr[3];if(jt&&Er){var pr=updateCSS(Er,murmur2("css-variables-".concat(cr._themeKey)),{mark:ATTR_MARK,prepend:"queue",attachTo:At,priority:-999});pr[CSS_IN_JS_INSTANCE]=$t,pr.setAttribute(ATTR_TOKEN,cr._themeKey)}});return Qt}var extract$3=function ht(Et,yt,Ct){var $t=_slicedToArray(Et,5),At=$t[2],Bt=$t[3],Dt=$t[4],Ft=Ct||{},kt=Ft.plain;if(!Bt)return null;var Mt=At._tokenKey,Nt=-999,jt={"data-rc-order":"prependQueue","data-rc-priority":"".concat(Nt)},zt=toStyleStr(Bt,Dt,Mt,jt,kt);return[Nt,Mt,zt]},unitlessKeys={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},COMMENT="comm",RULESET="rule",DECLARATION="decl",IMPORT="@import",KEYFRAMES="@keyframes",LAYER="@layer",abs$1=Math.abs,from=String.fromCharCode;function trim$1(ht){return ht.trim()}function replace$3(ht,Et,yt){return ht.replace(Et,yt)}function indexof(ht,Et,yt){return ht.indexOf(Et,yt)}function charat(ht,Et){return ht.charCodeAt(Et)|0}function substr(ht,Et,yt){return ht.slice(Et,yt)}function strlen(ht){return ht.length}function sizeof(ht){return ht.length}function append(ht,Et){return Et.push(ht),ht}var line=1,column=1,length=0,position=0,character=0,characters="";function node(ht,Et,yt,Ct,$t,At,Bt,Dt){return{value:ht,root:Et,parent:yt,type:Ct,props:$t,children:At,line,column,length:Bt,return:"",siblings:Dt}}function char(){return character}function prev(){return character=position>0?charat(characters,--position):0,column--,character===10&&(column=1,line--),character}function next(){return character=position<length?charat(characters,position++):0,column++,character===10&&(column=1,line++),character}function peek(){return charat(characters,position)}function caret(){return position}function slice$3(ht,Et){return substr(characters,ht,Et)}function token$1(ht){switch(ht){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function alloc(ht){return line=column=1,length=strlen(characters=ht),position=0,[]}function dealloc(ht){return characters="",ht}function delimit(ht){return trim$1(slice$3(position-1,delimiter$1(ht===91?ht+2:ht===40?ht+1:ht)))}function whitespace$1(ht){for(;(character=peek())&&character<33;)next();return token$1(ht)>2||token$1(character)>3?"":" "}function escaping(ht,Et){for(;--Et&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice$3(ht,caret()+(Et<6&&peek()==32&&next()==32))}function delimiter$1(ht){for(;next();)switch(character){case ht:return position;case 34:case 39:ht!==34&&ht!==39&&delimiter$1(character);break;case 40:ht===41&&delimiter$1(ht);break;case 92:next();break}return position}function commenter(ht,Et){for(;next()&&ht+character!==57;)if(ht+character===84&&peek()===47)break;return"/*"+slice$3(Et,position-1)+"*"+from(ht===47?ht:next())}function identifier(ht){for(;!token$1(peek());)next();return slice$3(ht,position)}function compile$1(ht){return dealloc(parse$3("",null,null,null,[""],ht=alloc(ht),0,[0],ht))}function parse$3(ht,Et,yt,Ct,$t,At,Bt,Dt,Ft){for(var kt=0,Mt=0,Nt=Bt,jt=0,zt=0,Vt=0,Kt=1,Xt=1,Qt=1,Zt=0,dr="",cr=$t,Er=At,pr=Ct,gr=dr;Xt;)switch(Vt=Zt,Zt=next()){case 40:if(Vt!=108&&charat(gr,Nt-1)==58){indexof(gr+=replace$3(delimit(Zt),"&","&\f"),"&\f",abs$1(kt?Dt[kt-1]:0))!=-1&&(Qt=-1);break}case 34:case 39:case 91:gr+=delimit(Zt);break;case 9:case 10:case 13:case 32:gr+=whitespace$1(Vt);break;case 92:gr+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment$1(commenter(next(),caret()),Et,yt,Ft),Ft);break;default:gr+="/"}break;case 123*Kt:Dt[kt++]=strlen(gr)*Qt;case 125*Kt:case 59:case 0:switch(Zt){case 0:case 125:Xt=0;case 59+Mt:Qt==-1&&(gr=replace$3(gr,/\f/g,"")),zt>0&&strlen(gr)-Nt&&append(zt>32?declaration$1(gr+";",Ct,yt,Nt-1,Ft):declaration$1(replace$3(gr," ","")+";",Ct,yt,Nt-2,Ft),Ft);break;case 59:gr+=";";default:if(append(pr=ruleset(gr,Et,yt,kt,Mt,$t,Dt,dr,cr=[],Er=[],Nt,At),At),Zt===123)if(Mt===0)parse$3(gr,Et,pr,pr,cr,At,Nt,Dt,Er);else switch(jt===99&&charat(gr,3)===110?100:jt){case 100:case 108:case 109:case 115:parse$3(ht,pr,pr,Ct&&append(ruleset(ht,pr,pr,0,0,$t,Dt,dr,$t,cr=[],Nt,Er),Er),$t,Er,Nt,Dt,Ct?cr:Er);break;default:parse$3(gr,pr,pr,pr,[""],Er,0,Dt,Er)}}kt=Mt=zt=0,Kt=Qt=1,dr=gr="",Nt=Bt;break;case 58:Nt=1+strlen(gr),zt=Vt;default:if(Kt<1){if(Zt==123)--Kt;else if(Zt==125&&Kt++==0&&prev()==125)continue}switch(gr+=from(Zt),Zt*Kt){case 38:Qt=Mt>0?1:(gr+="\f",-1);break;case 44:Dt[kt++]=(strlen(gr)-1)*Qt,Qt=1;break;case 64:peek()===45&&(gr+=delimit(next())),jt=peek(),Mt=Nt=strlen(dr=gr+=identifier(caret())),Zt++;break;case 45:Vt===45&&strlen(gr)==2&&(Kt=0)}}return At}function ruleset(ht,Et,yt,Ct,$t,At,Bt,Dt,Ft,kt,Mt,Nt){for(var jt=$t-1,zt=$t===0?At:[""],Vt=sizeof(zt),Kt=0,Xt=0,Qt=0;Kt<Ct;++Kt)for(var Zt=0,dr=substr(ht,jt+1,jt=abs$1(Xt=Bt[Kt])),cr=ht;Zt<Vt;++Zt)(cr=trim$1(Xt>0?zt[Zt]+" "+dr:replace$3(dr,/&\f/g,zt[Zt])))&&(Ft[Qt++]=cr);return node(ht,Et,yt,$t===0?RULESET:Dt,Ft,kt,Mt,Nt)}function comment$1(ht,Et,yt,Ct){return node(ht,Et,yt,COMMENT,from(char()),substr(ht,2,-2),0,Ct)}function declaration$1(ht,Et,yt,Ct,$t){return node(ht,Et,yt,DECLARATION,substr(ht,0,Ct),substr(ht,Ct+1,-1),Ct,$t)}function serialize(ht,Et){for(var yt="",Ct=0;Ct<ht.length;Ct++)yt+=Et(ht[Ct],Ct,ht,Et)||"";return yt}function stringify$8(ht,Et,yt,Ct){switch(ht.type){case LAYER:if(ht.children.length)break;case IMPORT:case DECLARATION:return ht.return=ht.return||ht.value;case COMMENT:return"";case KEYFRAMES:return ht.return=ht.value+"{"+serialize(ht.children,Ct)+"}";case RULESET:if(!strlen(ht.value=ht.props.join(",")))return""}return strlen(yt=serialize(ht.children,Ct))?ht.return=ht.value+"{"+yt+"}":""}var ATTR_CACHE_MAP="data-ant-cssinjs-cache-path",CSS_FILE_STYLE="_FILE_STYLE__",cachePathMap,fromCSSFile=!0;function prepare(){if(!cachePathMap&&(cachePathMap={},canUseDom())){var ht=document.createElement("div");ht.className=ATTR_CACHE_MAP,ht.style.position="fixed",ht.style.visibility="hidden",ht.style.top="-9999px",document.body.appendChild(ht);var Et=getComputedStyle(ht).content||"";Et=Et.replace(/^"/,"").replace(/"$/,""),Et.split(";").forEach(function($t){var At=$t.split(":"),Bt=_slicedToArray(At,2),Dt=Bt[0],Ft=Bt[1];cachePathMap[Dt]=Ft});var yt=document.querySelector("style[".concat(ATTR_CACHE_MAP,"]"));if(yt){var Ct;fromCSSFile=!1,(Ct=yt.parentNode)===null||Ct===void 0||Ct.removeChild(yt)}document.body.removeChild(ht)}}function existPath(ht){return prepare(),!!cachePathMap[ht]}function getStyleAndHash(ht){var Et=cachePathMap[ht],yt=null;if(Et&&canUseDom())if(fromCSSFile)yt=CSS_FILE_STYLE;else{var Ct=document.querySelector("style[".concat(ATTR_MARK,'="').concat(cachePathMap[ht],'"]'));Ct?yt=Ct.innerHTML:delete cachePathMap[ht]}return[yt,Et]}var SKIP_CHECK="_skip_check_",MULTI_VALUE="_multi_value_";function normalizeStyle(ht){var Et=serialize(compile$1(ht),stringify$8);return Et.replace(/\{%%%\:[^;];}/g,";")}function isCompoundCSSProperty(ht){return _typeof$1(ht)==="object"&&ht&&(SKIP_CHECK in ht||MULTI_VALUE in ht)}function injectSelectorHash(ht,Et,yt){if(!Et)return ht;var Ct=".".concat(Et),$t=yt==="low"?":where(".concat(Ct,")"):Ct,At=ht.split(",").map(function(Bt){var Dt,Ft=Bt.trim().split(/\s+/),kt=Ft[0]||"",Mt=((Dt=kt.match(/^\w+/))===null||Dt===void 0?void 0:Dt[0])||"";return kt="".concat(Mt).concat($t).concat(kt.slice(Mt.length)),[kt].concat(_toConsumableArray(Ft.slice(1))).join(" ")});return At.join(",")}var parseStyle=function ht(Et){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ct=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},$t=Ct.root,At=Ct.injectHash,Bt=Ct.parentSelectors,Dt=yt.hashId,Ft=yt.layer;yt.path;var kt=yt.hashPriority,Mt=yt.transformers,Nt=Mt===void 0?[]:Mt;yt.linters;var jt="",zt={};function Vt(Qt){var Zt=Qt.getName(Dt);if(!zt[Zt]){var dr=ht(Qt.style,yt,{root:!1,parentSelectors:Bt}),cr=_slicedToArray(dr,1),Er=cr[0];zt[Zt]="@keyframes ".concat(Qt.getName(Dt)).concat(Er)}}function Kt(Qt){var Zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Qt.forEach(function(dr){Array.isArray(dr)?Kt(dr,Zt):dr&&Zt.push(dr)}),Zt}var Xt=Kt(Array.isArray(Et)?Et:[Et]);return Xt.forEach(function(Qt){var Zt=typeof Qt=="string"&&!$t?{}:Qt;if(typeof Zt=="string")jt+="".concat(Zt,`
`);else if(Zt._keyframe)Vt(Zt);else{var dr=Nt.reduce(function(cr,Er){var pr;return(Er==null||(pr=Er.visit)===null||pr===void 0?void 0:pr.call(Er,cr))||cr},Zt);Object.keys(dr).forEach(function(cr){var Er=dr[cr];if(_typeof$1(Er)==="object"&&Er&&(cr!=="animationName"||!Er._keyframe)&&!isCompoundCSSProperty(Er)){var pr=!1,gr=cr.trim(),vr=!1;($t||At)&&Dt?gr.startsWith("@")?pr=!0:gr=injectSelectorHash(cr,Dt,kt):$t&&!Dt&&(gr==="&"||gr==="")&&(gr="",vr=!0);var yr=ht(Er,yt,{root:vr,injectHash:pr,parentSelectors:[].concat(_toConsumableArray(Bt),[gr])}),xr=_slicedToArray(yr,2),rr=xr[0],Lt=xr[1];zt=_objectSpread2(_objectSpread2({},zt),Lt),jt+="".concat(gr).concat(rr)}else{let Gt=function(Yt,er){var lr=Yt.replace(/[A-Z]/g,function(Ut){return"-".concat(Ut.toLowerCase())}),Jt=er;!unitlessKeys[Yt]&&typeof Jt=="number"&&Jt!==0&&(Jt="".concat(Jt,"px")),Yt==="animationName"&&er!==null&&er!==void 0&&er._keyframe&&(Vt(er),Jt=er.getName(Dt)),jt+="".concat(lr,":").concat(Jt,";")};var Ht,Wt=(Ht=Er==null?void 0:Er.value)!==null&&Ht!==void 0?Ht:Er;_typeof$1(Er)==="object"&&Er!==null&&Er!==void 0&&Er[MULTI_VALUE]&&Array.isArray(Wt)?Wt.forEach(function(Yt){Gt(cr,Yt)}):Gt(cr,Wt)}})}}),$t?Ft&&(jt="@layer ".concat(Ft.name," {").concat(jt,"}"),Ft.dependencies&&(zt["@layer ".concat(Ft.name)]=Ft.dependencies.map(function(Qt){return"@layer ".concat(Qt,", ").concat(Ft.name,";")}).join(`
`))):jt="{".concat(jt,"}"),[jt,zt]};function uniqueHash(ht,Et){return murmur2("".concat(ht.join("%")).concat(Et))}function Empty$5(){return null}var STYLE_PREFIX="style";function useStyleRegister(ht,Et){var yt=ht.token,Ct=ht.path,$t=ht.hashId,At=ht.layer,Bt=ht.nonce,Dt=ht.clientOnly,Ft=ht.order,kt=Ft===void 0?0:Ft,Mt=reactExports.useContext(StyleContext),Nt=Mt.autoClear;Mt.mock;var jt=Mt.defaultCache,zt=Mt.hashPriority,Vt=Mt.container,Kt=Mt.ssrInline,Xt=Mt.transformers,Qt=Mt.linters,Zt=Mt.cache,dr=Mt.layer,cr=yt._tokenKey,Er=[cr];dr&&Er.push("layer"),Er.push.apply(Er,_toConsumableArray(Ct));var pr=isClientSide,gr=useGlobalCache(STYLE_PREFIX,Er,function(){var Lt=Er.join("|");if(existPath(Lt)){var Ht=getStyleAndHash(Lt),Wt=_slicedToArray(Ht,2),Gt=Wt[0],Yt=Wt[1];if(Gt)return[Gt,cr,Yt,{},Dt,kt]}var er=Et(),lr=parseStyle(er,{hashId:$t,hashPriority:zt,layer:dr?At:void 0,path:Ct.join("-"),transformers:Xt,linters:Qt}),Jt=_slicedToArray(lr,2),Ut=Jt[0],ir=Jt[1],Cr=normalizeStyle(Ut),_r=uniqueHash(Er,Cr);return[Cr,cr,_r,ir,Dt,kt]},function(Lt,Ht){var Wt=_slicedToArray(Lt,3),Gt=Wt[2];(Ht||Nt)&&isClientSide&&removeCSS(Gt,{mark:ATTR_MARK})},function(Lt){var Ht=_slicedToArray(Lt,4),Wt=Ht[0];Ht[1];var Gt=Ht[2],Yt=Ht[3];if(pr&&Wt!==CSS_FILE_STYLE){var er={mark:ATTR_MARK,prepend:dr?!1:"queue",attachTo:Vt,priority:kt},lr=typeof Bt=="function"?Bt():Bt;lr&&(er.csp={nonce:lr});var Jt=[],Ut=[];Object.keys(Yt).forEach(function(Cr){Cr.startsWith("@layer")?Jt.push(Cr):Ut.push(Cr)}),Jt.forEach(function(Cr){updateCSS(normalizeStyle(Yt[Cr]),"_layer-".concat(Cr),_objectSpread2(_objectSpread2({},er),{},{prepend:!0}))});var ir=updateCSS(Wt,Gt,er);ir[CSS_IN_JS_INSTANCE]=Zt.instanceId,ir.setAttribute(ATTR_TOKEN,cr),Ut.forEach(function(Cr){updateCSS(normalizeStyle(Yt[Cr]),"_effect-".concat(Cr),er)})}}),vr=_slicedToArray(gr,3),yr=vr[0],xr=vr[1],rr=vr[2];return function(Lt){var Ht;return!Kt||pr||!jt?Ht=reactExports.createElement(Empty$5,null):Ht=reactExports.createElement("style",_extends$5({},_defineProperty$1(_defineProperty$1({},ATTR_TOKEN,xr),ATTR_MARK,rr),{dangerouslySetInnerHTML:{__html:yr}})),reactExports.createElement(reactExports.Fragment,null,Ht,Lt)}}var extract$2=function ht(Et,yt,Ct){var $t=_slicedToArray(Et,6),At=$t[0],Bt=$t[1],Dt=$t[2],Ft=$t[3],kt=$t[4],Mt=$t[5],Nt=Ct||{},jt=Nt.plain;if(kt)return null;var zt=At,Vt={"data-rc-order":"prependQueue","data-rc-priority":"".concat(Mt)};return zt=toStyleStr(At,Bt,Dt,Vt,jt),Ft&&Object.keys(Ft).forEach(function(Kt){if(!yt[Kt]){yt[Kt]=!0;var Xt=normalizeStyle(Ft[Kt]),Qt=toStyleStr(Xt,Bt,"_effect-".concat(Kt),Vt,jt);Kt.startsWith("@layer")?zt=Qt+zt:zt+=Qt}}),[Mt,Dt,zt]},CSS_VAR_PREFIX="cssVar",useCSSVarRegister=function ht(Et,yt){var Ct=Et.key,$t=Et.prefix,At=Et.unitless,Bt=Et.ignore,Dt=Et.token,Ft=Et.scope,kt=Ft===void 0?"":Ft,Mt=reactExports.useContext(StyleContext),Nt=Mt.cache.instanceId,jt=Mt.container,zt=Dt._tokenKey,Vt=[].concat(_toConsumableArray(Et.path),[Ct,kt,zt]),Kt=useGlobalCache(CSS_VAR_PREFIX,Vt,function(){var Xt=yt(),Qt=transformToken(Xt,Ct,{prefix:$t,unitless:At,ignore:Bt,scope:kt}),Zt=_slicedToArray(Qt,2),dr=Zt[0],cr=Zt[1],Er=uniqueHash(Vt,cr);return[dr,cr,Er,Ct]},function(Xt){var Qt=_slicedToArray(Xt,3),Zt=Qt[2];isClientSide&&removeCSS(Zt,{mark:ATTR_MARK})},function(Xt){var Qt=_slicedToArray(Xt,3),Zt=Qt[1],dr=Qt[2];if(Zt){var cr=updateCSS(Zt,dr,{mark:ATTR_MARK,prepend:"queue",attachTo:jt,priority:-999});cr[CSS_IN_JS_INSTANCE]=Nt,cr.setAttribute(ATTR_TOKEN,Ct)}});return Kt},extract$1=function ht(Et,yt,Ct){var $t=_slicedToArray(Et,4),At=$t[1],Bt=$t[2],Dt=$t[3],Ft=Ct||{},kt=Ft.plain;if(!At)return null;var Mt=-999,Nt={"data-rc-order":"prependQueue","data-rc-priority":"".concat(Mt)},jt=toStyleStr(At,Dt,Bt,Nt,kt);return[Mt,Bt,jt]};_defineProperty$1(_defineProperty$1(_defineProperty$1({},STYLE_PREFIX,extract$2),TOKEN_PREFIX,extract$3),CSS_VAR_PREFIX,extract$1);var Keyframe=function(){function ht(Et,yt){_classCallCheck(this,ht),_defineProperty$1(this,"name",void 0),_defineProperty$1(this,"style",void 0),_defineProperty$1(this,"_keyframe",!0),this.name=Et,this.style=yt}return _createClass$1(ht,[{key:"getName",value:function(){var yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return yt?"".concat(yt,"-").concat(this.name):this.name}}]),ht}();function noSplit(ht){return ht.notSplit=!0,ht}noSplit(["borderTop","borderBottom"]),noSplit(["borderTop"]),noSplit(["borderBottom"]),noSplit(["borderLeft","borderRight"]),noSplit(["borderLeft"]),noSplit(["borderRight"]);var IconContext=reactExports.createContext({});function _toArray(ht){return _arrayWithHoles(ht)||_iterableToArray(ht)||_unsupportedIterableToArray$1(ht)||_nonIterableRest()}function get$3(ht,Et){for(var yt=ht,Ct=0;Ct<Et.length;Ct+=1){if(yt==null)return;yt=yt[Et[Ct]]}return yt}function internalSet(ht,Et,yt,Ct){if(!Et.length)return yt;var $t=_toArray(Et),At=$t[0],Bt=$t.slice(1),Dt;return!ht&&typeof At=="number"?Dt=[]:Array.isArray(ht)?Dt=_toConsumableArray(ht):Dt=_objectSpread2({},ht),Ct&&yt===void 0&&Bt.length===1?delete Dt[At][Bt[0]]:Dt[At]=internalSet(Dt[At],Bt,yt,Ct),Dt}function set$2(ht,Et,yt){var Ct=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Et.length&&Ct&&yt===void 0&&!get$3(ht,Et.slice(0,-1))?ht:internalSet(ht,Et,yt,Ct)}function isObject$h(ht){return _typeof$1(ht)==="object"&&ht!==null&&Object.getPrototypeOf(ht)===Object.prototype}function createEmpty(ht){return Array.isArray(ht)?[]:{}}var keys$4=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function merge$3(){for(var ht=arguments.length,Et=new Array(ht),yt=0;yt<ht;yt++)Et[yt]=arguments[yt];var Ct=createEmpty(Et[0]);return Et.forEach(function($t){function At(Bt,Dt){var Ft=new Set(Dt),kt=get$3($t,Bt),Mt=Array.isArray(kt);if(Mt||isObject$h(kt)){if(!Ft.has(kt)){Ft.add(kt);var Nt=get$3(Ct,Bt);Mt?Ct=set$2(Ct,Bt,[]):(!Nt||_typeof$1(Nt)!=="object")&&(Ct=set$2(Ct,Bt,createEmpty(kt))),keys$4(kt).forEach(function(jt){At([].concat(_toConsumableArray(Bt),[jt]),Ft)})}}else Ct=set$2(Ct,Bt,kt)}At([])}),Ct}function noop$5(){}const WarningContext=reactExports.createContext({}),devUseWarning=()=>{const ht=()=>{};return ht.deprecated=noop$5,ht},ValidateMessagesContext=reactExports.createContext(void 0);var locale$4={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},locale$3=_objectSpread2(_objectSpread2({},commonLocale),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const locale$2={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},locale$1={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},locale$3),timePickerLocale:Object.assign({},locale$2)},typeTemplate$1="${label} is not a valid ${type}",localeValues={locale:"en",Pagination:locale$4,DatePicker:locale$1,TimePicker:locale$2,Calendar:locale$1,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:typeTemplate$1,method:typeTemplate$1,array:typeTemplate$1,object:typeTemplate$1,number:typeTemplate$1,date:typeTemplate$1,boolean:typeTemplate$1,integer:typeTemplate$1,float:typeTemplate$1,regexp:typeTemplate$1,email:typeTemplate$1,url:typeTemplate$1,hex:typeTemplate$1},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty"}};let runtimeLocale=Object.assign({},localeValues.Modal),localeList=[];const generateLocale=()=>localeList.reduce((ht,Et)=>Object.assign(Object.assign({},ht),Et),localeValues.Modal);function changeConfirmLocale(ht){if(ht){const Et=Object.assign({},ht);return localeList.push(Et),runtimeLocale=generateLocale(),()=>{localeList=localeList.filter(yt=>yt!==Et),runtimeLocale=generateLocale()}}runtimeLocale=Object.assign({},localeValues.Modal)}function getConfirmLocale(){return runtimeLocale}const LocaleContext=reactExports.createContext(void 0),useLocale=(ht,Et)=>{const yt=reactExports.useContext(LocaleContext),Ct=reactExports.useMemo(()=>{var At;const Bt=Et||localeValues[ht],Dt=(At=yt==null?void 0:yt[ht])!==null&&At!==void 0?At:{};return Object.assign(Object.assign({},typeof Bt=="function"?Bt():Bt),Dt||{})},[ht,Et,yt]),$t=reactExports.useMemo(()=>{const At=yt==null?void 0:yt.locale;return yt!=null&&yt.exist&&!At?localeValues.locale:At},[yt]);return[Ct,$t]},ANT_MARK="internalMark",LocaleProvider=ht=>{const{locale:Et={},children:yt,_ANT_MARK__:Ct}=ht;reactExports.useEffect(()=>changeConfirmLocale(Et==null?void 0:Et.Modal),[Et]);const $t=reactExports.useMemo(()=>Object.assign(Object.assign({},Et),{exist:!0}),[Et]);return reactExports.createElement(LocaleContext.Provider,{value:$t},yt)};function bound01(ht,Et){isOnePointZero(ht)&&(ht="100%");var yt=isPercentage(ht);return ht=Et===360?ht:Math.min(Et,Math.max(0,parseFloat(ht))),yt&&(ht=parseInt(String(ht*Et),10)/100),Math.abs(ht-Et)<1e-6?1:(Et===360?ht=(ht<0?ht%Et+Et:ht%Et)/parseFloat(String(Et)):ht=ht%Et/parseFloat(String(Et)),ht)}function clamp01(ht){return Math.min(1,Math.max(0,ht))}function isOnePointZero(ht){return typeof ht=="string"&&ht.indexOf(".")!==-1&&parseFloat(ht)===1}function isPercentage(ht){return typeof ht=="string"&&ht.indexOf("%")!==-1}function boundAlpha(ht){return ht=parseFloat(ht),(isNaN(ht)||ht<0||ht>1)&&(ht=1),ht}function convertToPercentage(ht){return ht<=1?"".concat(Number(ht)*100,"%"):ht}function pad2(ht){return ht.length===1?"0"+ht:String(ht)}function rgbToRgb(ht,Et,yt){return{r:bound01(ht,255)*255,g:bound01(Et,255)*255,b:bound01(yt,255)*255}}function rgbToHsl(ht,Et,yt){ht=bound01(ht,255),Et=bound01(Et,255),yt=bound01(yt,255);var Ct=Math.max(ht,Et,yt),$t=Math.min(ht,Et,yt),At=0,Bt=0,Dt=(Ct+$t)/2;if(Ct===$t)Bt=0,At=0;else{var Ft=Ct-$t;switch(Bt=Dt>.5?Ft/(2-Ct-$t):Ft/(Ct+$t),Ct){case ht:At=(Et-yt)/Ft+(Et<yt?6:0);break;case Et:At=(yt-ht)/Ft+2;break;case yt:At=(ht-Et)/Ft+4;break}At/=6}return{h:At,s:Bt,l:Dt}}function hue2rgb(ht,Et,yt){return yt<0&&(yt+=1),yt>1&&(yt-=1),yt<1/6?ht+(Et-ht)*(6*yt):yt<1/2?Et:yt<2/3?ht+(Et-ht)*(2/3-yt)*6:ht}function hslToRgb(ht,Et,yt){var Ct,$t,At;if(ht=bound01(ht,360),Et=bound01(Et,100),yt=bound01(yt,100),Et===0)$t=yt,At=yt,Ct=yt;else{var Bt=yt<.5?yt*(1+Et):yt+Et-yt*Et,Dt=2*yt-Bt;Ct=hue2rgb(Dt,Bt,ht+1/3),$t=hue2rgb(Dt,Bt,ht),At=hue2rgb(Dt,Bt,ht-1/3)}return{r:Ct*255,g:$t*255,b:At*255}}function rgbToHsv(ht,Et,yt){ht=bound01(ht,255),Et=bound01(Et,255),yt=bound01(yt,255);var Ct=Math.max(ht,Et,yt),$t=Math.min(ht,Et,yt),At=0,Bt=Ct,Dt=Ct-$t,Ft=Ct===0?0:Dt/Ct;if(Ct===$t)At=0;else{switch(Ct){case ht:At=(Et-yt)/Dt+(Et<yt?6:0);break;case Et:At=(yt-ht)/Dt+2;break;case yt:At=(ht-Et)/Dt+4;break}At/=6}return{h:At,s:Ft,v:Bt}}function hsvToRgb(ht,Et,yt){ht=bound01(ht,360)*6,Et=bound01(Et,100),yt=bound01(yt,100);var Ct=Math.floor(ht),$t=ht-Ct,At=yt*(1-Et),Bt=yt*(1-$t*Et),Dt=yt*(1-(1-$t)*Et),Ft=Ct%6,kt=[yt,Bt,At,At,Dt,yt][Ft],Mt=[Dt,yt,yt,Bt,At,At][Ft],Nt=[At,At,Dt,yt,yt,Bt][Ft];return{r:kt*255,g:Mt*255,b:Nt*255}}function rgbToHex(ht,Et,yt,Ct){var $t=[pad2(Math.round(ht).toString(16)),pad2(Math.round(Et).toString(16)),pad2(Math.round(yt).toString(16))];return Ct&&$t[0].startsWith($t[0].charAt(1))&&$t[1].startsWith($t[1].charAt(1))&&$t[2].startsWith($t[2].charAt(1))?$t[0].charAt(0)+$t[1].charAt(0)+$t[2].charAt(0):$t.join("")}function rgbaToHex(ht,Et,yt,Ct,$t){var At=[pad2(Math.round(ht).toString(16)),pad2(Math.round(Et).toString(16)),pad2(Math.round(yt).toString(16)),pad2(convertDecimalToHex(Ct))];return $t&&At[0].startsWith(At[0].charAt(1))&&At[1].startsWith(At[1].charAt(1))&&At[2].startsWith(At[2].charAt(1))&&At[3].startsWith(At[3].charAt(1))?At[0].charAt(0)+At[1].charAt(0)+At[2].charAt(0)+At[3].charAt(0):At.join("")}function convertDecimalToHex(ht){return Math.round(parseFloat(ht)*255).toString(16)}function convertHexToDecimal(ht){return parseIntFromHex(ht)/255}function parseIntFromHex(ht){return parseInt(ht,16)}function numberInputToObject(ht){return{r:ht>>16,g:(ht&65280)>>8,b:ht&255}}var names$1={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function inputToRGB(ht){var Et={r:0,g:0,b:0},yt=1,Ct=null,$t=null,At=null,Bt=!1,Dt=!1;return typeof ht=="string"&&(ht=stringInputToObject(ht)),typeof ht=="object"&&(isValidCSSUnit(ht.r)&&isValidCSSUnit(ht.g)&&isValidCSSUnit(ht.b)?(Et=rgbToRgb(ht.r,ht.g,ht.b),Bt=!0,Dt=String(ht.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(ht.h)&&isValidCSSUnit(ht.s)&&isValidCSSUnit(ht.v)?(Ct=convertToPercentage(ht.s),$t=convertToPercentage(ht.v),Et=hsvToRgb(ht.h,Ct,$t),Bt=!0,Dt="hsv"):isValidCSSUnit(ht.h)&&isValidCSSUnit(ht.s)&&isValidCSSUnit(ht.l)&&(Ct=convertToPercentage(ht.s),At=convertToPercentage(ht.l),Et=hslToRgb(ht.h,Ct,At),Bt=!0,Dt="hsl"),Object.prototype.hasOwnProperty.call(ht,"a")&&(yt=ht.a)),yt=boundAlpha(yt),{ok:Bt,format:ht.format||Dt,r:Math.min(255,Math.max(Et.r,0)),g:Math.min(255,Math.max(Et.g,0)),b:Math.min(255,Math.max(Et.b,0)),a:yt}}var CSS_INTEGER="[-\\+]?\\d+%?",CSS_NUMBER="[-\\+]?\\d*\\.\\d+%?",CSS_UNIT="(?:".concat(CSS_NUMBER,")|(?:").concat(CSS_INTEGER,")"),PERMISSIVE_MATCH3="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),PERMISSIVE_MATCH4="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),matchers={CSS_UNIT:new RegExp(CSS_UNIT),rgb:new RegExp("rgb"+PERMISSIVE_MATCH3),rgba:new RegExp("rgba"+PERMISSIVE_MATCH4),hsl:new RegExp("hsl"+PERMISSIVE_MATCH3),hsla:new RegExp("hsla"+PERMISSIVE_MATCH4),hsv:new RegExp("hsv"+PERMISSIVE_MATCH3),hsva:new RegExp("hsva"+PERMISSIVE_MATCH4),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function stringInputToObject(ht){if(ht=ht.trim().toLowerCase(),ht.length===0)return!1;var Et=!1;if(names$1[ht])ht=names$1[ht],Et=!0;else if(ht==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var yt=matchers.rgb.exec(ht);return yt?{r:yt[1],g:yt[2],b:yt[3]}:(yt=matchers.rgba.exec(ht),yt?{r:yt[1],g:yt[2],b:yt[3],a:yt[4]}:(yt=matchers.hsl.exec(ht),yt?{h:yt[1],s:yt[2],l:yt[3]}:(yt=matchers.hsla.exec(ht),yt?{h:yt[1],s:yt[2],l:yt[3],a:yt[4]}:(yt=matchers.hsv.exec(ht),yt?{h:yt[1],s:yt[2],v:yt[3]}:(yt=matchers.hsva.exec(ht),yt?{h:yt[1],s:yt[2],v:yt[3],a:yt[4]}:(yt=matchers.hex8.exec(ht),yt?{r:parseIntFromHex(yt[1]),g:parseIntFromHex(yt[2]),b:parseIntFromHex(yt[3]),a:convertHexToDecimal(yt[4]),format:Et?"name":"hex8"}:(yt=matchers.hex6.exec(ht),yt?{r:parseIntFromHex(yt[1]),g:parseIntFromHex(yt[2]),b:parseIntFromHex(yt[3]),format:Et?"name":"hex"}:(yt=matchers.hex4.exec(ht),yt?{r:parseIntFromHex(yt[1]+yt[1]),g:parseIntFromHex(yt[2]+yt[2]),b:parseIntFromHex(yt[3]+yt[3]),a:convertHexToDecimal(yt[4]+yt[4]),format:Et?"name":"hex8"}:(yt=matchers.hex3.exec(ht),yt?{r:parseIntFromHex(yt[1]+yt[1]),g:parseIntFromHex(yt[2]+yt[2]),b:parseIntFromHex(yt[3]+yt[3]),format:Et?"name":"hex"}:!1)))))))))}function isValidCSSUnit(ht){return!!matchers.CSS_UNIT.exec(String(ht))}var TinyColor=function(){function ht(Et,yt){Et===void 0&&(Et=""),yt===void 0&&(yt={});var Ct;if(Et instanceof ht)return Et;typeof Et=="number"&&(Et=numberInputToObject(Et)),this.originalInput=Et;var $t=inputToRGB(Et);this.originalInput=Et,this.r=$t.r,this.g=$t.g,this.b=$t.b,this.a=$t.a,this.roundA=Math.round(100*this.a)/100,this.format=(Ct=yt.format)!==null&&Ct!==void 0?Ct:$t.format,this.gradientType=yt.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=$t.ok}return ht.prototype.isDark=function(){return this.getBrightness()<128},ht.prototype.isLight=function(){return!this.isDark()},ht.prototype.getBrightness=function(){var Et=this.toRgb();return(Et.r*299+Et.g*587+Et.b*114)/1e3},ht.prototype.getLuminance=function(){var Et=this.toRgb(),yt,Ct,$t,At=Et.r/255,Bt=Et.g/255,Dt=Et.b/255;return At<=.03928?yt=At/12.92:yt=Math.pow((At+.055)/1.055,2.4),Bt<=.03928?Ct=Bt/12.92:Ct=Math.pow((Bt+.055)/1.055,2.4),Dt<=.03928?$t=Dt/12.92:$t=Math.pow((Dt+.055)/1.055,2.4),.2126*yt+.7152*Ct+.0722*$t},ht.prototype.getAlpha=function(){return this.a},ht.prototype.setAlpha=function(Et){return this.a=boundAlpha(Et),this.roundA=Math.round(100*this.a)/100,this},ht.prototype.isMonochrome=function(){var Et=this.toHsl().s;return Et===0},ht.prototype.toHsv=function(){var Et=rgbToHsv(this.r,this.g,this.b);return{h:Et.h*360,s:Et.s,v:Et.v,a:this.a}},ht.prototype.toHsvString=function(){var Et=rgbToHsv(this.r,this.g,this.b),yt=Math.round(Et.h*360),Ct=Math.round(Et.s*100),$t=Math.round(Et.v*100);return this.a===1?"hsv(".concat(yt,", ").concat(Ct,"%, ").concat($t,"%)"):"hsva(".concat(yt,", ").concat(Ct,"%, ").concat($t,"%, ").concat(this.roundA,")")},ht.prototype.toHsl=function(){var Et=rgbToHsl(this.r,this.g,this.b);return{h:Et.h*360,s:Et.s,l:Et.l,a:this.a}},ht.prototype.toHslString=function(){var Et=rgbToHsl(this.r,this.g,this.b),yt=Math.round(Et.h*360),Ct=Math.round(Et.s*100),$t=Math.round(Et.l*100);return this.a===1?"hsl(".concat(yt,", ").concat(Ct,"%, ").concat($t,"%)"):"hsla(".concat(yt,", ").concat(Ct,"%, ").concat($t,"%, ").concat(this.roundA,")")},ht.prototype.toHex=function(Et){return Et===void 0&&(Et=!1),rgbToHex(this.r,this.g,this.b,Et)},ht.prototype.toHexString=function(Et){return Et===void 0&&(Et=!1),"#"+this.toHex(Et)},ht.prototype.toHex8=function(Et){return Et===void 0&&(Et=!1),rgbaToHex(this.r,this.g,this.b,this.a,Et)},ht.prototype.toHex8String=function(Et){return Et===void 0&&(Et=!1),"#"+this.toHex8(Et)},ht.prototype.toHexShortString=function(Et){return Et===void 0&&(Et=!1),this.a===1?this.toHexString(Et):this.toHex8String(Et)},ht.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},ht.prototype.toRgbString=function(){var Et=Math.round(this.r),yt=Math.round(this.g),Ct=Math.round(this.b);return this.a===1?"rgb(".concat(Et,", ").concat(yt,", ").concat(Ct,")"):"rgba(".concat(Et,", ").concat(yt,", ").concat(Ct,", ").concat(this.roundA,")")},ht.prototype.toPercentageRgb=function(){var Et=function(yt){return"".concat(Math.round(bound01(yt,255)*100),"%")};return{r:Et(this.r),g:Et(this.g),b:Et(this.b),a:this.a}},ht.prototype.toPercentageRgbString=function(){var Et=function(yt){return Math.round(bound01(yt,255)*100)};return this.a===1?"rgb(".concat(Et(this.r),"%, ").concat(Et(this.g),"%, ").concat(Et(this.b),"%)"):"rgba(".concat(Et(this.r),"%, ").concat(Et(this.g),"%, ").concat(Et(this.b),"%, ").concat(this.roundA,")")},ht.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var Et="#"+rgbToHex(this.r,this.g,this.b,!1),yt=0,Ct=Object.entries(names$1);yt<Ct.length;yt++){var $t=Ct[yt],At=$t[0],Bt=$t[1];if(Et===Bt)return At}return!1},ht.prototype.toString=function(Et){var yt=!!Et;Et=Et??this.format;var Ct=!1,$t=this.a<1&&this.a>=0,At=!yt&&$t&&(Et.startsWith("hex")||Et==="name");return At?Et==="name"&&this.a===0?this.toName():this.toRgbString():(Et==="rgb"&&(Ct=this.toRgbString()),Et==="prgb"&&(Ct=this.toPercentageRgbString()),(Et==="hex"||Et==="hex6")&&(Ct=this.toHexString()),Et==="hex3"&&(Ct=this.toHexString(!0)),Et==="hex4"&&(Ct=this.toHex8String(!0)),Et==="hex8"&&(Ct=this.toHex8String()),Et==="name"&&(Ct=this.toName()),Et==="hsl"&&(Ct=this.toHslString()),Et==="hsv"&&(Ct=this.toHsvString()),Ct||this.toHexString())},ht.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},ht.prototype.clone=function(){return new ht(this.toString())},ht.prototype.lighten=function(Et){Et===void 0&&(Et=10);var yt=this.toHsl();return yt.l+=Et/100,yt.l=clamp01(yt.l),new ht(yt)},ht.prototype.brighten=function(Et){Et===void 0&&(Et=10);var yt=this.toRgb();return yt.r=Math.max(0,Math.min(255,yt.r-Math.round(255*-(Et/100)))),yt.g=Math.max(0,Math.min(255,yt.g-Math.round(255*-(Et/100)))),yt.b=Math.max(0,Math.min(255,yt.b-Math.round(255*-(Et/100)))),new ht(yt)},ht.prototype.darken=function(Et){Et===void 0&&(Et=10);var yt=this.toHsl();return yt.l-=Et/100,yt.l=clamp01(yt.l),new ht(yt)},ht.prototype.tint=function(Et){return Et===void 0&&(Et=10),this.mix("white",Et)},ht.prototype.shade=function(Et){return Et===void 0&&(Et=10),this.mix("black",Et)},ht.prototype.desaturate=function(Et){Et===void 0&&(Et=10);var yt=this.toHsl();return yt.s-=Et/100,yt.s=clamp01(yt.s),new ht(yt)},ht.prototype.saturate=function(Et){Et===void 0&&(Et=10);var yt=this.toHsl();return yt.s+=Et/100,yt.s=clamp01(yt.s),new ht(yt)},ht.prototype.greyscale=function(){return this.desaturate(100)},ht.prototype.spin=function(Et){var yt=this.toHsl(),Ct=(yt.h+Et)%360;return yt.h=Ct<0?360+Ct:Ct,new ht(yt)},ht.prototype.mix=function(Et,yt){yt===void 0&&(yt=50);var Ct=this.toRgb(),$t=new ht(Et).toRgb(),At=yt/100,Bt={r:($t.r-Ct.r)*At+Ct.r,g:($t.g-Ct.g)*At+Ct.g,b:($t.b-Ct.b)*At+Ct.b,a:($t.a-Ct.a)*At+Ct.a};return new ht(Bt)},ht.prototype.analogous=function(Et,yt){Et===void 0&&(Et=6),yt===void 0&&(yt=30);var Ct=this.toHsl(),$t=360/yt,At=[this];for(Ct.h=(Ct.h-($t*Et>>1)+720)%360;--Et;)Ct.h=(Ct.h+$t)%360,At.push(new ht(Ct));return At},ht.prototype.complement=function(){var Et=this.toHsl();return Et.h=(Et.h+180)%360,new ht(Et)},ht.prototype.monochromatic=function(Et){Et===void 0&&(Et=6);for(var yt=this.toHsv(),Ct=yt.h,$t=yt.s,At=yt.v,Bt=[],Dt=1/Et;Et--;)Bt.push(new ht({h:Ct,s:$t,v:At})),At=(At+Dt)%1;return Bt},ht.prototype.splitcomplement=function(){var Et=this.toHsl(),yt=Et.h;return[this,new ht({h:(yt+72)%360,s:Et.s,l:Et.l}),new ht({h:(yt+216)%360,s:Et.s,l:Et.l})]},ht.prototype.onBackground=function(Et){var yt=this.toRgb(),Ct=new ht(Et).toRgb(),$t=yt.a+Ct.a*(1-yt.a);return new ht({r:(yt.r*yt.a+Ct.r*Ct.a*(1-yt.a))/$t,g:(yt.g*yt.a+Ct.g*Ct.a*(1-yt.a))/$t,b:(yt.b*yt.a+Ct.b*Ct.a*(1-yt.a))/$t,a:$t})},ht.prototype.triad=function(){return this.polyad(3)},ht.prototype.tetrad=function(){return this.polyad(4)},ht.prototype.polyad=function(Et){for(var yt=this.toHsl(),Ct=yt.h,$t=[this],At=360/Et,Bt=1;Bt<Et;Bt++)$t.push(new ht({h:(Ct+Bt*At)%360,s:yt.s,l:yt.l}));return $t},ht.prototype.equals=function(Et){return this.toRgbString()===new ht(Et).toRgbString()},ht}(),hueStep=2,saturationStep=.16,saturationStep2=.05,brightnessStep1=.05,brightnessStep2=.15,lightColorCount=5,darkColorCount=4,darkColorMap=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function toHsv(ht){var Et=ht.r,yt=ht.g,Ct=ht.b,$t=rgbToHsv(Et,yt,Ct);return{h:$t.h*360,s:$t.s,v:$t.v}}function toHex(ht){var Et=ht.r,yt=ht.g,Ct=ht.b;return"#".concat(rgbToHex(Et,yt,Ct,!1))}function mix(ht,Et,yt){var Ct=yt/100,$t={r:(Et.r-ht.r)*Ct+ht.r,g:(Et.g-ht.g)*Ct+ht.g,b:(Et.b-ht.b)*Ct+ht.b};return $t}function getHue(ht,Et,yt){var Ct;return Math.round(ht.h)>=60&&Math.round(ht.h)<=240?Ct=yt?Math.round(ht.h)-hueStep*Et:Math.round(ht.h)+hueStep*Et:Ct=yt?Math.round(ht.h)+hueStep*Et:Math.round(ht.h)-hueStep*Et,Ct<0?Ct+=360:Ct>=360&&(Ct-=360),Ct}function getSaturation(ht,Et,yt){if(ht.h===0&&ht.s===0)return ht.s;var Ct;return yt?Ct=ht.s-saturationStep*Et:Et===darkColorCount?Ct=ht.s+saturationStep:Ct=ht.s+saturationStep2*Et,Ct>1&&(Ct=1),yt&&Et===lightColorCount&&Ct>.1&&(Ct=.1),Ct<.06&&(Ct=.06),Number(Ct.toFixed(2))}function getValue$4(ht,Et,yt){var Ct;return yt?Ct=ht.v+brightnessStep1*Et:Ct=ht.v-brightnessStep2*Et,Ct>1&&(Ct=1),Number(Ct.toFixed(2))}function generate$1(ht){for(var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},yt=[],Ct=inputToRGB(ht),$t=lightColorCount;$t>0;$t-=1){var At=toHsv(Ct),Bt=toHex(inputToRGB({h:getHue(At,$t,!0),s:getSaturation(At,$t,!0),v:getValue$4(At,$t,!0)}));yt.push(Bt)}yt.push(toHex(Ct));for(var Dt=1;Dt<=darkColorCount;Dt+=1){var Ft=toHsv(Ct),kt=toHex(inputToRGB({h:getHue(Ft,Dt),s:getSaturation(Ft,Dt),v:getValue$4(Ft,Dt)}));yt.push(kt)}return Et.theme==="dark"?darkColorMap.map(function(Mt){var Nt=Mt.index,jt=Mt.opacity,zt=toHex(mix(inputToRGB(Et.backgroundColor||"#141414"),inputToRGB(yt[Nt]),jt*100));return zt}):yt}var presetPrimaryColors={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},red=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];red.primary=red[5];var volcano=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];volcano.primary=volcano[5];var orange=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];orange.primary=orange[5];var gold=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];gold.primary=gold[5];var yellow=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];yellow.primary=yellow[5];var lime=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];lime.primary=lime[5];var green=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];green.primary=green[5];var cyan=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];cyan.primary=cyan[5];var blue=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];blue.primary=blue[5];var geekblue=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];geekblue.primary=geekblue[5];var purple=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];purple.primary=purple[5];var magenta=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];magenta.primary=magenta[5];var grey=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];grey.primary=grey[5];var presetPalettes={red,volcano,orange,gold,yellow,lime,green,cyan,blue,geekblue,purple,magenta,grey};const defaultPresetColors={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},seedToken=Object.assign(Object.assign({},defaultPresetColors),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function genColorMapToken(ht,Et){let{generateColorPalettes:yt,generateNeutralColorPalettes:Ct}=Et;const{colorSuccess:$t,colorWarning:At,colorError:Bt,colorInfo:Dt,colorPrimary:Ft,colorBgBase:kt,colorTextBase:Mt}=ht,Nt=yt(Ft),jt=yt($t),zt=yt(At),Vt=yt(Bt),Kt=yt(Dt),Xt=Ct(kt,Mt),Qt=ht.colorLink||ht.colorInfo,Zt=yt(Qt);return Object.assign(Object.assign({},Xt),{colorPrimaryBg:Nt[1],colorPrimaryBgHover:Nt[2],colorPrimaryBorder:Nt[3],colorPrimaryBorderHover:Nt[4],colorPrimaryHover:Nt[5],colorPrimary:Nt[6],colorPrimaryActive:Nt[7],colorPrimaryTextHover:Nt[8],colorPrimaryText:Nt[9],colorPrimaryTextActive:Nt[10],colorSuccessBg:jt[1],colorSuccessBgHover:jt[2],colorSuccessBorder:jt[3],colorSuccessBorderHover:jt[4],colorSuccessHover:jt[4],colorSuccess:jt[6],colorSuccessActive:jt[7],colorSuccessTextHover:jt[8],colorSuccessText:jt[9],colorSuccessTextActive:jt[10],colorErrorBg:Vt[1],colorErrorBgHover:Vt[2],colorErrorBgActive:Vt[3],colorErrorBorder:Vt[3],colorErrorBorderHover:Vt[4],colorErrorHover:Vt[5],colorError:Vt[6],colorErrorActive:Vt[7],colorErrorTextHover:Vt[8],colorErrorText:Vt[9],colorErrorTextActive:Vt[10],colorWarningBg:zt[1],colorWarningBgHover:zt[2],colorWarningBorder:zt[3],colorWarningBorderHover:zt[4],colorWarningHover:zt[4],colorWarning:zt[6],colorWarningActive:zt[7],colorWarningTextHover:zt[8],colorWarningText:zt[9],colorWarningTextActive:zt[10],colorInfoBg:Kt[1],colorInfoBgHover:Kt[2],colorInfoBorder:Kt[3],colorInfoBorderHover:Kt[4],colorInfoHover:Kt[4],colorInfo:Kt[6],colorInfoActive:Kt[7],colorInfoTextHover:Kt[8],colorInfoText:Kt[9],colorInfoTextActive:Kt[10],colorLinkHover:Zt[4],colorLink:Zt[6],colorLinkActive:Zt[7],colorBgMask:new TinyColor("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const genRadius=ht=>{let Et=ht,yt=ht,Ct=ht,$t=ht;return ht<6&&ht>=5?Et=ht+1:ht<16&&ht>=6?Et=ht+2:ht>=16&&(Et=16),ht<7&&ht>=5?yt=4:ht<8&&ht>=7?yt=5:ht<14&&ht>=8?yt=6:ht<16&&ht>=14?yt=7:ht>=16&&(yt=8),ht<6&&ht>=2?Ct=1:ht>=6&&(Ct=2),ht>4&&ht<8?$t=4:ht>=8&&($t=6),{borderRadius:ht,borderRadiusXS:Ct,borderRadiusSM:yt,borderRadiusLG:Et,borderRadiusOuter:$t}};function genCommonMapToken(ht){const{motionUnit:Et,motionBase:yt,borderRadius:Ct,lineWidth:$t}=ht;return Object.assign({motionDurationFast:`${(yt+Et).toFixed(1)}s`,motionDurationMid:`${(yt+Et*2).toFixed(1)}s`,motionDurationSlow:`${(yt+Et*3).toFixed(1)}s`,lineWidthBold:$t+1},genRadius(Ct))}const genControlHeight=ht=>{const{controlHeight:Et}=ht;return{controlHeightSM:Et*.75,controlHeightXS:Et*.5,controlHeightLG:Et*1.25}};function getLineHeight(ht){return(ht+8)/ht}function getFontSizes(ht){const Et=new Array(10).fill(null).map((yt,Ct)=>{const $t=Ct-1,At=ht*Math.pow(Math.E,$t/5),Bt=Ct>1?Math.floor(At):Math.ceil(At);return Math.floor(Bt/2)*2});return Et[1]=ht,Et.map(yt=>({size:yt,lineHeight:getLineHeight(yt)}))}const genFontMapToken=ht=>{const Et=getFontSizes(ht),yt=Et.map(Mt=>Mt.size),Ct=Et.map(Mt=>Mt.lineHeight),$t=yt[1],At=yt[0],Bt=yt[2],Dt=Ct[1],Ft=Ct[0],kt=Ct[2];return{fontSizeSM:At,fontSize:$t,fontSizeLG:Bt,fontSizeXL:yt[3],fontSizeHeading1:yt[6],fontSizeHeading2:yt[5],fontSizeHeading3:yt[4],fontSizeHeading4:yt[3],fontSizeHeading5:yt[2],lineHeight:Dt,lineHeightLG:kt,lineHeightSM:Ft,fontHeight:Math.round(Dt*$t),fontHeightLG:Math.round(kt*Bt),fontHeightSM:Math.round(Ft*At),lineHeightHeading1:Ct[6],lineHeightHeading2:Ct[5],lineHeightHeading3:Ct[4],lineHeightHeading4:Ct[3],lineHeightHeading5:Ct[2]}};function genSizeMapToken$1(ht){const{sizeUnit:Et,sizeStep:yt}=ht;return{sizeXXL:Et*(yt+8),sizeXL:Et*(yt+4),sizeLG:Et*(yt+2),sizeMD:Et*(yt+1),sizeMS:Et*yt,size:Et*yt,sizeSM:Et*(yt-1),sizeXS:Et*(yt-2),sizeXXS:Et*(yt-3)}}const getAlphaColor$2=(ht,Et)=>new TinyColor(ht).setAlpha(Et).toRgbString(),getSolidColor$1=(ht,Et)=>new TinyColor(ht).darken(Et).toHexString(),generateColorPalettes$1=ht=>{const Et=generate$1(ht);return{1:Et[0],2:Et[1],3:Et[2],4:Et[3],5:Et[4],6:Et[5],7:Et[6],8:Et[4],9:Et[5],10:Et[6]}},generateNeutralColorPalettes$1=(ht,Et)=>{const yt=ht||"#fff",Ct=Et||"#000";return{colorBgBase:yt,colorTextBase:Ct,colorText:getAlphaColor$2(Ct,.88),colorTextSecondary:getAlphaColor$2(Ct,.65),colorTextTertiary:getAlphaColor$2(Ct,.45),colorTextQuaternary:getAlphaColor$2(Ct,.25),colorFill:getAlphaColor$2(Ct,.15),colorFillSecondary:getAlphaColor$2(Ct,.06),colorFillTertiary:getAlphaColor$2(Ct,.04),colorFillQuaternary:getAlphaColor$2(Ct,.02),colorBgLayout:getSolidColor$1(yt,4),colorBgContainer:getSolidColor$1(yt,0),colorBgElevated:getSolidColor$1(yt,0),colorBgSpotlight:getAlphaColor$2(Ct,.85),colorBgBlur:"transparent",colorBorder:getSolidColor$1(yt,15),colorBorderSecondary:getSolidColor$1(yt,6)}};function derivative$2(ht){presetPrimaryColors.pink=presetPrimaryColors.magenta,presetPalettes.pink=presetPalettes.magenta;const Et=Object.keys(defaultPresetColors).map(yt=>{const Ct=ht[yt]===presetPrimaryColors[yt]?presetPalettes[yt]:generate$1(ht[yt]);return new Array(10).fill(1).reduce(($t,At,Bt)=>($t[`${yt}-${Bt+1}`]=Ct[Bt],$t[`${yt}${Bt+1}`]=Ct[Bt],$t),{})}).reduce((yt,Ct)=>(yt=Object.assign(Object.assign({},yt),Ct),yt),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ht),Et),genColorMapToken(ht,{generateColorPalettes:generateColorPalettes$1,generateNeutralColorPalettes:generateNeutralColorPalettes$1})),genFontMapToken(ht.fontSize)),genSizeMapToken$1(ht)),genControlHeight(ht)),genCommonMapToken(ht))}const defaultTheme=createTheme(derivative$2),defaultConfig={token:seedToken,override:{override:seedToken},hashed:!0},DesignTokenContext=React$8.createContext(defaultConfig),defaultPrefixCls="ant",defaultIconPrefixCls="anticon",Variants=["outlined","borderless","filled"],defaultGetPrefixCls=(ht,Et)=>Et||(ht?`${defaultPrefixCls}-${ht}`:defaultPrefixCls),ConfigContext$1=reactExports.createContext({getPrefixCls:defaultGetPrefixCls,iconPrefixCls:defaultIconPrefixCls}),dynamicStyleMark=`-ant-${Date.now()}-${Math.random()}`;function getStyle$1(ht,Et){const yt={},Ct=(Bt,Dt)=>{let Ft=Bt.clone();return Ft=(Dt==null?void 0:Dt(Ft))||Ft,Ft.toRgbString()},$t=(Bt,Dt)=>{const Ft=new TinyColor(Bt),kt=generate$1(Ft.toRgbString());yt[`${Dt}-color`]=Ct(Ft),yt[`${Dt}-color-disabled`]=kt[1],yt[`${Dt}-color-hover`]=kt[4],yt[`${Dt}-color-active`]=kt[6],yt[`${Dt}-color-outline`]=Ft.clone().setAlpha(.2).toRgbString(),yt[`${Dt}-color-deprecated-bg`]=kt[0],yt[`${Dt}-color-deprecated-border`]=kt[2]};if(Et.primaryColor){$t(Et.primaryColor,"primary");const Bt=new TinyColor(Et.primaryColor),Dt=generate$1(Bt.toRgbString());Dt.forEach((kt,Mt)=>{yt[`primary-${Mt+1}`]=kt}),yt["primary-color-deprecated-l-35"]=Ct(Bt,kt=>kt.lighten(35)),yt["primary-color-deprecated-l-20"]=Ct(Bt,kt=>kt.lighten(20)),yt["primary-color-deprecated-t-20"]=Ct(Bt,kt=>kt.tint(20)),yt["primary-color-deprecated-t-50"]=Ct(Bt,kt=>kt.tint(50)),yt["primary-color-deprecated-f-12"]=Ct(Bt,kt=>kt.setAlpha(kt.getAlpha()*.12));const Ft=new TinyColor(Dt[0]);yt["primary-color-active-deprecated-f-30"]=Ct(Ft,kt=>kt.setAlpha(kt.getAlpha()*.3)),yt["primary-color-active-deprecated-d-02"]=Ct(Ft,kt=>kt.darken(2))}return Et.successColor&&$t(Et.successColor,"success"),Et.warningColor&&$t(Et.warningColor,"warning"),Et.errorColor&&$t(Et.errorColor,"error"),Et.infoColor&&$t(Et.infoColor,"info"),`
  :root {
    ${Object.keys(yt).map(Bt=>`--${ht}-${Bt}: ${yt[Bt]};`).join(`
`)}
  }
  `.trim()}function registerTheme(ht,Et){const yt=getStyle$1(ht,Et);canUseDom()&&updateCSS(yt,`${dynamicStyleMark}-dynamic-theme`)}const DisabledContext=reactExports.createContext(!1),DisabledContextProvider=ht=>{let{children:Et,disabled:yt}=ht;const Ct=reactExports.useContext(DisabledContext);return reactExports.createElement(DisabledContext.Provider,{value:yt??Ct},Et)},SizeContext=reactExports.createContext(void 0),SizeContextProvider=ht=>{let{children:Et,size:yt}=ht;const Ct=reactExports.useContext(SizeContext);return reactExports.createElement(SizeContext.Provider,{value:yt||Ct},Et)};function useConfig(){const ht=reactExports.useContext(DisabledContext),Et=reactExports.useContext(SizeContext);return{componentDisabled:ht,componentSize:Et}}const PresetColors=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],version$3="5.19.3";function isStableColor(ht){return ht>=0&&ht<=255}function getAlphaColor$1(ht,Et){const{r:yt,g:Ct,b:$t,a:At}=new TinyColor(ht).toRgb();if(At<1)return ht;const{r:Bt,g:Dt,b:Ft}=new TinyColor(Et).toRgb();for(let kt=.01;kt<=1;kt+=.01){const Mt=Math.round((yt-Bt*(1-kt))/kt),Nt=Math.round((Ct-Dt*(1-kt))/kt),jt=Math.round(($t-Ft*(1-kt))/kt);if(isStableColor(Mt)&&isStableColor(Nt)&&isStableColor(jt))return new TinyColor({r:Mt,g:Nt,b:jt,a:Math.round(kt*100)/100}).toRgbString()}return new TinyColor({r:yt,g:Ct,b:$t,a:1}).toRgbString()}var __rest$L=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};function formatToken(ht){const{override:Et}=ht,yt=__rest$L(ht,["override"]),Ct=Object.assign({},Et);Object.keys(seedToken).forEach(jt=>{delete Ct[jt]});const $t=Object.assign(Object.assign({},yt),Ct),At=480,Bt=576,Dt=768,Ft=992,kt=1200,Mt=1600;if($t.motion===!1){const jt="0s";$t.motionDurationFast=jt,$t.motionDurationMid=jt,$t.motionDurationSlow=jt}return Object.assign(Object.assign(Object.assign({},$t),{colorFillContent:$t.colorFillSecondary,colorFillContentHover:$t.colorFill,colorFillAlter:$t.colorFillQuaternary,colorBgContainerDisabled:$t.colorFillTertiary,colorBorderBg:$t.colorBgContainer,colorSplit:getAlphaColor$1($t.colorBorderSecondary,$t.colorBgContainer),colorTextPlaceholder:$t.colorTextQuaternary,colorTextDisabled:$t.colorTextQuaternary,colorTextHeading:$t.colorText,colorTextLabel:$t.colorTextSecondary,colorTextDescription:$t.colorTextTertiary,colorTextLightSolid:$t.colorWhite,colorHighlight:$t.colorError,colorBgTextHover:$t.colorFillSecondary,colorBgTextActive:$t.colorFill,colorIcon:$t.colorTextTertiary,colorIconHover:$t.colorText,colorErrorOutline:getAlphaColor$1($t.colorErrorBg,$t.colorBgContainer),colorWarningOutline:getAlphaColor$1($t.colorWarningBg,$t.colorBgContainer),fontSizeIcon:$t.fontSizeSM,lineWidthFocus:$t.lineWidth*4,lineWidth:$t.lineWidth,controlOutlineWidth:$t.lineWidth*2,controlInteractiveSize:$t.controlHeight/2,controlItemBgHover:$t.colorFillTertiary,controlItemBgActive:$t.colorPrimaryBg,controlItemBgActiveHover:$t.colorPrimaryBgHover,controlItemBgActiveDisabled:$t.colorFill,controlTmpOutline:$t.colorFillQuaternary,controlOutline:getAlphaColor$1($t.colorPrimaryBg,$t.colorBgContainer),lineType:$t.lineType,borderRadius:$t.borderRadius,borderRadiusXS:$t.borderRadiusXS,borderRadiusSM:$t.borderRadiusSM,borderRadiusLG:$t.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:$t.sizeXXS,paddingXS:$t.sizeXS,paddingSM:$t.sizeSM,padding:$t.size,paddingMD:$t.sizeMD,paddingLG:$t.sizeLG,paddingXL:$t.sizeXL,paddingContentHorizontalLG:$t.sizeLG,paddingContentVerticalLG:$t.sizeMS,paddingContentHorizontal:$t.sizeMS,paddingContentVertical:$t.sizeSM,paddingContentHorizontalSM:$t.size,paddingContentVerticalSM:$t.sizeXS,marginXXS:$t.sizeXXS,marginXS:$t.sizeXS,marginSM:$t.sizeSM,margin:$t.size,marginMD:$t.sizeMD,marginLG:$t.sizeLG,marginXL:$t.sizeXL,marginXXL:$t.sizeXXL,boxShadow:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowSecondary:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowTertiary:`
      0 1px 2px 0 rgba(0, 0, 0, 0.03),
      0 1px 6px -1px rgba(0, 0, 0, 0.02),
      0 2px 4px 0 rgba(0, 0, 0, 0.02)
    `,screenXS:At,screenXSMin:At,screenXSMax:Bt-1,screenSM:Bt,screenSMMin:Bt,screenSMMax:Dt-1,screenMD:Dt,screenMDMin:Dt,screenMDMax:Ft-1,screenLG:Ft,screenLGMin:Ft,screenLGMax:kt-1,screenXL:kt,screenXLMin:kt,screenXLMax:Mt-1,screenXXL:Mt,screenXXLMin:Mt,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
      0 1px 2px -2px ${new TinyColor("rgba(0, 0, 0, 0.16)").toRgbString()},
      0 3px 6px 0 ${new TinyColor("rgba(0, 0, 0, 0.12)").toRgbString()},
      0 5px 12px 4px ${new TinyColor("rgba(0, 0, 0, 0.09)").toRgbString()}
    `,boxShadowDrawerRight:`
      -6px 0 16px 0 rgba(0, 0, 0, 0.08),
      -3px 0 6px -4px rgba(0, 0, 0, 0.12),
      -9px 0 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerLeft:`
      6px 0 16px 0 rgba(0, 0, 0, 0.08),
      3px 0 6px -4px rgba(0, 0, 0, 0.12),
      9px 0 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerUp:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerDown:`
      0 -6px 16px 0 rgba(0, 0, 0, 0.08),
      0 -3px 6px -4px rgba(0, 0, 0, 0.12),
      0 -9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),Ct)}var __rest$K=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};const unitless={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0},ignore={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},preserve={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},getComputedToken=(ht,Et,yt)=>{const Ct=yt.getDerivativeToken(ht),{override:$t}=Et,At=__rest$K(Et,["override"]);let Bt=Object.assign(Object.assign({},Ct),{override:$t});return Bt=formatToken(Bt),At&&Object.entries(At).forEach(Dt=>{let[Ft,kt]=Dt;const{theme:Mt}=kt,Nt=__rest$K(kt,["theme"]);let jt=Nt;Mt&&(jt=getComputedToken(Object.assign(Object.assign({},Bt),Nt),{override:Nt},Mt)),Bt[Ft]=jt}),Bt};function useToken$1(){const{token:ht,hashed:Et,theme:yt,override:Ct,cssVar:$t}=React$8.useContext(DesignTokenContext),At=`${version$3}-${Et||""}`,Bt=yt||defaultTheme,[Dt,Ft,kt]=useCacheToken(Bt,[seedToken,ht],{salt:At,override:Ct,getComputedToken,formatToken,cssVar:$t&&{prefix:$t.prefix,key:$t.key,unitless,ignore,preserve}});return[Bt,kt,Et?Ft:"",Dt,$t]}function useEvent(ht){var Et=reactExports.useRef();Et.current=ht;var yt=reactExports.useCallback(function(){for(var Ct,$t=arguments.length,At=new Array($t),Bt=0;Bt<$t;Bt++)At[Bt]=arguments[Bt];return(Ct=Et.current)===null||Ct===void 0?void 0:Ct.call.apply(Ct,[Et].concat(At))},[]);return yt}function useSafeState(ht){var Et=reactExports.useRef(!1),yt=reactExports.useState(ht),Ct=_slicedToArray(yt,2),$t=Ct[0],At=Ct[1];reactExports.useEffect(function(){return Et.current=!1,function(){Et.current=!0}},[]);function Bt(Dt,Ft){Ft&&Et.current||At(Dt)}return[$t,Bt]}function hasValue$1(ht){return ht!==void 0}function useMergedState(ht,Et){var yt=Et||{},Ct=yt.defaultValue,$t=yt.value,At=yt.onChange,Bt=yt.postState,Dt=useSafeState(function(){return hasValue$1($t)?$t:hasValue$1(Ct)?typeof Ct=="function"?Ct():Ct:typeof ht=="function"?ht():ht}),Ft=_slicedToArray(Dt,2),kt=Ft[0],Mt=Ft[1],Nt=$t!==void 0?$t:kt,jt=Bt?Bt(Nt):Nt,zt=useEvent(At),Vt=useSafeState([Nt]),Kt=_slicedToArray(Vt,2),Xt=Kt[0],Qt=Kt[1];useLayoutUpdateEffect(function(){var dr=Xt[0];kt!==dr&&zt(kt,dr)},[Xt]),useLayoutUpdateEffect(function(){hasValue$1($t)||Mt($t)},[$t]);var Zt=useEvent(function(dr,cr){Mt(dr,cr),Qt([Nt],cr)});return[jt,Zt]}const BEAT_LIMIT=1e3*60*10;let ArrayKeyMap=function(){function ht(){_classCallCheck(this,ht),this.map=new Map,this.objectIDMap=new WeakMap,this.nextID=0,this.lastAccessBeat=new Map,this.accessBeat=0}return _createClass$1(ht,[{key:"set",value:function(yt,Ct){this.clear();const $t=this.getCompositeKey(yt);this.map.set($t,Ct),this.lastAccessBeat.set($t,Date.now())}},{key:"get",value:function(yt){const Ct=this.getCompositeKey(yt),$t=this.map.get(Ct);return this.lastAccessBeat.set(Ct,Date.now()),this.accessBeat+=1,$t}},{key:"getCompositeKey",value:function(yt){return yt.map($t=>$t&&typeof $t=="object"?`obj_${this.getObjectID($t)}`:`${typeof $t}_${$t}`).join("|")}},{key:"getObjectID",value:function(yt){if(this.objectIDMap.has(yt))return this.objectIDMap.get(yt);const Ct=this.nextID;return this.objectIDMap.set(yt,Ct),this.nextID+=1,Ct}},{key:"clear",value:function(){if(this.accessBeat>1e4){const yt=Date.now();this.lastAccessBeat.forEach((Ct,$t)=>{yt-Ct>BEAT_LIMIT&&(this.map.delete($t),this.lastAccessBeat.delete($t))}),this.accessBeat=0}}}])}();const uniqueMap=new ArrayKeyMap;function useUniqueMemo(ht,Et){return React$8.useMemo(()=>{const yt=uniqueMap.get(Et);if(yt)return yt;const Ct=ht();return uniqueMap.set(Et,Ct),Ct},Et)}const operationUnit=ht=>({color:ht.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${ht.motionDurationSlow}`,"&:focus, &:hover":{color:ht.colorLinkHover},"&:active":{color:ht.colorLinkActive}}),textEllipsis={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},resetComponent=function(ht){let Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:ht.colorText,fontSize:ht.fontSize,lineHeight:ht.lineHeight,listStyle:"none",fontFamily:Et?"inherit":ht.fontFamily}},resetIcon=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),clearFix=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),genLinkStyle=ht=>({a:{color:ht.colorLink,textDecoration:ht.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${ht.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:ht.colorLinkHover},"&:active":{color:ht.colorLinkActive},"&:active, &:hover":{textDecoration:ht.linkHoverDecoration,outline:0},"&:focus":{textDecoration:ht.linkFocusDecoration,outline:0},"&[disabled]":{color:ht.colorTextDisabled,cursor:"not-allowed"}}}),genCommonStyle=(ht,Et,yt,Ct)=>{const $t=`[class^="${Et}"], [class*=" ${Et}"]`,At=yt?`.${yt}`:$t,Bt={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let Dt={};return Ct!==!1&&(Dt={fontFamily:ht.fontFamily,fontSize:ht.fontSize}),{[At]:Object.assign(Object.assign(Object.assign({},Dt),Bt),{[$t]:Bt})}},genFocusOutline=ht=>({outline:`${unit(ht.lineWidthFocus)} solid ${ht.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),genFocusStyle=ht=>({"&:focus-visible":Object.assign({},genFocusOutline(ht))});function genMaxMin(ht){return ht==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var Et=arguments.length,yt=new Array(Et),Ct=0;Ct<Et;Ct++)yt[Ct]=arguments[Ct];return`max(${yt.map($t=>unit($t)).join(",")})`},min:function(){for(var Et=arguments.length,yt=new Array(Et),Ct=0;Ct<Et;Ct++)yt[Ct]=arguments[Ct];return`min(${yt.map($t=>unit($t)).join(",")})`}}}const enableStatistic=typeof CSSINJS_STATISTIC<"u";let recording=!0;function merge$2(){for(var ht=arguments.length,Et=new Array(ht),yt=0;yt<ht;yt++)Et[yt]=arguments[yt];if(!enableStatistic)return Object.assign.apply(Object,[{}].concat(Et));recording=!1;const Ct={};return Et.forEach($t=>{Object.keys($t).forEach(Bt=>{Object.defineProperty(Ct,Bt,{configurable:!0,enumerable:!0,get:()=>$t[Bt]})})}),recording=!0,Ct}const statistic={};function noop$4(){}const statisticToken=ht=>{let Et,yt=ht,Ct=noop$4;return enableStatistic&&typeof Proxy<"u"&&(Et=new Set,yt=new Proxy(ht,{get($t,At){return recording&&Et.add(At),$t[At]}}),Ct=($t,At)=>{var Bt;statistic[$t]={global:Array.from(Et),component:Object.assign(Object.assign({},(Bt=statistic[$t])===null||Bt===void 0?void 0:Bt.component),At)}}),{token:yt,keys:Et,flush:Ct}},useResetIconStyle=(ht,Et)=>{const[yt,Ct]=useToken$1();return useStyleRegister({theme:yt,token:Ct,hashId:"",path:["ant-design-icons",ht],nonce:()=>Et==null?void 0:Et.nonce,layer:{name:"antd"}},()=>[{[`.${ht}`]:Object.assign(Object.assign({},resetIcon()),{[`.${ht} .${ht}-icon`]:{display:"block"}})}])},getDefaultComponentToken=(ht,Et,yt)=>{var Ct;return typeof yt=="function"?yt(merge$2(Et,(Ct=Et[ht])!==null&&Ct!==void 0?Ct:{})):yt??{}},getComponentToken=(ht,Et,yt,Ct)=>{const $t=Object.assign({},Et[ht]);if(Ct!=null&&Ct.deprecatedTokens){const{deprecatedTokens:Bt}=Ct;Bt.forEach(Dt=>{let[Ft,kt]=Dt;var Mt;($t!=null&&$t[Ft]||$t!=null&&$t[kt])&&((Mt=$t[kt])!==null&&Mt!==void 0||($t[kt]=$t==null?void 0:$t[Ft]))})}const At=Object.assign(Object.assign({},yt),$t);return Object.keys(At).forEach(Bt=>{At[Bt]===Et[Bt]&&delete At[Bt]}),At},getCompVarPrefix=(ht,Et)=>`${[Et,ht.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function genComponentStyleHook(ht,Et,yt){let Ct=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const $t=Array.isArray(ht)?ht:[ht,ht],[At]=$t,Bt=$t.join("-");return function(Dt){let Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Dt;const[kt,Mt,Nt,jt,zt]=useToken$1(),{getPrefixCls:Vt,iconPrefixCls:Kt,csp:Xt}=reactExports.useContext(ConfigContext$1),Qt=Vt(),Zt=zt?"css":"js",dr=useUniqueMemo(()=>{const vr=new Set;return zt&&Object.keys(Ct.unitless||{}).forEach(yr=>{vr.add(token2CSSVar(yr,zt.prefix)),vr.add(token2CSSVar(yr,getCompVarPrefix(At,zt.prefix)))}),genCalc(Zt,vr)},[Zt,At,zt==null?void 0:zt.prefix]),{max:cr,min:Er}=genMaxMin(Zt),pr={theme:kt,token:jt,hashId:Nt,nonce:()=>Xt==null?void 0:Xt.nonce,clientOnly:Ct.clientOnly,layer:{name:"antd"},order:Ct.order||-999};return useStyleRegister(Object.assign(Object.assign({},pr),{clientOnly:!1,path:["Shared",Qt]}),()=>[{"&":genLinkStyle(jt)}]),useResetIconStyle(Kt,Xt),[useStyleRegister(Object.assign(Object.assign({},pr),{path:[Bt,Dt,Kt]}),()=>{if(Ct.injectStyle===!1)return[];const{token:vr,flush:yr}=statisticToken(jt),xr=getDefaultComponentToken(At,Mt,yt),rr=`.${Dt}`,Lt=getComponentToken(At,Mt,xr,{deprecatedTokens:Ct.deprecatedTokens});zt&&Object.keys(xr).forEach(Gt=>{xr[Gt]=`var(${token2CSSVar(Gt,getCompVarPrefix(At,zt.prefix))})`});const Ht=merge$2(vr,{componentCls:rr,prefixCls:Dt,iconCls:`.${Kt}`,antCls:`.${Qt}`,calc:dr,max:cr,min:Er},zt?xr:Lt),Wt=Et(Ht,{hashId:Nt,prefixCls:Dt,rootPrefixCls:Qt,iconPrefixCls:Kt});return yr(At,Lt),[Ct.resetStyle===!1?null:genCommonStyle(Ht,Dt,Ft,Ct.resetFont),Wt]}),Nt]}}const genSubStyleComponent=(ht,Et,yt,Ct)=>{const $t=genComponentStyleHook(ht,Et,yt,Object.assign({resetStyle:!1,order:-998},Ct));return Bt=>{let{prefixCls:Dt,rootCls:Ft=Dt}=Bt;return $t(Dt,Ft),null}},genCSSVarRegister=(ht,Et,yt)=>{const{unitless:Ct,injectStyle:$t=!0,prefixToken:At}=yt,Bt=Ft=>{let{rootCls:kt,cssVar:Mt}=Ft;const[,Nt]=useToken$1();return useCSSVarRegister({path:[ht],prefix:Mt.prefix,key:Mt==null?void 0:Mt.key,unitless:Ct,ignore,token:Nt,scope:kt},()=>{const jt=getDefaultComponentToken(ht,Nt,Et),zt=getComponentToken(ht,Nt,jt,{deprecatedTokens:yt==null?void 0:yt.deprecatedTokens});return Object.keys(jt).forEach(Vt=>{zt[At(Vt)]=zt[Vt],delete zt[Vt]}),zt}),null};return Ft=>{const[,,,,kt]=useToken$1();return[Mt=>$t&&kt?React$8.createElement(React$8.Fragment,null,React$8.createElement(Bt,{rootCls:Ft,cssVar:kt,component:ht}),Mt):Mt,kt==null?void 0:kt.key]}},genStyleHooks=(ht,Et,yt,Ct)=>{const $t=Array.isArray(ht)?ht[0]:ht;function At(Nt){return`${$t}${Nt.slice(0,1).toUpperCase()}${Nt.slice(1)}`}const Bt=(Ct==null?void 0:Ct.unitless)||{},Dt=Object.assign(Object.assign({},unitless),{[At("zIndexPopup")]:!0});Object.keys(Bt).forEach(Nt=>{Dt[At(Nt)]=Bt[Nt]});const Ft=Object.assign(Object.assign({},Ct),{unitless:Dt,prefixToken:At}),kt=genComponentStyleHook(ht,Et,yt,Ft),Mt=genCSSVarRegister($t,yt,Ft);return function(Nt){let jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Nt;const[,zt]=kt(Nt,jt),[Vt,Kt]=Mt(jt);return[Vt,zt,Kt]}};function genPresetColor(ht,Et){return PresetColors.reduce((yt,Ct)=>{const $t=ht[`${Ct}1`],At=ht[`${Ct}3`],Bt=ht[`${Ct}6`],Dt=ht[`${Ct}7`];return Object.assign(Object.assign({},yt),Et(Ct,{lightColor:$t,lightBorderColor:At,darkColor:Bt,textColor:Dt}))},{})}const fullClone$1=Object.assign({},e$9),{useId:useId$2}=fullClone$1,useEmptyId=()=>"",useThemeKey=typeof useId$2>"u"?useEmptyId:useId$2;function useTheme(ht,Et,yt){var Ct;devUseWarning();const $t=ht||{},At=$t.inherit===!1||!Et?Object.assign(Object.assign({},defaultConfig),{hashed:(Ct=Et==null?void 0:Et.hashed)!==null&&Ct!==void 0?Ct:defaultConfig.hashed,cssVar:Et==null?void 0:Et.cssVar}):Et,Bt=useThemeKey();return useMemo(()=>{var Dt,Ft;if(!ht)return Et;const kt=Object.assign({},At.components);Object.keys(ht.components||{}).forEach(jt=>{kt[jt]=Object.assign(Object.assign({},kt[jt]),ht.components[jt])});const Mt=`css-var-${Bt.replace(/:/g,"")}`,Nt=((Dt=$t.cssVar)!==null&&Dt!==void 0?Dt:At.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:yt==null?void 0:yt.prefixCls},typeof At.cssVar=="object"?At.cssVar:{}),typeof $t.cssVar=="object"?$t.cssVar:{}),{key:typeof $t.cssVar=="object"&&((Ft=$t.cssVar)===null||Ft===void 0?void 0:Ft.key)||Mt});return Object.assign(Object.assign(Object.assign({},At),$t),{token:Object.assign(Object.assign({},At.token),$t.token),components:kt,cssVar:Nt})},[$t,At],(Dt,Ft)=>Dt.some((kt,Mt)=>{const Nt=Ft[Mt];return!isEqual$3(kt,Nt,!0)}))}var _excluded$P=["children"],Context$1=reactExports.createContext({});function MotionProvider(ht){var Et=ht.children,yt=_objectWithoutProperties$1(ht,_excluded$P);return reactExports.createElement(Context$1.Provider,{value:yt},Et)}var DomWrapper=function(ht){_inherits(yt,ht);var Et=_createSuper$5(yt);function yt(){return _classCallCheck(this,yt),Et.apply(this,arguments)}return _createClass$1(yt,[{key:"render",value:function(){return this.props.children}}]),yt}(reactExports.Component);function useSyncState$2(ht){var Et=reactExports.useReducer(function(Dt){return Dt+1},0),yt=_slicedToArray(Et,2),Ct=yt[1],$t=reactExports.useRef(ht),At=useEvent(function(){return $t.current}),Bt=useEvent(function(Dt){$t.current=typeof Dt=="function"?Dt($t.current):Dt,Ct()});return[At,Bt]}var STATUS_NONE="none",STATUS_APPEAR="appear",STATUS_ENTER="enter",STATUS_LEAVE="leave",STEP_NONE="none",STEP_PREPARE="prepare",STEP_START="start",STEP_ACTIVE="active",STEP_ACTIVATED="end",STEP_PREPARED="prepared";function makePrefixMap(ht,Et){var yt={};return yt[ht.toLowerCase()]=Et.toLowerCase(),yt["Webkit".concat(ht)]="webkit".concat(Et),yt["Moz".concat(ht)]="moz".concat(Et),yt["ms".concat(ht)]="MS".concat(Et),yt["O".concat(ht)]="o".concat(Et.toLowerCase()),yt}function getVendorPrefixes(ht,Et){var yt={animationend:makePrefixMap("Animation","AnimationEnd"),transitionend:makePrefixMap("Transition","TransitionEnd")};return ht&&("AnimationEvent"in Et||delete yt.animationend.animation,"TransitionEvent"in Et||delete yt.transitionend.transition),yt}var vendorPrefixes=getVendorPrefixes(canUseDom(),typeof window<"u"?window:{}),style$1={};if(canUseDom()){var _document$createEleme=document.createElement("div");style$1=_document$createEleme.style}var prefixedEventNames={};function getVendorPrefixedEventName(ht){if(prefixedEventNames[ht])return prefixedEventNames[ht];var Et=vendorPrefixes[ht];if(Et)for(var yt=Object.keys(Et),Ct=yt.length,$t=0;$t<Ct;$t+=1){var At=yt[$t];if(Object.prototype.hasOwnProperty.call(Et,At)&&At in style$1)return prefixedEventNames[ht]=Et[At],prefixedEventNames[ht]}return""}var internalAnimationEndName=getVendorPrefixedEventName("animationend"),internalTransitionEndName=getVendorPrefixedEventName("transitionend"),supportTransition=!!(internalAnimationEndName&&internalTransitionEndName),animationEndName=internalAnimationEndName||"animationend",transitionEndName=internalTransitionEndName||"transitionend";function getTransitionName$1(ht,Et){if(!ht)return null;if(_typeof$1(ht)==="object"){var yt=Et.replace(/-\w/g,function(Ct){return Ct[1].toUpperCase()});return ht[yt]}return"".concat(ht,"-").concat(Et)}const useDomMotionEvents=function(ht){var Et=reactExports.useRef();function yt($t){$t&&($t.removeEventListener(transitionEndName,ht),$t.removeEventListener(animationEndName,ht))}function Ct($t){Et.current&&Et.current!==$t&&yt(Et.current),$t&&$t!==Et.current&&($t.addEventListener(transitionEndName,ht),$t.addEventListener(animationEndName,ht),Et.current=$t)}return reactExports.useEffect(function(){return function(){yt(Et.current)}},[]),[Ct,yt]};var useIsomorphicLayoutEffect$1=canUseDom()?reactExports.useLayoutEffect:reactExports.useEffect;const useNextFrame=function(){var ht=reactExports.useRef(null);function Et(){wrapperRaf.cancel(ht.current)}function yt(Ct){var $t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;Et();var At=wrapperRaf(function(){$t<=1?Ct({isCanceled:function(){return At!==ht.current}}):yt(Ct,$t-1)});ht.current=At}return reactExports.useEffect(function(){return function(){Et()}},[]),[yt,Et]};var FULL_STEP_QUEUE=[STEP_PREPARE,STEP_START,STEP_ACTIVE,STEP_ACTIVATED],SIMPLE_STEP_QUEUE=[STEP_PREPARE,STEP_PREPARED],SkipStep=!1,DoStep=!0;function isActive(ht){return ht===STEP_ACTIVE||ht===STEP_ACTIVATED}const useStepQueue=function(ht,Et,yt){var Ct=useSafeState(STEP_NONE),$t=_slicedToArray(Ct,2),At=$t[0],Bt=$t[1],Dt=useNextFrame(),Ft=_slicedToArray(Dt,2),kt=Ft[0],Mt=Ft[1];function Nt(){Bt(STEP_PREPARE,!0)}var jt=Et?SIMPLE_STEP_QUEUE:FULL_STEP_QUEUE;return useIsomorphicLayoutEffect$1(function(){if(At!==STEP_NONE&&At!==STEP_ACTIVATED){var zt=jt.indexOf(At),Vt=jt[zt+1],Kt=yt(At);Kt===SkipStep?Bt(Vt,!0):Vt&&kt(function(Xt){function Qt(){Xt.isCanceled()||Bt(Vt,!0)}Kt===!0?Qt():Promise.resolve(Kt).then(Qt)})}},[ht,At]),reactExports.useEffect(function(){return function(){Mt()}},[]),[Nt,At]};function useStatus(ht,Et,yt,Ct){var $t=Ct.motionEnter,At=$t===void 0?!0:$t,Bt=Ct.motionAppear,Dt=Bt===void 0?!0:Bt,Ft=Ct.motionLeave,kt=Ft===void 0?!0:Ft,Mt=Ct.motionDeadline,Nt=Ct.motionLeaveImmediately,jt=Ct.onAppearPrepare,zt=Ct.onEnterPrepare,Vt=Ct.onLeavePrepare,Kt=Ct.onAppearStart,Xt=Ct.onEnterStart,Qt=Ct.onLeaveStart,Zt=Ct.onAppearActive,dr=Ct.onEnterActive,cr=Ct.onLeaveActive,Er=Ct.onAppearEnd,pr=Ct.onEnterEnd,gr=Ct.onLeaveEnd,vr=Ct.onVisibleChanged,yr=useSafeState(),xr=_slicedToArray(yr,2),rr=xr[0],Lt=xr[1],Ht=useSyncState$2(STATUS_NONE),Wt=_slicedToArray(Ht,2),Gt=Wt[0],Yt=Wt[1],er=useSafeState(null),lr=_slicedToArray(er,2),Jt=lr[0],Ut=lr[1],ir=Gt(),Cr=reactExports.useRef(!1),_r=reactExports.useRef(null);function $r(){return yt()}var Tr=reactExports.useRef(!1);function Dr(){Yt(STATUS_NONE),Ut(null,!0)}var Ar=useEvent(function(Kr){var qr=Gt();if(qr!==STATUS_NONE){var Zr=$r();if(!(Kr&&!Kr.deadline&&Kr.target!==Zr)){var dn=Tr.current,Xr;qr===STATUS_APPEAR&&dn?Xr=Er==null?void 0:Er(Zr,Kr):qr===STATUS_ENTER&&dn?Xr=pr==null?void 0:pr(Zr,Kr):qr===STATUS_LEAVE&&dn&&(Xr=gr==null?void 0:gr(Zr,Kr)),dn&&Xr!==!1&&Dr()}}}),Fr=useDomMotionEvents(Ar),Rr=_slicedToArray(Fr,1),wr=Rr[0],Sr=function(qr){switch(qr){case STATUS_APPEAR:return _defineProperty$1(_defineProperty$1(_defineProperty$1({},STEP_PREPARE,jt),STEP_START,Kt),STEP_ACTIVE,Zt);case STATUS_ENTER:return _defineProperty$1(_defineProperty$1(_defineProperty$1({},STEP_PREPARE,zt),STEP_START,Xt),STEP_ACTIVE,dr);case STATUS_LEAVE:return _defineProperty$1(_defineProperty$1(_defineProperty$1({},STEP_PREPARE,Vt),STEP_START,Qt),STEP_ACTIVE,cr);default:return{}}},Br=reactExports.useMemo(function(){return Sr(ir)},[ir]),Or=useStepQueue(ir,!ht,function(Kr){if(Kr===STEP_PREPARE){var qr=Br[STEP_PREPARE];return qr?qr($r()):SkipStep}if(Lr in Br){var Zr;Ut(((Zr=Br[Lr])===null||Zr===void 0?void 0:Zr.call(Br,$r(),null))||null)}return Lr===STEP_ACTIVE&&ir!==STATUS_NONE&&(wr($r()),Mt>0&&(clearTimeout(_r.current),_r.current=setTimeout(function(){Ar({deadline:!0})},Mt))),Lr===STEP_PREPARED&&Dr(),DoStep}),Pr=_slicedToArray(Or,2),Nr=Pr[0],Lr=Pr[1],Wr=isActive(Lr);Tr.current=Wr,useIsomorphicLayoutEffect$1(function(){Lt(Et);var Kr=Cr.current;Cr.current=!0;var qr;!Kr&&Et&&Dt&&(qr=STATUS_APPEAR),Kr&&Et&&At&&(qr=STATUS_ENTER),(Kr&&!Et&&kt||!Kr&&Nt&&!Et&&kt)&&(qr=STATUS_LEAVE);var Zr=Sr(qr);qr&&(ht||Zr[STEP_PREPARE])?(Yt(qr),Nr()):Yt(STATUS_NONE)},[Et]),reactExports.useEffect(function(){(ir===STATUS_APPEAR&&!Dt||ir===STATUS_ENTER&&!At||ir===STATUS_LEAVE&&!kt)&&Yt(STATUS_NONE)},[Dt,At,kt]),reactExports.useEffect(function(){return function(){Cr.current=!1,clearTimeout(_r.current)}},[]);var Ur=reactExports.useRef(!1);reactExports.useEffect(function(){rr&&(Ur.current=!0),rr!==void 0&&ir===STATUS_NONE&&((Ur.current||rr)&&(vr==null||vr(rr)),Ur.current=!0)},[rr,ir]);var jr=Jt;return Br[STEP_PREPARE]&&Lr===STEP_START&&(jr=_objectSpread2({transition:"none"},jr)),[ir,Lr,jr,rr??Et]}function genCSSMotion(ht){var Et=ht;_typeof$1(ht)==="object"&&(Et=ht.transitionSupport);function yt($t,At){return!!($t.motionName&&Et&&At!==!1)}var Ct=reactExports.forwardRef(function($t,At){var Bt=$t.visible,Dt=Bt===void 0?!0:Bt,Ft=$t.removeOnLeave,kt=Ft===void 0?!0:Ft,Mt=$t.forceRender,Nt=$t.children,jt=$t.motionName,zt=$t.leavedClassName,Vt=$t.eventProps,Kt=reactExports.useContext(Context$1),Xt=Kt.motion,Qt=yt($t,Xt),Zt=reactExports.useRef(),dr=reactExports.useRef();function cr(){try{return Zt.current instanceof HTMLElement?Zt.current:findDOMNode(dr.current)}catch{return null}}var Er=useStatus(Qt,Dt,cr,$t),pr=_slicedToArray(Er,4),gr=pr[0],vr=pr[1],yr=pr[2],xr=pr[3],rr=reactExports.useRef(xr);xr&&(rr.current=!0);var Lt=reactExports.useCallback(function(Jt){Zt.current=Jt,fillRef(At,Jt)},[At]),Ht,Wt=_objectSpread2(_objectSpread2({},Vt),{},{visible:Dt});if(!Nt)Ht=null;else if(gr===STATUS_NONE)xr?Ht=Nt(_objectSpread2({},Wt),Lt):!kt&&rr.current&&zt?Ht=Nt(_objectSpread2(_objectSpread2({},Wt),{},{className:zt}),Lt):Mt||!kt&&!zt?Ht=Nt(_objectSpread2(_objectSpread2({},Wt),{},{style:{display:"none"}}),Lt):Ht=null;else{var Gt;vr===STEP_PREPARE?Gt="prepare":isActive(vr)?Gt="active":vr===STEP_START&&(Gt="start");var Yt=getTransitionName$1(jt,"".concat(gr,"-").concat(Gt));Ht=Nt(_objectSpread2(_objectSpread2({},Wt),{},{className:cls(getTransitionName$1(jt,gr),_defineProperty$1(_defineProperty$1({},Yt,Yt&&Gt),jt,typeof jt=="string")),style:yr}),Lt)}if(reactExports.isValidElement(Ht)&&supportRef(Ht)){var er=Ht,lr=er.ref;lr||(Ht=reactExports.cloneElement(Ht,{ref:Lt}))}return reactExports.createElement(DomWrapper,{ref:dr},Ht)});return Ct.displayName="CSSMotion",Ct}const CSSMotion=genCSSMotion(supportTransition);var STATUS_ADD="add",STATUS_KEEP="keep",STATUS_REMOVE="remove",STATUS_REMOVED="removed";function wrapKeyToObject(ht){var Et;return ht&&_typeof$1(ht)==="object"&&"key"in ht?Et=ht:Et={key:ht},_objectSpread2(_objectSpread2({},Et),{},{key:String(Et.key)})}function parseKeys(){var ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return ht.map(wrapKeyToObject)}function diffKeys(){var ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],yt=[],Ct=0,$t=Et.length,At=parseKeys(ht),Bt=parseKeys(Et);At.forEach(function(kt){for(var Mt=!1,Nt=Ct;Nt<$t;Nt+=1){var jt=Bt[Nt];if(jt.key===kt.key){Ct<Nt&&(yt=yt.concat(Bt.slice(Ct,Nt).map(function(zt){return _objectSpread2(_objectSpread2({},zt),{},{status:STATUS_ADD})})),Ct=Nt),yt.push(_objectSpread2(_objectSpread2({},jt),{},{status:STATUS_KEEP})),Ct+=1,Mt=!0;break}}Mt||yt.push(_objectSpread2(_objectSpread2({},kt),{},{status:STATUS_REMOVE}))}),Ct<$t&&(yt=yt.concat(Bt.slice(Ct).map(function(kt){return _objectSpread2(_objectSpread2({},kt),{},{status:STATUS_ADD})})));var Dt={};yt.forEach(function(kt){var Mt=kt.key;Dt[Mt]=(Dt[Mt]||0)+1});var Ft=Object.keys(Dt).filter(function(kt){return Dt[kt]>1});return Ft.forEach(function(kt){yt=yt.filter(function(Mt){var Nt=Mt.key,jt=Mt.status;return Nt!==kt||jt!==STATUS_REMOVE}),yt.forEach(function(Mt){Mt.key===kt&&(Mt.status=STATUS_KEEP)})}),yt}var _excluded$O=["component","children","onVisibleChanged","onAllRemoved"],_excluded2$6=["status"],MOTION_PROP_NAMES=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function genCSSMotionList(ht){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:CSSMotion,yt=function(Ct){_inherits(At,Ct);var $t=_createSuper$5(At);function At(){var Bt;_classCallCheck(this,At);for(var Dt=arguments.length,Ft=new Array(Dt),kt=0;kt<Dt;kt++)Ft[kt]=arguments[kt];return Bt=$t.call.apply($t,[this].concat(Ft)),_defineProperty$1(_assertThisInitialized$1(Bt),"state",{keyEntities:[]}),_defineProperty$1(_assertThisInitialized$1(Bt),"removeKey",function(Mt){var Nt=Bt.state.keyEntities,jt=Nt.map(function(zt){return zt.key!==Mt?zt:_objectSpread2(_objectSpread2({},zt),{},{status:STATUS_REMOVED})});return Bt.setState({keyEntities:jt}),jt.filter(function(zt){var Vt=zt.status;return Vt!==STATUS_REMOVED}).length}),Bt}return _createClass$1(At,[{key:"render",value:function(){var Dt=this,Ft=this.state.keyEntities,kt=this.props,Mt=kt.component,Nt=kt.children,jt=kt.onVisibleChanged,zt=kt.onAllRemoved,Vt=_objectWithoutProperties$1(kt,_excluded$O),Kt=Mt||reactExports.Fragment,Xt={};return MOTION_PROP_NAMES.forEach(function(Qt){Xt[Qt]=Vt[Qt],delete Vt[Qt]}),delete Vt.keys,reactExports.createElement(Kt,Vt,Ft.map(function(Qt,Zt){var dr=Qt.status,cr=_objectWithoutProperties$1(Qt,_excluded2$6),Er=dr===STATUS_ADD||dr===STATUS_KEEP;return reactExports.createElement(Et,_extends$5({},Xt,{key:cr.key,visible:Er,eventProps:cr,onVisibleChanged:function(gr){if(jt==null||jt(gr,{key:cr.key}),!gr){var vr=Dt.removeKey(cr.key);vr===0&&zt&&zt()}}}),function(pr,gr){return Nt(_objectSpread2(_objectSpread2({},pr),{},{index:Zt}),gr)})}))}}],[{key:"getDerivedStateFromProps",value:function(Dt,Ft){var kt=Dt.keys,Mt=Ft.keyEntities,Nt=parseKeys(kt),jt=diffKeys(Mt,Nt);return{keyEntities:jt.filter(function(zt){var Vt=Mt.find(function(Kt){var Xt=Kt.key;return zt.key===Xt});return!(Vt&&Vt.status===STATUS_REMOVED&&zt.status===STATUS_REMOVE)})}}}]),At}(reactExports.Component);return _defineProperty$1(yt,"defaultProps",{component:"div"}),yt}const CSSMotionList=genCSSMotionList(supportTransition);function MotionWrapper(ht){const{children:Et}=ht,[,yt]=useToken$1(),{motion:Ct}=yt,$t=reactExports.useRef(!1);return $t.current=$t.current||Ct===!1,$t.current?reactExports.createElement(MotionProvider,{motion:Ct},Et):Et}const PropWarning=()=>null;var __rest$J=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};const PASSED_PROPS=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let globalPrefixCls,globalIconPrefixCls,globalTheme,globalHolderRender;function getGlobalPrefixCls(){return globalPrefixCls||defaultPrefixCls}function getGlobalIconPrefixCls(){return globalIconPrefixCls||defaultIconPrefixCls}function isLegacyTheme(ht){return Object.keys(ht).some(Et=>Et.endsWith("Color"))}const setGlobalConfig=ht=>{const{prefixCls:Et,iconPrefixCls:yt,theme:Ct,holderRender:$t}=ht;Et!==void 0&&(globalPrefixCls=Et),yt!==void 0&&(globalIconPrefixCls=yt),"holderRender"in ht&&(globalHolderRender=$t),Ct&&(isLegacyTheme(Ct)?registerTheme(getGlobalPrefixCls(),Ct):globalTheme=Ct)},globalConfig=()=>({getPrefixCls:(ht,Et)=>Et||(ht?`${getGlobalPrefixCls()}-${ht}`:getGlobalPrefixCls()),getIconPrefixCls:getGlobalIconPrefixCls,getRootPrefixCls:()=>globalPrefixCls||getGlobalPrefixCls(),getTheme:()=>globalTheme,holderRender:globalHolderRender}),ProviderChildren=ht=>{const{children:Et,csp:yt,autoInsertSpaceInButton:Ct,alert:$t,anchor:At,form:Bt,locale:Dt,componentSize:Ft,direction:kt,space:Mt,virtual:Nt,dropdownMatchSelectWidth:jt,popupMatchSelectWidth:zt,popupOverflow:Vt,legacyLocale:Kt,parentContext:Xt,iconPrefixCls:Qt,theme:Zt,componentDisabled:dr,segmented:cr,statistic:Er,spin:pr,calendar:gr,carousel:vr,cascader:yr,collapse:xr,typography:rr,checkbox:Lt,descriptions:Ht,divider:Wt,drawer:Gt,skeleton:Yt,steps:er,image:lr,layout:Jt,list:Ut,mentions:ir,modal:Cr,progress:_r,result:$r,slider:Tr,breadcrumb:Dr,menu:Ar,pagination:Fr,input:Rr,textArea:wr,empty:Sr,badge:Br,radio:Or,rate:Pr,switch:Nr,transfer:Lr,avatar:Wr,message:Ur,tag:jr,table:Kr,card:qr,tabs:Zr,timeline:dn,timePicker:Xr,upload:un,notification:Yr,tree:Gr,colorPicker:Jr,datePicker:wn,rangePicker:kr,flex:Mr,wave:Ir,dropdown:Hr,warning:Vr,tour:on,floatButtonGroup:Qr,variant:hn,inputNumber:Wn,treeSelect:_n}=ht,An=reactExports.useCallback((pn,yn)=>{const{prefixCls:jn}=ht;if(yn)return yn;const Cn=jn||Xt.getPrefixCls("");return pn?`${Cn}-${pn}`:Cn},[Xt.getPrefixCls,ht.prefixCls]),Yn=Qt||Xt.iconPrefixCls||defaultIconPrefixCls,Tn=yt||Xt.csp;useResetIconStyle(Yn,Tn);const Nn=useTheme(Zt,Xt.theme,{prefixCls:An("")}),Zn={csp:Tn,autoInsertSpaceInButton:Ct,alert:$t,anchor:At,locale:Dt||Kt,direction:kt,space:Mt,virtual:Nt,popupMatchSelectWidth:zt??jt,popupOverflow:Vt,getPrefixCls:An,iconPrefixCls:Yn,theme:Nn,segmented:cr,statistic:Er,spin:pr,calendar:gr,carousel:vr,cascader:yr,collapse:xr,typography:rr,checkbox:Lt,descriptions:Ht,divider:Wt,drawer:Gt,skeleton:Yt,steps:er,image:lr,input:Rr,textArea:wr,layout:Jt,list:Ut,mentions:ir,modal:Cr,progress:_r,result:$r,slider:Tr,breadcrumb:Dr,menu:Ar,pagination:Fr,empty:Sr,badge:Br,radio:Or,rate:Pr,switch:Nr,transfer:Lr,avatar:Wr,message:Ur,tag:jr,table:Kr,card:qr,tabs:Zr,timeline:dn,timePicker:Xr,upload:un,notification:Yr,tree:Gr,colorPicker:Jr,datePicker:wn,rangePicker:kr,flex:Mr,wave:Ir,dropdown:Hr,warning:Vr,tour:on,floatButtonGroup:Qr,variant:hn,inputNumber:Wn,treeSelect:_n},$n=Object.assign({},Xt);Object.keys(Zn).forEach(pn=>{Zn[pn]!==void 0&&($n[pn]=Zn[pn])}),PASSED_PROPS.forEach(pn=>{const yn=ht[pn];yn&&($n[pn]=yn)}),typeof Ct<"u"&&($n.button=Object.assign({autoInsertSpace:Ct},$n.button));const Fn=useMemo(()=>$n,$n,(pn,yn)=>{const jn=Object.keys(pn),Cn=Object.keys(yn);return jn.length!==Cn.length||jn.some(On=>pn[On]!==yn[On])}),Gn=reactExports.useMemo(()=>({prefixCls:Yn,csp:Tn}),[Yn,Tn]);let gn=reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(PropWarning,{dropdownMatchSelectWidth:jt}),Et);const Rn=reactExports.useMemo(()=>{var pn,yn,jn,Cn;return merge$3(((pn=localeValues.Form)===null||pn===void 0?void 0:pn.defaultValidateMessages)||{},((jn=(yn=Fn.locale)===null||yn===void 0?void 0:yn.Form)===null||jn===void 0?void 0:jn.defaultValidateMessages)||{},((Cn=Fn.form)===null||Cn===void 0?void 0:Cn.validateMessages)||{},(Bt==null?void 0:Bt.validateMessages)||{})},[Fn,Bt==null?void 0:Bt.validateMessages]);Object.keys(Rn).length>0&&(gn=reactExports.createElement(ValidateMessagesContext.Provider,{value:Rn},gn)),Dt&&(gn=reactExports.createElement(LocaleProvider,{locale:Dt,_ANT_MARK__:ANT_MARK},gn)),(Yn||Tn)&&(gn=reactExports.createElement(IconContext.Provider,{value:Gn},gn)),Ft&&(gn=reactExports.createElement(SizeContextProvider,{size:Ft},gn)),gn=reactExports.createElement(MotionWrapper,null,gn);const nu=reactExports.useMemo(()=>{const pn=Nn||{},{algorithm:yn,token:jn,components:Cn,cssVar:On}=pn,au=__rest$J(pn,["algorithm","token","components","cssVar"]),In=yn&&(!Array.isArray(yn)||yn.length>0)?createTheme(yn):defaultTheme,Bn={};Object.entries(Cn||{}).forEach(En=>{let[Sn,Xn]=En;const uu=Object.assign({},Xn);"algorithm"in uu&&(uu.algorithm===!0?uu.theme=In:(Array.isArray(uu.algorithm)||typeof uu.algorithm=="function")&&(uu.theme=createTheme(uu.algorithm)),delete uu.algorithm),Bn[Sn]=uu});const Vn=Object.assign(Object.assign({},seedToken),jn);return Object.assign(Object.assign({},au),{theme:In,token:Vn,components:Bn,override:Object.assign({override:Vn},Bn),cssVar:On})},[Nn]);return Zt&&(gn=reactExports.createElement(DesignTokenContext.Provider,{value:nu},gn)),Fn.warning&&(gn=reactExports.createElement(WarningContext.Provider,{value:Fn.warning},gn)),dr!==void 0&&(gn=reactExports.createElement(DisabledContextProvider,{disabled:dr},gn)),reactExports.createElement(ConfigContext$1.Provider,{value:Fn},gn)},ConfigProvider$1=ht=>{const Et=reactExports.useContext(ConfigContext$1),yt=reactExports.useContext(LocaleContext);return reactExports.createElement(ProviderChildren,Object.assign({parentContext:Et,legacyLocale:yt},ht))};ConfigProvider$1.ConfigContext=ConfigContext$1;ConfigProvider$1.SizeContext=SizeContext;ConfigProvider$1.config=setGlobalConfig;ConfigProvider$1.useConfig=useConfig;Object.defineProperty(ConfigProvider$1,"SizeContext",{get:()=>SizeContext});var CheckCircleFilled$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function getRoot(ht){var Et;return ht==null||(Et=ht.getRootNode)===null||Et===void 0?void 0:Et.call(ht)}function inShadow(ht){return getRoot(ht)instanceof ShadowRoot}function getShadowRoot(ht){return inShadow(ht)?getRoot(ht):null}function camelCase(ht){return ht.replace(/-(.)/g,function(Et,yt){return yt.toUpperCase()})}function warning$1(ht,Et){warningOnce(ht,"[@ant-design/icons] ".concat(Et))}function isIconDefinition(ht){return _typeof$1(ht)==="object"&&typeof ht.name=="string"&&typeof ht.theme=="string"&&(_typeof$1(ht.icon)==="object"||typeof ht.icon=="function")}function normalizeAttrs(){var ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(ht).reduce(function(Et,yt){var Ct=ht[yt];switch(yt){case"class":Et.className=Ct,delete Et.class;break;default:delete Et[yt],Et[camelCase(yt)]=Ct}return Et},{})}function generate(ht,Et,yt){return yt?React$8.createElement(ht.tag,_objectSpread2(_objectSpread2({key:Et},normalizeAttrs(ht.attrs)),yt),(ht.children||[]).map(function(Ct,$t){return generate(Ct,"".concat(Et,"-").concat(ht.tag,"-").concat($t))})):React$8.createElement(ht.tag,_objectSpread2({key:Et},normalizeAttrs(ht.attrs)),(ht.children||[]).map(function(Ct,$t){return generate(Ct,"".concat(Et,"-").concat(ht.tag,"-").concat($t))}))}function getSecondaryColor(ht){return generate$1(ht)[0]}function normalizeTwoToneColors(ht){return ht?Array.isArray(ht)?ht:[ht]:[]}var iconStyles=`
.anticon {
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-style: normal;
  line-height: 0;
  text-align: center;
  text-transform: none;
  vertical-align: -0.125em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.anticon > * {
  line-height: 1;
}

.anticon svg {
  display: inline-block;
}

.anticon::before {
  display: none;
}

.anticon .anticon-icon {
  display: block;
}

.anticon[tabindex] {
  cursor: pointer;
}

.anticon-spin::before,
.anticon-spin {
  display: inline-block;
  -webkit-animation: loadingCircle 1s infinite linear;
  animation: loadingCircle 1s infinite linear;
}

@-webkit-keyframes loadingCircle {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes loadingCircle {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
`,useInsertStyles=function ht(Et){var yt=reactExports.useContext(IconContext),Ct=yt.csp,$t=yt.prefixCls,At=iconStyles;$t&&(At=At.replace(/anticon/g,$t)),reactExports.useEffect(function(){var Bt=Et.current,Dt=getShadowRoot(Bt);updateCSS(At,"@ant-design-icons",{prepend:!0,csp:Ct,attachTo:Dt})},[])},_excluded$N=["icon","className","onClick","style","primaryColor","secondaryColor"],twoToneColorPalette={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function setTwoToneColors(ht){var Et=ht.primaryColor,yt=ht.secondaryColor;twoToneColorPalette.primaryColor=Et,twoToneColorPalette.secondaryColor=yt||getSecondaryColor(Et),twoToneColorPalette.calculated=!!yt}function getTwoToneColors(){return _objectSpread2({},twoToneColorPalette)}var IconBase=function ht(Et){var yt=Et.icon,Ct=Et.className,$t=Et.onClick,At=Et.style,Bt=Et.primaryColor,Dt=Et.secondaryColor,Ft=_objectWithoutProperties$1(Et,_excluded$N),kt=reactExports.useRef(),Mt=twoToneColorPalette;if(Bt&&(Mt={primaryColor:Bt,secondaryColor:Dt||getSecondaryColor(Bt)}),useInsertStyles(kt),warning$1(isIconDefinition(yt),"icon should be icon definiton, but got ".concat(yt)),!isIconDefinition(yt))return null;var Nt=yt;return Nt&&typeof Nt.icon=="function"&&(Nt=_objectSpread2(_objectSpread2({},Nt),{},{icon:Nt.icon(Mt.primaryColor,Mt.secondaryColor)})),generate(Nt.icon,"svg-".concat(Nt.name),_objectSpread2(_objectSpread2({className:Ct,onClick:$t,style:At,"data-icon":Nt.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},Ft),{},{ref:kt}))};IconBase.displayName="IconReact";IconBase.getTwoToneColors=getTwoToneColors;IconBase.setTwoToneColors=setTwoToneColors;function setTwoToneColor(ht){var Et=normalizeTwoToneColors(ht),yt=_slicedToArray(Et,2),Ct=yt[0],$t=yt[1];return IconBase.setTwoToneColors({primaryColor:Ct,secondaryColor:$t})}function getTwoToneColor(){var ht=IconBase.getTwoToneColors();return ht.calculated?[ht.primaryColor,ht.secondaryColor]:ht.primaryColor}var _excluded$M=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];setTwoToneColor(blue.primary);var Icon$1=reactExports.forwardRef(function(ht,Et){var yt=ht.className,Ct=ht.icon,$t=ht.spin,At=ht.rotate,Bt=ht.tabIndex,Dt=ht.onClick,Ft=ht.twoToneColor,kt=_objectWithoutProperties$1(ht,_excluded$M),Mt=reactExports.useContext(IconContext),Nt=Mt.prefixCls,jt=Nt===void 0?"anticon":Nt,zt=Mt.rootClassName,Vt=cls(zt,jt,_defineProperty$1(_defineProperty$1({},"".concat(jt,"-").concat(Ct.name),!!Ct.name),"".concat(jt,"-spin"),!!$t||Ct.name==="loading"),yt),Kt=Bt;Kt===void 0&&Dt&&(Kt=-1);var Xt=At?{msTransform:"rotate(".concat(At,"deg)"),transform:"rotate(".concat(At,"deg)")}:void 0,Qt=normalizeTwoToneColors(Ft),Zt=_slicedToArray(Qt,2),dr=Zt[0],cr=Zt[1];return reactExports.createElement("span",_extends$5({role:"img","aria-label":Ct.name},kt,{ref:Et,tabIndex:Kt,onClick:Dt,className:Vt}),reactExports.createElement(IconBase,{icon:Ct,primaryColor:dr,secondaryColor:cr,style:Xt}))});Icon$1.displayName="AntdIcon";Icon$1.getTwoToneColor=getTwoToneColor;Icon$1.setTwoToneColor=setTwoToneColor;var CheckCircleFilled=function ht(Et,yt){return reactExports.createElement(Icon$1,_extends$5({},Et,{ref:yt,icon:CheckCircleFilled$1}))},RefIcon$t=reactExports.forwardRef(CheckCircleFilled),CloseCircleFilled$1={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},CloseCircleFilled=function ht(Et,yt){return reactExports.createElement(Icon$1,_extends$5({},Et,{ref:yt,icon:CloseCircleFilled$1}))},RefIcon$s=reactExports.forwardRef(CloseCircleFilled),CloseOutlined$1={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},CloseOutlined=function ht(Et,yt){return reactExports.createElement(Icon$1,_extends$5({},Et,{ref:yt,icon:CloseOutlined$1}))},RefIcon$r=reactExports.forwardRef(CloseOutlined),ExclamationCircleFilled$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},ExclamationCircleFilled=function ht(Et,yt){return reactExports.createElement(Icon$1,_extends$5({},Et,{ref:yt,icon:ExclamationCircleFilled$1}))},RefIcon$q=reactExports.forwardRef(ExclamationCircleFilled),InfoCircleFilled$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},InfoCircleFilled=function ht(Et,yt){return reactExports.createElement(Icon$1,_extends$5({},Et,{ref:yt,icon:InfoCircleFilled$1}))},RefIcon$p=reactExports.forwardRef(InfoCircleFilled),attributes=`accept acceptCharset accessKey action allowFullScreen allowTransparency
    alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
    charSet checked classID className colSpan cols content contentEditable contextMenu
    controls coords crossOrigin data dateTime default defer dir disabled download draggable
    encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
    headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
    is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
    mediaGroup method min minLength multiple muted name noValidate nonce open
    optimum pattern placeholder poster preload radioGroup readOnly rel required
    reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
    shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
    summary tabIndex target title type useMap value width wmode wrap`,eventsName=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
    onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
    onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
    onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
    onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
    onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
    onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,propList="".concat(attributes," ").concat(eventsName).split(/[\s\n]+/),ariaPrefix="aria-",dataPrefix="data-";function match$1(ht,Et){return ht.indexOf(Et)===0}function pickAttrs(ht){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,yt;Et===!1?yt={aria:!0,data:!0,attr:!0}:Et===!0?yt={aria:!0}:yt=_objectSpread2({},Et);var Ct={};return Object.keys(ht).forEach(function($t){(yt.aria&&($t==="role"||match$1($t,ariaPrefix))||yt.data&&match$1($t,dataPrefix)||yt.attr&&propList.includes($t))&&(Ct[$t]=ht[$t])}),Ct}function isFragment(ht){return ht&&React$8.isValidElement(ht)&&ht.type===React$8.Fragment}const replaceElement=(ht,Et,yt)=>React$8.isValidElement(ht)?React$8.cloneElement(ht,typeof yt=="function"?yt(ht.props||{}):yt):Et;function cloneElement(ht,Et){return replaceElement(ht,ht,Et)}const t$a=ht=>typeof ht=="object"&&ht!=null&&ht.nodeType===1,e$4=(ht,Et)=>(!Et||ht!=="hidden")&&ht!=="visible"&&ht!=="clip",n$6=(ht,Et)=>{if(ht.clientHeight<ht.scrollHeight||ht.clientWidth<ht.scrollWidth){const yt=getComputedStyle(ht,null);return e$4(yt.overflowY,Et)||e$4(yt.overflowX,Et)||(Ct=>{const $t=(At=>{if(!At.ownerDocument||!At.ownerDocument.defaultView)return null;try{return At.ownerDocument.defaultView.frameElement}catch{return null}})(Ct);return!!$t&&($t.clientHeight<Ct.scrollHeight||$t.clientWidth<Ct.scrollWidth)})(ht)}return!1},o$9=(ht,Et,yt,Ct,$t,At,Bt,Dt)=>At<ht&&Bt>Et||At>ht&&Bt<Et?0:At<=ht&&Dt<=yt||Bt>=Et&&Dt>=yt?At-ht-Ct:Bt>Et&&Dt<yt||At<ht&&Dt>yt?Bt-Et+$t:0,l$8=ht=>{const Et=ht.parentElement;return Et??(ht.getRootNode().host||null)},r$7=(ht,Et)=>{var yt,Ct,$t,At;if(typeof document>"u")return[];const{scrollMode:Bt,block:Dt,inline:Ft,boundary:kt,skipOverflowHiddenElements:Mt}=Et,Nt=typeof kt=="function"?kt:Yt=>Yt!==kt;if(!t$a(ht))throw new TypeError("Invalid target");const jt=document.scrollingElement||document.documentElement,zt=[];let Vt=ht;for(;t$a(Vt)&&Nt(Vt);){if(Vt=l$8(Vt),Vt===jt){zt.push(Vt);break}Vt!=null&&Vt===document.body&&n$6(Vt)&&!n$6(document.documentElement)||Vt!=null&&n$6(Vt,Mt)&&zt.push(Vt)}const Kt=(Ct=(yt=window.visualViewport)==null?void 0:yt.width)!=null?Ct:innerWidth,Xt=(At=($t=window.visualViewport)==null?void 0:$t.height)!=null?At:innerHeight,{scrollX:Qt,scrollY:Zt}=window,{height:dr,width:cr,top:Er,right:pr,bottom:gr,left:vr}=ht.getBoundingClientRect(),{top:yr,right:xr,bottom:rr,left:Lt}=(Yt=>{const er=window.getComputedStyle(Yt);return{top:parseFloat(er.scrollMarginTop)||0,right:parseFloat(er.scrollMarginRight)||0,bottom:parseFloat(er.scrollMarginBottom)||0,left:parseFloat(er.scrollMarginLeft)||0}})(ht);let Ht=Dt==="start"||Dt==="nearest"?Er-yr:Dt==="end"?gr+rr:Er+dr/2-yr+rr,Wt=Ft==="center"?vr+cr/2-Lt+xr:Ft==="end"?pr+xr:vr-Lt;const Gt=[];for(let Yt=0;Yt<zt.length;Yt++){const er=zt[Yt],{height:lr,width:Jt,top:Ut,right:ir,bottom:Cr,left:_r}=er.getBoundingClientRect();if(Bt==="if-needed"&&Er>=0&&vr>=0&&gr<=Xt&&pr<=Kt&&Er>=Ut&&gr<=Cr&&vr>=_r&&pr<=ir)return Gt;const $r=getComputedStyle(er),Tr=parseInt($r.borderLeftWidth,10),Dr=parseInt($r.borderTopWidth,10),Ar=parseInt($r.borderRightWidth,10),Fr=parseInt($r.borderBottomWidth,10);let Rr=0,wr=0;const Sr="offsetWidth"in er?er.offsetWidth-er.clientWidth-Tr-Ar:0,Br="offsetHeight"in er?er.offsetHeight-er.clientHeight-Dr-Fr:0,Or="offsetWidth"in er?er.offsetWidth===0?0:Jt/er.offsetWidth:0,Pr="offsetHeight"in er?er.offsetHeight===0?0:lr/er.offsetHeight:0;if(jt===er)Rr=Dt==="start"?Ht:Dt==="end"?Ht-Xt:Dt==="nearest"?o$9(Zt,Zt+Xt,Xt,Dr,Fr,Zt+Ht,Zt+Ht+dr,dr):Ht-Xt/2,wr=Ft==="start"?Wt:Ft==="center"?Wt-Kt/2:Ft==="end"?Wt-Kt:o$9(Qt,Qt+Kt,Kt,Tr,Ar,Qt+Wt,Qt+Wt+cr,cr),Rr=Math.max(0,Rr+Zt),wr=Math.max(0,wr+Qt);else{Rr=Dt==="start"?Ht-Ut-Dr:Dt==="end"?Ht-Cr+Fr+Br:Dt==="nearest"?o$9(Ut,Cr,lr,Dr,Fr+Br,Ht,Ht+dr,dr):Ht-(Ut+lr/2)+Br/2,wr=Ft==="start"?Wt-_r-Tr:Ft==="center"?Wt-(_r+Jt/2)+Sr/2:Ft==="end"?Wt-ir+Ar+Sr:o$9(_r,ir,Jt,Tr,Ar+Sr,Wt,Wt+cr,cr);const{scrollLeft:Nr,scrollTop:Lr}=er;Rr=Pr===0?0:Math.max(0,Math.min(Lr+Rr/Pr,er.scrollHeight-lr/Pr+Br)),wr=Or===0?0:Math.max(0,Math.min(Nr+wr/Or,er.scrollWidth-Jt/Or+Sr)),Ht+=Lr-Rr,Wt+=Nr-wr}Gt.push({el:er,top:Rr,left:wr})}return Gt},o$8=ht=>ht===!1?{block:"end",inline:"nearest"}:(Et=>Et===Object(Et)&&Object.keys(Et).length!==0)(ht)?ht:{block:"start",inline:"nearest"};function e$3(ht,Et){if(!ht.isConnected||!($t=>{let At=$t;for(;At&&At.parentNode;){if(At.parentNode===document)return!0;At=At.parentNode instanceof ShadowRoot?At.parentNode.host:At.parentNode}return!1})(ht))return;const yt=($t=>{const At=window.getComputedStyle($t);return{top:parseFloat(At.scrollMarginTop)||0,right:parseFloat(At.scrollMarginRight)||0,bottom:parseFloat(At.scrollMarginBottom)||0,left:parseFloat(At.scrollMarginLeft)||0}})(ht);if(($t=>typeof $t=="object"&&typeof $t.behavior=="function")(Et))return Et.behavior(r$7(ht,Et));const Ct=typeof Et=="boolean"||Et==null?void 0:Et.behavior;for(const{el:$t,top:At,left:Bt}of r$7(ht,o$8(Et))){const Dt=At-yt.top+yt.bottom,Ft=Bt-yt.left+yt.right;$t.scroll({top:Dt,left:Ft,behavior:Ct})}}function isWindow(ht){return ht!=null&&ht===ht.window}const getScroll$1=ht=>{var Et,yt;if(typeof window>"u")return 0;let Ct=0;return isWindow(ht)?Ct=ht.pageYOffset:ht instanceof Document?Ct=ht.documentElement.scrollTop:(ht instanceof HTMLElement||ht)&&(Ct=ht.scrollTop),ht&&!isWindow(ht)&&typeof Ct!="number"&&(Ct=(yt=((Et=ht.ownerDocument)!==null&&Et!==void 0?Et:ht).documentElement)===null||yt===void 0?void 0:yt.scrollTop),Ct};function easeInOutCubic(ht,Et,yt,Ct){const $t=yt-Et;return ht/=Ct/2,ht<1?$t/2*ht*ht*ht+Et:$t/2*((ht-=2)*ht*ht+2)+Et}function scrollTo(ht){let Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:yt=()=>window,callback:Ct,duration:$t=450}=Et,At=yt(),Bt=getScroll$1(At),Dt=Date.now(),Ft=()=>{const Mt=Date.now()-Dt,Nt=easeInOutCubic(Mt>$t?$t:Mt,Bt,ht,$t);isWindow(At)?At.scrollTo(window.pageXOffset,Nt):At instanceof Document||At.constructor.name==="HTMLDocument"?At.documentElement.scrollTop=Nt:At.scrollTop=Nt,Mt<$t?wrapperRaf(Ft):typeof Ct=="function"&&Ct()};wrapperRaf(Ft)}const useCSSVarCls=ht=>{const[,,,,Et]=useToken$1();return Et?`${ht}-css-var`:""};var KeyCode={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function ht(Et){var yt=Et.keyCode;if(Et.altKey&&!Et.ctrlKey||Et.metaKey||yt>=KeyCode.F1&&yt<=KeyCode.F12)return!1;switch(yt){case KeyCode.ALT:case KeyCode.CAPS_LOCK:case KeyCode.CONTEXT_MENU:case KeyCode.CTRL:case KeyCode.DOWN:case KeyCode.END:case KeyCode.ESC:case KeyCode.HOME:case KeyCode.INSERT:case KeyCode.LEFT:case KeyCode.MAC_FF_META:case KeyCode.META:case KeyCode.NUMLOCK:case KeyCode.NUM_CENTER:case KeyCode.PAGE_DOWN:case KeyCode.PAGE_UP:case KeyCode.PAUSE:case KeyCode.PRINT_SCREEN:case KeyCode.RIGHT:case KeyCode.SHIFT:case KeyCode.UP:case KeyCode.WIN_KEY:case KeyCode.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function ht(Et){if(Et>=KeyCode.ZERO&&Et<=KeyCode.NINE||Et>=KeyCode.NUM_ZERO&&Et<=KeyCode.NUM_MULTIPLY||Et>=KeyCode.A&&Et<=KeyCode.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Et===0)return!0;switch(Et){case KeyCode.SPACE:case KeyCode.QUESTION_MARK:case KeyCode.NUM_PLUS:case KeyCode.NUM_MINUS:case KeyCode.NUM_PERIOD:case KeyCode.NUM_DIVISION:case KeyCode.SEMICOLON:case KeyCode.DASH:case KeyCode.EQUALS:case KeyCode.COMMA:case KeyCode.PERIOD:case KeyCode.SLASH:case KeyCode.APOSTROPHE:case KeyCode.SINGLE_QUOTE:case KeyCode.OPEN_SQUARE_BRACKET:case KeyCode.BACKSLASH:case KeyCode.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Notify=reactExports.forwardRef(function(ht,Et){var yt=ht.prefixCls,Ct=ht.style,$t=ht.className,At=ht.duration,Bt=At===void 0?4.5:At,Dt=ht.showProgress,Ft=ht.pauseOnHover,kt=Ft===void 0?!0:Ft,Mt=ht.eventKey,Nt=ht.content,jt=ht.closable,zt=ht.closeIcon,Vt=zt===void 0?"x":zt,Kt=ht.props,Xt=ht.onClick,Qt=ht.onNoticeClose,Zt=ht.times,dr=ht.hovering,cr=reactExports.useState(!1),Er=_slicedToArray(cr,2),pr=Er[0],gr=Er[1],vr=reactExports.useState(0),yr=_slicedToArray(vr,2),xr=yr[0],rr=yr[1],Lt=reactExports.useState(0),Ht=_slicedToArray(Lt,2),Wt=Ht[0],Gt=Ht[1],Yt=dr||pr,er=Bt>0&&Dt,lr=function(){Qt(Mt)},Jt=function(Tr){(Tr.key==="Enter"||Tr.code==="Enter"||Tr.keyCode===KeyCode.ENTER)&&lr()};reactExports.useEffect(function(){if(!Yt&&Bt>0){var $r=Date.now()-Wt,Tr=setTimeout(function(){lr()},Bt*1e3-Wt);return function(){kt&&clearTimeout(Tr),Gt(Date.now()-$r)}}},[Bt,Yt,Zt]),reactExports.useEffect(function(){if(!Yt&&er&&(kt||Wt===0)){var $r=performance.now(),Tr,Dr=function Ar(){cancelAnimationFrame(Tr),Tr=requestAnimationFrame(function(Fr){var Rr=Fr+Wt-$r,wr=Math.min(Rr/(Bt*1e3),1);rr(wr*100),wr<1&&Ar()})};return Dr(),function(){kt&&cancelAnimationFrame(Tr)}}},[Bt,Wt,Yt,er,Zt]);var Ut=reactExports.useMemo(function(){return _typeof$1(jt)==="object"&&jt!==null?jt:jt?{closeIcon:Vt}:{}},[jt,Vt]),ir=pickAttrs(Ut,!0),Cr=100-(!xr||xr<0?0:xr>100?100:xr),_r="".concat(yt,"-notice");return reactExports.createElement("div",_extends$5({},Kt,{ref:Et,className:cls(_r,$t,_defineProperty$1({},"".concat(_r,"-closable"),jt)),style:Ct,onMouseEnter:function(Tr){var Dr;gr(!0),Kt==null||(Dr=Kt.onMouseEnter)===null||Dr===void 0||Dr.call(Kt,Tr)},onMouseLeave:function(Tr){var Dr;gr(!1),Kt==null||(Dr=Kt.onMouseLeave)===null||Dr===void 0||Dr.call(Kt,Tr)},onClick:Xt}),reactExports.createElement("div",{className:"".concat(_r,"-content")},Nt),jt&&reactExports.createElement("a",_extends$5({tabIndex:0,className:"".concat(_r,"-close"),onKeyDown:Jt,"aria-label":"Close"},ir,{onClick:function(Tr){Tr.preventDefault(),Tr.stopPropagation(),lr()}}),Ut.closeIcon),er&&reactExports.createElement("progress",{className:"".concat(_r,"-progress"),max:"100",value:Cr},Cr+"%"))}),NotificationContext=React$8.createContext({}),NotificationProvider=function ht(Et){var yt=Et.children,Ct=Et.classNames;return React$8.createElement(NotificationContext.Provider,{value:{classNames:Ct}},yt)},DEFAULT_OFFSET$2=8,DEFAULT_THRESHOLD=3,DEFAULT_GAP=16,useStack=function ht(Et){var yt={offset:DEFAULT_OFFSET$2,threshold:DEFAULT_THRESHOLD,gap:DEFAULT_GAP};if(Et&&_typeof$1(Et)==="object"){var Ct,$t,At;yt.offset=(Ct=Et.offset)!==null&&Ct!==void 0?Ct:DEFAULT_OFFSET$2,yt.threshold=($t=Et.threshold)!==null&&$t!==void 0?$t:DEFAULT_THRESHOLD,yt.gap=(At=Et.gap)!==null&&At!==void 0?At:DEFAULT_GAP}return[!!Et,yt]},_excluded$L=["className","style","classNames","styles"],NoticeList=function ht(Et){var yt=Et.configList,Ct=Et.placement,$t=Et.prefixCls,At=Et.className,Bt=Et.style,Dt=Et.motion,Ft=Et.onAllNoticeRemoved,kt=Et.onNoticeClose,Mt=Et.stack,Nt=reactExports.useContext(NotificationContext),jt=Nt.classNames,zt=reactExports.useRef({}),Vt=reactExports.useState(null),Kt=_slicedToArray(Vt,2),Xt=Kt[0],Qt=Kt[1],Zt=reactExports.useState([]),dr=_slicedToArray(Zt,2),cr=dr[0],Er=dr[1],pr=yt.map(function(Yt){return{config:Yt,key:String(Yt.key)}}),gr=useStack(Mt),vr=_slicedToArray(gr,2),yr=vr[0],xr=vr[1],rr=xr.offset,Lt=xr.threshold,Ht=xr.gap,Wt=yr&&(cr.length>0||pr.length<=Lt),Gt=typeof Dt=="function"?Dt(Ct):Dt;return reactExports.useEffect(function(){yr&&cr.length>1&&Er(function(Yt){return Yt.filter(function(er){return pr.some(function(lr){var Jt=lr.key;return er===Jt})})})},[cr,pr,yr]),reactExports.useEffect(function(){var Yt;if(yr&&zt.current[(Yt=pr[pr.length-1])===null||Yt===void 0?void 0:Yt.key]){var er;Qt(zt.current[(er=pr[pr.length-1])===null||er===void 0?void 0:er.key])}},[pr,yr]),React$8.createElement(CSSMotionList,_extends$5({key:Ct,className:cls($t,"".concat($t,"-").concat(Ct),jt==null?void 0:jt.list,At,_defineProperty$1(_defineProperty$1({},"".concat($t,"-stack"),!!yr),"".concat($t,"-stack-expanded"),Wt)),style:Bt,keys:pr,motionAppear:!0},Gt,{onAllRemoved:function(){Ft(Ct)}}),function(Yt,er){var lr=Yt.config,Jt=Yt.className,Ut=Yt.style,ir=Yt.index,Cr=lr,_r=Cr.key,$r=Cr.times,Tr=String(_r),Dr=lr,Ar=Dr.className,Fr=Dr.style,Rr=Dr.classNames,wr=Dr.styles,Sr=_objectWithoutProperties$1(Dr,_excluded$L),Br=pr.findIndex(function(Xr){return Xr.key===Tr}),Or={};if(yr){var Pr=pr.length-1-(Br>-1?Br:ir-1),Nr=Ct==="top"||Ct==="bottom"?"-50%":"0";if(Pr>0){var Lr,Wr,Ur;Or.height=Wt?(Lr=zt.current[Tr])===null||Lr===void 0?void 0:Lr.offsetHeight:Xt==null?void 0:Xt.offsetHeight;for(var jr=0,Kr=0;Kr<Pr;Kr++){var qr;jr+=((qr=zt.current[pr[pr.length-1-Kr].key])===null||qr===void 0?void 0:qr.offsetHeight)+Ht}var Zr=(Wt?jr:Pr*rr)*(Ct.startsWith("top")?1:-1),dn=!Wt&&Xt!==null&&Xt!==void 0&&Xt.offsetWidth&&(Wr=zt.current[Tr])!==null&&Wr!==void 0&&Wr.offsetWidth?((Xt==null?void 0:Xt.offsetWidth)-rr*2*(Pr<3?Pr:3))/((Ur=zt.current[Tr])===null||Ur===void 0?void 0:Ur.offsetWidth):1;Or.transform="translate3d(".concat(Nr,", ").concat(Zr,"px, 0) scaleX(").concat(dn,")")}else Or.transform="translate3d(".concat(Nr,", 0, 0)")}return React$8.createElement("div",{ref:er,className:cls("".concat($t,"-notice-wrapper"),Jt,Rr==null?void 0:Rr.wrapper),style:_objectSpread2(_objectSpread2(_objectSpread2({},Ut),Or),wr==null?void 0:wr.wrapper),onMouseEnter:function(){return Er(function(un){return un.includes(Tr)?un:[].concat(_toConsumableArray(un),[Tr])})},onMouseLeave:function(){return Er(function(un){return un.filter(function(Yr){return Yr!==Tr})})}},React$8.createElement(Notify,_extends$5({},Sr,{ref:function(un){Br>-1?zt.current[Tr]=un:delete zt.current[Tr]},prefixCls:$t,classNames:Rr,styles:wr,className:cls(Ar,jt==null?void 0:jt.notice),style:Fr,times:$r,key:_r,eventKey:_r,onNoticeClose:kt,hovering:yr&&cr.length>0})))})},Notifications=reactExports.forwardRef(function(ht,Et){var yt=ht.prefixCls,Ct=yt===void 0?"rc-notification":yt,$t=ht.container,At=ht.motion,Bt=ht.maxCount,Dt=ht.className,Ft=ht.style,kt=ht.onAllRemoved,Mt=ht.stack,Nt=ht.renderNotifications,jt=reactExports.useState([]),zt=_slicedToArray(jt,2),Vt=zt[0],Kt=zt[1],Xt=function(yr){var xr,rr=Vt.find(function(Lt){return Lt.key===yr});rr==null||(xr=rr.onClose)===null||xr===void 0||xr.call(rr),Kt(function(Lt){return Lt.filter(function(Ht){return Ht.key!==yr})})};reactExports.useImperativeHandle(Et,function(){return{open:function(yr){Kt(function(xr){var rr=_toConsumableArray(xr),Lt=rr.findIndex(function(Gt){return Gt.key===yr.key}),Ht=_objectSpread2({},yr);if(Lt>=0){var Wt;Ht.times=(((Wt=xr[Lt])===null||Wt===void 0?void 0:Wt.times)||0)+1,rr[Lt]=Ht}else Ht.times=0,rr.push(Ht);return Bt>0&&rr.length>Bt&&(rr=rr.slice(-Bt)),rr})},close:function(yr){Xt(yr)},destroy:function(){Kt([])}}});var Qt=reactExports.useState({}),Zt=_slicedToArray(Qt,2),dr=Zt[0],cr=Zt[1];reactExports.useEffect(function(){var vr={};Vt.forEach(function(yr){var xr=yr.placement,rr=xr===void 0?"topRight":xr;rr&&(vr[rr]=vr[rr]||[],vr[rr].push(yr))}),Object.keys(dr).forEach(function(yr){vr[yr]=vr[yr]||[]}),cr(vr)},[Vt]);var Er=function(yr){cr(function(xr){var rr=_objectSpread2({},xr),Lt=rr[yr]||[];return Lt.length||delete rr[yr],rr})},pr=reactExports.useRef(!1);if(reactExports.useEffect(function(){Object.keys(dr).length>0?pr.current=!0:pr.current&&(kt==null||kt(),pr.current=!1)},[dr]),!$t)return null;var gr=Object.keys(dr);return reactDomExports.createPortal(reactExports.createElement(reactExports.Fragment,null,gr.map(function(vr){var yr=dr[vr],xr=reactExports.createElement(NoticeList,{key:vr,configList:yr,placement:vr,prefixCls:Ct,className:Dt==null?void 0:Dt(vr),style:Ft==null?void 0:Ft(vr),motion:At,onNoticeClose:Xt,onAllNoticeRemoved:Er,stack:Mt});return Nt?Nt(xr,{prefixCls:Ct,key:vr}):xr})),$t)}),_excluded$K=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],defaultGetContainer=function ht(){return document.body},uniqueKey=0;function mergeConfig$1(){for(var ht={},Et=arguments.length,yt=new Array(Et),Ct=0;Ct<Et;Ct++)yt[Ct]=arguments[Ct];return yt.forEach(function($t){$t&&Object.keys($t).forEach(function(At){var Bt=$t[At];Bt!==void 0&&(ht[At]=Bt)})}),ht}function useNotification$1(){var ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Et=ht.getContainer,yt=Et===void 0?defaultGetContainer:Et,Ct=ht.motion,$t=ht.prefixCls,At=ht.maxCount,Bt=ht.className,Dt=ht.style,Ft=ht.onAllRemoved,kt=ht.stack,Mt=ht.renderNotifications,Nt=_objectWithoutProperties$1(ht,_excluded$K),jt=reactExports.useState(),zt=_slicedToArray(jt,2),Vt=zt[0],Kt=zt[1],Xt=reactExports.useRef(),Qt=reactExports.createElement(Notifications,{container:Vt,ref:Xt,prefixCls:$t,motion:Ct,maxCount:At,className:Bt,style:Dt,onAllRemoved:Ft,stack:kt,renderNotifications:Mt}),Zt=reactExports.useState([]),dr=_slicedToArray(Zt,2),cr=dr[0],Er=dr[1],pr=reactExports.useMemo(function(){return{open:function(vr){var yr=mergeConfig$1(Nt,vr);(yr.key===null||yr.key===void 0)&&(yr.key="rc-notification-".concat(uniqueKey),uniqueKey+=1),Er(function(xr){return[].concat(_toConsumableArray(xr),[{type:"open",config:yr}])})},close:function(vr){Er(function(yr){return[].concat(_toConsumableArray(yr),[{type:"close",key:vr}])})},destroy:function(){Er(function(vr){return[].concat(_toConsumableArray(vr),[{type:"destroy"}])})}}},[]);return reactExports.useEffect(function(){Kt(yt())}),reactExports.useEffect(function(){Xt.current&&cr.length&&(cr.forEach(function(gr){switch(gr.type){case"open":Xt.current.open(gr.config);break;case"close":Xt.current.close(gr.key);break;case"destroy":Xt.current.destroy();break}}),Er(function(gr){return gr.filter(function(vr){return!cr.includes(vr)})}))},[cr]),[pr,Qt]}var LoadingOutlined$1={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},LoadingOutlined=function ht(Et,yt){return reactExports.createElement(Icon$1,_extends$5({},Et,{ref:yt,icon:LoadingOutlined$1}))},RefIcon$o=reactExports.forwardRef(LoadingOutlined);const zIndexContext=React$8.createContext(void 0),CONTAINER_OFFSET=100,CONTAINER_OFFSET_MAX_COUNT=10,CONTAINER_MAX_OFFSET=CONTAINER_OFFSET*CONTAINER_OFFSET_MAX_COUNT,containerBaseZIndexOffset={Modal:CONTAINER_OFFSET,Drawer:CONTAINER_OFFSET,Popover:CONTAINER_OFFSET,Popconfirm:CONTAINER_OFFSET,Tooltip:CONTAINER_OFFSET,Tour:CONTAINER_OFFSET},consumerBaseZIndexOffset={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function isContainerType(ht){return ht in containerBaseZIndexOffset}function useZIndex(ht,Et){const[,yt]=useToken$1(),Ct=React$8.useContext(zIndexContext),$t=isContainerType(ht);let At;if(Et!==void 0)At=[Et,Et];else{let Bt=Ct??0;$t?Bt+=(Ct?0:yt.zIndexPopupBase)+containerBaseZIndexOffset[ht]:Bt+=consumerBaseZIndexOffset[ht],At=[Ct===void 0?Et:Bt,Bt]}return At}const genMessageStyle=ht=>{const{componentCls:Et,iconCls:yt,boxShadow:Ct,colorText:$t,colorSuccess:At,colorError:Bt,colorWarning:Dt,colorInfo:Ft,fontSizeLG:kt,motionEaseInOutCirc:Mt,motionDurationSlow:Nt,marginXS:jt,paddingXS:zt,borderRadiusLG:Vt,zIndexPopup:Kt,contentPadding:Xt,contentBg:Qt}=ht,Zt=`${Et}-notice`,dr=new Keyframe("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:zt,transform:"translateY(0)",opacity:1}}),cr=new Keyframe("MessageMoveOut",{"0%":{maxHeight:ht.height,padding:zt,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),Er={padding:zt,textAlign:"center",[`${Et}-custom-content`]:{display:"flex",alignItems:"center"},[`${Et}-custom-content > ${yt}`]:{marginInlineEnd:jt,fontSize:kt},[`${Zt}-content`]:{display:"inline-block",padding:Xt,background:Qt,borderRadius:Vt,boxShadow:Ct,pointerEvents:"all"},[`${Et}-success > ${yt}`]:{color:At},[`${Et}-error > ${yt}`]:{color:Bt},[`${Et}-warning > ${yt}`]:{color:Dt},[`${Et}-info > ${yt},
      ${Et}-loading > ${yt}`]:{color:Ft}};return[{[Et]:Object.assign(Object.assign({},resetComponent(ht)),{color:$t,position:"fixed",top:jt,width:"100%",pointerEvents:"none",zIndex:Kt,[`${Et}-move-up`]:{animationFillMode:"forwards"},[`
        ${Et}-move-up-appear,
        ${Et}-move-up-enter
      `]:{animationName:dr,animationDuration:Nt,animationPlayState:"paused",animationTimingFunction:Mt},[`
        ${Et}-move-up-appear${Et}-move-up-appear-active,
        ${Et}-move-up-enter${Et}-move-up-enter-active
      `]:{animationPlayState:"running"},[`${Et}-move-up-leave`]:{animationName:cr,animationDuration:Nt,animationPlayState:"paused",animationTimingFunction:Mt},[`${Et}-move-up-leave${Et}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[Et]:{[`${Zt}-wrapper`]:Object.assign({},Er)}},{[`${Et}-notice-pure-panel`]:Object.assign(Object.assign({},Er),{padding:0,textAlign:"start"})}]},prepareComponentToken$l=ht=>({zIndexPopup:ht.zIndexPopupBase+CONTAINER_MAX_OFFSET+10,contentBg:ht.colorBgElevated,contentPadding:`${(ht.controlHeightLG-ht.fontSize*ht.lineHeight)/2}px ${ht.paddingSM}px`}),useStyle$q=genStyleHooks("Message",ht=>{const Et=merge$2(ht,{height:150});return[genMessageStyle(Et)]},prepareComponentToken$l);var __rest$I=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};const TypeIcon={info:reactExports.createElement(RefIcon$p,null),success:reactExports.createElement(RefIcon$t,null),error:reactExports.createElement(RefIcon$s,null),warning:reactExports.createElement(RefIcon$q,null),loading:reactExports.createElement(RefIcon$o,null)},PureContent$1=ht=>{let{prefixCls:Et,type:yt,icon:Ct,children:$t}=ht;return reactExports.createElement("div",{className:cls(`${Et}-custom-content`,`${Et}-${yt}`)},Ct||TypeIcon[yt],reactExports.createElement("span",null,$t))},PurePanel$6=ht=>{const{prefixCls:Et,className:yt,type:Ct,icon:$t,content:At}=ht,Bt=__rest$I(ht,["prefixCls","className","type","icon","content"]),{getPrefixCls:Dt}=reactExports.useContext(ConfigContext$1),Ft=Et||Dt("message"),kt=useCSSVarCls(Ft),[Mt,Nt,jt]=useStyle$q(Ft,kt);return Mt(reactExports.createElement(Notify,Object.assign({},Bt,{prefixCls:Ft,className:cls(yt,Nt,`${Ft}-notice-pure-panel`,jt,kt),eventKey:"pure",duration:null,content:reactExports.createElement(PureContent$1,{prefixCls:Ft,type:Ct,icon:$t},At)})))};function getMotion$3(ht,Et){return{motionName:Et??`${ht}-move-up`}}function wrapPromiseFn(ht){let Et;const yt=new Promise($t=>{Et=ht(()=>{$t(!0)})}),Ct=()=>{Et==null||Et()};return Ct.then=($t,At)=>yt.then($t,At),Ct.promise=yt,Ct}var __rest$H=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};const DEFAULT_OFFSET$1=8,DEFAULT_DURATION$1=3,Wrapper$1=ht=>{let{children:Et,prefixCls:yt}=ht;const Ct=useCSSVarCls(yt),[$t,At,Bt]=useStyle$q(yt,Ct);return $t(reactExports.createElement(NotificationProvider,{classNames:{list:cls(At,Bt,Ct)}},Et))},renderNotifications$1=(ht,Et)=>{let{prefixCls:yt,key:Ct}=Et;return reactExports.createElement(Wrapper$1,{prefixCls:yt,key:Ct},ht)},Holder$1=reactExports.forwardRef((ht,Et)=>{const{top:yt,prefixCls:Ct,getContainer:$t,maxCount:At,duration:Bt=DEFAULT_DURATION$1,rtl:Dt,transitionName:Ft,onAllRemoved:kt}=ht,{getPrefixCls:Mt,getPopupContainer:Nt,message:jt,direction:zt}=reactExports.useContext(ConfigContext$1),Vt=Ct||Mt("message"),Kt=()=>({left:"50%",transform:"translateX(-50%)",top:yt??DEFAULT_OFFSET$1}),Xt=()=>cls({[`${Vt}-rtl`]:Dt??zt==="rtl"}),Qt=()=>getMotion$3(Vt,Ft),Zt=reactExports.createElement("span",{className:`${Vt}-close-x`},reactExports.createElement(RefIcon$r,{className:`${Vt}-close-icon`})),[dr,cr]=useNotification$1({prefixCls:Vt,style:Kt,className:Xt,motion:Qt,closable:!1,closeIcon:Zt,duration:Bt,getContainer:()=>($t==null?void 0:$t())||(Nt==null?void 0:Nt())||document.body,maxCount:At,onAllRemoved:kt,renderNotifications:renderNotifications$1});return reactExports.useImperativeHandle(Et,()=>Object.assign(Object.assign({},dr),{prefixCls:Vt,message:jt})),cr});let keyIndex=0;function useInternalMessage(ht){const Et=reactExports.useRef(null);return devUseWarning(),[reactExports.useMemo(()=>{const Ct=Ft=>{var kt;(kt=Et.current)===null||kt===void 0||kt.close(Ft)},$t=Ft=>{if(!Et.current){const pr=()=>{};return pr.then=()=>{},pr}const{open:kt,prefixCls:Mt,message:Nt}=Et.current,jt=`${Mt}-notice`,{content:zt,icon:Vt,type:Kt,key:Xt,className:Qt,style:Zt,onClose:dr}=Ft,cr=__rest$H(Ft,["content","icon","type","key","className","style","onClose"]);let Er=Xt;return Er==null&&(keyIndex+=1,Er=`antd-message-${keyIndex}`),wrapPromiseFn(pr=>(kt(Object.assign(Object.assign({},cr),{key:Er,content:reactExports.createElement(PureContent$1,{prefixCls:Mt,type:Kt,icon:Vt},zt),placement:"top",className:cls(Kt&&`${jt}-${Kt}`,Qt,Nt==null?void 0:Nt.className),style:Object.assign(Object.assign({},Nt==null?void 0:Nt.style),Zt),onClose:()=>{dr==null||dr(),pr()}})),()=>{Ct(Er)}))},Bt={open:$t,destroy:Ft=>{var kt;Ft!==void 0?Ct(Ft):(kt=Et.current)===null||kt===void 0||kt.destroy()}};return["info","success","warning","error","loading"].forEach(Ft=>{const kt=(Mt,Nt,jt)=>{let zt;Mt&&typeof Mt=="object"&&"content"in Mt?zt=Mt:zt={content:Mt};let Vt,Kt;typeof Nt=="function"?Kt=Nt:(Vt=Nt,Kt=jt);const Xt=Object.assign(Object.assign({onClose:Kt,duration:Vt},zt),{type:Ft});return $t(Xt)};Bt[Ft]=kt}),Bt},[]),reactExports.createElement(Holder$1,Object.assign({key:"message-holder"},ht,{ref:Et}))]}function useMessage(ht){return useInternalMessage(ht)}function usePatchElement(){const[ht,Et]=reactExports.useState([]),yt=reactExports.useCallback(Ct=>(Et($t=>[].concat(_toConsumableArray($t),[Ct])),()=>{Et($t=>$t.filter(At=>At!==Ct))}),[]);return[ht,yt]}function _regeneratorRuntime(){_regeneratorRuntime=function(){return Et};var ht,Et={},yt=Object.prototype,Ct=yt.hasOwnProperty,$t=Object.defineProperty||function(Yt,er,lr){Yt[er]=lr.value},At=typeof Symbol=="function"?Symbol:{},Bt=At.iterator||"@@iterator",Dt=At.asyncIterator||"@@asyncIterator",Ft=At.toStringTag||"@@toStringTag";function kt(Yt,er,lr){return Object.defineProperty(Yt,er,{value:lr,enumerable:!0,configurable:!0,writable:!0}),Yt[er]}try{kt({},"")}catch{kt=function(lr,Jt,Ut){return lr[Jt]=Ut}}function Mt(Yt,er,lr,Jt){var Ut=er&&er.prototype instanceof Qt?er:Qt,ir=Object.create(Ut.prototype),Cr=new Wt(Jt||[]);return $t(ir,"_invoke",{value:xr(Yt,lr,Cr)}),ir}function Nt(Yt,er,lr){try{return{type:"normal",arg:Yt.call(er,lr)}}catch(Jt){return{type:"throw",arg:Jt}}}Et.wrap=Mt;var jt="suspendedStart",zt="suspendedYield",Vt="executing",Kt="completed",Xt={};function Qt(){}function Zt(){}function dr(){}var cr={};kt(cr,Bt,function(){return this});var Er=Object.getPrototypeOf,pr=Er&&Er(Er(Gt([])));pr&&pr!==yt&&Ct.call(pr,Bt)&&(cr=pr);var gr=dr.prototype=Qt.prototype=Object.create(cr);function vr(Yt){["next","throw","return"].forEach(function(er){kt(Yt,er,function(lr){return this._invoke(er,lr)})})}function yr(Yt,er){function lr(Ut,ir,Cr,_r){var $r=Nt(Yt[Ut],Yt,ir);if($r.type!=="throw"){var Tr=$r.arg,Dr=Tr.value;return Dr&&_typeof$1(Dr)=="object"&&Ct.call(Dr,"__await")?er.resolve(Dr.__await).then(function(Ar){lr("next",Ar,Cr,_r)},function(Ar){lr("throw",Ar,Cr,_r)}):er.resolve(Dr).then(function(Ar){Tr.value=Ar,Cr(Tr)},function(Ar){return lr("throw",Ar,Cr,_r)})}_r($r.arg)}var Jt;$t(this,"_invoke",{value:function(ir,Cr){function _r(){return new er(function($r,Tr){lr(ir,Cr,$r,Tr)})}return Jt=Jt?Jt.then(_r,_r):_r()}})}function xr(Yt,er,lr){var Jt=jt;return function(Ut,ir){if(Jt===Vt)throw Error("Generator is already running");if(Jt===Kt){if(Ut==="throw")throw ir;return{value:ht,done:!0}}for(lr.method=Ut,lr.arg=ir;;){var Cr=lr.delegate;if(Cr){var _r=rr(Cr,lr);if(_r){if(_r===Xt)continue;return _r}}if(lr.method==="next")lr.sent=lr._sent=lr.arg;else if(lr.method==="throw"){if(Jt===jt)throw Jt=Kt,lr.arg;lr.dispatchException(lr.arg)}else lr.method==="return"&&lr.abrupt("return",lr.arg);Jt=Vt;var $r=Nt(Yt,er,lr);if($r.type==="normal"){if(Jt=lr.done?Kt:zt,$r.arg===Xt)continue;return{value:$r.arg,done:lr.done}}$r.type==="throw"&&(Jt=Kt,lr.method="throw",lr.arg=$r.arg)}}}function rr(Yt,er){var lr=er.method,Jt=Yt.iterator[lr];if(Jt===ht)return er.delegate=null,lr==="throw"&&Yt.iterator.return&&(er.method="return",er.arg=ht,rr(Yt,er),er.method==="throw")||lr!=="return"&&(er.method="throw",er.arg=new TypeError("The iterator does not provide a '"+lr+"' method")),Xt;var Ut=Nt(Jt,Yt.iterator,er.arg);if(Ut.type==="throw")return er.method="throw",er.arg=Ut.arg,er.delegate=null,Xt;var ir=Ut.arg;return ir?ir.done?(er[Yt.resultName]=ir.value,er.next=Yt.nextLoc,er.method!=="return"&&(er.method="next",er.arg=ht),er.delegate=null,Xt):ir:(er.method="throw",er.arg=new TypeError("iterator result is not an object"),er.delegate=null,Xt)}function Lt(Yt){var er={tryLoc:Yt[0]};1 in Yt&&(er.catchLoc=Yt[1]),2 in Yt&&(er.finallyLoc=Yt[2],er.afterLoc=Yt[3]),this.tryEntries.push(er)}function Ht(Yt){var er=Yt.completion||{};er.type="normal",delete er.arg,Yt.completion=er}function Wt(Yt){this.tryEntries=[{tryLoc:"root"}],Yt.forEach(Lt,this),this.reset(!0)}function Gt(Yt){if(Yt||Yt===""){var er=Yt[Bt];if(er)return er.call(Yt);if(typeof Yt.next=="function")return Yt;if(!isNaN(Yt.length)){var lr=-1,Jt=function Ut(){for(;++lr<Yt.length;)if(Ct.call(Yt,lr))return Ut.value=Yt[lr],Ut.done=!1,Ut;return Ut.value=ht,Ut.done=!0,Ut};return Jt.next=Jt}}throw new TypeError(_typeof$1(Yt)+" is not iterable")}return Zt.prototype=dr,$t(gr,"constructor",{value:dr,configurable:!0}),$t(dr,"constructor",{value:Zt,configurable:!0}),Zt.displayName=kt(dr,Ft,"GeneratorFunction"),Et.isGeneratorFunction=function(Yt){var er=typeof Yt=="function"&&Yt.constructor;return!!er&&(er===Zt||(er.displayName||er.name)==="GeneratorFunction")},Et.mark=function(Yt){return Object.setPrototypeOf?Object.setPrototypeOf(Yt,dr):(Yt.__proto__=dr,kt(Yt,Ft,"GeneratorFunction")),Yt.prototype=Object.create(gr),Yt},Et.awrap=function(Yt){return{__await:Yt}},vr(yr.prototype),kt(yr.prototype,Dt,function(){return this}),Et.AsyncIterator=yr,Et.async=function(Yt,er,lr,Jt,Ut){Ut===void 0&&(Ut=Promise);var ir=new yr(Mt(Yt,er,lr,Jt),Ut);return Et.isGeneratorFunction(er)?ir:ir.next().then(function(Cr){return Cr.done?Cr.value:ir.next()})},vr(gr),kt(gr,Ft,"Generator"),kt(gr,Bt,function(){return this}),kt(gr,"toString",function(){return"[object Generator]"}),Et.keys=function(Yt){var er=Object(Yt),lr=[];for(var Jt in er)lr.push(Jt);return lr.reverse(),function Ut(){for(;lr.length;){var ir=lr.pop();if(ir in er)return Ut.value=ir,Ut.done=!1,Ut}return Ut.done=!0,Ut}},Et.values=Gt,Wt.prototype={constructor:Wt,reset:function(er){if(this.prev=0,this.next=0,this.sent=this._sent=ht,this.done=!1,this.delegate=null,this.method="next",this.arg=ht,this.tryEntries.forEach(Ht),!er)for(var lr in this)lr.charAt(0)==="t"&&Ct.call(this,lr)&&!isNaN(+lr.slice(1))&&(this[lr]=ht)},stop:function(){this.done=!0;var er=this.tryEntries[0].completion;if(er.type==="throw")throw er.arg;return this.rval},dispatchException:function(er){if(this.done)throw er;var lr=this;function Jt(Tr,Dr){return Cr.type="throw",Cr.arg=er,lr.next=Tr,Dr&&(lr.method="next",lr.arg=ht),!!Dr}for(var Ut=this.tryEntries.length-1;Ut>=0;--Ut){var ir=this.tryEntries[Ut],Cr=ir.completion;if(ir.tryLoc==="root")return Jt("end");if(ir.tryLoc<=this.prev){var _r=Ct.call(ir,"catchLoc"),$r=Ct.call(ir,"finallyLoc");if(_r&&$r){if(this.prev<ir.catchLoc)return Jt(ir.catchLoc,!0);if(this.prev<ir.finallyLoc)return Jt(ir.finallyLoc)}else if(_r){if(this.prev<ir.catchLoc)return Jt(ir.catchLoc,!0)}else{if(!$r)throw Error("try statement without catch or finally");if(this.prev<ir.finallyLoc)return Jt(ir.finallyLoc)}}}},abrupt:function(er,lr){for(var Jt=this.tryEntries.length-1;Jt>=0;--Jt){var Ut=this.tryEntries[Jt];if(Ut.tryLoc<=this.prev&&Ct.call(Ut,"finallyLoc")&&this.prev<Ut.finallyLoc){var ir=Ut;break}}ir&&(er==="break"||er==="continue")&&ir.tryLoc<=lr&&lr<=ir.finallyLoc&&(ir=null);var Cr=ir?ir.completion:{};return Cr.type=er,Cr.arg=lr,ir?(this.method="next",this.next=ir.finallyLoc,Xt):this.complete(Cr)},complete:function(er,lr){if(er.type==="throw")throw er.arg;return er.type==="break"||er.type==="continue"?this.next=er.arg:er.type==="return"?(this.rval=this.arg=er.arg,this.method="return",this.next="end"):er.type==="normal"&&lr&&(this.next=lr),Xt},finish:function(er){for(var lr=this.tryEntries.length-1;lr>=0;--lr){var Jt=this.tryEntries[lr];if(Jt.finallyLoc===er)return this.complete(Jt.completion,Jt.afterLoc),Ht(Jt),Xt}},catch:function(er){for(var lr=this.tryEntries.length-1;lr>=0;--lr){var Jt=this.tryEntries[lr];if(Jt.tryLoc===er){var Ut=Jt.completion;if(Ut.type==="throw"){var ir=Ut.arg;Ht(Jt)}return ir}}throw Error("illegal catch attempt")},delegateYield:function(er,lr,Jt){return this.delegate={iterator:Gt(er),resultName:lr,nextLoc:Jt},this.method==="next"&&(this.arg=ht),Xt}},Et}function asyncGeneratorStep(ht,Et,yt,Ct,$t,At,Bt){try{var Dt=ht[At](Bt),Ft=Dt.value}catch(kt){return void yt(kt)}Dt.done?Et(Ft):Promise.resolve(Ft).then(Ct,$t)}function _asyncToGenerator(ht){return function(){var Et=this,yt=arguments;return new Promise(function(Ct,$t){var At=ht.apply(Et,yt);function Bt(Ft){asyncGeneratorStep(At,Ct,$t,Bt,Dt,"next",Ft)}function Dt(Ft){asyncGeneratorStep(At,Ct,$t,Bt,Dt,"throw",Ft)}Bt(void 0)})}}var fullClone=_objectSpread2({},ReactDOM$1),version$2=fullClone.version,reactRender=fullClone.render,unmountComponentAtNode=fullClone.unmountComponentAtNode,createRoot;try{var mainVersion=Number((version$2||"").split(".")[0]);mainVersion>=18&&(createRoot=fullClone.createRoot)}catch(ht){}function toggleWarning(ht){var Et=fullClone.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Et&&_typeof$1(Et)==="object"&&(Et.usingClientEntryPoint=ht)}var MARK="__rc_react_root__";function modernRender(ht,Et){toggleWarning(!0);var yt=Et[MARK]||createRoot(Et);toggleWarning(!1),yt.render(ht),Et[MARK]=yt}function legacyRender(ht,Et){reactRender(ht,Et)}function render(ht,Et){if(createRoot){modernRender(ht,Et);return}legacyRender(ht,Et)}function modernUnmount(ht){return _modernUnmount.apply(this,arguments)}function _modernUnmount(){return _modernUnmount=_asyncToGenerator(_regeneratorRuntime().mark(function ht(Et){return _regeneratorRuntime().wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:return Ct.abrupt("return",Promise.resolve().then(function(){var $t;($t=Et[MARK])===null||$t===void 0||$t.unmount(),delete Et[MARK]}));case 1:case"end":return Ct.stop()}},ht)})),_modernUnmount.apply(this,arguments)}function legacyUnmount(ht){unmountComponentAtNode(ht)}function unmount(ht){return _unmount.apply(this,arguments)}function _unmount(){return _unmount=_asyncToGenerator(_regeneratorRuntime().mark(function ht(Et){return _regeneratorRuntime().wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:if(createRoot===void 0){Ct.next=2;break}return Ct.abrupt("return",modernUnmount(Et));case 2:legacyUnmount(Et);case 3:case"end":return Ct.stop()}},ht)})),_unmount.apply(this,arguments)}const getCollapsedHeight=()=>({height:0,opacity:0}),getRealHeight=ht=>{const{scrollHeight:Et}=ht;return{height:Et,opacity:1}},getCurrentHeight=ht=>({height:ht?ht.offsetHeight:0}),skipOpacityTransition=(ht,Et)=>(Et==null?void 0:Et.deadline)===!0||Et.propertyName==="height",initCollapseMotion=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:getCollapsedHeight,onEnterStart:getCollapsedHeight,onAppearActive:getRealHeight,onEnterActive:getRealHeight,onLeaveStart:getCurrentHeight,onLeaveActive:getCollapsedHeight,onAppearEnd:skipOpacityTransition,onEnterEnd:skipOpacityTransition,onLeaveEnd:skipOpacityTransition,motionDeadline:500}},getTransitionName=(ht,Et,yt)=>yt!==void 0?yt:`${ht}-${Et}`,isVisible=function(ht){if(!ht)return!1;if(ht instanceof Element){if(ht.offsetParent)return!0;if(ht.getBBox){var Et=ht.getBBox(),yt=Et.width,Ct=Et.height;if(yt||Ct)return!0}if(ht.getBoundingClientRect){var $t=ht.getBoundingClientRect(),At=$t.width,Bt=$t.height;if(At||Bt)return!0}}return!1},genWaveStyle=ht=>{const{componentCls:Et,colorPrimary:yt}=ht;return{[Et]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${yt})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${ht.motionEaseOutCirc}`,`opacity 2s ${ht.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${ht.motionDurationSlow} ${ht.motionEaseInOut}`,`opacity ${ht.motionDurationSlow} ${ht.motionEaseInOut}`].join(",")}}}}},useStyle$p=genComponentStyleHook("Wave",ht=>[genWaveStyle(ht)]),TARGET_CLS=`${defaultPrefixCls}-wave-target`;function isNotGrey(ht){const Et=(ht||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return Et&&Et[1]&&Et[2]&&Et[3]?!(Et[1]===Et[2]&&Et[2]===Et[3]):!0}function isValidWaveColor(ht){return ht&&ht!=="#fff"&&ht!=="#ffffff"&&ht!=="rgb(255, 255, 255)"&&ht!=="rgba(255, 255, 255, 1)"&&isNotGrey(ht)&&!/rgba\((?:\d*, ){3}0\)/.test(ht)&&ht!=="transparent"}function getTargetWaveColor(ht){const{borderTopColor:Et,borderColor:yt,backgroundColor:Ct}=getComputedStyle(ht);return isValidWaveColor(Et)?Et:isValidWaveColor(yt)?yt:isValidWaveColor(Ct)?Ct:null}function validateNum(ht){return Number.isNaN(ht)?0:ht}const WaveEffect=ht=>{const{className:Et,target:yt,component:Ct}=ht,$t=reactExports.useRef(null),[At,Bt]=reactExports.useState(null),[Dt,Ft]=reactExports.useState([]),[kt,Mt]=reactExports.useState(0),[Nt,jt]=reactExports.useState(0),[zt,Vt]=reactExports.useState(0),[Kt,Xt]=reactExports.useState(0),[Qt,Zt]=reactExports.useState(!1),dr={left:kt,top:Nt,width:zt,height:Kt,borderRadius:Dt.map(pr=>`${pr}px`).join(" ")};At&&(dr["--wave-color"]=At);function cr(){const pr=getComputedStyle(yt);Bt(getTargetWaveColor(yt));const gr=pr.position==="static",{borderLeftWidth:vr,borderTopWidth:yr}=pr;Mt(gr?yt.offsetLeft:validateNum(-parseFloat(vr))),jt(gr?yt.offsetTop:validateNum(-parseFloat(yr))),Vt(yt.offsetWidth),Xt(yt.offsetHeight);const{borderTopLeftRadius:xr,borderTopRightRadius:rr,borderBottomLeftRadius:Lt,borderBottomRightRadius:Ht}=pr;Ft([xr,rr,Ht,Lt].map(Wt=>validateNum(parseFloat(Wt))))}if(reactExports.useEffect(()=>{if(yt){const pr=wrapperRaf(()=>{cr(),Zt(!0)});let gr;return typeof ResizeObserver<"u"&&(gr=new ResizeObserver(cr),gr.observe(yt)),()=>{wrapperRaf.cancel(pr),gr==null||gr.disconnect()}}},[]),!Qt)return null;const Er=(Ct==="Checkbox"||Ct==="Radio")&&(yt==null?void 0:yt.classList.contains(TARGET_CLS));return reactExports.createElement(CSSMotion,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(pr,gr)=>{var vr;if(gr.deadline||gr.propertyName==="opacity"){const yr=(vr=$t.current)===null||vr===void 0?void 0:vr.parentElement;unmount(yr).then(()=>{yr==null||yr.remove()})}return!1}},(pr,gr)=>{let{className:vr}=pr;return reactExports.createElement("div",{ref:composeRef($t,gr),className:cls(Et,vr,{"wave-quick":Er}),style:dr})})},showWaveEffect=(ht,Et)=>{var yt;const{component:Ct}=Et;if(Ct==="Checkbox"&&!(!((yt=ht.querySelector("input"))===null||yt===void 0)&&yt.checked))return;const $t=document.createElement("div");$t.style.position="absolute",$t.style.left="0px",$t.style.top="0px",ht==null||ht.insertBefore($t,ht==null?void 0:ht.firstChild),render(reactExports.createElement(WaveEffect,Object.assign({},Et,{target:ht})),$t)},useWave=(ht,Et,yt)=>{const{wave:Ct}=reactExports.useContext(ConfigContext$1),[,$t,At]=useToken$1(),Bt=useEvent(kt=>{const Mt=ht.current;if(Ct!=null&&Ct.disabled||!Mt)return;const Nt=Mt.querySelector(`.${TARGET_CLS}`)||Mt,{showEffect:jt}=Ct||{};(jt||showWaveEffect)(Nt,{className:Et,token:$t,component:yt,event:kt,hashId:At})}),Dt=reactExports.useRef();return kt=>{wrapperRaf.cancel(Dt.current),Dt.current=wrapperRaf(()=>{Bt(kt)})}},Wave=ht=>{const{children:Et,disabled:yt,component:Ct}=ht,{getPrefixCls:$t}=reactExports.useContext(ConfigContext$1),At=reactExports.useRef(null),Bt=$t("wave"),[,Dt]=useStyle$p(Bt),Ft=useWave(At,cls(Bt,Dt),Ct);if(React$8.useEffect(()=>{const Mt=At.current;if(!Mt||Mt.nodeType!==1||yt)return;const Nt=jt=>{!isVisible(jt.target)||!Mt.getAttribute||Mt.getAttribute("disabled")||Mt.disabled||Mt.className.includes("disabled")||Mt.className.includes("-leave")||Ft(jt)};return Mt.addEventListener("click",Nt,!0),()=>{Mt.removeEventListener("click",Nt,!0)}},[yt]),!React$8.isValidElement(Et))return Et??null;const kt=supportRef(Et)?composeRef(Et.ref,At):At;return cloneElement(Et,{ref:kt})},useSize=ht=>{const Et=React$8.useContext(SizeContext);return React$8.useMemo(()=>ht?typeof ht=="string"?ht??Et:ht instanceof Function?ht(Et):Et:Et,[ht,Et])},genSpaceCompactStyle=ht=>{const{componentCls:Et}=ht;return{[Et]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},genSpaceStyle=ht=>{const{componentCls:Et,antCls:yt}=ht;return{[Et]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${Et}-item:empty`]:{display:"none"},[`${Et}-item > ${yt}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},genSpaceGapStyle=ht=>{const{componentCls:Et}=ht;return{[Et]:{"&-gap-row-small":{rowGap:ht.spaceGapSmallSize},"&-gap-row-middle":{rowGap:ht.spaceGapMiddleSize},"&-gap-row-large":{rowGap:ht.spaceGapLargeSize},"&-gap-col-small":{columnGap:ht.spaceGapSmallSize},"&-gap-col-middle":{columnGap:ht.spaceGapMiddleSize},"&-gap-col-large":{columnGap:ht.spaceGapLargeSize}}}},useStyle$o=genStyleHooks("Space",ht=>{const Et=merge$2(ht,{spaceGapSmallSize:ht.paddingXS,spaceGapMiddleSize:ht.padding,spaceGapLargeSize:ht.paddingLG});return[genSpaceStyle(Et),genSpaceGapStyle(Et),genSpaceCompactStyle(Et)]},()=>({}),{resetStyle:!1});var __rest$G=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};const SpaceCompactItemContext=reactExports.createContext(null),useCompactItemContext=(ht,Et)=>{const yt=reactExports.useContext(SpaceCompactItemContext),Ct=reactExports.useMemo(()=>{if(!yt)return"";const{compactDirection:$t,isFirstItem:At,isLastItem:Bt}=yt,Dt=$t==="vertical"?"-vertical-":"-";return cls(`${ht}-compact${Dt}item`,{[`${ht}-compact${Dt}first-item`]:At,[`${ht}-compact${Dt}last-item`]:Bt,[`${ht}-compact${Dt}item-rtl`]:Et==="rtl"})},[ht,Et,yt]);return{compactSize:yt==null?void 0:yt.compactSize,compactDirection:yt==null?void 0:yt.compactDirection,compactItemClassnames:Ct}},NoCompactStyle=ht=>{let{children:Et}=ht;return reactExports.createElement(SpaceCompactItemContext.Provider,{value:null},Et)},CompactItem=ht=>{var{children:Et}=ht,yt=__rest$G(ht,["children"]);return reactExports.createElement(SpaceCompactItemContext.Provider,{value:yt},Et)},Compact=ht=>{const{getPrefixCls:Et,direction:yt}=reactExports.useContext(ConfigContext$1),{size:Ct,direction:$t,block:At,prefixCls:Bt,className:Dt,rootClassName:Ft,children:kt}=ht,Mt=__rest$G(ht,["size","direction","block","prefixCls","className","rootClassName","children"]),Nt=useSize(dr=>Ct??dr),jt=Et("space-compact",Bt),[zt,Vt]=useStyle$o(jt),Kt=cls(jt,Vt,{[`${jt}-rtl`]:yt==="rtl",[`${jt}-block`]:At,[`${jt}-vertical`]:$t==="vertical"},Dt,Ft),Xt=reactExports.useContext(SpaceCompactItemContext),Qt=toArray$5(kt),Zt=reactExports.useMemo(()=>Qt.map((dr,cr)=>{const Er=(dr==null?void 0:dr.key)||`${jt}-item-${cr}`;return reactExports.createElement(CompactItem,{key:Er,compactSize:Nt,compactDirection:$t,isFirstItem:cr===0&&(!Xt||(Xt==null?void 0:Xt.isFirstItem)),isLastItem:cr===Qt.length-1&&(!Xt||(Xt==null?void 0:Xt.isLastItem))},dr)}),[Ct,Qt,Xt]);return Qt.length===0?null:zt(reactExports.createElement("div",Object.assign({className:Kt},Mt),Zt))};var __rest$F=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};const GroupSizeContext=reactExports.createContext(void 0),ButtonGroup=ht=>{const{getPrefixCls:Et,direction:yt}=reactExports.useContext(ConfigContext$1),{prefixCls:Ct,size:$t,className:At}=ht,Bt=__rest$F(ht,["prefixCls","size","className"]),Dt=Et("btn-group",Ct),[,,Ft]=useToken$1();let kt="";switch($t){case"large":kt="lg";break;case"small":kt="sm";break}const Mt=cls(Dt,{[`${Dt}-${kt}`]:kt,[`${Dt}-rtl`]:yt==="rtl"},At,Ft);return reactExports.createElement(GroupSizeContext.Provider,{value:$t},reactExports.createElement("div",Object.assign({},Bt,{className:Mt})))},rxTwoCNChar=/^[\u4e00-\u9fa5]{2}$/,isTwoCNChar=rxTwoCNChar.test.bind(rxTwoCNChar);function convertLegacyProps(ht){return ht==="danger"?{danger:!0}:{type:ht}}function isString$3(ht){return typeof ht=="string"}function isUnBorderedButtonType(ht){return ht==="text"||ht==="link"}function splitCNCharsBySpace(ht,Et){if(ht==null)return;const yt=Et?" ":"";return typeof ht!="string"&&typeof ht!="number"&&isString$3(ht.type)&&isTwoCNChar(ht.props.children)?cloneElement(ht,{children:ht.props.children.split("").join(yt)}):isString$3(ht)?isTwoCNChar(ht)?React$8.createElement("span",null,ht.split("").join(yt)):React$8.createElement("span",null,ht):isFragment(ht)?React$8.createElement("span",null,ht):ht}function spaceChildren(ht,Et){let yt=!1;const Ct=[];return React$8.Children.forEach(ht,$t=>{const At=typeof $t,Bt=At==="string"||At==="number";if(yt&&Bt){const Dt=Ct.length-1,Ft=Ct[Dt];Ct[Dt]=`${Ft}${$t}`}else Ct.push($t);yt=Bt}),React$8.Children.map(Ct,$t=>splitCNCharsBySpace($t,Et))}const IconWrapper=reactExports.forwardRef((ht,Et)=>{const{className:yt,style:Ct,children:$t,prefixCls:At}=ht,Bt=cls(`${At}-icon`,yt);return React$8.createElement("span",{ref:Et,className:Bt,style:Ct},$t)}),InnerLoadingIcon=reactExports.forwardRef((ht,Et)=>{const{prefixCls:yt,className:Ct,style:$t,iconClassName:At}=ht,Bt=cls(`${yt}-loading-icon`,Ct);return React$8.createElement(IconWrapper,{prefixCls:yt,className:Bt,style:$t,ref:Et},React$8.createElement(RefIcon$o,{className:At}))}),getCollapsedWidth=()=>({width:0,opacity:0,transform:"scale(0)"}),getRealWidth=ht=>({width:ht.scrollWidth,opacity:1,transform:"scale(1)"}),LoadingIcon=ht=>{const{prefixCls:Et,loading:yt,existIcon:Ct,className:$t,style:At}=ht,Bt=!!yt;return Ct?React$8.createElement(InnerLoadingIcon,{prefixCls:Et,className:$t,style:At}):React$8.createElement(CSSMotion,{visible:Bt,motionName:`${Et}-loading-icon-motion`,motionLeave:Bt,removeOnLeave:!0,onAppearStart:getCollapsedWidth,onAppearActive:getRealWidth,onEnterStart:getCollapsedWidth,onEnterActive:getRealWidth,onLeaveStart:getRealWidth,onLeaveActive:getCollapsedWidth},(Dt,Ft)=>{let{className:kt,style:Mt}=Dt;return React$8.createElement(InnerLoadingIcon,{prefixCls:Et,className:$t,style:Object.assign(Object.assign({},At),Mt),ref:Ft,iconClassName:kt})})},genButtonBorderStyle=(ht,Et)=>({[`> span, > ${ht}`]:{"&:not(:last-child)":{[`&, & > ${ht}`]:{"&:not(:disabled)":{borderInlineEndColor:Et}}},"&:not(:first-child)":{[`&, & > ${ht}`]:{"&:not(:disabled)":{borderInlineStartColor:Et}}}}}),genGroupStyle$1=ht=>{const{componentCls:Et,fontSize:yt,lineWidth:Ct,groupBorderColor:$t,colorErrorHover:At}=ht;return{[`${Et}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${Et}`]:{"&:not(:last-child)":{[`&, & > ${Et}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:ht.calc(Ct).mul(-1).equal(),[`&, & > ${Et}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[Et]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${Et}-icon-only`]:{fontSize:yt}},genButtonBorderStyle(`${Et}-primary`,$t),genButtonBorderStyle(`${Et}-danger`,At)]}},prepareToken$3=ht=>{const{paddingInline:Et,onlyIconSize:yt,paddingBlock:Ct}=ht;return merge$2(ht,{buttonPaddingHorizontal:Et,buttonPaddingVertical:Ct,buttonIconOnlyFontSize:yt})},prepareComponentToken$k=ht=>{var Et,yt,Ct,$t,At,Bt;const Dt=(Et=ht.contentFontSize)!==null&&Et!==void 0?Et:ht.fontSize,Ft=(yt=ht.contentFontSizeSM)!==null&&yt!==void 0?yt:ht.fontSize,kt=(Ct=ht.contentFontSizeLG)!==null&&Ct!==void 0?Ct:ht.fontSizeLG,Mt=($t=ht.contentLineHeight)!==null&&$t!==void 0?$t:getLineHeight(Dt),Nt=(At=ht.contentLineHeightSM)!==null&&At!==void 0?At:getLineHeight(Ft),jt=(Bt=ht.contentLineHeightLG)!==null&&Bt!==void 0?Bt:getLineHeight(kt);return{fontWeight:400,defaultShadow:`0 ${ht.controlOutlineWidth}px 0 ${ht.controlTmpOutline}`,primaryShadow:`0 ${ht.controlOutlineWidth}px 0 ${ht.controlOutline}`,dangerShadow:`0 ${ht.controlOutlineWidth}px 0 ${ht.colorErrorOutline}`,primaryColor:ht.colorTextLightSolid,dangerColor:ht.colorTextLightSolid,borderColorDisabled:ht.colorBorder,defaultGhostColor:ht.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:ht.colorBgContainer,paddingInline:ht.paddingContentHorizontal-ht.lineWidth,paddingInlineLG:ht.paddingContentHorizontal-ht.lineWidth,paddingInlineSM:8-ht.lineWidth,onlyIconSize:ht.fontSizeLG,onlyIconSizeSM:ht.fontSizeLG-2,onlyIconSizeLG:ht.fontSizeLG+2,groupBorderColor:ht.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:ht.colorBgTextHover,defaultColor:ht.colorText,defaultBg:ht.colorBgContainer,defaultBorderColor:ht.colorBorder,defaultBorderColorDisabled:ht.colorBorder,defaultHoverBg:ht.colorBgContainer,defaultHoverColor:ht.colorPrimaryHover,defaultHoverBorderColor:ht.colorPrimaryHover,defaultActiveBg:ht.colorBgContainer,defaultActiveColor:ht.colorPrimaryActive,defaultActiveBorderColor:ht.colorPrimaryActive,contentFontSize:Dt,contentFontSizeSM:Ft,contentFontSizeLG:kt,contentLineHeight:Mt,contentLineHeightSM:Nt,contentLineHeightLG:jt,paddingBlock:Math.max((ht.controlHeight-Dt*Mt)/2-ht.lineWidth,0),paddingBlockSM:Math.max((ht.controlHeightSM-Ft*Nt)/2-ht.lineWidth,0),paddingBlockLG:Math.max((ht.controlHeightLG-kt*jt)/2-ht.lineWidth,0)}},genSharedButtonStyle=ht=>{const{componentCls:Et,iconCls:yt,fontWeight:Ct}=ht;return{[Et]:{outline:"none",position:"relative",display:"inline-flex",gap:ht.marginXS,alignItems:"center",justifyContent:"center",fontWeight:Ct,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${unit(ht.lineWidth)} ${ht.lineType} transparent`,cursor:"pointer",transition:`all ${ht.motionDurationMid} ${ht.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:ht.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${Et}-icon`]:{lineHeight:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},genFocusStyle(ht)),[`&${Et}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${Et}-two-chinese-chars > *:not(${yt})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},genHoverActiveButtonStyle=(ht,Et,yt)=>({[`&:not(:disabled):not(${ht}-disabled)`]:{"&:hover":Et,"&:active":yt}}),genCircleButtonStyle=ht=>({minWidth:ht.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),genRoundButtonStyle=ht=>({borderRadius:ht.controlHeight,paddingInlineStart:ht.calc(ht.controlHeight).div(2).equal(),paddingInlineEnd:ht.calc(ht.controlHeight).div(2).equal()}),genDisabledStyle$1=ht=>({cursor:"not-allowed",borderColor:ht.borderColorDisabled,color:ht.colorTextDisabled,background:ht.colorBgContainerDisabled,boxShadow:"none"}),genGhostButtonStyle=(ht,Et,yt,Ct,$t,At,Bt,Dt)=>({[`&${ht}-background-ghost`]:Object.assign(Object.assign({color:yt||void 0,background:Et,borderColor:Ct||void 0,boxShadow:"none"},genHoverActiveButtonStyle(ht,Object.assign({background:Et},Bt),Object.assign({background:Et},Dt))),{"&:disabled":{cursor:"not-allowed",color:$t||void 0,borderColor:At||void 0}})}),genSolidDisabledButtonStyle=ht=>({[`&:disabled, &${ht.componentCls}-disabled`]:Object.assign({},genDisabledStyle$1(ht))}),genSolidButtonStyle=ht=>Object.assign({},genSolidDisabledButtonStyle(ht)),genPureDisabledButtonStyle=ht=>({[`&:disabled, &${ht.componentCls}-disabled`]:{cursor:"not-allowed",color:ht.colorTextDisabled}}),genDefaultButtonStyle=ht=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},genSolidButtonStyle(ht)),{background:ht.defaultBg,borderColor:ht.defaultBorderColor,color:ht.defaultColor,boxShadow:ht.defaultShadow}),genHoverActiveButtonStyle(ht.componentCls,{color:ht.defaultHoverColor,borderColor:ht.defaultHoverBorderColor,background:ht.defaultHoverBg},{color:ht.defaultActiveColor,borderColor:ht.defaultActiveBorderColor,background:ht.defaultActiveBg})),genGhostButtonStyle(ht.componentCls,ht.ghostBg,ht.defaultGhostColor,ht.defaultGhostBorderColor,ht.colorTextDisabled,ht.colorBorder)),{[`&${ht.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:ht.colorError,borderColor:ht.colorError},genHoverActiveButtonStyle(ht.componentCls,{color:ht.colorErrorHover,borderColor:ht.colorErrorBorderHover},{color:ht.colorErrorActive,borderColor:ht.colorErrorActive})),genGhostButtonStyle(ht.componentCls,ht.ghostBg,ht.colorError,ht.colorError,ht.colorTextDisabled,ht.colorBorder)),genSolidDisabledButtonStyle(ht))}),genPrimaryButtonStyle=ht=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},genSolidButtonStyle(ht)),{color:ht.primaryColor,background:ht.colorPrimary,boxShadow:ht.primaryShadow}),genHoverActiveButtonStyle(ht.componentCls,{color:ht.colorTextLightSolid,background:ht.colorPrimaryHover},{color:ht.colorTextLightSolid,background:ht.colorPrimaryActive})),genGhostButtonStyle(ht.componentCls,ht.ghostBg,ht.colorPrimary,ht.colorPrimary,ht.colorTextDisabled,ht.colorBorder,{color:ht.colorPrimaryHover,borderColor:ht.colorPrimaryHover},{color:ht.colorPrimaryActive,borderColor:ht.colorPrimaryActive})),{[`&${ht.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:ht.colorError,boxShadow:ht.dangerShadow,color:ht.dangerColor},genHoverActiveButtonStyle(ht.componentCls,{background:ht.colorErrorHover},{background:ht.colorErrorActive})),genGhostButtonStyle(ht.componentCls,ht.ghostBg,ht.colorError,ht.colorError,ht.colorTextDisabled,ht.colorBorder,{color:ht.colorErrorHover,borderColor:ht.colorErrorHover},{color:ht.colorErrorActive,borderColor:ht.colorErrorActive})),genSolidDisabledButtonStyle(ht))}),genDashedButtonStyle=ht=>Object.assign(Object.assign({},genDefaultButtonStyle(ht)),{borderStyle:"dashed"}),genLinkButtonStyle=ht=>Object.assign(Object.assign(Object.assign({color:ht.colorLink},genHoverActiveButtonStyle(ht.componentCls,{color:ht.colorLinkHover,background:ht.linkHoverBg},{color:ht.colorLinkActive})),genPureDisabledButtonStyle(ht)),{[`&${ht.componentCls}-dangerous`]:Object.assign(Object.assign({color:ht.colorError},genHoverActiveButtonStyle(ht.componentCls,{color:ht.colorErrorHover},{color:ht.colorErrorActive})),genPureDisabledButtonStyle(ht))}),genTextButtonStyle=ht=>Object.assign(Object.assign(Object.assign({},genHoverActiveButtonStyle(ht.componentCls,{color:ht.colorText,background:ht.textHoverBg},{color:ht.colorText,background:ht.colorBgTextActive})),genPureDisabledButtonStyle(ht)),{[`&${ht.componentCls}-dangerous`]:Object.assign(Object.assign({color:ht.colorError},genPureDisabledButtonStyle(ht)),genHoverActiveButtonStyle(ht.componentCls,{color:ht.colorErrorHover,background:ht.colorErrorBg},{color:ht.colorErrorHover,background:ht.colorErrorBgActive}))}),genTypeButtonStyle=ht=>{const{componentCls:Et}=ht;return{[`${Et}-default`]:genDefaultButtonStyle(ht),[`${Et}-primary`]:genPrimaryButtonStyle(ht),[`${Et}-dashed`]:genDashedButtonStyle(ht),[`${Et}-link`]:genLinkButtonStyle(ht),[`${Et}-text`]:genTextButtonStyle(ht),[`${Et}-ghost`]:genGhostButtonStyle(ht.componentCls,ht.ghostBg,ht.colorBgContainer,ht.colorBgContainer,ht.colorTextDisabled,ht.colorBorder)}},genButtonStyle=function(ht){let Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:yt,controlHeight:Ct,fontSize:$t,lineHeight:At,borderRadius:Bt,buttonPaddingHorizontal:Dt,iconCls:Ft,buttonPaddingVertical:kt}=ht,Mt=`${yt}-icon-only`;return[{[`${Et}`]:{fontSize:$t,lineHeight:At,height:Ct,padding:`${unit(kt)} ${unit(Dt)}`,borderRadius:Bt,[`&${Mt}`]:{width:Ct,paddingInline:0,[`&${yt}-compact-item`]:{flex:"none"},[`&${yt}-round`]:{width:"auto"},[Ft]:{fontSize:ht.buttonIconOnlyFontSize}},[`&${yt}-loading`]:{opacity:ht.opacityLoading,cursor:"default"},[`${yt}-loading-icon`]:{transition:`width ${ht.motionDurationSlow} ${ht.motionEaseInOut}, opacity ${ht.motionDurationSlow} ${ht.motionEaseInOut}`}}},{[`${yt}${yt}-circle${Et}`]:genCircleButtonStyle(ht)},{[`${yt}${yt}-round${Et}`]:genRoundButtonStyle(ht)}]},genSizeBaseButtonStyle=ht=>{const Et=merge$2(ht,{fontSize:ht.contentFontSize,lineHeight:ht.contentLineHeight});return genButtonStyle(Et,ht.componentCls)},genSizeSmallButtonStyle=ht=>{const Et=merge$2(ht,{controlHeight:ht.controlHeightSM,fontSize:ht.contentFontSizeSM,lineHeight:ht.contentLineHeightSM,padding:ht.paddingXS,buttonPaddingHorizontal:ht.paddingInlineSM,buttonPaddingVertical:ht.paddingBlockSM,borderRadius:ht.borderRadiusSM,buttonIconOnlyFontSize:ht.onlyIconSizeSM});return genButtonStyle(Et,`${ht.componentCls}-sm`)},genSizeLargeButtonStyle=ht=>{const Et=merge$2(ht,{controlHeight:ht.controlHeightLG,fontSize:ht.contentFontSizeLG,lineHeight:ht.contentLineHeightLG,buttonPaddingHorizontal:ht.paddingInlineLG,buttonPaddingVertical:ht.paddingBlockLG,borderRadius:ht.borderRadiusLG,buttonIconOnlyFontSize:ht.onlyIconSizeLG});return genButtonStyle(Et,`${ht.componentCls}-lg`)},genBlockButtonStyle=ht=>{const{componentCls:Et}=ht;return{[Et]:{[`&${Et}-block`]:{width:"100%"}}}},useStyle$n=genStyleHooks("Button",ht=>{const Et=prepareToken$3(ht);return[genSharedButtonStyle(Et),genSizeBaseButtonStyle(Et),genSizeSmallButtonStyle(Et),genSizeLargeButtonStyle(Et),genBlockButtonStyle(Et),genTypeButtonStyle(Et),genGroupStyle$1(Et)]},prepareComponentToken$k,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function compactItemBorder(ht,Et,yt){const{focusElCls:Ct,focus:$t,borderElCls:At}=yt,Bt=At?"> *":"",Dt=["hover",$t?"focus":null,"active"].filter(Boolean).map(Ft=>`&:${Ft} ${Bt}`).join(",");return{[`&-item:not(${Et}-last-item)`]:{marginInlineEnd:ht.calc(ht.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[Dt]:{zIndex:2}},Ct?{[`&${Ct}`]:{zIndex:2}}:{}),{[`&[disabled] ${Bt}`]:{zIndex:0}})}}function compactItemBorderRadius(ht,Et,yt){const{borderElCls:Ct}=yt,$t=Ct?`> ${Ct}`:"";return{[`&-item:not(${Et}-first-item):not(${Et}-last-item) ${$t}`]:{borderRadius:0},[`&-item:not(${Et}-last-item)${Et}-first-item`]:{[`& ${$t}, &${ht}-sm ${$t}, &${ht}-lg ${$t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${Et}-first-item)${Et}-last-item`]:{[`& ${$t}, &${ht}-sm ${$t}, &${ht}-lg ${$t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function genCompactItemStyle(ht){let Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:yt}=ht,Ct=`${yt}-compact`;return{[Ct]:Object.assign(Object.assign({},compactItemBorder(ht,Ct,Et)),compactItemBorderRadius(yt,Ct,Et))}}function compactItemVerticalBorder(ht,Et){return{[`&-item:not(${Et}-last-item)`]:{marginBottom:ht.calc(ht.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function compactItemBorderVerticalRadius(ht,Et){return{[`&-item:not(${Et}-first-item):not(${Et}-last-item)`]:{borderRadius:0},[`&-item${Et}-first-item:not(${Et}-last-item)`]:{[`&, &${ht}-sm, &${ht}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${Et}-last-item:not(${Et}-first-item)`]:{[`&, &${ht}-sm, &${ht}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function genCompactItemVerticalStyle(ht){const Et=`${ht.componentCls}-compact-vertical`;return{[Et]:Object.assign(Object.assign({},compactItemVerticalBorder(ht,Et)),compactItemBorderVerticalRadius(ht.componentCls,Et))}}const genButtonCompactStyle=ht=>{const{componentCls:Et,calc:yt}=ht;return{[Et]:{[`&-compact-item${Et}-primary`]:{[`&:not([disabled]) + ${Et}-compact-item${Et}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:yt(ht.lineWidth).mul(-1).equal(),insetInlineStart:yt(ht.lineWidth).mul(-1).equal(),display:"inline-block",width:ht.lineWidth,height:`calc(100% + ${unit(ht.lineWidth)} * 2)`,backgroundColor:ht.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${Et}-primary`]:{[`&:not([disabled]) + ${Et}-compact-vertical-item${Et}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:yt(ht.lineWidth).mul(-1).equal(),insetInlineStart:yt(ht.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${unit(ht.lineWidth)} * 2)`,height:ht.lineWidth,backgroundColor:ht.colorPrimaryHover,content:'""'}}}}}}},CompactCmp=genSubStyleComponent(["Button","compact"],ht=>{const Et=prepareToken$3(ht);return[genCompactItemStyle(Et),genCompactItemVerticalStyle(Et),genButtonCompactStyle(Et)]},prepareComponentToken$k);var __rest$E=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};function getLoadingConfig(ht){if(typeof ht=="object"&&ht){let Et=ht==null?void 0:ht.delay;return Et=!Number.isNaN(Et)&&typeof Et=="number"?Et:0,{loading:Et<=0,delay:Et}}return{loading:!!ht,delay:0}}const InternalCompoundedButton=React$8.forwardRef((ht,Et)=>{var yt,Ct,$t;const{loading:At=!1,prefixCls:Bt,type:Dt,danger:Ft=!1,shape:kt="default",size:Mt,styles:Nt,disabled:jt,className:zt,rootClassName:Vt,children:Kt,icon:Xt,iconPosition:Qt="start",ghost:Zt=!1,block:dr=!1,htmlType:cr="button",classNames:Er,style:pr={},autoInsertSpace:gr}=ht,vr=__rest$E(ht,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),yr=Dt||"default",{getPrefixCls:xr,direction:rr,button:Lt}=reactExports.useContext(ConfigContext$1),Ht=(yt=gr??(Lt==null?void 0:Lt.autoInsertSpace))!==null&&yt!==void 0?yt:!0,Wt=xr("btn",Bt),[Gt,Yt,er]=useStyle$n(Wt),lr=reactExports.useContext(DisabledContext),Jt=jt??lr,Ut=reactExports.useContext(GroupSizeContext),ir=reactExports.useMemo(()=>getLoadingConfig(At),[At]),[Cr,_r]=reactExports.useState(ir.loading),[$r,Tr]=reactExports.useState(!1),Ar=composeRef(Et,reactExports.createRef()),Fr=reactExports.Children.count(Kt)===1&&!Xt&&!isUnBorderedButtonType(yr);reactExports.useEffect(()=>{let Xr=null;ir.delay>0?Xr=setTimeout(()=>{Xr=null,_r(!0)},ir.delay):_r(ir.loading);function un(){Xr&&(clearTimeout(Xr),Xr=null)}return un},[ir]),reactExports.useEffect(()=>{if(!Ar||!Ar.current||!Ht)return;const Xr=Ar.current.textContent;Fr&&isTwoCNChar(Xr)?$r||Tr(!0):$r&&Tr(!1)},[Ar]);const Rr=Xr=>{const{onClick:un}=ht;if(Cr||Jt){Xr.preventDefault();return}un==null||un(Xr)},{compactSize:wr,compactItemClassnames:Sr}=useCompactItemContext(Wt,rr),Br={large:"lg",small:"sm",middle:void 0},Or=useSize(Xr=>{var un,Yr;return(Yr=(un=Mt??wr)!==null&&un!==void 0?un:Ut)!==null&&Yr!==void 0?Yr:Xr}),Pr=Or&&Br[Or]||"",Nr=Cr?"loading":Xt,Lr=omit$1(vr,["navigate"]),Wr=cls(Wt,Yt,er,{[`${Wt}-${kt}`]:kt!=="default"&&kt,[`${Wt}-${yr}`]:yr,[`${Wt}-${Pr}`]:Pr,[`${Wt}-icon-only`]:!Kt&&Kt!==0&&!!Nr,[`${Wt}-background-ghost`]:Zt&&!isUnBorderedButtonType(yr),[`${Wt}-loading`]:Cr,[`${Wt}-two-chinese-chars`]:$r&&Ht&&!Cr,[`${Wt}-block`]:dr,[`${Wt}-dangerous`]:Ft,[`${Wt}-rtl`]:rr==="rtl",[`${Wt}-icon-end`]:Qt==="end"},Sr,zt,Vt,Lt==null?void 0:Lt.className),Ur=Object.assign(Object.assign({},Lt==null?void 0:Lt.style),pr),jr=cls(Er==null?void 0:Er.icon,(Ct=Lt==null?void 0:Lt.classNames)===null||Ct===void 0?void 0:Ct.icon),Kr=Object.assign(Object.assign({},(Nt==null?void 0:Nt.icon)||{}),(($t=Lt==null?void 0:Lt.styles)===null||$t===void 0?void 0:$t.icon)||{}),qr=Xt&&!Cr?React$8.createElement(IconWrapper,{prefixCls:Wt,className:jr,style:Kr},Xt):React$8.createElement(LoadingIcon,{existIcon:!!Xt,prefixCls:Wt,loading:Cr}),Zr=Kt||Kt===0?spaceChildren(Kt,Fr&&Ht):null;if(Lr.href!==void 0)return Gt(React$8.createElement("a",Object.assign({},Lr,{className:cls(Wr,{[`${Wt}-disabled`]:Jt}),href:Jt?void 0:Lr.href,style:Ur,onClick:Rr,ref:Ar,tabIndex:Jt?-1:0}),qr,Zr));let dn=React$8.createElement("button",Object.assign({},vr,{type:cr,className:Wr,style:Ur,onClick:Rr,disabled:Jt,ref:Ar}),qr,Zr,!!Sr&&React$8.createElement(CompactCmp,{key:"compact",prefixCls:Wt}));return isUnBorderedButtonType(yr)||(dn=React$8.createElement(Wave,{component:"Button",disabled:Cr},dn)),Gt(dn)}),Button$1=InternalCompoundedButton;Button$1.Group=ButtonGroup;Button$1.__ANT_BUTTON=!0;function isThenable(ht){return!!(ht!=null&&ht.then)}const ActionButton=ht=>{const{type:Et,children:yt,prefixCls:Ct,buttonProps:$t,close:At,autoFocus:Bt,emitEvent:Dt,isSilent:Ft,quitOnNullishReturnValue:kt,actionFn:Mt}=ht,Nt=reactExports.useRef(!1),jt=reactExports.useRef(null),[zt,Vt]=useSafeState(!1),Kt=function(){At==null||At.apply(void 0,arguments)};reactExports.useEffect(()=>{let Zt=null;return Bt&&(Zt=setTimeout(()=>{var dr;(dr=jt.current)===null||dr===void 0||dr.focus()})),()=>{Zt&&clearTimeout(Zt)}},[]);const Xt=Zt=>{isThenable(Zt)&&(Vt(!0),Zt.then(function(){Vt(!1,!0),Kt.apply(void 0,arguments),Nt.current=!1},dr=>{if(Vt(!1,!0),Nt.current=!1,!(Ft!=null&&Ft()))return Promise.reject(dr)}))},Qt=Zt=>{if(Nt.current)return;if(Nt.current=!0,!Mt){Kt();return}let dr;if(Dt){if(dr=Mt(Zt),kt&&!isThenable(dr)){Nt.current=!1,Kt(Zt);return}}else if(Mt.length)dr=Mt(At),Nt.current=!1;else if(dr=Mt(),!isThenable(dr)){Kt();return}Xt(dr)};return reactExports.createElement(Button$1,Object.assign({},convertLegacyProps(Et),{onClick:Qt,loading:zt,prefixCls:Ct},$t,{ref:jt}),yt)},ModalContext=React$8.createContext({}),{Provider:ModalContextProvider}=ModalContext,ConfirmCancelBtn=()=>{const{autoFocusButton:ht,cancelButtonProps:Et,cancelTextLocale:yt,isSilent:Ct,mergedOkCancel:$t,rootPrefixCls:At,close:Bt,onCancel:Dt,onConfirm:Ft}=reactExports.useContext(ModalContext);return $t?React$8.createElement(ActionButton,{isSilent:Ct,actionFn:Dt,close:function(){Bt==null||Bt.apply(void 0,arguments),Ft==null||Ft(!1)},autoFocus:ht==="cancel",buttonProps:Et,prefixCls:`${At}-btn`},yt):null},ConfirmOkBtn=()=>{const{autoFocusButton:ht,close:Et,isSilent:yt,okButtonProps:Ct,rootPrefixCls:$t,okTextLocale:At,okType:Bt,onConfirm:Dt,onOk:Ft}=reactExports.useContext(ModalContext);return React$8.createElement(ActionButton,{isSilent:yt,type:Bt||"primary",actionFn:Ft,close:function(){Et==null||Et.apply(void 0,arguments),Dt==null||Dt(!0)},autoFocus:ht==="ok",buttonProps:Ct,prefixCls:`${$t}-btn`},At)};var OrderContext=reactExports.createContext(null),EMPTY_LIST$4=[];function useDom(ht,Et){var yt=reactExports.useState(function(){if(!canUseDom())return null;var Vt=document.createElement("div");return Vt}),Ct=_slicedToArray(yt,1),$t=Ct[0],At=reactExports.useRef(!1),Bt=reactExports.useContext(OrderContext),Dt=reactExports.useState(EMPTY_LIST$4),Ft=_slicedToArray(Dt,2),kt=Ft[0],Mt=Ft[1],Nt=Bt||(At.current?void 0:function(Vt){Mt(function(Kt){var Xt=[Vt].concat(_toConsumableArray(Kt));return Xt})});function jt(){$t.parentElement||document.body.appendChild($t),At.current=!0}function zt(){var Vt;(Vt=$t.parentElement)===null||Vt===void 0||Vt.removeChild($t),At.current=!1}return useLayoutEffect$1(function(){return ht?Bt?Bt(jt):jt():zt(),zt},[ht]),useLayoutEffect$1(function(){kt.length&&(kt.forEach(function(Vt){return Vt()}),Mt(EMPTY_LIST$4))},[kt]),[$t,Nt]}var cached;function measureScrollbarSize(ht){var Et="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),yt=document.createElement("div");yt.id=Et;var Ct=yt.style;Ct.position="absolute",Ct.left="0",Ct.top="0",Ct.width="100px",Ct.height="100px",Ct.overflow="scroll";var $t,At;if(ht){var Bt=getComputedStyle(ht);Ct.scrollbarColor=Bt.scrollbarColor,Ct.scrollbarWidth=Bt.scrollbarWidth;var Dt=getComputedStyle(ht,"::-webkit-scrollbar"),Ft=parseInt(Dt.width,10),kt=parseInt(Dt.height,10);try{var Mt=Ft?"width: ".concat(Dt.width,";"):"",Nt=kt?"height: ".concat(Dt.height,";"):"";updateCSS(`
#`.concat(Et,`::-webkit-scrollbar {
`).concat(Mt,`
`).concat(Nt,`
}`),Et)}catch(Vt){console.error(Vt),$t=Ft,At=kt}}document.body.appendChild(yt);var jt=ht&&$t&&!isNaN($t)?$t:yt.offsetWidth-yt.clientWidth,zt=ht&&At&&!isNaN(At)?At:yt.offsetHeight-yt.clientHeight;return document.body.removeChild(yt),removeCSS(Et),{width:jt,height:zt}}function getScrollBarSize(ht){return typeof document>"u"?0:(cached===void 0&&(cached=measureScrollbarSize()),cached.width)}function getTargetScrollBarSize(ht){return typeof document>"u"||!ht||!(ht instanceof Element)?{width:0,height:0}:measureScrollbarSize(ht)}function isBodyOverflowing(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var UNIQUE_ID="rc-util-locker-".concat(Date.now()),uuid$5=0;function useScrollLocker(ht){var Et=!!ht,yt=reactExports.useState(function(){return uuid$5+=1,"".concat(UNIQUE_ID,"_").concat(uuid$5)}),Ct=_slicedToArray(yt,1),$t=Ct[0];useLayoutEffect$1(function(){if(Et){var At=getTargetScrollBarSize(document.body).width,Bt=isBodyOverflowing();updateCSS(`
html body {
  overflow-y: hidden;
  `.concat(Bt?"width: calc(100% - ".concat(At,"px);"):"",`
}`),$t)}else removeCSS($t);return function(){removeCSS($t)}},[Et,$t])}var inline$1=!1;function inlineMock(ht){return inline$1}var getPortalContainer=function ht(Et){return Et===!1?!1:!canUseDom()||!Et?null:typeof Et=="string"?document.querySelector(Et):typeof Et=="function"?Et():Et},Portal=reactExports.forwardRef(function(ht,Et){var yt=ht.open,Ct=ht.autoLock,$t=ht.getContainer;ht.debug;var At=ht.autoDestroy,Bt=At===void 0?!0:At,Dt=ht.children,Ft=reactExports.useState(yt),kt=_slicedToArray(Ft,2),Mt=kt[0],Nt=kt[1],jt=Mt||yt;reactExports.useEffect(function(){(Bt||yt)&&Nt(yt)},[yt,Bt]);var zt=reactExports.useState(function(){return getPortalContainer($t)}),Vt=_slicedToArray(zt,2),Kt=Vt[0],Xt=Vt[1];reactExports.useEffect(function(){var rr=getPortalContainer($t);Xt(rr??null)});var Qt=useDom(jt&&!Kt),Zt=_slicedToArray(Qt,2),dr=Zt[0],cr=Zt[1],Er=Kt??dr;useScrollLocker(Ct&&yt&&canUseDom()&&(Er===dr||Er===document.body));var pr=null;if(Dt&&supportRef(Dt)&&Et){var gr=Dt;pr=gr.ref}var vr=useComposeRef(pr,Et);if(!jt||!canUseDom()||Kt===void 0)return null;var yr=Er===!1||inlineMock(),xr=Dt;return Et&&(xr=reactExports.cloneElement(Dt,{ref:vr})),reactExports.createElement(OrderContext.Provider,{value:cr},yr?xr:reactDomExports.createPortal(xr,Er))}),RefContext$1=reactExports.createContext({});function getUseId(){var ht=_objectSpread2({},e$9);return ht.useId}var uuid$4=0,useOriginId=getUseId();const useId$1=useOriginId?function ht(Et){var yt=useOriginId();return Et||yt}:function ht(Et){var yt=reactExports.useState("ssr-id"),Ct=_slicedToArray(yt,2),$t=Ct[0],At=Ct[1];return reactExports.useEffect(function(){var Bt=uuid$4;uuid$4+=1,At("rc_unique_".concat(Bt))},[]),Et||$t};function getMotionName(ht,Et,yt){var Ct=Et;return!Ct&&yt&&(Ct="".concat(ht,"-").concat(yt)),Ct}function getScroll(ht,Et){var yt=ht["page".concat(Et?"Y":"X","Offset")],Ct="scroll".concat(Et?"Top":"Left");if(typeof yt!="number"){var $t=ht.document;yt=$t.documentElement[Ct],typeof yt!="number"&&(yt=$t.body[Ct])}return yt}function offset$1(ht){var Et=ht.getBoundingClientRect(),yt={left:Et.left,top:Et.top},Ct=ht.ownerDocument,$t=Ct.defaultView||Ct.parentWindow;return yt.left+=getScroll($t),yt.top+=getScroll($t,!0),yt}const MemoChildren=reactExports.memo(function(ht){var Et=ht.children;return Et},function(ht,Et){var yt=Et.shouldUpdate;return!yt});var sentinelStyle$1={width:0,height:0,overflow:"hidden",outline:"none"},entityStyle={outline:"none"},Panel$1=React$8.forwardRef(function(ht,Et){var yt=ht.prefixCls,Ct=ht.className,$t=ht.style,At=ht.title,Bt=ht.ariaId,Dt=ht.footer,Ft=ht.closable,kt=ht.closeIcon,Mt=ht.onClose,Nt=ht.children,jt=ht.bodyStyle,zt=ht.bodyProps,Vt=ht.modalRender,Kt=ht.onMouseDown,Xt=ht.onMouseUp,Qt=ht.holderRef,Zt=ht.visible,dr=ht.forceRender,cr=ht.width,Er=ht.height,pr=ht.classNames,gr=ht.styles,vr=React$8.useContext(RefContext$1),yr=vr.panel,xr=useComposeRef(Qt,yr),rr=reactExports.useRef(),Lt=reactExports.useRef(),Ht=reactExports.useRef();React$8.useImperativeHandle(Et,function(){return{focus:function(){var _r;(_r=Ht.current)===null||_r===void 0||_r.focus({preventScroll:!0})},changeActive:function(_r){var $r=document,Tr=$r.activeElement;_r&&Tr===Lt.current?rr.current.focus({preventScroll:!0}):!_r&&Tr===rr.current&&Lt.current.focus({preventScroll:!0})}}});var Wt={};cr!==void 0&&(Wt.width=cr),Er!==void 0&&(Wt.height=Er);var Gt=Dt?React$8.createElement("div",{className:cls("".concat(yt,"-footer"),pr==null?void 0:pr.footer),style:_objectSpread2({},gr==null?void 0:gr.footer)},Dt):null,Yt=At?React$8.createElement("div",{className:cls("".concat(yt,"-header"),pr==null?void 0:pr.header),style:_objectSpread2({},gr==null?void 0:gr.header)},React$8.createElement("div",{className:"".concat(yt,"-title"),id:Bt},At)):null,er=reactExports.useMemo(function(){return _typeof$1(Ft)==="object"&&Ft!==null?Ft:Ft?{closeIcon:kt??React$8.createElement("span",{className:"".concat(yt,"-close-x")})}:{}},[Ft,kt,yt]),lr=pickAttrs(er,!0),Jt=_typeof$1(Ft)==="object"&&Ft.disabled,Ut=Ft?React$8.createElement("button",_extends$5({type:"button",onClick:Mt,"aria-label":"Close"},lr,{className:"".concat(yt,"-close"),disabled:Jt}),er.closeIcon):null,ir=React$8.createElement("div",{className:cls("".concat(yt,"-content"),pr==null?void 0:pr.content),style:gr==null?void 0:gr.content},Ut,Yt,React$8.createElement("div",_extends$5({className:cls("".concat(yt,"-body"),pr==null?void 0:pr.body),style:_objectSpread2(_objectSpread2({},jt),gr==null?void 0:gr.body)},zt),Nt),Gt);return React$8.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":At?Bt:null,"aria-modal":"true",ref:xr,style:_objectSpread2(_objectSpread2({},$t),Wt),className:cls(yt,Ct),onMouseDown:Kt,onMouseUp:Xt},React$8.createElement("div",{tabIndex:0,ref:rr,style:sentinelStyle$1,"aria-hidden":"true"}),React$8.createElement("div",{ref:Ht,tabIndex:-1,style:entityStyle},React$8.createElement(MemoChildren,{shouldUpdate:Zt||dr},Vt?Vt(ir):ir)),React$8.createElement("div",{tabIndex:0,ref:Lt,style:sentinelStyle$1,"aria-hidden":"true"}))}),Content$1=reactExports.forwardRef(function(ht,Et){var yt=ht.prefixCls,Ct=ht.title,$t=ht.style,At=ht.className,Bt=ht.visible,Dt=ht.forceRender,Ft=ht.destroyOnClose,kt=ht.motionName,Mt=ht.ariaId,Nt=ht.onVisibleChanged,jt=ht.mousePosition,zt=reactExports.useRef(),Vt=reactExports.useState(),Kt=_slicedToArray(Vt,2),Xt=Kt[0],Qt=Kt[1],Zt={};Xt&&(Zt.transformOrigin=Xt);function dr(){var cr=offset$1(zt.current);Qt(jt&&(jt.x||jt.y)?"".concat(jt.x-cr.left,"px ").concat(jt.y-cr.top,"px"):"")}return reactExports.createElement(CSSMotion,{visible:Bt,onVisibleChanged:Nt,onAppearPrepare:dr,onEnterPrepare:dr,forceRender:Dt,motionName:kt,removeOnLeave:Ft,ref:zt},function(cr,Er){var pr=cr.className,gr=cr.style;return reactExports.createElement(Panel$1,_extends$5({},ht,{ref:Et,title:Ct,ariaId:Mt,prefixCls:yt,holderRef:Er,style:_objectSpread2(_objectSpread2(_objectSpread2({},gr),$t),Zt),className:cls(At,pr)}))})});Content$1.displayName="Content";var Mask$1=function ht(Et){var yt=Et.prefixCls,Ct=Et.style,$t=Et.visible,At=Et.maskProps,Bt=Et.motionName,Dt=Et.className;return reactExports.createElement(CSSMotion,{key:"mask",visible:$t,motionName:Bt,leavedClassName:"".concat(yt,"-mask-hidden")},function(Ft,kt){var Mt=Ft.className,Nt=Ft.style;return reactExports.createElement("div",_extends$5({ref:kt,style:_objectSpread2(_objectSpread2({},Nt),Ct),className:cls("".concat(yt,"-mask"),Mt,Dt)},At))})},Dialog=function ht(Et){var yt=Et.prefixCls,Ct=yt===void 0?"rc-dialog":yt,$t=Et.zIndex,At=Et.visible,Bt=At===void 0?!1:At,Dt=Et.keyboard,Ft=Dt===void 0?!0:Dt,kt=Et.focusTriggerAfterClose,Mt=kt===void 0?!0:kt,Nt=Et.wrapStyle,jt=Et.wrapClassName,zt=Et.wrapProps,Vt=Et.onClose,Kt=Et.afterOpenChange,Xt=Et.afterClose,Qt=Et.transitionName,Zt=Et.animation,dr=Et.closable,cr=dr===void 0?!0:dr,Er=Et.mask,pr=Er===void 0?!0:Er,gr=Et.maskTransitionName,vr=Et.maskAnimation,yr=Et.maskClosable,xr=yr===void 0?!0:yr,rr=Et.maskStyle,Lt=Et.maskProps,Ht=Et.rootClassName,Wt=Et.classNames,Gt=Et.styles,Yt=reactExports.useRef(),er=reactExports.useRef(),lr=reactExports.useRef(),Jt=reactExports.useState(Bt),Ut=_slicedToArray(Jt,2),ir=Ut[0],Cr=Ut[1],_r=useId$1();function $r(){contains(er.current,document.activeElement)||(Yt.current=document.activeElement)}function Tr(){if(!contains(er.current,document.activeElement)){var Nr;(Nr=lr.current)===null||Nr===void 0||Nr.focus()}}function Dr(Nr){if(Nr)Tr();else{if(Cr(!1),pr&&Yt.current&&Mt){try{Yt.current.focus({preventScroll:!0})}catch{}Yt.current=null}ir&&(Xt==null||Xt())}Kt==null||Kt(Nr)}function Ar(Nr){Vt==null||Vt(Nr)}var Fr=reactExports.useRef(!1),Rr=reactExports.useRef(),wr=function(){clearTimeout(Rr.current),Fr.current=!0},Sr=function(){Rr.current=setTimeout(function(){Fr.current=!1})},Br=null;xr&&(Br=function(Lr){Fr.current?Fr.current=!1:er.current===Lr.target&&Ar(Lr)});function Or(Nr){if(Ft&&Nr.keyCode===KeyCode.ESC){Nr.stopPropagation(),Ar(Nr);return}Bt&&Nr.keyCode===KeyCode.TAB&&lr.current.changeActive(!Nr.shiftKey)}reactExports.useEffect(function(){Bt&&(Cr(!0),$r())},[Bt]),reactExports.useEffect(function(){return function(){clearTimeout(Rr.current)}},[]);var Pr=_objectSpread2(_objectSpread2(_objectSpread2({zIndex:$t},Nt),Gt==null?void 0:Gt.wrapper),{},{display:ir?null:"none"});return reactExports.createElement("div",_extends$5({className:cls("".concat(Ct,"-root"),Ht)},pickAttrs(Et,{data:!0})),reactExports.createElement(Mask$1,{prefixCls:Ct,visible:pr&&Bt,motionName:getMotionName(Ct,gr,vr),style:_objectSpread2(_objectSpread2({zIndex:$t},rr),Gt==null?void 0:Gt.mask),maskProps:Lt,className:Wt==null?void 0:Wt.mask}),reactExports.createElement("div",_extends$5({tabIndex:-1,onKeyDown:Or,className:cls("".concat(Ct,"-wrap"),jt,Wt==null?void 0:Wt.wrapper),ref:er,onClick:Br,style:Pr},zt),reactExports.createElement(Content$1,_extends$5({},Et,{onMouseDown:wr,onMouseUp:Sr,ref:lr,closable:cr,ariaId:_r,prefixCls:Ct,visible:Bt&&ir,onClose:Ar,onVisibleChanged:Dr,motionName:getMotionName(Ct,Qt,Zt)}))))},DialogWrap=function ht(Et){var yt=Et.visible,Ct=Et.getContainer,$t=Et.forceRender,At=Et.destroyOnClose,Bt=At===void 0?!1:At,Dt=Et.afterClose,Ft=Et.panelRef,kt=reactExports.useState(yt),Mt=_slicedToArray(kt,2),Nt=Mt[0],jt=Mt[1],zt=reactExports.useMemo(function(){return{panel:Ft}},[Ft]);return reactExports.useEffect(function(){yt&&jt(!0)},[yt]),!$t&&Bt&&!Nt?null:reactExports.createElement(RefContext$1.Provider,{value:zt},reactExports.createElement(Portal,{open:yt||$t||Nt,autoDestroy:!1,getContainer:Ct,autoLock:yt||Nt},reactExports.createElement(Dialog,_extends$5({},Et,{destroyOnClose:Bt,afterClose:function(){Dt==null||Dt(),jt(!1)}}))))};DialogWrap.displayName="Dialog";var HOOK_MARK="RC_FORM_INTERNAL_HOOKS",warningFunc=function ht(){warningOnce(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Context=reactExports.createContext({getFieldValue:warningFunc,getFieldsValue:warningFunc,getFieldError:warningFunc,getFieldWarning:warningFunc,getFieldsError:warningFunc,isFieldsTouched:warningFunc,isFieldTouched:warningFunc,isFieldValidating:warningFunc,isFieldsValidating:warningFunc,resetFields:warningFunc,setFields:warningFunc,setFieldValue:warningFunc,setFieldsValue:warningFunc,validateFields:warningFunc,submit:warningFunc,getInternalHooks:function ht(){return warningFunc(),{dispatch:warningFunc,initEntityValue:warningFunc,registerField:warningFunc,useSubscribe:warningFunc,setInitialValues:warningFunc,destroyForm:warningFunc,setCallbacks:warningFunc,registerWatch:warningFunc,getFields:warningFunc,setValidateMessages:warningFunc,setPreserve:warningFunc,getInitialValue:warningFunc}}}),ListContext=reactExports.createContext(null);function toArray$4(ht){return ht==null?[]:Array.isArray(ht)?ht:[ht]}function isFormInstance(ht){return ht&&!!ht._init}function newMessages(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var Et=JSON.parse(JSON.stringify(this));return Et.clone=this.clone,Et}}}var messages=newMessages();function _isNativeFunction(ht){try{return Function.toString.call(ht).indexOf("[native code]")!==-1}catch{return typeof ht=="function"}}function _construct(ht,Et,yt){if(_isNativeReflectConstruct$5())return Reflect.construct.apply(null,arguments);var Ct=[null];Ct.push.apply(Ct,Et);var $t=new(ht.bind.apply(ht,Ct));return yt&&_setPrototypeOf$2($t,yt.prototype),$t}function _wrapNativeSuper(ht){var Et=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(Ct){if(Ct===null||!_isNativeFunction(Ct))return Ct;if(typeof Ct!="function")throw new TypeError("Super expression must either be null or a function");if(Et!==void 0){if(Et.has(Ct))return Et.get(Ct);Et.set(Ct,$t)}function $t(){return _construct(Ct,arguments,_getPrototypeOf(this).constructor)}return $t.prototype=Object.create(Ct.prototype,{constructor:{value:$t,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf$2($t,Ct)},_wrapNativeSuper(ht)}var define_process_env_default$1={},formatRegExp=/%[sdj%]/g,warning=function ht(){};typeof process$1$1<"u";function convertFieldsError(ht){if(!ht||!ht.length)return null;var Et={};return ht.forEach(function(yt){var Ct=yt.field;Et[Ct]=Et[Ct]||[],Et[Ct].push(yt)}),Et}function format$3(ht){for(var Et=arguments.length,yt=new Array(Et>1?Et-1:0),Ct=1;Ct<Et;Ct++)yt[Ct-1]=arguments[Ct];var $t=0,At=yt.length;if(typeof ht=="function")return ht.apply(null,yt);if(typeof ht=="string"){var Bt=ht.replace(formatRegExp,function(Dt){if(Dt==="%%")return"%";if($t>=At)return Dt;switch(Dt){case"%s":return String(yt[$t++]);case"%d":return Number(yt[$t++]);case"%j":try{return JSON.stringify(yt[$t++])}catch{return"[Circular]"}break;default:return Dt}});return Bt}return ht}function isNativeStringType(ht){return ht==="string"||ht==="url"||ht==="hex"||ht==="email"||ht==="date"||ht==="pattern"}function isEmptyValue(ht,Et){return!!(ht==null||Et==="array"&&Array.isArray(ht)&&!ht.length||isNativeStringType(Et)&&typeof ht=="string"&&!ht)}function asyncParallelArray(ht,Et,yt){var Ct=[],$t=0,At=ht.length;function Bt(Dt){Ct.push.apply(Ct,_toConsumableArray(Dt||[])),$t++,$t===At&&yt(Ct)}ht.forEach(function(Dt){Et(Dt,Bt)})}function asyncSerialArray(ht,Et,yt){var Ct=0,$t=ht.length;function At(Bt){if(Bt&&Bt.length){yt(Bt);return}var Dt=Ct;Ct=Ct+1,Dt<$t?Et(ht[Dt],At):yt([])}At([])}function flattenObjArr(ht){var Et=[];return Object.keys(ht).forEach(function(yt){Et.push.apply(Et,_toConsumableArray(ht[yt]||[]))}),Et}var AsyncValidationError=function(ht){_inherits(yt,ht);var Et=_createSuper$5(yt);function yt(Ct,$t){var At;return _classCallCheck(this,yt),At=Et.call(this,"Async Validation Error"),_defineProperty$1(_assertThisInitialized$1(At),"errors",void 0),_defineProperty$1(_assertThisInitialized$1(At),"fields",void 0),At.errors=Ct,At.fields=$t,At}return _createClass$1(yt)}(_wrapNativeSuper(Error));function asyncMap(ht,Et,yt,Ct,$t){if(Et.first){var At=new Promise(function(jt,zt){var Vt=function(Qt){return Ct(Qt),Qt.length?zt(new AsyncValidationError(Qt,convertFieldsError(Qt))):jt($t)},Kt=flattenObjArr(ht);asyncSerialArray(Kt,yt,Vt)});return At.catch(function(jt){return jt}),At}var Bt=Et.firstFields===!0?Object.keys(ht):Et.firstFields||[],Dt=Object.keys(ht),Ft=Dt.length,kt=0,Mt=[],Nt=new Promise(function(jt,zt){var Vt=function(Xt){if(Mt.push.apply(Mt,Xt),kt++,kt===Ft)return Ct(Mt),Mt.length?zt(new AsyncValidationError(Mt,convertFieldsError(Mt))):jt($t)};Dt.length||(Ct(Mt),jt($t)),Dt.forEach(function(Kt){var Xt=ht[Kt];Bt.indexOf(Kt)!==-1?asyncSerialArray(Xt,yt,Vt):asyncParallelArray(Xt,yt,Vt)})});return Nt.catch(function(jt){return jt}),Nt}function isErrorObj(ht){return!!(ht&&ht.message!==void 0)}function getValue$3(ht,Et){for(var yt=ht,Ct=0;Ct<Et.length;Ct++){if(yt==null)return yt;yt=yt[Et[Ct]]}return yt}function complementError(ht,Et){return function(yt){var Ct;return ht.fullFields?Ct=getValue$3(Et,ht.fullFields):Ct=Et[yt.field||ht.fullField],isErrorObj(yt)?(yt.field=yt.field||ht.fullField,yt.fieldValue=Ct,yt):{message:typeof yt=="function"?yt():yt,fieldValue:Ct,field:yt.field||ht.fullField}}}function deepMerge(ht,Et){if(Et){for(var yt in Et)if(Et.hasOwnProperty(yt)){var Ct=Et[yt];_typeof$1(Ct)==="object"&&_typeof$1(ht[yt])==="object"?ht[yt]=_objectSpread2(_objectSpread2({},ht[yt]),Ct):ht[yt]=Ct}}return ht}var ENUM$1="enum",enumerable$1=function ht(Et,yt,Ct,$t,At){Et[ENUM$1]=Array.isArray(Et[ENUM$1])?Et[ENUM$1]:[],Et[ENUM$1].indexOf(yt)===-1&&$t.push(format$3(At.messages[ENUM$1],Et.fullField,Et[ENUM$1].join(", ")))},pattern$2=function ht(Et,yt,Ct,$t,At){if(Et.pattern){if(Et.pattern instanceof RegExp)Et.pattern.lastIndex=0,Et.pattern.test(yt)||$t.push(format$3(At.messages.pattern.mismatch,Et.fullField,yt,Et.pattern));else if(typeof Et.pattern=="string"){var Bt=new RegExp(Et.pattern);Bt.test(yt)||$t.push(format$3(At.messages.pattern.mismatch,Et.fullField,yt,Et.pattern))}}},range=function ht(Et,yt,Ct,$t,At){var Bt=typeof Et.len=="number",Dt=typeof Et.min=="number",Ft=typeof Et.max=="number",kt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Mt=yt,Nt=null,jt=typeof yt=="number",zt=typeof yt=="string",Vt=Array.isArray(yt);if(jt?Nt="number":zt?Nt="string":Vt&&(Nt="array"),!Nt)return!1;Vt&&(Mt=yt.length),zt&&(Mt=yt.replace(kt,"_").length),Bt?Mt!==Et.len&&$t.push(format$3(At.messages[Nt].len,Et.fullField,Et.len)):Dt&&!Ft&&Mt<Et.min?$t.push(format$3(At.messages[Nt].min,Et.fullField,Et.min)):Ft&&!Dt&&Mt>Et.max?$t.push(format$3(At.messages[Nt].max,Et.fullField,Et.max)):Dt&&Ft&&(Mt<Et.min||Mt>Et.max)&&$t.push(format$3(At.messages[Nt].range,Et.fullField,Et.min,Et.max))},required$1=function ht(Et,yt,Ct,$t,At,Bt){Et.required&&(!Ct.hasOwnProperty(Et.field)||isEmptyValue(yt,Bt||Et.type))&&$t.push(format$3(At.messages.required,Et.fullField))},urlReg;const getUrlRegex=function(){if(urlReg)return urlReg;var ht="[a-fA-F\\d:]",Et=function(pr){return pr&&pr.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(ht,")|(?<=").concat(ht,")(?=\\s|$))"):""},yt="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",Ct="[a-fA-F\\d]{1,4}",$t=["(?:".concat(Ct,":){7}(?:").concat(Ct,"|:)"),"(?:".concat(Ct,":){6}(?:").concat(yt,"|:").concat(Ct,"|:)"),"(?:".concat(Ct,":){5}(?::").concat(yt,"|(?::").concat(Ct,"){1,2}|:)"),"(?:".concat(Ct,":){4}(?:(?::").concat(Ct,"){0,1}:").concat(yt,"|(?::").concat(Ct,"){1,3}|:)"),"(?:".concat(Ct,":){3}(?:(?::").concat(Ct,"){0,2}:").concat(yt,"|(?::").concat(Ct,"){1,4}|:)"),"(?:".concat(Ct,":){2}(?:(?::").concat(Ct,"){0,3}:").concat(yt,"|(?::").concat(Ct,"){1,5}|:)"),"(?:".concat(Ct,":){1}(?:(?::").concat(Ct,"){0,4}:").concat(yt,"|(?::").concat(Ct,"){1,6}|:)"),"(?::(?:(?::".concat(Ct,"){0,5}:").concat(yt,"|(?::").concat(Ct,"){1,7}|:))")],At="(?:%[0-9a-zA-Z]{1,})?",Bt="(?:".concat($t.join("|"),")").concat(At),Dt=new RegExp("(?:^".concat(yt,"$)|(?:^").concat(Bt,"$)")),Ft=new RegExp("^".concat(yt,"$")),kt=new RegExp("^".concat(Bt,"$")),Mt=function(pr){return pr&&pr.exact?Dt:new RegExp("(?:".concat(Et(pr)).concat(yt).concat(Et(pr),")|(?:").concat(Et(pr)).concat(Bt).concat(Et(pr),")"),"g")};Mt.v4=function(Er){return Er&&Er.exact?Ft:new RegExp("".concat(Et(Er)).concat(yt).concat(Et(Er)),"g")},Mt.v6=function(Er){return Er&&Er.exact?kt:new RegExp("".concat(Et(Er)).concat(Bt).concat(Et(Er)),"g")};var Nt="(?:(?:[a-z]+:)?//)",jt="(?:\\S+(?::\\S*)?@)?",zt=Mt.v4().source,Vt=Mt.v6().source,Kt="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",Xt="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",Qt="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",Zt="(?::\\d{2,5})?",dr='(?:[/?#][^\\s"]*)?',cr="(?:".concat(Nt,"|www\\.)").concat(jt,"(?:localhost|").concat(zt,"|").concat(Vt,"|").concat(Kt).concat(Xt).concat(Qt,")").concat(Zt).concat(dr);return urlReg=new RegExp("(?:^".concat(cr,"$)"),"i"),urlReg};var pattern$1={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},types={integer:function ht(Et){return types.number(Et)&&parseInt(Et,10)===Et},float:function ht(Et){return types.number(Et)&&!types.integer(Et)},array:function ht(Et){return Array.isArray(Et)},regexp:function ht(Et){if(Et instanceof RegExp)return!0;try{return!!new RegExp(Et)}catch{return!1}},date:function ht(Et){return typeof Et.getTime=="function"&&typeof Et.getMonth=="function"&&typeof Et.getYear=="function"&&!isNaN(Et.getTime())},number:function ht(Et){return isNaN(Et)?!1:typeof Et=="number"},object:function ht(Et){return _typeof$1(Et)==="object"&&!types.array(Et)},method:function ht(Et){return typeof Et=="function"},email:function ht(Et){return typeof Et=="string"&&Et.length<=320&&!!Et.match(pattern$1.email)},url:function ht(Et){return typeof Et=="string"&&Et.length<=2048&&!!Et.match(getUrlRegex())},hex:function ht(Et){return typeof Et=="string"&&!!Et.match(pattern$1.hex)}},type$1=function ht(Et,yt,Ct,$t,At){if(Et.required&&yt===void 0){required$1(Et,yt,Ct,$t,At);return}var Bt=["integer","float","array","regexp","object","method","email","number","date","url","hex"],Dt=Et.type;Bt.indexOf(Dt)>-1?types[Dt](yt)||$t.push(format$3(At.messages.types[Dt],Et.fullField,Et.type)):Dt&&_typeof$1(yt)!==Et.type&&$t.push(format$3(At.messages.types[Dt],Et.fullField,Et.type))},whitespace=function ht(Et,yt,Ct,$t,At){(/^\s+$/.test(yt)||yt==="")&&$t.push(format$3(At.messages.whitespace,Et.fullField))};const rules={required:required$1,whitespace,type:type$1,range,enum:enumerable$1,pattern:pattern$2};var any=function ht(Et,yt,Ct,$t,At){var Bt=[],Dt=Et.required||!Et.required&&$t.hasOwnProperty(Et.field);if(Dt){if(isEmptyValue(yt)&&!Et.required)return Ct();rules.required(Et,yt,$t,Bt,At)}Ct(Bt)},array=function ht(Et,yt,Ct,$t,At){var Bt=[],Dt=Et.required||!Et.required&&$t.hasOwnProperty(Et.field);if(Dt){if(yt==null&&!Et.required)return Ct();rules.required(Et,yt,$t,Bt,At,"array"),yt!=null&&(rules.type(Et,yt,$t,Bt,At),rules.range(Et,yt,$t,Bt,At))}Ct(Bt)},boolean=function ht(Et,yt,Ct,$t,At){var Bt=[],Dt=Et.required||!Et.required&&$t.hasOwnProperty(Et.field);if(Dt){if(isEmptyValue(yt)&&!Et.required)return Ct();rules.required(Et,yt,$t,Bt,At),yt!==void 0&&rules.type(Et,yt,$t,Bt,At)}Ct(Bt)},date=function ht(Et,yt,Ct,$t,At){var Bt=[],Dt=Et.required||!Et.required&&$t.hasOwnProperty(Et.field);if(Dt){if(isEmptyValue(yt,"date")&&!Et.required)return Ct();if(rules.required(Et,yt,$t,Bt,At),!isEmptyValue(yt,"date")){var Ft;yt instanceof Date?Ft=yt:Ft=new Date(yt),rules.type(Et,Ft,$t,Bt,At),Ft&&rules.range(Et,Ft.getTime(),$t,Bt,At)}}Ct(Bt)},ENUM="enum",enumerable=function ht(Et,yt,Ct,$t,At){var Bt=[],Dt=Et.required||!Et.required&&$t.hasOwnProperty(Et.field);if(Dt){if(isEmptyValue(yt)&&!Et.required)return Ct();rules.required(Et,yt,$t,Bt,At),yt!==void 0&&rules[ENUM](Et,yt,$t,Bt,At)}Ct(Bt)},floatFn=function ht(Et,yt,Ct,$t,At){var Bt=[],Dt=Et.required||!Et.required&&$t.hasOwnProperty(Et.field);if(Dt){if(isEmptyValue(yt)&&!Et.required)return Ct();rules.required(Et,yt,$t,Bt,At),yt!==void 0&&(rules.type(Et,yt,$t,Bt,At),rules.range(Et,yt,$t,Bt,At))}Ct(Bt)},integer=function ht(Et,yt,Ct,$t,At){var Bt=[],Dt=Et.required||!Et.required&&$t.hasOwnProperty(Et.field);if(Dt){if(isEmptyValue(yt)&&!Et.required)return Ct();rules.required(Et,yt,$t,Bt,At),yt!==void 0&&(rules.type(Et,yt,$t,Bt,At),rules.range(Et,yt,$t,Bt,At))}Ct(Bt)},method$6=function ht(Et,yt,Ct,$t,At){var Bt=[],Dt=Et.required||!Et.required&&$t.hasOwnProperty(Et.field);if(Dt){if(isEmptyValue(yt)&&!Et.required)return Ct();rules.required(Et,yt,$t,Bt,At),yt!==void 0&&rules.type(Et,yt,$t,Bt,At)}Ct(Bt)},number$1=function ht(Et,yt,Ct,$t,At){var Bt=[],Dt=Et.required||!Et.required&&$t.hasOwnProperty(Et.field);if(Dt){if(yt===""&&(yt=void 0),isEmptyValue(yt)&&!Et.required)return Ct();rules.required(Et,yt,$t,Bt,At),yt!==void 0&&(rules.type(Et,yt,$t,Bt,At),rules.range(Et,yt,$t,Bt,At))}Ct(Bt)},object=function ht(Et,yt,Ct,$t,At){var Bt=[],Dt=Et.required||!Et.required&&$t.hasOwnProperty(Et.field);if(Dt){if(isEmptyValue(yt)&&!Et.required)return Ct();rules.required(Et,yt,$t,Bt,At),yt!==void 0&&rules.type(Et,yt,$t,Bt,At)}Ct(Bt)},pattern=function ht(Et,yt,Ct,$t,At){var Bt=[],Dt=Et.required||!Et.required&&$t.hasOwnProperty(Et.field);if(Dt){if(isEmptyValue(yt,"string")&&!Et.required)return Ct();rules.required(Et,yt,$t,Bt,At),isEmptyValue(yt,"string")||rules.pattern(Et,yt,$t,Bt,At)}Ct(Bt)},regexp=function ht(Et,yt,Ct,$t,At){var Bt=[],Dt=Et.required||!Et.required&&$t.hasOwnProperty(Et.field);if(Dt){if(isEmptyValue(yt)&&!Et.required)return Ct();rules.required(Et,yt,$t,Bt,At),isEmptyValue(yt)||rules.type(Et,yt,$t,Bt,At)}Ct(Bt)},required=function ht(Et,yt,Ct,$t,At){var Bt=[],Dt=Array.isArray(yt)?"array":_typeof$1(yt);rules.required(Et,yt,$t,Bt,At,Dt),Ct(Bt)},string=function ht(Et,yt,Ct,$t,At){var Bt=[],Dt=Et.required||!Et.required&&$t.hasOwnProperty(Et.field);if(Dt){if(isEmptyValue(yt,"string")&&!Et.required)return Ct();rules.required(Et,yt,$t,Bt,At,"string"),isEmptyValue(yt,"string")||(rules.type(Et,yt,$t,Bt,At),rules.range(Et,yt,$t,Bt,At),rules.pattern(Et,yt,$t,Bt,At),Et.whitespace===!0&&rules.whitespace(Et,yt,$t,Bt,At))}Ct(Bt)},type=function ht(Et,yt,Ct,$t,At){var Bt=Et.type,Dt=[],Ft=Et.required||!Et.required&&$t.hasOwnProperty(Et.field);if(Ft){if(isEmptyValue(yt,Bt)&&!Et.required)return Ct();rules.required(Et,yt,$t,Dt,At,Bt),isEmptyValue(yt,Bt)||rules.type(Et,yt,$t,Dt,At)}Ct(Dt)};const validators={string,method:method$6,number:number$1,boolean,regexp,integer,float:floatFn,array,object,enum:enumerable,pattern,date,url:type,hex:type,email:type,required,any};var Schema=function(){function ht(Et){_classCallCheck(this,ht),_defineProperty$1(this,"rules",null),_defineProperty$1(this,"_messages",messages),this.define(Et)}return _createClass$1(ht,[{key:"define",value:function(yt){var Ct=this;if(!yt)throw new Error("Cannot configure a schema with no rules");if(_typeof$1(yt)!=="object"||Array.isArray(yt))throw new Error("Rules must be an object");this.rules={},Object.keys(yt).forEach(function($t){var At=yt[$t];Ct.rules[$t]=Array.isArray(At)?At:[At]})}},{key:"messages",value:function(yt){return yt&&(this._messages=deepMerge(newMessages(),yt)),this._messages}},{key:"validate",value:function(yt){var Ct=this,$t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},At=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},Bt=yt,Dt=$t,Ft=At;if(typeof Dt=="function"&&(Ft=Dt,Dt={}),!this.rules||Object.keys(this.rules).length===0)return Ft&&Ft(null,Bt),Promise.resolve(Bt);function kt(Vt){var Kt=[],Xt={};function Qt(dr){if(Array.isArray(dr)){var cr;Kt=(cr=Kt).concat.apply(cr,_toConsumableArray(dr))}else Kt.push(dr)}for(var Zt=0;Zt<Vt.length;Zt++)Qt(Vt[Zt]);Kt.length?(Xt=convertFieldsError(Kt),Ft(Kt,Xt)):Ft(null,Bt)}if(Dt.messages){var Mt=this.messages();Mt===messages&&(Mt=newMessages()),deepMerge(Mt,Dt.messages),Dt.messages=Mt}else Dt.messages=this.messages();var Nt={},jt=Dt.keys||Object.keys(this.rules);jt.forEach(function(Vt){var Kt=Ct.rules[Vt],Xt=Bt[Vt];Kt.forEach(function(Qt){var Zt=Qt;typeof Zt.transform=="function"&&(Bt===yt&&(Bt=_objectSpread2({},Bt)),Xt=Bt[Vt]=Zt.transform(Xt),Xt!=null&&(Zt.type=Zt.type||(Array.isArray(Xt)?"array":_typeof$1(Xt)))),typeof Zt=="function"?Zt={validator:Zt}:Zt=_objectSpread2({},Zt),Zt.validator=Ct.getValidationMethod(Zt),Zt.validator&&(Zt.field=Vt,Zt.fullField=Zt.fullField||Vt,Zt.type=Ct.getType(Zt),Nt[Vt]=Nt[Vt]||[],Nt[Vt].push({rule:Zt,value:Xt,source:Bt,field:Vt}))})});var zt={};return asyncMap(Nt,Dt,function(Vt,Kt){var Xt=Vt.rule,Qt=(Xt.type==="object"||Xt.type==="array")&&(_typeof$1(Xt.fields)==="object"||_typeof$1(Xt.defaultField)==="object");Qt=Qt&&(Xt.required||!Xt.required&&Vt.value),Xt.field=Vt.field;function Zt(gr,vr){return _objectSpread2(_objectSpread2({},vr),{},{fullField:"".concat(Xt.fullField,".").concat(gr),fullFields:Xt.fullFields?[].concat(_toConsumableArray(Xt.fullFields),[gr]):[gr]})}function dr(){var gr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],vr=Array.isArray(gr)?gr:[gr];!Dt.suppressWarning&&vr.length&&ht.warning("async-validator:",vr),vr.length&&Xt.message!==void 0&&(vr=[].concat(Xt.message));var yr=vr.map(complementError(Xt,Bt));if(Dt.first&&yr.length)return zt[Xt.field]=1,Kt(yr);if(!Qt)Kt(yr);else{if(Xt.required&&!Vt.value)return Xt.message!==void 0?yr=[].concat(Xt.message).map(complementError(Xt,Bt)):Dt.error&&(yr=[Dt.error(Xt,format$3(Dt.messages.required,Xt.field))]),Kt(yr);var xr={};Xt.defaultField&&Object.keys(Vt.value).map(function(Ht){xr[Ht]=Xt.defaultField}),xr=_objectSpread2(_objectSpread2({},xr),Vt.rule.fields);var rr={};Object.keys(xr).forEach(function(Ht){var Wt=xr[Ht],Gt=Array.isArray(Wt)?Wt:[Wt];rr[Ht]=Gt.map(Zt.bind(null,Ht))});var Lt=new ht(rr);Lt.messages(Dt.messages),Vt.rule.options&&(Vt.rule.options.messages=Dt.messages,Vt.rule.options.error=Dt.error),Lt.validate(Vt.value,Vt.rule.options||Dt,function(Ht){var Wt=[];yr&&yr.length&&Wt.push.apply(Wt,_toConsumableArray(yr)),Ht&&Ht.length&&Wt.push.apply(Wt,_toConsumableArray(Ht)),Kt(Wt.length?Wt:null)})}}var cr;if(Xt.asyncValidator)cr=Xt.asyncValidator(Xt,Vt.value,dr,Vt.source,Dt);else if(Xt.validator){try{cr=Xt.validator(Xt,Vt.value,dr,Vt.source,Dt)}catch(gr){var Er,pr;(Er=(pr=console).error)===null||Er===void 0||Er.call(pr,gr),Dt.suppressValidatorError||setTimeout(function(){throw gr},0),dr(gr.message)}cr===!0?dr():cr===!1?dr(typeof Xt.message=="function"?Xt.message(Xt.fullField||Xt.field):Xt.message||"".concat(Xt.fullField||Xt.field," fails")):cr instanceof Array?dr(cr):cr instanceof Error&&dr(cr.message)}cr&&cr.then&&cr.then(function(){return dr()},function(gr){return dr(gr)})},function(Vt){kt(Vt)},Bt)}},{key:"getType",value:function(yt){if(yt.type===void 0&&yt.pattern instanceof RegExp&&(yt.type="pattern"),typeof yt.validator!="function"&&yt.type&&!validators.hasOwnProperty(yt.type))throw new Error(format$3("Unknown rule type %s",yt.type));return yt.type||"string"}},{key:"getValidationMethod",value:function(yt){if(typeof yt.validator=="function")return yt.validator;var Ct=Object.keys(yt),$t=Ct.indexOf("message");return $t!==-1&&Ct.splice($t,1),Ct.length===1&&Ct[0]==="required"?validators.required:validators[this.getType(yt)]||void 0}}]),ht}();_defineProperty$1(Schema,"register",function ht(Et,yt){if(typeof yt!="function")throw new Error("Cannot register a validator by type, validator is not a function");validators[Et]=yt});_defineProperty$1(Schema,"warning",warning);_defineProperty$1(Schema,"messages",messages);_defineProperty$1(Schema,"validators",validators);var typeTemplate="'${name}' is not a valid ${type}",defaultValidateMessages={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:typeTemplate,method:typeTemplate,array:typeTemplate,object:typeTemplate,number:typeTemplate,date:typeTemplate,boolean:typeTemplate,integer:typeTemplate,float:typeTemplate,regexp:typeTemplate,email:typeTemplate,url:typeTemplate,hex:typeTemplate},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},AsyncValidator=Schema;function replaceMessage(ht,Et){return ht.replace(/\$\{\w+\}/g,function(yt){var Ct=yt.slice(2,-1);return Et[Ct]})}var CODE_LOGIC_ERROR="CODE_LOGIC_ERROR";function validateRule(ht,Et,yt,Ct,$t){return _validateRule.apply(this,arguments)}function _validateRule(){return _validateRule=_asyncToGenerator(_regeneratorRuntime().mark(function ht(Et,yt,Ct,$t,At){var Bt,Dt,Ft,kt,Mt,Nt,jt,zt,Vt;return _regeneratorRuntime().wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:return Bt=_objectSpread2({},Ct),delete Bt.ruleIndex,AsyncValidator.warning=function(){},Bt.validator&&(Dt=Bt.validator,Bt.validator=function(){try{return Dt.apply(void 0,arguments)}catch(Qt){return console.error(Qt),Promise.reject(CODE_LOGIC_ERROR)}}),Ft=null,Bt&&Bt.type==="array"&&Bt.defaultField&&(Ft=Bt.defaultField,delete Bt.defaultField),kt=new AsyncValidator(_defineProperty$1({},Et,[Bt])),Mt=merge$3(defaultValidateMessages,$t.validateMessages),kt.messages(Mt),Nt=[],Xt.prev=10,Xt.next=13,Promise.resolve(kt.validate(_defineProperty$1({},Et,yt),_objectSpread2({},$t)));case 13:Xt.next=18;break;case 15:Xt.prev=15,Xt.t0=Xt.catch(10),Xt.t0.errors&&(Nt=Xt.t0.errors.map(function(Qt,Zt){var dr=Qt.message,cr=dr===CODE_LOGIC_ERROR?Mt.default:dr;return reactExports.isValidElement(cr)?reactExports.cloneElement(cr,{key:"error_".concat(Zt)}):cr}));case 18:if(!(!Nt.length&&Ft)){Xt.next=23;break}return Xt.next=21,Promise.all(yt.map(function(Qt,Zt){return validateRule("".concat(Et,".").concat(Zt),Qt,Ft,$t,At)}));case 21:return jt=Xt.sent,Xt.abrupt("return",jt.reduce(function(Qt,Zt){return[].concat(_toConsumableArray(Qt),_toConsumableArray(Zt))},[]));case 23:return zt=_objectSpread2(_objectSpread2({},Ct),{},{name:Et,enum:(Ct.enum||[]).join(", ")},At),Vt=Nt.map(function(Qt){return typeof Qt=="string"?replaceMessage(Qt,zt):Qt}),Xt.abrupt("return",Vt);case 26:case"end":return Xt.stop()}},ht,null,[[10,15]])})),_validateRule.apply(this,arguments)}function validateRules(ht,Et,yt,Ct,$t,At){var Bt=ht.join("."),Dt=yt.map(function(Mt,Nt){var jt=Mt.validator,zt=_objectSpread2(_objectSpread2({},Mt),{},{ruleIndex:Nt});return jt&&(zt.validator=function(Vt,Kt,Xt){var Qt=!1,Zt=function(){for(var Er=arguments.length,pr=new Array(Er),gr=0;gr<Er;gr++)pr[gr]=arguments[gr];Promise.resolve().then(function(){warningOnce(!Qt,"Your validator function has already return a promise. `callback` will be ignored."),Qt||Xt.apply(void 0,pr)})},dr=jt(Vt,Kt,Zt);Qt=dr&&typeof dr.then=="function"&&typeof dr.catch=="function",warningOnce(Qt,"`callback` is deprecated. Please return a promise instead."),Qt&&dr.then(function(){Xt()}).catch(function(cr){Xt(cr||" ")})}),zt}).sort(function(Mt,Nt){var jt=Mt.warningOnly,zt=Mt.ruleIndex,Vt=Nt.warningOnly,Kt=Nt.ruleIndex;return!!jt==!!Vt?zt-Kt:jt?1:-1}),Ft;if($t===!0)Ft=new Promise(function(){var Mt=_asyncToGenerator(_regeneratorRuntime().mark(function Nt(jt,zt){var Vt,Kt,Xt;return _regeneratorRuntime().wrap(function(Zt){for(;;)switch(Zt.prev=Zt.next){case 0:Vt=0;case 1:if(!(Vt<Dt.length)){Zt.next=12;break}return Kt=Dt[Vt],Zt.next=5,validateRule(Bt,Et,Kt,Ct,At);case 5:if(Xt=Zt.sent,!Xt.length){Zt.next=9;break}return zt([{errors:Xt,rule:Kt}]),Zt.abrupt("return");case 9:Vt+=1,Zt.next=1;break;case 12:jt([]);case 13:case"end":return Zt.stop()}},Nt)}));return function(Nt,jt){return Mt.apply(this,arguments)}}());else{var kt=Dt.map(function(Mt){return validateRule(Bt,Et,Mt,Ct,At).then(function(Nt){return{errors:Nt,rule:Mt}})});Ft=($t?finishOnFirstFailed(kt):finishOnAllFailed(kt)).then(function(Mt){return Promise.reject(Mt)})}return Ft.catch(function(Mt){return Mt}),Ft}function finishOnAllFailed(ht){return _finishOnAllFailed.apply(this,arguments)}function _finishOnAllFailed(){return _finishOnAllFailed=_asyncToGenerator(_regeneratorRuntime().mark(function ht(Et){return _regeneratorRuntime().wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:return Ct.abrupt("return",Promise.all(Et).then(function($t){var At,Bt=(At=[]).concat.apply(At,_toConsumableArray($t));return Bt}));case 1:case"end":return Ct.stop()}},ht)})),_finishOnAllFailed.apply(this,arguments)}function finishOnFirstFailed(ht){return _finishOnFirstFailed.apply(this,arguments)}function _finishOnFirstFailed(){return _finishOnFirstFailed=_asyncToGenerator(_regeneratorRuntime().mark(function ht(Et){var yt;return _regeneratorRuntime().wrap(function($t){for(;;)switch($t.prev=$t.next){case 0:return yt=0,$t.abrupt("return",new Promise(function(At){Et.forEach(function(Bt){Bt.then(function(Dt){Dt.errors.length&&At([Dt]),yt+=1,yt===Et.length&&At([])})})}));case 2:case"end":return $t.stop()}},ht)})),_finishOnFirstFailed.apply(this,arguments)}function getNamePath(ht){return toArray$4(ht)}function cloneByNamePathList(ht,Et){var yt={};return Et.forEach(function(Ct){var $t=get$3(ht,Ct);yt=set$2(yt,Ct,$t)}),yt}function containsNamePath(ht,Et){var yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return ht&&ht.some(function(Ct){return matchNamePath(Et,Ct,yt)})}function matchNamePath(ht,Et){var yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!ht||!Et||!yt&&ht.length!==Et.length?!1:Et.every(function(Ct,$t){return ht[$t]===Ct})}function isSimilar(ht,Et){if(ht===Et)return!0;if(!ht&&Et||ht&&!Et||!ht||!Et||_typeof$1(ht)!=="object"||_typeof$1(Et)!=="object")return!1;var yt=Object.keys(ht),Ct=Object.keys(Et),$t=new Set([].concat(yt,Ct));return _toConsumableArray($t).every(function(At){var Bt=ht[At],Dt=Et[At];return typeof Bt=="function"&&typeof Dt=="function"?!0:Bt===Dt})}function defaultGetValueFromEvent(ht){var Et=arguments.length<=1?void 0:arguments[1];return Et&&Et.target&&_typeof$1(Et.target)==="object"&&ht in Et.target?Et.target[ht]:Et}function move(ht,Et,yt){var Ct=ht.length;if(Et<0||Et>=Ct||yt<0||yt>=Ct)return ht;var $t=ht[Et],At=Et-yt;return At>0?[].concat(_toConsumableArray(ht.slice(0,yt)),[$t],_toConsumableArray(ht.slice(yt,Et)),_toConsumableArray(ht.slice(Et+1,Ct))):At<0?[].concat(_toConsumableArray(ht.slice(0,Et)),_toConsumableArray(ht.slice(Et+1,yt+1)),[$t],_toConsumableArray(ht.slice(yt+1,Ct))):ht}var _excluded$J=["name"],EMPTY_ERRORS=[];function requireUpdate(ht,Et,yt,Ct,$t,At){return typeof ht=="function"?ht(Et,yt,"source"in At?{source:At.source}:{}):Ct!==$t}var Field=function(ht){_inherits(yt,ht);var Et=_createSuper$5(yt);function yt(Ct){var $t;if(_classCallCheck(this,yt),$t=Et.call(this,Ct),_defineProperty$1(_assertThisInitialized$1($t),"state",{resetCount:0}),_defineProperty$1(_assertThisInitialized$1($t),"cancelRegisterFunc",null),_defineProperty$1(_assertThisInitialized$1($t),"mounted",!1),_defineProperty$1(_assertThisInitialized$1($t),"touched",!1),_defineProperty$1(_assertThisInitialized$1($t),"dirty",!1),_defineProperty$1(_assertThisInitialized$1($t),"validatePromise",void 0),_defineProperty$1(_assertThisInitialized$1($t),"prevValidating",void 0),_defineProperty$1(_assertThisInitialized$1($t),"errors",EMPTY_ERRORS),_defineProperty$1(_assertThisInitialized$1($t),"warnings",EMPTY_ERRORS),_defineProperty$1(_assertThisInitialized$1($t),"cancelRegister",function(){var Ft=$t.props,kt=Ft.preserve,Mt=Ft.isListField,Nt=Ft.name;$t.cancelRegisterFunc&&$t.cancelRegisterFunc(Mt,kt,getNamePath(Nt)),$t.cancelRegisterFunc=null}),_defineProperty$1(_assertThisInitialized$1($t),"getNamePath",function(){var Ft=$t.props,kt=Ft.name,Mt=Ft.fieldContext,Nt=Mt.prefixName,jt=Nt===void 0?[]:Nt;return kt!==void 0?[].concat(_toConsumableArray(jt),_toConsumableArray(kt)):[]}),_defineProperty$1(_assertThisInitialized$1($t),"getRules",function(){var Ft=$t.props,kt=Ft.rules,Mt=kt===void 0?[]:kt,Nt=Ft.fieldContext;return Mt.map(function(jt){return typeof jt=="function"?jt(Nt):jt})}),_defineProperty$1(_assertThisInitialized$1($t),"refresh",function(){$t.mounted&&$t.setState(function(Ft){var kt=Ft.resetCount;return{resetCount:kt+1}})}),_defineProperty$1(_assertThisInitialized$1($t),"metaCache",null),_defineProperty$1(_assertThisInitialized$1($t),"triggerMetaEvent",function(Ft){var kt=$t.props.onMetaChange;if(kt){var Mt=_objectSpread2(_objectSpread2({},$t.getMeta()),{},{destroy:Ft});isEqual$3($t.metaCache,Mt)||kt(Mt),$t.metaCache=Mt}else $t.metaCache=null}),_defineProperty$1(_assertThisInitialized$1($t),"onStoreChange",function(Ft,kt,Mt){var Nt=$t.props,jt=Nt.shouldUpdate,zt=Nt.dependencies,Vt=zt===void 0?[]:zt,Kt=Nt.onReset,Xt=Mt.store,Qt=$t.getNamePath(),Zt=$t.getValue(Ft),dr=$t.getValue(Xt),cr=kt&&containsNamePath(kt,Qt);switch(Mt.type==="valueUpdate"&&Mt.source==="external"&&!isEqual$3(Zt,dr)&&($t.touched=!0,$t.dirty=!0,$t.validatePromise=null,$t.errors=EMPTY_ERRORS,$t.warnings=EMPTY_ERRORS,$t.triggerMetaEvent()),Mt.type){case"reset":if(!kt||cr){$t.touched=!1,$t.dirty=!1,$t.validatePromise=void 0,$t.errors=EMPTY_ERRORS,$t.warnings=EMPTY_ERRORS,$t.triggerMetaEvent(),Kt==null||Kt(),$t.refresh();return}break;case"remove":{if(jt){$t.reRender();return}break}case"setField":{var Er=Mt.data;if(cr){"touched"in Er&&($t.touched=Er.touched),"validating"in Er&&!("originRCField"in Er)&&($t.validatePromise=Er.validating?Promise.resolve([]):null),"errors"in Er&&($t.errors=Er.errors||EMPTY_ERRORS),"warnings"in Er&&($t.warnings=Er.warnings||EMPTY_ERRORS),$t.dirty=!0,$t.triggerMetaEvent(),$t.reRender();return}else if("value"in Er&&containsNamePath(kt,Qt,!0)){$t.reRender();return}if(jt&&!Qt.length&&requireUpdate(jt,Ft,Xt,Zt,dr,Mt)){$t.reRender();return}break}case"dependenciesUpdate":{var pr=Vt.map(getNamePath);if(pr.some(function(gr){return containsNamePath(Mt.relatedFields,gr)})){$t.reRender();return}break}default:if(cr||(!Vt.length||Qt.length||jt)&&requireUpdate(jt,Ft,Xt,Zt,dr,Mt)){$t.reRender();return}break}jt===!0&&$t.reRender()}),_defineProperty$1(_assertThisInitialized$1($t),"validateRules",function(Ft){var kt=$t.getNamePath(),Mt=$t.getValue(),Nt=Ft||{},jt=Nt.triggerName,zt=Nt.validateOnly,Vt=zt===void 0?!1:zt,Kt=Promise.resolve().then(_asyncToGenerator(_regeneratorRuntime().mark(function Xt(){var Qt,Zt,dr,cr,Er,pr,gr;return _regeneratorRuntime().wrap(function(yr){for(;;)switch(yr.prev=yr.next){case 0:if($t.mounted){yr.next=2;break}return yr.abrupt("return",[]);case 2:if(Qt=$t.props,Zt=Qt.validateFirst,dr=Zt===void 0?!1:Zt,cr=Qt.messageVariables,Er=Qt.validateDebounce,pr=$t.getRules(),jt&&(pr=pr.filter(function(xr){return xr}).filter(function(xr){var rr=xr.validateTrigger;if(!rr)return!0;var Lt=toArray$4(rr);return Lt.includes(jt)})),!(Er&&jt)){yr.next=10;break}return yr.next=8,new Promise(function(xr){setTimeout(xr,Er)});case 8:if($t.validatePromise===Kt){yr.next=10;break}return yr.abrupt("return",[]);case 10:return gr=validateRules(kt,Mt,pr,Ft,dr,cr),gr.catch(function(xr){return xr}).then(function(){var xr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:EMPTY_ERRORS;if($t.validatePromise===Kt){var rr;$t.validatePromise=null;var Lt=[],Ht=[];(rr=xr.forEach)===null||rr===void 0||rr.call(xr,function(Wt){var Gt=Wt.rule.warningOnly,Yt=Wt.errors,er=Yt===void 0?EMPTY_ERRORS:Yt;Gt?Ht.push.apply(Ht,_toConsumableArray(er)):Lt.push.apply(Lt,_toConsumableArray(er))}),$t.errors=Lt,$t.warnings=Ht,$t.triggerMetaEvent(),$t.reRender()}}),yr.abrupt("return",gr);case 13:case"end":return yr.stop()}},Xt)})));return Vt||($t.validatePromise=Kt,$t.dirty=!0,$t.errors=EMPTY_ERRORS,$t.warnings=EMPTY_ERRORS,$t.triggerMetaEvent(),$t.reRender()),Kt}),_defineProperty$1(_assertThisInitialized$1($t),"isFieldValidating",function(){return!!$t.validatePromise}),_defineProperty$1(_assertThisInitialized$1($t),"isFieldTouched",function(){return $t.touched}),_defineProperty$1(_assertThisInitialized$1($t),"isFieldDirty",function(){if($t.dirty||$t.props.initialValue!==void 0)return!0;var Ft=$t.props.fieldContext,kt=Ft.getInternalHooks(HOOK_MARK),Mt=kt.getInitialValue;return Mt($t.getNamePath())!==void 0}),_defineProperty$1(_assertThisInitialized$1($t),"getErrors",function(){return $t.errors}),_defineProperty$1(_assertThisInitialized$1($t),"getWarnings",function(){return $t.warnings}),_defineProperty$1(_assertThisInitialized$1($t),"isListField",function(){return $t.props.isListField}),_defineProperty$1(_assertThisInitialized$1($t),"isList",function(){return $t.props.isList}),_defineProperty$1(_assertThisInitialized$1($t),"isPreserve",function(){return $t.props.preserve}),_defineProperty$1(_assertThisInitialized$1($t),"getMeta",function(){$t.prevValidating=$t.isFieldValidating();var Ft={touched:$t.isFieldTouched(),validating:$t.prevValidating,errors:$t.errors,warnings:$t.warnings,name:$t.getNamePath(),validated:$t.validatePromise===null};return Ft}),_defineProperty$1(_assertThisInitialized$1($t),"getOnlyChild",function(Ft){if(typeof Ft=="function"){var kt=$t.getMeta();return _objectSpread2(_objectSpread2({},$t.getOnlyChild(Ft($t.getControlled(),kt,$t.props.fieldContext))),{},{isFunction:!0})}var Mt=toArray$5(Ft);return Mt.length!==1||!reactExports.isValidElement(Mt[0])?{child:Mt,isFunction:!1}:{child:Mt[0],isFunction:!1}}),_defineProperty$1(_assertThisInitialized$1($t),"getValue",function(Ft){var kt=$t.props.fieldContext.getFieldsValue,Mt=$t.getNamePath();return get$3(Ft||kt(!0),Mt)}),_defineProperty$1(_assertThisInitialized$1($t),"getControlled",function(){var Ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},kt=$t.props,Mt=kt.name,Nt=kt.trigger,jt=kt.validateTrigger,zt=kt.getValueFromEvent,Vt=kt.normalize,Kt=kt.valuePropName,Xt=kt.getValueProps,Qt=kt.fieldContext,Zt=jt!==void 0?jt:Qt.validateTrigger,dr=$t.getNamePath(),cr=Qt.getInternalHooks,Er=Qt.getFieldsValue,pr=cr(HOOK_MARK),gr=pr.dispatch,vr=$t.getValue(),yr=Xt||function(Wt){return _defineProperty$1({},Kt,Wt)},xr=Ft[Nt],rr=Mt!==void 0?yr(vr):{},Lt=_objectSpread2(_objectSpread2({},Ft),rr);Lt[Nt]=function(){$t.touched=!0,$t.dirty=!0,$t.triggerMetaEvent();for(var Wt,Gt=arguments.length,Yt=new Array(Gt),er=0;er<Gt;er++)Yt[er]=arguments[er];zt?Wt=zt.apply(void 0,Yt):Wt=defaultGetValueFromEvent.apply(void 0,[Kt].concat(Yt)),Vt&&(Wt=Vt(Wt,vr,Er(!0))),gr({type:"updateValue",namePath:dr,value:Wt}),xr&&xr.apply(void 0,Yt)};var Ht=toArray$4(Zt||[]);return Ht.forEach(function(Wt){var Gt=Lt[Wt];Lt[Wt]=function(){Gt&&Gt.apply(void 0,arguments);var Yt=$t.props.rules;Yt&&Yt.length&&gr({type:"validateField",namePath:dr,triggerName:Wt})}}),Lt}),Ct.fieldContext){var At=Ct.fieldContext.getInternalHooks,Bt=At(HOOK_MARK),Dt=Bt.initEntityValue;Dt(_assertThisInitialized$1($t))}return $t}return _createClass$1(yt,[{key:"componentDidMount",value:function(){var $t=this.props,At=$t.shouldUpdate,Bt=$t.fieldContext;if(this.mounted=!0,Bt){var Dt=Bt.getInternalHooks,Ft=Dt(HOOK_MARK),kt=Ft.registerField;this.cancelRegisterFunc=kt(this)}At===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var $t=this.state.resetCount,At=this.props.children,Bt=this.getOnlyChild(At),Dt=Bt.child,Ft=Bt.isFunction,kt;return Ft?kt=Dt:reactExports.isValidElement(Dt)?kt=reactExports.cloneElement(Dt,this.getControlled(Dt.props)):(warningOnce(!Dt,"`children` of Field is not validate ReactElement."),kt=Dt),reactExports.createElement(reactExports.Fragment,{key:$t},kt)}}]),yt}(reactExports.Component);_defineProperty$1(Field,"contextType",Context);_defineProperty$1(Field,"defaultProps",{trigger:"onChange",valuePropName:"value"});function WrapperField(ht){var Et=ht.name,yt=_objectWithoutProperties$1(ht,_excluded$J),Ct=reactExports.useContext(Context),$t=reactExports.useContext(ListContext),At=Et!==void 0?getNamePath(Et):void 0,Bt="keep";return yt.isListField||(Bt="_".concat((At||[]).join("_"))),reactExports.createElement(Field,_extends$5({key:Bt,name:At,isListField:!!$t},yt,{fieldContext:Ct}))}function List$1(ht){var Et=ht.name,yt=ht.initialValue,Ct=ht.children,$t=ht.rules,At=ht.validateTrigger,Bt=ht.isListField,Dt=reactExports.useContext(Context),Ft=reactExports.useContext(ListContext),kt=reactExports.useRef({keys:[],id:0}),Mt=kt.current,Nt=reactExports.useMemo(function(){var Kt=getNamePath(Dt.prefixName)||[];return[].concat(_toConsumableArray(Kt),_toConsumableArray(getNamePath(Et)))},[Dt.prefixName,Et]),jt=reactExports.useMemo(function(){return _objectSpread2(_objectSpread2({},Dt),{},{prefixName:Nt})},[Dt,Nt]),zt=reactExports.useMemo(function(){return{getKey:function(Xt){var Qt=Nt.length,Zt=Xt[Qt];return[Mt.keys[Zt],Xt.slice(Qt+1)]}}},[Nt]);if(typeof Ct!="function")return warningOnce(!1,"Form.List only accepts function as children."),null;var Vt=function(Xt,Qt,Zt){var dr=Zt.source;return dr==="internal"?!1:Xt!==Qt};return reactExports.createElement(ListContext.Provider,{value:zt},reactExports.createElement(Context.Provider,{value:jt},reactExports.createElement(WrapperField,{name:[],shouldUpdate:Vt,rules:$t,validateTrigger:At,initialValue:yt,isList:!0,isListField:Bt??!!Ft},function(Kt,Xt){var Qt=Kt.value,Zt=Qt===void 0?[]:Qt,dr=Kt.onChange,cr=Dt.getFieldValue,Er=function(){var yr=cr(Nt||[]);return yr||[]},pr={add:function(yr,xr){var rr=Er();xr>=0&&xr<=rr.length?(Mt.keys=[].concat(_toConsumableArray(Mt.keys.slice(0,xr)),[Mt.id],_toConsumableArray(Mt.keys.slice(xr))),dr([].concat(_toConsumableArray(rr.slice(0,xr)),[yr],_toConsumableArray(rr.slice(xr))))):(Mt.keys=[].concat(_toConsumableArray(Mt.keys),[Mt.id]),dr([].concat(_toConsumableArray(rr),[yr]))),Mt.id+=1},remove:function(yr){var xr=Er(),rr=new Set(Array.isArray(yr)?yr:[yr]);rr.size<=0||(Mt.keys=Mt.keys.filter(function(Lt,Ht){return!rr.has(Ht)}),dr(xr.filter(function(Lt,Ht){return!rr.has(Ht)})))},move:function(yr,xr){if(yr!==xr){var rr=Er();yr<0||yr>=rr.length||xr<0||xr>=rr.length||(Mt.keys=move(Mt.keys,yr,xr),dr(move(rr,yr,xr)))}}},gr=Zt||[];return Array.isArray(gr)||(gr=[]),Ct(gr.map(function(vr,yr){var xr=Mt.keys[yr];return xr===void 0&&(Mt.keys[yr]=Mt.id,xr=Mt.keys[yr],Mt.id+=1),{name:yr,key:xr,isListField:!0}}),pr,Xt)})))}function allPromiseFinish(ht){var Et=!1,yt=ht.length,Ct=[];return ht.length?new Promise(function($t,At){ht.forEach(function(Bt,Dt){Bt.catch(function(Ft){return Et=!0,Ft}).then(function(Ft){yt-=1,Ct[Dt]=Ft,!(yt>0)&&(Et&&At(Ct),$t(Ct))})})}):Promise.resolve([])}var SPLIT="__@field_split__";function normalize$2(ht){return ht.map(function(Et){return"".concat(_typeof$1(Et),":").concat(Et)}).join(SPLIT)}var NameMap=function(){function ht(){_classCallCheck(this,ht),_defineProperty$1(this,"kvs",new Map)}return _createClass$1(ht,[{key:"set",value:function(yt,Ct){this.kvs.set(normalize$2(yt),Ct)}},{key:"get",value:function(yt){return this.kvs.get(normalize$2(yt))}},{key:"update",value:function(yt,Ct){var $t=this.get(yt),At=Ct($t);At?this.set(yt,At):this.delete(yt)}},{key:"delete",value:function(yt){this.kvs.delete(normalize$2(yt))}},{key:"map",value:function(yt){return _toConsumableArray(this.kvs.entries()).map(function(Ct){var $t=_slicedToArray(Ct,2),At=$t[0],Bt=$t[1],Dt=At.split(SPLIT);return yt({key:Dt.map(function(Ft){var kt=Ft.match(/^([^:]*):(.*)$/),Mt=_slicedToArray(kt,3),Nt=Mt[1],jt=Mt[2];return Nt==="number"?Number(jt):jt}),value:Bt})})}},{key:"toJSON",value:function(){var yt={};return this.map(function(Ct){var $t=Ct.key,At=Ct.value;return yt[$t.join(".")]=At,null}),yt}}]),ht}(),_excluded$I=["name"],FormStore=_createClass$1(function ht(Et){var yt=this;_classCallCheck(this,ht),_defineProperty$1(this,"formHooked",!1),_defineProperty$1(this,"forceRootUpdate",void 0),_defineProperty$1(this,"subscribable",!0),_defineProperty$1(this,"store",{}),_defineProperty$1(this,"fieldEntities",[]),_defineProperty$1(this,"initialValues",{}),_defineProperty$1(this,"callbacks",{}),_defineProperty$1(this,"validateMessages",null),_defineProperty$1(this,"preserve",null),_defineProperty$1(this,"lastValidatePromise",null),_defineProperty$1(this,"getForm",function(){return{getFieldValue:yt.getFieldValue,getFieldsValue:yt.getFieldsValue,getFieldError:yt.getFieldError,getFieldWarning:yt.getFieldWarning,getFieldsError:yt.getFieldsError,isFieldsTouched:yt.isFieldsTouched,isFieldTouched:yt.isFieldTouched,isFieldValidating:yt.isFieldValidating,isFieldsValidating:yt.isFieldsValidating,resetFields:yt.resetFields,setFields:yt.setFields,setFieldValue:yt.setFieldValue,setFieldsValue:yt.setFieldsValue,validateFields:yt.validateFields,submit:yt.submit,_init:!0,getInternalHooks:yt.getInternalHooks}}),_defineProperty$1(this,"getInternalHooks",function(Ct){return Ct===HOOK_MARK?(yt.formHooked=!0,{dispatch:yt.dispatch,initEntityValue:yt.initEntityValue,registerField:yt.registerField,useSubscribe:yt.useSubscribe,setInitialValues:yt.setInitialValues,destroyForm:yt.destroyForm,setCallbacks:yt.setCallbacks,setValidateMessages:yt.setValidateMessages,getFields:yt.getFields,setPreserve:yt.setPreserve,getInitialValue:yt.getInitialValue,registerWatch:yt.registerWatch}):(warningOnce(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),_defineProperty$1(this,"useSubscribe",function(Ct){yt.subscribable=Ct}),_defineProperty$1(this,"prevWithoutPreserves",null),_defineProperty$1(this,"setInitialValues",function(Ct,$t){if(yt.initialValues=Ct||{},$t){var At,Bt=merge$3(Ct,yt.store);(At=yt.prevWithoutPreserves)===null||At===void 0||At.map(function(Dt){var Ft=Dt.key;Bt=set$2(Bt,Ft,get$3(Ct,Ft))}),yt.prevWithoutPreserves=null,yt.updateStore(Bt)}}),_defineProperty$1(this,"destroyForm",function(Ct){if(Ct)yt.updateStore({});else{var $t=new NameMap;yt.getFieldEntities(!0).forEach(function(At){yt.isMergedPreserve(At.isPreserve())||$t.set(At.getNamePath(),!0)}),yt.prevWithoutPreserves=$t}}),_defineProperty$1(this,"getInitialValue",function(Ct){var $t=get$3(yt.initialValues,Ct);return Ct.length?merge$3($t):$t}),_defineProperty$1(this,"setCallbacks",function(Ct){yt.callbacks=Ct}),_defineProperty$1(this,"setValidateMessages",function(Ct){yt.validateMessages=Ct}),_defineProperty$1(this,"setPreserve",function(Ct){yt.preserve=Ct}),_defineProperty$1(this,"watchList",[]),_defineProperty$1(this,"registerWatch",function(Ct){return yt.watchList.push(Ct),function(){yt.watchList=yt.watchList.filter(function($t){return $t!==Ct})}}),_defineProperty$1(this,"notifyWatch",function(){var Ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(yt.watchList.length){var $t=yt.getFieldsValue(),At=yt.getFieldsValue(!0);yt.watchList.forEach(function(Bt){Bt($t,At,Ct)})}}),_defineProperty$1(this,"timeoutId",null),_defineProperty$1(this,"warningUnhooked",function(){}),_defineProperty$1(this,"updateStore",function(Ct){yt.store=Ct}),_defineProperty$1(this,"getFieldEntities",function(){var Ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return Ct?yt.fieldEntities.filter(function($t){return $t.getNamePath().length}):yt.fieldEntities}),_defineProperty$1(this,"getFieldsMap",function(){var Ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,$t=new NameMap;return yt.getFieldEntities(Ct).forEach(function(At){var Bt=At.getNamePath();$t.set(Bt,At)}),$t}),_defineProperty$1(this,"getFieldEntitiesForNamePathList",function(Ct){if(!Ct)return yt.getFieldEntities(!0);var $t=yt.getFieldsMap(!0);return Ct.map(function(At){var Bt=getNamePath(At);return $t.get(Bt)||{INVALIDATE_NAME_PATH:getNamePath(At)}})}),_defineProperty$1(this,"getFieldsValue",function(Ct,$t){yt.warningUnhooked();var At,Bt,Dt;if(Ct===!0||Array.isArray(Ct)?(At=Ct,Bt=$t):Ct&&_typeof$1(Ct)==="object"&&(Dt=Ct.strict,Bt=Ct.filter),At===!0&&!Bt)return yt.store;var Ft=yt.getFieldEntitiesForNamePathList(Array.isArray(At)?At:null),kt=[];return Ft.forEach(function(Mt){var Nt,jt,zt="INVALIDATE_NAME_PATH"in Mt?Mt.INVALIDATE_NAME_PATH:Mt.getNamePath();if(Dt){var Vt,Kt;if((Vt=(Kt=Mt).isList)!==null&&Vt!==void 0&&Vt.call(Kt))return}else if(!At&&(Nt=(jt=Mt).isListField)!==null&&Nt!==void 0&&Nt.call(jt))return;if(!Bt)kt.push(zt);else{var Xt="getMeta"in Mt?Mt.getMeta():null;Bt(Xt)&&kt.push(zt)}}),cloneByNamePathList(yt.store,kt.map(getNamePath))}),_defineProperty$1(this,"getFieldValue",function(Ct){yt.warningUnhooked();var $t=getNamePath(Ct);return get$3(yt.store,$t)}),_defineProperty$1(this,"getFieldsError",function(Ct){yt.warningUnhooked();var $t=yt.getFieldEntitiesForNamePathList(Ct);return $t.map(function(At,Bt){return At&&!("INVALIDATE_NAME_PATH"in At)?{name:At.getNamePath(),errors:At.getErrors(),warnings:At.getWarnings()}:{name:getNamePath(Ct[Bt]),errors:[],warnings:[]}})}),_defineProperty$1(this,"getFieldError",function(Ct){yt.warningUnhooked();var $t=getNamePath(Ct),At=yt.getFieldsError([$t])[0];return At.errors}),_defineProperty$1(this,"getFieldWarning",function(Ct){yt.warningUnhooked();var $t=getNamePath(Ct),At=yt.getFieldsError([$t])[0];return At.warnings}),_defineProperty$1(this,"isFieldsTouched",function(){yt.warningUnhooked();for(var Ct=arguments.length,$t=new Array(Ct),At=0;At<Ct;At++)$t[At]=arguments[At];var Bt=$t[0],Dt=$t[1],Ft,kt=!1;$t.length===0?Ft=null:$t.length===1?Array.isArray(Bt)?(Ft=Bt.map(getNamePath),kt=!1):(Ft=null,kt=Bt):(Ft=Bt.map(getNamePath),kt=Dt);var Mt=yt.getFieldEntities(!0),Nt=function(Xt){return Xt.isFieldTouched()};if(!Ft)return kt?Mt.every(function(Kt){return Nt(Kt)||Kt.isList()}):Mt.some(Nt);var jt=new NameMap;Ft.forEach(function(Kt){jt.set(Kt,[])}),Mt.forEach(function(Kt){var Xt=Kt.getNamePath();Ft.forEach(function(Qt){Qt.every(function(Zt,dr){return Xt[dr]===Zt})&&jt.update(Qt,function(Zt){return[].concat(_toConsumableArray(Zt),[Kt])})})});var zt=function(Xt){return Xt.some(Nt)},Vt=jt.map(function(Kt){var Xt=Kt.value;return Xt});return kt?Vt.every(zt):Vt.some(zt)}),_defineProperty$1(this,"isFieldTouched",function(Ct){return yt.warningUnhooked(),yt.isFieldsTouched([Ct])}),_defineProperty$1(this,"isFieldsValidating",function(Ct){yt.warningUnhooked();var $t=yt.getFieldEntities();if(!Ct)return $t.some(function(Bt){return Bt.isFieldValidating()});var At=Ct.map(getNamePath);return $t.some(function(Bt){var Dt=Bt.getNamePath();return containsNamePath(At,Dt)&&Bt.isFieldValidating()})}),_defineProperty$1(this,"isFieldValidating",function(Ct){return yt.warningUnhooked(),yt.isFieldsValidating([Ct])}),_defineProperty$1(this,"resetWithFieldInitialValue",function(){var Ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},$t=new NameMap,At=yt.getFieldEntities(!0);At.forEach(function(Ft){var kt=Ft.props.initialValue,Mt=Ft.getNamePath();if(kt!==void 0){var Nt=$t.get(Mt)||new Set;Nt.add({entity:Ft,value:kt}),$t.set(Mt,Nt)}});var Bt=function(kt){kt.forEach(function(Mt){var Nt=Mt.props.initialValue;if(Nt!==void 0){var jt=Mt.getNamePath(),zt=yt.getInitialValue(jt);if(zt!==void 0)warningOnce(!1,"Form already set 'initialValues' with path '".concat(jt.join("."),"'. Field can not overwrite it."));else{var Vt=$t.get(jt);if(Vt&&Vt.size>1)warningOnce(!1,"Multiple Field with path '".concat(jt.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(Vt){var Kt=yt.getFieldValue(jt),Xt=Mt.isListField();!Xt&&(!Ct.skipExist||Kt===void 0)&&yt.updateStore(set$2(yt.store,jt,_toConsumableArray(Vt)[0].value))}}}})},Dt;Ct.entities?Dt=Ct.entities:Ct.namePathList?(Dt=[],Ct.namePathList.forEach(function(Ft){var kt=$t.get(Ft);if(kt){var Mt;(Mt=Dt).push.apply(Mt,_toConsumableArray(_toConsumableArray(kt).map(function(Nt){return Nt.entity})))}})):Dt=At,Bt(Dt)}),_defineProperty$1(this,"resetFields",function(Ct){yt.warningUnhooked();var $t=yt.store;if(!Ct){yt.updateStore(merge$3(yt.initialValues)),yt.resetWithFieldInitialValue(),yt.notifyObservers($t,null,{type:"reset"}),yt.notifyWatch();return}var At=Ct.map(getNamePath);At.forEach(function(Bt){var Dt=yt.getInitialValue(Bt);yt.updateStore(set$2(yt.store,Bt,Dt))}),yt.resetWithFieldInitialValue({namePathList:At}),yt.notifyObservers($t,At,{type:"reset"}),yt.notifyWatch(At)}),_defineProperty$1(this,"setFields",function(Ct){yt.warningUnhooked();var $t=yt.store,At=[];Ct.forEach(function(Bt){var Dt=Bt.name,Ft=_objectWithoutProperties$1(Bt,_excluded$I),kt=getNamePath(Dt);At.push(kt),"value"in Ft&&yt.updateStore(set$2(yt.store,kt,Ft.value)),yt.notifyObservers($t,[kt],{type:"setField",data:Bt})}),yt.notifyWatch(At)}),_defineProperty$1(this,"getFields",function(){var Ct=yt.getFieldEntities(!0),$t=Ct.map(function(At){var Bt=At.getNamePath(),Dt=At.getMeta(),Ft=_objectSpread2(_objectSpread2({},Dt),{},{name:Bt,value:yt.getFieldValue(Bt)});return Object.defineProperty(Ft,"originRCField",{value:!0}),Ft});return $t}),_defineProperty$1(this,"initEntityValue",function(Ct){var $t=Ct.props.initialValue;if($t!==void 0){var At=Ct.getNamePath(),Bt=get$3(yt.store,At);Bt===void 0&&yt.updateStore(set$2(yt.store,At,$t))}}),_defineProperty$1(this,"isMergedPreserve",function(Ct){var $t=Ct!==void 0?Ct:yt.preserve;return $t??!0}),_defineProperty$1(this,"registerField",function(Ct){yt.fieldEntities.push(Ct);var $t=Ct.getNamePath();if(yt.notifyWatch([$t]),Ct.props.initialValue!==void 0){var At=yt.store;yt.resetWithFieldInitialValue({entities:[Ct],skipExist:!0}),yt.notifyObservers(At,[Ct.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(Bt,Dt){var Ft=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(yt.fieldEntities=yt.fieldEntities.filter(function(Nt){return Nt!==Ct}),!yt.isMergedPreserve(Dt)&&(!Bt||Ft.length>1)){var kt=Bt?void 0:yt.getInitialValue($t);if($t.length&&yt.getFieldValue($t)!==kt&&yt.fieldEntities.every(function(Nt){return!matchNamePath(Nt.getNamePath(),$t)})){var Mt=yt.store;yt.updateStore(set$2(Mt,$t,kt,!0)),yt.notifyObservers(Mt,[$t],{type:"remove"}),yt.triggerDependenciesUpdate(Mt,$t)}}yt.notifyWatch([$t])}}),_defineProperty$1(this,"dispatch",function(Ct){switch(Ct.type){case"updateValue":{var $t=Ct.namePath,At=Ct.value;yt.updateValue($t,At);break}case"validateField":{var Bt=Ct.namePath,Dt=Ct.triggerName;yt.validateFields([Bt],{triggerName:Dt});break}}}),_defineProperty$1(this,"notifyObservers",function(Ct,$t,At){if(yt.subscribable){var Bt=_objectSpread2(_objectSpread2({},At),{},{store:yt.getFieldsValue(!0)});yt.getFieldEntities().forEach(function(Dt){var Ft=Dt.onStoreChange;Ft(Ct,$t,Bt)})}else yt.forceRootUpdate()}),_defineProperty$1(this,"triggerDependenciesUpdate",function(Ct,$t){var At=yt.getDependencyChildrenFields($t);return At.length&&yt.validateFields(At),yt.notifyObservers(Ct,At,{type:"dependenciesUpdate",relatedFields:[$t].concat(_toConsumableArray(At))}),At}),_defineProperty$1(this,"updateValue",function(Ct,$t){var At=getNamePath(Ct),Bt=yt.store;yt.updateStore(set$2(yt.store,At,$t)),yt.notifyObservers(Bt,[At],{type:"valueUpdate",source:"internal"}),yt.notifyWatch([At]);var Dt=yt.triggerDependenciesUpdate(Bt,At),Ft=yt.callbacks.onValuesChange;if(Ft){var kt=cloneByNamePathList(yt.store,[At]);Ft(kt,yt.getFieldsValue())}yt.triggerOnFieldsChange([At].concat(_toConsumableArray(Dt)))}),_defineProperty$1(this,"setFieldsValue",function(Ct){yt.warningUnhooked();var $t=yt.store;if(Ct){var At=merge$3(yt.store,Ct);yt.updateStore(At)}yt.notifyObservers($t,null,{type:"valueUpdate",source:"external"}),yt.notifyWatch()}),_defineProperty$1(this,"setFieldValue",function(Ct,$t){yt.setFields([{name:Ct,value:$t}])}),_defineProperty$1(this,"getDependencyChildrenFields",function(Ct){var $t=new Set,At=[],Bt=new NameMap;yt.getFieldEntities().forEach(function(Ft){var kt=Ft.props.dependencies;(kt||[]).forEach(function(Mt){var Nt=getNamePath(Mt);Bt.update(Nt,function(){var jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return jt.add(Ft),jt})})});var Dt=function Ft(kt){var Mt=Bt.get(kt)||new Set;Mt.forEach(function(Nt){if(!$t.has(Nt)){$t.add(Nt);var jt=Nt.getNamePath();Nt.isFieldDirty()&&jt.length&&(At.push(jt),Ft(jt))}})};return Dt(Ct),At}),_defineProperty$1(this,"triggerOnFieldsChange",function(Ct,$t){var At=yt.callbacks.onFieldsChange;if(At){var Bt=yt.getFields();if($t){var Dt=new NameMap;$t.forEach(function(kt){var Mt=kt.name,Nt=kt.errors;Dt.set(Mt,Nt)}),Bt.forEach(function(kt){kt.errors=Dt.get(kt.name)||kt.errors})}var Ft=Bt.filter(function(kt){var Mt=kt.name;return containsNamePath(Ct,Mt)});Ft.length&&At(Ft,Bt)}}),_defineProperty$1(this,"validateFields",function(Ct,$t){yt.warningUnhooked();var At,Bt;Array.isArray(Ct)||typeof Ct=="string"||typeof $t=="string"?(At=Ct,Bt=$t):Bt=Ct;var Dt=!!At,Ft=Dt?At.map(getNamePath):[],kt=[],Mt=String(Date.now()),Nt=new Set,jt=Bt||{},zt=jt.recursive,Vt=jt.dirty;yt.getFieldEntities(!0).forEach(function(Zt){if(Dt||Ft.push(Zt.getNamePath()),!(!Zt.props.rules||!Zt.props.rules.length)&&!(Vt&&!Zt.isFieldDirty())){var dr=Zt.getNamePath();if(Nt.add(dr.join(Mt)),!Dt||containsNamePath(Ft,dr,zt)){var cr=Zt.validateRules(_objectSpread2({validateMessages:_objectSpread2(_objectSpread2({},defaultValidateMessages),yt.validateMessages)},Bt));kt.push(cr.then(function(){return{name:dr,errors:[],warnings:[]}}).catch(function(Er){var pr,gr=[],vr=[];return(pr=Er.forEach)===null||pr===void 0||pr.call(Er,function(yr){var xr=yr.rule.warningOnly,rr=yr.errors;xr?vr.push.apply(vr,_toConsumableArray(rr)):gr.push.apply(gr,_toConsumableArray(rr))}),gr.length?Promise.reject({name:dr,errors:gr,warnings:vr}):{name:dr,errors:gr,warnings:vr}}))}}});var Kt=allPromiseFinish(kt);yt.lastValidatePromise=Kt,Kt.catch(function(Zt){return Zt}).then(function(Zt){var dr=Zt.map(function(cr){var Er=cr.name;return Er});yt.notifyObservers(yt.store,dr,{type:"validateFinish"}),yt.triggerOnFieldsChange(dr,Zt)});var Xt=Kt.then(function(){return yt.lastValidatePromise===Kt?Promise.resolve(yt.getFieldsValue(Ft)):Promise.reject([])}).catch(function(Zt){var dr=Zt.filter(function(cr){return cr&&cr.errors.length});return Promise.reject({values:yt.getFieldsValue(Ft),errorFields:dr,outOfDate:yt.lastValidatePromise!==Kt})});Xt.catch(function(Zt){return Zt});var Qt=Ft.filter(function(Zt){return Nt.has(Zt.join(Mt))});return yt.triggerOnFieldsChange(Qt),Xt}),_defineProperty$1(this,"submit",function(){yt.warningUnhooked(),yt.validateFields().then(function(Ct){var $t=yt.callbacks.onFinish;if($t)try{$t(Ct)}catch(At){console.error(At)}}).catch(function(Ct){var $t=yt.callbacks.onFinishFailed;$t&&$t(Ct)})}),this.forceRootUpdate=Et});function useForm$1(ht){var Et=reactExports.useRef(),yt=reactExports.useState({}),Ct=_slicedToArray(yt,2),$t=Ct[1];if(!Et.current)if(ht)Et.current=ht;else{var At=function(){$t({})},Bt=new FormStore(At);Et.current=Bt.getForm()}return[Et.current]}var FormContext$1=reactExports.createContext({triggerFormChange:function ht(){},triggerFormFinish:function ht(){},registerForm:function ht(){},unregisterForm:function ht(){}}),FormProvider$1=function ht(Et){var yt=Et.validateMessages,Ct=Et.onFormChange,$t=Et.onFormFinish,At=Et.children,Bt=reactExports.useContext(FormContext$1),Dt=reactExports.useRef({});return reactExports.createElement(FormContext$1.Provider,{value:_objectSpread2(_objectSpread2({},Bt),{},{validateMessages:_objectSpread2(_objectSpread2({},Bt.validateMessages),yt),triggerFormChange:function(kt,Mt){Ct&&Ct(kt,{changedFields:Mt,forms:Dt.current}),Bt.triggerFormChange(kt,Mt)},triggerFormFinish:function(kt,Mt){$t&&$t(kt,{values:Mt,forms:Dt.current}),Bt.triggerFormFinish(kt,Mt)},registerForm:function(kt,Mt){kt&&(Dt.current=_objectSpread2(_objectSpread2({},Dt.current),{},_defineProperty$1({},kt,Mt))),Bt.registerForm(kt,Mt)},unregisterForm:function(kt){var Mt=_objectSpread2({},Dt.current);delete Mt[kt],Dt.current=Mt,Bt.unregisterForm(kt)}})},At)},_excluded$H=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],Form$2=function ht(Et,yt){var Ct=Et.name,$t=Et.initialValues,At=Et.fields,Bt=Et.form,Dt=Et.preserve,Ft=Et.children,kt=Et.component,Mt=kt===void 0?"form":kt,Nt=Et.validateMessages,jt=Et.validateTrigger,zt=jt===void 0?"onChange":jt,Vt=Et.onValuesChange,Kt=Et.onFieldsChange,Xt=Et.onFinish,Qt=Et.onFinishFailed,Zt=Et.clearOnDestroy,dr=_objectWithoutProperties$1(Et,_excluded$H),cr=reactExports.useRef(null),Er=reactExports.useContext(FormContext$1),pr=useForm$1(Bt),gr=_slicedToArray(pr,1),vr=gr[0],yr=vr.getInternalHooks(HOOK_MARK),xr=yr.useSubscribe,rr=yr.setInitialValues,Lt=yr.setCallbacks,Ht=yr.setValidateMessages,Wt=yr.setPreserve,Gt=yr.destroyForm;reactExports.useImperativeHandle(yt,function(){return _objectSpread2(_objectSpread2({},vr),{},{nativeElement:cr.current})}),reactExports.useEffect(function(){return Er.registerForm(Ct,vr),function(){Er.unregisterForm(Ct)}},[Er,vr,Ct]),Ht(_objectSpread2(_objectSpread2({},Er.validateMessages),Nt)),Lt({onValuesChange:Vt,onFieldsChange:function($r){if(Er.triggerFormChange(Ct,$r),Kt){for(var Tr=arguments.length,Dr=new Array(Tr>1?Tr-1:0),Ar=1;Ar<Tr;Ar++)Dr[Ar-1]=arguments[Ar];Kt.apply(void 0,[$r].concat(Dr))}},onFinish:function($r){Er.triggerFormFinish(Ct,$r),Xt&&Xt($r)},onFinishFailed:Qt}),Wt(Dt);var Yt=reactExports.useRef(null);rr($t,!Yt.current),Yt.current||(Yt.current=!0),reactExports.useEffect(function(){return function(){return Gt(Zt)}},[]);var er,lr=typeof Ft=="function";if(lr){var Jt=vr.getFieldsValue(!0);er=Ft(Jt,vr)}else er=Ft;xr(!lr);var Ut=reactExports.useRef();reactExports.useEffect(function(){isSimilar(Ut.current||[],At||[])||vr.setFields(At||[]),Ut.current=At},[At,vr]);var ir=reactExports.useMemo(function(){return _objectSpread2(_objectSpread2({},vr),{},{validateTrigger:zt})},[vr,zt]),Cr=reactExports.createElement(ListContext.Provider,{value:null},reactExports.createElement(Context.Provider,{value:ir},er));return Mt===!1?Cr:reactExports.createElement(Mt,_extends$5({},dr,{ref:cr,onSubmit:function($r){$r.preventDefault(),$r.stopPropagation(),vr.submit()},onReset:function($r){var Tr;$r.preventDefault(),vr.resetFields(),(Tr=dr.onReset)===null||Tr===void 0||Tr.call(dr,$r)}}),Cr)};function stringify$7(ht){try{return JSON.stringify(ht)}catch{return Math.random()}}function useWatch$1(){for(var ht=arguments.length,Et=new Array(ht),yt=0;yt<ht;yt++)Et[yt]=arguments[yt];var Ct=Et[0],$t=Et[1],At=$t===void 0?{}:$t,Bt=isFormInstance(At)?{form:At}:At,Dt=Bt.form,Ft=reactExports.useState(),kt=_slicedToArray(Ft,2),Mt=kt[0],Nt=kt[1],jt=reactExports.useMemo(function(){return stringify$7(Mt)},[Mt]),zt=reactExports.useRef(jt);zt.current=jt;var Vt=reactExports.useContext(Context),Kt=Dt||Vt,Xt=Kt&&Kt._init,Qt=getNamePath(Ct),Zt=reactExports.useRef(Qt);return Zt.current=Qt,reactExports.useEffect(function(){if(Xt){var dr=Kt.getFieldsValue,cr=Kt.getInternalHooks,Er=cr(HOOK_MARK),pr=Er.registerWatch,gr=function(rr,Lt){var Ht=Bt.preserve?Lt:rr;return typeof Ct=="function"?Ct(Ht):get$3(Ht,Zt.current)},vr=pr(function(xr,rr){var Lt=gr(xr,rr),Ht=stringify$7(Lt);zt.current!==Ht&&(zt.current=Ht,Nt(Lt))}),yr=gr(dr(),dr(!0));return Mt!==yr&&Nt(yr),vr}},[Xt]),Mt}var InternalForm$1=reactExports.forwardRef(Form$2),RefForm=InternalForm$1;RefForm.FormProvider=FormProvider$1;RefForm.Field=WrapperField;RefForm.List=List$1;RefForm.useForm=useForm$1;RefForm.useWatch=useWatch$1;const FormContext=reactExports.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),NoStyleItemContext=reactExports.createContext(null),FormProvider=ht=>{const Et=omit$1(ht,["prefixCls"]);return reactExports.createElement(FormProvider$1,Object.assign({},Et))},FormItemPrefixContext=reactExports.createContext({prefixCls:""}),FormItemInputContext=reactExports.createContext({}),NoFormStyle=ht=>{let{children:Et,status:yt,override:Ct}=ht;const $t=reactExports.useContext(FormItemInputContext),At=reactExports.useMemo(()=>{const Bt=Object.assign({},$t);return Ct&&delete Bt.isFormItemInput,yt&&(delete Bt.status,delete Bt.hasFeedback,delete Bt.feedbackIcon),Bt},[yt,Ct,$t]);return reactExports.createElement(FormItemInputContext.Provider,{value:At},Et)},VariantContext=reactExports.createContext(void 0),ContextIsolator=ht=>{const{space:Et,form:yt,children:Ct}=ht;if(Ct==null)return null;let $t=Ct;return yt&&($t=React$8.createElement(NoFormStyle,{override:!0,status:!0},$t)),Et&&($t=React$8.createElement(NoCompactStyle,null,$t)),$t};function pickClosable(ht){if(ht)return{closable:ht.closable,closeIcon:ht.closeIcon}}function useClosableConfig(ht){const{closable:Et,closeIcon:yt}=ht||{};return React$8.useMemo(()=>{if(!Et&&(Et===!1||yt===!1||yt===null))return!1;if(Et===void 0&&yt===void 0)return null;let Ct={closeIcon:typeof yt!="boolean"&&yt!==null?yt:void 0};return Et&&typeof Et=="object"&&(Ct=Object.assign(Object.assign({},Ct),Et)),Ct},[Et,yt])}function assignWithoutUndefined(){const ht={};for(var Et=arguments.length,yt=new Array(Et),Ct=0;Ct<Et;Ct++)yt[Ct]=arguments[Ct];return yt.forEach($t=>{$t&&Object.keys($t).forEach(At=>{$t[At]!==void 0&&(ht[At]=$t[At])})}),ht}const EmptyFallbackCloseCollection={};function useClosable(ht,Et){let yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:EmptyFallbackCloseCollection;const Ct=useClosableConfig(ht),$t=useClosableConfig(Et),At=React$8.useMemo(()=>Object.assign({closeIcon:React$8.createElement(RefIcon$r,null)},yt),[yt]),Bt=React$8.useMemo(()=>Ct===!1?!1:Ct?assignWithoutUndefined(At,$t,Ct):$t===!1?!1:$t?assignWithoutUndefined(At,$t):At.closable?At:!1,[Ct,$t,At]);return React$8.useMemo(()=>{if(Bt===!1)return[!1,null];const{closeIconRender:Dt}=At,{closeIcon:Ft}=Bt;let kt=Ft;if(kt!=null){Dt&&(kt=Dt(Ft));const Mt=pickAttrs(Bt,!0);Object.keys(Mt).length&&(kt=React$8.isValidElement(kt)?React$8.cloneElement(kt,Mt):React$8.createElement("span",Object.assign({},Mt),kt))}return[!0,kt]},[Bt,At])}var isStyleNameSupport=function ht(Et){if(canUseDom()&&window.document.documentElement){var yt=Array.isArray(Et)?Et:[Et],Ct=window.document.documentElement;return yt.some(function($t){return $t in Ct.style})}return!1},isStyleValueSupport=function ht(Et,yt){if(!isStyleNameSupport(Et))return!1;var Ct=document.createElement("div"),$t=Ct.style[Et];return Ct.style[Et]=yt,Ct.style[Et]!==$t};function isStyleSupport(ht,Et){return!Array.isArray(ht)&&Et!==void 0?isStyleValueSupport(ht,Et):isStyleNameSupport(ht)}const canUseDocElement=()=>canUseDom()&&window.document.documentElement,Element$1=ht=>{const{prefixCls:Et,className:yt,style:Ct,size:$t,shape:At}=ht,Bt=cls({[`${Et}-lg`]:$t==="large",[`${Et}-sm`]:$t==="small"}),Dt=cls({[`${Et}-circle`]:At==="circle",[`${Et}-square`]:At==="square",[`${Et}-round`]:At==="round"}),Ft=reactExports.useMemo(()=>typeof $t=="number"?{width:$t,height:$t,lineHeight:`${$t}px`}:{},[$t]);return reactExports.createElement("span",{className:cls(Et,Bt,Dt,yt),style:Object.assign(Object.assign({},Ft),Ct)})},skeletonClsLoading=new Keyframe("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),genSkeletonElementCommonSize=ht=>({height:ht,lineHeight:unit(ht)}),genSkeletonElementAvatarSize=ht=>Object.assign({width:ht},genSkeletonElementCommonSize(ht)),genSkeletonColor=ht=>({background:ht.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:skeletonClsLoading,animationDuration:ht.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),genSkeletonElementInputSize=(ht,Et)=>Object.assign({width:Et(ht).mul(5).equal(),minWidth:Et(ht).mul(5).equal()},genSkeletonElementCommonSize(ht)),genSkeletonElementAvatar=ht=>{const{skeletonAvatarCls:Et,gradientFromColor:yt,controlHeight:Ct,controlHeightLG:$t,controlHeightSM:At}=ht;return{[`${Et}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:yt},genSkeletonElementAvatarSize(Ct)),[`${Et}${Et}-circle`]:{borderRadius:"50%"},[`${Et}${Et}-lg`]:Object.assign({},genSkeletonElementAvatarSize($t)),[`${Et}${Et}-sm`]:Object.assign({},genSkeletonElementAvatarSize(At))}},genSkeletonElementInput=ht=>{const{controlHeight:Et,borderRadiusSM:yt,skeletonInputCls:Ct,controlHeightLG:$t,controlHeightSM:At,gradientFromColor:Bt,calc:Dt}=ht;return{[`${Ct}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Bt,borderRadius:yt},genSkeletonElementInputSize(Et,Dt)),[`${Ct}-lg`]:Object.assign({},genSkeletonElementInputSize($t,Dt)),[`${Ct}-sm`]:Object.assign({},genSkeletonElementInputSize(At,Dt))}},genSkeletonElementImageSize=ht=>Object.assign({width:ht},genSkeletonElementCommonSize(ht)),genSkeletonElementImage=ht=>{const{skeletonImageCls:Et,imageSizeBase:yt,gradientFromColor:Ct,borderRadiusSM:$t,calc:At}=ht;return{[`${Et}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Ct,borderRadius:$t},genSkeletonElementImageSize(At(yt).mul(2).equal())),{[`${Et}-path`]:{fill:"#bfbfbf"},[`${Et}-svg`]:Object.assign(Object.assign({},genSkeletonElementImageSize(yt)),{maxWidth:At(yt).mul(4).equal(),maxHeight:At(yt).mul(4).equal()}),[`${Et}-svg${Et}-svg-circle`]:{borderRadius:"50%"}}),[`${Et}${Et}-circle`]:{borderRadius:"50%"}}},genSkeletonElementButtonShape=(ht,Et,yt)=>{const{skeletonButtonCls:Ct}=ht;return{[`${yt}${Ct}-circle`]:{width:Et,minWidth:Et,borderRadius:"50%"},[`${yt}${Ct}-round`]:{borderRadius:Et}}},genSkeletonElementButtonSize=(ht,Et)=>Object.assign({width:Et(ht).mul(2).equal(),minWidth:Et(ht).mul(2).equal()},genSkeletonElementCommonSize(ht)),genSkeletonElementButton=ht=>{const{borderRadiusSM:Et,skeletonButtonCls:yt,controlHeight:Ct,controlHeightLG:$t,controlHeightSM:At,gradientFromColor:Bt,calc:Dt}=ht;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${yt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Bt,borderRadius:Et,width:Dt(Ct).mul(2).equal(),minWidth:Dt(Ct).mul(2).equal()},genSkeletonElementButtonSize(Ct,Dt))},genSkeletonElementButtonShape(ht,Ct,yt)),{[`${yt}-lg`]:Object.assign({},genSkeletonElementButtonSize($t,Dt))}),genSkeletonElementButtonShape(ht,$t,`${yt}-lg`)),{[`${yt}-sm`]:Object.assign({},genSkeletonElementButtonSize(At,Dt))}),genSkeletonElementButtonShape(ht,At,`${yt}-sm`))},genBaseStyle$5=ht=>{const{componentCls:Et,skeletonAvatarCls:yt,skeletonTitleCls:Ct,skeletonParagraphCls:$t,skeletonButtonCls:At,skeletonInputCls:Bt,skeletonImageCls:Dt,controlHeight:Ft,controlHeightLG:kt,controlHeightSM:Mt,gradientFromColor:Nt,padding:jt,marginSM:zt,borderRadius:Vt,titleHeight:Kt,blockRadius:Xt,paragraphLiHeight:Qt,controlHeightXS:Zt,paragraphMarginTop:dr}=ht;return{[`${Et}`]:{display:"table",width:"100%",[`${Et}-header`]:{display:"table-cell",paddingInlineEnd:jt,verticalAlign:"top",[`${yt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Nt},genSkeletonElementAvatarSize(Ft)),[`${yt}-circle`]:{borderRadius:"50%"},[`${yt}-lg`]:Object.assign({},genSkeletonElementAvatarSize(kt)),[`${yt}-sm`]:Object.assign({},genSkeletonElementAvatarSize(Mt))},[`${Et}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Ct}`]:{width:"100%",height:Kt,background:Nt,borderRadius:Xt,[`+ ${$t}`]:{marginBlockStart:Mt}},[`${$t}`]:{padding:0,"> li":{width:"100%",height:Qt,listStyle:"none",background:Nt,borderRadius:Xt,"+ li":{marginBlockStart:Zt}}},[`${$t}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${Et}-content`]:{[`${Ct}, ${$t} > li`]:{borderRadius:Vt}}},[`${Et}-with-avatar ${Et}-content`]:{[`${Ct}`]:{marginBlockStart:zt,[`+ ${$t}`]:{marginBlockStart:dr}}},[`${Et}${Et}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},genSkeletonElementButton(ht)),genSkeletonElementAvatar(ht)),genSkeletonElementInput(ht)),genSkeletonElementImage(ht)),[`${Et}${Et}-block`]:{width:"100%",[`${At}`]:{width:"100%"},[`${Bt}`]:{width:"100%"}},[`${Et}${Et}-active`]:{[`
        ${Ct},
        ${$t} > li,
        ${yt},
        ${At},
        ${Bt},
        ${Dt}
      `]:Object.assign({},genSkeletonColor(ht))}}},prepareComponentToken$j=ht=>{const{colorFillContent:Et,colorFill:yt}=ht,Ct=Et,$t=yt;return{color:Ct,colorGradientEnd:$t,gradientFromColor:Ct,gradientToColor:$t,titleHeight:ht.controlHeight/2,blockRadius:ht.borderRadiusSM,paragraphMarginTop:ht.marginLG+ht.marginXXS,paragraphLiHeight:ht.controlHeight/2}},useStyle$m=genStyleHooks("Skeleton",ht=>{const{componentCls:Et,calc:yt}=ht,Ct=merge$2(ht,{skeletonAvatarCls:`${Et}-avatar`,skeletonTitleCls:`${Et}-title`,skeletonParagraphCls:`${Et}-paragraph`,skeletonButtonCls:`${Et}-button`,skeletonInputCls:`${Et}-input`,skeletonImageCls:`${Et}-image`,imageSizeBase:yt(ht.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${ht.gradientFromColor} 25%, ${ht.gradientToColor} 37%, ${ht.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[genBaseStyle$5(Ct)]},prepareComponentToken$j,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),SkeletonAvatar=ht=>{const{prefixCls:Et,className:yt,rootClassName:Ct,active:$t,shape:At="circle",size:Bt="default"}=ht,{getPrefixCls:Dt}=reactExports.useContext(ConfigContext$1),Ft=Dt("skeleton",Et),[kt,Mt,Nt]=useStyle$m(Ft),jt=omit$1(ht,["prefixCls","className"]),zt=cls(Ft,`${Ft}-element`,{[`${Ft}-active`]:$t},yt,Ct,Mt,Nt);return kt(reactExports.createElement("div",{className:zt},reactExports.createElement(Element$1,Object.assign({prefixCls:`${Ft}-avatar`,shape:At,size:Bt},jt))))},SkeletonButton=ht=>{const{prefixCls:Et,className:yt,rootClassName:Ct,active:$t,block:At=!1,size:Bt="default"}=ht,{getPrefixCls:Dt}=reactExports.useContext(ConfigContext$1),Ft=Dt("skeleton",Et),[kt,Mt,Nt]=useStyle$m(Ft),jt=omit$1(ht,["prefixCls"]),zt=cls(Ft,`${Ft}-element`,{[`${Ft}-active`]:$t,[`${Ft}-block`]:At},yt,Ct,Mt,Nt);return kt(reactExports.createElement("div",{className:zt},reactExports.createElement(Element$1,Object.assign({prefixCls:`${Ft}-button`,size:Bt},jt))))},path$f="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",SkeletonImage=ht=>{const{prefixCls:Et,className:yt,rootClassName:Ct,style:$t,active:At}=ht,{getPrefixCls:Bt}=reactExports.useContext(ConfigContext$1),Dt=Bt("skeleton",Et),[Ft,kt,Mt]=useStyle$m(Dt),Nt=cls(Dt,`${Dt}-element`,{[`${Dt}-active`]:At},yt,Ct,kt,Mt);return Ft(reactExports.createElement("div",{className:Nt},reactExports.createElement("div",{className:cls(`${Dt}-image`,yt),style:$t},reactExports.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Dt}-image-svg`},reactExports.createElement("title",null,"Image placeholder"),reactExports.createElement("path",{d:path$f,className:`${Dt}-image-path`})))))},SkeletonInput=ht=>{const{prefixCls:Et,className:yt,rootClassName:Ct,active:$t,block:At,size:Bt="default"}=ht,{getPrefixCls:Dt}=reactExports.useContext(ConfigContext$1),Ft=Dt("skeleton",Et),[kt,Mt,Nt]=useStyle$m(Ft),jt=omit$1(ht,["prefixCls"]),zt=cls(Ft,`${Ft}-element`,{[`${Ft}-active`]:$t,[`${Ft}-block`]:At},yt,Ct,Mt,Nt);return kt(reactExports.createElement("div",{className:zt},reactExports.createElement(Element$1,Object.assign({prefixCls:`${Ft}-input`,size:Bt},jt))))};var DotChartOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},DotChartOutlined=function ht(Et,yt){return reactExports.createElement(Icon$1,_extends$5({},Et,{ref:yt,icon:DotChartOutlined$1}))},RefIcon$n=reactExports.forwardRef(DotChartOutlined);const SkeletonNode=ht=>{const{prefixCls:Et,className:yt,rootClassName:Ct,style:$t,active:At,children:Bt}=ht,{getPrefixCls:Dt}=reactExports.useContext(ConfigContext$1),Ft=Dt("skeleton",Et),[kt,Mt,Nt]=useStyle$m(Ft),jt=cls(Ft,`${Ft}-element`,{[`${Ft}-active`]:At},Mt,yt,Ct,Nt),zt=Bt??reactExports.createElement(RefIcon$n,null);return kt(reactExports.createElement("div",{className:jt},reactExports.createElement("div",{className:cls(`${Ft}-image`,yt),style:$t},zt)))},getWidth=(ht,Et)=>{const{width:yt,rows:Ct=2}=Et;if(Array.isArray(yt))return yt[ht];if(Ct-1===ht)return yt},Paragraph=ht=>{const{prefixCls:Et,className:yt,style:Ct,rows:$t}=ht,At=_toConsumableArray(Array($t)).map((Bt,Dt)=>reactExports.createElement("li",{key:Dt,style:{width:getWidth(Dt,ht)}}));return reactExports.createElement("ul",{className:cls(Et,yt),style:Ct},At)},Title=ht=>{let{prefixCls:Et,className:yt,width:Ct,style:$t}=ht;return reactExports.createElement("h3",{className:cls(Et,yt),style:Object.assign({width:Ct},$t)})};function getComponentProps(ht){return ht&&typeof ht=="object"?ht:{}}function getAvatarBasicProps(ht,Et){return ht&&!Et?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function getTitleBasicProps(ht,Et){return!ht&&Et?{width:"38%"}:ht&&Et?{width:"50%"}:{}}function getParagraphBasicProps(ht,Et){const yt={};return(!ht||!Et)&&(yt.width="61%"),!ht&&Et?yt.rows=3:yt.rows=2,yt}const Skeleton=ht=>{const{prefixCls:Et,loading:yt,className:Ct,rootClassName:$t,style:At,children:Bt,avatar:Dt=!1,title:Ft=!0,paragraph:kt=!0,active:Mt,round:Nt}=ht,{getPrefixCls:jt,direction:zt,skeleton:Vt}=reactExports.useContext(ConfigContext$1),Kt=jt("skeleton",Et),[Xt,Qt,Zt]=useStyle$m(Kt);if(yt||!("loading"in ht)){const dr=!!Dt,cr=!!Ft,Er=!!kt;let pr;if(dr){const yr=Object.assign(Object.assign({prefixCls:`${Kt}-avatar`},getAvatarBasicProps(cr,Er)),getComponentProps(Dt));pr=reactExports.createElement("div",{className:`${Kt}-header`},reactExports.createElement(Element$1,Object.assign({},yr)))}let gr;if(cr||Er){let yr;if(cr){const rr=Object.assign(Object.assign({prefixCls:`${Kt}-title`},getTitleBasicProps(dr,Er)),getComponentProps(Ft));yr=reactExports.createElement(Title,Object.assign({},rr))}let xr;if(Er){const rr=Object.assign(Object.assign({prefixCls:`${Kt}-paragraph`},getParagraphBasicProps(dr,cr)),getComponentProps(kt));xr=reactExports.createElement(Paragraph,Object.assign({},rr))}gr=reactExports.createElement("div",{className:`${Kt}-content`},yr,xr)}const vr=cls(Kt,{[`${Kt}-with-avatar`]:dr,[`${Kt}-active`]:Mt,[`${Kt}-rtl`]:zt==="rtl",[`${Kt}-round`]:Nt},Vt==null?void 0:Vt.className,Ct,$t,Qt,Zt);return Xt(reactExports.createElement("div",{className:vr,style:Object.assign(Object.assign({},Vt==null?void 0:Vt.style),At)},pr,gr))}return Bt??null};Skeleton.Button=SkeletonButton;Skeleton.Avatar=SkeletonAvatar;Skeleton.Input=SkeletonInput;Skeleton.Image=SkeletonImage;Skeleton.Node=SkeletonNode;function voidFunc(){}const WatermarkContext=reactExports.createContext({add:voidFunc,remove:voidFunc});function usePanelRef(ht){const Et=reactExports.useContext(WatermarkContext),yt=reactExports.useRef();return useEvent($t=>{if($t){const At=ht?$t.querySelector(ht):$t;Et.add(At),yt.current=At}else Et.remove(yt.current)})}const NormalCancelBtn=()=>{const{cancelButtonProps:ht,cancelTextLocale:Et,onCancel:yt}=reactExports.useContext(ModalContext);return React$8.createElement(Button$1,Object.assign({onClick:yt},ht),Et)},NormalOkBtn=()=>{const{confirmLoading:ht,okButtonProps:Et,okType:yt,okTextLocale:Ct,onOk:$t}=reactExports.useContext(ModalContext);return React$8.createElement(Button$1,Object.assign({},convertLegacyProps(yt),{loading:ht,onClick:$t},Et),Ct)};function renderCloseIcon(ht,Et){return React$8.createElement("span",{className:`${ht}-close-x`},Et||React$8.createElement(RefIcon$r,{className:`${ht}-close-icon`}))}const Footer$3=ht=>{const{okText:Et,okType:yt="primary",cancelText:Ct,confirmLoading:$t,onOk:At,onCancel:Bt,okButtonProps:Dt,cancelButtonProps:Ft,footer:kt}=ht,[Mt]=useLocale("Modal",getConfirmLocale()),Nt=Et||(Mt==null?void 0:Mt.okText),jt=Ct||(Mt==null?void 0:Mt.cancelText),zt={confirmLoading:$t,okButtonProps:Dt,cancelButtonProps:Ft,okTextLocale:Nt,cancelTextLocale:jt,okType:yt,onOk:At,onCancel:Bt},Vt=React$8.useMemo(()=>zt,_toConsumableArray(Object.values(zt)));let Kt;return typeof kt=="function"||typeof kt>"u"?(Kt=React$8.createElement(React$8.Fragment,null,React$8.createElement(NormalCancelBtn,null),React$8.createElement(NormalOkBtn,null)),typeof kt=="function"&&(Kt=kt(Kt,{OkBtn:NormalOkBtn,CancelBtn:NormalCancelBtn})),Kt=React$8.createElement(ModalContextProvider,{value:Vt},Kt)):Kt=kt,React$8.createElement(DisabledContextProvider,{disabled:!1},Kt)},genCollapseMotion=ht=>({[ht.componentCls]:{[`${ht.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${ht.motionDurationMid} ${ht.motionEaseInOut},
        opacity ${ht.motionDurationMid} ${ht.motionEaseInOut} !important`}},[`${ht.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${ht.motionDurationMid} ${ht.motionEaseInOut},
        opacity ${ht.motionDurationMid} ${ht.motionEaseInOut} !important`}}}),initMotionCommon=ht=>({animationDuration:ht,animationFillMode:"both"}),initMotionCommonLeave=ht=>({animationDuration:ht,animationFillMode:"both"}),initMotion=function(ht,Et,yt,Ct){const At=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
      ${At}${ht}-enter,
      ${At}${ht}-appear
    `]:Object.assign(Object.assign({},initMotionCommon(Ct)),{animationPlayState:"paused"}),[`${At}${ht}-leave`]:Object.assign(Object.assign({},initMotionCommonLeave(Ct)),{animationPlayState:"paused"}),[`
      ${At}${ht}-enter${ht}-enter-active,
      ${At}${ht}-appear${ht}-appear-active
    `]:{animationName:Et,animationPlayState:"running"},[`${At}${ht}-leave${ht}-leave-active`]:{animationName:yt,animationPlayState:"running",pointerEvents:"none"}}},fadeIn=new Keyframe("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),fadeOut=new Keyframe("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),initFadeMotion=function(ht){let Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:yt}=ht,Ct=`${yt}-fade`,$t=Et?"&":"";return[initMotion(Ct,fadeIn,fadeOut,ht.motionDurationMid,Et),{[`
        ${$t}${Ct}-enter,
        ${$t}${Ct}-appear
      `]:{opacity:0,animationTimingFunction:"linear"},[`${$t}${Ct}-leave`]:{animationTimingFunction:"linear"}}]},moveDownIn=new Keyframe("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),moveDownOut=new Keyframe("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),moveLeftIn=new Keyframe("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),moveLeftOut=new Keyframe("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),moveRightIn=new Keyframe("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),moveRightOut=new Keyframe("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),moveUpIn=new Keyframe("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),moveUpOut=new Keyframe("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),moveMotion={"move-up":{inKeyframes:moveUpIn,outKeyframes:moveUpOut},"move-down":{inKeyframes:moveDownIn,outKeyframes:moveDownOut},"move-left":{inKeyframes:moveLeftIn,outKeyframes:moveLeftOut},"move-right":{inKeyframes:moveRightIn,outKeyframes:moveRightOut}},initMoveMotion=(ht,Et)=>{const{antCls:yt}=ht,Ct=`${yt}-${Et}`,{inKeyframes:$t,outKeyframes:At}=moveMotion[Et];return[initMotion(Ct,$t,At,ht.motionDurationMid),{[`
        ${Ct}-enter,
        ${Ct}-appear
      `]:{opacity:0,animationTimingFunction:ht.motionEaseOutCirc},[`${Ct}-leave`]:{animationTimingFunction:ht.motionEaseInOutCirc}}]},slideUpIn=new Keyframe("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),slideUpOut=new Keyframe("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),slideDownIn=new Keyframe("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),slideDownOut=new Keyframe("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),slideLeftIn=new Keyframe("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),slideLeftOut=new Keyframe("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),slideRightIn=new Keyframe("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),slideRightOut=new Keyframe("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),slideMotion={"slide-up":{inKeyframes:slideUpIn,outKeyframes:slideUpOut},"slide-down":{inKeyframes:slideDownIn,outKeyframes:slideDownOut},"slide-left":{inKeyframes:slideLeftIn,outKeyframes:slideLeftOut},"slide-right":{inKeyframes:slideRightIn,outKeyframes:slideRightOut}},initSlideMotion=(ht,Et)=>{const{antCls:yt}=ht,Ct=`${yt}-${Et}`,{inKeyframes:$t,outKeyframes:At}=slideMotion[Et];return[initMotion(Ct,$t,At,ht.motionDurationMid),{[`
      ${Ct}-enter,
      ${Ct}-appear
    `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:ht.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${Ct}-leave`]:{animationTimingFunction:ht.motionEaseInQuint}}]},zoomIn=new Keyframe("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),zoomOut=new Keyframe("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),zoomBigIn=new Keyframe("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),zoomBigOut=new Keyframe("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),zoomUpIn=new Keyframe("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),zoomUpOut=new Keyframe("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),zoomLeftIn=new Keyframe("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),zoomLeftOut=new Keyframe("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),zoomRightIn=new Keyframe("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),zoomRightOut=new Keyframe("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),zoomDownIn=new Keyframe("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),zoomDownOut=new Keyframe("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),zoomMotion={zoom:{inKeyframes:zoomIn,outKeyframes:zoomOut},"zoom-big":{inKeyframes:zoomBigIn,outKeyframes:zoomBigOut},"zoom-big-fast":{inKeyframes:zoomBigIn,outKeyframes:zoomBigOut},"zoom-left":{inKeyframes:zoomLeftIn,outKeyframes:zoomLeftOut},"zoom-right":{inKeyframes:zoomRightIn,outKeyframes:zoomRightOut},"zoom-up":{inKeyframes:zoomUpIn,outKeyframes:zoomUpOut},"zoom-down":{inKeyframes:zoomDownIn,outKeyframes:zoomDownOut}},initZoomMotion=(ht,Et)=>{const{antCls:yt}=ht,Ct=`${yt}-${Et}`,{inKeyframes:$t,outKeyframes:At}=zoomMotion[Et];return[initMotion(Ct,$t,At,Et==="zoom-big-fast"?ht.motionDurationFast:ht.motionDurationMid),{[`
        ${Ct}-enter,
        ${Ct}-appear
      `]:{transform:"scale(0)",opacity:0,animationTimingFunction:ht.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${Ct}-leave`]:{animationTimingFunction:ht.motionEaseInOutCirc}}]};function box(ht){return{position:ht,inset:0}}const genModalMaskStyle=ht=>{const{componentCls:Et,antCls:yt}=ht;return[{[`${Et}-root`]:{[`${Et}${yt}-zoom-enter, ${Et}${yt}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:ht.motionDurationSlow,userSelect:"none"},[`${Et}${yt}-zoom-leave ${Et}-content`]:{pointerEvents:"none"},[`${Et}-mask`]:Object.assign(Object.assign({},box("fixed")),{zIndex:ht.zIndexPopupBase,height:"100%",backgroundColor:ht.colorBgMask,pointerEvents:"none",[`${Et}-hidden`]:{display:"none"}}),[`${Et}-wrap`]:Object.assign(Object.assign({},box("fixed")),{zIndex:ht.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${Et}-root`]:initFadeMotion(ht)}]},genModalStyle=ht=>{const{componentCls:Et}=ht;return[{[`${Et}-root`]:{[`${Et}-wrap-rtl`]:{direction:"rtl"},[`${Et}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[Et]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${ht.screenSMMax}px)`]:{[Et]:{maxWidth:"calc(100vw - 16px)",margin:`${unit(ht.marginXS)} auto`},[`${Et}-centered`]:{[Et]:{flex:1}}}}},{[Et]:Object.assign(Object.assign({},resetComponent(ht)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${unit(ht.calc(ht.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:ht.paddingLG,[`${Et}-title`]:{margin:0,color:ht.titleColor,fontWeight:ht.fontWeightStrong,fontSize:ht.titleFontSize,lineHeight:ht.titleLineHeight,wordWrap:"break-word"},[`${Et}-content`]:{position:"relative",backgroundColor:ht.contentBg,backgroundClip:"padding-box",border:0,borderRadius:ht.borderRadiusLG,boxShadow:ht.boxShadow,pointerEvents:"auto",padding:ht.contentPadding},[`${Et}-close`]:Object.assign({position:"absolute",top:ht.calc(ht.modalHeaderHeight).sub(ht.modalCloseBtnSize).div(2).equal(),insetInlineEnd:ht.calc(ht.modalHeaderHeight).sub(ht.modalCloseBtnSize).div(2).equal(),zIndex:ht.calc(ht.zIndexPopupBase).add(10).equal(),padding:0,color:ht.modalCloseIconColor,fontWeight:ht.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:ht.borderRadiusSM,width:ht.modalCloseBtnSize,height:ht.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${ht.motionDurationMid}, background-color ${ht.motionDurationMid}`,"&-x":{display:"flex",fontSize:ht.fontSizeLG,fontStyle:"normal",lineHeight:`${unit(ht.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:ht.modalCloseIconHoverColor,backgroundColor:ht.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:ht.colorBgTextActive}},genFocusStyle(ht)),[`${Et}-header`]:{color:ht.colorText,background:ht.headerBg,borderRadius:`${unit(ht.borderRadiusLG)} ${unit(ht.borderRadiusLG)} 0 0`,marginBottom:ht.headerMarginBottom,padding:ht.headerPadding,borderBottom:ht.headerBorderBottom},[`${Et}-body`]:{fontSize:ht.fontSize,lineHeight:ht.lineHeight,wordWrap:"break-word",padding:ht.bodyPadding,[`${Et}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${unit(ht.margin)} auto`}},[`${Et}-footer`]:{textAlign:"end",background:ht.footerBg,marginTop:ht.footerMarginTop,padding:ht.footerPadding,borderTop:ht.footerBorderTop,borderRadius:ht.footerBorderRadius,[`> ${ht.antCls}-btn + ${ht.antCls}-btn`]:{marginInlineStart:ht.marginXS}},[`${Et}-open`]:{overflow:"hidden"}})},{[`${Et}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${Et}-content,
          ${Et}-body,
          ${Et}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${Et}-confirm-body`]:{marginBottom:"auto"}}}]},genRTLStyle=ht=>{const{componentCls:Et}=ht;return{[`${Et}-root`]:{[`${Et}-wrap-rtl`]:{direction:"rtl",[`${Et}-confirm-body`]:{direction:"rtl"}}}}},prepareToken$2=ht=>{const Et=ht.padding,yt=ht.fontSizeHeading5,Ct=ht.lineHeightHeading5;return merge$2(ht,{modalHeaderHeight:ht.calc(ht.calc(Ct).mul(yt).equal()).add(ht.calc(Et).mul(2).equal()).equal(),modalFooterBorderColorSplit:ht.colorSplit,modalFooterBorderStyle:ht.lineType,modalFooterBorderWidth:ht.lineWidth,modalCloseIconColor:ht.colorIcon,modalCloseIconHoverColor:ht.colorIconHover,modalCloseBtnSize:ht.controlHeight,modalConfirmIconSize:ht.fontHeight,modalTitleHeight:ht.calc(ht.titleFontSize).mul(ht.titleLineHeight).equal()})},prepareComponentToken$i=ht=>({footerBg:"transparent",headerBg:ht.colorBgElevated,titleLineHeight:ht.lineHeightHeading5,titleFontSize:ht.fontSizeHeading5,contentBg:ht.colorBgElevated,titleColor:ht.colorTextHeading,contentPadding:ht.wireframe?0:`${unit(ht.paddingMD)} ${unit(ht.paddingContentHorizontalLG)}`,headerPadding:ht.wireframe?`${unit(ht.padding)} ${unit(ht.paddingLG)}`:0,headerBorderBottom:ht.wireframe?`${unit(ht.lineWidth)} ${ht.lineType} ${ht.colorSplit}`:"none",headerMarginBottom:ht.wireframe?0:ht.marginXS,bodyPadding:ht.wireframe?ht.paddingLG:0,footerPadding:ht.wireframe?`${unit(ht.paddingXS)} ${unit(ht.padding)}`:0,footerBorderTop:ht.wireframe?`${unit(ht.lineWidth)} ${ht.lineType} ${ht.colorSplit}`:"none",footerBorderRadius:ht.wireframe?`0 0 ${unit(ht.borderRadiusLG)} ${unit(ht.borderRadiusLG)}`:0,footerMarginTop:ht.wireframe?0:ht.marginSM,confirmBodyPadding:ht.wireframe?`${unit(ht.padding*2)} ${unit(ht.padding*2)} ${unit(ht.paddingLG)}`:0,confirmIconMarginInlineEnd:ht.wireframe?ht.margin:ht.marginSM,confirmBtnsMarginTop:ht.wireframe?ht.marginLG:ht.marginSM}),useStyle$l=genStyleHooks("Modal",ht=>{const Et=prepareToken$2(ht);return[genModalStyle(Et),genRTLStyle(Et),genModalMaskStyle(Et),initZoomMotion(Et,"zoom")]},prepareComponentToken$i,{unitless:{titleLineHeight:!0}});var __rest$D=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};let mousePosition;const getClickPosition=ht=>{mousePosition={x:ht.pageX,y:ht.pageY},setTimeout(()=>{mousePosition=null},100)};canUseDocElement()&&document.documentElement.addEventListener("click",getClickPosition,!0);const Modal$1=ht=>{var Et;const{getPopupContainer:yt,getPrefixCls:Ct,direction:$t,modal:At}=reactExports.useContext(ConfigContext$1),Bt=Cr=>{const{onCancel:_r}=ht;_r==null||_r(Cr)},Dt=Cr=>{const{onOk:_r}=ht;_r==null||_r(Cr)},{prefixCls:Ft,className:kt,rootClassName:Mt,open:Nt,wrapClassName:jt,centered:zt,getContainer:Vt,focusTriggerAfterClose:Kt=!0,style:Xt,visible:Qt,width:Zt=520,footer:dr,classNames:cr,styles:Er,children:pr,loading:gr}=ht,vr=__rest$D(ht,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),yr=Ct("modal",Ft),xr=Ct(),rr=useCSSVarCls(yr),[Lt,Ht,Wt]=useStyle$l(yr,rr),Gt=cls(jt,{[`${yr}-centered`]:!!zt,[`${yr}-wrap-rtl`]:$t==="rtl"}),Yt=dr!==null&&!gr?reactExports.createElement(Footer$3,Object.assign({},ht,{onOk:Dt,onCancel:Bt})):null,[er,lr]=useClosable(pickClosable(ht),pickClosable(At),{closable:!0,closeIcon:reactExports.createElement(RefIcon$r,{className:`${yr}-close-icon`}),closeIconRender:Cr=>renderCloseIcon(yr,Cr)}),Jt=usePanelRef(`.${yr}-content`),[Ut,ir]=useZIndex("Modal",vr.zIndex);return Lt(reactExports.createElement(ContextIsolator,{form:!0,space:!0},reactExports.createElement(zIndexContext.Provider,{value:ir},reactExports.createElement(DialogWrap,Object.assign({width:Zt},vr,{zIndex:Ut,getContainer:Vt===void 0?yt:Vt,prefixCls:yr,rootClassName:cls(Ht,Mt,Wt,rr),footer:Yt,visible:Nt??Qt,mousePosition:(Et=vr.mousePosition)!==null&&Et!==void 0?Et:mousePosition,onClose:Bt,closable:er,closeIcon:lr,focusTriggerAfterClose:Kt,transitionName:getTransitionName(xr,"zoom",ht.transitionName),maskTransitionName:getTransitionName(xr,"fade",ht.maskTransitionName),className:cls(Ht,kt,At==null?void 0:At.className),style:Object.assign(Object.assign({},At==null?void 0:At.style),Xt),classNames:Object.assign(Object.assign(Object.assign({},At==null?void 0:At.classNames),cr),{wrapper:cls(Gt,cr==null?void 0:cr.wrapper)}),styles:Object.assign(Object.assign({},At==null?void 0:At.styles),Er),panelRef:Jt}),gr?reactExports.createElement(Skeleton,{active:!0,title:!1,paragraph:{rows:4},className:`${yr}-body-skeleton`}):pr))))},genModalConfirmStyle=ht=>{const{componentCls:Et,titleFontSize:yt,titleLineHeight:Ct,modalConfirmIconSize:$t,fontSize:At,lineHeight:Bt,modalTitleHeight:Dt,fontHeight:Ft,confirmBodyPadding:kt}=ht,Mt=`${Et}-confirm`;return{[Mt]:{"&-rtl":{direction:"rtl"},[`${ht.antCls}-modal-header`]:{display:"none"},[`${Mt}-body-wrapper`]:Object.assign({},clearFix()),[`&${Et} ${Et}-body`]:{padding:kt},[`${Mt}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${ht.iconCls}`]:{flex:"none",fontSize:$t,marginInlineEnd:ht.confirmIconMarginInlineEnd,marginTop:ht.calc(ht.calc(Ft).sub($t).equal()).div(2).equal()},[`&-has-title > ${ht.iconCls}`]:{marginTop:ht.calc(ht.calc(Dt).sub($t).equal()).div(2).equal()}},[`${Mt}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:ht.marginXS},[`${ht.iconCls} + ${Mt}-paragraph`]:{maxWidth:`calc(100% - ${unit(ht.calc(ht.modalConfirmIconSize).add(ht.marginSM).equal())})`},[`${Mt}-title`]:{color:ht.colorTextHeading,fontWeight:ht.fontWeightStrong,fontSize:yt,lineHeight:Ct},[`${Mt}-content`]:{color:ht.colorText,fontSize:At,lineHeight:Bt},[`${Mt}-btns`]:{textAlign:"end",marginTop:ht.confirmBtnsMarginTop,[`${ht.antCls}-btn + ${ht.antCls}-btn`]:{marginBottom:0,marginInlineStart:ht.marginXS}}},[`${Mt}-error ${Mt}-body > ${ht.iconCls}`]:{color:ht.colorError},[`${Mt}-warning ${Mt}-body > ${ht.iconCls},
        ${Mt}-confirm ${Mt}-body > ${ht.iconCls}`]:{color:ht.colorWarning},[`${Mt}-info ${Mt}-body > ${ht.iconCls}`]:{color:ht.colorInfo},[`${Mt}-success ${Mt}-body > ${ht.iconCls}`]:{color:ht.colorSuccess}}},Confirm=genSubStyleComponent(["Modal","confirm"],ht=>{const Et=prepareToken$2(ht);return[genModalConfirmStyle(Et)]},prepareComponentToken$i,{order:-1e3});var __rest$C=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};function ConfirmContent(ht){const{prefixCls:Et,icon:yt,okText:Ct,cancelText:$t,confirmPrefixCls:At,type:Bt,okCancel:Dt,footer:Ft,locale:kt}=ht,Mt=__rest$C(ht,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let Nt=yt;if(!yt&&yt!==null)switch(Bt){case"info":Nt=reactExports.createElement(RefIcon$p,null);break;case"success":Nt=reactExports.createElement(RefIcon$t,null);break;case"error":Nt=reactExports.createElement(RefIcon$s,null);break;default:Nt=reactExports.createElement(RefIcon$q,null)}const jt=Dt??Bt==="confirm",zt=ht.autoFocusButton===null?!1:ht.autoFocusButton||"ok",[Vt]=useLocale("Modal"),Kt=kt||Vt,Xt=Ct||(jt?Kt==null?void 0:Kt.okText:Kt==null?void 0:Kt.justOkText),Qt=$t||(Kt==null?void 0:Kt.cancelText),Zt=Object.assign({autoFocusButton:zt,cancelTextLocale:Qt,okTextLocale:Xt,mergedOkCancel:jt},Mt),dr=reactExports.useMemo(()=>Zt,_toConsumableArray(Object.values(Zt))),cr=reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(ConfirmCancelBtn,null),reactExports.createElement(ConfirmOkBtn,null)),Er=ht.title!==void 0&&ht.title!==null,pr=`${At}-body`;return reactExports.createElement("div",{className:`${At}-body-wrapper`},reactExports.createElement("div",{className:cls(pr,{[`${pr}-has-title`]:Er})},Nt,reactExports.createElement("div",{className:`${At}-paragraph`},Er&&reactExports.createElement("span",{className:`${At}-title`},ht.title),reactExports.createElement("div",{className:`${At}-content`},ht.content))),Ft===void 0||typeof Ft=="function"?reactExports.createElement(ModalContextProvider,{value:dr},reactExports.createElement("div",{className:`${At}-btns`},typeof Ft=="function"?Ft(cr,{OkBtn:ConfirmOkBtn,CancelBtn:ConfirmCancelBtn}):cr)):Ft,reactExports.createElement(Confirm,{prefixCls:Et}))}const ConfirmDialog=ht=>{const{close:Et,zIndex:yt,afterClose:Ct,open:$t,keyboard:At,centered:Bt,getContainer:Dt,maskStyle:Ft,direction:kt,prefixCls:Mt,wrapClassName:Nt,rootPrefixCls:jt,bodyStyle:zt,closable:Vt=!1,closeIcon:Kt,modalRender:Xt,focusTriggerAfterClose:Qt,onConfirm:Zt,styles:dr}=ht,cr=`${Mt}-confirm`,Er=ht.width||416,pr=ht.style||{},gr=ht.mask===void 0?!0:ht.mask,vr=ht.maskClosable===void 0?!1:ht.maskClosable,yr=cls(cr,`${cr}-${ht.type}`,{[`${cr}-rtl`]:kt==="rtl"},ht.className),[,xr]=useToken$1(),rr=reactExports.useMemo(()=>yt!==void 0?yt:xr.zIndexPopupBase+CONTAINER_MAX_OFFSET,[yt,xr]);return reactExports.createElement(Modal$1,{prefixCls:Mt,className:yr,wrapClassName:cls({[`${cr}-centered`]:!!ht.centered},Nt),onCancel:()=>{Et==null||Et({triggerCancel:!0}),Zt==null||Zt(!1)},open:$t,title:"",footer:null,transitionName:getTransitionName(jt||"","zoom",ht.transitionName),maskTransitionName:getTransitionName(jt||"","fade",ht.maskTransitionName),mask:gr,maskClosable:vr,style:pr,styles:Object.assign({body:zt,mask:Ft},dr),width:Er,zIndex:rr,afterClose:Ct,keyboard:At,centered:Bt,getContainer:Dt,closable:Vt,closeIcon:Kt,modalRender:Xt,focusTriggerAfterClose:Qt},reactExports.createElement(ConfirmContent,Object.assign({},ht,{confirmPrefixCls:cr})))},ConfirmDialogWrapper$1=ht=>{const{rootPrefixCls:Et,iconPrefixCls:yt,direction:Ct,theme:$t}=ht;return reactExports.createElement(ConfigProvider$1,{prefixCls:Et,iconPrefixCls:yt,direction:Ct,theme:$t},reactExports.createElement(ConfirmDialog,Object.assign({},ht)))},destroyFns=[];let defaultRootPrefixCls="";function getRootPrefixCls(){return defaultRootPrefixCls}const ConfirmDialogWrapper=ht=>{var Et,yt;const{prefixCls:Ct,getContainer:$t,direction:At}=ht,Bt=getConfirmLocale(),Dt=reactExports.useContext(ConfigContext$1),Ft=getRootPrefixCls()||Dt.getPrefixCls(),kt=Ct||`${Ft}-modal`;let Mt=$t;return Mt===!1&&(Mt=void 0),React$8.createElement(ConfirmDialogWrapper$1,Object.assign({},ht,{rootPrefixCls:Ft,prefixCls:kt,iconPrefixCls:Dt.iconPrefixCls,theme:Dt.theme,direction:At??Dt.direction,locale:(yt=(Et=Dt.locale)===null||Et===void 0?void 0:Et.Modal)!==null&&yt!==void 0?yt:Bt,getContainer:Mt}))};function confirm(ht){const Et=globalConfig(),yt=document.createDocumentFragment();let Ct=Object.assign(Object.assign({},ht),{close:Dt,open:!0}),$t;function At(){for(var kt,Mt=arguments.length,Nt=new Array(Mt),jt=0;jt<Mt;jt++)Nt[jt]=arguments[jt];if(Nt.some(Kt=>Kt==null?void 0:Kt.triggerCancel)){var Vt;(kt=ht.onCancel)===null||kt===void 0||(Vt=kt).call.apply(Vt,[ht,()=>{}].concat(_toConsumableArray(Nt.slice(1))))}for(let Kt=0;Kt<destroyFns.length;Kt++)if(destroyFns[Kt]===Dt){destroyFns.splice(Kt,1);break}unmount(yt)}function Bt(kt){clearTimeout($t),$t=setTimeout(()=>{const Mt=Et.getPrefixCls(void 0,getRootPrefixCls()),Nt=Et.getIconPrefixCls(),jt=Et.getTheme(),zt=React$8.createElement(ConfirmDialogWrapper,Object.assign({},kt));render(React$8.createElement(ConfigProvider$1,{prefixCls:Mt,iconPrefixCls:Nt,theme:jt},Et.holderRender?Et.holderRender(zt):zt),yt)})}function Dt(){for(var kt=arguments.length,Mt=new Array(kt),Nt=0;Nt<kt;Nt++)Mt[Nt]=arguments[Nt];Ct=Object.assign(Object.assign({},Ct),{open:!1,afterClose:()=>{typeof ht.afterClose=="function"&&ht.afterClose(),At.apply(this,Mt)}}),Ct.visible&&delete Ct.visible,Bt(Ct)}function Ft(kt){typeof kt=="function"?Ct=kt(Ct):Ct=Object.assign(Object.assign({},Ct),kt),Bt(Ct)}return Bt(Ct),destroyFns.push(Dt),{destroy:Dt,update:Ft}}function withWarn(ht){return Object.assign(Object.assign({},ht),{type:"warning"})}function withInfo(ht){return Object.assign(Object.assign({},ht),{type:"info"})}function withSuccess(ht){return Object.assign(Object.assign({},ht),{type:"success"})}function withError(ht){return Object.assign(Object.assign({},ht),{type:"error"})}function withConfirm(ht){return Object.assign(Object.assign({},ht),{type:"confirm"})}function modalGlobalConfig(ht){let{rootPrefixCls:Et}=ht;defaultRootPrefixCls=Et}var __rest$B=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};const HookModal=(ht,Et)=>{var yt,{afterClose:Ct,config:$t}=ht,At=__rest$B(ht,["afterClose","config"]);const[Bt,Dt]=reactExports.useState(!0),[Ft,kt]=reactExports.useState($t),{direction:Mt,getPrefixCls:Nt}=reactExports.useContext(ConfigContext$1),jt=Nt("modal"),zt=Nt(),Vt=()=>{var Zt;Ct(),(Zt=Ft.afterClose)===null||Zt===void 0||Zt.call(Ft)},Kt=function(){var Zt;Dt(!1);for(var dr=arguments.length,cr=new Array(dr),Er=0;Er<dr;Er++)cr[Er]=arguments[Er];if(cr.some(vr=>vr==null?void 0:vr.triggerCancel)){var gr;(Zt=Ft.onCancel)===null||Zt===void 0||(gr=Zt).call.apply(gr,[Ft,()=>{}].concat(_toConsumableArray(cr.slice(1))))}};reactExports.useImperativeHandle(Et,()=>({destroy:Kt,update:Zt=>{kt(dr=>Object.assign(Object.assign({},dr),Zt))}}));const Xt=(yt=Ft.okCancel)!==null&&yt!==void 0?yt:Ft.type==="confirm",[Qt]=useLocale("Modal",localeValues.Modal);return reactExports.createElement(ConfirmDialogWrapper$1,Object.assign({prefixCls:jt,rootPrefixCls:zt},Ft,{close:Kt,open:Bt,afterClose:Vt,okText:Ft.okText||(Xt?Qt==null?void 0:Qt.okText:Qt==null?void 0:Qt.justOkText),direction:Ft.direction||Mt,cancelText:Ft.cancelText||(Qt==null?void 0:Qt.cancelText)},At))},HookModal$1=reactExports.forwardRef(HookModal);let uuid$3=0;const ElementsHolder=reactExports.memo(reactExports.forwardRef((ht,Et)=>{const[yt,Ct]=usePatchElement();return reactExports.useImperativeHandle(Et,()=>({patchElement:Ct}),[]),reactExports.createElement(reactExports.Fragment,null,yt)}));function useModal(){const ht=reactExports.useRef(null),[Et,yt]=reactExports.useState([]);reactExports.useEffect(()=>{Et.length&&(_toConsumableArray(Et).forEach(Bt=>{Bt()}),yt([]))},[Et]);const Ct=reactExports.useCallback(At=>function(Dt){var Ft;uuid$3+=1;const kt=reactExports.createRef();let Mt;const Nt=new Promise(Xt=>{Mt=Xt});let jt=!1,zt;const Vt=reactExports.createElement(HookModal$1,{key:`modal-${uuid$3}`,config:At(Dt),ref:kt,afterClose:()=>{zt==null||zt()},isSilent:()=>jt,onConfirm:Xt=>{Mt(Xt)}});return zt=(Ft=ht.current)===null||Ft===void 0?void 0:Ft.patchElement(Vt),zt&&destroyFns.push(zt),{destroy:()=>{function Xt(){var Qt;(Qt=kt.current)===null||Qt===void 0||Qt.destroy()}kt.current?Xt():yt(Qt=>[].concat(_toConsumableArray(Qt),[Xt]))},update:Xt=>{function Qt(){var Zt;(Zt=kt.current)===null||Zt===void 0||Zt.update(Xt)}kt.current?Qt():yt(Zt=>[].concat(_toConsumableArray(Zt),[Qt]))},then:Xt=>(jt=!0,Nt.then(Xt))}},[]);return[reactExports.useMemo(()=>({info:Ct(withInfo),success:Ct(withSuccess),error:Ct(withError),warning:Ct(withWarn),confirm:Ct(withConfirm)}),[]),reactExports.createElement(ElementsHolder,{key:"modal-holder",ref:ht})]}const genNotificationPlacementStyle=ht=>{const{componentCls:Et,notificationMarginEdge:yt,animationMaxHeight:Ct}=ht,$t=`${Et}-notice`,At=new Keyframe("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),Bt=new Keyframe("antNotificationTopFadeIn",{"0%":{top:-Ct,opacity:0},"100%":{top:0,opacity:1}}),Dt=new Keyframe("antNotificationBottomFadeIn",{"0%":{bottom:ht.calc(Ct).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),Ft=new Keyframe("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[Et]:{[`&${Et}-top, &${Et}-bottom`]:{marginInline:0,[$t]:{marginInline:"auto auto"}},[`&${Et}-top`]:{[`${Et}-fade-enter${Et}-fade-enter-active, ${Et}-fade-appear${Et}-fade-appear-active`]:{animationName:Bt}},[`&${Et}-bottom`]:{[`${Et}-fade-enter${Et}-fade-enter-active, ${Et}-fade-appear${Et}-fade-appear-active`]:{animationName:Dt}},[`&${Et}-topRight, &${Et}-bottomRight`]:{[`${Et}-fade-enter${Et}-fade-enter-active, ${Et}-fade-appear${Et}-fade-appear-active`]:{animationName:At}},[`&${Et}-topLeft, &${Et}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:yt,_skip_check_:!0},[$t]:{marginInlineEnd:"auto",marginInlineStart:0},[`${Et}-fade-enter${Et}-fade-enter-active, ${Et}-fade-appear${Et}-fade-appear-active`]:{animationName:Ft}}}}},NotificationPlacements=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],placementAlignProperty={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},genPlacementStackStyle=(ht,Et)=>{const{componentCls:yt}=ht;return{[`${yt}-${Et}`]:{[`&${yt}-stack > ${yt}-notice-wrapper`]:{[Et.startsWith("top")?"top":"bottom"]:0,[placementAlignProperty[Et]]:{value:0,_skip_check_:!0}}}}},genStackChildrenStyle=ht=>{const Et={};for(let yt=1;yt<ht.notificationStackLayer;yt++)Et[`&:nth-last-child(${yt+1})`]={overflow:"hidden",[`& > ${ht.componentCls}-notice`]:{opacity:0,transition:`opacity ${ht.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${ht.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},Et)},genStackedNoticeStyle=ht=>{const Et={};for(let yt=1;yt<ht.notificationStackLayer;yt++)Et[`&:nth-last-child(${yt+1})`]={background:ht.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},Et)},genStackStyle=ht=>{const{componentCls:Et}=ht;return Object.assign({[`${Et}-stack`]:{[`& > ${Et}-notice-wrapper`]:Object.assign({transition:`all ${ht.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},genStackChildrenStyle(ht))},[`${Et}-stack:not(${Et}-stack-expanded)`]:{[`& > ${Et}-notice-wrapper`]:Object.assign({},genStackedNoticeStyle(ht))},[`${Et}-stack${Et}-stack-expanded`]:{[`& > ${Et}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${ht.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:ht.margin,width:"100%",insetInline:0,bottom:ht.calc(ht.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},NotificationPlacements.map(yt=>genPlacementStackStyle(ht,yt)).reduce((yt,Ct)=>Object.assign(Object.assign({},yt),Ct),{}))},genNoticeStyle=ht=>{const{iconCls:Et,componentCls:yt,boxShadow:Ct,fontSizeLG:$t,notificationMarginBottom:At,borderRadiusLG:Bt,colorSuccess:Dt,colorInfo:Ft,colorWarning:kt,colorError:Mt,colorTextHeading:Nt,notificationBg:jt,notificationPadding:zt,notificationMarginEdge:Vt,notificationProgressBg:Kt,notificationProgressHeight:Xt,fontSize:Qt,lineHeight:Zt,width:dr,notificationIconSize:cr,colorText:Er}=ht,pr=`${yt}-notice`;return{position:"relative",marginBottom:At,marginInlineStart:"auto",background:jt,borderRadius:Bt,boxShadow:Ct,[pr]:{padding:zt,width:dr,maxWidth:`calc(100vw - ${unit(ht.calc(Vt).mul(2).equal())})`,overflow:"hidden",lineHeight:Zt,wordWrap:"break-word"},[`${pr}-message`]:{marginBottom:ht.marginXS,color:Nt,fontSize:$t,lineHeight:ht.lineHeightLG},[`${pr}-description`]:{fontSize:Qt,color:Er},[`${pr}-closable ${pr}-message`]:{paddingInlineEnd:ht.paddingLG},[`${pr}-with-icon ${pr}-message`]:{marginBottom:ht.marginXS,marginInlineStart:ht.calc(ht.marginSM).add(cr).equal(),fontSize:$t},[`${pr}-with-icon ${pr}-description`]:{marginInlineStart:ht.calc(ht.marginSM).add(cr).equal(),fontSize:Qt},[`${pr}-icon`]:{position:"absolute",fontSize:cr,lineHeight:1,[`&-success${Et}`]:{color:Dt},[`&-info${Et}`]:{color:Ft},[`&-warning${Et}`]:{color:kt},[`&-error${Et}`]:{color:Mt}},[`${pr}-close`]:Object.assign({position:"absolute",top:ht.notificationPaddingVertical,insetInlineEnd:ht.notificationPaddingHorizontal,color:ht.colorIcon,outline:"none",width:ht.notificationCloseButtonSize,height:ht.notificationCloseButtonSize,borderRadius:ht.borderRadiusSM,transition:`background-color ${ht.motionDurationMid}, color ${ht.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:ht.colorIconHover,backgroundColor:ht.colorBgTextHover},"&:active":{backgroundColor:ht.colorBgTextActive}},genFocusStyle(ht)),[`${pr}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${unit(Bt)} * 2)`,left:{_skip_check_:!0,value:Bt},right:{_skip_check_:!0,value:Bt},bottom:0,blockSize:Xt,border:0,"&, &::-webkit-progress-bar":{borderRadius:Bt,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:Kt},"&::-webkit-progress-value":{borderRadius:Bt,background:Kt}},[`${pr}-btn`]:{float:"right",marginTop:ht.marginSM}}},genNotificationStyle=ht=>{const{componentCls:Et,notificationMarginBottom:yt,notificationMarginEdge:Ct,motionDurationMid:$t,motionEaseInOut:At}=ht,Bt=`${Et}-notice`,Dt=new Keyframe("antNotificationFadeOut",{"0%":{maxHeight:ht.animationMaxHeight,marginBottom:yt},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[Et]:Object.assign(Object.assign({},resetComponent(ht)),{position:"fixed",zIndex:ht.zIndexPopup,marginRight:{value:Ct,_skip_check_:!0},[`${Et}-hook-holder`]:{position:"relative"},[`${Et}-fade-appear-prepare`]:{opacity:"0 !important"},[`${Et}-fade-enter, ${Et}-fade-appear`]:{animationDuration:ht.motionDurationMid,animationTimingFunction:At,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${Et}-fade-leave`]:{animationTimingFunction:At,animationFillMode:"both",animationDuration:$t,animationPlayState:"paused"},[`${Et}-fade-enter${Et}-fade-enter-active, ${Et}-fade-appear${Et}-fade-appear-active`]:{animationPlayState:"running"},[`${Et}-fade-leave${Et}-fade-leave-active`]:{animationName:Dt,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${Bt}-btn`]:{float:"left"}}})},{[Et]:{[`${Bt}-wrapper`]:Object.assign({},genNoticeStyle(ht))}}]},prepareComponentToken$h=ht=>({zIndexPopup:ht.zIndexPopupBase+CONTAINER_MAX_OFFSET+50,width:384}),prepareNotificationToken=ht=>{const Et=ht.paddingMD,yt=ht.paddingLG;return merge$2(ht,{notificationBg:ht.colorBgElevated,notificationPaddingVertical:Et,notificationPaddingHorizontal:yt,notificationIconSize:ht.calc(ht.fontSizeLG).mul(ht.lineHeightLG).equal(),notificationCloseButtonSize:ht.calc(ht.controlHeightLG).mul(.55).equal(),notificationMarginBottom:ht.margin,notificationPadding:`${unit(ht.paddingMD)} ${unit(ht.paddingContentHorizontalLG)}`,notificationMarginEdge:ht.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${ht.colorPrimaryBorderHover}, ${ht.colorPrimary})`})},useStyle$k=genStyleHooks("Notification",ht=>{const Et=prepareNotificationToken(ht);return[genNotificationStyle(Et),genNotificationPlacementStyle(Et),genStackStyle(Et)]},prepareComponentToken$h);function getCloseIcon(ht,Et){return Et===null||Et===!1?null:Et||reactExports.createElement(RefIcon$r,{className:`${ht}-close-icon`})}const typeToIcon={success:RefIcon$t,info:RefIcon$p,error:RefIcon$s,warning:RefIcon$q},PureContent=ht=>{const{prefixCls:Et,icon:yt,type:Ct,message:$t,description:At,btn:Bt,role:Dt="alert"}=ht;let Ft=null;return yt?Ft=reactExports.createElement("span",{className:`${Et}-icon`},yt):Ct&&(Ft=reactExports.createElement(typeToIcon[Ct]||null,{className:cls(`${Et}-icon`,`${Et}-icon-${Ct}`)})),reactExports.createElement("div",{className:cls({[`${Et}-with-icon`]:Ft}),role:Dt},Ft,reactExports.createElement("div",{className:`${Et}-message`},$t),reactExports.createElement("div",{className:`${Et}-description`},At),Bt&&reactExports.createElement("div",{className:`${Et}-btn`},Bt))};function getPlacementStyle(ht,Et,yt){let Ct;switch(ht){case"top":Ct={left:"50%",transform:"translateX(-50%)",right:"auto",top:Et,bottom:"auto"};break;case"topLeft":Ct={left:0,top:Et,bottom:"auto"};break;case"topRight":Ct={right:0,top:Et,bottom:"auto"};break;case"bottom":Ct={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:yt};break;case"bottomLeft":Ct={left:0,top:"auto",bottom:yt};break;default:Ct={right:0,top:"auto",bottom:yt};break}return Ct}function getMotion$2(ht){return{motionName:`${ht}-fade`}}var __rest$A=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};const DEFAULT_OFFSET=24,DEFAULT_DURATION=4.5,DEFAULT_PLACEMENT="topRight",Wrapper=ht=>{let{children:Et,prefixCls:yt}=ht;const Ct=useCSSVarCls(yt),[$t,At,Bt]=useStyle$k(yt,Ct);return $t(React$8.createElement(NotificationProvider,{classNames:{list:cls(At,Bt,Ct)}},Et))},renderNotifications=(ht,Et)=>{let{prefixCls:yt,key:Ct}=Et;return React$8.createElement(Wrapper,{prefixCls:yt,key:Ct},ht)},Holder=React$8.forwardRef((ht,Et)=>{const{top:yt,bottom:Ct,prefixCls:$t,getContainer:At,maxCount:Bt,rtl:Dt,onAllRemoved:Ft,stack:kt,duration:Mt,pauseOnHover:Nt=!0,showProgress:jt}=ht,{getPrefixCls:zt,getPopupContainer:Vt,notification:Kt,direction:Xt}=reactExports.useContext(ConfigContext$1),[,Qt]=useToken$1(),Zt=$t||zt("notification"),dr=vr=>getPlacementStyle(vr,yt??DEFAULT_OFFSET,Ct??DEFAULT_OFFSET),cr=()=>cls({[`${Zt}-rtl`]:Dt??Xt==="rtl"}),Er=()=>getMotion$2(Zt),[pr,gr]=useNotification$1({prefixCls:Zt,style:dr,className:cr,motion:Er,closable:!0,closeIcon:getCloseIcon(Zt),duration:Mt??DEFAULT_DURATION,getContainer:()=>(At==null?void 0:At())||(Vt==null?void 0:Vt())||document.body,maxCount:Bt,pauseOnHover:Nt,showProgress:jt,onAllRemoved:Ft,renderNotifications,stack:kt===!1?!1:{threshold:typeof kt=="object"?kt==null?void 0:kt.threshold:void 0,offset:8,gap:Qt.margin}});return React$8.useImperativeHandle(Et,()=>Object.assign(Object.assign({},pr),{prefixCls:Zt,notification:Kt})),gr});function useInternalNotification(ht){const Et=React$8.useRef(null);return devUseWarning(),[React$8.useMemo(()=>{const Ct=Dt=>{var Ft;if(!Et.current)return;const{open:kt,prefixCls:Mt,notification:Nt}=Et.current,jt=`${Mt}-notice`,{message:zt,description:Vt,icon:Kt,type:Xt,btn:Qt,className:Zt,style:dr,role:cr="alert",closeIcon:Er,closable:pr}=Dt,gr=__rest$A(Dt,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),vr=getCloseIcon(jt,typeof Er<"u"?Er:Nt==null?void 0:Nt.closeIcon);return kt(Object.assign(Object.assign({placement:(Ft=ht==null?void 0:ht.placement)!==null&&Ft!==void 0?Ft:DEFAULT_PLACEMENT},gr),{content:React$8.createElement(PureContent,{prefixCls:jt,icon:Kt,type:Xt,message:zt,description:Vt,btn:Qt,role:cr}),className:cls(Xt&&`${jt}-${Xt}`,Zt,Nt==null?void 0:Nt.className),style:Object.assign(Object.assign({},Nt==null?void 0:Nt.style),dr),closeIcon:vr,closable:pr??!!vr}))},At={open:Ct,destroy:Dt=>{var Ft,kt;Dt!==void 0?(Ft=Et.current)===null||Ft===void 0||Ft.close(Dt):(kt=Et.current)===null||kt===void 0||kt.destroy()}};return["success","info","warning","error"].forEach(Dt=>{At[Dt]=Ft=>Ct(Object.assign(Object.assign({},Ft),{type:Dt}))}),At},[]),React$8.createElement(Holder,Object.assign({key:"notification-holder"},ht,{ref:Et}))]}function useNotification(ht){return useInternalNotification(ht)}const AppConfigContext=React$8.createContext({}),AppContext=React$8.createContext({message:{},notification:{},modal:{}}),AppContext$1=AppContext,genBaseStyle$4=ht=>{const{componentCls:Et,colorText:yt,fontSize:Ct,lineHeight:$t,fontFamily:At}=ht;return{[Et]:{color:yt,fontSize:Ct,lineHeight:$t,fontFamily:At}}},prepareComponentToken$g=()=>({}),useStyle$j=genStyleHooks("App",genBaseStyle$4,prepareComponentToken$g),useApp=()=>React$8.useContext(AppContext$1),App$2=ht=>{const{prefixCls:Et,children:yt,className:Ct,rootClassName:$t,message:At,notification:Bt,style:Dt,component:Ft="div"}=ht,{getPrefixCls:kt}=reactExports.useContext(ConfigContext$1),Mt=kt("app",Et),[Nt,jt,zt]=useStyle$j(Mt),Vt=cls(jt,Mt,Ct,$t,zt),Kt=reactExports.useContext(AppConfigContext),Xt=React$8.useMemo(()=>({message:Object.assign(Object.assign({},Kt.message),At),notification:Object.assign(Object.assign({},Kt.notification),Bt)}),[At,Bt,Kt.message,Kt.notification]),[Qt,Zt]=useMessage(Xt.message),[dr,cr]=useNotification(Xt.notification),[Er,pr]=useModal(),gr=React$8.useMemo(()=>({message:Qt,notification:dr,modal:Er}),[Qt,dr,Er]);devUseWarning()(!(zt&&Ft===!1),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");const vr=Ft===!1?React$8.Fragment:Ft,yr={className:Vt,style:Dt};return Nt(React$8.createElement(AppContext$1.Provider,{value:gr},React$8.createElement(AppConfigContext.Provider,{value:Xt},React$8.createElement(vr,Object.assign({},Ft===!1?void 0:yr),pr,Zt,cr,yt))))};App$2.useApp=useApp;function withPureRenderTheme(ht){return Et=>reactExports.createElement(ConfigProvider$1,{theme:{token:{motion:!1,zIndexPopupBase:0}}},reactExports.createElement(ht,Object.assign({},Et)))}const genPurePanel=(ht,Et,yt,Ct)=>withPureRenderTheme(At=>{const{prefixCls:Bt,style:Dt}=At,Ft=reactExports.useRef(null),[kt,Mt]=reactExports.useState(0),[Nt,jt]=reactExports.useState(0),[zt,Vt]=useMergedState(!1,{value:At.open}),{getPrefixCls:Kt}=reactExports.useContext(ConfigContext$1),Xt=Kt(Et||"select",Bt);reactExports.useEffect(()=>{if(Vt(!0),typeof ResizeObserver<"u"){const dr=new ResizeObserver(Er=>{const pr=Er[0].target;Mt(pr.offsetHeight+8),jt(pr.offsetWidth)}),cr=setInterval(()=>{var Er;const pr=yt?`.${yt(Xt)}`:`.${Xt}-dropdown`,gr=(Er=Ft.current)===null||Er===void 0?void 0:Er.querySelector(pr);gr&&(clearInterval(cr),dr.observe(gr))},10);return()=>{clearInterval(cr),dr.disconnect()}}},[]);let Qt=Object.assign(Object.assign({},At),{style:Object.assign(Object.assign({},Dt),{margin:0}),open:zt,visible:zt,getPopupContainer:()=>Ft.current});Ct&&(Qt=Ct(Qt));const Zt={paddingBottom:kt,position:"relative",minWidth:Nt};return reactExports.createElement("div",{ref:Ft,style:Zt},reactExports.createElement(ht,Object.assign({},Qt)))}),isMobile$3=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var ht=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(ht)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(ht==null?void 0:ht.substr(0,4))};var TransBtn=function ht(Et){var yt=Et.className,Ct=Et.customizeIcon,$t=Et.customizeIconProps,At=Et.children,Bt=Et.onMouseDown,Dt=Et.onClick,Ft=typeof Ct=="function"?Ct($t):Ct;return reactExports.createElement("span",{className:yt,onMouseDown:function(Mt){Mt.preventDefault(),Bt==null||Bt(Mt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Dt,"aria-hidden":!0},Ft!==void 0?Ft:reactExports.createElement("span",{className:cls(yt.split(/\s+/).map(function(kt){return"".concat(kt,"-icon")}))},At))},useAllowClear=function ht(Et,yt,Ct,$t,At){var Bt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Dt=arguments.length>6?arguments[6]:void 0,Ft=arguments.length>7?arguments[7]:void 0,kt=React$8.useMemo(function(){if(_typeof$1($t)==="object")return $t.clearIcon;if(At)return At},[$t,At]),Mt=React$8.useMemo(function(){return!!(!Bt&&$t&&(Ct.length||Dt)&&!(Ft==="combobox"&&Dt===""))},[$t,Bt,Ct.length,Dt,Ft]);return{allowClear:Mt,clearIcon:React$8.createElement(TransBtn,{className:"".concat(Et,"-clear"),onMouseDown:yt,customizeIcon:kt},"×")}},BaseSelectContext=reactExports.createContext(null);function useBaseProps(){return reactExports.useContext(BaseSelectContext)}function useDelayReset(){var ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Et=reactExports.useState(!1),yt=_slicedToArray(Et,2),Ct=yt[0],$t=yt[1],At=reactExports.useRef(null),Bt=function(){window.clearTimeout(At.current)};reactExports.useEffect(function(){return Bt},[]);var Dt=function(kt,Mt){Bt(),At.current=window.setTimeout(function(){$t(kt),Mt&&Mt()},ht)};return[Ct,Dt,Bt]}function useLock(){var ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Et=reactExports.useRef(null),yt=reactExports.useRef(null);reactExports.useEffect(function(){return function(){window.clearTimeout(yt.current)}},[]);function Ct($t){($t||Et.current===null)&&(Et.current=$t),window.clearTimeout(yt.current),yt.current=window.setTimeout(function(){Et.current=null},ht)}return[function(){return Et.current},Ct]}function useSelectTriggerControl(ht,Et,yt,Ct){var $t=reactExports.useRef(null);$t.current={open:Et,triggerOpen:yt,customizedTrigger:Ct},reactExports.useEffect(function(){function At(Bt){var Dt;if(!((Dt=$t.current)!==null&&Dt!==void 0&&Dt.customizedTrigger)){var Ft=Bt.target;Ft.shadowRoot&&Bt.composed&&(Ft=Bt.composedPath()[0]||Ft),$t.current.open&&ht().filter(function(kt){return kt}).every(function(kt){return!kt.contains(Ft)&&kt!==Ft})&&$t.current.triggerOpen(!1)}}return window.addEventListener("mousedown",At),function(){return window.removeEventListener("mousedown",At)}},[])}function isValidateOpenKey(ht){return![KeyCode.ESC,KeyCode.SHIFT,KeyCode.BACKSPACE,KeyCode.TAB,KeyCode.WIN_KEY,KeyCode.ALT,KeyCode.META,KeyCode.WIN_KEY_RIGHT,KeyCode.CTRL,KeyCode.SEMICOLON,KeyCode.EQUALS,KeyCode.CAPS_LOCK,KeyCode.CONTEXT_MENU,KeyCode.F1,KeyCode.F2,KeyCode.F3,KeyCode.F4,KeyCode.F5,KeyCode.F6,KeyCode.F7,KeyCode.F8,KeyCode.F9,KeyCode.F10,KeyCode.F11,KeyCode.F12].includes(ht)}var _excluded$G=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],UNDEFINED$1=void 0;function InternalItem(ht,Et){var yt=ht.prefixCls,Ct=ht.invalidate,$t=ht.item,At=ht.renderItem,Bt=ht.responsive,Dt=ht.responsiveDisabled,Ft=ht.registerSize,kt=ht.itemKey,Mt=ht.className,Nt=ht.style,jt=ht.children,zt=ht.display,Vt=ht.order,Kt=ht.component,Xt=Kt===void 0?"div":Kt,Qt=_objectWithoutProperties$1(ht,_excluded$G),Zt=Bt&&!zt;function dr(vr){Ft(kt,vr)}reactExports.useEffect(function(){return function(){dr(null)}},[]);var cr=At&&$t!==UNDEFINED$1?At($t):jt,Er;Ct||(Er={opacity:Zt?0:1,height:Zt?0:UNDEFINED$1,overflowY:Zt?"hidden":UNDEFINED$1,order:Bt?Vt:UNDEFINED$1,pointerEvents:Zt?"none":UNDEFINED$1,position:Zt?"absolute":UNDEFINED$1});var pr={};Zt&&(pr["aria-hidden"]=!0);var gr=reactExports.createElement(Xt,_extends$5({className:cls(!Ct&&yt,Mt),style:_objectSpread2(_objectSpread2({},Er),Nt)},pr,Qt,{ref:Et}),cr);return Bt&&(gr=reactExports.createElement(RefResizeObserver,{onResize:function(yr){var xr=yr.offsetWidth;dr(xr)},disabled:Dt},gr)),gr}var Item$2=reactExports.forwardRef(InternalItem);Item$2.displayName="Item";function channelUpdate(ht){if(typeof MessageChannel>"u")wrapperRaf(ht);else{var Et=new MessageChannel;Et.port1.onmessage=function(){return ht()},Et.port2.postMessage(void 0)}}function useBatcher(){var ht=reactExports.useRef(null),Et=function(Ct){ht.current||(ht.current=[],channelUpdate(function(){reactDomExports.unstable_batchedUpdates(function(){ht.current.forEach(function($t){$t()}),ht.current=null})})),ht.current.push(Ct)};return Et}function useEffectState(ht,Et){var yt=reactExports.useState(Et),Ct=_slicedToArray(yt,2),$t=Ct[0],At=Ct[1],Bt=useEvent(function(Dt){ht(function(){At(Dt)})});return[$t,Bt]}var OverflowContext=React$8.createContext(null),_excluded$F=["component"],_excluded2$5=["className"],_excluded3$1=["className"],InternalRawItem=function ht(Et,yt){var Ct=reactExports.useContext(OverflowContext);if(!Ct){var $t=Et.component,At=$t===void 0?"div":$t,Bt=_objectWithoutProperties$1(Et,_excluded$F);return reactExports.createElement(At,_extends$5({},Bt,{ref:yt}))}var Dt=Ct.className,Ft=_objectWithoutProperties$1(Ct,_excluded2$5),kt=Et.className,Mt=_objectWithoutProperties$1(Et,_excluded3$1);return reactExports.createElement(OverflowContext.Provider,{value:null},reactExports.createElement(Item$2,_extends$5({ref:yt,className:cls(Dt,kt)},Ft,Mt)))},RawItem=reactExports.forwardRef(InternalRawItem);RawItem.displayName="RawItem";var _excluded$E=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],RESPONSIVE="responsive",INVALIDATE="invalidate";function defaultRenderRest(ht){return"+ ".concat(ht.length," ...")}function Overflow(ht,Et){var yt=ht.prefixCls,Ct=yt===void 0?"rc-overflow":yt,$t=ht.data,At=$t===void 0?[]:$t,Bt=ht.renderItem,Dt=ht.renderRawItem,Ft=ht.itemKey,kt=ht.itemWidth,Mt=kt===void 0?10:kt,Nt=ht.ssr,jt=ht.style,zt=ht.className,Vt=ht.maxCount,Kt=ht.renderRest,Xt=ht.renderRawRest,Qt=ht.suffix,Zt=ht.component,dr=Zt===void 0?"div":Zt,cr=ht.itemComponent,Er=ht.onVisibleChange,pr=_objectWithoutProperties$1(ht,_excluded$E),gr=Nt==="full",vr=useBatcher(),yr=useEffectState(vr,null),xr=_slicedToArray(yr,2),rr=xr[0],Lt=xr[1],Ht=rr||0,Wt=useEffectState(vr,new Map),Gt=_slicedToArray(Wt,2),Yt=Gt[0],er=Gt[1],lr=useEffectState(vr,0),Jt=_slicedToArray(lr,2),Ut=Jt[0],ir=Jt[1],Cr=useEffectState(vr,0),_r=_slicedToArray(Cr,2),$r=_r[0],Tr=_r[1],Dr=useEffectState(vr,0),Ar=_slicedToArray(Dr,2),Fr=Ar[0],Rr=Ar[1],wr=reactExports.useState(null),Sr=_slicedToArray(wr,2),Br=Sr[0],Or=Sr[1],Pr=reactExports.useState(null),Nr=_slicedToArray(Pr,2),Lr=Nr[0],Wr=Nr[1],Ur=reactExports.useMemo(function(){return Lr===null&&gr?Number.MAX_SAFE_INTEGER:Lr||0},[Lr,rr]),jr=reactExports.useState(!1),Kr=_slicedToArray(jr,2),qr=Kr[0],Zr=Kr[1],dn="".concat(Ct,"-item"),Xr=Math.max(Ut,$r),un=Vt===RESPONSIVE,Yr=At.length&&un,Gr=Vt===INVALIDATE,Jr=Yr||typeof Vt=="number"&&At.length>Vt,wn=reactExports.useMemo(function(){var Gn=At;return Yr?rr===null&&gr?Gn=At:Gn=At.slice(0,Math.min(At.length,Ht/Mt)):typeof Vt=="number"&&(Gn=At.slice(0,Vt)),Gn},[At,Mt,rr,Vt,Yr]),kr=reactExports.useMemo(function(){return Yr?At.slice(Ur+1):At.slice(wn.length)},[At,wn,Yr,Ur]),Mr=reactExports.useCallback(function(Gn,gn){var Rn;return typeof Ft=="function"?Ft(Gn):(Rn=Ft&&(Gn==null?void 0:Gn[Ft]))!==null&&Rn!==void 0?Rn:gn},[Ft]),Ir=reactExports.useCallback(Bt||function(Gn){return Gn},[Bt]);function Hr(Gn,gn,Rn){Lr===Gn&&(gn===void 0||gn===Br)||(Wr(Gn),Rn||(Zr(Gn<At.length-1),Er==null||Er(Gn)),gn!==void 0&&Or(gn))}function Vr(Gn,gn){Lt(gn.clientWidth)}function on(Gn,gn){er(function(Rn){var nu=new Map(Rn);return gn===null?nu.delete(Gn):nu.set(Gn,gn),nu})}function Qr(Gn,gn){Tr(gn),ir($r)}function hn(Gn,gn){Rr(gn)}function Wn(Gn){return Yt.get(Mr(wn[Gn],Gn))}useLayoutEffect$1(function(){if(Ht&&typeof Xr=="number"&&wn){var Gn=Fr,gn=wn.length,Rn=gn-1;if(!gn){Hr(0,null);return}for(var nu=0;nu<gn;nu+=1){var pn=Wn(nu);if(gr&&(pn=pn||0),pn===void 0){Hr(nu-1,void 0,!0);break}if(Gn+=pn,Rn===0&&Gn<=Ht||nu===Rn-1&&Gn+Wn(Rn)<=Ht){Hr(Rn,null);break}else if(Gn+Xr>Ht){Hr(nu-1,Gn-pn-Fr+$r);break}}Qt&&Wn(0)+Fr>Ht&&Or(null)}},[Ht,Yt,$r,Fr,Mr,wn]);var _n=qr&&!!kr.length,An={};Br!==null&&Yr&&(An={position:"absolute",left:Br,top:0});var Yn={prefixCls:dn,responsive:Yr,component:cr,invalidate:Gr},Tn=Dt?function(Gn,gn){var Rn=Mr(Gn,gn);return reactExports.createElement(OverflowContext.Provider,{key:Rn,value:_objectSpread2(_objectSpread2({},Yn),{},{order:gn,item:Gn,itemKey:Rn,registerSize:on,display:gn<=Ur})},Dt(Gn,gn))}:function(Gn,gn){var Rn=Mr(Gn,gn);return reactExports.createElement(Item$2,_extends$5({},Yn,{order:gn,key:Rn,item:Gn,renderItem:Ir,itemKey:Rn,registerSize:on,display:gn<=Ur}))},Nn,Zn={order:_n?Ur:Number.MAX_SAFE_INTEGER,className:"".concat(dn,"-rest"),registerSize:Qr,display:_n};if(Xt)Xt&&(Nn=reactExports.createElement(OverflowContext.Provider,{value:_objectSpread2(_objectSpread2({},Yn),Zn)},Xt(kr)));else{var $n=Kt||defaultRenderRest;Nn=reactExports.createElement(Item$2,_extends$5({},Yn,Zn),typeof $n=="function"?$n(kr):$n)}var Fn=reactExports.createElement(dr,_extends$5({className:cls(!Gr&&Ct,zt),style:jt,ref:Et},pr),wn.map(Tn),Jr?Nn:null,Qt&&reactExports.createElement(Item$2,_extends$5({},Yn,{responsive:un,responsiveDisabled:!Yr,order:Ur,className:"".concat(dn,"-suffix"),registerSize:hn,display:!0,style:An}),Qt));return un&&(Fn=reactExports.createElement(RefResizeObserver,{onResize:Vr,disabled:!Yr},Fn)),Fn}var ForwardOverflow=reactExports.forwardRef(Overflow);ForwardOverflow.displayName="Overflow";ForwardOverflow.Item=RawItem;ForwardOverflow.RESPONSIVE=RESPONSIVE;ForwardOverflow.INVALIDATE=INVALIDATE;var Input$3=function ht(Et,yt){var Ct,$t=Et.prefixCls,At=Et.id,Bt=Et.inputElement,Dt=Et.disabled,Ft=Et.tabIndex,kt=Et.autoFocus,Mt=Et.autoComplete,Nt=Et.editable,jt=Et.activeDescendantId,zt=Et.value,Vt=Et.maxLength,Kt=Et.onKeyDown,Xt=Et.onMouseDown,Qt=Et.onChange,Zt=Et.onPaste,dr=Et.onCompositionStart,cr=Et.onCompositionEnd,Er=Et.open,pr=Et.attrs,gr=Bt||reactExports.createElement("input",null),vr=gr,yr=vr.ref,xr=vr.props,rr=xr.onKeyDown,Lt=xr.onChange,Ht=xr.onMouseDown,Wt=xr.onCompositionStart,Gt=xr.onCompositionEnd,Yt=xr.style;return"maxLength"in gr.props,gr=reactExports.cloneElement(gr,_objectSpread2(_objectSpread2(_objectSpread2({type:"search"},xr),{},{id:At,ref:composeRef(yt,yr),disabled:Dt,tabIndex:Ft,autoComplete:Mt||"off",autoFocus:kt,className:cls("".concat($t,"-selection-search-input"),(Ct=gr)===null||Ct===void 0||(Ct=Ct.props)===null||Ct===void 0?void 0:Ct.className),role:"combobox","aria-expanded":Er||!1,"aria-haspopup":"listbox","aria-owns":"".concat(At,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(At,"_list"),"aria-activedescendant":Er?jt:void 0},pr),{},{value:Nt?zt:"",maxLength:Vt,readOnly:!Nt,unselectable:Nt?null:"on",style:_objectSpread2(_objectSpread2({},Yt),{},{opacity:Nt?null:0}),onKeyDown:function(lr){Kt(lr),rr&&rr(lr)},onMouseDown:function(lr){Xt(lr),Ht&&Ht(lr)},onChange:function(lr){Qt(lr),Lt&&Lt(lr)},onCompositionStart:function(lr){dr(lr),Wt&&Wt(lr)},onCompositionEnd:function(lr){cr(lr),Gt&&Gt(lr)},onPaste:Zt})),gr},RefInput=reactExports.forwardRef(Input$3);function toArray$3(ht){return Array.isArray(ht)?ht:ht!==void 0?[ht]:[]}var isClient=typeof window<"u"&&window.document&&window.document.documentElement,isBrowserClient$1=isClient;function hasValue(ht){return ht!=null}function isComboNoValue(ht){return!ht&&ht!==0}function isTitleType$1(ht){return["string","number"].includes(_typeof$1(ht))}function getTitle(ht){var Et=void 0;return ht&&(isTitleType$1(ht.title)?Et=ht.title.toString():isTitleType$1(ht.label)&&(Et=ht.label.toString())),Et}function useLayoutEffect(ht,Et){isBrowserClient$1?reactExports.useLayoutEffect(ht,Et):reactExports.useEffect(ht,Et)}function itemKey$1(ht){var Et;return(Et=ht.key)!==null&&Et!==void 0?Et:ht.value}var onPreventMouseDown=function ht(Et){Et.preventDefault(),Et.stopPropagation()},SelectSelector=function ht(Et){var yt=Et.id,Ct=Et.prefixCls,$t=Et.values,At=Et.open,Bt=Et.searchValue,Dt=Et.autoClearSearchValue,Ft=Et.inputRef,kt=Et.placeholder,Mt=Et.disabled,Nt=Et.mode,jt=Et.showSearch,zt=Et.autoFocus,Vt=Et.autoComplete,Kt=Et.activeDescendantId,Xt=Et.tabIndex,Qt=Et.removeIcon,Zt=Et.maxTagCount,dr=Et.maxTagTextLength,cr=Et.maxTagPlaceholder,Er=cr===void 0?function(Or){return"+ ".concat(Or.length," ...")}:cr,pr=Et.tagRender,gr=Et.onToggleOpen,vr=Et.onRemove,yr=Et.onInputChange,xr=Et.onInputPaste,rr=Et.onInputKeyDown,Lt=Et.onInputMouseDown,Ht=Et.onInputCompositionStart,Wt=Et.onInputCompositionEnd,Gt=reactExports.useRef(null),Yt=reactExports.useState(0),er=_slicedToArray(Yt,2),lr=er[0],Jt=er[1],Ut=reactExports.useState(!1),ir=_slicedToArray(Ut,2),Cr=ir[0],_r=ir[1],$r="".concat(Ct,"-selection"),Tr=At||Nt==="multiple"&&Dt===!1||Nt==="tags"?Bt:"",Dr=Nt==="tags"||Nt==="multiple"&&Dt===!1||jt&&(At||Cr);useLayoutEffect(function(){Jt(Gt.current.scrollWidth)},[Tr]);var Ar=function(Pr,Nr,Lr,Wr,Ur){return reactExports.createElement("span",{title:getTitle(Pr),className:cls("".concat($r,"-item"),_defineProperty$1({},"".concat($r,"-item-disabled"),Lr))},reactExports.createElement("span",{className:"".concat($r,"-item-content")},Nr),Wr&&reactExports.createElement(TransBtn,{className:"".concat($r,"-item-remove"),onMouseDown:onPreventMouseDown,onClick:Ur,customizeIcon:Qt},"×"))},Fr=function(Pr,Nr,Lr,Wr,Ur,jr){var Kr=function(Zr){onPreventMouseDown(Zr),gr(!At)};return reactExports.createElement("span",{onMouseDown:Kr},pr({label:Nr,value:Pr,disabled:Lr,closable:Wr,onClose:Ur,isMaxTag:!!jr}))},Rr=function(Pr){var Nr=Pr.disabled,Lr=Pr.label,Wr=Pr.value,Ur=!Mt&&!Nr,jr=Lr;if(typeof dr=="number"&&(typeof Lr=="string"||typeof Lr=="number")){var Kr=String(jr);Kr.length>dr&&(jr="".concat(Kr.slice(0,dr),"..."))}var qr=function(dn){dn&&dn.stopPropagation(),vr(Pr)};return typeof pr=="function"?Fr(Wr,jr,Nr,Ur,qr):Ar(Pr,jr,Nr,Ur,qr)},wr=function(Pr){var Nr=typeof Er=="function"?Er(Pr):Er;return typeof pr=="function"?Fr(void 0,Nr,!1,!1,void 0,!0):Ar({title:Nr},Nr,!1)},Sr=reactExports.createElement("div",{className:"".concat($r,"-search"),style:{width:lr},onFocus:function(){_r(!0)},onBlur:function(){_r(!1)}},reactExports.createElement(RefInput,{ref:Ft,open:At,prefixCls:Ct,id:yt,inputElement:null,disabled:Mt,autoFocus:zt,autoComplete:Vt,editable:Dr,activeDescendantId:Kt,value:Tr,onKeyDown:rr,onMouseDown:Lt,onChange:yr,onPaste:xr,onCompositionStart:Ht,onCompositionEnd:Wt,tabIndex:Xt,attrs:pickAttrs(Et,!0)}),reactExports.createElement("span",{ref:Gt,className:"".concat($r,"-search-mirror"),"aria-hidden":!0},Tr," ")),Br=reactExports.createElement(ForwardOverflow,{prefixCls:"".concat($r,"-overflow"),data:$t,renderItem:Rr,renderRest:wr,suffix:Sr,itemKey:itemKey$1,maxCount:Zt});return reactExports.createElement(reactExports.Fragment,null,Br,!$t.length&&!Tr&&reactExports.createElement("span",{className:"".concat($r,"-placeholder")},kt))},SingleSelector=function ht(Et){var yt=Et.inputElement,Ct=Et.prefixCls,$t=Et.id,At=Et.inputRef,Bt=Et.disabled,Dt=Et.autoFocus,Ft=Et.autoComplete,kt=Et.activeDescendantId,Mt=Et.mode,Nt=Et.open,jt=Et.values,zt=Et.placeholder,Vt=Et.tabIndex,Kt=Et.showSearch,Xt=Et.searchValue,Qt=Et.activeValue,Zt=Et.maxLength,dr=Et.onInputKeyDown,cr=Et.onInputMouseDown,Er=Et.onInputChange,pr=Et.onInputPaste,gr=Et.onInputCompositionStart,vr=Et.onInputCompositionEnd,yr=Et.title,xr=reactExports.useState(!1),rr=_slicedToArray(xr,2),Lt=rr[0],Ht=rr[1],Wt=Mt==="combobox",Gt=Wt||Kt,Yt=jt[0],er=Xt||"";Wt&&Qt&&!Lt&&(er=Qt),reactExports.useEffect(function(){Wt&&Ht(!1)},[Wt,Qt]);var lr=Mt!=="combobox"&&!Nt&&!Kt?!1:!!er,Jt=yr===void 0?getTitle(Yt):yr,Ut=reactExports.useMemo(function(){return Yt?null:reactExports.createElement("span",{className:"".concat(Ct,"-selection-placeholder"),style:lr?{visibility:"hidden"}:void 0},zt)},[Yt,lr,zt,Ct]);return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("span",{className:"".concat(Ct,"-selection-search")},reactExports.createElement(RefInput,{ref:At,prefixCls:Ct,id:$t,open:Nt,inputElement:yt,disabled:Bt,autoFocus:Dt,autoComplete:Ft,editable:Gt,activeDescendantId:kt,value:er,onKeyDown:dr,onMouseDown:cr,onChange:function(Cr){Ht(!0),Er(Cr)},onPaste:pr,onCompositionStart:gr,onCompositionEnd:vr,tabIndex:Vt,attrs:pickAttrs(Et,!0),maxLength:Wt?Zt:void 0})),!Wt&&Yt?reactExports.createElement("span",{className:"".concat(Ct,"-selection-item"),title:Jt,style:lr?{visibility:"hidden"}:void 0},Yt.label):null,Ut)},Selector=function ht(Et,yt){var Ct=reactExports.useRef(null),$t=reactExports.useRef(!1),At=Et.prefixCls,Bt=Et.open,Dt=Et.mode,Ft=Et.showSearch,kt=Et.tokenWithEnter,Mt=Et.disabled,Nt=Et.autoClearSearchValue,jt=Et.onSearch,zt=Et.onSearchSubmit,Vt=Et.onToggleOpen,Kt=Et.onInputKeyDown,Xt=Et.domRef;reactExports.useImperativeHandle(yt,function(){return{focus:function(lr){Ct.current.focus(lr)},blur:function(){Ct.current.blur()}}});var Qt=useLock(0),Zt=_slicedToArray(Qt,2),dr=Zt[0],cr=Zt[1],Er=function(lr){var Jt=lr.which;(Jt===KeyCode.UP||Jt===KeyCode.DOWN)&&lr.preventDefault(),Kt&&Kt(lr),Jt===KeyCode.ENTER&&Dt==="tags"&&!$t.current&&!Bt&&(zt==null||zt(lr.target.value)),isValidateOpenKey(Jt)&&Vt(!0)},pr=function(){cr(!0)},gr=reactExports.useRef(null),vr=function(lr){jt(lr,!0,$t.current)!==!1&&Vt(!0)},yr=function(){$t.current=!0},xr=function(lr){$t.current=!1,Dt!=="combobox"&&vr(lr.target.value)},rr=function(lr){var Jt=lr.target.value;if(kt&&gr.current&&/[\r\n]/.test(gr.current)){var Ut=gr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Jt=Jt.replace(Ut,gr.current)}gr.current=null,vr(Jt)},Lt=function(lr){var Jt=lr.clipboardData,Ut=Jt==null?void 0:Jt.getData("text");gr.current=Ut||""},Ht=function(lr){var Jt=lr.target;if(Jt!==Ct.current){var Ut=document.body.style.msTouchAction!==void 0;Ut?setTimeout(function(){Ct.current.focus()}):Ct.current.focus()}},Wt=function(lr){var Jt=dr();lr.target!==Ct.current&&!Jt&&!(Dt==="combobox"&&Mt)&&lr.preventDefault(),(Dt!=="combobox"&&(!Ft||!Jt)||!Bt)&&(Bt&&Nt!==!1&&jt("",!0,!1),Vt())},Gt={inputRef:Ct,onInputKeyDown:Er,onInputMouseDown:pr,onInputChange:rr,onInputPaste:Lt,onInputCompositionStart:yr,onInputCompositionEnd:xr},Yt=Dt==="multiple"||Dt==="tags"?reactExports.createElement(SelectSelector,_extends$5({},Et,Gt)):reactExports.createElement(SingleSelector,_extends$5({},Et,Gt));return reactExports.createElement("div",{ref:Xt,className:"".concat(At,"-selector"),onClick:Ht,onMouseDown:Wt},Yt)},ForwardSelector=reactExports.forwardRef(Selector);function Arrow(ht){var Et=ht.prefixCls,yt=ht.align,Ct=ht.arrow,$t=ht.arrowPos,At=Ct||{},Bt=At.className,Dt=At.content,Ft=$t.x,kt=Ft===void 0?0:Ft,Mt=$t.y,Nt=Mt===void 0?0:Mt,jt=reactExports.useRef();if(!yt||!yt.points)return null;var zt={position:"absolute"};if(yt.autoArrow!==!1){var Vt=yt.points[0],Kt=yt.points[1],Xt=Vt[0],Qt=Vt[1],Zt=Kt[0],dr=Kt[1];Xt===Zt||!["t","b"].includes(Xt)?zt.top=Nt:Xt==="t"?zt.top=0:zt.bottom=0,Qt===dr||!["l","r"].includes(Qt)?zt.left=kt:Qt==="l"?zt.left=0:zt.right=0}return reactExports.createElement("div",{ref:jt,className:cls("".concat(Et,"-arrow"),Bt),style:zt},Dt)}function Mask(ht){var Et=ht.prefixCls,yt=ht.open,Ct=ht.zIndex,$t=ht.mask,At=ht.motion;return $t?reactExports.createElement(CSSMotion,_extends$5({},At,{motionAppear:!0,visible:yt,removeOnLeave:!0}),function(Bt){var Dt=Bt.className;return reactExports.createElement("div",{style:{zIndex:Ct},className:cls("".concat(Et,"-mask"),Dt)})}):null}var PopupContent=reactExports.memo(function(ht){var Et=ht.children;return Et},function(ht,Et){return Et.cache}),Popup$1=reactExports.forwardRef(function(ht,Et){var yt=ht.popup,Ct=ht.className,$t=ht.prefixCls,At=ht.style,Bt=ht.target,Dt=ht.onVisibleChanged,Ft=ht.open,kt=ht.keepDom,Mt=ht.fresh,Nt=ht.onClick,jt=ht.mask,zt=ht.arrow,Vt=ht.arrowPos,Kt=ht.align,Xt=ht.motion,Qt=ht.maskMotion,Zt=ht.forceRender,dr=ht.getPopupContainer,cr=ht.autoDestroy,Er=ht.portal,pr=ht.zIndex,gr=ht.onMouseEnter,vr=ht.onMouseLeave,yr=ht.onPointerEnter,xr=ht.ready,rr=ht.offsetX,Lt=ht.offsetY,Ht=ht.offsetR,Wt=ht.offsetB,Gt=ht.onAlign,Yt=ht.onPrepare,er=ht.stretch,lr=ht.targetWidth,Jt=ht.targetHeight,Ut=typeof yt=="function"?yt():yt,ir=Ft||kt,Cr=(dr==null?void 0:dr.length)>0,_r=reactExports.useState(!dr||!Cr),$r=_slicedToArray(_r,2),Tr=$r[0],Dr=$r[1];if(useLayoutEffect$1(function(){!Tr&&Cr&&Bt&&Dr(!0)},[Tr,Cr,Bt]),!Tr)return null;var Ar="auto",Fr={left:"-1000vw",top:"-1000vh",right:Ar,bottom:Ar};if(xr||!Ft){var Rr,wr=Kt.points,Sr=Kt.dynamicInset||((Rr=Kt._experimental)===null||Rr===void 0?void 0:Rr.dynamicInset),Br=Sr&&wr[0][1]==="r",Or=Sr&&wr[0][0]==="b";Br?(Fr.right=Ht,Fr.left=Ar):(Fr.left=rr,Fr.right=Ar),Or?(Fr.bottom=Wt,Fr.top=Ar):(Fr.top=Lt,Fr.bottom=Ar)}var Pr={};return er&&(er.includes("height")&&Jt?Pr.height=Jt:er.includes("minHeight")&&Jt&&(Pr.minHeight=Jt),er.includes("width")&&lr?Pr.width=lr:er.includes("minWidth")&&lr&&(Pr.minWidth=lr)),Ft||(Pr.pointerEvents="none"),reactExports.createElement(Er,{open:Zt||ir,getContainer:dr&&function(){return dr(Bt)},autoDestroy:cr},reactExports.createElement(Mask,{prefixCls:$t,open:Ft,zIndex:pr,mask:jt,motion:Qt}),reactExports.createElement(RefResizeObserver,{onResize:Gt,disabled:!Ft},function(Nr){return reactExports.createElement(CSSMotion,_extends$5({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:Zt,leavedClassName:"".concat($t,"-hidden")},Xt,{onAppearPrepare:Yt,onEnterPrepare:Yt,visible:Ft,onVisibleChanged:function(Wr){var Ur;Xt==null||(Ur=Xt.onVisibleChanged)===null||Ur===void 0||Ur.call(Xt,Wr),Dt(Wr)}}),function(Lr,Wr){var Ur=Lr.className,jr=Lr.style,Kr=cls($t,Ur,Ct);return reactExports.createElement("div",{ref:composeRef(Nr,Et,Wr),className:Kr,style:_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({"--arrow-x":"".concat(Vt.x||0,"px"),"--arrow-y":"".concat(Vt.y||0,"px")},Fr),Pr),jr),{},{boxSizing:"border-box",zIndex:pr},At),onMouseEnter:gr,onMouseLeave:vr,onPointerEnter:yr,onClick:Nt},zt&&reactExports.createElement(Arrow,{prefixCls:$t,arrow:zt,arrowPos:Vt,align:Kt}),reactExports.createElement(PopupContent,{cache:!Ft&&!Mt},Ut))})}))}),TriggerWrapper=reactExports.forwardRef(function(ht,Et){var yt=ht.children,Ct=ht.getTriggerDOMNode,$t=supportRef(yt),At=reactExports.useCallback(function(Dt){fillRef(Et,Ct?Ct(Dt):Dt)},[Ct]),Bt=useComposeRef(At,yt.ref);return $t?reactExports.cloneElement(yt,{ref:Bt}):yt}),TriggerContext=reactExports.createContext(null);function toArray$2(ht){return ht?Array.isArray(ht)?ht:[ht]:[]}function useAction(ht,Et,yt,Ct){return reactExports.useMemo(function(){var $t=toArray$2(yt??Et),At=toArray$2(Ct??Et),Bt=new Set($t),Dt=new Set(At);return ht&&(Bt.has("hover")&&(Bt.delete("hover"),Bt.add("click")),Dt.has("hover")&&(Dt.delete("hover"),Dt.add("click"))),[Bt,Dt]},[ht,Et,yt,Ct])}function isPointsEq(){var ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],yt=arguments.length>2?arguments[2]:void 0;return yt?ht[0]===Et[0]:ht[0]===Et[0]&&ht[1]===Et[1]}function getAlignPopupClassName(ht,Et,yt,Ct){for(var $t=yt.points,At=Object.keys(ht),Bt=0;Bt<At.length;Bt+=1){var Dt,Ft=At[Bt];if(isPointsEq((Dt=ht[Ft])===null||Dt===void 0?void 0:Dt.points,$t,Ct))return"".concat(Et,"-placement-").concat(Ft)}return""}function getMotion$1(ht,Et,yt,Ct){return Et||(yt?{motionName:"".concat(ht,"-").concat(yt)}:Ct?{motionName:Ct}:null)}function getWin(ht){return ht.ownerDocument.defaultView}function collectScroller(ht){for(var Et=[],yt=ht==null?void 0:ht.parentElement,Ct=["hidden","scroll","clip","auto"];yt;){var $t=getWin(yt).getComputedStyle(yt),At=$t.overflowX,Bt=$t.overflowY,Dt=$t.overflow;[At,Bt,Dt].some(function(Ft){return Ct.includes(Ft)})&&Et.push(yt),yt=yt.parentElement}return Et}function toNum(ht){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(ht)?Et:ht}function getPxValue(ht){return toNum(parseFloat(ht),0)}function getVisibleArea(ht,Et){var yt=_objectSpread2({},ht);return(Et||[]).forEach(function(Ct){if(!(Ct instanceof HTMLBodyElement||Ct instanceof HTMLHtmlElement)){var $t=getWin(Ct).getComputedStyle(Ct),At=$t.overflow,Bt=$t.overflowClipMargin,Dt=$t.borderTopWidth,Ft=$t.borderBottomWidth,kt=$t.borderLeftWidth,Mt=$t.borderRightWidth,Nt=Ct.getBoundingClientRect(),jt=Ct.offsetHeight,zt=Ct.clientHeight,Vt=Ct.offsetWidth,Kt=Ct.clientWidth,Xt=getPxValue(Dt),Qt=getPxValue(Ft),Zt=getPxValue(kt),dr=getPxValue(Mt),cr=toNum(Math.round(Nt.width/Vt*1e3)/1e3),Er=toNum(Math.round(Nt.height/jt*1e3)/1e3),pr=(Vt-Kt-Zt-dr)*cr,gr=(jt-zt-Xt-Qt)*Er,vr=Xt*Er,yr=Qt*Er,xr=Zt*cr,rr=dr*cr,Lt=0,Ht=0;if(At==="clip"){var Wt=getPxValue(Bt);Lt=Wt*cr,Ht=Wt*Er}var Gt=Nt.x+xr-Lt,Yt=Nt.y+vr-Ht,er=Gt+Nt.width+2*Lt-xr-rr-pr,lr=Yt+Nt.height+2*Ht-vr-yr-gr;yt.left=Math.max(yt.left,Gt),yt.top=Math.max(yt.top,Yt),yt.right=Math.min(yt.right,er),yt.bottom=Math.min(yt.bottom,lr)}}),yt}function getUnitOffset(ht){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,yt="".concat(Et),Ct=yt.match(/^(.*)\%$/);return Ct?ht*(parseFloat(Ct[1])/100):parseFloat(yt)}function getNumberOffset(ht,Et){var yt=Et||[],Ct=_slicedToArray(yt,2),$t=Ct[0],At=Ct[1];return[getUnitOffset(ht.width,$t),getUnitOffset(ht.height,At)]}function splitPoints(){var ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[ht[0],ht[1]]}function getAlignPoint(ht,Et){var yt=Et[0],Ct=Et[1],$t,At;return yt==="t"?At=ht.y:yt==="b"?At=ht.y+ht.height:At=ht.y+ht.height/2,Ct==="l"?$t=ht.x:Ct==="r"?$t=ht.x+ht.width:$t=ht.x+ht.width/2,{x:$t,y:At}}function reversePoints(ht,Et){var yt={t:"b",b:"t",l:"r",r:"l"};return ht.map(function(Ct,$t){return $t===Et?yt[Ct]||"c":Ct}).join("")}function useAlign(ht,Et,yt,Ct,$t,At,Bt){var Dt=reactExports.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:$t[Ct]||{}}),Ft=_slicedToArray(Dt,2),kt=Ft[0],Mt=Ft[1],Nt=reactExports.useRef(0),jt=reactExports.useMemo(function(){return Et?collectScroller(Et):[]},[Et]),zt=reactExports.useRef({}),Vt=function(){zt.current={}};ht||Vt();var Kt=useEvent(function(){if(Et&&yt&&ht){let Lu=function(bu,Iu){var Hu=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Kr,_i=Ut.x+bu,Vu=Ut.y+Iu,Eo=_i+Rr,Qu=Vu+Fr,_o=Math.max(_i,Hu.left),Mo=Math.max(Vu,Hu.top),To=Math.min(Eo,Hu.right),Cs=Math.min(Qu,Hu.bottom);return Math.max(0,(To-_o)*(Cs-Mo))},ao=function(){Bn=Ut.y+$n,Vn=Bn+Fr,En=Ut.x+Zn,Sn=En+Rr};var Zt,dr,cr=Et,Er=cr.ownerDocument,pr=getWin(cr),gr=pr.getComputedStyle(cr),vr=gr.width,yr=gr.height,xr=gr.position,rr=cr.style.left,Lt=cr.style.top,Ht=cr.style.right,Wt=cr.style.bottom,Gt=cr.style.overflow,Yt=_objectSpread2(_objectSpread2({},$t[Ct]),At),er=Er.createElement("div");(Zt=cr.parentElement)===null||Zt===void 0||Zt.appendChild(er),er.style.left="".concat(cr.offsetLeft,"px"),er.style.top="".concat(cr.offsetTop,"px"),er.style.position=xr,er.style.height="".concat(cr.offsetHeight,"px"),er.style.width="".concat(cr.offsetWidth,"px"),cr.style.left="0",cr.style.top="0",cr.style.right="auto",cr.style.bottom="auto",cr.style.overflow="hidden";var lr;if(Array.isArray(yt))lr={x:yt[0],y:yt[1],width:0,height:0};else{var Jt=yt.getBoundingClientRect();lr={x:Jt.x,y:Jt.y,width:Jt.width,height:Jt.height}}var Ut=cr.getBoundingClientRect(),ir=Er.documentElement,Cr=ir.clientWidth,_r=ir.clientHeight,$r=ir.scrollWidth,Tr=ir.scrollHeight,Dr=ir.scrollTop,Ar=ir.scrollLeft,Fr=Ut.height,Rr=Ut.width,wr=lr.height,Sr=lr.width,Br={left:0,top:0,right:Cr,bottom:_r},Or={left:-Ar,top:-Dr,right:$r-Ar,bottom:Tr-Dr},Pr=Yt.htmlRegion,Nr="visible",Lr="visibleFirst";Pr!=="scroll"&&Pr!==Lr&&(Pr=Nr);var Wr=Pr===Lr,Ur=getVisibleArea(Or,jt),jr=getVisibleArea(Br,jt),Kr=Pr===Nr?jr:Ur,qr=Wr?jr:Kr;cr.style.left="auto",cr.style.top="auto",cr.style.right="0",cr.style.bottom="0";var Zr=cr.getBoundingClientRect();cr.style.left=rr,cr.style.top=Lt,cr.style.right=Ht,cr.style.bottom=Wt,cr.style.overflow=Gt,(dr=cr.parentElement)===null||dr===void 0||dr.removeChild(er);var dn=toNum(Math.round(Rr/parseFloat(vr)*1e3)/1e3),Xr=toNum(Math.round(Fr/parseFloat(yr)*1e3)/1e3);if(dn===0||Xr===0||isDOM(yt)&&!isVisible(yt))return;var un=Yt.offset,Yr=Yt.targetOffset,Gr=getNumberOffset(Ut,un),Jr=_slicedToArray(Gr,2),wn=Jr[0],kr=Jr[1],Mr=getNumberOffset(lr,Yr),Ir=_slicedToArray(Mr,2),Hr=Ir[0],Vr=Ir[1];lr.x-=Hr,lr.y-=Vr;var on=Yt.points||[],Qr=_slicedToArray(on,2),hn=Qr[0],Wn=Qr[1],_n=splitPoints(Wn),An=splitPoints(hn),Yn=getAlignPoint(lr,_n),Tn=getAlignPoint(Ut,An),Nn=_objectSpread2({},Yt),Zn=Yn.x-Tn.x+wn,$n=Yn.y-Tn.y+kr,Fn=Lu(Zn,$n),Gn=Lu(Zn,$n,jr),gn=getAlignPoint(lr,["t","l"]),Rn=getAlignPoint(Ut,["t","l"]),nu=getAlignPoint(lr,["b","r"]),pn=getAlignPoint(Ut,["b","r"]),yn=Yt.overflow||{},jn=yn.adjustX,Cn=yn.adjustY,On=yn.shiftX,au=yn.shiftY,In=function(Iu){return typeof Iu=="boolean"?Iu:Iu>=0},Bn,Vn,En,Sn;ao();var Xn=In(Cn),uu=An[0]===_n[0];if(Xn&&An[0]==="t"&&(Vn>qr.bottom||zt.current.bt)){var Eu=$n;uu?Eu-=Fr-wr:Eu=gn.y-pn.y-kr;var pu=Lu(Zn,Eu),Qn=Lu(Zn,Eu,jr);pu>Fn||pu===Fn&&(!Wr||Qn>=Gn)?(zt.current.bt=!0,$n=Eu,kr=-kr,Nn.points=[reversePoints(An,0),reversePoints(_n,0)]):zt.current.bt=!1}if(Xn&&An[0]==="b"&&(Bn<qr.top||zt.current.tb)){var Jn=$n;uu?Jn+=Fr-wr:Jn=nu.y-Rn.y-kr;var ou=Lu(Zn,Jn),mu=Lu(Zn,Jn,jr);ou>Fn||ou===Fn&&(!Wr||mu>=Gn)?(zt.current.tb=!0,$n=Jn,kr=-kr,Nn.points=[reversePoints(An,0),reversePoints(_n,0)]):zt.current.tb=!1}var xu=In(jn),_u=An[1]===_n[1];if(xu&&An[1]==="l"&&(Sn>qr.right||zt.current.rl)){var $u=Zn;_u?$u-=Rr-Sr:$u=gn.x-pn.x-wn;var Au=Lu($u,$n),Bu=Lu($u,$n,jr);Au>Fn||Au===Fn&&(!Wr||Bu>=Gn)?(zt.current.rl=!0,Zn=$u,wn=-wn,Nn.points=[reversePoints(An,1),reversePoints(_n,1)]):zt.current.rl=!1}if(xu&&An[1]==="r"&&(En<qr.left||zt.current.lr)){var Su=Zn;_u?Su+=Rr-Sr:Su=nu.x-Rn.x-wn;var Ru=Lu(Su,$n),lu=Lu(Su,$n,jr);Ru>Fn||Ru===Fn&&(!Wr||lu>=Gn)?(zt.current.lr=!0,Zn=Su,wn=-wn,Nn.points=[reversePoints(An,1),reversePoints(_n,1)]):zt.current.lr=!1}ao();var du=On===!0?0:On;typeof du=="number"&&(En<jr.left&&(Zn-=En-jr.left-wn,lr.x+Sr<jr.left+du&&(Zn+=lr.x-jr.left+Sr-du)),Sn>jr.right&&(Zn-=Sn-jr.right-wn,lr.x>jr.right-du&&(Zn+=lr.x-jr.right+du)));var fu=au===!0?0:au;typeof fu=="number"&&(Bn<jr.top&&($n-=Bn-jr.top-kr,lr.y+wr<jr.top+fu&&($n+=lr.y-jr.top+wr-fu)),Vn>jr.bottom&&($n-=Vn-jr.bottom-kr,lr.y>jr.bottom-fu&&($n+=lr.y-jr.bottom+fu)));var Tu=Ut.x+Zn,Zu=Tu+Rr,rn=Ut.y+$n,xn=rn+Fr,cn=lr.x,Dn=cn+Sr,Mn=lr.y,vn=Mn+wr,Ln=Math.max(Tu,cn),zn=Math.min(Zu,Dn),Hn=(Ln+zn)/2,Un=Hn-Tu,Kn=Math.max(rn,Mn),cu=Math.min(xn,vn),Cu=(Kn+cu)/2,Du=Cu-rn;Bt==null||Bt(Et,Nn);var Fu=Zr.right-Ut.x-(Zn+Ut.width),Ou=Zr.bottom-Ut.y-($n+Ut.height);dn===1&&(Zn=Math.round(Zn),Fu=Math.round(Fu)),Xr===1&&($n=Math.round($n),Ou=Math.round(Ou));var Nu={ready:!0,offsetX:Zn/dn,offsetY:$n/Xr,offsetR:Fu/dn,offsetB:Ou/Xr,arrowX:Un/dn,arrowY:Du/Xr,scaleX:dn,scaleY:Xr,align:Nn};Mt(Nu)}}),Xt=function(){Nt.current+=1;var dr=Nt.current;Promise.resolve().then(function(){Nt.current===dr&&Kt()})},Qt=function(){Mt(function(dr){return _objectSpread2(_objectSpread2({},dr),{},{ready:!1})})};return useLayoutEffect$1(Qt,[Ct]),useLayoutEffect$1(function(){ht||Qt()},[ht]),[kt.ready,kt.offsetX,kt.offsetY,kt.offsetR,kt.offsetB,kt.arrowX,kt.arrowY,kt.scaleX,kt.scaleY,kt.align,Xt]}function useWatch(ht,Et,yt,Ct,$t){useLayoutEffect$1(function(){if(ht&&Et&&yt){let Nt=function(){Ct(),$t()};var At=Et,Bt=yt,Dt=collectScroller(At),Ft=collectScroller(Bt),kt=getWin(Bt),Mt=new Set([kt].concat(_toConsumableArray(Dt),_toConsumableArray(Ft)));return Mt.forEach(function(jt){jt.addEventListener("scroll",Nt,{passive:!0})}),kt.addEventListener("resize",Nt,{passive:!0}),Ct(),function(){Mt.forEach(function(jt){jt.removeEventListener("scroll",Nt),kt.removeEventListener("resize",Nt)})}}},[ht,Et,yt])}function useWinClick(ht,Et,yt,Ct,$t,At,Bt,Dt){var Ft=reactExports.useRef(ht);Ft.current=ht,reactExports.useEffect(function(){if(Et&&Ct&&(!$t||At)){var kt=function(zt){var Vt=zt.target;Ft.current&&!Bt(Vt)&&Dt(!1)},Mt=getWin(Ct);Mt.addEventListener("mousedown",kt,!0),Mt.addEventListener("contextmenu",kt,!0);var Nt=getShadowRoot(yt);return Nt&&(Nt.addEventListener("mousedown",kt,!0),Nt.addEventListener("contextmenu",kt,!0)),function(){Mt.removeEventListener("mousedown",kt,!0),Mt.removeEventListener("contextmenu",kt,!0),Nt&&(Nt.removeEventListener("mousedown",kt,!0),Nt.removeEventListener("contextmenu",kt,!0))}}},[Et,yt,Ct,$t,At])}var _excluded$D=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function generateTrigger(){var ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Portal,Et=reactExports.forwardRef(function(yt,Ct){var $t=yt.prefixCls,At=$t===void 0?"rc-trigger-popup":$t,Bt=yt.children,Dt=yt.action,Ft=Dt===void 0?"hover":Dt,kt=yt.showAction,Mt=yt.hideAction,Nt=yt.popupVisible,jt=yt.defaultPopupVisible,zt=yt.onPopupVisibleChange,Vt=yt.afterPopupVisibleChange,Kt=yt.mouseEnterDelay,Xt=yt.mouseLeaveDelay,Qt=Xt===void 0?.1:Xt,Zt=yt.focusDelay,dr=yt.blurDelay,cr=yt.mask,Er=yt.maskClosable,pr=Er===void 0?!0:Er,gr=yt.getPopupContainer,vr=yt.forceRender,yr=yt.autoDestroy,xr=yt.destroyPopupOnHide,rr=yt.popup,Lt=yt.popupClassName,Ht=yt.popupStyle,Wt=yt.popupPlacement,Gt=yt.builtinPlacements,Yt=Gt===void 0?{}:Gt,er=yt.popupAlign,lr=yt.zIndex,Jt=yt.stretch,Ut=yt.getPopupClassNameFromAlign,ir=yt.fresh,Cr=yt.alignPoint,_r=yt.onPopupClick,$r=yt.onPopupAlign,Tr=yt.arrow,Dr=yt.popupMotion,Ar=yt.maskMotion,Fr=yt.popupTransitionName,Rr=yt.popupAnimation,wr=yt.maskTransitionName,Sr=yt.maskAnimation,Br=yt.className,Or=yt.getTriggerDOMNode,Pr=_objectWithoutProperties$1(yt,_excluded$D),Nr=yr||xr||!1,Lr=reactExports.useState(!1),Wr=_slicedToArray(Lr,2),Ur=Wr[0],jr=Wr[1];useLayoutEffect$1(function(){jr(isMobile$3())},[]);var Kr=reactExports.useRef({}),qr=reactExports.useContext(TriggerContext),Zr=reactExports.useMemo(function(){return{registerSubPopup:function(Mu,Gu){Kr.current[Mu]=Gu,qr==null||qr.registerSubPopup(Mu,Gu)}}},[qr]),dn=useId$1(),Xr=reactExports.useState(null),un=_slicedToArray(Xr,2),Yr=un[0],Gr=un[1],Jr=reactExports.useRef(null),wn=useEvent(function(vu){Jr.current=vu,isDOM(vu)&&Yr!==vu&&Gr(vu),qr==null||qr.registerSubPopup(dn,vu)}),kr=reactExports.useState(null),Mr=_slicedToArray(kr,2),Ir=Mr[0],Hr=Mr[1],Vr=reactExports.useRef(null),on=useEvent(function(vu){isDOM(vu)&&Ir!==vu&&(Hr(vu),Vr.current=vu)}),Qr=reactExports.Children.only(Bt),hn=(Qr==null?void 0:Qr.props)||{},Wn={},_n=useEvent(function(vu){var Mu,Gu,uo=Ir;return(uo==null?void 0:uo.contains(vu))||((Mu=getShadowRoot(uo))===null||Mu===void 0?void 0:Mu.host)===vu||vu===uo||(Yr==null?void 0:Yr.contains(vu))||((Gu=getShadowRoot(Yr))===null||Gu===void 0?void 0:Gu.host)===vu||vu===Yr||Object.values(Kr.current).some(function(Xu){return(Xu==null?void 0:Xu.contains(vu))||vu===Xu})}),An=getMotion$1(At,Dr,Rr,Fr),Yn=getMotion$1(At,Ar,Sr,wr),Tn=reactExports.useState(jt||!1),Nn=_slicedToArray(Tn,2),Zn=Nn[0],$n=Nn[1],Fn=Nt??Zn,Gn=useEvent(function(vu){Nt===void 0&&$n(vu)});useLayoutEffect$1(function(){$n(Nt||!1)},[Nt]);var gn=reactExports.useRef(Fn);gn.current=Fn;var Rn=reactExports.useRef([]);Rn.current=[];var nu=useEvent(function(vu){var Mu;Gn(vu),((Mu=Rn.current[Rn.current.length-1])!==null&&Mu!==void 0?Mu:Fn)!==vu&&(Rn.current.push(vu),zt==null||zt(vu))}),pn=reactExports.useRef(),yn=function(){clearTimeout(pn.current)},jn=function(Mu){var Gu=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;yn(),Gu===0?nu(Mu):pn.current=setTimeout(function(){nu(Mu)},Gu*1e3)};reactExports.useEffect(function(){return yn},[]);var Cn=reactExports.useState(!1),On=_slicedToArray(Cn,2),au=On[0],In=On[1];useLayoutEffect$1(function(vu){(!vu||Fn)&&In(!0)},[Fn]);var Bn=reactExports.useState(null),Vn=_slicedToArray(Bn,2),En=Vn[0],Sn=Vn[1],Xn=reactExports.useState([0,0]),uu=_slicedToArray(Xn,2),Eu=uu[0],pu=uu[1],Qn=function(Mu){pu([Mu.clientX,Mu.clientY])},Jn=useAlign(Fn,Yr,Cr?Eu:Ir,Wt,Yt,er,$r),ou=_slicedToArray(Jn,11),mu=ou[0],xu=ou[1],_u=ou[2],$u=ou[3],Au=ou[4],Bu=ou[5],Su=ou[6],Ru=ou[7],lu=ou[8],du=ou[9],fu=ou[10],Tu=useAction(Ur,Ft,kt,Mt),Zu=_slicedToArray(Tu,2),rn=Zu[0],xn=Zu[1],cn=rn.has("click"),Dn=xn.has("click")||xn.has("contextMenu"),Mn=useEvent(function(){au||fu()}),vn=function(){gn.current&&Cr&&Dn&&jn(!1)};useWatch(Fn,Ir,Yr,Mn,vn),useLayoutEffect$1(function(){Mn()},[Eu,Wt]),useLayoutEffect$1(function(){Fn&&!(Yt!=null&&Yt[Wt])&&Mn()},[JSON.stringify(er)]);var Ln=reactExports.useMemo(function(){var vu=getAlignPopupClassName(Yt,At,du,Cr);return cls(vu,Ut==null?void 0:Ut(du))},[du,Ut,Yt,At,Cr]);reactExports.useImperativeHandle(Ct,function(){return{nativeElement:Vr.current,popupElement:Jr.current,forceAlign:Mn}});var zn=reactExports.useState(0),Hn=_slicedToArray(zn,2),Un=Hn[0],Kn=Hn[1],cu=reactExports.useState(0),Cu=_slicedToArray(cu,2),Du=Cu[0],Fu=Cu[1],Ou=function(){if(Jt&&Ir){var Mu=Ir.getBoundingClientRect();Kn(Mu.width),Fu(Mu.height)}},Nu=function(){Ou(),Mn()},Lu=function(Mu){In(!1),fu(),Vt==null||Vt(Mu)},ao=function(){return new Promise(function(Mu){Ou(),Sn(function(){return Mu})})};useLayoutEffect$1(function(){En&&(fu(),En(),Sn(null))},[En]);function bu(vu,Mu,Gu,uo){Wn[vu]=function(Xu){var No;uo==null||uo(Xu),jn(Mu,Gu);for(var ds=arguments.length,As=new Array(ds>1?ds-1:0),fs=1;fs<ds;fs++)As[fs-1]=arguments[fs];(No=hn[vu])===null||No===void 0||No.call.apply(No,[hn,Xu].concat(As))}}(cn||Dn)&&(Wn.onClick=function(vu){var Mu;gn.current&&Dn?jn(!1):!gn.current&&cn&&(Qn(vu),jn(!0));for(var Gu=arguments.length,uo=new Array(Gu>1?Gu-1:0),Xu=1;Xu<Gu;Xu++)uo[Xu-1]=arguments[Xu];(Mu=hn.onClick)===null||Mu===void 0||Mu.call.apply(Mu,[hn,vu].concat(uo))}),useWinClick(Fn,Dn,Ir,Yr,cr,pr,_n,jn);var Iu=rn.has("hover"),Hu=xn.has("hover"),_i,Vu;Iu&&(bu("onMouseEnter",!0,Kt,function(vu){Qn(vu)}),bu("onPointerEnter",!0,Kt,function(vu){Qn(vu)}),_i=function(Mu){(Fn||au)&&Yr!==null&&Yr!==void 0&&Yr.contains(Mu.target)&&jn(!0,Kt)},Cr&&(Wn.onMouseMove=function(vu){var Mu;(Mu=hn.onMouseMove)===null||Mu===void 0||Mu.call(hn,vu)})),Hu&&(bu("onMouseLeave",!1,Qt),bu("onPointerLeave",!1,Qt),Vu=function(){jn(!1,Qt)}),rn.has("focus")&&bu("onFocus",!0,Zt),xn.has("focus")&&bu("onBlur",!1,dr),rn.has("contextMenu")&&(Wn.onContextMenu=function(vu){var Mu;gn.current&&xn.has("contextMenu")?jn(!1):(Qn(vu),jn(!0)),vu.preventDefault();for(var Gu=arguments.length,uo=new Array(Gu>1?Gu-1:0),Xu=1;Xu<Gu;Xu++)uo[Xu-1]=arguments[Xu];(Mu=hn.onContextMenu)===null||Mu===void 0||Mu.call.apply(Mu,[hn,vu].concat(uo))}),Br&&(Wn.className=cls(hn.className,Br));var Eo=_objectSpread2(_objectSpread2({},hn),Wn),Qu={},_o=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];_o.forEach(function(vu){Pr[vu]&&(Qu[vu]=function(){for(var Mu,Gu=arguments.length,uo=new Array(Gu),Xu=0;Xu<Gu;Xu++)uo[Xu]=arguments[Xu];(Mu=Eo[vu])===null||Mu===void 0||Mu.call.apply(Mu,[Eo].concat(uo)),Pr[vu].apply(Pr,uo)})});var Mo=reactExports.cloneElement(Qr,_objectSpread2(_objectSpread2({},Eo),Qu)),To={x:Bu,y:Su},Cs=Tr?_objectSpread2({},Tr!==!0?Tr:{}):null;return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(RefResizeObserver,{disabled:!Fn,ref:on,onResize:Nu},reactExports.createElement(TriggerWrapper,{getTriggerDOMNode:Or},Mo)),reactExports.createElement(TriggerContext.Provider,{value:Zr},reactExports.createElement(Popup$1,{portal:ht,ref:wn,prefixCls:At,popup:rr,className:cls(Lt,Ln),style:Ht,target:Ir,onMouseEnter:_i,onMouseLeave:Vu,onPointerEnter:_i,zIndex:lr,open:Fn,keepDom:au,fresh:ir,onClick:_r,mask:cr,motion:An,maskMotion:Yn,onVisibleChanged:Lu,onPrepare:ao,forceRender:vr,autoDestroy:Nr,getPopupContainer:gr,align:du,arrow:Cs,arrowPos:To,ready:mu,offsetX:xu,offsetY:_u,offsetR:$u,offsetB:Au,onAlign:Mn,stretch:Jt,targetWidth:Un/Ru,targetHeight:Du/lu})))});return Et}const Trigger=generateTrigger(Portal);var _excluded$C=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],getBuiltInPlacements$1=function ht(Et){var yt=Et===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:yt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:yt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:yt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:yt,adjustY:1},htmlRegion:"scroll"}}},SelectTrigger=function ht(Et,yt){var Ct=Et.prefixCls;Et.disabled;var $t=Et.visible,At=Et.children,Bt=Et.popupElement,Dt=Et.animation,Ft=Et.transitionName,kt=Et.dropdownStyle,Mt=Et.dropdownClassName,Nt=Et.direction,jt=Nt===void 0?"ltr":Nt,zt=Et.placement,Vt=Et.builtinPlacements,Kt=Et.dropdownMatchSelectWidth,Xt=Et.dropdownRender,Qt=Et.dropdownAlign,Zt=Et.getPopupContainer,dr=Et.empty,cr=Et.getTriggerDOMNode,Er=Et.onPopupVisibleChange,pr=Et.onPopupMouseEnter,gr=_objectWithoutProperties$1(Et,_excluded$C),vr="".concat(Ct,"-dropdown"),yr=Bt;Xt&&(yr=Xt(Bt));var xr=reactExports.useMemo(function(){return Vt||getBuiltInPlacements$1(Kt)},[Vt,Kt]),rr=Dt?"".concat(vr,"-").concat(Dt):Ft,Lt=typeof Kt=="number",Ht=reactExports.useMemo(function(){return Lt?null:Kt===!1?"minWidth":"width"},[Kt,Lt]),Wt=kt;Lt&&(Wt=_objectSpread2(_objectSpread2({},Wt),{},{width:Kt}));var Gt=reactExports.useRef(null);return reactExports.useImperativeHandle(yt,function(){return{getPopupElement:function(){var er;return(er=Gt.current)===null||er===void 0?void 0:er.popupElement}}}),reactExports.createElement(Trigger,_extends$5({},gr,{showAction:Er?["click"]:[],hideAction:Er?["click"]:[],popupPlacement:zt||(jt==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:xr,prefixCls:vr,popupTransitionName:rr,popup:reactExports.createElement("div",{onMouseEnter:pr},yr),ref:Gt,stretch:Ht,popupAlign:Qt,popupVisible:$t,getPopupContainer:Zt,popupClassName:cls(Mt,_defineProperty$1({},"".concat(vr,"-empty"),dr)),popupStyle:Wt,getTriggerDOMNode:cr,onPopupVisibleChange:Er}),At)},RefSelectTrigger=reactExports.forwardRef(SelectTrigger);function getKey$1(ht,Et){var yt=ht.key,Ct;return"value"in ht&&(Ct=ht.value),yt??(Ct!==void 0?Ct:"rc-index-key-".concat(Et))}function isValidCount(ht){return typeof ht<"u"&&!Number.isNaN(ht)}function fillFieldNames$1(ht,Et){var yt=ht||{},Ct=yt.label,$t=yt.value,At=yt.options,Bt=yt.groupLabel,Dt=Ct||(Et?"children":"label");return{label:Dt,value:$t||"value",options:At||"options",groupLabel:Bt||Dt}}function flattenOptions(ht){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},yt=Et.fieldNames,Ct=Et.childrenAsData,$t=[],At=fillFieldNames$1(yt,!1),Bt=At.label,Dt=At.value,Ft=At.options,kt=At.groupLabel;function Mt(Nt,jt){Array.isArray(Nt)&&Nt.forEach(function(zt){if(jt||!(Ft in zt)){var Vt=zt[Dt];$t.push({key:getKey$1(zt,$t.length),groupOption:jt,data:zt,label:zt[Bt],value:Vt})}else{var Kt=zt[kt];Kt===void 0&&Ct&&(Kt=zt.label),$t.push({key:getKey$1(zt,$t.length),group:!0,data:zt,label:Kt}),Mt(zt[Ft],!0)}})}return Mt(ht,!1),$t}function injectPropsWithOption(ht){var Et=_objectSpread2({},ht);return"props"in Et||Object.defineProperty(Et,"props",{get:function(){return warningOnce(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Et}}),Et}var getSeparatedContent=function ht(Et,yt,Ct){if(!yt||!yt.length)return null;var $t=!1,At=function Dt(Ft,kt){var Mt=_toArray(kt),Nt=Mt[0],jt=Mt.slice(1);if(!Nt)return[Ft];var zt=Ft.split(Nt);return $t=$t||zt.length>1,zt.reduce(function(Vt,Kt){return[].concat(_toConsumableArray(Vt),_toConsumableArray(Dt(Kt,jt)))},[]).filter(Boolean)},Bt=At(Et,yt);return $t?typeof Ct<"u"?Bt.slice(0,Ct):Bt:null},SelectContext=reactExports.createContext(null);function Polite(ht){var Et=ht.visible,yt=ht.values;if(!Et)return null;var Ct=50;return reactExports.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(yt.slice(0,Ct).map(function($t){var At=$t.label,Bt=$t.value;return["number","string"].includes(_typeof$1(At))?At:Bt}).join(", ")),yt.length>Ct?", ...":null)}var _excluded$B=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],DEFAULT_OMIT_PROPS=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],isMultiple=function ht(Et){return Et==="tags"||Et==="multiple"},BaseSelect=reactExports.forwardRef(function(ht,Et){var yt,Ct=ht.id,$t=ht.prefixCls,At=ht.className,Bt=ht.showSearch,Dt=ht.tagRender,Ft=ht.direction,kt=ht.omitDomProps,Mt=ht.displayValues,Nt=ht.onDisplayValuesChange,jt=ht.emptyOptions,zt=ht.notFoundContent,Vt=zt===void 0?"Not Found":zt,Kt=ht.onClear,Xt=ht.mode,Qt=ht.disabled,Zt=ht.loading,dr=ht.getInputElement,cr=ht.getRawInputElement,Er=ht.open,pr=ht.defaultOpen,gr=ht.onDropdownVisibleChange,vr=ht.activeValue,yr=ht.onActiveValueChange,xr=ht.activeDescendantId,rr=ht.searchValue,Lt=ht.autoClearSearchValue,Ht=ht.onSearch,Wt=ht.onSearchSplit,Gt=ht.tokenSeparators,Yt=ht.allowClear,er=ht.suffixIcon,lr=ht.clearIcon,Jt=ht.OptionList,Ut=ht.animation,ir=ht.transitionName,Cr=ht.dropdownStyle,_r=ht.dropdownClassName,$r=ht.dropdownMatchSelectWidth,Tr=ht.dropdownRender,Dr=ht.dropdownAlign,Ar=ht.placement,Fr=ht.builtinPlacements,Rr=ht.getPopupContainer,wr=ht.showAction,Sr=wr===void 0?[]:wr,Br=ht.onFocus,Or=ht.onBlur,Pr=ht.onKeyUp,Nr=ht.onKeyDown,Lr=ht.onMouseDown,Wr=_objectWithoutProperties$1(ht,_excluded$B),Ur=isMultiple(Xt),jr=(Bt!==void 0?Bt:Ur)||Xt==="combobox",Kr=_objectSpread2({},Wr);DEFAULT_OMIT_PROPS.forEach(function(vn){delete Kr[vn]}),kt==null||kt.forEach(function(vn){delete Kr[vn]});var qr=reactExports.useState(!1),Zr=_slicedToArray(qr,2),dn=Zr[0],Xr=Zr[1];reactExports.useEffect(function(){Xr(isMobile$3())},[]);var un=reactExports.useRef(null),Yr=reactExports.useRef(null),Gr=reactExports.useRef(null),Jr=reactExports.useRef(null),wn=reactExports.useRef(null),kr=reactExports.useRef(!1),Mr=useDelayReset(),Ir=_slicedToArray(Mr,3),Hr=Ir[0],Vr=Ir[1],on=Ir[2];reactExports.useImperativeHandle(Et,function(){var vn,Ln;return{focus:(vn=Jr.current)===null||vn===void 0?void 0:vn.focus,blur:(Ln=Jr.current)===null||Ln===void 0?void 0:Ln.blur,scrollTo:function(Hn){var Un;return(Un=wn.current)===null||Un===void 0?void 0:Un.scrollTo(Hn)},nativeElement:un.current||Yr.current}});var Qr=reactExports.useMemo(function(){var vn;if(Xt!=="combobox")return rr;var Ln=(vn=Mt[0])===null||vn===void 0?void 0:vn.value;return typeof Ln=="string"||typeof Ln=="number"?String(Ln):""},[rr,Xt,Mt]),hn=Xt==="combobox"&&typeof dr=="function"&&dr()||null,Wn=typeof cr=="function"&&cr(),_n=useComposeRef(Yr,Wn==null||(yt=Wn.props)===null||yt===void 0?void 0:yt.ref),An=reactExports.useState(!1),Yn=_slicedToArray(An,2),Tn=Yn[0],Nn=Yn[1];useLayoutEffect$1(function(){Nn(!0)},[]);var Zn=useMergedState(!1,{defaultValue:pr,value:Er}),$n=_slicedToArray(Zn,2),Fn=$n[0],Gn=$n[1],gn=Tn?Fn:!1,Rn=!Vt&&jt;(Qt||Rn&&gn&&Xt==="combobox")&&(gn=!1);var nu=Rn?!1:gn,pn=reactExports.useCallback(function(vn){var Ln=vn!==void 0?vn:!gn;Qt||(Gn(Ln),gn!==Ln&&(gr==null||gr(Ln)))},[Qt,gn,Gn,gr]),yn=reactExports.useMemo(function(){return(Gt||[]).some(function(vn){return[`
`,`\r
`].includes(vn)})},[Gt]),jn=reactExports.useContext(SelectContext)||{},Cn=jn.maxCount,On=jn.rawValues,au=function(Ln,zn,Hn){if(!(Ur&&isValidCount(Cn)&&(On==null?void 0:On.size)>=Cn)){var Un=!0,Kn=Ln;yr==null||yr(null);var cu=getSeparatedContent(Ln,Gt,isValidCount(Cn)?Cn-On.size:void 0),Cu=Hn?null:cu;return Xt!=="combobox"&&Cu&&(Kn="",Wt==null||Wt(Cu),pn(!1),Un=!1),Ht&&Qr!==Kn&&Ht(Kn,{source:zn?"typing":"effect"}),Un}},In=function(Ln){!Ln||!Ln.trim()||Ht(Ln,{source:"submit"})};reactExports.useEffect(function(){!gn&&!Ur&&Xt!=="combobox"&&au("",!1,!1)},[gn]),reactExports.useEffect(function(){Fn&&Qt&&Gn(!1),Qt&&!kr.current&&Vr(!1)},[Qt]);var Bn=useLock(),Vn=_slicedToArray(Bn,2),En=Vn[0],Sn=Vn[1],Xn=reactExports.useRef(!1),uu=function(Ln){var zn=En(),Hn=Ln.key,Un=Hn==="Enter";if(Un&&(Xt!=="combobox"&&Ln.preventDefault(),gn||pn(!0)),Sn(!!Qr),Hn==="Backspace"&&!zn&&Ur&&!Qr&&Mt.length){for(var Kn=_toConsumableArray(Mt),cu=null,Cu=Kn.length-1;Cu>=0;Cu-=1){var Du=Kn[Cu];if(!Du.disabled){Kn.splice(Cu,1),cu=Du;break}}cu&&Nt(Kn,{type:"remove",values:[cu]})}for(var Fu=arguments.length,Ou=new Array(Fu>1?Fu-1:0),Nu=1;Nu<Fu;Nu++)Ou[Nu-1]=arguments[Nu];if(gn&&(!Un||!Xn.current)){var Lu;(Lu=wn.current)===null||Lu===void 0||Lu.onKeyDown.apply(Lu,[Ln].concat(Ou))}Un&&(Xn.current=!0),Nr==null||Nr.apply(void 0,[Ln].concat(Ou))},Eu=function(Ln){for(var zn=arguments.length,Hn=new Array(zn>1?zn-1:0),Un=1;Un<zn;Un++)Hn[Un-1]=arguments[Un];if(gn){var Kn;(Kn=wn.current)===null||Kn===void 0||Kn.onKeyUp.apply(Kn,[Ln].concat(Hn))}Ln.key==="Enter"&&(Xn.current=!1),Pr==null||Pr.apply(void 0,[Ln].concat(Hn))},pu=function(Ln){var zn=Mt.filter(function(Hn){return Hn!==Ln});Nt(zn,{type:"remove",values:[Ln]})},Qn=reactExports.useRef(!1),Jn=function(){Vr(!0),Qt||(Br&&!Qn.current&&Br.apply(void 0,arguments),Sr.includes("focus")&&pn(!0)),Qn.current=!0},ou=function(){kr.current=!0,Vr(!1,function(){Qn.current=!1,kr.current=!1,pn(!1)}),!Qt&&(Qr&&(Xt==="tags"?Ht(Qr,{source:"submit"}):Xt==="multiple"&&Ht("",{source:"blur"})),Or&&Or.apply(void 0,arguments))},mu=[];reactExports.useEffect(function(){return function(){mu.forEach(function(vn){return clearTimeout(vn)}),mu.splice(0,mu.length)}},[]);var xu=function(Ln){var zn,Hn=Ln.target,Un=(zn=Gr.current)===null||zn===void 0?void 0:zn.getPopupElement();if(Un&&Un.contains(Hn)){var Kn=setTimeout(function(){var Fu=mu.indexOf(Kn);if(Fu!==-1&&mu.splice(Fu,1),on(),!dn&&!Un.contains(document.activeElement)){var Ou;(Ou=Jr.current)===null||Ou===void 0||Ou.focus()}});mu.push(Kn)}for(var cu=arguments.length,Cu=new Array(cu>1?cu-1:0),Du=1;Du<cu;Du++)Cu[Du-1]=arguments[Du];Lr==null||Lr.apply(void 0,[Ln].concat(Cu))},_u=reactExports.useState({}),$u=_slicedToArray(_u,2),Au=$u[1];function Bu(){Au({})}var Su;Wn&&(Su=function(Ln){pn(Ln)}),useSelectTriggerControl(function(){var vn;return[un.current,(vn=Gr.current)===null||vn===void 0?void 0:vn.getPopupElement()]},nu,pn,!!Wn);var Ru=reactExports.useMemo(function(){return _objectSpread2(_objectSpread2({},ht),{},{notFoundContent:Vt,open:gn,triggerOpen:nu,id:Ct,showSearch:jr,multiple:Ur,toggleOpen:pn})},[ht,Vt,nu,gn,Ct,jr,Ur,pn]),lu=!!er||Zt,du;lu&&(du=reactExports.createElement(TransBtn,{className:cls("".concat($t,"-arrow"),_defineProperty$1({},"".concat($t,"-arrow-loading"),Zt)),customizeIcon:er,customizeIconProps:{loading:Zt,searchValue:Qr,open:gn,focused:Hr,showSearch:jr}}));var fu=function(){var Ln;Kt==null||Kt(),(Ln=Jr.current)===null||Ln===void 0||Ln.focus(),Nt([],{type:"clear",values:Mt}),au("",!1,!1)},Tu=useAllowClear($t,fu,Mt,Yt,lr,Qt,Qr,Xt),Zu=Tu.allowClear,rn=Tu.clearIcon,xn=reactExports.createElement(Jt,{ref:wn}),cn=cls($t,At,_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1({},"".concat($t,"-focused"),Hr),"".concat($t,"-multiple"),Ur),"".concat($t,"-single"),!Ur),"".concat($t,"-allow-clear"),Yt),"".concat($t,"-show-arrow"),lu),"".concat($t,"-disabled"),Qt),"".concat($t,"-loading"),Zt),"".concat($t,"-open"),gn),"".concat($t,"-customize-input"),hn),"".concat($t,"-show-search"),jr)),Dn=reactExports.createElement(RefSelectTrigger,{ref:Gr,disabled:Qt,prefixCls:$t,visible:nu,popupElement:xn,animation:Ut,transitionName:ir,dropdownStyle:Cr,dropdownClassName:_r,direction:Ft,dropdownMatchSelectWidth:$r,dropdownRender:Tr,dropdownAlign:Dr,placement:Ar,builtinPlacements:Fr,getPopupContainer:Rr,empty:jt,getTriggerDOMNode:function(Ln){return Yr.current||Ln},onPopupVisibleChange:Su,onPopupMouseEnter:Bu},Wn?reactExports.cloneElement(Wn,{ref:_n}):reactExports.createElement(ForwardSelector,_extends$5({},ht,{domRef:Yr,prefixCls:$t,inputElement:hn,ref:Jr,id:Ct,showSearch:jr,autoClearSearchValue:Lt,mode:Xt,activeDescendantId:xr,tagRender:Dt,values:Mt,open:gn,onToggleOpen:pn,activeValue:vr,searchValue:Qr,onSearch:au,onSearchSubmit:In,onRemove:pu,tokenWithEnter:yn}))),Mn;return Wn?Mn=Dn:Mn=reactExports.createElement("div",_extends$5({className:cn},Kr,{ref:un,onMouseDown:xu,onKeyDown:uu,onKeyUp:Eu,onFocus:Jn,onBlur:ou}),reactExports.createElement(Polite,{visible:Hr&&!gn,values:Mt}),Dn,du,Zu&&rn),reactExports.createElement(BaseSelectContext.Provider,{value:Ru},Mn)}),OptGroup=function ht(){return null};OptGroup.isSelectOptGroup=!0;var Option=function ht(){return null};Option.isSelectOption=!0;var Filler=reactExports.forwardRef(function(ht,Et){var yt=ht.height,Ct=ht.offsetY,$t=ht.offsetX,At=ht.children,Bt=ht.prefixCls,Dt=ht.onInnerResize,Ft=ht.innerProps,kt=ht.rtl,Mt=ht.extra,Nt={},jt={display:"flex",flexDirection:"column"};return Ct!==void 0&&(Nt={height:yt,position:"relative",overflow:"hidden"},jt=_objectSpread2(_objectSpread2({},jt),{},_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1({transform:"translateY(".concat(Ct,"px)")},kt?"marginRight":"marginLeft",-$t),"position","absolute"),"left",0),"right",0),"top",0))),reactExports.createElement("div",{style:Nt},reactExports.createElement(RefResizeObserver,{onResize:function(Vt){var Kt=Vt.offsetHeight;Kt&&Dt&&Dt()}},reactExports.createElement("div",_extends$5({style:jt,className:cls(_defineProperty$1({},"".concat(Bt,"-holder-inner"),Bt)),ref:Et},Ft),At,Mt)))});Filler.displayName="Filler";function Item$1(ht){var Et=ht.children,yt=ht.setRef,Ct=reactExports.useCallback(function($t){yt($t)},[]);return reactExports.cloneElement(Et,{ref:Ct})}function useChildren$1(ht,Et,yt,Ct,$t,At,Bt,Dt){var Ft=Dt.getKey;return ht.slice(Et,yt+1).map(function(kt,Mt){var Nt=Et+Mt,jt=Bt(kt,Nt,{style:{width:Ct},offsetX:$t}),zt=Ft(kt);return reactExports.createElement(Item$1,{key:zt,setRef:function(Kt){return At(kt,Kt)}},jt)})}function findListDiffIndex(ht,Et,yt){var Ct=ht.length,$t=Et.length,At,Bt;if(Ct===0&&$t===0)return null;Ct<$t?(At=ht,Bt=Et):(At=Et,Bt=ht);var Dt={__EMPTY_ITEM__:!0};function Ft(Vt){return Vt!==void 0?yt(Vt):Dt}for(var kt=null,Mt=Math.abs(Ct-$t)!==1,Nt=0;Nt<Bt.length;Nt+=1){var jt=Ft(At[Nt]),zt=Ft(Bt[Nt]);if(jt!==zt){kt=Nt,Mt=Mt||jt!==Ft(Bt[Nt+1]);break}}return kt===null?null:{index:kt,multiple:Mt}}function useDiffItem(ht,Et,yt){var Ct=reactExports.useState(ht),$t=_slicedToArray(Ct,2),At=$t[0],Bt=$t[1],Dt=reactExports.useState(null),Ft=_slicedToArray(Dt,2),kt=Ft[0],Mt=Ft[1];return reactExports.useEffect(function(){var Nt=findListDiffIndex(At||[],ht||[],Et);(Nt==null?void 0:Nt.index)!==void 0&&Mt(ht[Nt.index]),Bt(ht)},[ht]),[kt]}var isFF=(typeof navigator>"u"?"undefined":_typeof$1(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const useOriginScroll=function(ht,Et,yt,Ct){var $t=reactExports.useRef(!1),At=reactExports.useRef(null);function Bt(){clearTimeout(At.current),$t.current=!0,At.current=setTimeout(function(){$t.current=!1},50)}var Dt=reactExports.useRef({top:ht,bottom:Et,left:yt,right:Ct});return Dt.current.top=ht,Dt.current.bottom=Et,Dt.current.left=yt,Dt.current.right=Ct,function(Ft,kt){var Mt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Nt=Ft?kt<0&&Dt.current.left||kt>0&&Dt.current.right:kt<0&&Dt.current.top||kt>0&&Dt.current.bottom;return Mt&&Nt?(clearTimeout(At.current),$t.current=!1):(!Nt||$t.current)&&Bt(),!$t.current&&Nt}};function useFrameWheel(ht,Et,yt,Ct,$t,At,Bt){var Dt=reactExports.useRef(0),Ft=reactExports.useRef(null),kt=reactExports.useRef(null),Mt=reactExports.useRef(!1),Nt=useOriginScroll(Et,yt,Ct,$t);function jt(Zt,dr){wrapperRaf.cancel(Ft.current),Dt.current+=dr,kt.current=dr,!Nt(!1,dr)&&(isFF||Zt.preventDefault(),Ft.current=wrapperRaf(function(){var cr=Mt.current?10:1;Bt(Dt.current*cr),Dt.current=0}))}function zt(Zt,dr){Bt(dr,!0),isFF||Zt.preventDefault()}var Vt=reactExports.useRef(null),Kt=reactExports.useRef(null);function Xt(Zt){if(ht){wrapperRaf.cancel(Kt.current),Kt.current=wrapperRaf(function(){Vt.current=null},2);var dr=Zt.deltaX,cr=Zt.deltaY,Er=Zt.shiftKey,pr=dr,gr=cr;(Vt.current==="sx"||!Vt.current&&Er&&cr&&!dr)&&(pr=cr,gr=0,Vt.current="sx");var vr=Math.abs(pr),yr=Math.abs(gr);Vt.current===null&&(Vt.current=At&&vr>yr?"x":"y"),Vt.current==="y"?jt(Zt,gr):zt(Zt,pr)}}function Qt(Zt){ht&&(Mt.current=Zt.detail===kt.current)}return[Xt,Qt]}function useGetSize(ht,Et,yt,Ct){var $t=reactExports.useMemo(function(){return[new Map,[]]},[ht,yt.id,Ct]),At=_slicedToArray($t,2),Bt=At[0],Dt=At[1],Ft=function(Mt){var Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Mt,jt=Bt.get(Mt),zt=Bt.get(Nt);if(jt===void 0||zt===void 0)for(var Vt=ht.length,Kt=Dt.length;Kt<Vt;Kt+=1){var Xt,Qt=ht[Kt],Zt=Et(Qt);Bt.set(Zt,Kt);var dr=(Xt=yt.get(Zt))!==null&&Xt!==void 0?Xt:Ct;if(Dt[Kt]=(Dt[Kt-1]||0)+dr,Zt===Mt&&(jt=Kt),Zt===Nt&&(zt=Kt),jt!==void 0&&zt!==void 0)break}return{top:Dt[jt-1]||0,bottom:Dt[zt]}};return Ft}var CacheMap=function(){function ht(){_classCallCheck(this,ht),_defineProperty$1(this,"maps",void 0),_defineProperty$1(this,"id",0),this.maps=Object.create(null)}return _createClass$1(ht,[{key:"set",value:function(yt,Ct){this.maps[yt]=Ct,this.id+=1}},{key:"get",value:function(yt){return this.maps[yt]}}]),ht}();function useHeights(ht,Et,yt){var Ct=reactExports.useState(0),$t=_slicedToArray(Ct,2),At=$t[0],Bt=$t[1],Dt=reactExports.useRef(new Map),Ft=reactExports.useRef(new CacheMap),kt=reactExports.useRef();function Mt(){wrapperRaf.cancel(kt.current)}function Nt(){var zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Mt();var Vt=function(){Dt.current.forEach(function(Xt,Qt){if(Xt&&Xt.offsetParent){var Zt=findDOMNode(Xt),dr=Zt.offsetHeight;Ft.current.get(Qt)!==dr&&Ft.current.set(Qt,Zt.offsetHeight)}}),Bt(function(Xt){return Xt+1})};zt?Vt():kt.current=wrapperRaf(Vt)}function jt(zt,Vt){var Kt=ht(zt);Dt.current.get(Kt),Vt?(Dt.current.set(Kt,Vt),Nt()):Dt.current.delete(Kt)}return reactExports.useEffect(function(){return Mt},[]),[jt,Nt,Ft.current,At]}var SMOOTH_PTG=14/15;function useMobileTouchMove(ht,Et,yt){var Ct=reactExports.useRef(!1),$t=reactExports.useRef(0),At=reactExports.useRef(0),Bt=reactExports.useRef(null),Dt=reactExports.useRef(null),Ft,kt=function(zt){if(Ct.current){var Vt=Math.ceil(zt.touches[0].pageX),Kt=Math.ceil(zt.touches[0].pageY),Xt=$t.current-Vt,Qt=At.current-Kt,Zt=Math.abs(Xt)>Math.abs(Qt);Zt?$t.current=Vt:At.current=Kt,yt(Zt,Zt?Xt:Qt)&&zt.preventDefault(),clearInterval(Dt.current),Dt.current=setInterval(function(){Zt?Xt*=SMOOTH_PTG:Qt*=SMOOTH_PTG;var dr=Math.floor(Zt?Xt:Qt);(!yt(Zt,dr,!0)||Math.abs(dr)<=.1)&&clearInterval(Dt.current)},16)}},Mt=function(){Ct.current=!1,Ft()},Nt=function(zt){Ft(),zt.touches.length===1&&!Ct.current&&(Ct.current=!0,$t.current=Math.ceil(zt.touches[0].pageX),At.current=Math.ceil(zt.touches[0].pageY),Bt.current=zt.target,Bt.current.addEventListener("touchmove",kt,{passive:!1}),Bt.current.addEventListener("touchend",Mt,{passive:!0}))};Ft=function(){Bt.current&&(Bt.current.removeEventListener("touchmove",kt),Bt.current.removeEventListener("touchend",Mt))},useLayoutEffect$1(function(){return ht&&Et.current.addEventListener("touchstart",Nt,{passive:!0}),function(){var jt;(jt=Et.current)===null||jt===void 0||jt.removeEventListener("touchstart",Nt),Ft(),clearInterval(Dt.current)}},[ht])}var MAX_TIMES=10;function useScrollTo(ht,Et,yt,Ct,$t,At,Bt,Dt){var Ft=reactExports.useRef(),kt=reactExports.useState(null),Mt=_slicedToArray(kt,2),Nt=Mt[0],jt=Mt[1];return useLayoutEffect$1(function(){if(Nt&&Nt.times<MAX_TIMES){if(!ht.current){jt(function(Jt){return _objectSpread2({},Jt)});return}At();var zt=Nt.targetAlign,Vt=Nt.originAlign,Kt=Nt.index,Xt=Nt.offset,Qt=ht.current.clientHeight,Zt=!1,dr=zt,cr=null;if(Qt){for(var Er=zt||Vt,pr=0,gr=0,vr=0,yr=Math.min(Et.length-1,Kt),xr=0;xr<=yr;xr+=1){var rr=$t(Et[xr]);gr=pr;var Lt=yt.get(rr);vr=gr+(Lt===void 0?Ct:Lt),pr=vr}for(var Ht=Er==="top"?Xt:Qt-Xt,Wt=yr;Wt>=0;Wt-=1){var Gt=$t(Et[Wt]),Yt=yt.get(Gt);if(Yt===void 0){Zt=!0;break}if(Ht-=Yt,Ht<=0)break}switch(Er){case"top":cr=gr-Xt;break;case"bottom":cr=vr-Qt+Xt;break;default:{var er=ht.current.scrollTop,lr=er+Qt;gr<er?dr="top":vr>lr&&(dr="bottom")}}cr!==null&&Bt(cr),cr!==Nt.lastTop&&(Zt=!0)}Zt&&jt(_objectSpread2(_objectSpread2({},Nt),{},{times:Nt.times+1,targetAlign:dr,lastTop:cr}))}},[Nt,ht.current]),function(zt){if(zt==null){Dt();return}if(wrapperRaf.cancel(Ft.current),typeof zt=="number")Bt(zt);else if(zt&&_typeof$1(zt)==="object"){var Vt,Kt=zt.align;"index"in zt?Vt=zt.index:Vt=Et.findIndex(function(Zt){return $t(Zt)===zt.key});var Xt=zt.offset,Qt=Xt===void 0?0:Xt;jt({times:0,index:Vt,offset:Qt,originAlign:Kt})}}}function getPageXY(ht,Et){var yt="touches"in ht?ht.touches[0]:ht;return yt[Et?"pageX":"pageY"]}var ScrollBar=reactExports.forwardRef(function(ht,Et){var yt=ht.prefixCls,Ct=ht.rtl,$t=ht.scrollOffset,At=ht.scrollRange,Bt=ht.onStartMove,Dt=ht.onStopMove,Ft=ht.onScroll,kt=ht.horizontal,Mt=ht.spinSize,Nt=ht.containerSize,jt=ht.style,zt=ht.thumbStyle,Vt=reactExports.useState(!1),Kt=_slicedToArray(Vt,2),Xt=Kt[0],Qt=Kt[1],Zt=reactExports.useState(null),dr=_slicedToArray(Zt,2),cr=dr[0],Er=dr[1],pr=reactExports.useState(null),gr=_slicedToArray(pr,2),vr=gr[0],yr=gr[1],xr=!Ct,rr=reactExports.useRef(),Lt=reactExports.useRef(),Ht=reactExports.useState(!1),Wt=_slicedToArray(Ht,2),Gt=Wt[0],Yt=Wt[1],er=reactExports.useRef(),lr=function(){clearTimeout(er.current),Yt(!0),er.current=setTimeout(function(){Yt(!1)},3e3)},Jt=At-Nt||0,Ut=Nt-Mt||0,ir=reactExports.useMemo(function(){if($t===0||Jt===0)return 0;var wr=$t/Jt;return wr*Ut},[$t,Jt,Ut]),Cr=function(Sr){Sr.stopPropagation(),Sr.preventDefault()},_r=reactExports.useRef({top:ir,dragging:Xt,pageY:cr,startTop:vr});_r.current={top:ir,dragging:Xt,pageY:cr,startTop:vr};var $r=function(Sr){Qt(!0),Er(getPageXY(Sr,kt)),yr(_r.current.top),Bt(),Sr.stopPropagation(),Sr.preventDefault()};reactExports.useEffect(function(){var wr=function(Pr){Pr.preventDefault()},Sr=rr.current,Br=Lt.current;return Sr.addEventListener("touchstart",wr,{passive:!1}),Br.addEventListener("touchstart",$r,{passive:!1}),function(){Sr.removeEventListener("touchstart",wr),Br.removeEventListener("touchstart",$r)}},[]);var Tr=reactExports.useRef();Tr.current=Jt;var Dr=reactExports.useRef();Dr.current=Ut,reactExports.useEffect(function(){if(Xt){var wr,Sr=function(Pr){var Nr=_r.current,Lr=Nr.dragging,Wr=Nr.pageY,Ur=Nr.startTop;wrapperRaf.cancel(wr);var jr=rr.current.getBoundingClientRect(),Kr=Nt/(kt?jr.width:jr.height);if(Lr){var qr=(getPageXY(Pr,kt)-Wr)*Kr,Zr=Ur;!xr&&kt?Zr-=qr:Zr+=qr;var dn=Tr.current,Xr=Dr.current,un=Xr?Zr/Xr:0,Yr=Math.ceil(un*dn);Yr=Math.max(Yr,0),Yr=Math.min(Yr,dn),wr=wrapperRaf(function(){Ft(Yr,kt)})}},Br=function(){Qt(!1),Dt()};return window.addEventListener("mousemove",Sr,{passive:!0}),window.addEventListener("touchmove",Sr,{passive:!0}),window.addEventListener("mouseup",Br,{passive:!0}),window.addEventListener("touchend",Br,{passive:!0}),function(){window.removeEventListener("mousemove",Sr),window.removeEventListener("touchmove",Sr),window.removeEventListener("mouseup",Br),window.removeEventListener("touchend",Br),wrapperRaf.cancel(wr)}}},[Xt]),reactExports.useEffect(function(){return lr(),function(){clearTimeout(er.current)}},[$t]),reactExports.useImperativeHandle(Et,function(){return{delayHidden:lr}});var Ar="".concat(yt,"-scrollbar"),Fr={position:"absolute",visibility:Gt?null:"hidden"},Rr={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return kt?(Fr.height=8,Fr.left=0,Fr.right=0,Fr.bottom=0,Rr.height="100%",Rr.width=Mt,xr?Rr.left=ir:Rr.right=ir):(Fr.width=8,Fr.top=0,Fr.bottom=0,xr?Fr.right=0:Fr.left=0,Rr.width="100%",Rr.height=Mt,Rr.top=ir),reactExports.createElement("div",{ref:rr,className:cls(Ar,_defineProperty$1(_defineProperty$1(_defineProperty$1({},"".concat(Ar,"-horizontal"),kt),"".concat(Ar,"-vertical"),!kt),"".concat(Ar,"-visible"),Gt)),style:_objectSpread2(_objectSpread2({},Fr),jt),onMouseDown:Cr,onMouseMove:lr},reactExports.createElement("div",{ref:Lt,className:cls("".concat(Ar,"-thumb"),_defineProperty$1({},"".concat(Ar,"-thumb-moving"),Xt)),style:_objectSpread2(_objectSpread2({},Rr),zt),onMouseDown:$r}))}),MIN_SIZE=20;function getSpinSize(){var ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,yt=ht/Et*ht;return isNaN(yt)&&(yt=0),yt=Math.max(yt,MIN_SIZE),Math.floor(yt)}var _excluded$A=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],EMPTY_DATA$1=[],ScrollStyle={overflowY:"auto",overflowAnchor:"none"};function RawList(ht,Et){var yt=ht.prefixCls,Ct=yt===void 0?"rc-virtual-list":yt,$t=ht.className,At=ht.height,Bt=ht.itemHeight,Dt=ht.fullHeight,Ft=Dt===void 0?!0:Dt,kt=ht.style,Mt=ht.data,Nt=ht.children,jt=ht.itemKey,zt=ht.virtual,Vt=ht.direction,Kt=ht.scrollWidth,Xt=ht.component,Qt=Xt===void 0?"div":Xt,Zt=ht.onScroll,dr=ht.onVirtualScroll,cr=ht.onVisibleChange,Er=ht.innerProps,pr=ht.extraRender,gr=ht.styles,vr=_objectWithoutProperties$1(ht,_excluded$A),yr=reactExports.useCallback(function(Qn){return typeof jt=="function"?jt(Qn):Qn==null?void 0:Qn[jt]},[jt]),xr=useHeights(yr),rr=_slicedToArray(xr,4),Lt=rr[0],Ht=rr[1],Wt=rr[2],Gt=rr[3],Yt=!!(zt!==!1&&At&&Bt),er=reactExports.useMemo(function(){return Object.values(Wt.maps).reduce(function(Qn,Jn){return Qn+Jn},0)},[Wt.id,Wt.maps]),lr=Yt&&Mt&&(Math.max(Bt*Mt.length,er)>At||!!Kt),Jt=Vt==="rtl",Ut=cls(Ct,_defineProperty$1({},"".concat(Ct,"-rtl"),Jt),$t),ir=Mt||EMPTY_DATA$1,Cr=reactExports.useRef(),_r=reactExports.useRef(),$r=reactExports.useRef(),Tr=reactExports.useState(0),Dr=_slicedToArray(Tr,2),Ar=Dr[0],Fr=Dr[1],Rr=reactExports.useState(0),wr=_slicedToArray(Rr,2),Sr=wr[0],Br=wr[1],Or=reactExports.useState(!1),Pr=_slicedToArray(Or,2),Nr=Pr[0],Lr=Pr[1],Wr=function(){Lr(!0)},Ur=function(){Lr(!1)},jr={getKey:yr};function Kr(Qn){Fr(function(Jn){var ou;typeof Qn=="function"?ou=Qn(Jn):ou=Qn;var mu=Tn(ou);return Cr.current.scrollTop=mu,mu})}var qr=reactExports.useRef({start:0,end:ir.length}),Zr=reactExports.useRef(),dn=useDiffItem(ir,yr),Xr=_slicedToArray(dn,1),un=Xr[0];Zr.current=un;var Yr=reactExports.useMemo(function(){if(!Yt)return{scrollHeight:void 0,start:0,end:ir.length-1,offset:void 0};if(!lr){var Qn;return{scrollHeight:((Qn=_r.current)===null||Qn===void 0?void 0:Qn.offsetHeight)||0,start:0,end:ir.length-1,offset:void 0}}for(var Jn=0,ou,mu,xu,_u=ir.length,$u=0;$u<_u;$u+=1){var Au=ir[$u],Bu=yr(Au),Su=Wt.get(Bu),Ru=Jn+(Su===void 0?Bt:Su);Ru>=Ar&&ou===void 0&&(ou=$u,mu=Jn),Ru>Ar+At&&xu===void 0&&(xu=$u),Jn=Ru}return ou===void 0&&(ou=0,mu=0,xu=Math.ceil(At/Bt)),xu===void 0&&(xu=ir.length-1),xu=Math.min(xu+1,ir.length-1),{scrollHeight:Jn,start:ou,end:xu,offset:mu}},[lr,Yt,Ar,ir,Gt,At]),Gr=Yr.scrollHeight,Jr=Yr.start,wn=Yr.end,kr=Yr.offset;qr.current.start=Jr,qr.current.end=wn;var Mr=reactExports.useState({width:0,height:At}),Ir=_slicedToArray(Mr,2),Hr=Ir[0],Vr=Ir[1],on=function(Jn){Vr({width:Jn.offsetWidth,height:Jn.offsetHeight})},Qr=reactExports.useRef(),hn=reactExports.useRef(),Wn=reactExports.useMemo(function(){return getSpinSize(Hr.width,Kt)},[Hr.width,Kt]),_n=reactExports.useMemo(function(){return getSpinSize(Hr.height,Gr)},[Hr.height,Gr]),An=Gr-At,Yn=reactExports.useRef(An);Yn.current=An;function Tn(Qn){var Jn=Qn;return Number.isNaN(Yn.current)||(Jn=Math.min(Jn,Yn.current)),Jn=Math.max(Jn,0),Jn}var Nn=Ar<=0,Zn=Ar>=An,$n=Sr<=0,Fn=Sr>=Kt,Gn=useOriginScroll(Nn,Zn,$n,Fn),gn=function(){return{x:Jt?-Sr:Sr,y:Ar}},Rn=reactExports.useRef(gn()),nu=useEvent(function(Qn){if(dr){var Jn=_objectSpread2(_objectSpread2({},gn()),Qn);(Rn.current.x!==Jn.x||Rn.current.y!==Jn.y)&&(dr(Jn),Rn.current=Jn)}});function pn(Qn,Jn){var ou=Qn;Jn?(reactDomExports.flushSync(function(){Br(ou)}),nu()):Kr(ou)}function yn(Qn){var Jn=Qn.currentTarget.scrollTop;Jn!==Ar&&Kr(Jn),Zt==null||Zt(Qn),nu()}var jn=function(Jn){var ou=Jn,mu=Kt?Kt-Hr.width:0;return ou=Math.max(ou,0),ou=Math.min(ou,mu),ou},Cn=useEvent(function(Qn,Jn){Jn?(reactDomExports.flushSync(function(){Br(function(ou){var mu=ou+(Jt?-Qn:Qn);return jn(mu)})}),nu()):Kr(function(ou){var mu=ou+Qn;return mu})}),On=useFrameWheel(Yt,Nn,Zn,$n,Fn,!!Kt,Cn),au=_slicedToArray(On,2),In=au[0],Bn=au[1];useMobileTouchMove(Yt,Cr,function(Qn,Jn,ou){return Gn(Qn,Jn,ou)?!1:(In({preventDefault:function(){},deltaX:Qn?Jn:0,deltaY:Qn?0:Jn}),!0)}),useLayoutEffect$1(function(){function Qn(ou){Yt&&ou.preventDefault()}var Jn=Cr.current;return Jn.addEventListener("wheel",In,{passive:!1}),Jn.addEventListener("DOMMouseScroll",Bn,{passive:!0}),Jn.addEventListener("MozMousePixelScroll",Qn,{passive:!1}),function(){Jn.removeEventListener("wheel",In),Jn.removeEventListener("DOMMouseScroll",Bn),Jn.removeEventListener("MozMousePixelScroll",Qn)}},[Yt]),useLayoutEffect$1(function(){if(Kt){var Qn=jn(Sr);Br(Qn),nu({x:Qn})}},[Hr.width,Kt]);var Vn=function(){var Jn,ou;(Jn=Qr.current)===null||Jn===void 0||Jn.delayHidden(),(ou=hn.current)===null||ou===void 0||ou.delayHidden()},En=useScrollTo(Cr,ir,Wt,Bt,yr,function(){return Ht(!0)},Kr,Vn);reactExports.useImperativeHandle(Et,function(){return{nativeElement:$r.current,getScrollInfo:gn,scrollTo:function(Jn){function ou(mu){return mu&&_typeof$1(mu)==="object"&&("left"in mu||"top"in mu)}ou(Jn)?(Jn.left!==void 0&&Br(jn(Jn.left)),En(Jn.top)):En(Jn)}}}),useLayoutEffect$1(function(){if(cr){var Qn=ir.slice(Jr,wn+1);cr(Qn,ir)}},[Jr,wn,ir]);var Sn=useGetSize(ir,yr,Wt,Bt),Xn=pr==null?void 0:pr({start:Jr,end:wn,virtual:lr,offsetX:Sr,offsetY:kr,rtl:Jt,getSize:Sn}),uu=useChildren$1(ir,Jr,wn,Kt,Sr,Lt,Nt,jr),Eu=null;At&&(Eu=_objectSpread2(_defineProperty$1({},Ft?"height":"maxHeight",At),ScrollStyle),Yt&&(Eu.overflowY="hidden",Kt&&(Eu.overflowX="hidden"),Nr&&(Eu.pointerEvents="none")));var pu={};return Jt&&(pu.dir="rtl"),reactExports.createElement("div",_extends$5({ref:$r,style:_objectSpread2(_objectSpread2({},kt),{},{position:"relative"}),className:Ut},pu,vr),reactExports.createElement(RefResizeObserver,{onResize:on},reactExports.createElement(Qt,{className:"".concat(Ct,"-holder"),style:Eu,ref:Cr,onScroll:yn,onMouseEnter:Vn},reactExports.createElement(Filler,{prefixCls:Ct,height:Gr,offsetX:Sr,offsetY:kr,scrollWidth:Kt,onInnerResize:Ht,ref:_r,innerProps:Er,rtl:Jt,extra:Xn},uu))),lr&&Gr>At&&reactExports.createElement(ScrollBar,{ref:Qr,prefixCls:Ct,scrollOffset:Ar,scrollRange:Gr,rtl:Jt,onScroll:pn,onStartMove:Wr,onStopMove:Ur,spinSize:_n,containerSize:Hr.height,style:gr==null?void 0:gr.verticalScrollBar,thumbStyle:gr==null?void 0:gr.verticalScrollBarThumb}),lr&&Kt>Hr.width&&reactExports.createElement(ScrollBar,{ref:hn,prefixCls:Ct,scrollOffset:Sr,scrollRange:Kt,rtl:Jt,onScroll:pn,onStartMove:Wr,onStopMove:Ur,spinSize:Wn,containerSize:Hr.width,horizontal:!0,style:gr==null?void 0:gr.horizontalScrollBar,thumbStyle:gr==null?void 0:gr.horizontalScrollBarThumb}))}var List=reactExports.forwardRef(RawList);List.displayName="List";function isPlatformMac(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var _excluded$z=["disabled","title","children","style","className"];function isTitleType(ht){return typeof ht=="string"||typeof ht=="number"}var OptionList=function ht(Et,yt){var Ct=useBaseProps(),$t=Ct.prefixCls,At=Ct.id,Bt=Ct.open,Dt=Ct.multiple,Ft=Ct.mode,kt=Ct.searchValue,Mt=Ct.toggleOpen,Nt=Ct.notFoundContent,jt=Ct.onPopupScroll,zt=reactExports.useContext(SelectContext),Vt=zt.maxCount,Kt=zt.flattenOptions,Xt=zt.onActiveValue,Qt=zt.defaultActiveFirstOption,Zt=zt.onSelect,dr=zt.menuItemSelectedIcon,cr=zt.rawValues,Er=zt.fieldNames,pr=zt.virtual,gr=zt.direction,vr=zt.listHeight,yr=zt.listItemHeight,xr=zt.optionRender,rr="".concat($t,"-item"),Lt=useMemo(function(){return Kt},[Bt,Kt],function(wr,Sr){return Sr[0]&&wr[1]!==Sr[1]}),Ht=reactExports.useRef(null),Wt=reactExports.useMemo(function(){return Dt&&isValidCount(Vt)&&(cr==null?void 0:cr.size)>=Vt},[Dt,Vt,cr==null?void 0:cr.size]),Gt=function(Sr){Sr.preventDefault()},Yt=function(Sr){var Br;(Br=Ht.current)===null||Br===void 0||Br.scrollTo(typeof Sr=="number"?{index:Sr}:Sr)},er=function(Sr){for(var Br=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Or=Lt.length,Pr=0;Pr<Or;Pr+=1){var Nr=(Sr+Pr*Br+Or)%Or,Lr=Lt[Nr]||{},Wr=Lr.group,Ur=Lr.data;if(!Wr&&!(Ur!=null&&Ur.disabled)&&!Wt)return Nr}return-1},lr=reactExports.useState(function(){return er(0)}),Jt=_slicedToArray(lr,2),Ut=Jt[0],ir=Jt[1],Cr=function(Sr){var Br=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ir(Sr);var Or={source:Br?"keyboard":"mouse"},Pr=Lt[Sr];if(!Pr){Xt(null,-1,Or);return}Xt(Pr.value,Sr,Or)};reactExports.useEffect(function(){Cr(Qt!==!1?er(0):-1)},[Lt.length,kt]);var _r=reactExports.useCallback(function(wr){return cr.has(wr)&&Ft!=="combobox"},[Ft,_toConsumableArray(cr).toString(),cr.size]);reactExports.useEffect(function(){var wr=setTimeout(function(){if(!Dt&&Bt&&cr.size===1){var Br=Array.from(cr)[0],Or=Lt.findIndex(function(Pr){var Nr=Pr.data;return Nr.value===Br});Or!==-1&&(Cr(Or),Yt(Or))}});if(Bt){var Sr;(Sr=Ht.current)===null||Sr===void 0||Sr.scrollTo(void 0)}return function(){return clearTimeout(wr)}},[Bt,kt]);var $r=function(Sr){Sr!==void 0&&Zt(Sr,{selected:!cr.has(Sr)}),Dt||Mt(!1)};if(reactExports.useImperativeHandle(yt,function(){return{onKeyDown:function(Sr){var Br=Sr.which,Or=Sr.ctrlKey;switch(Br){case KeyCode.N:case KeyCode.P:case KeyCode.UP:case KeyCode.DOWN:{var Pr=0;if(Br===KeyCode.UP?Pr=-1:Br===KeyCode.DOWN?Pr=1:isPlatformMac()&&Or&&(Br===KeyCode.N?Pr=1:Br===KeyCode.P&&(Pr=-1)),Pr!==0){var Nr=er(Ut+Pr,Pr);Yt(Nr),Cr(Nr,!0)}break}case KeyCode.ENTER:{var Lr,Wr=Lt[Ut];Wr&&!(Wr!=null&&(Lr=Wr.data)!==null&&Lr!==void 0&&Lr.disabled)&&!Wt?$r(Wr.value):$r(void 0),Bt&&Sr.preventDefault();break}case KeyCode.ESC:Mt(!1),Bt&&Sr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Sr){Yt(Sr)}}}),Lt.length===0)return reactExports.createElement("div",{role:"listbox",id:"".concat(At,"_list"),className:"".concat(rr,"-empty"),onMouseDown:Gt},Nt);var Tr=Object.keys(Er).map(function(wr){return Er[wr]}),Dr=function(Sr){return Sr.label};function Ar(wr,Sr){var Br=wr.group;return{role:Br?"presentation":"option",id:"".concat(At,"_list_").concat(Sr)}}var Fr=function(Sr){var Br=Lt[Sr];if(!Br)return null;var Or=Br.data||{},Pr=Or.value,Nr=Br.group,Lr=pickAttrs(Or,!0),Wr=Dr(Br);return Br?reactExports.createElement("div",_extends$5({"aria-label":typeof Wr=="string"&&!Nr?Wr:null},Lr,{key:Sr},Ar(Br,Sr),{"aria-selected":_r(Pr)}),Pr):null},Rr={role:"listbox",id:"".concat(At,"_list")};return reactExports.createElement(reactExports.Fragment,null,pr&&reactExports.createElement("div",_extends$5({},Rr,{style:{height:0,width:0,overflow:"hidden"}}),Fr(Ut-1),Fr(Ut),Fr(Ut+1)),reactExports.createElement(List,{itemKey:"key",ref:Ht,data:Lt,height:vr,itemHeight:yr,fullHeight:!1,onMouseDown:Gt,onScroll:jt,virtual:pr,direction:gr,innerProps:pr?null:Rr},function(wr,Sr){var Br=wr.group,Or=wr.groupOption,Pr=wr.data,Nr=wr.label,Lr=wr.value,Wr=Pr.key;if(Br){var Ur,jr=(Ur=Pr.title)!==null&&Ur!==void 0?Ur:isTitleType(Nr)?Nr.toString():void 0;return reactExports.createElement("div",{className:cls(rr,"".concat(rr,"-group"),Pr.className),title:jr},Nr!==void 0?Nr:Wr)}var Kr=Pr.disabled,qr=Pr.title;Pr.children;var Zr=Pr.style,dn=Pr.className,Xr=_objectWithoutProperties$1(Pr,_excluded$z),un=omit$1(Xr,Tr),Yr=_r(Lr),Gr=Kr||!Yr&&Wt,Jr="".concat(rr,"-option"),wn=cls(rr,Jr,dn,_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1({},"".concat(Jr,"-grouped"),Or),"".concat(Jr,"-active"),Ut===Sr&&!Gr),"".concat(Jr,"-disabled"),Gr),"".concat(Jr,"-selected"),Yr)),kr=Dr(wr),Mr=!dr||typeof dr=="function"||Yr,Ir=typeof kr=="number"?kr:kr||Lr,Hr=isTitleType(Ir)?Ir.toString():void 0;return qr!==void 0&&(Hr=qr),reactExports.createElement("div",_extends$5({},pickAttrs(un),pr?{}:Ar(wr,Sr),{"aria-selected":Yr,className:wn,title:Hr,onMouseMove:function(){Ut===Sr||Gr||Cr(Sr)},onClick:function(){Gr||$r(Lr)},style:Zr}),reactExports.createElement("div",{className:"".concat(Jr,"-content")},typeof xr=="function"?xr(wr,{index:Sr}):Ir),reactExports.isValidElement(dr)||Yr,Mr&&reactExports.createElement(TransBtn,{className:"".concat(rr,"-option-state"),customizeIcon:dr,customizeIconProps:{value:Lr,disabled:Gr,isSelected:Yr}},Yr?"✓":null))}))},RefOptionList=reactExports.forwardRef(OptionList);const useCache=function(ht,Et){var yt=reactExports.useRef({values:new Map,options:new Map}),Ct=reactExports.useMemo(function(){var At=yt.current,Bt=At.values,Dt=At.options,Ft=ht.map(function(Nt){if(Nt.label===void 0){var jt;return _objectSpread2(_objectSpread2({},Nt),{},{label:(jt=Bt.get(Nt.value))===null||jt===void 0?void 0:jt.label})}return Nt}),kt=new Map,Mt=new Map;return Ft.forEach(function(Nt){kt.set(Nt.value,Nt),Mt.set(Nt.value,Et.get(Nt.value)||Dt.get(Nt.value))}),yt.current.values=kt,yt.current.options=Mt,Ft},[ht,Et]),$t=reactExports.useCallback(function(At){return Et.get(At)||yt.current.options.get(At)},[Et]);return[Ct,$t]};function includes(ht,Et){return toArray$3(ht).join("").toUpperCase().includes(Et)}const useFilterOptions=function(ht,Et,yt,Ct,$t){return reactExports.useMemo(function(){if(!yt||Ct===!1)return ht;var At=Et.options,Bt=Et.label,Dt=Et.value,Ft=[],kt=typeof Ct=="function",Mt=yt.toUpperCase(),Nt=kt?Ct:function(zt,Vt){return $t?includes(Vt[$t],Mt):Vt[At]?includes(Vt[Bt!=="children"?Bt:"label"],Mt):includes(Vt[Dt],Mt)},jt=kt?function(zt){return injectPropsWithOption(zt)}:function(zt){return zt};return ht.forEach(function(zt){if(zt[At]){var Vt=Nt(yt,jt(zt));if(Vt)Ft.push(zt);else{var Kt=zt[At].filter(function(Xt){return Nt(yt,jt(Xt))});Kt.length&&Ft.push(_objectSpread2(_objectSpread2({},zt),{},_defineProperty$1({},At,Kt)))}return}Nt(yt,jt(zt))&&Ft.push(zt)}),Ft},[ht,Ct,$t,yt,Et])};var uuid$2=0,isBrowserClient=canUseDom();function getUUID(){var ht;return isBrowserClient?(ht=uuid$2,uuid$2+=1):ht="TEST_OR_SSR",ht}function useId(ht){var Et=reactExports.useState(),yt=_slicedToArray(Et,2),Ct=yt[0],$t=yt[1];return reactExports.useEffect(function(){$t("rc_select_".concat(getUUID()))},[]),ht||Ct}var _excluded$y=["children","value"],_excluded2$4=["children"];function convertNodeToOption(ht){var Et=ht,yt=Et.key,Ct=Et.props,$t=Ct.children,At=Ct.value,Bt=_objectWithoutProperties$1(Ct,_excluded$y);return _objectSpread2({key:yt,value:At!==void 0?At:yt,children:$t},Bt)}function convertChildrenToData(ht){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return toArray$5(ht).map(function(yt,Ct){if(!reactExports.isValidElement(yt)||!yt.type)return null;var $t=yt,At=$t.type.isSelectOptGroup,Bt=$t.key,Dt=$t.props,Ft=Dt.children,kt=_objectWithoutProperties$1(Dt,_excluded2$4);return Et||!At?convertNodeToOption(yt):_objectSpread2(_objectSpread2({key:"__RC_SELECT_GRP__".concat(Bt===null?Ct:Bt,"__"),label:Bt},kt),{},{options:convertChildrenToData(Ft)})}).filter(function(yt){return yt})}var useOptions=function ht(Et,yt,Ct,$t,At){return reactExports.useMemo(function(){var Bt=Et,Dt=!Et;Dt&&(Bt=convertChildrenToData(yt));var Ft=new Map,kt=new Map,Mt=function(zt,Vt,Kt){Kt&&typeof Kt=="string"&&zt.set(Vt[Kt],Vt)},Nt=function jt(zt){for(var Vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Kt=0;Kt<zt.length;Kt+=1){var Xt=zt[Kt];!Xt[Ct.options]||Vt?(Ft.set(Xt[Ct.value],Xt),Mt(kt,Xt,Ct.label),Mt(kt,Xt,$t),Mt(kt,Xt,At)):jt(Xt[Ct.options],!0)}};return Nt(Bt),{options:Bt,valueOptions:Ft,labelOptions:kt}},[Et,yt,Ct,$t,At])};function useRefFunc(ht){var Et=reactExports.useRef();Et.current=ht;var yt=reactExports.useCallback(function(){return Et.current.apply(Et,arguments)},[]);return yt}var _excluded$x=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],OMIT_DOM_PROPS=["inputValue"];function isRawValue(ht){return!ht||_typeof$1(ht)!=="object"}var Select$1=reactExports.forwardRef(function(ht,Et){var yt=ht.id,Ct=ht.mode,$t=ht.prefixCls,At=$t===void 0?"rc-select":$t,Bt=ht.backfill,Dt=ht.fieldNames,Ft=ht.inputValue,kt=ht.searchValue,Mt=ht.onSearch,Nt=ht.autoClearSearchValue,jt=Nt===void 0?!0:Nt,zt=ht.onSelect,Vt=ht.onDeselect,Kt=ht.dropdownMatchSelectWidth,Xt=Kt===void 0?!0:Kt,Qt=ht.filterOption,Zt=ht.filterSort,dr=ht.optionFilterProp,cr=ht.optionLabelProp,Er=ht.options,pr=ht.optionRender,gr=ht.children,vr=ht.defaultActiveFirstOption,yr=ht.menuItemSelectedIcon,xr=ht.virtual,rr=ht.direction,Lt=ht.listHeight,Ht=Lt===void 0?200:Lt,Wt=ht.listItemHeight,Gt=Wt===void 0?20:Wt,Yt=ht.labelRender,er=ht.value,lr=ht.defaultValue,Jt=ht.labelInValue,Ut=ht.onChange,ir=ht.maxCount,Cr=_objectWithoutProperties$1(ht,_excluded$x),_r=useId(yt),$r=isMultiple(Ct),Tr=!!(!Er&&gr),Dr=reactExports.useMemo(function(){return Qt===void 0&&Ct==="combobox"?!1:Qt},[Qt,Ct]),Ar=reactExports.useMemo(function(){return fillFieldNames$1(Dt,Tr)},[JSON.stringify(Dt),Tr]),Fr=useMergedState("",{value:kt!==void 0?kt:Ft,postState:function(yn){return yn||""}}),Rr=_slicedToArray(Fr,2),wr=Rr[0],Sr=Rr[1],Br=useOptions(Er,gr,Ar,dr,cr),Or=Br.valueOptions,Pr=Br.labelOptions,Nr=Br.options,Lr=reactExports.useCallback(function(pn){var yn=toArray$3(pn);return yn.map(function(jn){var Cn,On,au,In,Bn;if(isRawValue(jn))Cn=jn;else{var Vn;au=jn.key,On=jn.label,Cn=(Vn=jn.value)!==null&&Vn!==void 0?Vn:au}var En=Or.get(Cn);if(En){var Sn;On===void 0&&(On=En==null?void 0:En[cr||Ar.label]),au===void 0&&(au=(Sn=En==null?void 0:En.key)!==null&&Sn!==void 0?Sn:Cn),In=En==null?void 0:En.disabled,Bn=En==null?void 0:En.title}return{label:On,value:Cn,key:au,disabled:In,title:Bn}})},[Ar,cr,Or]),Wr=useMergedState(lr,{value:er}),Ur=_slicedToArray(Wr,2),jr=Ur[0],Kr=Ur[1],qr=reactExports.useMemo(function(){var pn,yn=$r&&jr===null?[]:jr,jn=Lr(yn);return Ct==="combobox"&&isComboNoValue((pn=jn[0])===null||pn===void 0?void 0:pn.value)?[]:jn},[jr,Lr,Ct,$r]),Zr=useCache(qr,Or),dn=_slicedToArray(Zr,2),Xr=dn[0],un=dn[1],Yr=reactExports.useMemo(function(){if(!Ct&&Xr.length===1){var pn=Xr[0];if(pn.value===null&&(pn.label===null||pn.label===void 0))return[]}return Xr.map(function(yn){var jn;return _objectSpread2(_objectSpread2({},yn),{},{label:(jn=typeof Yt=="function"?Yt(yn):yn.label)!==null&&jn!==void 0?jn:yn.value})})},[Ct,Xr,Yt]),Gr=reactExports.useMemo(function(){return new Set(Xr.map(function(pn){return pn.value}))},[Xr]);reactExports.useEffect(function(){if(Ct==="combobox"){var pn,yn=(pn=Xr[0])===null||pn===void 0?void 0:pn.value;Sr(hasValue(yn)?String(yn):"")}},[Xr]);var Jr=useRefFunc(function(pn,yn){var jn=yn??pn;return _defineProperty$1(_defineProperty$1({},Ar.value,pn),Ar.label,jn)}),wn=reactExports.useMemo(function(){if(Ct!=="tags")return Nr;var pn=_toConsumableArray(Nr),yn=function(Cn){return Or.has(Cn)};return _toConsumableArray(Xr).sort(function(jn,Cn){return jn.value<Cn.value?-1:1}).forEach(function(jn){var Cn=jn.value;yn(Cn)||pn.push(Jr(Cn,jn.label))}),pn},[Jr,Nr,Or,Xr,Ct]),kr=useFilterOptions(wn,Ar,wr,Dr,dr),Mr=reactExports.useMemo(function(){return Ct!=="tags"||!wr||kr.some(function(pn){return pn[dr||"value"]===wr})||kr.some(function(pn){return pn[Ar.value]===wr})?kr:[Jr(wr)].concat(_toConsumableArray(kr))},[Jr,dr,Ct,kr,wr,Ar]),Ir=reactExports.useMemo(function(){return Zt?_toConsumableArray(Mr).sort(function(pn,yn){return Zt(pn,yn,{searchValue:wr})}):Mr},[Mr,Zt,wr]),Hr=reactExports.useMemo(function(){return flattenOptions(Ir,{fieldNames:Ar,childrenAsData:Tr})},[Ir,Ar,Tr]),Vr=function(yn){var jn=Lr(yn);if(Kr(jn),Ut&&(jn.length!==Xr.length||jn.some(function(au,In){var Bn;return((Bn=Xr[In])===null||Bn===void 0?void 0:Bn.value)!==(au==null?void 0:au.value)}))){var Cn=Jt?jn:jn.map(function(au){return au.value}),On=jn.map(function(au){return injectPropsWithOption(un(au.value))});Ut($r?Cn:Cn[0],$r?On:On[0])}},on=reactExports.useState(null),Qr=_slicedToArray(on,2),hn=Qr[0],Wn=Qr[1],_n=reactExports.useState(0),An=_slicedToArray(_n,2),Yn=An[0],Tn=An[1],Nn=vr!==void 0?vr:Ct!=="combobox",Zn=reactExports.useCallback(function(pn,yn){var jn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Cn=jn.source,On=Cn===void 0?"keyboard":Cn;Tn(yn),Bt&&Ct==="combobox"&&pn!==null&&On==="keyboard"&&Wn(String(pn))},[Bt,Ct]),$n=function(yn,jn,Cn){var On=function(){var pu,Qn=un(yn);return[Jt?{label:Qn==null?void 0:Qn[Ar.label],value:yn,key:(pu=Qn==null?void 0:Qn.key)!==null&&pu!==void 0?pu:yn}:yn,injectPropsWithOption(Qn)]};if(jn&&zt){var au=On(),In=_slicedToArray(au,2),Bn=In[0],Vn=In[1];zt(Bn,Vn)}else if(!jn&&Vt&&Cn!=="clear"){var En=On(),Sn=_slicedToArray(En,2),Xn=Sn[0],uu=Sn[1];Vt(Xn,uu)}},Fn=useRefFunc(function(pn,yn){var jn,Cn=$r?yn.selected:!0;Cn?jn=$r?[].concat(_toConsumableArray(Xr),[pn]):[pn]:jn=Xr.filter(function(On){return On.value!==pn}),Vr(jn),$n(pn,Cn),Ct==="combobox"?Wn(""):(!isMultiple||jt)&&(Sr(""),Wn(""))}),Gn=function(yn,jn){Vr(yn);var Cn=jn.type,On=jn.values;(Cn==="remove"||Cn==="clear")&&On.forEach(function(au){$n(au.value,!1,Cn)})},gn=function(yn,jn){if(Sr(yn),Wn(null),jn.source==="submit"){var Cn=(yn||"").trim();if(Cn){var On=Array.from(new Set([].concat(_toConsumableArray(Gr),[Cn])));Vr(On),$n(Cn,!0),Sr("")}return}jn.source!=="blur"&&(Ct==="combobox"&&Vr(yn),Mt==null||Mt(yn))},Rn=function(yn){var jn=yn;Ct!=="tags"&&(jn=yn.map(function(On){var au=Pr.get(On);return au==null?void 0:au.value}).filter(function(On){return On!==void 0}));var Cn=Array.from(new Set([].concat(_toConsumableArray(Gr),_toConsumableArray(jn))));Vr(Cn),Cn.forEach(function(On){$n(On,!0)})},nu=reactExports.useMemo(function(){var pn=xr!==!1&&Xt!==!1;return _objectSpread2(_objectSpread2({},Br),{},{flattenOptions:Hr,onActiveValue:Zn,defaultActiveFirstOption:Nn,onSelect:Fn,menuItemSelectedIcon:yr,rawValues:Gr,fieldNames:Ar,virtual:pn,direction:rr,listHeight:Ht,listItemHeight:Gt,childrenAsData:Tr,maxCount:ir,optionRender:pr})},[ir,Br,Hr,Zn,Nn,Fn,yr,Gr,Ar,xr,Xt,rr,Ht,Gt,Tr,pr]);return reactExports.createElement(SelectContext.Provider,{value:nu},reactExports.createElement(BaseSelect,_extends$5({},Cr,{id:_r,prefixCls:At,ref:Et,omitDomProps:OMIT_DOM_PROPS,mode:Ct,displayValues:Yr,onDisplayValuesChange:Gn,direction:rr,searchValue:wr,onSearch:gn,autoClearSearchValue:jt,onSearchSplit:Rn,dropdownMatchSelectWidth:Xt,OptionList:RefOptionList,emptyOptions:!Hr.length,activeValue:hn,activeDescendantId:"".concat(_r,"_list_").concat(Yn)})))}),TypedSelect=Select$1;TypedSelect.Option=Option;TypedSelect.OptGroup=OptGroup;function getStatusClassNames(ht,Et,yt){return cls({[`${ht}-status-success`]:Et==="success",[`${ht}-status-warning`]:Et==="warning",[`${ht}-status-error`]:Et==="error",[`${ht}-status-validating`]:Et==="validating",[`${ht}-has-feedback`]:yt})}const getMergedStatus=(ht,Et)=>Et||ht,Empty$4=()=>{const[,ht]=useToken$1(),yt=new TinyColor(ht.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return reactExports.createElement("svg",{style:yt,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},reactExports.createElement("title",null,"empty image"),reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("g",{transform:"translate(24 31.67)"},reactExports.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),reactExports.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),reactExports.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),reactExports.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),reactExports.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),reactExports.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),reactExports.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},reactExports.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),reactExports.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Simple=()=>{const[,ht]=useToken$1(),{colorFill:Et,colorFillTertiary:yt,colorFillQuaternary:Ct,colorBgContainer:$t}=ht,{borderColor:At,shadowColor:Bt,contentColor:Dt}=reactExports.useMemo(()=>({borderColor:new TinyColor(Et).onBackground($t).toHexShortString(),shadowColor:new TinyColor(yt).onBackground($t).toHexShortString(),contentColor:new TinyColor(Ct).onBackground($t).toHexShortString()}),[Et,yt,Ct,$t]);return reactExports.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},reactExports.createElement("title",null,"Simple Empty"),reactExports.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},reactExports.createElement("ellipse",{fill:Bt,cx:"32",cy:"33",rx:"32",ry:"7"}),reactExports.createElement("g",{fillRule:"nonzero",stroke:At},reactExports.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),reactExports.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:Dt}))))},genSharedEmptyStyle=ht=>{const{componentCls:Et,margin:yt,marginXS:Ct,marginXL:$t,fontSize:At,lineHeight:Bt}=ht;return{[Et]:{marginInline:Ct,fontSize:At,lineHeight:Bt,textAlign:"center",[`${Et}-image`]:{height:ht.emptyImgHeight,marginBottom:Ct,opacity:ht.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Et}-description`]:{color:ht.colorTextDescription},[`${Et}-footer`]:{marginTop:yt},"&-normal":{marginBlock:$t,color:ht.colorTextDescription,[`${Et}-description`]:{color:ht.colorTextDescription},[`${Et}-image`]:{height:ht.emptyImgHeightMD}},"&-small":{marginBlock:Ct,color:ht.colorTextDescription,[`${Et}-image`]:{height:ht.emptyImgHeightSM}}}}},useStyle$i=genStyleHooks("Empty",ht=>{const{componentCls:Et,controlHeightLG:yt,calc:Ct}=ht,$t=merge$2(ht,{emptyImgCls:`${Et}-img`,emptyImgHeight:Ct(yt).mul(2.5).equal(),emptyImgHeightMD:yt,emptyImgHeightSM:Ct(yt).mul(.875).equal()});return[genSharedEmptyStyle($t)]});var __rest$z=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};const defaultEmptyImg=reactExports.createElement(Empty$4,null),simpleEmptyImg=reactExports.createElement(Simple,null),Empty$3=ht=>{var{className:Et,rootClassName:yt,prefixCls:Ct,image:$t=defaultEmptyImg,description:At,children:Bt,imageStyle:Dt,style:Ft}=ht,kt=__rest$z(ht,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Mt,direction:Nt,empty:jt}=reactExports.useContext(ConfigContext$1),zt=Mt("empty",Ct),[Vt,Kt,Xt]=useStyle$i(zt),[Qt]=useLocale("Empty"),Zt=typeof At<"u"?At:Qt==null?void 0:Qt.description,dr=typeof Zt=="string"?Zt:"empty";let cr=null;return typeof $t=="string"?cr=reactExports.createElement("img",{alt:dr,src:$t}):cr=$t,Vt(reactExports.createElement("div",Object.assign({className:cls(Kt,Xt,zt,jt==null?void 0:jt.className,{[`${zt}-normal`]:$t===simpleEmptyImg,[`${zt}-rtl`]:Nt==="rtl"},Et,yt),style:Object.assign(Object.assign({},jt==null?void 0:jt.style),Ft)},kt),reactExports.createElement("div",{className:`${zt}-image`,style:Dt},cr),Zt&&reactExports.createElement("div",{className:`${zt}-description`},Zt),Bt&&reactExports.createElement("div",{className:`${zt}-footer`},Bt)))};Empty$3.PRESENTED_IMAGE_DEFAULT=defaultEmptyImg;Empty$3.PRESENTED_IMAGE_SIMPLE=simpleEmptyImg;const DefaultRenderEmpty=ht=>{const{componentName:Et}=ht,{getPrefixCls:yt}=reactExports.useContext(ConfigContext$1),Ct=yt("empty");switch(Et){case"Table":case"List":return React$8.createElement(Empty$3,{image:Empty$3.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return React$8.createElement(Empty$3,{image:Empty$3.PRESENTED_IMAGE_SIMPLE,className:`${Ct}-small`});default:return React$8.createElement(Empty$3,null)}},useVariant=function(ht,Et){let yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var Ct,$t;const{variant:At,[ht]:Bt}=reactExports.useContext(ConfigContext$1),Dt=reactExports.useContext(VariantContext),Ft=Bt==null?void 0:Bt.variant;let kt;typeof Et<"u"?kt=Et:yt===!1?kt="borderless":kt=($t=(Ct=Dt??Ft)!==null&&Ct!==void 0?Ct:At)!==null&&$t!==void 0?$t:"outlined";const Mt=Variants.includes(kt);return[kt,Mt]},getBuiltInPlacements=ht=>{const yt={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:ht==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},yt),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},yt),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},yt),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},yt),{points:["br","tr"],offset:[0,-4]})}};function mergedBuiltinPlacements(ht,Et){return ht||getBuiltInPlacements(Et)}const genItemStyle=ht=>{const{optionHeight:Et,optionFontSize:yt,optionLineHeight:Ct,optionPadding:$t}=ht;return{position:"relative",display:"block",minHeight:Et,padding:$t,color:ht.colorText,fontWeight:"normal",fontSize:yt,lineHeight:Ct,boxSizing:"border-box"}},genSingleStyle$1=ht=>{const{antCls:Et,componentCls:yt}=ht,Ct=`${yt}-item`,$t=`&${Et}-slide-up-enter${Et}-slide-up-enter-active`,At=`&${Et}-slide-up-appear${Et}-slide-up-appear-active`,Bt=`&${Et}-slide-up-leave${Et}-slide-up-leave-active`,Dt=`${yt}-dropdown-placement-`;return[{[`${yt}-dropdown`]:Object.assign(Object.assign({},resetComponent(ht)),{position:"absolute",top:-9999,zIndex:ht.zIndexPopup,boxSizing:"border-box",padding:ht.paddingXXS,overflow:"hidden",fontSize:ht.fontSize,fontVariant:"initial",backgroundColor:ht.colorBgElevated,borderRadius:ht.borderRadiusLG,outline:"none",boxShadow:ht.boxShadowSecondary,[`
          ${$t}${Dt}bottomLeft,
          ${At}${Dt}bottomLeft
        `]:{animationName:slideUpIn},[`
          ${$t}${Dt}topLeft,
          ${At}${Dt}topLeft,
          ${$t}${Dt}topRight,
          ${At}${Dt}topRight
        `]:{animationName:slideDownIn},[`${Bt}${Dt}bottomLeft`]:{animationName:slideUpOut},[`
          ${Bt}${Dt}topLeft,
          ${Bt}${Dt}topRight
        `]:{animationName:slideDownOut},"&-hidden":{display:"none"},[`${Ct}`]:Object.assign(Object.assign({},genItemStyle(ht)),{cursor:"pointer",transition:`background ${ht.motionDurationSlow} ease`,borderRadius:ht.borderRadiusSM,"&-group":{color:ht.colorTextDescription,fontSize:ht.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},textEllipsis),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Ct}-option-disabled)`]:{backgroundColor:ht.optionActiveBg},[`&-selected:not(${Ct}-option-disabled)`]:{color:ht.optionSelectedColor,fontWeight:ht.optionSelectedFontWeight,backgroundColor:ht.optionSelectedBg,[`${Ct}-option-state`]:{color:ht.colorPrimary},[`&:has(+ ${Ct}-option-selected:not(${Ct}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${Ct}-option-selected:not(${Ct}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${Ct}-option-selected`]:{backgroundColor:ht.colorBgContainerDisabled},color:ht.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:ht.calc(ht.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},genItemStyle(ht)),{color:ht.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},initSlideMotion(ht,"slide-up"),initSlideMotion(ht,"slide-down"),initMoveMotion(ht,"move-up"),initMoveMotion(ht,"move-down")]},getMultipleSelectorUnit=ht=>{const{multipleSelectItemHeight:Et,paddingXXS:yt,lineWidth:Ct,INTERNAL_FIXED_ITEM_MARGIN:$t}=ht,At=ht.max(ht.calc(yt).sub(Ct).equal(),0),Bt=ht.max(ht.calc(At).sub($t).equal(),0);return{basePadding:At,containerPadding:Bt,itemHeight:unit(Et),itemLineHeight:unit(ht.calc(Et).sub(ht.calc(ht.lineWidth).mul(2)).equal())}},getSelectItemStyle=ht=>{const{multipleSelectItemHeight:Et,selectHeight:yt,lineWidth:Ct}=ht;return ht.calc(yt).sub(Et).div(2).sub(Ct).equal()},genOverflowStyle=ht=>{const{componentCls:Et,iconCls:yt,borderRadiusSM:Ct,motionDurationSlow:$t,paddingXS:At,multipleItemColorDisabled:Bt,multipleItemBorderColorDisabled:Dt,colorIcon:Ft,colorIconHover:kt,INTERNAL_FIXED_ITEM_MARGIN:Mt}=ht;return{[`${Et}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${Et}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:Mt,borderRadius:Ct,cursor:"default",transition:`font-size ${$t}, line-height ${$t}, height ${$t}`,marginInlineEnd:ht.calc(Mt).mul(2).equal(),paddingInlineStart:At,paddingInlineEnd:ht.calc(At).div(2).equal(),[`${Et}-disabled&`]:{color:Bt,borderColor:Dt,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:ht.calc(At).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},resetIcon()),{display:"inline-flex",alignItems:"center",color:Ft,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${yt}`]:{verticalAlign:"-0.2em"},"&:hover":{color:kt}})}}}},genSelectionStyle$1=(ht,Et)=>{const{componentCls:yt,INTERNAL_FIXED_ITEM_MARGIN:Ct}=ht,$t=`${yt}-selection-overflow`,At=ht.multipleSelectItemHeight,Bt=getSelectItemStyle(ht),Dt=Et?`${yt}-${Et}`:"",Ft=getMultipleSelectorUnit(ht);return{[`${yt}-multiple${Dt}`]:Object.assign(Object.assign({},genOverflowStyle(ht)),{[`${yt}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:Ft.basePadding,paddingBlock:Ft.containerPadding,borderRadius:ht.borderRadius,[`${yt}-disabled&`]:{background:ht.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${unit(Ct)} 0`,lineHeight:unit(At),visibility:"hidden",content:'"\\a0"'}},[`${yt}-selection-item`]:{height:Ft.itemHeight,lineHeight:unit(Ft.itemLineHeight)},[`${$t}-item + ${$t}-item`]:{[`${yt}-selection-search`]:{marginInlineStart:0}},[`${$t}-item-suffix`]:{height:"100%"},[`${yt}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:ht.calc(ht.inputPaddingHorizontalBase).sub(Bt).equal(),"\n          &-input,\n          &-mirror\n        ":{height:At,fontFamily:ht.fontFamily,lineHeight:unit(At),transition:`all ${ht.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${yt}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:ht.inputPaddingHorizontalBase,insetInlineEnd:ht.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${ht.motionDurationSlow}`}})}};function genSizeStyle$3(ht,Et){const{componentCls:yt}=ht,Ct=Et?`${yt}-${Et}`:"",$t={[`${yt}-multiple${Ct}`]:{fontSize:ht.fontSize,[`${yt}-selector`]:{[`${yt}-show-search&`]:{cursor:"text"}},[`
        &${yt}-show-arrow ${yt}-selector,
        &${yt}-allow-clear ${yt}-selector
      `]:{paddingInlineEnd:ht.calc(ht.fontSizeIcon).add(ht.controlPaddingHorizontal).equal()}}};return[genSelectionStyle$1(ht,Et),$t]}const genMultipleStyle=ht=>{const{componentCls:Et}=ht,yt=merge$2(ht,{selectHeight:ht.controlHeightSM,multipleSelectItemHeight:ht.multipleItemHeightSM,borderRadius:ht.borderRadiusSM,borderRadiusSM:ht.borderRadiusXS}),Ct=merge$2(ht,{fontSize:ht.fontSizeLG,selectHeight:ht.controlHeightLG,multipleSelectItemHeight:ht.multipleItemHeightLG,borderRadius:ht.borderRadiusLG,borderRadiusSM:ht.borderRadius});return[genSizeStyle$3(ht),genSizeStyle$3(yt,"sm"),{[`${Et}-multiple${Et}-sm`]:{[`${Et}-selection-placeholder`]:{insetInline:ht.calc(ht.controlPaddingHorizontalSM).sub(ht.lineWidth).equal()},[`${Et}-selection-search`]:{marginInlineStart:2}}},genSizeStyle$3(Ct,"lg")]};function genSizeStyle$2(ht,Et){const{componentCls:yt,inputPaddingHorizontalBase:Ct,borderRadius:$t}=ht,At=ht.calc(ht.controlHeight).sub(ht.calc(ht.lineWidth).mul(2)).equal(),Bt=Et?`${yt}-${Et}`:"";return{[`${yt}-single${Bt}`]:{fontSize:ht.fontSize,height:ht.controlHeight,[`${yt}-selector`]:Object.assign(Object.assign({},resetComponent(ht,!0)),{display:"flex",borderRadius:$t,[`${yt}-selection-search`]:{position:"absolute",top:0,insetInlineStart:Ct,insetInlineEnd:Ct,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
          ${yt}-selection-item,
          ${yt}-selection-placeholder
        `]:{padding:0,lineHeight:unit(At),transition:`all ${ht.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${yt}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${yt}-selection-item:empty:after`,`${yt}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
        &${yt}-show-arrow ${yt}-selection-item,
        &${yt}-show-arrow ${yt}-selection-placeholder
      `]:{paddingInlineEnd:ht.showArrowPaddingInlineEnd},[`&${yt}-open ${yt}-selection-item`]:{color:ht.colorTextPlaceholder},[`&:not(${yt}-customize-input)`]:{[`${yt}-selector`]:{width:"100%",height:"100%",padding:`0 ${unit(Ct)}`,[`${yt}-selection-search-input`]:{height:At},"&:after":{lineHeight:unit(At)}}},[`&${yt}-customize-input`]:{[`${yt}-selector`]:{"&:after":{display:"none"},[`${yt}-selection-search`]:{position:"static",width:"100%"},[`${yt}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${unit(Ct)}`,"&:after":{display:"none"}}}}}}}function genSingleStyle(ht){const{componentCls:Et}=ht,yt=ht.calc(ht.controlPaddingHorizontalSM).sub(ht.lineWidth).equal();return[genSizeStyle$2(ht),genSizeStyle$2(merge$2(ht,{controlHeight:ht.controlHeightSM,borderRadius:ht.borderRadiusSM}),"sm"),{[`${Et}-single${Et}-sm`]:{[`&:not(${Et}-customize-input)`]:{[`${Et}-selection-search`]:{insetInlineStart:yt,insetInlineEnd:yt},[`${Et}-selector`]:{padding:`0 ${unit(yt)}`},[`&${Et}-show-arrow ${Et}-selection-search`]:{insetInlineEnd:ht.calc(yt).add(ht.calc(ht.fontSize).mul(1.5)).equal()},[`
            &${Et}-show-arrow ${Et}-selection-item,
            &${Et}-show-arrow ${Et}-selection-placeholder
          `]:{paddingInlineEnd:ht.calc(ht.fontSize).mul(1.5).equal()}}}},genSizeStyle$2(merge$2(ht,{controlHeight:ht.singleItemHeightLG,fontSize:ht.fontSizeLG,borderRadius:ht.borderRadiusLG}),"lg")]}const prepareComponentToken$f=ht=>{const{fontSize:Et,lineHeight:yt,lineWidth:Ct,controlHeight:$t,controlHeightSM:At,controlHeightLG:Bt,paddingXXS:Dt,controlPaddingHorizontal:Ft,zIndexPopupBase:kt,colorText:Mt,fontWeightStrong:Nt,controlItemBgActive:jt,controlItemBgHover:zt,colorBgContainer:Vt,colorFillSecondary:Kt,colorBgContainerDisabled:Xt,colorTextDisabled:Qt}=ht,Zt=Dt*2,dr=Ct*2,cr=Math.min($t-Zt,$t-dr),Er=Math.min(At-Zt,At-dr),pr=Math.min(Bt-Zt,Bt-dr);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(Dt/2),zIndexPopup:kt+50,optionSelectedColor:Mt,optionSelectedFontWeight:Nt,optionSelectedBg:jt,optionActiveBg:zt,optionPadding:`${($t-Et*yt)/2}px ${Ft}px`,optionFontSize:Et,optionLineHeight:yt,optionHeight:$t,selectorBg:Vt,clearBg:Vt,singleItemHeightLG:Bt,multipleItemBg:Kt,multipleItemBorderColor:"transparent",multipleItemHeight:cr,multipleItemHeightSM:Er,multipleItemHeightLG:pr,multipleSelectorBgDisabled:Xt,multipleItemColorDisabled:Qt,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(ht.fontSize*1.25)}},genBaseOutlinedStyle$1=(ht,Et)=>{const{componentCls:yt,antCls:Ct,controlOutlineWidth:$t}=ht;return{[`&:not(${yt}-customize-input) ${yt}-selector`]:{border:`${unit(ht.lineWidth)} ${ht.lineType} ${Et.borderColor}`,background:ht.selectorBg},[`&:not(${yt}-disabled):not(${yt}-customize-input):not(${Ct}-pagination-size-changer)`]:{[`&:hover ${yt}-selector`]:{borderColor:Et.hoverBorderHover},[`${yt}-focused& ${yt}-selector`]:{borderColor:Et.activeBorderColor,boxShadow:`0 0 0 ${unit($t)} ${Et.activeShadowColor}`,outline:0}}}},genOutlinedStatusStyle$1=(ht,Et)=>({[`&${ht.componentCls}-status-${Et.status}`]:Object.assign({},genBaseOutlinedStyle$1(ht,Et))}),genOutlinedStyle$1=ht=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},genBaseOutlinedStyle$1(ht,{borderColor:ht.colorBorder,hoverBorderHover:ht.colorPrimaryHover,activeBorderColor:ht.colorPrimary,activeShadowColor:ht.controlOutline})),genOutlinedStatusStyle$1(ht,{status:"error",borderColor:ht.colorError,hoverBorderHover:ht.colorErrorHover,activeBorderColor:ht.colorError,activeShadowColor:ht.colorErrorOutline})),genOutlinedStatusStyle$1(ht,{status:"warning",borderColor:ht.colorWarning,hoverBorderHover:ht.colorWarningHover,activeBorderColor:ht.colorWarning,activeShadowColor:ht.colorWarningOutline})),{[`&${ht.componentCls}-disabled`]:{[`&:not(${ht.componentCls}-customize-input) ${ht.componentCls}-selector`]:{background:ht.colorBgContainerDisabled,color:ht.colorTextDisabled}},[`&${ht.componentCls}-multiple ${ht.componentCls}-selection-item`]:{background:ht.multipleItemBg,border:`${unit(ht.lineWidth)} ${ht.lineType} ${ht.multipleItemBorderColor}`}})}),genBaseFilledStyle$1=(ht,Et)=>{const{componentCls:yt,antCls:Ct}=ht;return{[`&:not(${yt}-customize-input) ${yt}-selector`]:{background:Et.bg,border:`${unit(ht.lineWidth)} ${ht.lineType} transparent`,color:Et.color},[`&:not(${yt}-disabled):not(${yt}-customize-input):not(${Ct}-pagination-size-changer)`]:{[`&:hover ${yt}-selector`]:{background:Et.hoverBg},[`${yt}-focused& ${yt}-selector`]:{background:ht.selectorBg,borderColor:Et.activeBorderColor,outline:0}}}},genFilledStatusStyle$1=(ht,Et)=>({[`&${ht.componentCls}-status-${Et.status}`]:Object.assign({},genBaseFilledStyle$1(ht,Et))}),genFilledStyle$1=ht=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},genBaseFilledStyle$1(ht,{bg:ht.colorFillTertiary,hoverBg:ht.colorFillSecondary,activeBorderColor:ht.colorPrimary,color:ht.colorText})),genFilledStatusStyle$1(ht,{status:"error",bg:ht.colorErrorBg,hoverBg:ht.colorErrorBgHover,activeBorderColor:ht.colorError,color:ht.colorError})),genFilledStatusStyle$1(ht,{status:"warning",bg:ht.colorWarningBg,hoverBg:ht.colorWarningBgHover,activeBorderColor:ht.colorWarning,color:ht.colorWarning})),{[`&${ht.componentCls}-disabled`]:{[`&:not(${ht.componentCls}-customize-input) ${ht.componentCls}-selector`]:{borderColor:ht.colorBorder,background:ht.colorBgContainerDisabled,color:ht.colorTextDisabled}},[`&${ht.componentCls}-multiple ${ht.componentCls}-selection-item`]:{background:ht.colorBgContainer,border:`${unit(ht.lineWidth)} ${ht.lineType} ${ht.colorSplit}`}})}),genBorderlessStyle$2=ht=>({"&-borderless":{[`${ht.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${ht.componentCls}-disabled`]:{[`&:not(${ht.componentCls}-customize-input) ${ht.componentCls}-selector`]:{color:ht.colorTextDisabled}},[`&${ht.componentCls}-multiple ${ht.componentCls}-selection-item`]:{background:ht.multipleItemBg,border:`${unit(ht.lineWidth)} ${ht.lineType} ${ht.multipleItemBorderColor}`},[`&${ht.componentCls}-status-error`]:{[`${ht.componentCls}-selection-item`]:{color:ht.colorError}},[`&${ht.componentCls}-status-warning`]:{[`${ht.componentCls}-selection-item`]:{color:ht.colorWarning}}}}),genVariantsStyle=ht=>({[ht.componentCls]:Object.assign(Object.assign(Object.assign({},genOutlinedStyle$1(ht)),genFilledStyle$1(ht)),genBorderlessStyle$2(ht))}),genSelectorStyle=ht=>{const{componentCls:Et}=ht;return{position:"relative",transition:`all ${ht.motionDurationMid} ${ht.motionEaseInOut}`,input:{cursor:"pointer"},[`${Et}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${Et}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},getSearchInputWithoutBorderStyle=ht=>{const{componentCls:Et}=ht;return{[`${Et}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},genBaseStyle$3=ht=>{const{antCls:Et,componentCls:yt,inputPaddingHorizontalBase:Ct,iconCls:$t}=ht;return{[yt]:Object.assign(Object.assign({},resetComponent(ht)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${yt}-customize-input) ${yt}-selector`]:Object.assign(Object.assign({},genSelectorStyle(ht)),getSearchInputWithoutBorderStyle(ht)),[`${yt}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},textEllipsis),{[`> ${Et}-typography`]:{display:"inline"}}),[`${yt}-selection-placeholder`]:Object.assign(Object.assign({},textEllipsis),{flex:1,color:ht.colorTextPlaceholder,pointerEvents:"none"}),[`${yt}-arrow`]:Object.assign(Object.assign({},resetIcon()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ct,height:ht.fontSizeIcon,marginTop:ht.calc(ht.fontSizeIcon).mul(-1).div(2).equal(),color:ht.colorTextQuaternary,fontSize:ht.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${ht.motionDurationSlow} ease`,[$t]:{verticalAlign:"top",transition:`transform ${ht.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${yt}-suffix)`]:{pointerEvents:"auto"}},[`${yt}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${yt}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ct,zIndex:1,display:"inline-block",width:ht.fontSizeIcon,height:ht.fontSizeIcon,marginTop:ht.calc(ht.fontSizeIcon).mul(-1).div(2).equal(),color:ht.colorTextQuaternary,fontSize:ht.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${ht.motionDurationMid} ease, opacity ${ht.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:ht.colorTextTertiary}},"&:hover":{[`${yt}-clear`]:{opacity:1},[`${yt}-arrow:not(:last-child)`]:{opacity:0}}}),[`${yt}-has-feedback`]:{[`${yt}-clear`]:{insetInlineEnd:ht.calc(Ct).add(ht.fontSize).add(ht.paddingXS).equal()}}}},genSelectStyle=ht=>{const{componentCls:Et}=ht;return[{[Et]:{[`&${Et}-in-form-item`]:{width:"100%"}}},genBaseStyle$3(ht),genSingleStyle(ht),genMultipleStyle(ht),genSingleStyle$1(ht),{[`${Et}-rtl`]:{direction:"rtl"}},genCompactItemStyle(ht,{borderElCls:`${Et}-selector`,focusElCls:`${Et}-focused`})]},useSelectStyle=genStyleHooks("Select",(ht,Et)=>{let{rootPrefixCls:yt}=Et;const Ct=merge$2(ht,{rootPrefixCls:yt,inputPaddingHorizontalBase:ht.calc(ht.paddingSM).sub(1).equal(),multipleSelectItemHeight:ht.multipleItemHeight,selectHeight:ht.controlHeight});return[genSelectStyle(Ct),genVariantsStyle(Ct)]},prepareComponentToken$f,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var CheckOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},CheckOutlined=function ht(Et,yt){return reactExports.createElement(Icon$1,_extends$5({},Et,{ref:yt,icon:CheckOutlined$1}))},RefIcon$m=reactExports.forwardRef(CheckOutlined),DownOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},DownOutlined=function ht(Et,yt){return reactExports.createElement(Icon$1,_extends$5({},Et,{ref:yt,icon:DownOutlined$1}))},RefIcon$l=reactExports.forwardRef(DownOutlined),SearchOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},SearchOutlined=function ht(Et,yt){return reactExports.createElement(Icon$1,_extends$5({},Et,{ref:yt,icon:SearchOutlined$1}))},RefIcon$k=reactExports.forwardRef(SearchOutlined);function useIcons(ht){let{suffixIcon:Et,clearIcon:yt,menuItemSelectedIcon:Ct,removeIcon:$t,loading:At,multiple:Bt,hasFeedback:Dt,prefixCls:Ft,showSuffixIcon:kt,feedbackIcon:Mt,showArrow:Nt,componentName:jt}=ht;const zt=yt??reactExports.createElement(RefIcon$s,null),Vt=Zt=>Et===null&&!Dt&&!Nt?null:reactExports.createElement(reactExports.Fragment,null,kt!==!1&&Zt,Dt&&Mt);let Kt=null;if(Et!==void 0)Kt=Vt(Et);else if(At)Kt=Vt(reactExports.createElement(RefIcon$o,{spin:!0}));else{const Zt=`${Ft}-suffix`;Kt=dr=>{let{open:cr,showSearch:Er}=dr;return Vt(cr&&Er?reactExports.createElement(RefIcon$k,{className:Zt}):reactExports.createElement(RefIcon$l,{className:Zt}))}}let Xt=null;Ct!==void 0?Xt=Ct:Bt?Xt=reactExports.createElement(RefIcon$m,null):Xt=null;let Qt=null;return $t!==void 0?Qt=$t:Qt=reactExports.createElement(RefIcon$r,null),{clearIcon:zt,suffixIcon:Kt,itemIcon:Xt,removeIcon:Qt}}function useShowArrow(ht,Et){return Et!==void 0?Et:ht!==null}var __rest$y=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};const SECRET_COMBOBOX_MODE_DO_NOT_USE="SECRET_COMBOBOX_MODE_DO_NOT_USE",InternalSelect=(ht,Et)=>{var yt;const{prefixCls:Ct,bordered:$t,className:At,rootClassName:Bt,getPopupContainer:Dt,popupClassName:Ft,dropdownClassName:kt,listHeight:Mt=256,placement:Nt,listItemHeight:jt,size:zt,disabled:Vt,notFoundContent:Kt,status:Xt,builtinPlacements:Qt,dropdownMatchSelectWidth:Zt,popupMatchSelectWidth:dr,direction:cr,style:Er,allowClear:pr,variant:gr,dropdownStyle:vr,transitionName:yr,tagRender:xr,maxCount:rr}=ht,Lt=__rest$y(ht,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:Ht,getPrefixCls:Wt,renderEmpty:Gt,direction:Yt,virtual:er,popupMatchSelectWidth:lr,popupOverflow:Jt,select:Ut}=reactExports.useContext(ConfigContext$1),[,ir]=useToken$1(),Cr=jt??(ir==null?void 0:ir.controlHeight),_r=Wt("select",Ct),$r=Wt(),Tr=cr??Yt,{compactSize:Dr,compactItemClassnames:Ar}=useCompactItemContext(_r,Tr),[Fr,Rr]=useVariant("select",gr,$t),wr=useCSSVarCls(_r),[Sr,Br,Or]=useSelectStyle(_r,wr),Pr=reactExports.useMemo(()=>{const{mode:hn}=ht;if(hn!=="combobox")return hn===SECRET_COMBOBOX_MODE_DO_NOT_USE?"combobox":hn},[ht.mode]),Nr=Pr==="multiple"||Pr==="tags",Lr=useShowArrow(ht.suffixIcon,ht.showArrow),Wr=(yt=dr??Zt)!==null&&yt!==void 0?yt:lr,{status:Ur,hasFeedback:jr,isFormItemInput:Kr,feedbackIcon:qr}=reactExports.useContext(FormItemInputContext),Zr=getMergedStatus(Ur,Xt);let dn;Kt!==void 0?dn=Kt:Pr==="combobox"?dn=null:dn=(Gt==null?void 0:Gt("Select"))||reactExports.createElement(DefaultRenderEmpty,{componentName:"Select"});const{suffixIcon:Xr,itemIcon:un,removeIcon:Yr,clearIcon:Gr}=useIcons(Object.assign(Object.assign({},Lt),{multiple:Nr,hasFeedback:jr,feedbackIcon:qr,showSuffixIcon:Lr,prefixCls:_r,componentName:"Select"})),Jr=pr===!0?{clearIcon:Gr}:pr,wn=omit$1(Lt,["suffixIcon","itemIcon"]),kr=cls(Ft||kt,{[`${_r}-dropdown-${Tr}`]:Tr==="rtl"},Bt,Or,wr,Br),Mr=useSize(hn=>{var Wn;return(Wn=zt??Dr)!==null&&Wn!==void 0?Wn:hn}),Ir=reactExports.useContext(DisabledContext),Hr=Vt??Ir,Vr=cls({[`${_r}-lg`]:Mr==="large",[`${_r}-sm`]:Mr==="small",[`${_r}-rtl`]:Tr==="rtl",[`${_r}-${Fr}`]:Rr,[`${_r}-in-form-item`]:Kr},getStatusClassNames(_r,Zr,jr),Ar,Ut==null?void 0:Ut.className,At,Bt,Or,wr,Br),on=reactExports.useMemo(()=>Nt!==void 0?Nt:Tr==="rtl"?"bottomRight":"bottomLeft",[Nt,Tr]),[Qr]=useZIndex("SelectLike",vr==null?void 0:vr.zIndex);return Sr(reactExports.createElement(TypedSelect,Object.assign({ref:Et,virtual:er,showSearch:Ut==null?void 0:Ut.showSearch},wn,{style:Object.assign(Object.assign({},Ut==null?void 0:Ut.style),Er),dropdownMatchSelectWidth:Wr,transitionName:getTransitionName($r,"slide-up",yr),builtinPlacements:mergedBuiltinPlacements(Qt,Jt),listHeight:Mt,listItemHeight:Cr,mode:Pr,prefixCls:_r,placement:on,direction:Tr,suffixIcon:Xr,menuItemSelectedIcon:un,removeIcon:Yr,allowClear:Jr,notFoundContent:dn,className:Vr,getPopupContainer:Dt||Ht,dropdownClassName:kr,disabled:Hr,dropdownStyle:Object.assign(Object.assign({},vr),{zIndex:Qr}),maxCount:Nr?rr:void 0,tagRender:Nr?xr:void 0})))},Select=reactExports.forwardRef(InternalSelect),PurePanel$5=genPurePanel(Select);Select.SECRET_COMBOBOX_MODE_DO_NOT_USE=SECRET_COMBOBOX_MODE_DO_NOT_USE;Select.Option=Option;Select.OptGroup=OptGroup;Select._InternalPanelDoNotUseOrYouWillBeFired=PurePanel$5;const responsiveArray=["xxl","xl","lg","md","sm","xs"],getResponsiveMap=ht=>({xs:`(max-width: ${ht.screenXSMax}px)`,sm:`(min-width: ${ht.screenSM}px)`,md:`(min-width: ${ht.screenMD}px)`,lg:`(min-width: ${ht.screenLG}px)`,xl:`(min-width: ${ht.screenXL}px)`,xxl:`(min-width: ${ht.screenXXL}px)`}),validateBreakpoints=ht=>{const Et=ht,yt=[].concat(responsiveArray).reverse();return yt.forEach((Ct,$t)=>{const At=Ct.toUpperCase(),Bt=`screen${At}Min`,Dt=`screen${At}`;if(!(Et[Bt]<=Et[Dt]))throw new Error(`${Bt}<=${Dt} fails : !(${Et[Bt]}<=${Et[Dt]})`);if($t<yt.length-1){const Ft=`screen${At}Max`;if(!(Et[Dt]<=Et[Ft]))throw new Error(`${Dt}<=${Ft} fails : !(${Et[Dt]}<=${Et[Ft]})`);const Mt=`screen${yt[$t+1].toUpperCase()}Min`;if(!(Et[Ft]<=Et[Mt]))throw new Error(`${Ft}<=${Mt} fails : !(${Et[Ft]}<=${Et[Mt]})`)}}),ht};function useResponsiveObserver(){const[,ht]=useToken$1(),Et=getResponsiveMap(validateBreakpoints(ht));return React$8.useMemo(()=>{const yt=new Map;let Ct=-1,$t={};return{matchHandlers:{},dispatch(At){return $t=At,yt.forEach(Bt=>Bt($t)),yt.size>=1},subscribe(At){return yt.size||this.register(),Ct+=1,yt.set(Ct,At),At($t),Ct},unsubscribe(At){yt.delete(At),yt.size||this.unregister()},unregister(){Object.keys(Et).forEach(At=>{const Bt=Et[At],Dt=this.matchHandlers[Bt];Dt==null||Dt.mql.removeListener(Dt==null?void 0:Dt.listener)}),yt.clear()},register(){Object.keys(Et).forEach(At=>{const Bt=Et[At],Dt=kt=>{let{matches:Mt}=kt;this.dispatch(Object.assign(Object.assign({},$t),{[At]:Mt}))},Ft=window.matchMedia(Bt);Ft.addListener(Dt),this.matchHandlers[Bt]={mql:Ft,listener:Dt},Dt(Ft)})},responsiveMap:Et}},[ht])}function useForceUpdate(){const[,ht]=reactExports.useReducer(Et=>Et+1,0);return ht}function useBreakpoint(){let ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const Et=reactExports.useRef({}),yt=useForceUpdate(),Ct=useResponsiveObserver();return useLayoutEffect$1(()=>{const $t=Ct.subscribe(At=>{Et.current=At,ht&&yt()});return()=>Ct.unsubscribe($t)},[]),Et.current}function Popup(ht){var Et=ht.children,yt=ht.prefixCls,Ct=ht.id,$t=ht.overlayInnerStyle,At=ht.className,Bt=ht.style;return reactExports.createElement("div",{className:cls("".concat(yt,"-content"),At),style:Bt},reactExports.createElement("div",{className:"".concat(yt,"-inner"),id:Ct,role:"tooltip",style:$t},typeof Et=="function"?Et():Et))}var autoAdjustOverflowTopBottom={shiftX:64,adjustY:1},autoAdjustOverflowLeftRight={adjustX:1,shiftY:!0},targetOffset$1=[0,0],placements$2={left:{points:["cr","cl"],overflow:autoAdjustOverflowLeftRight,offset:[-4,0],targetOffset:targetOffset$1},right:{points:["cl","cr"],overflow:autoAdjustOverflowLeftRight,offset:[4,0],targetOffset:targetOffset$1},top:{points:["bc","tc"],overflow:autoAdjustOverflowTopBottom,offset:[0,-4],targetOffset:targetOffset$1},bottom:{points:["tc","bc"],overflow:autoAdjustOverflowTopBottom,offset:[0,4],targetOffset:targetOffset$1},topLeft:{points:["bl","tl"],overflow:autoAdjustOverflowTopBottom,offset:[0,-4],targetOffset:targetOffset$1},leftTop:{points:["tr","tl"],overflow:autoAdjustOverflowLeftRight,offset:[-4,0],targetOffset:targetOffset$1},topRight:{points:["br","tr"],overflow:autoAdjustOverflowTopBottom,offset:[0,-4],targetOffset:targetOffset$1},rightTop:{points:["tl","tr"],overflow:autoAdjustOverflowLeftRight,offset:[4,0],targetOffset:targetOffset$1},bottomRight:{points:["tr","br"],overflow:autoAdjustOverflowTopBottom,offset:[0,4],targetOffset:targetOffset$1},rightBottom:{points:["bl","br"],overflow:autoAdjustOverflowLeftRight,offset:[4,0],targetOffset:targetOffset$1},bottomLeft:{points:["tl","bl"],overflow:autoAdjustOverflowTopBottom,offset:[0,4],targetOffset:targetOffset$1},leftBottom:{points:["br","bl"],overflow:autoAdjustOverflowLeftRight,offset:[-4,0],targetOffset:targetOffset$1}},_excluded$w=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],Tooltip$1=function ht(Et,yt){var Ct=Et.overlayClassName,$t=Et.trigger,At=$t===void 0?["hover"]:$t,Bt=Et.mouseEnterDelay,Dt=Bt===void 0?0:Bt,Ft=Et.mouseLeaveDelay,kt=Ft===void 0?.1:Ft,Mt=Et.overlayStyle,Nt=Et.prefixCls,jt=Nt===void 0?"rc-tooltip":Nt,zt=Et.children,Vt=Et.onVisibleChange,Kt=Et.afterVisibleChange,Xt=Et.transitionName,Qt=Et.animation,Zt=Et.motion,dr=Et.placement,cr=dr===void 0?"right":dr,Er=Et.align,pr=Er===void 0?{}:Er,gr=Et.destroyTooltipOnHide,vr=gr===void 0?!1:gr,yr=Et.defaultVisible,xr=Et.getTooltipContainer,rr=Et.overlayInnerStyle;Et.arrowContent;var Lt=Et.overlay,Ht=Et.id,Wt=Et.showArrow,Gt=Wt===void 0?!0:Wt,Yt=_objectWithoutProperties$1(Et,_excluded$w),er=reactExports.useRef(null);reactExports.useImperativeHandle(yt,function(){return er.current});var lr=_objectSpread2({},Yt);"visible"in Et&&(lr.popupVisible=Et.visible);var Jt=function(){return reactExports.createElement(Popup,{key:"content",prefixCls:jt,id:Ht,overlayInnerStyle:rr},Lt)};return reactExports.createElement(Trigger,_extends$5({popupClassName:Ct,prefixCls:jt,popup:Jt,action:At,builtinPlacements:placements$2,popupPlacement:cr,ref:er,popupAlign:pr,getPopupContainer:xr,onPopupVisibleChange:Vt,afterPopupVisibleChange:Kt,popupTransitionName:Xt,popupAnimation:Qt,popupMotion:Zt,defaultPopupVisible:yr,autoDestroy:vr,mouseLeaveDelay:kt,popupStyle:Mt,mouseEnterDelay:Dt,arrow:Gt},lr),zt)};const Tooltip$2=reactExports.forwardRef(Tooltip$1);function getArrowToken(ht){const{sizePopupArrow:Et,borderRadiusXS:yt,borderRadiusOuter:Ct}=ht,$t=Et/2,At=0,Bt=$t,Dt=Ct*1/Math.sqrt(2),Ft=$t-Ct*(1-1/Math.sqrt(2)),kt=$t-yt*(1/Math.sqrt(2)),Mt=Ct*(Math.sqrt(2)-1)+yt*(1/Math.sqrt(2)),Nt=2*$t-kt,jt=Mt,zt=2*$t-Dt,Vt=Ft,Kt=2*$t-At,Xt=Bt,Qt=$t*Math.sqrt(2)+Ct*(Math.sqrt(2)-2),Zt=Ct*(Math.sqrt(2)-1),dr=`polygon(${Zt}px 100%, 50% ${Zt}px, ${2*$t-Zt}px 100%, ${Zt}px 100%)`,cr=`path('M ${At} ${Bt} A ${Ct} ${Ct} 0 0 0 ${Dt} ${Ft} L ${kt} ${Mt} A ${yt} ${yt} 0 0 1 ${Nt} ${jt} L ${zt} ${Vt} A ${Ct} ${Ct} 0 0 0 ${Kt} ${Xt} Z')`;return{arrowShadowWidth:Qt,arrowPath:cr,arrowPolygon:dr}}const genRoundedArrow=(ht,Et,yt)=>{const{sizePopupArrow:Ct,arrowPolygon:$t,arrowPath:At,arrowShadowWidth:Bt,borderRadiusXS:Dt,calc:Ft}=ht;return{pointerEvents:"none",width:Ct,height:Ct,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:Ct,height:Ft(Ct).div(2).equal(),background:Et,clipPath:{_multi_value_:!0,value:[$t,At]},content:'""'},"&::after":{content:'""',position:"absolute",width:Bt,height:Bt,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${unit(Dt)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:yt,zIndex:0,background:"transparent"}}},MAX_VERTICAL_CONTENT_RADIUS=8;function getArrowOffsetToken(ht){const{contentRadius:Et,limitVerticalRadius:yt}=ht,Ct=Et>12?Et+2:12;return{arrowOffsetHorizontal:Ct,arrowOffsetVertical:yt?MAX_VERTICAL_CONTENT_RADIUS:Ct}}function isInject(ht,Et){return ht?Et:{}}function getArrowStyle(ht,Et,yt){const{componentCls:Ct,boxShadowPopoverArrow:$t,arrowOffsetVertical:At,arrowOffsetHorizontal:Bt}=ht,{arrowDistance:Dt=0,arrowPlacement:Ft={left:!0,right:!0,top:!0,bottom:!0}}=yt||{};return{[Ct]:Object.assign(Object.assign(Object.assign(Object.assign({[`${Ct}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},genRoundedArrow(ht,Et,$t)),{"&:before":{background:Et}})]},isInject(!!Ft.top,{[[`&-placement-top > ${Ct}-arrow`,`&-placement-topLeft > ${Ct}-arrow`,`&-placement-topRight > ${Ct}-arrow`].join(",")]:{bottom:Dt,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${Ct}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${Ct}-arrow`]:{left:{_skip_check_:!0,value:Bt}},[`&-placement-topRight > ${Ct}-arrow`]:{right:{_skip_check_:!0,value:Bt}}})),isInject(!!Ft.bottom,{[[`&-placement-bottom > ${Ct}-arrow`,`&-placement-bottomLeft > ${Ct}-arrow`,`&-placement-bottomRight > ${Ct}-arrow`].join(",")]:{top:Dt,transform:"translateY(-100%)"},[`&-placement-bottom > ${Ct}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${Ct}-arrow`]:{left:{_skip_check_:!0,value:Bt}},[`&-placement-bottomRight > ${Ct}-arrow`]:{right:{_skip_check_:!0,value:Bt}}})),isInject(!!Ft.left,{[[`&-placement-left > ${Ct}-arrow`,`&-placement-leftTop > ${Ct}-arrow`,`&-placement-leftBottom > ${Ct}-arrow`].join(",")]:{right:{_skip_check_:!0,value:Dt},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${Ct}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${Ct}-arrow`]:{top:At},[`&-placement-leftBottom > ${Ct}-arrow`]:{bottom:At}})),isInject(!!Ft.right,{[[`&-placement-right > ${Ct}-arrow`,`&-placement-rightTop > ${Ct}-arrow`,`&-placement-rightBottom > ${Ct}-arrow`].join(",")]:{left:{_skip_check_:!0,value:Dt},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${Ct}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${Ct}-arrow`]:{top:At},[`&-placement-rightBottom > ${Ct}-arrow`]:{bottom:At}}))}}function getOverflowOptions(ht,Et,yt,Ct){if(Ct===!1)return{adjustX:!1,adjustY:!1};const $t=Ct&&typeof Ct=="object"?Ct:{},At={};switch(ht){case"top":case"bottom":At.shiftX=Et.arrowOffsetHorizontal*2+yt,At.shiftY=!0,At.adjustY=!0;break;case"left":case"right":At.shiftY=Et.arrowOffsetVertical*2+yt,At.shiftX=!0,At.adjustX=!0;break}const Bt=Object.assign(Object.assign({},At),$t);return Bt.shiftX||(Bt.adjustX=!0),Bt.shiftY||(Bt.adjustY=!0),Bt}const PlacementAlignMap={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},ArrowCenterPlacementAlignMap={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},DisableAutoArrowList=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function getPlacements(ht){const{arrowWidth:Et,autoAdjustOverflow:yt,arrowPointAtCenter:Ct,offset:$t,borderRadius:At,visibleFirst:Bt}=ht,Dt=Et/2,Ft={};return Object.keys(PlacementAlignMap).forEach(kt=>{const Mt=Ct&&ArrowCenterPlacementAlignMap[kt]||PlacementAlignMap[kt],Nt=Object.assign(Object.assign({},Mt),{offset:[0,0],dynamicInset:!0});switch(Ft[kt]=Nt,DisableAutoArrowList.has(kt)&&(Nt.autoArrow=!1),kt){case"top":case"topLeft":case"topRight":Nt.offset[1]=-Dt-$t;break;case"bottom":case"bottomLeft":case"bottomRight":Nt.offset[1]=Dt+$t;break;case"left":case"leftTop":case"leftBottom":Nt.offset[0]=-Dt-$t;break;case"right":case"rightTop":case"rightBottom":Nt.offset[0]=Dt+$t;break}const jt=getArrowOffsetToken({contentRadius:At,limitVerticalRadius:!0});if(Ct)switch(kt){case"topLeft":case"bottomLeft":Nt.offset[0]=-jt.arrowOffsetHorizontal-Dt;break;case"topRight":case"bottomRight":Nt.offset[0]=jt.arrowOffsetHorizontal+Dt;break;case"leftTop":case"rightTop":Nt.offset[1]=-jt.arrowOffsetHorizontal-Dt;break;case"leftBottom":case"rightBottom":Nt.offset[1]=jt.arrowOffsetHorizontal+Dt;break}Nt.overflow=getOverflowOptions(kt,jt,Et,yt),Bt&&(Nt.htmlRegion="visibleFirst")}),Ft}const genTooltipStyle=ht=>{const{componentCls:Et,tooltipMaxWidth:yt,tooltipColor:Ct,tooltipBg:$t,tooltipBorderRadius:At,zIndexPopup:Bt,controlHeight:Dt,boxShadowSecondary:Ft,paddingSM:kt,paddingXS:Mt}=ht;return[{[Et]:Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent(ht)),{position:"absolute",zIndex:Bt,display:"block",width:"max-content",maxWidth:yt,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":$t,[`${Et}-inner`]:{minWidth:"1em",minHeight:Dt,padding:`${unit(ht.calc(kt).div(2).equal())} ${unit(Mt)}`,color:Ct,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:$t,borderRadius:At,boxShadow:Ft,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${Et}-inner`]:{borderRadius:ht.min(At,MAX_VERTICAL_CONTENT_RADIUS)}},[`${Et}-content`]:{position:"relative"}}),genPresetColor(ht,(Nt,jt)=>{let{darkColor:zt}=jt;return{[`&${Et}-${Nt}`]:{[`${Et}-inner`]:{backgroundColor:zt},[`${Et}-arrow`]:{"--antd-arrow-background-color":zt}}}})),{"&-rtl":{direction:"rtl"}})},getArrowStyle(ht,"var(--antd-arrow-background-color)"),{[`${Et}-pure`]:{position:"relative",maxWidth:"none",margin:ht.sizePopupArrow}}]},prepareComponentToken$e=ht=>Object.assign(Object.assign({zIndexPopup:ht.zIndexPopupBase+70},getArrowOffsetToken({contentRadius:ht.borderRadius,limitVerticalRadius:!0})),getArrowToken(merge$2(ht,{borderRadiusOuter:Math.min(ht.borderRadiusOuter,4)}))),useStyle$h=function(ht){let Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return genStyleHooks("Tooltip",Ct=>{const{borderRadius:$t,colorTextLightSolid:At,colorBgSpotlight:Bt}=Ct,Dt=merge$2(Ct,{tooltipMaxWidth:250,tooltipColor:At,tooltipBorderRadius:$t,tooltipBg:Bt});return[genTooltipStyle(Dt),initZoomMotion(Ct,"zoom-big-fast")]},prepareComponentToken$e,{resetStyle:!1,injectStyle:Et})(ht)},inverseColors=PresetColors.map(ht=>`${ht}-inverse`),PresetStatusColorTypes=["success","processing","error","default","warning"];function isPresetColor(ht){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(_toConsumableArray(inverseColors),_toConsumableArray(PresetColors)).includes(ht):PresetColors.includes(ht)}function isPresetStatusColor(ht){return PresetStatusColorTypes.includes(ht)}function parseColor(ht,Et){const yt=isPresetColor(Et),Ct=cls({[`${ht}-${Et}`]:Et&&yt}),$t={},At={};return Et&&!yt&&($t.background=Et,At["--antd-arrow-background-color"]=Et),{className:Ct,overlayStyle:$t,arrowStyle:At}}const PurePanel$4=ht=>{const{prefixCls:Et,className:yt,placement:Ct="top",title:$t,color:At,overlayInnerStyle:Bt}=ht,{getPrefixCls:Dt}=reactExports.useContext(ConfigContext$1),Ft=Dt("tooltip",Et),[kt,Mt,Nt]=useStyle$h(Ft),jt=parseColor(Ft,At),zt=jt.arrowStyle,Vt=Object.assign(Object.assign({},Bt),jt.overlayStyle),Kt=cls(Mt,Nt,Ft,`${Ft}-pure`,`${Ft}-placement-${Ct}`,yt,jt.className);return kt(reactExports.createElement("div",{className:Kt,style:zt},reactExports.createElement("div",{className:`${Ft}-arrow`}),reactExports.createElement(Popup,Object.assign({},ht,{className:Mt,prefixCls:Ft,overlayInnerStyle:Vt}),$t)))};var __rest$x=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};const InternalTooltip=reactExports.forwardRef((ht,Et)=>{var yt,Ct;const{prefixCls:$t,openClassName:At,getTooltipContainer:Bt,overlayClassName:Dt,color:Ft,overlayInnerStyle:kt,children:Mt,afterOpenChange:Nt,afterVisibleChange:jt,destroyTooltipOnHide:zt,arrow:Vt=!0,title:Kt,overlay:Xt,builtinPlacements:Qt,arrowPointAtCenter:Zt=!1,autoAdjustOverflow:dr=!0}=ht,cr=!!Vt,[,Er]=useToken$1(),{getPopupContainer:pr,getPrefixCls:gr,direction:vr}=reactExports.useContext(ConfigContext$1),yr=devUseWarning(),xr=reactExports.useRef(null),rr=()=>{var dn;(dn=xr.current)===null||dn===void 0||dn.forceAlign()};reactExports.useImperativeHandle(Et,()=>{var dn;return{forceAlign:rr,forcePopupAlign:()=>{yr.deprecated(!1,"forcePopupAlign","forceAlign"),rr()},nativeElement:(dn=xr.current)===null||dn===void 0?void 0:dn.nativeElement}});const[Lt,Ht]=useMergedState(!1,{value:(yt=ht.open)!==null&&yt!==void 0?yt:ht.visible,defaultValue:(Ct=ht.defaultOpen)!==null&&Ct!==void 0?Ct:ht.defaultVisible}),Wt=!Kt&&!Xt&&Kt!==0,Gt=dn=>{var Xr,un;Ht(Wt?!1:dn),Wt||((Xr=ht.onOpenChange)===null||Xr===void 0||Xr.call(ht,dn),(un=ht.onVisibleChange)===null||un===void 0||un.call(ht,dn))},Yt=reactExports.useMemo(()=>{var dn,Xr;let un=Zt;return typeof Vt=="object"&&(un=(Xr=(dn=Vt.pointAtCenter)!==null&&dn!==void 0?dn:Vt.arrowPointAtCenter)!==null&&Xr!==void 0?Xr:Zt),Qt||getPlacements({arrowPointAtCenter:un,autoAdjustOverflow:dr,arrowWidth:cr?Er.sizePopupArrow:0,borderRadius:Er.borderRadius,offset:Er.marginXXS,visibleFirst:!0})},[Zt,Vt,Qt,Er]),er=reactExports.useMemo(()=>Kt===0?Kt:Xt||Kt||"",[Xt,Kt]),lr=reactExports.createElement(ContextIsolator,{space:!0},typeof er=="function"?er():er),{getPopupContainer:Jt,placement:Ut="top",mouseEnterDelay:ir=.1,mouseLeaveDelay:Cr=.1,overlayStyle:_r,rootClassName:$r}=ht,Tr=__rest$x(ht,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Dr=gr("tooltip",$t),Ar=gr(),Fr=ht["data-popover-inject"];let Rr=Lt;!("open"in ht)&&!("visible"in ht)&&Wt&&(Rr=!1);const wr=reactExports.isValidElement(Mt)&&!isFragment(Mt)?Mt:reactExports.createElement("span",null,Mt),Sr=wr.props,Br=!Sr.className||typeof Sr.className=="string"?cls(Sr.className,At||`${Dr}-open`):Sr.className,[Or,Pr,Nr]=useStyle$h(Dr,!Fr),Lr=parseColor(Dr,Ft),Wr=Lr.arrowStyle,Ur=Object.assign(Object.assign({},kt),Lr.overlayStyle),jr=cls(Dt,{[`${Dr}-rtl`]:vr==="rtl"},Lr.className,$r,Pr,Nr),[Kr,qr]=useZIndex("Tooltip",Tr.zIndex),Zr=reactExports.createElement(Tooltip$2,Object.assign({},Tr,{zIndex:Kr,showArrow:cr,placement:Ut,mouseEnterDelay:ir,mouseLeaveDelay:Cr,prefixCls:Dr,overlayClassName:jr,overlayStyle:Object.assign(Object.assign({},Wr),_r),getTooltipContainer:Jt||Bt||pr,ref:xr,builtinPlacements:Yt,overlay:lr,visible:Rr,onVisibleChange:Gt,afterVisibleChange:Nt??jt,overlayInnerStyle:Ur,arrowContent:reactExports.createElement("span",{className:`${Dr}-arrow-content`}),motion:{motionName:getTransitionName(Ar,"zoom-big-fast",ht.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!zt}),Rr?cloneElement(wr,{className:Br}):wr);return Or(reactExports.createElement(zIndexContext.Provider,{value:qr},Zr))}),Tooltip=InternalTooltip;Tooltip._InternalPanelDoNotUseOrYouWillBeFired=PurePanel$4;var RightOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},RightOutlined=function ht(Et,yt){return reactExports.createElement(Icon$1,_extends$5({},Et,{ref:yt,icon:RightOutlined$1}))},RefIcon$j=reactExports.forwardRef(RightOutlined),ESC$1=KeyCode.ESC,TAB=KeyCode.TAB;function useAccessibility$1(ht){var Et=ht.visible,yt=ht.triggerRef,Ct=ht.onVisibleChange,$t=ht.autoFocus,At=ht.overlayRef,Bt=reactExports.useRef(!1),Dt=function(){if(Et){var Nt,jt;(Nt=yt.current)===null||Nt===void 0||(jt=Nt.focus)===null||jt===void 0||jt.call(Nt),Ct==null||Ct(!1)}},Ft=function(){var Nt;return(Nt=At.current)!==null&&Nt!==void 0&&Nt.focus?(At.current.focus(),Bt.current=!0,!0):!1},kt=function(Nt){switch(Nt.keyCode){case ESC$1:Dt();break;case TAB:{var jt=!1;Bt.current||(jt=Ft()),jt?Nt.preventDefault():Dt();break}}};reactExports.useEffect(function(){return Et?(window.addEventListener("keydown",kt),$t&&wrapperRaf(Ft,3),function(){window.removeEventListener("keydown",kt),Bt.current=!1}):function(){Bt.current=!1}},[Et])}var Overlay=reactExports.forwardRef(function(ht,Et){var yt=ht.overlay,Ct=ht.arrow,$t=ht.prefixCls,At=reactExports.useMemo(function(){var Dt;return typeof yt=="function"?Dt=yt():Dt=yt,Dt},[yt]),Bt=composeRef(Et,At==null?void 0:At.ref);return React$8.createElement(React$8.Fragment,null,Ct&&React$8.createElement("div",{className:"".concat($t,"-arrow")}),React$8.cloneElement(At,{ref:supportRef(At)?Bt:void 0}))}),autoAdjustOverflow$1={adjustX:1,adjustY:1},targetOffset=[0,0],placements$1={topLeft:{points:["bl","tl"],overflow:autoAdjustOverflow$1,offset:[0,-4],targetOffset},top:{points:["bc","tc"],overflow:autoAdjustOverflow$1,offset:[0,-4],targetOffset},topRight:{points:["br","tr"],overflow:autoAdjustOverflow$1,offset:[0,-4],targetOffset},bottomLeft:{points:["tl","bl"],overflow:autoAdjustOverflow$1,offset:[0,4],targetOffset},bottom:{points:["tc","bc"],overflow:autoAdjustOverflow$1,offset:[0,4],targetOffset},bottomRight:{points:["tr","br"],overflow:autoAdjustOverflow$1,offset:[0,4],targetOffset}},_excluded$v=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Dropdown$2(ht,Et){var yt,Ct=ht.arrow,$t=Ct===void 0?!1:Ct,At=ht.prefixCls,Bt=At===void 0?"rc-dropdown":At,Dt=ht.transitionName,Ft=ht.animation,kt=ht.align,Mt=ht.placement,Nt=Mt===void 0?"bottomLeft":Mt,jt=ht.placements,zt=jt===void 0?placements$1:jt,Vt=ht.getPopupContainer,Kt=ht.showAction,Xt=ht.hideAction,Qt=ht.overlayClassName,Zt=ht.overlayStyle,dr=ht.visible,cr=ht.trigger,Er=cr===void 0?["hover"]:cr,pr=ht.autoFocus,gr=ht.overlay,vr=ht.children,yr=ht.onVisibleChange,xr=_objectWithoutProperties$1(ht,_excluded$v),rr=React$8.useState(),Lt=_slicedToArray(rr,2),Ht=Lt[0],Wt=Lt[1],Gt="visible"in ht?dr:Ht,Yt=React$8.useRef(null),er=React$8.useRef(null),lr=React$8.useRef(null);React$8.useImperativeHandle(Et,function(){return Yt.current});var Jt=function(Fr){Wt(Fr),yr==null||yr(Fr)};useAccessibility$1({visible:Gt,triggerRef:lr,onVisibleChange:Jt,autoFocus:pr,overlayRef:er});var Ut=function(Fr){var Rr=ht.onOverlayClick;Wt(!1),Rr&&Rr(Fr)},ir=function(){return React$8.createElement(Overlay,{ref:er,overlay:gr,prefixCls:Bt,arrow:$t})},Cr=function(){return typeof gr=="function"?ir:ir()},_r=function(){var Fr=ht.minOverlayWidthMatchTrigger,Rr=ht.alignPoint;return"minOverlayWidthMatchTrigger"in ht?Fr:!Rr},$r=function(){var Fr=ht.openClassName;return Fr!==void 0?Fr:"".concat(Bt,"-open")},Tr=React$8.cloneElement(vr,{className:cls((yt=vr.props)===null||yt===void 0?void 0:yt.className,Gt&&$r()),ref:supportRef(vr)?composeRef(lr,vr.ref):void 0}),Dr=Xt;return!Dr&&Er.indexOf("contextMenu")!==-1&&(Dr=["click"]),React$8.createElement(Trigger,_extends$5({builtinPlacements:zt},xr,{prefixCls:Bt,ref:Yt,popupClassName:cls(Qt,_defineProperty$1({},"".concat(Bt,"-show-arrow"),$t)),popupStyle:Zt,action:Er,showAction:Kt,hideAction:Dr,popupPlacement:Nt,popupAlign:kt,popupTransitionName:Dt,popupAnimation:Ft,popupVisible:Gt,stretch:_r()?"minWidth":"",popup:Cr(),onPopupVisibleChange:Jt,onPopupClick:Ut,getPopupContainer:Vt}),Tr)}const Dropdown$3=React$8.forwardRef(Dropdown$2);var IdContext=reactExports.createContext(null);function getMenuId(ht,Et){return ht===void 0?null:"".concat(ht,"-").concat(Et)}function useMenuId(ht){var Et=reactExports.useContext(IdContext);return getMenuId(Et,ht)}var _excluded$u=["children","locked"],MenuContext$1=reactExports.createContext(null);function mergeProps(ht,Et){var yt=_objectSpread2({},ht);return Object.keys(Et).forEach(function(Ct){var $t=Et[Ct];$t!==void 0&&(yt[Ct]=$t)}),yt}function InheritableContextProvider(ht){var Et=ht.children,yt=ht.locked,Ct=_objectWithoutProperties$1(ht,_excluded$u),$t=reactExports.useContext(MenuContext$1),At=useMemo(function(){return mergeProps($t,Ct)},[$t,Ct],function(Bt,Dt){return!yt&&(Bt[0]!==Dt[0]||!isEqual$3(Bt[1],Dt[1],!0))});return reactExports.createElement(MenuContext$1.Provider,{value:At},Et)}var EmptyList=[],PathRegisterContext=reactExports.createContext(null);function useMeasure(){return reactExports.useContext(PathRegisterContext)}var PathTrackerContext=reactExports.createContext(EmptyList);function useFullPath(ht){var Et=reactExports.useContext(PathTrackerContext);return reactExports.useMemo(function(){return ht!==void 0?[].concat(_toConsumableArray(Et),[ht]):Et},[Et,ht])}var PathUserContext=reactExports.createContext(null),PrivateContext=reactExports.createContext({});function focusable(ht){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(isVisible(ht)){var yt=ht.nodeName.toLowerCase(),Ct=["input","select","textarea","button"].includes(yt)||ht.isContentEditable||yt==="a"&&!!ht.getAttribute("href"),$t=ht.getAttribute("tabindex"),At=Number($t),Bt=null;return $t&&!Number.isNaN(At)?Bt=At:Ct&&Bt===null&&(Bt=0),Ct&&ht.disabled&&(Bt=null),Bt!==null&&(Bt>=0||Et&&Bt<0)}return!1}function getFocusNodeList(ht){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,yt=_toConsumableArray(ht.querySelectorAll("*")).filter(function(Ct){return focusable(Ct,Et)});return focusable(ht,Et)&&yt.unshift(ht),yt}var LEFT=KeyCode.LEFT,RIGHT=KeyCode.RIGHT,UP=KeyCode.UP,DOWN=KeyCode.DOWN,ENTER=KeyCode.ENTER,ESC=KeyCode.ESC,HOME=KeyCode.HOME,END=KeyCode.END,ArrowKeys=[UP,DOWN,LEFT,RIGHT];function getOffset$1(ht,Et,yt,Ct){var $t,At,Bt,Dt,Ft="prev",kt="next",Mt="children",Nt="parent";if(ht==="inline"&&Ct===ENTER)return{inlineTrigger:!0};var jt=($t={},_defineProperty$1($t,UP,Ft),_defineProperty$1($t,DOWN,kt),$t),zt=(At={},_defineProperty$1(At,LEFT,yt?kt:Ft),_defineProperty$1(At,RIGHT,yt?Ft:kt),_defineProperty$1(At,DOWN,Mt),_defineProperty$1(At,ENTER,Mt),At),Vt=(Bt={},_defineProperty$1(Bt,UP,Ft),_defineProperty$1(Bt,DOWN,kt),_defineProperty$1(Bt,ENTER,Mt),_defineProperty$1(Bt,ESC,Nt),_defineProperty$1(Bt,LEFT,yt?Mt:Nt),_defineProperty$1(Bt,RIGHT,yt?Nt:Mt),Bt),Kt={inline:jt,horizontal:zt,vertical:Vt,inlineSub:jt,horizontalSub:Vt,verticalSub:Vt},Xt=(Dt=Kt["".concat(ht).concat(Et?"":"Sub")])===null||Dt===void 0?void 0:Dt[Ct];switch(Xt){case Ft:return{offset:-1,sibling:!0};case kt:return{offset:1,sibling:!0};case Nt:return{offset:-1,sibling:!1};case Mt:return{offset:1,sibling:!1};default:return null}}function findContainerUL(ht){for(var Et=ht;Et;){if(Et.getAttribute("data-menu-list"))return Et;Et=Et.parentElement}return null}function getFocusElement(ht,Et){for(var yt=ht||document.activeElement;yt;){if(Et.has(yt))return yt;yt=yt.parentElement}return null}function getFocusableElements(ht,Et){var yt=getFocusNodeList(ht,!0);return yt.filter(function(Ct){return Et.has(Ct)})}function getNextFocusElement(ht,Et,yt){var Ct=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!ht)return null;var $t=getFocusableElements(ht,Et),At=$t.length,Bt=$t.findIndex(function(Dt){return yt===Dt});return Ct<0?Bt===-1?Bt=At-1:Bt-=1:Ct>0&&(Bt+=1),Bt=(Bt+At)%At,$t[Bt]}var refreshElements=function ht(Et,yt){var Ct=new Set,$t=new Map,At=new Map;return Et.forEach(function(Bt){var Dt=document.querySelector("[data-menu-id='".concat(getMenuId(yt,Bt),"']"));Dt&&(Ct.add(Dt),At.set(Dt,Bt),$t.set(Bt,Dt))}),{elements:Ct,key2element:$t,element2key:At}};function useAccessibility(ht,Et,yt,Ct,$t,At,Bt,Dt,Ft,kt){var Mt=reactExports.useRef(),Nt=reactExports.useRef();Nt.current=Et;var jt=function(){wrapperRaf.cancel(Mt.current)};return reactExports.useEffect(function(){return function(){jt()}},[]),function(zt){var Vt=zt.which;if([].concat(ArrowKeys,[ENTER,ESC,HOME,END]).includes(Vt)){var Kt=At(),Xt=refreshElements(Kt,Ct),Qt=Xt,Zt=Qt.elements,dr=Qt.key2element,cr=Qt.element2key,Er=dr.get(Et),pr=getFocusElement(Er,Zt),gr=cr.get(pr),vr=getOffset$1(ht,Bt(gr,!0).length===1,yt,Vt);if(!vr&&Vt!==HOME&&Vt!==END)return;(ArrowKeys.includes(Vt)||[HOME,END].includes(Vt))&&zt.preventDefault();var yr=function(er){if(er){var lr=er,Jt=er.querySelector("a");Jt!=null&&Jt.getAttribute("href")&&(lr=Jt);var Ut=cr.get(er);Dt(Ut),jt(),Mt.current=wrapperRaf(function(){Nt.current===Ut&&lr.focus()})}};if([HOME,END].includes(Vt)||vr.sibling||!pr){var xr;!pr||ht==="inline"?xr=$t.current:xr=findContainerUL(pr);var rr,Lt=getFocusableElements(xr,Zt);Vt===HOME?rr=Lt[0]:Vt===END?rr=Lt[Lt.length-1]:rr=getNextFocusElement(xr,Zt,pr,vr.offset),yr(rr)}else if(vr.inlineTrigger)Ft(gr);else if(vr.offset>0)Ft(gr,!0),jt(),Mt.current=wrapperRaf(function(){Xt=refreshElements(Kt,Ct);var Yt=pr.getAttribute("aria-controls"),er=document.getElementById(Yt),lr=getNextFocusElement(er,Xt.elements);yr(lr)},5);else if(vr.offset<0){var Ht=Bt(gr,!0),Wt=Ht[Ht.length-2],Gt=dr.get(Wt);Ft(Wt,!1),yr(Gt)}}kt==null||kt(zt)}}function nextSlice(ht){Promise.resolve().then(ht)}var PATH_SPLIT="__RC_UTIL_PATH_SPLIT__",getPathStr=function ht(Et){return Et.join(PATH_SPLIT)},getPathKeys=function ht(Et){return Et.split(PATH_SPLIT)},OVERFLOW_KEY="rc-menu-more";function useKeyRecords(){var ht=reactExports.useState({}),Et=_slicedToArray(ht,2),yt=Et[1],Ct=reactExports.useRef(new Map),$t=reactExports.useRef(new Map),At=reactExports.useState([]),Bt=_slicedToArray(At,2),Dt=Bt[0],Ft=Bt[1],kt=reactExports.useRef(0),Mt=reactExports.useRef(!1),Nt=function(){Mt.current||yt({})},jt=reactExports.useCallback(function(dr,cr){var Er=getPathStr(cr);$t.current.set(Er,dr),Ct.current.set(dr,Er),kt.current+=1;var pr=kt.current;nextSlice(function(){pr===kt.current&&Nt()})},[]),zt=reactExports.useCallback(function(dr,cr){var Er=getPathStr(cr);$t.current.delete(Er),Ct.current.delete(dr)},[]),Vt=reactExports.useCallback(function(dr){Ft(dr)},[]),Kt=reactExports.useCallback(function(dr,cr){var Er=Ct.current.get(dr)||"",pr=getPathKeys(Er);return cr&&Dt.includes(pr[0])&&pr.unshift(OVERFLOW_KEY),pr},[Dt]),Xt=reactExports.useCallback(function(dr,cr){return dr.filter(function(Er){return Er!==void 0}).some(function(Er){var pr=Kt(Er,!0);return pr.includes(cr)})},[Kt]),Qt=function(){var cr=_toConsumableArray(Ct.current.keys());return Dt.length&&cr.push(OVERFLOW_KEY),cr},Zt=reactExports.useCallback(function(dr){var cr="".concat(Ct.current.get(dr)).concat(PATH_SPLIT),Er=new Set;return _toConsumableArray($t.current.keys()).forEach(function(pr){pr.startsWith(cr)&&Er.add($t.current.get(pr))}),Er},[]);return reactExports.useEffect(function(){return function(){Mt.current=!0}},[]),{registerPath:jt,unregisterPath:zt,refreshOverflowKeys:Vt,isSubPathKey:Xt,getKeyPath:Kt,getKeys:Qt,getSubPathKeys:Zt}}function useMemoCallback(ht){var Et=reactExports.useRef(ht);Et.current=ht;var yt=reactExports.useCallback(function(){for(var Ct,$t=arguments.length,At=new Array($t),Bt=0;Bt<$t;Bt++)At[Bt]=arguments[Bt];return(Ct=Et.current)===null||Ct===void 0?void 0:Ct.call.apply(Ct,[Et].concat(At))},[]);return ht?yt:void 0}var uniquePrefix=Math.random().toFixed(5).toString().slice(2),internalId=0;function useUUID(ht){var Et=useMergedState(ht,{value:ht}),yt=_slicedToArray(Et,2),Ct=yt[0],$t=yt[1];return reactExports.useEffect(function(){internalId+=1;var At="".concat(uniquePrefix,"-").concat(internalId);$t("rc-menu-uuid-".concat(At))},[]),Ct}function useActive(ht,Et,yt,Ct){var $t=reactExports.useContext(MenuContext$1),At=$t.activeKey,Bt=$t.onActive,Dt=$t.onInactive,Ft={active:At===ht};return Et||(Ft.onMouseEnter=function(kt){yt==null||yt({key:ht,domEvent:kt}),Bt(ht)},Ft.onMouseLeave=function(kt){Ct==null||Ct({key:ht,domEvent:kt}),Dt(ht)}),Ft}function useDirectionStyle(ht){var Et=reactExports.useContext(MenuContext$1),yt=Et.mode,Ct=Et.rtl,$t=Et.inlineIndent;if(yt!=="inline")return null;var At=ht;return Ct?{paddingRight:At*$t}:{paddingLeft:At*$t}}function Icon(ht){var Et=ht.icon,yt=ht.props,Ct=ht.children,$t;return Et===null||Et===!1?null:(typeof Et=="function"?$t=reactExports.createElement(Et,_objectSpread2({},yt)):typeof Et!="boolean"&&($t=Et),$t||Ct||null)}var _excluded$t=["item"];function warnItemProp(ht){var Et=ht.item,yt=_objectWithoutProperties$1(ht,_excluded$t);return Object.defineProperty(yt,"item",{get:function(){return warningOnce(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),Et}}),yt}var _excluded$s=["title","attribute","elementRef"],_excluded2$3=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],_excluded3=["active"],LegacyMenuItem=function(ht){_inherits(yt,ht);var Et=_createSuper$5(yt);function yt(){return _classCallCheck(this,yt),Et.apply(this,arguments)}return _createClass$1(yt,[{key:"render",value:function(){var $t=this.props,At=$t.title,Bt=$t.attribute,Dt=$t.elementRef,Ft=_objectWithoutProperties$1($t,_excluded$s),kt=omit$1(Ft,["eventKey","popupClassName","popupOffset","onTitleClick"]);return warningOnce(!Bt,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),reactExports.createElement(ForwardOverflow.Item,_extends$5({},Bt,{title:typeof At=="string"?At:void 0},kt,{ref:Dt}))}}]),yt}(reactExports.Component),InternalMenuItem=reactExports.forwardRef(function(ht,Et){var yt,Ct=ht.style,$t=ht.className,At=ht.eventKey;ht.warnKey;var Bt=ht.disabled,Dt=ht.itemIcon,Ft=ht.children,kt=ht.role,Mt=ht.onMouseEnter,Nt=ht.onMouseLeave,jt=ht.onClick,zt=ht.onKeyDown,Vt=ht.onFocus,Kt=_objectWithoutProperties$1(ht,_excluded2$3),Xt=useMenuId(At),Qt=reactExports.useContext(MenuContext$1),Zt=Qt.prefixCls,dr=Qt.onItemClick,cr=Qt.disabled,Er=Qt.overflowDisabled,pr=Qt.itemIcon,gr=Qt.selectedKeys,vr=Qt.onActive,yr=reactExports.useContext(PrivateContext),xr=yr._internalRenderMenuItem,rr="".concat(Zt,"-item"),Lt=reactExports.useRef(),Ht=reactExports.useRef(),Wt=cr||Bt,Gt=useComposeRef(Et,Ht),Yt=useFullPath(At),er=function(wr){return{key:At,keyPath:_toConsumableArray(Yt).reverse(),item:Lt.current,domEvent:wr}},lr=Dt||pr,Jt=useActive(At,Wt,Mt,Nt),Ut=Jt.active,ir=_objectWithoutProperties$1(Jt,_excluded3),Cr=gr.includes(At),_r=useDirectionStyle(Yt.length),$r=function(wr){if(!Wt){var Sr=er(wr);jt==null||jt(warnItemProp(Sr)),dr(Sr)}},Tr=function(wr){if(zt==null||zt(wr),wr.which===KeyCode.ENTER){var Sr=er(wr);jt==null||jt(warnItemProp(Sr)),dr(Sr)}},Dr=function(wr){vr(At),Vt==null||Vt(wr)},Ar={};ht.role==="option"&&(Ar["aria-selected"]=Cr);var Fr=reactExports.createElement(LegacyMenuItem,_extends$5({ref:Lt,elementRef:Gt,role:kt===null?"none":kt||"menuitem",tabIndex:Bt?null:-1,"data-menu-id":Er&&Xt?null:Xt},Kt,ir,Ar,{component:"li","aria-disabled":Bt,style:_objectSpread2(_objectSpread2({},_r),Ct),className:cls(rr,(yt={},_defineProperty$1(yt,"".concat(rr,"-active"),Ut),_defineProperty$1(yt,"".concat(rr,"-selected"),Cr),_defineProperty$1(yt,"".concat(rr,"-disabled"),Wt),yt),$t),onClick:$r,onKeyDown:Tr,onFocus:Dr}),Ft,reactExports.createElement(Icon,{props:_objectSpread2(_objectSpread2({},ht),{},{isSelected:Cr}),icon:lr}));return xr&&(Fr=xr(Fr,ht,{selected:Cr})),Fr});function MenuItem$1(ht,Et){var yt=ht.eventKey,Ct=useMeasure(),$t=useFullPath(yt);return reactExports.useEffect(function(){if(Ct)return Ct.registerPath(yt,$t),function(){Ct.unregisterPath(yt,$t)}},[$t]),Ct?null:reactExports.createElement(InternalMenuItem,_extends$5({},ht,{ref:Et}))}const MenuItem$2=reactExports.forwardRef(MenuItem$1);var _excluded$r=["className","children"],InternalSubMenuList=function ht(Et,yt){var Ct=Et.className,$t=Et.children,At=_objectWithoutProperties$1(Et,_excluded$r),Bt=reactExports.useContext(MenuContext$1),Dt=Bt.prefixCls,Ft=Bt.mode,kt=Bt.rtl;return reactExports.createElement("ul",_extends$5({className:cls(Dt,kt&&"".concat(Dt,"-rtl"),"".concat(Dt,"-sub"),"".concat(Dt,"-").concat(Ft==="inline"?"inline":"vertical"),Ct),role:"menu"},At,{"data-menu-list":!0,ref:yt}),$t)},SubMenuList=reactExports.forwardRef(InternalSubMenuList);SubMenuList.displayName="SubMenuList";function parseChildren(ht,Et){return toArray$5(ht).map(function(yt,Ct){if(reactExports.isValidElement(yt)){var $t,At,Bt=yt.key,Dt=($t=(At=yt.props)===null||At===void 0?void 0:At.eventKey)!==null&&$t!==void 0?$t:Bt,Ft=Dt==null;Ft&&(Dt="tmp_key-".concat([].concat(_toConsumableArray(Et),[Ct]).join("-")));var kt={key:Dt,eventKey:Dt};return reactExports.cloneElement(yt,kt)}return yt})}var autoAdjustOverflow={adjustX:1,adjustY:1},placements={topLeft:{points:["bl","tl"],overflow:autoAdjustOverflow},topRight:{points:["br","tr"],overflow:autoAdjustOverflow},bottomLeft:{points:["tl","bl"],overflow:autoAdjustOverflow},bottomRight:{points:["tr","br"],overflow:autoAdjustOverflow},leftTop:{points:["tr","tl"],overflow:autoAdjustOverflow},leftBottom:{points:["br","bl"],overflow:autoAdjustOverflow},rightTop:{points:["tl","tr"],overflow:autoAdjustOverflow},rightBottom:{points:["bl","br"],overflow:autoAdjustOverflow}},placementsRtl={topLeft:{points:["bl","tl"],overflow:autoAdjustOverflow},topRight:{points:["br","tr"],overflow:autoAdjustOverflow},bottomLeft:{points:["tl","bl"],overflow:autoAdjustOverflow},bottomRight:{points:["tr","br"],overflow:autoAdjustOverflow},rightTop:{points:["tr","tl"],overflow:autoAdjustOverflow},rightBottom:{points:["br","bl"],overflow:autoAdjustOverflow},leftTop:{points:["tl","tr"],overflow:autoAdjustOverflow},leftBottom:{points:["bl","br"],overflow:autoAdjustOverflow}};function getMotion(ht,Et,yt){if(Et)return Et;if(yt)return yt[ht]||yt.other}var popupPlacementMap={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function PopupTrigger(ht){var Et=ht.prefixCls,yt=ht.visible,Ct=ht.children,$t=ht.popup,At=ht.popupStyle,Bt=ht.popupClassName,Dt=ht.popupOffset,Ft=ht.disabled,kt=ht.mode,Mt=ht.onVisibleChange,Nt=reactExports.useContext(MenuContext$1),jt=Nt.getPopupContainer,zt=Nt.rtl,Vt=Nt.subMenuOpenDelay,Kt=Nt.subMenuCloseDelay,Xt=Nt.builtinPlacements,Qt=Nt.triggerSubMenuAction,Zt=Nt.forceSubMenuRender,dr=Nt.rootClassName,cr=Nt.motion,Er=Nt.defaultMotions,pr=reactExports.useState(!1),gr=_slicedToArray(pr,2),vr=gr[0],yr=gr[1],xr=_objectSpread2(zt?_objectSpread2({},placementsRtl):_objectSpread2({},placements),Xt),rr=popupPlacementMap[kt],Lt=getMotion(kt,cr,Er),Ht=reactExports.useRef(Lt);kt!=="inline"&&(Ht.current=Lt);var Wt=_objectSpread2(_objectSpread2({},Ht.current),{},{leavedClassName:"".concat(Et,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Gt=reactExports.useRef();return reactExports.useEffect(function(){return Gt.current=wrapperRaf(function(){yr(yt)}),function(){wrapperRaf.cancel(Gt.current)}},[yt]),reactExports.createElement(Trigger,{prefixCls:Et,popupClassName:cls("".concat(Et,"-popup"),_defineProperty$1({},"".concat(Et,"-rtl"),zt),Bt,dr),stretch:kt==="horizontal"?"minWidth":null,getPopupContainer:jt,builtinPlacements:xr,popupPlacement:rr,popupVisible:vr,popup:$t,popupStyle:At,popupAlign:Dt&&{offset:Dt},action:Ft?[]:[Qt],mouseEnterDelay:Vt,mouseLeaveDelay:Kt,onPopupVisibleChange:Mt,forceRender:Zt,popupMotion:Wt,fresh:!0},Ct)}function InlineSubMenuList(ht){var Et=ht.id,yt=ht.open,Ct=ht.keyPath,$t=ht.children,At="inline",Bt=reactExports.useContext(MenuContext$1),Dt=Bt.prefixCls,Ft=Bt.forceSubMenuRender,kt=Bt.motion,Mt=Bt.defaultMotions,Nt=Bt.mode,jt=reactExports.useRef(!1);jt.current=Nt===At;var zt=reactExports.useState(!jt.current),Vt=_slicedToArray(zt,2),Kt=Vt[0],Xt=Vt[1],Qt=jt.current?yt:!1;reactExports.useEffect(function(){jt.current&&Xt(!1)},[Nt]);var Zt=_objectSpread2({},getMotion(At,kt,Mt));Ct.length>1&&(Zt.motionAppear=!1);var dr=Zt.onVisibleChanged;return Zt.onVisibleChanged=function(cr){return!jt.current&&!cr&&Xt(!0),dr==null?void 0:dr(cr)},Kt?null:reactExports.createElement(InheritableContextProvider,{mode:At,locked:!jt.current},reactExports.createElement(CSSMotion,_extends$5({visible:Qt},Zt,{forceRender:Ft,removeOnLeave:!1,leavedClassName:"".concat(Dt,"-hidden")}),function(cr){var Er=cr.className,pr=cr.style;return reactExports.createElement(SubMenuList,{id:Et,className:Er,style:pr},$t)}))}var _excluded$q=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],_excluded2$2=["active"],InternalSubMenu=reactExports.forwardRef(function(ht,Et){var yt,Ct=ht.style,$t=ht.className,At=ht.title,Bt=ht.eventKey;ht.warnKey;var Dt=ht.disabled,Ft=ht.internalPopupClose,kt=ht.children,Mt=ht.itemIcon,Nt=ht.expandIcon,jt=ht.popupClassName,zt=ht.popupOffset,Vt=ht.popupStyle,Kt=ht.onClick,Xt=ht.onMouseEnter,Qt=ht.onMouseLeave,Zt=ht.onTitleClick,dr=ht.onTitleMouseEnter,cr=ht.onTitleMouseLeave,Er=_objectWithoutProperties$1(ht,_excluded$q),pr=useMenuId(Bt),gr=reactExports.useContext(MenuContext$1),vr=gr.prefixCls,yr=gr.mode,xr=gr.openKeys,rr=gr.disabled,Lt=gr.overflowDisabled,Ht=gr.activeKey,Wt=gr.selectedKeys,Gt=gr.itemIcon,Yt=gr.expandIcon,er=gr.onItemClick,lr=gr.onOpenChange,Jt=gr.onActive,Ut=reactExports.useContext(PrivateContext),ir=Ut._internalRenderSubMenuItem,Cr=reactExports.useContext(PathUserContext),_r=Cr.isSubPathKey,$r=useFullPath(),Tr="".concat(vr,"-submenu"),Dr=rr||Dt,Ar=reactExports.useRef(),Fr=reactExports.useRef(),Rr=Mt??Gt,wr=Nt??Yt,Sr=xr.includes(Bt),Br=!Lt&&Sr,Or=_r(Wt,Bt),Pr=useActive(Bt,Dr,dr,cr),Nr=Pr.active,Lr=_objectWithoutProperties$1(Pr,_excluded2$2),Wr=reactExports.useState(!1),Ur=_slicedToArray(Wr,2),jr=Ur[0],Kr=Ur[1],qr=function(Qr){Dr||Kr(Qr)},Zr=function(Qr){qr(!0),Xt==null||Xt({key:Bt,domEvent:Qr})},dn=function(Qr){qr(!1),Qt==null||Qt({key:Bt,domEvent:Qr})},Xr=reactExports.useMemo(function(){return Nr||(yr!=="inline"?jr||_r([Ht],Bt):!1)},[yr,Nr,Ht,jr,Bt,_r]),un=useDirectionStyle($r.length),Yr=function(Qr){Dr||(Zt==null||Zt({key:Bt,domEvent:Qr}),yr==="inline"&&lr(Bt,!Sr))},Gr=useMemoCallback(function(on){Kt==null||Kt(warnItemProp(on)),er(on)}),Jr=function(Qr){yr!=="inline"&&lr(Bt,Qr)},wn=function(){Jt(Bt)},kr=pr&&"".concat(pr,"-popup"),Mr=reactExports.createElement("div",_extends$5({role:"menuitem",style:un,className:"".concat(Tr,"-title"),tabIndex:Dr?null:-1,ref:Ar,title:typeof At=="string"?At:null,"data-menu-id":Lt&&pr?null:pr,"aria-expanded":Br,"aria-haspopup":!0,"aria-controls":kr,"aria-disabled":Dr,onClick:Yr,onFocus:wn},Lr),At,reactExports.createElement(Icon,{icon:yr!=="horizontal"?wr:void 0,props:_objectSpread2(_objectSpread2({},ht),{},{isOpen:Br,isSubMenu:!0})},reactExports.createElement("i",{className:"".concat(Tr,"-arrow")}))),Ir=reactExports.useRef(yr);if(yr!=="inline"&&$r.length>1?Ir.current="vertical":Ir.current=yr,!Lt){var Hr=Ir.current;Mr=reactExports.createElement(PopupTrigger,{mode:Hr,prefixCls:Tr,visible:!Ft&&Br&&yr!=="inline",popupClassName:jt,popupOffset:zt,popupStyle:Vt,popup:reactExports.createElement(InheritableContextProvider,{mode:Hr==="horizontal"?"vertical":Hr},reactExports.createElement(SubMenuList,{id:kr,ref:Fr},kt)),disabled:Dr,onVisibleChange:Jr},Mr)}var Vr=reactExports.createElement(ForwardOverflow.Item,_extends$5({ref:Et,role:"none"},Er,{component:"li",style:Ct,className:cls(Tr,"".concat(Tr,"-").concat(yr),$t,(yt={},_defineProperty$1(yt,"".concat(Tr,"-open"),Br),_defineProperty$1(yt,"".concat(Tr,"-active"),Xr),_defineProperty$1(yt,"".concat(Tr,"-selected"),Or),_defineProperty$1(yt,"".concat(Tr,"-disabled"),Dr),yt)),onMouseEnter:Zr,onMouseLeave:dn}),Mr,!Lt&&reactExports.createElement(InlineSubMenuList,{id:kr,open:Br,keyPath:$r},kt));return ir&&(Vr=ir(Vr,ht,{selected:Or,active:Xr,open:Br,disabled:Dr})),reactExports.createElement(InheritableContextProvider,{onItemClick:Gr,mode:yr==="horizontal"?"vertical":yr,itemIcon:Rr,expandIcon:wr},Vr)}),SubMenu$1=reactExports.forwardRef(function(ht,Et){var yt=ht.eventKey,Ct=ht.children,$t=useFullPath(yt),At=parseChildren(Ct,$t),Bt=useMeasure();reactExports.useEffect(function(){if(Bt)return Bt.registerPath(yt,$t),function(){Bt.unregisterPath(yt,$t)}},[$t]);var Dt;return Bt?Dt=At:Dt=reactExports.createElement(InternalSubMenu,_extends$5({ref:Et},ht),At),reactExports.createElement(PathTrackerContext.Provider,{value:$t},Dt)});function Divider$1(ht){var Et=ht.className,yt=ht.style,Ct=reactExports.useContext(MenuContext$1),$t=Ct.prefixCls,At=useMeasure();return At?null:reactExports.createElement("li",{role:"separator",className:cls("".concat($t,"-item-divider"),Et),style:yt})}var _excluded$p=["className","title","eventKey","children"],InternalMenuItemGroup=reactExports.forwardRef(function(ht,Et){var yt=ht.className,Ct=ht.title;ht.eventKey;var $t=ht.children,At=_objectWithoutProperties$1(ht,_excluded$p),Bt=reactExports.useContext(MenuContext$1),Dt=Bt.prefixCls,Ft="".concat(Dt,"-item-group");return reactExports.createElement("li",_extends$5({ref:Et,role:"presentation"},At,{onClick:function(Mt){return Mt.stopPropagation()},className:cls(Ft,yt)}),reactExports.createElement("div",{role:"presentation",className:"".concat(Ft,"-title"),title:typeof Ct=="string"?Ct:void 0},Ct),reactExports.createElement("ul",{role:"group",className:"".concat(Ft,"-list")},$t))}),MenuItemGroup=reactExports.forwardRef(function(ht,Et){var yt=ht.eventKey,Ct=ht.children,$t=useFullPath(yt),At=parseChildren(Ct,$t),Bt=useMeasure();return Bt?At:reactExports.createElement(InternalMenuItemGroup,_extends$5({ref:Et},omit$1(ht,["warnKey"])),At)}),_excluded$o=["label","children","key","type"];function convertItemsToNodes$1(ht,Et){var yt=Et.item,Ct=Et.group,$t=Et.submenu,At=Et.divider;return(ht||[]).map(function(Bt,Dt){if(Bt&&_typeof$1(Bt)==="object"){var Ft=Bt,kt=Ft.label,Mt=Ft.children,Nt=Ft.key,jt=Ft.type,zt=_objectWithoutProperties$1(Ft,_excluded$o),Vt=Nt??"tmp-".concat(Dt);return Mt||jt==="group"?jt==="group"?reactExports.createElement(Ct,_extends$5({key:Vt},zt,{title:kt}),convertItemsToNodes$1(Mt,Et)):reactExports.createElement($t,_extends$5({key:Vt},zt,{title:kt}),convertItemsToNodes$1(Mt,Et)):jt==="divider"?reactExports.createElement(At,_extends$5({key:Vt},zt)):reactExports.createElement(yt,_extends$5({key:Vt},zt),kt)}return null}).filter(function(Bt){return Bt})}function parseItems(ht,Et,yt,Ct){var $t=ht,At=_objectSpread2({divider:Divider$1,item:MenuItem$2,group:MenuItemGroup,submenu:SubMenu$1},Ct);return Et&&($t=convertItemsToNodes$1(Et,At)),parseChildren($t,yt)}var _excluded$n=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],EMPTY_LIST$3=[],Menu$1=reactExports.forwardRef(function(ht,Et){var yt,Ct,$t=ht,At=$t.prefixCls,Bt=At===void 0?"rc-menu":At,Dt=$t.rootClassName,Ft=$t.style,kt=$t.className,Mt=$t.tabIndex,Nt=Mt===void 0?0:Mt,jt=$t.items,zt=$t.children,Vt=$t.direction,Kt=$t.id,Xt=$t.mode,Qt=Xt===void 0?"vertical":Xt,Zt=$t.inlineCollapsed,dr=$t.disabled,cr=$t.disabledOverflow,Er=$t.subMenuOpenDelay,pr=Er===void 0?.1:Er,gr=$t.subMenuCloseDelay,vr=gr===void 0?.1:gr,yr=$t.forceSubMenuRender,xr=$t.defaultOpenKeys,rr=$t.openKeys,Lt=$t.activeKey,Ht=$t.defaultActiveFirst,Wt=$t.selectable,Gt=Wt===void 0?!0:Wt,Yt=$t.multiple,er=Yt===void 0?!1:Yt,lr=$t.defaultSelectedKeys,Jt=$t.selectedKeys,Ut=$t.onSelect,ir=$t.onDeselect,Cr=$t.inlineIndent,_r=Cr===void 0?24:Cr,$r=$t.motion,Tr=$t.defaultMotions,Dr=$t.triggerSubMenuAction,Ar=Dr===void 0?"hover":Dr,Fr=$t.builtinPlacements,Rr=$t.itemIcon,wr=$t.expandIcon,Sr=$t.overflowedIndicator,Br=Sr===void 0?"...":Sr,Or=$t.overflowedIndicatorPopupClassName,Pr=$t.getPopupContainer,Nr=$t.onClick,Lr=$t.onOpenChange,Wr=$t.onKeyDown;$t.openAnimation,$t.openTransitionName;var Ur=$t._internalRenderMenuItem,jr=$t._internalRenderSubMenuItem,Kr=$t._internalComponents,qr=_objectWithoutProperties$1($t,_excluded$n),Zr=reactExports.useMemo(function(){return[parseItems(zt,jt,EMPTY_LIST$3,Kr),parseItems(zt,jt,EMPTY_LIST$3,{})]},[zt,jt,Kr]),dn=_slicedToArray(Zr,2),Xr=dn[0],un=dn[1],Yr=reactExports.useState(!1),Gr=_slicedToArray(Yr,2),Jr=Gr[0],wn=Gr[1],kr=reactExports.useRef(),Mr=useUUID(Kt),Ir=Vt==="rtl",Hr=useMergedState(xr,{value:rr,postState:function(Hn){return Hn||EMPTY_LIST$3}}),Vr=_slicedToArray(Hr,2),on=Vr[0],Qr=Vr[1],hn=function(Hn){var Un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Kn(){Qr(Hn),Lr==null||Lr(Hn)}Un?reactDomExports.flushSync(Kn):Kn()},Wn=reactExports.useState(on),_n=_slicedToArray(Wn,2),An=_n[0],Yn=_n[1],Tn=reactExports.useRef(!1),Nn=reactExports.useMemo(function(){return(Qt==="inline"||Qt==="vertical")&&Zt?["vertical",Zt]:[Qt,!1]},[Qt,Zt]),Zn=_slicedToArray(Nn,2),$n=Zn[0],Fn=Zn[1],Gn=$n==="inline",gn=reactExports.useState($n),Rn=_slicedToArray(gn,2),nu=Rn[0],pn=Rn[1],yn=reactExports.useState(Fn),jn=_slicedToArray(yn,2),Cn=jn[0],On=jn[1];reactExports.useEffect(function(){pn($n),On(Fn),Tn.current&&(Gn?Qr(An):hn(EMPTY_LIST$3))},[$n,Fn]);var au=reactExports.useState(0),In=_slicedToArray(au,2),Bn=In[0],Vn=In[1],En=Bn>=Xr.length-1||nu!=="horizontal"||cr;reactExports.useEffect(function(){Gn&&Yn(on)},[on]),reactExports.useEffect(function(){return Tn.current=!0,function(){Tn.current=!1}},[]);var Sn=useKeyRecords(),Xn=Sn.registerPath,uu=Sn.unregisterPath,Eu=Sn.refreshOverflowKeys,pu=Sn.isSubPathKey,Qn=Sn.getKeyPath,Jn=Sn.getKeys,ou=Sn.getSubPathKeys,mu=reactExports.useMemo(function(){return{registerPath:Xn,unregisterPath:uu}},[Xn,uu]),xu=reactExports.useMemo(function(){return{isSubPathKey:pu}},[pu]);reactExports.useEffect(function(){Eu(En?EMPTY_LIST$3:Xr.slice(Bn+1).map(function(zn){return zn.key}))},[Bn,En]);var _u=useMergedState(Lt||Ht&&((yt=Xr[0])===null||yt===void 0?void 0:yt.key),{value:Lt}),$u=_slicedToArray(_u,2),Au=$u[0],Bu=$u[1],Su=useMemoCallback(function(zn){Bu(zn)}),Ru=useMemoCallback(function(){Bu(void 0)});reactExports.useImperativeHandle(Et,function(){return{list:kr.current,focus:function(Hn){var Un,Kn=Jn(),cu=refreshElements(Kn,Mr),Cu=cu.elements,Du=cu.key2element,Fu=cu.element2key,Ou=getFocusableElements(kr.current,Cu),Nu=Au??(Ou[0]?Fu.get(Ou[0]):(Un=Xr.find(function(bu){return!bu.props.disabled}))===null||Un===void 0?void 0:Un.key),Lu=Du.get(Nu);if(Nu&&Lu){var ao;Lu==null||(ao=Lu.focus)===null||ao===void 0||ao.call(Lu,Hn)}}}});var lu=useMergedState(lr||[],{value:Jt,postState:function(Hn){return Array.isArray(Hn)?Hn:Hn==null?EMPTY_LIST$3:[Hn]}}),du=_slicedToArray(lu,2),fu=du[0],Tu=du[1],Zu=function(Hn){if(Gt){var Un=Hn.key,Kn=fu.includes(Un),cu;er?Kn?cu=fu.filter(function(Du){return Du!==Un}):cu=[].concat(_toConsumableArray(fu),[Un]):cu=[Un],Tu(cu);var Cu=_objectSpread2(_objectSpread2({},Hn),{},{selectedKeys:cu});Kn?ir==null||ir(Cu):Ut==null||Ut(Cu)}!er&&on.length&&nu!=="inline"&&hn(EMPTY_LIST$3)},rn=useMemoCallback(function(zn){Nr==null||Nr(warnItemProp(zn)),Zu(zn)}),xn=useMemoCallback(function(zn,Hn){var Un=on.filter(function(cu){return cu!==zn});if(Hn)Un.push(zn);else if(nu!=="inline"){var Kn=ou(zn);Un=Un.filter(function(cu){return!Kn.has(cu)})}isEqual$3(on,Un,!0)||hn(Un,!0)}),cn=function(Hn,Un){var Kn=Un??!on.includes(Hn);xn(Hn,Kn)},Dn=useAccessibility(nu,Au,Ir,Mr,kr,Jn,Qn,Bu,cn,Wr);reactExports.useEffect(function(){wn(!0)},[]);var Mn=reactExports.useMemo(function(){return{_internalRenderMenuItem:Ur,_internalRenderSubMenuItem:jr}},[Ur,jr]),vn=nu!=="horizontal"||cr?Xr:Xr.map(function(zn,Hn){return reactExports.createElement(InheritableContextProvider,{key:zn.key,overflowDisabled:Hn>Bn},zn)}),Ln=reactExports.createElement(ForwardOverflow,_extends$5({id:Kt,ref:kr,prefixCls:"".concat(Bt,"-overflow"),component:"ul",itemComponent:MenuItem$2,className:cls(Bt,"".concat(Bt,"-root"),"".concat(Bt,"-").concat(nu),kt,(Ct={},_defineProperty$1(Ct,"".concat(Bt,"-inline-collapsed"),Cn),_defineProperty$1(Ct,"".concat(Bt,"-rtl"),Ir),Ct),Dt),dir:Vt,style:Ft,role:"menu",tabIndex:Nt,data:vn,renderRawItem:function(Hn){return Hn},renderRawRest:function(Hn){var Un=Hn.length,Kn=Un?Xr.slice(-Un):null;return reactExports.createElement(SubMenu$1,{eventKey:OVERFLOW_KEY,title:Br,disabled:En,internalPopupClose:Un===0,popupClassName:Or},Kn)},maxCount:nu!=="horizontal"||cr?ForwardOverflow.INVALIDATE:ForwardOverflow.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Hn){Vn(Hn)},onKeyDown:Dn},qr));return reactExports.createElement(PrivateContext.Provider,{value:Mn},reactExports.createElement(IdContext.Provider,{value:Mr},reactExports.createElement(InheritableContextProvider,{prefixCls:Bt,rootClassName:Dt,mode:nu,openKeys:on,rtl:Ir,disabled:dr,motion:Jr?$r:null,defaultMotions:Jr?Tr:null,activeKey:Au,onActive:Su,onInactive:Ru,selectedKeys:fu,inlineIndent:_r,subMenuOpenDelay:pr,subMenuCloseDelay:vr,forceSubMenuRender:yr,builtinPlacements:Fr,triggerSubMenuAction:Ar,getPopupContainer:Pr,itemIcon:Rr,expandIcon:wr,onItemClick:rn,onOpenChange:xn},reactExports.createElement(PathUserContext.Provider,{value:xu},Ln),reactExports.createElement("div",{style:{display:"none"},"aria-hidden":!0},reactExports.createElement(PathRegisterContext.Provider,{value:mu},un)))))}),ExportMenu=Menu$1;ExportMenu.Item=MenuItem$2;ExportMenu.SubMenu=SubMenu$1;ExportMenu.ItemGroup=MenuItemGroup;ExportMenu.Divider=Divider$1;var BarsOutlined$1={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},BarsOutlined=function ht(Et,yt){return reactExports.createElement(Icon$1,_extends$5({},Et,{ref:yt,icon:BarsOutlined$1}))},RefIcon$i=reactExports.forwardRef(BarsOutlined),LeftOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},LeftOutlined=function ht(Et,yt){return reactExports.createElement(Icon$1,_extends$5({},Et,{ref:yt,icon:LeftOutlined$1}))},RefIcon$h=reactExports.forwardRef(LeftOutlined);const isNumeric=ht=>!isNaN(parseFloat(ht))&&isFinite(ht),LayoutContext=reactExports.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var __rest$w=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};const dimensionMaxMap={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},SiderContext=reactExports.createContext({}),generateId=(()=>{let ht=0;return function(){let Et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ht+=1,`${Et}${ht}`}})(),Sider=reactExports.forwardRef((ht,Et)=>{const{prefixCls:yt,className:Ct,trigger:$t,children:At,defaultCollapsed:Bt=!1,theme:Dt="dark",style:Ft={},collapsible:kt=!1,reverseArrow:Mt=!1,width:Nt=200,collapsedWidth:jt=80,zeroWidthTriggerStyle:zt,breakpoint:Vt,onCollapse:Kt,onBreakpoint:Xt}=ht,Qt=__rest$w(ht,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Zt}=reactExports.useContext(LayoutContext),[dr,cr]=reactExports.useState("collapsed"in ht?ht.collapsed:Bt),[Er,pr]=reactExports.useState(!1);reactExports.useEffect(()=>{"collapsed"in ht&&cr(ht.collapsed)},[ht.collapsed]);const gr=(Ht,Wt)=>{"collapsed"in ht||cr(Ht),Kt==null||Kt(Ht,Wt)},vr=reactExports.useRef();vr.current=Ht=>{pr(Ht.matches),Xt==null||Xt(Ht.matches),dr!==Ht.matches&&gr(Ht.matches,"responsive")},reactExports.useEffect(()=>{function Ht(Gt){return vr.current(Gt)}let Wt;if(typeof window<"u"){const{matchMedia:Gt}=window;if(Gt&&Vt&&Vt in dimensionMaxMap){Wt=Gt(`screen and (max-width: ${dimensionMaxMap[Vt]})`);try{Wt.addEventListener("change",Ht)}catch{Wt.addListener(Ht)}Ht(Wt)}}return()=>{try{Wt==null||Wt.removeEventListener("change",Ht)}catch{Wt==null||Wt.removeListener(Ht)}}},[Vt]),reactExports.useEffect(()=>{const Ht=generateId("ant-sider-");return Zt.addSider(Ht),()=>Zt.removeSider(Ht)},[]);const yr=()=>{gr(!dr,"clickTrigger")},{getPrefixCls:xr}=reactExports.useContext(ConfigContext$1),rr=()=>{const Ht=xr("layout-sider",yt),Wt=omit$1(Qt,["collapsed"]),Gt=dr?jt:Nt,Yt=isNumeric(Gt)?`${Gt}px`:String(Gt),er=parseFloat(String(jt||0))===0?reactExports.createElement("span",{onClick:yr,className:cls(`${Ht}-zero-width-trigger`,`${Ht}-zero-width-trigger-${Mt?"right":"left"}`),style:zt},$t||reactExports.createElement(RefIcon$i,null)):null,Ut={expanded:Mt?reactExports.createElement(RefIcon$j,null):reactExports.createElement(RefIcon$h,null),collapsed:Mt?reactExports.createElement(RefIcon$h,null):reactExports.createElement(RefIcon$j,null)}[dr?"collapsed":"expanded"],ir=$t!==null?er||reactExports.createElement("div",{className:`${Ht}-trigger`,onClick:yr,style:{width:Yt}},$t||Ut):null,Cr=Object.assign(Object.assign({},Ft),{flex:`0 0 ${Yt}`,maxWidth:Yt,minWidth:Yt,width:Yt}),_r=cls(Ht,`${Ht}-${Dt}`,{[`${Ht}-collapsed`]:!!dr,[`${Ht}-has-trigger`]:kt&&$t!==null&&!er,[`${Ht}-below`]:!!Er,[`${Ht}-zero-width`]:parseFloat(Yt)===0},Ct);return reactExports.createElement("aside",Object.assign({className:_r},Wt,{style:Cr,ref:Et}),reactExports.createElement("div",{className:`${Ht}-children`},At),kt||Er&&er?ir:null)},Lt=reactExports.useMemo(()=>({siderCollapsed:dr}),[dr]);return reactExports.createElement(SiderContext.Provider,{value:Lt},rr())});var EllipsisOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},EllipsisOutlined=function ht(Et,yt){return reactExports.createElement(Icon$1,_extends$5({},Et,{ref:yt,icon:EllipsisOutlined$1}))},RefIcon$g=reactExports.forwardRef(EllipsisOutlined);const MenuContext=reactExports.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var __rest$v=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};const MenuDivider=ht=>{const{prefixCls:Et,className:yt,dashed:Ct}=ht,$t=__rest$v(ht,["prefixCls","className","dashed"]),{getPrefixCls:At}=reactExports.useContext(ConfigContext$1),Bt=At("menu",Et),Dt=cls({[`${Bt}-item-divider-dashed`]:!!Ct},yt);return reactExports.createElement(Divider$1,Object.assign({className:Dt},$t))},MenuItem=ht=>{var Et;const{className:yt,children:Ct,icon:$t,title:At,danger:Bt}=ht,{prefixCls:Dt,firstLevel:Ft,direction:kt,disableMenuItemTitleTooltip:Mt,inlineCollapsed:Nt}=reactExports.useContext(MenuContext),jt=Zt=>{const dr=reactExports.createElement("span",{className:`${Dt}-title-content`},Ct);return(!$t||reactExports.isValidElement(Ct)&&Ct.type==="span")&&Ct&&Zt&&Ft&&typeof Ct=="string"?reactExports.createElement("div",{className:`${Dt}-inline-collapsed-noicon`},Ct.charAt(0)):dr},{siderCollapsed:zt}=reactExports.useContext(SiderContext);let Vt=At;typeof At>"u"?Vt=Ft?Ct:"":At===!1&&(Vt="");const Kt={title:Vt};!zt&&!Nt&&(Kt.title=null,Kt.open=!1);const Xt=toArray$5(Ct).length;let Qt=reactExports.createElement(MenuItem$2,Object.assign({},omit$1(ht,["title","icon","danger"]),{className:cls({[`${Dt}-item-danger`]:Bt,[`${Dt}-item-only-child`]:($t?Xt+1:Xt)===1},yt),title:typeof At=="string"?At:void 0}),cloneElement($t,{className:cls(reactExports.isValidElement($t)?(Et=$t.props)===null||Et===void 0?void 0:Et.className:"",`${Dt}-item-icon`)}),jt(Nt));return Mt||(Qt=reactExports.createElement(Tooltip,Object.assign({},Kt,{placement:kt==="rtl"?"left":"right",overlayClassName:`${Dt}-inline-collapsed-tooltip`}),Qt)),Qt};var __rest$u=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};const OverrideContext=reactExports.createContext(null),OverrideProvider=reactExports.forwardRef((ht,Et)=>{const{children:yt}=ht,Ct=__rest$u(ht,["children"]),$t=reactExports.useContext(OverrideContext),At=reactExports.useMemo(()=>Object.assign(Object.assign({},$t),Ct),[$t,Ct.prefixCls,Ct.mode,Ct.selectable,Ct.rootClassName]),Bt=supportNodeRef(yt),Dt=useComposeRef(Et,Bt?yt.ref:null);return reactExports.createElement(OverrideContext.Provider,{value:At},reactExports.createElement(ContextIsolator,{space:!0},Bt?reactExports.cloneElement(yt,{ref:Dt}):yt))}),getHorizontalStyle=ht=>{const{componentCls:Et,motionDurationSlow:yt,horizontalLineHeight:Ct,colorSplit:$t,lineWidth:At,lineType:Bt,itemPaddingInline:Dt}=ht;return{[`${Et}-horizontal`]:{lineHeight:Ct,border:0,borderBottom:`${unit(At)} ${Bt} ${$t}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Et}-item, ${Et}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Dt},[`> ${Et}-item:hover,
        > ${Et}-item-active,
        > ${Et}-submenu ${Et}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Et}-item, ${Et}-submenu-title`]:{transition:[`border-color ${yt}`,`background ${yt}`].join(",")},[`${Et}-submenu-arrow`]:{display:"none"}}}},getRTLStyle=ht=>{let{componentCls:Et,menuArrowOffset:yt,calc:Ct}=ht;return{[`${Et}-rtl`]:{direction:"rtl"},[`${Et}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Et}-rtl${Et}-vertical,
    ${Et}-submenu-rtl ${Et}-vertical`]:{[`${Et}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${unit(Ct(yt).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${unit(yt)})`}}}}},accessibilityFocus=ht=>Object.assign({},genFocusOutline(ht)),getThemeStyle=(ht,Et)=>{const{componentCls:yt,itemColor:Ct,itemSelectedColor:$t,groupTitleColor:At,itemBg:Bt,subMenuItemBg:Dt,itemSelectedBg:Ft,activeBarHeight:kt,activeBarWidth:Mt,activeBarBorderWidth:Nt,motionDurationSlow:jt,motionEaseInOut:zt,motionEaseOut:Vt,itemPaddingInline:Kt,motionDurationMid:Xt,itemHoverColor:Qt,lineType:Zt,colorSplit:dr,itemDisabledColor:cr,dangerItemColor:Er,dangerItemHoverColor:pr,dangerItemSelectedColor:gr,dangerItemActiveBg:vr,dangerItemSelectedBg:yr,popupBg:xr,itemHoverBg:rr,itemActiveBg:Lt,menuSubMenuBg:Ht,horizontalItemSelectedColor:Wt,horizontalItemSelectedBg:Gt,horizontalItemBorderRadius:Yt,horizontalItemHoverBg:er}=ht;return{[`${yt}-${Et}, ${yt}-${Et} > ${yt}`]:{color:Ct,background:Bt,[`&${yt}-root:focus-visible`]:Object.assign({},accessibilityFocus(ht)),[`${yt}-item-group-title`]:{color:At},[`${yt}-submenu-selected`]:{[`> ${yt}-submenu-title`]:{color:$t}},[`${yt}-item, ${yt}-submenu-title`]:{color:Ct,[`&:not(${yt}-item-disabled):focus-visible`]:Object.assign({},accessibilityFocus(ht))},[`${yt}-item-disabled, ${yt}-submenu-disabled`]:{color:`${cr} !important`},[`${yt}-item:not(${yt}-item-selected):not(${yt}-submenu-selected)`]:{[`&:hover, > ${yt}-submenu-title:hover`]:{color:Qt}},[`&:not(${yt}-horizontal)`]:{[`${yt}-item:not(${yt}-item-selected)`]:{"&:hover":{backgroundColor:rr},"&:active":{backgroundColor:Lt}},[`${yt}-submenu-title`]:{"&:hover":{backgroundColor:rr},"&:active":{backgroundColor:Lt}}},[`${yt}-item-danger`]:{color:Er,[`&${yt}-item:hover`]:{[`&:not(${yt}-item-selected):not(${yt}-submenu-selected)`]:{color:pr}},[`&${yt}-item:active`]:{background:vr}},[`${yt}-item a`]:{"&, &:hover":{color:"inherit"}},[`${yt}-item-selected`]:{color:$t,[`&${yt}-item-danger`]:{color:gr},"a, a:hover":{color:"inherit"}},[`& ${yt}-item-selected`]:{backgroundColor:Ft,[`&${yt}-item-danger`]:{backgroundColor:yr}},[`&${yt}-submenu > ${yt}`]:{backgroundColor:Ht},[`&${yt}-popup > ${yt}`]:{backgroundColor:xr},[`&${yt}-submenu-popup > ${yt}`]:{backgroundColor:xr},[`&${yt}-horizontal`]:Object.assign(Object.assign({},Et==="dark"?{borderBottom:0}:{}),{[`> ${yt}-item, > ${yt}-submenu`]:{top:Nt,marginTop:ht.calc(Nt).mul(-1).equal(),marginBottom:0,borderRadius:Yt,"&::after":{position:"absolute",insetInline:Kt,bottom:0,borderBottom:`${unit(kt)} solid transparent`,transition:`border-color ${jt} ${zt}`,content:'""'},"&:hover, &-active, &-open":{background:er,"&::after":{borderBottomWidth:kt,borderBottomColor:Wt}},"&-selected":{color:Wt,backgroundColor:Gt,"&:hover":{backgroundColor:Gt},"&::after":{borderBottomWidth:kt,borderBottomColor:Wt}}}}),[`&${yt}-root`]:{[`&${yt}-inline, &${yt}-vertical`]:{borderInlineEnd:`${unit(Nt)} ${Zt} ${dr}`}},[`&${yt}-inline`]:{[`${yt}-sub${yt}-inline`]:{background:Dt},[`${yt}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${unit(Mt)} solid ${$t}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Xt} ${Vt}`,`opacity ${Xt} ${Vt}`].join(","),content:'""'},[`&${yt}-item-danger`]:{"&::after":{borderInlineEndColor:gr}}},[`${yt}-selected, ${yt}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Xt} ${zt}`,`opacity ${Xt} ${zt}`].join(",")}}}}}},getVerticalInlineStyle=ht=>{const{componentCls:Et,itemHeight:yt,itemMarginInline:Ct,padding:$t,menuArrowSize:At,marginXS:Bt,itemMarginBlock:Dt,itemWidth:Ft}=ht,kt=ht.calc(At).add($t).add(Bt).equal();return{[`${Et}-item`]:{position:"relative",overflow:"hidden"},[`${Et}-item, ${Et}-submenu-title`]:{height:yt,lineHeight:unit(yt),paddingInline:$t,overflow:"hidden",textOverflow:"ellipsis",marginInline:Ct,marginBlock:Dt,width:Ft},[`> ${Et}-item,
            > ${Et}-submenu > ${Et}-submenu-title`]:{height:yt,lineHeight:unit(yt)},[`${Et}-item-group-list ${Et}-submenu-title,
            ${Et}-submenu-title`]:{paddingInlineEnd:kt}}},getVerticalStyle=ht=>{const{componentCls:Et,iconCls:yt,itemHeight:Ct,colorTextLightSolid:$t,dropdownWidth:At,controlHeightLG:Bt,motionDurationMid:Dt,motionEaseOut:Ft,paddingXL:kt,itemMarginInline:Mt,fontSizeLG:Nt,motionDurationSlow:jt,paddingXS:zt,boxShadowSecondary:Vt,collapsedWidth:Kt,collapsedIconSize:Xt}=ht,Qt={height:Ct,lineHeight:unit(Ct),listStylePosition:"inside",listStyleType:"disc"};return[{[Et]:{"&-inline, &-vertical":Object.assign({[`&${Et}-root`]:{boxShadow:"none"}},getVerticalInlineStyle(ht))},[`${Et}-submenu-popup`]:{[`${Et}-vertical`]:Object.assign(Object.assign({},getVerticalInlineStyle(ht)),{boxShadow:Vt})}},{[`${Et}-submenu-popup ${Et}-vertical${Et}-sub`]:{minWidth:At,maxHeight:`calc(100vh - ${unit(ht.calc(Bt).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Et}-inline`]:{width:"100%",[`&${Et}-root`]:{[`${Et}-item, ${Et}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${jt}`,`background ${jt}`,`padding ${Dt} ${Ft}`,`padding-inline calc(50% - ${unit(ht.calc(Nt).div(2).equal())} - ${unit(Mt)})`].join(","),[`> ${Et}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Et}-sub${Et}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Et}-submenu > ${Et}-submenu-title`]:Qt,[`& ${Et}-item-group-title`]:{paddingInlineStart:kt}},[`${Et}-item`]:Qt}},{[`${Et}-inline-collapsed`]:{width:Kt,[`&${Et}-root`]:{[`${Et}-item, ${Et}-submenu ${Et}-submenu-title`]:{[`> ${Et}-inline-collapsed-noicon`]:{fontSize:Nt,textAlign:"center"}}},[`> ${Et}-item,
          > ${Et}-item-group > ${Et}-item-group-list > ${Et}-item,
          > ${Et}-item-group > ${Et}-item-group-list > ${Et}-submenu > ${Et}-submenu-title,
          > ${Et}-submenu > ${Et}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${unit(ht.calc(Nt).div(2).equal())} - ${unit(Mt)})`,textOverflow:"clip",[`
            ${Et}-submenu-arrow,
            ${Et}-submenu-expand-icon
          `]:{opacity:0},[`${Et}-item-icon, ${yt}`]:{margin:0,fontSize:Xt,lineHeight:unit(Ct),"+ span":{display:"inline-block",opacity:0}}},[`${Et}-item-icon, ${yt}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Et}-item-icon, ${yt}`]:{display:"none"},"a, a:hover":{color:$t}},[`${Et}-item-group-title`]:Object.assign(Object.assign({},textEllipsis),{paddingInline:zt})}}]},genMenuItemStyle=ht=>{const{componentCls:Et,motionDurationSlow:yt,motionDurationMid:Ct,motionEaseInOut:$t,motionEaseOut:At,iconCls:Bt,iconSize:Dt,iconMarginInlineEnd:Ft}=ht;return{[`${Et}-item, ${Et}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${yt}`,`background ${yt}`,`padding ${yt} ${$t}`].join(","),[`${Et}-item-icon, ${Bt}`]:{minWidth:Dt,fontSize:Dt,transition:[`font-size ${Ct} ${At}`,`margin ${yt} ${$t}`,`color ${yt}`].join(","),"+ span":{marginInlineStart:Ft,opacity:1,transition:[`opacity ${yt} ${$t}`,`margin ${yt}`,`color ${yt}`].join(",")}},[`${Et}-item-icon`]:Object.assign({},resetIcon()),[`&${Et}-item-only-child`]:{[`> ${Bt}, > ${Et}-item-icon`]:{marginInlineEnd:0}}},[`${Et}-item-disabled, ${Et}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Et}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},genSubMenuArrowStyle=ht=>{const{componentCls:Et,motionDurationSlow:yt,motionEaseInOut:Ct,borderRadius:$t,menuArrowSize:At,menuArrowOffset:Bt}=ht;return{[`${Et}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ht.margin,width:At,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${yt} ${Ct}, opacity ${yt}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ht.calc(At).mul(.6).equal(),height:ht.calc(At).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:$t,transition:[`background ${yt} ${Ct}`,`transform ${yt} ${Ct}`,`top ${yt} ${Ct}`,`color ${yt} ${Ct}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${unit(ht.calc(Bt).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${unit(Bt)})`}}}}},getBaseStyle=ht=>{const{antCls:Et,componentCls:yt,fontSize:Ct,motionDurationSlow:$t,motionDurationMid:At,motionEaseInOut:Bt,paddingXS:Dt,padding:Ft,colorSplit:kt,lineWidth:Mt,zIndexPopup:Nt,borderRadiusLG:jt,subMenuItemBorderRadius:zt,menuArrowSize:Vt,menuArrowOffset:Kt,lineType:Xt,groupTitleLineHeight:Qt,groupTitleFontSize:Zt}=ht;return[{"":{[`${yt}`]:Object.assign(Object.assign({},clearFix()),{"&-hidden":{display:"none"}})},[`${yt}-submenu-hidden`]:{display:"none"}},{[yt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent(ht)),clearFix()),{marginBottom:0,paddingInlineStart:0,fontSize:Ct,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${$t} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${yt}-item`]:{flex:"none"}},[`${yt}-item, ${yt}-submenu, ${yt}-submenu-title`]:{borderRadius:ht.itemBorderRadius},[`${yt}-item-group-title`]:{padding:`${unit(Dt)} ${unit(Ft)}`,fontSize:Zt,lineHeight:Qt,transition:`all ${$t}`},[`&-horizontal ${yt}-submenu`]:{transition:[`border-color ${$t} ${Bt}`,`background ${$t} ${Bt}`].join(",")},[`${yt}-submenu, ${yt}-submenu-inline`]:{transition:[`border-color ${$t} ${Bt}`,`background ${$t} ${Bt}`,`padding ${At} ${Bt}`].join(",")},[`${yt}-submenu ${yt}-sub`]:{cursor:"initial",transition:[`background ${$t} ${Bt}`,`padding ${$t} ${Bt}`].join(",")},[`${yt}-title-content`]:{transition:`color ${$t}`,[`> ${Et}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${yt}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${yt}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:kt,borderStyle:Xt,borderWidth:0,borderTopWidth:Mt,marginBlock:Mt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),genMenuItemStyle(ht)),{[`${yt}-item-group`]:{[`${yt}-item-group-list`]:{margin:0,padding:0,[`${yt}-item, ${yt}-submenu-title`]:{paddingInline:`${unit(ht.calc(Ct).mul(2).equal())} ${unit(Ft)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Nt,borderRadius:jt,boxShadow:"none",transformOrigin:"0 0",[`&${yt}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${yt}`]:Object.assign(Object.assign(Object.assign({borderRadius:jt},genMenuItemStyle(ht)),genSubMenuArrowStyle(ht)),{[`${yt}-item, ${yt}-submenu > ${yt}-submenu-title`]:{borderRadius:zt},[`${yt}-submenu-title::after`]:{transition:`transform ${$t} ${Bt}`}})},"\n          &-placement-leftTop,\n          &-placement-bottomRight,\n          ":{transformOrigin:"100% 0"},"\n          &-placement-leftBottom,\n          &-placement-topRight,\n          ":{transformOrigin:"100% 100%"},"\n          &-placement-rightBottom,\n          &-placement-topLeft,\n          ":{transformOrigin:"0 100%"},"\n          &-placement-bottomLeft,\n          &-placement-rightTop,\n          ":{transformOrigin:"0 0"},"\n          &-placement-leftTop,\n          &-placement-leftBottom\n          ":{paddingInlineEnd:ht.paddingXS},"\n          &-placement-rightTop,\n          &-placement-rightBottom\n          ":{paddingInlineStart:ht.paddingXS},"\n          &-placement-topRight,\n          &-placement-topLeft\n          ":{paddingBottom:ht.paddingXS},"\n          &-placement-bottomRight,\n          &-placement-bottomLeft\n          ":{paddingTop:ht.paddingXS}}}),genSubMenuArrowStyle(ht)),{[`&-inline-collapsed ${yt}-submenu-arrow,
        &-inline ${yt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${unit(Kt)})`},"&::after":{transform:`rotate(45deg) translateX(${unit(ht.calc(Kt).mul(-1).equal())})`}},[`${yt}-submenu-open${yt}-submenu-inline > ${yt}-submenu-title > ${yt}-submenu-arrow`]:{transform:`translateY(${unit(ht.calc(Vt).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${unit(ht.calc(Kt).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${unit(Kt)})`}}})},{[`${Et}-layout-header`]:{[yt]:{lineHeight:"inherit"}}}]},prepareComponentToken$d=ht=>{var Et,yt,Ct;const{colorPrimary:$t,colorError:At,colorTextDisabled:Bt,colorErrorBg:Dt,colorText:Ft,colorTextDescription:kt,colorBgContainer:Mt,colorFillAlter:Nt,colorFillContent:jt,lineWidth:zt,lineWidthBold:Vt,controlItemBgActive:Kt,colorBgTextHover:Xt,controlHeightLG:Qt,lineHeight:Zt,colorBgElevated:dr,marginXXS:cr,padding:Er,fontSize:pr,controlHeightSM:gr,fontSizeLG:vr,colorTextLightSolid:yr,colorErrorHover:xr}=ht,rr=(Et=ht.activeBarWidth)!==null&&Et!==void 0?Et:0,Lt=(yt=ht.activeBarBorderWidth)!==null&&yt!==void 0?yt:zt,Ht=(Ct=ht.itemMarginInline)!==null&&Ct!==void 0?Ct:ht.marginXXS,Wt=new TinyColor(yr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ht.zIndexPopupBase+50,radiusItem:ht.borderRadiusLG,itemBorderRadius:ht.borderRadiusLG,radiusSubMenuItem:ht.borderRadiusSM,subMenuItemBorderRadius:ht.borderRadiusSM,colorItemText:Ft,itemColor:Ft,colorItemTextHover:Ft,itemHoverColor:Ft,colorItemTextHoverHorizontal:$t,horizontalItemHoverColor:$t,colorGroupTitle:kt,groupTitleColor:kt,colorItemTextSelected:$t,itemSelectedColor:$t,colorItemTextSelectedHorizontal:$t,horizontalItemSelectedColor:$t,colorItemBg:Mt,itemBg:Mt,colorItemBgHover:Xt,itemHoverBg:Xt,colorItemBgActive:jt,itemActiveBg:Kt,colorSubItemBg:Nt,subMenuItemBg:Nt,colorItemBgSelected:Kt,itemSelectedBg:Kt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:rr,colorActiveBarHeight:Vt,activeBarHeight:Vt,colorActiveBarBorderSize:zt,activeBarBorderWidth:Lt,colorItemTextDisabled:Bt,itemDisabledColor:Bt,colorDangerItemText:At,dangerItemColor:At,colorDangerItemTextHover:At,dangerItemHoverColor:At,colorDangerItemTextSelected:At,dangerItemSelectedColor:At,colorDangerItemBgActive:Dt,dangerItemActiveBg:Dt,colorDangerItemBgSelected:Dt,dangerItemSelectedBg:Dt,itemMarginInline:Ht,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Qt,groupTitleLineHeight:Zt,collapsedWidth:Qt*2,popupBg:dr,itemMarginBlock:cr,itemPaddingInline:Er,horizontalLineHeight:`${Qt*1.15}px`,iconSize:pr,iconMarginInlineEnd:gr-pr,collapsedIconSize:vr,groupTitleFontSize:pr,darkItemDisabledColor:new TinyColor(yr).setAlpha(.25).toRgbString(),darkItemColor:Wt,darkDangerItemColor:At,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:yr,darkItemSelectedBg:$t,darkDangerItemSelectedBg:At,darkItemHoverBg:"transparent",darkGroupTitleColor:Wt,darkItemHoverColor:yr,darkDangerItemHoverColor:xr,darkDangerItemSelectedColor:yr,darkDangerItemActiveBg:At,itemWidth:rr?`calc(100% + ${Lt}px)`:`calc(100% - ${Ht*2}px)`}},useStyle$g=function(ht){let Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ht,yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return genStyleHooks("Menu",$t=>{const{colorBgElevated:At,controlHeightLG:Bt,fontSize:Dt,darkItemColor:Ft,darkDangerItemColor:kt,darkItemBg:Mt,darkSubMenuItemBg:Nt,darkItemSelectedColor:jt,darkItemSelectedBg:zt,darkDangerItemSelectedBg:Vt,darkItemHoverBg:Kt,darkGroupTitleColor:Xt,darkItemHoverColor:Qt,darkItemDisabledColor:Zt,darkDangerItemHoverColor:dr,darkDangerItemSelectedColor:cr,darkDangerItemActiveBg:Er,popupBg:pr,darkPopupBg:gr}=$t,vr=$t.calc(Dt).div(7).mul(5).equal(),yr=merge$2($t,{menuArrowSize:vr,menuHorizontalHeight:$t.calc(Bt).mul(1.15).equal(),menuArrowOffset:$t.calc(vr).mul(.25).equal(),menuSubMenuBg:At,calc:$t.calc,popupBg:pr}),xr=merge$2(yr,{itemColor:Ft,itemHoverColor:Qt,groupTitleColor:Xt,itemSelectedColor:jt,itemBg:Mt,popupBg:gr,subMenuItemBg:Nt,itemActiveBg:"transparent",itemSelectedBg:zt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Kt,itemDisabledColor:Zt,dangerItemColor:kt,dangerItemHoverColor:dr,dangerItemSelectedColor:cr,dangerItemActiveBg:Er,dangerItemSelectedBg:Vt,menuSubMenuBg:Nt,horizontalItemSelectedColor:jt,horizontalItemSelectedBg:zt});return[getBaseStyle(yr),getHorizontalStyle(yr),getVerticalStyle(yr),getThemeStyle(yr,"light"),getThemeStyle(xr,"dark"),getRTLStyle(yr),genCollapseMotion(yr),initSlideMotion(yr,"slide-up"),initSlideMotion(yr,"slide-down"),initZoomMotion(yr,"zoom-big")]},prepareComponentToken$d,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:yt,unitless:{groupTitleLineHeight:!0}})(ht,Et)},SubMenu=ht=>{var Et;const{popupClassName:yt,icon:Ct,title:$t,theme:At}=ht,Bt=reactExports.useContext(MenuContext),{prefixCls:Dt,inlineCollapsed:Ft,theme:kt}=Bt,Mt=useFullPath();let Nt;if(!Ct)Nt=Ft&&!Mt.length&&$t&&typeof $t=="string"?reactExports.createElement("div",{className:`${Dt}-inline-collapsed-noicon`},$t.charAt(0)):reactExports.createElement("span",{className:`${Dt}-title-content`},$t);else{const Vt=reactExports.isValidElement($t)&&$t.type==="span";Nt=reactExports.createElement(reactExports.Fragment,null,cloneElement(Ct,{className:cls(reactExports.isValidElement(Ct)?(Et=Ct.props)===null||Et===void 0?void 0:Et.className:"",`${Dt}-item-icon`)}),Vt?$t:reactExports.createElement("span",{className:`${Dt}-title-content`},$t))}const jt=reactExports.useMemo(()=>Object.assign(Object.assign({},Bt),{firstLevel:!1}),[Bt]),[zt]=useZIndex("Menu");return reactExports.createElement(MenuContext.Provider,{value:jt},reactExports.createElement(SubMenu$1,Object.assign({},omit$1(ht,["icon"]),{title:Nt,popupClassName:cls(Dt,yt,`${Dt}-${At||kt}`),popupStyle:{zIndex:zt}})))};var __rest$t=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};function isEmptyIcon(ht){return ht===null||ht===!1}const MENU_COMPONENTS={item:MenuItem,submenu:SubMenu,divider:MenuDivider},InternalMenu=reactExports.forwardRef((ht,Et)=>{var yt;const Ct=reactExports.useContext(OverrideContext),$t=Ct||{},{getPrefixCls:At,getPopupContainer:Bt,direction:Dt,menu:Ft}=reactExports.useContext(ConfigContext$1),kt=At(),{prefixCls:Mt,className:Nt,style:jt,theme:zt="light",expandIcon:Vt,_internalDisableMenuItemTitleTooltip:Kt,inlineCollapsed:Xt,siderCollapsed:Qt,rootClassName:Zt,mode:dr,selectable:cr,onClick:Er,overflowedIndicatorPopupClassName:pr}=ht,gr=__rest$t(ht,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),vr=omit$1(gr,["collapsedWidth"]);(yt=$t.validator)===null||yt===void 0||yt.call($t,{mode:dr});const yr=useEvent(function(){var Cr;Er==null||Er.apply(void 0,arguments),(Cr=$t.onClick)===null||Cr===void 0||Cr.call($t)}),xr=$t.mode||dr,rr=cr??$t.selectable,Lt=reactExports.useMemo(()=>Qt!==void 0?Qt:Xt,[Xt,Qt]),Ht={horizontal:{motionName:`${kt}-slide-up`},inline:initCollapseMotion(kt),other:{motionName:`${kt}-zoom-big`}},Wt=At("menu",Mt||$t.prefixCls),Gt=useCSSVarCls(Wt),[Yt,er,lr]=useStyle$g(Wt,Gt,!Ct),Jt=cls(`${Wt}-${zt}`,Ft==null?void 0:Ft.className,Nt),Ut=reactExports.useMemo(()=>{var Cr,_r;if(typeof Vt=="function"||isEmptyIcon(Vt))return Vt||null;if(typeof $t.expandIcon=="function"||isEmptyIcon($t.expandIcon))return $t.expandIcon||null;if(typeof(Ft==null?void 0:Ft.expandIcon)=="function"||isEmptyIcon(Ft==null?void 0:Ft.expandIcon))return(Ft==null?void 0:Ft.expandIcon)||null;const $r=(Cr=Vt??($t==null?void 0:$t.expandIcon))!==null&&Cr!==void 0?Cr:Ft==null?void 0:Ft.expandIcon;return cloneElement($r,{className:cls(`${Wt}-submenu-expand-icon`,reactExports.isValidElement($r)?(_r=$r.props)===null||_r===void 0?void 0:_r.className:void 0)})},[Vt,$t==null?void 0:$t.expandIcon,Ft==null?void 0:Ft.expandIcon,Wt]),ir=reactExports.useMemo(()=>({prefixCls:Wt,inlineCollapsed:Lt||!1,direction:Dt,firstLevel:!0,theme:zt,mode:xr,disableMenuItemTitleTooltip:Kt}),[Wt,Lt,Dt,Kt,zt]);return Yt(reactExports.createElement(OverrideContext.Provider,{value:null},reactExports.createElement(MenuContext.Provider,{value:ir},reactExports.createElement(ExportMenu,Object.assign({getPopupContainer:Bt,overflowedIndicator:reactExports.createElement(RefIcon$g,null),overflowedIndicatorPopupClassName:cls(Wt,`${Wt}-${zt}`,pr),mode:xr,selectable:rr,onClick:yr},vr,{inlineCollapsed:Lt,style:Object.assign(Object.assign({},Ft==null?void 0:Ft.style),jt),className:Jt,prefixCls:Wt,direction:Dt,defaultMotions:Ht,expandIcon:Ut,ref:Et,rootClassName:cls(Zt,er,$t.rootClassName,lr,Gt),_internalComponents:MENU_COMPONENTS})))))}),Menu=reactExports.forwardRef((ht,Et)=>{const yt=reactExports.useRef(null),Ct=reactExports.useContext(SiderContext);return reactExports.useImperativeHandle(Et,()=>({menu:yt.current,focus:$t=>{var At;(At=yt.current)===null||At===void 0||At.focus($t)}})),reactExports.createElement(InternalMenu,Object.assign({ref:yt},ht,Ct))});Menu.Item=MenuItem;Menu.SubMenu=SubMenu;Menu.Divider=MenuDivider;Menu.ItemGroup=MenuItemGroup;const genStatusStyle=ht=>{const{componentCls:Et,menuCls:yt,colorError:Ct,colorTextLightSolid:$t}=ht,At=`${yt}-item`;return{[`${Et}, ${Et}-menu-submenu`]:{[`${yt} ${At}`]:{[`&${At}-danger:not(${At}-disabled)`]:{color:Ct,"&:hover":{color:$t,backgroundColor:Ct}}}}}},genBaseStyle$2=ht=>{const{componentCls:Et,menuCls:yt,zIndexPopup:Ct,dropdownArrowDistance:$t,sizePopupArrow:At,antCls:Bt,iconCls:Dt,motionDurationMid:Ft,paddingBlock:kt,fontSize:Mt,dropdownEdgeChildPadding:Nt,colorTextDisabled:jt,fontSizeIcon:zt,controlPaddingHorizontal:Vt,colorBgElevated:Kt}=ht;return[{[Et]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Ct,display:"block","&::before":{position:"absolute",insetBlock:ht.calc(At).div(2).sub($t).equal(),zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${Bt}-btn`]:{[`& > ${Dt}-down, & > ${Bt}-btn-icon > ${Dt}-down`]:{fontSize:zt}},[`${Et}-wrap`]:{position:"relative",[`${Bt}-btn > ${Dt}-down`]:{fontSize:zt},[`${Dt}-down::before`]:{transition:`transform ${Ft}`}},[`${Et}-wrap-open`]:{[`${Dt}-down::before`]:{transform:"rotate(180deg)"}},"\n        &-hidden,\n        &-menu-hidden,\n        &-menu-submenu-hidden\n      ":{display:"none"},[`&${Bt}-slide-down-enter${Bt}-slide-down-enter-active${Et}-placement-bottomLeft,
          &${Bt}-slide-down-appear${Bt}-slide-down-appear-active${Et}-placement-bottomLeft,
          &${Bt}-slide-down-enter${Bt}-slide-down-enter-active${Et}-placement-bottom,
          &${Bt}-slide-down-appear${Bt}-slide-down-appear-active${Et}-placement-bottom,
          &${Bt}-slide-down-enter${Bt}-slide-down-enter-active${Et}-placement-bottomRight,
          &${Bt}-slide-down-appear${Bt}-slide-down-appear-active${Et}-placement-bottomRight`]:{animationName:slideUpIn},[`&${Bt}-slide-up-enter${Bt}-slide-up-enter-active${Et}-placement-topLeft,
          &${Bt}-slide-up-appear${Bt}-slide-up-appear-active${Et}-placement-topLeft,
          &${Bt}-slide-up-enter${Bt}-slide-up-enter-active${Et}-placement-top,
          &${Bt}-slide-up-appear${Bt}-slide-up-appear-active${Et}-placement-top,
          &${Bt}-slide-up-enter${Bt}-slide-up-enter-active${Et}-placement-topRight,
          &${Bt}-slide-up-appear${Bt}-slide-up-appear-active${Et}-placement-topRight`]:{animationName:slideDownIn},[`&${Bt}-slide-down-leave${Bt}-slide-down-leave-active${Et}-placement-bottomLeft,
          &${Bt}-slide-down-leave${Bt}-slide-down-leave-active${Et}-placement-bottom,
          &${Bt}-slide-down-leave${Bt}-slide-down-leave-active${Et}-placement-bottomRight`]:{animationName:slideUpOut},[`&${Bt}-slide-up-leave${Bt}-slide-up-leave-active${Et}-placement-topLeft,
          &${Bt}-slide-up-leave${Bt}-slide-up-leave-active${Et}-placement-top,
          &${Bt}-slide-up-leave${Bt}-slide-up-leave-active${Et}-placement-topRight`]:{animationName:slideDownOut}}},getArrowStyle(ht,Kt,{arrowPlacement:{top:!0,bottom:!0}}),{[`${Et} ${yt}`]:{position:"relative",margin:0},[`${yt}-submenu-popup`]:{position:"absolute",zIndex:Ct,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Et}, ${Et}-menu-submenu`]:Object.assign(Object.assign({},resetComponent(ht)),{[yt]:Object.assign(Object.assign({padding:Nt,listStyleType:"none",backgroundColor:Kt,backgroundClip:"padding-box",borderRadius:ht.borderRadiusLG,outline:"none",boxShadow:ht.boxShadowSecondary},genFocusStyle(ht)),{"&:empty":{padding:0,boxShadow:"none"},[`${yt}-item-group-title`]:{padding:`${unit(kt)} ${unit(Vt)}`,color:ht.colorTextDescription,transition:`all ${Ft}`},[`${yt}-item`]:{position:"relative",display:"flex",alignItems:"center",whiteSpace:"nowrap"},[`${yt}-item-icon`]:{minWidth:Mt,marginInlineEnd:ht.marginXS,fontSize:ht.fontSizeSM},[`${yt}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${Ft}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${yt}-item, ${yt}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${unit(kt)} ${unit(Vt)}`,color:ht.colorText,fontWeight:"normal",fontSize:Mt,lineHeight:ht.lineHeight,cursor:"pointer",transition:`all ${Ft}`,borderRadius:ht.borderRadiusSM,"&:hover, &-active":{backgroundColor:ht.controlItemBgHover}},genFocusStyle(ht)),{"&-selected":{color:ht.colorPrimary,backgroundColor:ht.controlItemBgActive,"&:hover, &-active":{backgroundColor:ht.controlItemBgActiveHover}},"&-disabled":{color:jt,cursor:"not-allowed","&:hover":{color:jt,backgroundColor:Kt,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${unit(ht.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:ht.colorSplit},[`${Et}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:ht.paddingXS,[`${Et}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:ht.colorTextDescription,fontSize:zt,fontStyle:"normal"}}}),[`${yt}-item-group-list`]:{margin:`0 ${unit(ht.marginXS)}`,padding:0,listStyle:"none"},[`${yt}-submenu-title`]:{paddingInlineEnd:ht.calc(Vt).add(ht.fontSizeSM).equal()},[`${yt}-submenu-vertical`]:{position:"relative"},[`${yt}-submenu${yt}-submenu-disabled ${Et}-menu-submenu-title`]:{[`&, ${Et}-menu-submenu-arrow-icon`]:{color:jt,backgroundColor:Kt,cursor:"not-allowed"}},[`${yt}-submenu-selected ${Et}-menu-submenu-title`]:{color:ht.colorPrimary}})})},[initSlideMotion(ht,"slide-up"),initSlideMotion(ht,"slide-down"),initMoveMotion(ht,"move-up"),initMoveMotion(ht,"move-down"),initZoomMotion(ht,"zoom-big")]]},prepareComponentToken$c=ht=>Object.assign(Object.assign({zIndexPopup:ht.zIndexPopupBase+50,paddingBlock:(ht.controlHeight-ht.fontSize*ht.lineHeight)/2},getArrowOffsetToken({contentRadius:ht.borderRadiusLG,limitVerticalRadius:!0})),getArrowToken(ht)),useStyle$f=genStyleHooks("Dropdown",ht=>{const{marginXXS:Et,sizePopupArrow:yt,paddingXXS:Ct,componentCls:$t}=ht,At=merge$2(ht,{menuCls:`${$t}-menu`,dropdownArrowDistance:ht.calc(yt).div(2).add(Et).equal(),dropdownEdgeChildPadding:Ct});return[genBaseStyle$2(At),genStatusStyle(At)]},prepareComponentToken$c,{resetStyle:!1}),Dropdown$1=ht=>{var Et;const{menu:yt,arrow:Ct,prefixCls:$t,children:At,trigger:Bt,disabled:Dt,dropdownRender:Ft,getPopupContainer:kt,overlayClassName:Mt,rootClassName:Nt,overlayStyle:jt,open:zt,onOpenChange:Vt,visible:Kt,onVisibleChange:Xt,mouseEnterDelay:Qt=.15,mouseLeaveDelay:Zt=.1,autoAdjustOverflow:dr=!0,placement:cr="",overlay:Er,transitionName:pr}=ht,{getPopupContainer:gr,getPrefixCls:vr,direction:yr,dropdown:xr}=reactExports.useContext(ConfigContext$1);devUseWarning();const rr=reactExports.useMemo(()=>{const Or=vr();return pr!==void 0?pr:cr.includes("top")?`${Or}-slide-down`:`${Or}-slide-up`},[vr,cr,pr]),Lt=reactExports.useMemo(()=>cr?cr.includes("Center")?cr.slice(0,cr.indexOf("Center")):cr:yr==="rtl"?"bottomRight":"bottomLeft",[cr,yr]),Ht=vr("dropdown",$t),Wt=useCSSVarCls(Ht),[Gt,Yt,er]=useStyle$f(Ht,Wt),[,lr]=useToken$1(),Jt=reactExports.Children.only(At),Ut=cloneElement(Jt,{className:cls(`${Ht}-trigger`,{[`${Ht}-rtl`]:yr==="rtl"},Jt.props.className),disabled:(Et=Jt.props.disabled)!==null&&Et!==void 0?Et:Dt}),ir=Dt?[]:Bt,Cr=!!(ir!=null&&ir.includes("contextMenu")),[_r,$r]=useMergedState(!1,{value:zt??Kt}),Tr=useEvent(Or=>{Vt==null||Vt(Or,{source:"trigger"}),Xt==null||Xt(Or),$r(Or)}),Dr=cls(Mt,Nt,Yt,er,Wt,xr==null?void 0:xr.className,{[`${Ht}-rtl`]:yr==="rtl"}),Ar=getPlacements({arrowPointAtCenter:typeof Ct=="object"&&Ct.pointAtCenter,autoAdjustOverflow:dr,offset:lr.marginXXS,arrowWidth:Ct?lr.sizePopupArrow:0,borderRadius:lr.borderRadius}),Fr=reactExports.useCallback(()=>{yt!=null&&yt.selectable&&(yt!=null&&yt.multiple)||(Vt==null||Vt(!1,{source:"menu"}),$r(!1))},[yt==null?void 0:yt.selectable,yt==null?void 0:yt.multiple]),Rr=()=>{let Or;return yt!=null&&yt.items?Or=reactExports.createElement(Menu,Object.assign({},yt)):typeof Er=="function"?Or=Er():Or=Er,Ft&&(Or=Ft(Or)),Or=reactExports.Children.only(typeof Or=="string"?reactExports.createElement("span",null,Or):Or),reactExports.createElement(OverrideProvider,{prefixCls:`${Ht}-menu`,rootClassName:cls(er,Wt),expandIcon:reactExports.createElement("span",{className:`${Ht}-menu-submenu-arrow`},reactExports.createElement(RefIcon$j,{className:`${Ht}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Fr,validator:Pr=>{}},Or)},[wr,Sr]=useZIndex("Dropdown",jt==null?void 0:jt.zIndex);let Br=reactExports.createElement(Dropdown$3,Object.assign({alignPoint:Cr},omit$1(ht,["rootClassName"]),{mouseEnterDelay:Qt,mouseLeaveDelay:Zt,visible:_r,builtinPlacements:Ar,arrow:!!Ct,overlayClassName:Dr,prefixCls:Ht,getPopupContainer:kt||gr,transitionName:rr,trigger:ir,overlay:Rr,placement:Lt,onVisibleChange:Tr,overlayStyle:Object.assign(Object.assign(Object.assign({},xr==null?void 0:xr.style),jt),{zIndex:wr})}),Ut);return wr&&(Br=reactExports.createElement(zIndexContext.Provider,{value:Sr},Br)),Gt(Br)};function postPureProps(ht){return Object.assign(Object.assign({},ht),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const PurePanel$3=genPurePanel(Dropdown$1,"dropdown",ht=>ht,postPureProps),WrapPurePanel=ht=>reactExports.createElement(PurePanel$3,Object.assign({},ht),reactExports.createElement("span",null));Dropdown$1._InternalPanelDoNotUseOrYouWillBeFired=WrapPurePanel;const RadioGroupContext=reactExports.createContext(null),RadioGroupContextProvider=RadioGroupContext.Provider,RadioOptionTypeContext=reactExports.createContext(null),RadioOptionTypeContextProvider=RadioOptionTypeContext.Provider;var _excluded$m=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],Checkbox$2=reactExports.forwardRef(function(ht,Et){var yt=ht.prefixCls,Ct=yt===void 0?"rc-checkbox":yt,$t=ht.className,At=ht.style,Bt=ht.checked,Dt=ht.disabled,Ft=ht.defaultChecked,kt=Ft===void 0?!1:Ft,Mt=ht.type,Nt=Mt===void 0?"checkbox":Mt,jt=ht.title,zt=ht.onChange,Vt=_objectWithoutProperties$1(ht,_excluded$m),Kt=reactExports.useRef(null),Xt=reactExports.useRef(null),Qt=useMergedState(kt,{value:Bt}),Zt=_slicedToArray(Qt,2),dr=Zt[0],cr=Zt[1];reactExports.useImperativeHandle(Et,function(){return{focus:function(vr){var yr;(yr=Kt.current)===null||yr===void 0||yr.focus(vr)},blur:function(){var vr;(vr=Kt.current)===null||vr===void 0||vr.blur()},input:Kt.current,nativeElement:Xt.current}});var Er=cls(Ct,$t,_defineProperty$1(_defineProperty$1({},"".concat(Ct,"-checked"),dr),"".concat(Ct,"-disabled"),Dt)),pr=function(vr){Dt||("checked"in ht||cr(vr.target.checked),zt==null||zt({target:_objectSpread2(_objectSpread2({},ht),{},{type:Nt,checked:vr.target.checked}),stopPropagation:function(){vr.stopPropagation()},preventDefault:function(){vr.preventDefault()},nativeEvent:vr.nativeEvent}))};return reactExports.createElement("span",{className:Er,title:jt,style:At,ref:Xt},reactExports.createElement("input",_extends$5({},Vt,{className:"".concat(Ct,"-input"),ref:Kt,onChange:pr,disabled:Dt,checked:!!dr,type:Nt})),reactExports.createElement("span",{className:"".concat(Ct,"-inner")}))});const getGroupRadioStyle=ht=>{const{componentCls:Et,antCls:yt}=ht,Ct=`${Et}-group`;return{[Ct]:Object.assign(Object.assign({},resetComponent(ht)),{display:"inline-block",fontSize:0,[`&${Ct}-rtl`]:{direction:"rtl"},[`${yt}-badge ${yt}-badge-count`]:{zIndex:1},[`> ${yt}-badge:not(:first-child) > ${yt}-button-wrapper`]:{borderInlineStart:"none"}})}},getRadioBasicStyle=ht=>{const{componentCls:Et,wrapperMarginInlineEnd:yt,colorPrimary:Ct,radioSize:$t,motionDurationSlow:At,motionDurationMid:Bt,motionEaseInOutCirc:Dt,colorBgContainer:Ft,colorBorder:kt,lineWidth:Mt,colorBgContainerDisabled:Nt,colorTextDisabled:jt,paddingXS:zt,dotColorDisabled:Vt,lineType:Kt,radioColor:Xt,radioBgColor:Qt,calc:Zt}=ht,dr=`${Et}-inner`,Er=Zt($t).sub(Zt(4).mul(2)),pr=Zt(1).mul($t).equal({unit:!0});return{[`${Et}-wrapper`]:Object.assign(Object.assign({},resetComponent(ht)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:yt,cursor:"pointer",[`&${Et}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:ht.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${Et}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${unit(Mt)} ${Kt} ${Ct}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[Et]:Object.assign(Object.assign({},resetComponent(ht)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${Et}-wrapper:hover &,
        &:hover ${dr}`]:{borderColor:Ct},[`${Et}-input:focus-visible + ${dr}`]:Object.assign({},genFocusOutline(ht)),[`${Et}:hover::after, ${Et}-wrapper:hover &::after`]:{visibility:"visible"},[`${Et}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:pr,height:pr,marginBlockStart:Zt(1).mul($t).div(-2).equal({unit:!0}),marginInlineStart:Zt(1).mul($t).div(-2).equal({unit:!0}),backgroundColor:Xt,borderBlockStart:0,borderInlineStart:0,borderRadius:pr,transform:"scale(0)",opacity:0,transition:`all ${At} ${Dt}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:pr,height:pr,backgroundColor:Ft,borderColor:kt,borderStyle:"solid",borderWidth:Mt,borderRadius:"50%",transition:`all ${Bt}`},[`${Et}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${Et}-checked`]:{[dr]:{borderColor:Ct,backgroundColor:Qt,"&::after":{transform:`scale(${ht.calc(ht.dotSize).div($t).equal()})`,opacity:1,transition:`all ${At} ${Dt}`}}},[`${Et}-disabled`]:{cursor:"not-allowed",[dr]:{backgroundColor:Nt,borderColor:kt,cursor:"not-allowed","&::after":{backgroundColor:Vt}},[`${Et}-input`]:{cursor:"not-allowed"},[`${Et}-disabled + span`]:{color:jt,cursor:"not-allowed"},[`&${Et}-checked`]:{[dr]:{"&::after":{transform:`scale(${Zt(Er).div($t).equal()})`}}}},[`span${Et} + *`]:{paddingInlineStart:zt,paddingInlineEnd:zt}})}},getRadioButtonStyle=ht=>{const{buttonColor:Et,controlHeight:yt,componentCls:Ct,lineWidth:$t,lineType:At,colorBorder:Bt,motionDurationSlow:Dt,motionDurationMid:Ft,buttonPaddingInline:kt,fontSize:Mt,buttonBg:Nt,fontSizeLG:jt,controlHeightLG:zt,controlHeightSM:Vt,paddingXS:Kt,borderRadius:Xt,borderRadiusSM:Qt,borderRadiusLG:Zt,buttonCheckedBg:dr,buttonSolidCheckedColor:cr,colorTextDisabled:Er,colorBgContainerDisabled:pr,buttonCheckedBgDisabled:gr,buttonCheckedColorDisabled:vr,colorPrimary:yr,colorPrimaryHover:xr,colorPrimaryActive:rr,buttonSolidCheckedBg:Lt,buttonSolidCheckedHoverBg:Ht,buttonSolidCheckedActiveBg:Wt,calc:Gt}=ht;return{[`${Ct}-button-wrapper`]:{position:"relative",display:"inline-block",height:yt,margin:0,paddingInline:kt,paddingBlock:0,color:Et,fontSize:Mt,lineHeight:unit(Gt(yt).sub(Gt($t).mul(2)).equal()),background:Nt,border:`${unit($t)} ${At} ${Bt}`,borderBlockStartWidth:Gt($t).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:$t,cursor:"pointer",transition:[`color ${Ft}`,`background ${Ft}`,`box-shadow ${Ft}`].join(","),a:{color:Et},[`> ${Ct}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:Gt($t).mul(-1).equal(),insetInlineStart:Gt($t).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:$t,paddingInline:0,backgroundColor:Bt,transition:`background-color ${Dt}`,content:'""'}},"&:first-child":{borderInlineStart:`${unit($t)} ${At} ${Bt}`,borderStartStartRadius:Xt,borderEndStartRadius:Xt},"&:last-child":{borderStartEndRadius:Xt,borderEndEndRadius:Xt},"&:first-child:last-child":{borderRadius:Xt},[`${Ct}-group-large &`]:{height:zt,fontSize:jt,lineHeight:unit(Gt(zt).sub(Gt($t).mul(2)).equal()),"&:first-child":{borderStartStartRadius:Zt,borderEndStartRadius:Zt},"&:last-child":{borderStartEndRadius:Zt,borderEndEndRadius:Zt}},[`${Ct}-group-small &`]:{height:Vt,paddingInline:Gt(Kt).sub($t).equal(),paddingBlock:0,lineHeight:unit(Gt(Vt).sub(Gt($t).mul(2)).equal()),"&:first-child":{borderStartStartRadius:Qt,borderEndStartRadius:Qt},"&:last-child":{borderStartEndRadius:Qt,borderEndEndRadius:Qt}},"&:hover":{position:"relative",color:yr},"&:has(:focus-visible)":Object.assign({},genFocusOutline(ht)),[`${Ct}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${Ct}-button-wrapper-disabled)`]:{zIndex:1,color:yr,background:dr,borderColor:yr,"&::before":{backgroundColor:yr},"&:first-child":{borderColor:yr},"&:hover":{color:xr,borderColor:xr,"&::before":{backgroundColor:xr}},"&:active":{color:rr,borderColor:rr,"&::before":{backgroundColor:rr}}},[`${Ct}-group-solid &-checked:not(${Ct}-button-wrapper-disabled)`]:{color:cr,background:Lt,borderColor:Lt,"&:hover":{color:cr,background:Ht,borderColor:Ht},"&:active":{color:cr,background:Wt,borderColor:Wt}},"&-disabled":{color:Er,backgroundColor:pr,borderColor:Bt,cursor:"not-allowed","&:first-child, &:hover":{color:Er,backgroundColor:pr,borderColor:Bt}},[`&-disabled${Ct}-button-wrapper-checked`]:{color:vr,backgroundColor:gr,borderColor:Bt,boxShadow:"none"}}}},prepareComponentToken$b=ht=>{const{wireframe:Et,padding:yt,marginXS:Ct,lineWidth:$t,fontSizeLG:At,colorText:Bt,colorBgContainer:Dt,colorTextDisabled:Ft,controlItemBgActiveDisabled:kt,colorTextLightSolid:Mt,colorPrimary:Nt,colorPrimaryHover:jt,colorPrimaryActive:zt,colorWhite:Vt}=ht,Kt=4,Xt=At,Qt=Et?Xt-Kt*2:Xt-(Kt+$t)*2;return{radioSize:Xt,dotSize:Qt,dotColorDisabled:Ft,buttonSolidCheckedColor:Mt,buttonSolidCheckedBg:Nt,buttonSolidCheckedHoverBg:jt,buttonSolidCheckedActiveBg:zt,buttonBg:Dt,buttonCheckedBg:Dt,buttonColor:Bt,buttonCheckedBgDisabled:kt,buttonCheckedColorDisabled:Ft,buttonPaddingInline:yt-$t,wrapperMarginInlineEnd:Ct,radioColor:Et?Nt:Vt,radioBgColor:Et?Dt:Nt}},useStyle$e=genStyleHooks("Radio",ht=>{const{controlOutline:Et,controlOutlineWidth:yt}=ht,Ct=`0 0 0 ${unit(yt)} ${Et}`,At=merge$2(ht,{radioFocusShadow:Ct,radioButtonFocusShadow:Ct});return[getGroupRadioStyle(At),getRadioBasicStyle(At),getRadioButtonStyle(At)]},prepareComponentToken$b,{unitless:{radioSize:!0,dotSize:!0}});var __rest$s=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};const InternalRadio=(ht,Et)=>{var yt,Ct;const $t=reactExports.useContext(RadioGroupContext),At=reactExports.useContext(RadioOptionTypeContext),{getPrefixCls:Bt,direction:Dt,radio:Ft}=reactExports.useContext(ConfigContext$1),kt=reactExports.useRef(null),Mt=composeRef(Et,kt),{isFormItemInput:Nt}=reactExports.useContext(FormItemInputContext),jt=Wt=>{var Gt,Yt;(Gt=ht.onChange)===null||Gt===void 0||Gt.call(ht,Wt),(Yt=$t==null?void 0:$t.onChange)===null||Yt===void 0||Yt.call($t,Wt)},{prefixCls:zt,className:Vt,rootClassName:Kt,children:Xt,style:Qt,title:Zt}=ht,dr=__rest$s(ht,["prefixCls","className","rootClassName","children","style","title"]),cr=Bt("radio",zt),Er=(($t==null?void 0:$t.optionType)||At)==="button",pr=Er?`${cr}-button`:cr,gr=useCSSVarCls(cr),[vr,yr,xr]=useStyle$e(cr,gr),rr=Object.assign({},dr),Lt=reactExports.useContext(DisabledContext);$t&&(rr.name=$t.name,rr.onChange=jt,rr.checked=ht.value===$t.value,rr.disabled=(yt=rr.disabled)!==null&&yt!==void 0?yt:$t.disabled),rr.disabled=(Ct=rr.disabled)!==null&&Ct!==void 0?Ct:Lt;const Ht=cls(`${pr}-wrapper`,{[`${pr}-wrapper-checked`]:rr.checked,[`${pr}-wrapper-disabled`]:rr.disabled,[`${pr}-wrapper-rtl`]:Dt==="rtl",[`${pr}-wrapper-in-form-item`]:Nt},Ft==null?void 0:Ft.className,Vt,Kt,yr,xr,gr);return vr(reactExports.createElement(Wave,{component:"Radio",disabled:rr.disabled},reactExports.createElement("label",{className:Ht,style:Object.assign(Object.assign({},Ft==null?void 0:Ft.style),Qt),onMouseEnter:ht.onMouseEnter,onMouseLeave:ht.onMouseLeave,title:Zt},reactExports.createElement(Checkbox$2,Object.assign({},rr,{className:cls(rr.className,{[TARGET_CLS]:!Er}),type:"radio",prefixCls:pr,ref:Mt})),Xt!==void 0?reactExports.createElement("span",null,Xt):null)))},Radio$1=reactExports.forwardRef(InternalRadio),RadioGroup=reactExports.forwardRef((ht,Et)=>{const{getPrefixCls:yt,direction:Ct}=reactExports.useContext(ConfigContext$1),[$t,At]=useMergedState(ht.defaultValue,{value:ht.value}),Bt=Wt=>{const Gt=$t,Yt=Wt.target.value;"value"in ht||At(Yt);const{onChange:er}=ht;er&&Yt!==Gt&&er(Wt)},{prefixCls:Dt,className:Ft,rootClassName:kt,options:Mt,buttonStyle:Nt="outline",disabled:jt,children:zt,size:Vt,style:Kt,id:Xt,onMouseEnter:Qt,onMouseLeave:Zt,onFocus:dr,onBlur:cr}=ht,Er=yt("radio",Dt),pr=`${Er}-group`,gr=useCSSVarCls(Er),[vr,yr,xr]=useStyle$e(Er,gr);let rr=zt;Mt&&Mt.length>0&&(rr=Mt.map(Wt=>typeof Wt=="string"||typeof Wt=="number"?reactExports.createElement(Radio$1,{key:Wt.toString(),prefixCls:Er,disabled:jt,value:Wt,checked:$t===Wt},Wt):reactExports.createElement(Radio$1,{key:`radio-group-value-options-${Wt.value}`,prefixCls:Er,disabled:Wt.disabled||jt,value:Wt.value,checked:$t===Wt.value,title:Wt.title,style:Wt.style,id:Wt.id,required:Wt.required},Wt.label)));const Lt=useSize(Vt),Ht=cls(pr,`${pr}-${Nt}`,{[`${pr}-${Lt}`]:Lt,[`${pr}-rtl`]:Ct==="rtl"},Ft,kt,yr,xr,gr);return vr(reactExports.createElement("div",Object.assign({},pickAttrs(ht,{aria:!0,data:!0}),{className:Ht,style:Kt,onMouseEnter:Qt,onMouseLeave:Zt,onFocus:dr,onBlur:cr,id:Xt,ref:Et}),reactExports.createElement(RadioGroupContextProvider,{value:{onChange:Bt,value:$t,disabled:ht.disabled,name:ht.name,optionType:ht.optionType}},rr)))}),Group$1=reactExports.memo(RadioGroup);var __rest$r=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};const RadioButton=(ht,Et)=>{const{getPrefixCls:yt}=reactExports.useContext(ConfigContext$1),{prefixCls:Ct}=ht,$t=__rest$r(ht,["prefixCls"]),At=yt("radio",Ct);return reactExports.createElement(RadioOptionTypeContextProvider,{value:"button"},reactExports.createElement(Radio$1,Object.assign({prefixCls:At},$t,{type:"radio",ref:Et})))},Button=reactExports.forwardRef(RadioButton),Radio=Radio$1;Radio.Button=Button;Radio.Group=Group$1;Radio.__ANT_RADIO=!0;function initInputToken(ht){return merge$2(ht,{inputAffixPadding:ht.paddingXXS})}const initComponentToken$1=ht=>{const{controlHeight:Et,fontSize:yt,lineHeight:Ct,lineWidth:$t,controlHeightSM:At,controlHeightLG:Bt,fontSizeLG:Dt,lineHeightLG:Ft,paddingSM:kt,controlPaddingHorizontalSM:Mt,controlPaddingHorizontal:Nt,colorFillAlter:jt,colorPrimaryHover:zt,colorPrimary:Vt,controlOutlineWidth:Kt,controlOutline:Xt,colorErrorOutline:Qt,colorWarningOutline:Zt,colorBgContainer:dr}=ht;return{paddingBlock:Math.max(Math.round((Et-yt*Ct)/2*10)/10-$t,0),paddingBlockSM:Math.max(Math.round((At-yt*Ct)/2*10)/10-$t,0),paddingBlockLG:Math.ceil((Bt-Dt*Ft)/2*10)/10-$t,paddingInline:kt-$t,paddingInlineSM:Mt-$t,paddingInlineLG:Nt-$t,addonBg:jt,activeBorderColor:Vt,hoverBorderColor:zt,activeShadow:`0 0 0 ${Kt}px ${Xt}`,errorActiveShadow:`0 0 0 ${Kt}px ${Qt}`,warningActiveShadow:`0 0 0 ${Kt}px ${Zt}`,hoverBg:dr,activeBg:dr,inputFontSize:yt,inputFontSizeLG:Dt,inputFontSizeSM:yt}},genHoverStyle=ht=>({borderColor:ht.hoverBorderColor,backgroundColor:ht.hoverBg}),genDisabledStyle=ht=>({color:ht.colorTextDisabled,backgroundColor:ht.colorBgContainerDisabled,borderColor:ht.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},genHoverStyle(merge$2(ht,{hoverBorderColor:ht.colorBorder,hoverBg:ht.colorBgContainerDisabled})))}),genBaseOutlinedStyle=(ht,Et)=>({background:ht.colorBgContainer,borderWidth:ht.lineWidth,borderStyle:ht.lineType,borderColor:Et.borderColor,"&:hover":{borderColor:Et.hoverBorderColor,backgroundColor:ht.hoverBg},"&:focus, &:focus-within":{borderColor:Et.activeBorderColor,boxShadow:Et.activeShadow,outline:0,backgroundColor:ht.activeBg}}),genOutlinedStatusStyle=(ht,Et)=>({[`&${ht.componentCls}-status-${Et.status}:not(${ht.componentCls}-disabled)`]:Object.assign(Object.assign({},genBaseOutlinedStyle(ht,Et)),{[`${ht.componentCls}-prefix, ${ht.componentCls}-suffix`]:{color:Et.affixColor}}),[`&${ht.componentCls}-status-${Et.status}${ht.componentCls}-disabled`]:{borderColor:Et.borderColor}}),genOutlinedStyle=(ht,Et)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},genBaseOutlinedStyle(ht,{borderColor:ht.colorBorder,hoverBorderColor:ht.hoverBorderColor,activeBorderColor:ht.activeBorderColor,activeShadow:ht.activeShadow})),{[`&${ht.componentCls}-disabled, &[disabled]`]:Object.assign({},genDisabledStyle(ht))}),genOutlinedStatusStyle(ht,{status:"error",borderColor:ht.colorError,hoverBorderColor:ht.colorErrorBorderHover,activeBorderColor:ht.colorError,activeShadow:ht.errorActiveShadow,affixColor:ht.colorError})),genOutlinedStatusStyle(ht,{status:"warning",borderColor:ht.colorWarning,hoverBorderColor:ht.colorWarningBorderHover,activeBorderColor:ht.colorWarning,activeShadow:ht.warningActiveShadow,affixColor:ht.colorWarning})),Et)}),genOutlinedGroupStatusStyle=(ht,Et)=>({[`&${ht.componentCls}-group-wrapper-status-${Et.status}`]:{[`${ht.componentCls}-group-addon`]:{borderColor:Et.addonBorderColor,color:Et.addonColor}}}),genOutlinedGroupStyle=ht=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${ht.componentCls}-group`]:{"&-addon":{background:ht.addonBg,border:`${unit(ht.lineWidth)} ${ht.lineType} ${ht.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},genOutlinedGroupStatusStyle(ht,{status:"error",addonBorderColor:ht.colorError,addonColor:ht.colorErrorText})),genOutlinedGroupStatusStyle(ht,{status:"warning",addonBorderColor:ht.colorWarning,addonColor:ht.colorWarningText})),{[`&${ht.componentCls}-group-wrapper-disabled`]:{[`${ht.componentCls}-group-addon`]:Object.assign({},genDisabledStyle(ht))}})}),genBorderlessStyle$1=(ht,Et)=>{const{componentCls:yt}=ht;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${yt}-disabled, &[disabled]`]:{color:ht.colorTextDisabled},[`&${yt}-status-error`]:{"&, & input, & textarea":{color:ht.colorError}},[`&${yt}-status-warning`]:{"&, & input, & textarea":{color:ht.colorWarning}}},Et)}},genBaseFilledStyle=(ht,Et)=>({background:Et.bg,borderWidth:ht.lineWidth,borderStyle:ht.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:Et==null?void 0:Et.inputColor},"&:hover":{background:Et.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:Et.activeBorderColor,backgroundColor:ht.activeBg}}),genFilledStatusStyle=(ht,Et)=>({[`&${ht.componentCls}-status-${Et.status}:not(${ht.componentCls}-disabled)`]:Object.assign(Object.assign({},genBaseFilledStyle(ht,Et)),{[`${ht.componentCls}-prefix, ${ht.componentCls}-suffix`]:{color:Et.affixColor}})}),genFilledStyle=(ht,Et)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},genBaseFilledStyle(ht,{bg:ht.colorFillTertiary,hoverBg:ht.colorFillSecondary,activeBorderColor:ht.activeBorderColor})),{[`&${ht.componentCls}-disabled, &[disabled]`]:Object.assign({},genDisabledStyle(ht))}),genFilledStatusStyle(ht,{status:"error",bg:ht.colorErrorBg,hoverBg:ht.colorErrorBgHover,activeBorderColor:ht.colorError,inputColor:ht.colorErrorText,affixColor:ht.colorError})),genFilledStatusStyle(ht,{status:"warning",bg:ht.colorWarningBg,hoverBg:ht.colorWarningBgHover,activeBorderColor:ht.colorWarning,inputColor:ht.colorWarningText,affixColor:ht.colorWarning})),Et)}),genFilledGroupStatusStyle=(ht,Et)=>({[`&${ht.componentCls}-group-wrapper-status-${Et.status}`]:{[`${ht.componentCls}-group-addon`]:{background:Et.addonBg,color:Et.addonColor}}}),genFilledGroupStyle=ht=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${ht.componentCls}-group`]:{"&-addon":{background:ht.colorFillTertiary},[`${ht.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${unit(ht.lineWidth)} ${ht.lineType} ${ht.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${unit(ht.lineWidth)} ${ht.lineType} ${ht.colorSplit}`}}}},genFilledGroupStatusStyle(ht,{status:"error",addonBg:ht.colorErrorBg,addonColor:ht.colorErrorText})),genFilledGroupStatusStyle(ht,{status:"warning",addonBg:ht.colorWarningBg,addonColor:ht.colorWarningText})),{[`&${ht.componentCls}-group-wrapper-disabled`]:{[`${ht.componentCls}-group`]:{"&-addon":{background:ht.colorFillTertiary,color:ht.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${unit(ht.lineWidth)} ${ht.lineType} ${ht.colorBorder}`,borderTop:`${unit(ht.lineWidth)} ${ht.lineType} ${ht.colorBorder}`,borderBottom:`${unit(ht.lineWidth)} ${ht.lineType} ${ht.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${unit(ht.lineWidth)} ${ht.lineType} ${ht.colorBorder}`,borderTop:`${unit(ht.lineWidth)} ${ht.lineType} ${ht.colorBorder}`,borderBottom:`${unit(ht.lineWidth)} ${ht.lineType} ${ht.colorBorder}`}}}})}),genPlaceholderStyle=ht=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:ht,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),genInputLargeStyle=ht=>{const{paddingBlockLG:Et,lineHeightLG:yt,borderRadiusLG:Ct,paddingInlineLG:$t}=ht;return{padding:`${unit(Et)} ${unit($t)}`,fontSize:ht.inputFontSizeLG,lineHeight:yt,borderRadius:Ct}},genInputSmallStyle=ht=>({padding:`${unit(ht.paddingBlockSM)} ${unit(ht.paddingInlineSM)}`,fontSize:ht.inputFontSizeSM,borderRadius:ht.borderRadiusSM}),genBasicInputStyle=ht=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${unit(ht.paddingBlock)} ${unit(ht.paddingInline)}`,color:ht.colorText,fontSize:ht.inputFontSize,lineHeight:ht.lineHeight,borderRadius:ht.borderRadius,transition:`all ${ht.motionDurationMid}`},genPlaceholderStyle(ht.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:ht.controlHeight,lineHeight:ht.lineHeight,verticalAlign:"bottom",transition:`all ${ht.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},genInputLargeStyle(ht)),"&-sm":Object.assign({},genInputSmallStyle(ht)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),genInputGroupStyle=ht=>{const{componentCls:Et,antCls:yt}=ht;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:ht.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${Et}, &-lg > ${Et}-group-addon`]:Object.assign({},genInputLargeStyle(ht)),[`&-sm ${Et}, &-sm > ${Et}-group-addon`]:Object.assign({},genInputSmallStyle(ht)),[`&-lg ${yt}-select-single ${yt}-select-selector`]:{height:ht.controlHeightLG},[`&-sm ${yt}-select-single ${yt}-select-selector`]:{height:ht.controlHeightSM},[`> ${Et}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${Et}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${unit(ht.paddingInline)}`,color:ht.colorText,fontWeight:"normal",fontSize:ht.inputFontSize,textAlign:"center",borderRadius:ht.borderRadius,transition:`all ${ht.motionDurationSlow}`,lineHeight:1,[`${yt}-select`]:{margin:`${unit(ht.calc(ht.paddingBlock).add(1).mul(-1).equal())} ${unit(ht.calc(ht.paddingInline).mul(-1).equal())}`,[`&${yt}-select-single:not(${yt}-select-customize-input):not(${yt}-pagination-size-changer)`]:{[`${yt}-select-selector`]:{backgroundColor:"inherit",border:`${unit(ht.lineWidth)} ${ht.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${yt}-select-selector`]:{color:ht.colorPrimary}}},[`${yt}-cascader-picker`]:{margin:`-9px ${unit(ht.calc(ht.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${yt}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[`${Et}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${Et}-search-with-button &`]:{zIndex:0}}},[`> ${Et}:first-child, ${Et}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${yt}-select ${yt}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Et}-affix-wrapper`]:{[`&:not(:first-child) ${Et}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${Et}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Et}:last-child, ${Et}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${yt}-select ${yt}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${Et}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${Et}-search &`]:{borderStartStartRadius:ht.borderRadius,borderEndStartRadius:ht.borderRadius}},[`&:not(:first-child), ${Et}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${Et}-group-compact`]:Object.assign(Object.assign({display:"block"},clearFix()),{[`${Et}-group-addon, ${Et}-group-wrap, > ${Et}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:ht.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
        & > ${Et}-affix-wrapper,
        & > ${Et}-number-affix-wrapper,
        & > ${yt}-picker-range
      `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:ht.calc(ht.lineWidth).mul(-1).equal(),borderInlineEndWidth:ht.lineWidth},[`${Et}`]:{float:"none"},[`& > ${yt}-select > ${yt}-select-selector,
      & > ${yt}-select-auto-complete ${Et},
      & > ${yt}-cascader-picker ${Et},
      & > ${Et}-group-wrapper ${Et}`]:{borderInlineEndWidth:ht.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${yt}-select-focused`]:{zIndex:1},[`& > ${yt}-select > ${yt}-select-arrow`]:{zIndex:1},[`& > *:first-child,
      & > ${yt}-select:first-child > ${yt}-select-selector,
      & > ${yt}-select-auto-complete:first-child ${Et},
      & > ${yt}-cascader-picker:first-child ${Et}`]:{borderStartStartRadius:ht.borderRadius,borderEndStartRadius:ht.borderRadius},[`& > *:last-child,
      & > ${yt}-select:last-child > ${yt}-select-selector,
      & > ${yt}-cascader-picker:last-child ${Et},
      & > ${yt}-cascader-picker-focused:last-child ${Et}`]:{borderInlineEndWidth:ht.lineWidth,borderStartEndRadius:ht.borderRadius,borderEndEndRadius:ht.borderRadius},[`& > ${yt}-select-auto-complete ${Et}`]:{verticalAlign:"top"},[`${Et}-group-wrapper + ${Et}-group-wrapper`]:{marginInlineStart:ht.calc(ht.lineWidth).mul(-1).equal(),[`${Et}-affix-wrapper`]:{borderRadius:0}},[`${Et}-group-wrapper:not(:last-child)`]:{[`&${Et}-search > ${Et}-group`]:{[`& > ${Et}-group-addon > ${Et}-search-button`]:{borderRadius:0},[`& > ${Et}`]:{borderStartStartRadius:ht.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:ht.borderRadius}}}})}},genInputStyle=ht=>{const{componentCls:Et,controlHeightSM:yt,lineWidth:Ct,calc:$t}=ht,Bt=$t(yt).sub($t(Ct).mul(2)).sub(16).div(2).equal();return{[Et]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent(ht)),genBasicInputStyle(ht)),genOutlinedStyle(ht)),genFilledStyle(ht)),genBorderlessStyle$1(ht)),{'&[type="color"]':{height:ht.controlHeight,[`&${Et}-lg`]:{height:ht.controlHeightLG},[`&${Et}-sm`]:{height:yt,paddingTop:Bt,paddingBottom:Bt}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},genAllowClearStyle=ht=>{const{componentCls:Et}=ht;return{[`${Et}-clear-icon`]:{margin:0,color:ht.colorTextQuaternary,fontSize:ht.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${ht.motionDurationSlow}`,"&:hover":{color:ht.colorTextTertiary},"&:active":{color:ht.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${unit(ht.inputAffixPadding)}`}}}},genAffixStyle=ht=>{const{componentCls:Et,inputAffixPadding:yt,colorTextDescription:Ct,motionDurationSlow:$t,colorIcon:At,colorIconHover:Bt,iconCls:Dt}=ht;return{[`${Et}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},genBasicInputStyle(ht)),{display:"inline-flex",[`&:not(${Et}-disabled):hover`]:{zIndex:1,[`${Et}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${Et}`]:{padding:0},[`> input${Et}, > textarea${Et}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Et}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:ht.paddingXS}},"&-show-count-suffix":{color:Ct},"&-show-count-has-suffix":{marginInlineEnd:ht.paddingXXS},"&-prefix":{marginInlineEnd:yt},"&-suffix":{marginInlineStart:yt}}}),genAllowClearStyle(ht)),{[`${Dt}${Et}-password-icon`]:{color:At,cursor:"pointer",transition:`all ${$t}`,"&:hover":{color:Bt}}})}},genGroupStyle=ht=>{const{componentCls:Et,borderRadiusLG:yt,borderRadiusSM:Ct}=ht;return{[`${Et}-group`]:Object.assign(Object.assign(Object.assign({},resetComponent(ht)),genInputGroupStyle(ht)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${Et}-group-addon`]:{borderRadius:yt,fontSize:ht.inputFontSizeLG}},"&-sm":{[`${Et}-group-addon`]:{borderRadius:Ct}}},genOutlinedGroupStyle(ht)),genFilledGroupStyle(ht)),{[`&:not(${Et}-compact-first-item):not(${Et}-compact-last-item)${Et}-compact-item`]:{[`${Et}, ${Et}-group-addon`]:{borderRadius:0}},[`&:not(${Et}-compact-last-item)${Et}-compact-first-item`]:{[`${Et}, ${Et}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Et}-compact-first-item)${Et}-compact-last-item`]:{[`${Et}, ${Et}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${Et}-compact-last-item)${Et}-compact-item`]:{[`${Et}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},genSearchInputStyle=ht=>{const{componentCls:Et,antCls:yt}=ht,Ct=`${Et}-search`;return{[Ct]:{[`${Et}`]:{"&:hover, &:focus":{borderColor:ht.colorPrimaryHover,[`+ ${Et}-group-addon ${Ct}-button:not(${yt}-btn-primary)`]:{borderInlineStartColor:ht.colorPrimaryHover}}},[`${Et}-affix-wrapper`]:{borderRadius:0},[`${Et}-lg`]:{lineHeight:ht.calc(ht.lineHeightLG).sub(2e-4).equal()},[`> ${Et}-group`]:{[`> ${Et}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${Ct}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:ht.borderRadius,borderEndEndRadius:ht.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${Ct}-button:not(${yt}-btn-primary)`]:{color:ht.colorTextDescription,"&:hover":{color:ht.colorPrimaryHover},"&:active":{color:ht.colorPrimaryActive},[`&${yt}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${Ct}-button`]:{height:ht.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${Ct}-button`]:{height:ht.controlHeightLG},[`&-small ${Ct}-button`]:{height:ht.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${Et}-compact-item`]:{[`&:not(${Et}-compact-last-item)`]:{[`${Et}-group-addon`]:{[`${Et}-search-button`]:{marginInlineEnd:ht.calc(ht.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${Et}-compact-first-item)`]:{[`${Et},${Et}-affix-wrapper`]:{borderRadius:0}},[`> ${Et}-group-addon ${Et}-search-button,
        > ${Et},
        ${Et}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${Et}-affix-wrapper-focused`]:{zIndex:2}}}}},genTextAreaStyle=ht=>{const{componentCls:Et,paddingLG:yt}=ht,Ct=`${Et}-textarea`;return{[Ct]:{position:"relative","&-show-count":{[`> ${Et}`]:{height:"100%"},[`${Et}-data-count`]:{position:"absolute",bottom:ht.calc(ht.fontSize).mul(ht.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:ht.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
        &-allow-clear > ${Et},
        &-affix-wrapper${Ct}-has-feedback ${Et}
      `]:{paddingInlineEnd:yt},[`&-affix-wrapper${Et}-affix-wrapper`]:{padding:0,[`> textarea${Et}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${Et}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${Et}-clear-icon`]:{position:"absolute",insetInlineEnd:ht.paddingInline,insetBlockStart:ht.paddingXS},[`${Ct}-suffix`]:{position:"absolute",top:0,insetInlineEnd:ht.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${Et}-affix-wrapper-sm`]:{[`${Et}-suffix`]:{[`${Et}-clear-icon`]:{insetInlineEnd:ht.paddingInlineSM}}}}}},genRangeStyle=ht=>{const{componentCls:Et}=ht;return{[`${Et}-out-of-range`]:{[`&, & input, & textarea, ${Et}-show-count-suffix, ${Et}-data-count`]:{color:ht.colorError}}}},useStyle$d=genStyleHooks("Input",ht=>{const Et=merge$2(ht,initInputToken(ht));return[genInputStyle(Et),genTextAreaStyle(Et),genAffixStyle(Et),genGroupStyle(Et),genSearchInputStyle(Et),genRangeStyle(Et),genCompactItemStyle(Et)]},initComponentToken$1,{resetFont:!1});var PlusOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},PlusOutlined=function ht(Et,yt){return reactExports.createElement(Icon$1,_extends$5({},Et,{ref:yt,icon:PlusOutlined$1}))},RefIcon$f=reactExports.forwardRef(PlusOutlined);const TabContext=reactExports.createContext(null);var useIndicator=function ht(Et){var yt=Et.activeTabOffset,Ct=Et.horizontal,$t=Et.rtl,At=Et.indicator,Bt=At===void 0?{}:At,Dt=Bt.size,Ft=Bt.align,kt=Ft===void 0?"center":Ft,Mt=reactExports.useState(),Nt=_slicedToArray(Mt,2),jt=Nt[0],zt=Nt[1],Vt=reactExports.useRef(),Kt=React$8.useCallback(function(Qt){return typeof Dt=="function"?Dt(Qt):typeof Dt=="number"?Dt:Qt},[Dt]);function Xt(){wrapperRaf.cancel(Vt.current)}return reactExports.useEffect(function(){var Qt={};if(yt)if(Ct){Qt.width=Kt(yt.width);var Zt=$t?"right":"left";kt==="start"&&(Qt[Zt]=yt[Zt]),kt==="center"&&(Qt[Zt]=yt[Zt]+yt.width/2,Qt.transform=$t?"translateX(50%)":"translateX(-50%)"),kt==="end"&&(Qt[Zt]=yt[Zt]+yt.width,Qt.transform="translateX(-100%)")}else Qt.height=Kt(yt.height),kt==="start"&&(Qt.top=yt.top),kt==="center"&&(Qt.top=yt.top+yt.height/2,Qt.transform="translateY(-50%)"),kt==="end"&&(Qt.top=yt.top+yt.height,Qt.transform="translateY(-100%)");return Xt(),Vt.current=wrapperRaf(function(){zt(Qt)}),Xt},[yt,Ct,$t,kt,Kt]),{style:jt}},DEFAULT_SIZE$1={width:0,height:0,left:0,top:0};function useOffsets(ht,Et,yt){return reactExports.useMemo(function(){for(var Ct,$t=new Map,At=Et.get((Ct=ht[0])===null||Ct===void 0?void 0:Ct.key)||DEFAULT_SIZE$1,Bt=At.left+At.width,Dt=0;Dt<ht.length;Dt+=1){var Ft=ht[Dt].key,kt=Et.get(Ft);if(!kt){var Mt;kt=Et.get((Mt=ht[Dt-1])===null||Mt===void 0?void 0:Mt.key)||DEFAULT_SIZE$1}var Nt=$t.get(Ft)||_objectSpread2({},kt);Nt.right=Bt-Nt.left-Nt.width,$t.set(Ft,Nt)}return $t},[ht.map(function(Ct){return Ct.key}).join("_"),Et,yt])}function useSyncState$1(ht,Et){var yt=reactExports.useRef(ht),Ct=reactExports.useState({}),$t=_slicedToArray(Ct,2),At=$t[1];function Bt(Dt){var Ft=typeof Dt=="function"?Dt(yt.current):Dt;Ft!==yt.current&&Et(Ft,yt.current),yt.current=Ft,At({})}return[yt.current,Bt]}var MIN_SWIPE_DISTANCE=.1,STOP_SWIPE_DISTANCE=.01,REFRESH_INTERVAL=20,SPEED_OFF_MULTIPLE=Math.pow(.995,REFRESH_INTERVAL);function useTouchMove(ht,Et){var yt=reactExports.useState(),Ct=_slicedToArray(yt,2),$t=Ct[0],At=Ct[1],Bt=reactExports.useState(0),Dt=_slicedToArray(Bt,2),Ft=Dt[0],kt=Dt[1],Mt=reactExports.useState(0),Nt=_slicedToArray(Mt,2),jt=Nt[0],zt=Nt[1],Vt=reactExports.useState(),Kt=_slicedToArray(Vt,2),Xt=Kt[0],Qt=Kt[1],Zt=reactExports.useRef();function dr(yr){var xr=yr.touches[0],rr=xr.screenX,Lt=xr.screenY;At({x:rr,y:Lt}),window.clearInterval(Zt.current)}function cr(yr){if($t){yr.preventDefault();var xr=yr.touches[0],rr=xr.screenX,Lt=xr.screenY;At({x:rr,y:Lt});var Ht=rr-$t.x,Wt=Lt-$t.y;Et(Ht,Wt);var Gt=Date.now();kt(Gt),zt(Gt-Ft),Qt({x:Ht,y:Wt})}}function Er(){if($t&&(At(null),Qt(null),Xt)){var yr=Xt.x/jt,xr=Xt.y/jt,rr=Math.abs(yr),Lt=Math.abs(xr);if(Math.max(rr,Lt)<MIN_SWIPE_DISTANCE)return;var Ht=yr,Wt=xr;Zt.current=window.setInterval(function(){if(Math.abs(Ht)<STOP_SWIPE_DISTANCE&&Math.abs(Wt)<STOP_SWIPE_DISTANCE){window.clearInterval(Zt.current);return}Ht*=SPEED_OFF_MULTIPLE,Wt*=SPEED_OFF_MULTIPLE,Et(Ht*REFRESH_INTERVAL,Wt*REFRESH_INTERVAL)},REFRESH_INTERVAL)}}var pr=reactExports.useRef();function gr(yr){var xr=yr.deltaX,rr=yr.deltaY,Lt=0,Ht=Math.abs(xr),Wt=Math.abs(rr);Ht===Wt?Lt=pr.current==="x"?xr:rr:Ht>Wt?(Lt=xr,pr.current="x"):(Lt=rr,pr.current="y"),Et(-Lt,-Lt)&&yr.preventDefault()}var vr=reactExports.useRef(null);vr.current={onTouchStart:dr,onTouchMove:cr,onTouchEnd:Er,onWheel:gr},reactExports.useEffect(function(){function yr(Ht){vr.current.onTouchStart(Ht)}function xr(Ht){vr.current.onTouchMove(Ht)}function rr(Ht){vr.current.onTouchEnd(Ht)}function Lt(Ht){vr.current.onWheel(Ht)}return document.addEventListener("touchmove",xr,{passive:!1}),document.addEventListener("touchend",rr,{passive:!0}),ht.current.addEventListener("touchstart",yr,{passive:!0}),ht.current.addEventListener("wheel",Lt,{passive:!1}),function(){document.removeEventListener("touchmove",xr),document.removeEventListener("touchend",rr)}},[])}function useUpdate(ht){var Et=reactExports.useState(0),yt=_slicedToArray(Et,2),Ct=yt[0],$t=yt[1],At=reactExports.useRef(0),Bt=reactExports.useRef();return Bt.current=ht,useLayoutUpdateEffect(function(){var Dt;(Dt=Bt.current)===null||Dt===void 0||Dt.call(Bt)},[Ct]),function(){At.current===Ct&&(At.current+=1,$t(At.current))}}function useUpdateState(ht){var Et=reactExports.useRef([]),yt=reactExports.useState({}),Ct=_slicedToArray(yt,2),$t=Ct[1],At=reactExports.useRef(typeof ht=="function"?ht():ht),Bt=useUpdate(function(){var Ft=At.current;Et.current.forEach(function(kt){Ft=kt(Ft)}),Et.current=[],At.current=Ft,$t({})});function Dt(Ft){Et.current.push(Ft),Bt()}return[At.current,Dt]}var DEFAULT_SIZE={width:0,height:0,left:0,top:0,right:0};function useVisibleRange(ht,Et,yt,Ct,$t,At,Bt){var Dt=Bt.tabs,Ft=Bt.tabPosition,kt=Bt.rtl,Mt,Nt,jt;return["top","bottom"].includes(Ft)?(Mt="width",Nt=kt?"right":"left",jt=Math.abs(yt)):(Mt="height",Nt="top",jt=-yt),reactExports.useMemo(function(){if(!Dt.length)return[0,0];for(var zt=Dt.length,Vt=zt,Kt=0;Kt<zt;Kt+=1){var Xt=ht.get(Dt[Kt].key)||DEFAULT_SIZE;if(Xt[Nt]+Xt[Mt]>jt+Et){Vt=Kt-1;break}}for(var Qt=0,Zt=zt-1;Zt>=0;Zt-=1){var dr=ht.get(Dt[Zt].key)||DEFAULT_SIZE;if(dr[Nt]<jt){Qt=Zt+1;break}}return Qt>=Vt?[0,0]:[Qt,Vt]},[ht,Et,Ct,$t,At,jt,Ft,Dt.map(function(zt){return zt.key}).join("_"),kt])}function stringify$6(ht){var Et;return ht instanceof Map?(Et={},ht.forEach(function(yt,Ct){Et[Ct]=yt})):Et=ht,JSON.stringify(Et)}var RC_TABS_DOUBLE_QUOTE="TABS_DQ";function genDataNodeKey(ht){return String(ht).replace(/"/g,RC_TABS_DOUBLE_QUOTE)}function getRemovable(ht,Et,yt,Ct){return!(!yt||Ct||ht===!1||ht===void 0&&(Et===!1||Et===null))}var AddButton=reactExports.forwardRef(function(ht,Et){var yt=ht.prefixCls,Ct=ht.editable,$t=ht.locale,At=ht.style;return!Ct||Ct.showAdd===!1?null:reactExports.createElement("button",{ref:Et,type:"button",className:"".concat(yt,"-nav-add"),style:At,"aria-label":($t==null?void 0:$t.addAriaLabel)||"Add tab",onClick:function(Dt){Ct.onEdit("add",{event:Dt})}},Ct.addIcon||"+")}),ExtraContent=reactExports.forwardRef(function(ht,Et){var yt=ht.position,Ct=ht.prefixCls,$t=ht.extra;if(!$t)return null;var At,Bt={};return _typeof$1($t)==="object"&&!reactExports.isValidElement($t)?Bt=$t:Bt.right=$t,yt==="right"&&(At=Bt.right),yt==="left"&&(At=Bt.left),At?reactExports.createElement("div",{className:"".concat(Ct,"-extra-content"),ref:Et},At):null}),OperationNode=reactExports.forwardRef(function(ht,Et){var yt=ht.prefixCls,Ct=ht.id,$t=ht.tabs,At=ht.locale,Bt=ht.mobile,Dt=ht.more,Ft=Dt===void 0?{}:Dt,kt=ht.style,Mt=ht.className,Nt=ht.editable,jt=ht.tabBarGutter,zt=ht.rtl,Vt=ht.removeAriaLabel,Kt=ht.onTabClick,Xt=ht.getPopupContainer,Qt=ht.popupClassName,Zt=reactExports.useState(!1),dr=_slicedToArray(Zt,2),cr=dr[0],Er=dr[1],pr=reactExports.useState(null),gr=_slicedToArray(pr,2),vr=gr[0],yr=gr[1],xr=Ft.icon,rr=xr===void 0?"More":xr,Lt="".concat(Ct,"-more-popup"),Ht="".concat(yt,"-dropdown"),Wt=vr!==null?"".concat(Lt,"-").concat(vr):null,Gt=At==null?void 0:At.dropdownAriaLabel;function Yt(_r,$r){_r.preventDefault(),_r.stopPropagation(),Nt.onEdit("remove",{key:$r,event:_r})}var er=reactExports.createElement(ExportMenu,{onClick:function($r){var Tr=$r.key,Dr=$r.domEvent;Kt(Tr,Dr),Er(!1)},prefixCls:"".concat(Ht,"-menu"),id:Lt,tabIndex:-1,role:"listbox","aria-activedescendant":Wt,selectedKeys:[vr],"aria-label":Gt!==void 0?Gt:"expanded dropdown"},$t.map(function(_r){var $r=_r.closable,Tr=_r.disabled,Dr=_r.closeIcon,Ar=_r.key,Fr=_r.label,Rr=getRemovable($r,Dr,Nt,Tr);return reactExports.createElement(MenuItem$2,{key:Ar,id:"".concat(Lt,"-").concat(Ar),role:"option","aria-controls":Ct&&"".concat(Ct,"-panel-").concat(Ar),disabled:Tr},reactExports.createElement("span",null,Fr),Rr&&reactExports.createElement("button",{type:"button","aria-label":Vt||"remove",tabIndex:0,className:"".concat(Ht,"-menu-item-remove"),onClick:function(Sr){Sr.stopPropagation(),Yt(Sr,Ar)}},Dr||Nt.removeIcon||"×"))}));function lr(_r){for(var $r=$t.filter(function(Rr){return!Rr.disabled}),Tr=$r.findIndex(function(Rr){return Rr.key===vr})||0,Dr=$r.length,Ar=0;Ar<Dr;Ar+=1){Tr=(Tr+_r+Dr)%Dr;var Fr=$r[Tr];if(!Fr.disabled){yr(Fr.key);return}}}function Jt(_r){var $r=_r.which;if(!cr){[KeyCode.DOWN,KeyCode.SPACE,KeyCode.ENTER].includes($r)&&(Er(!0),_r.preventDefault());return}switch($r){case KeyCode.UP:lr(-1),_r.preventDefault();break;case KeyCode.DOWN:lr(1),_r.preventDefault();break;case KeyCode.ESC:Er(!1);break;case KeyCode.SPACE:case KeyCode.ENTER:vr!==null&&Kt(vr,_r);break}}reactExports.useEffect(function(){var _r=document.getElementById(Wt);_r&&_r.scrollIntoView&&_r.scrollIntoView(!1)},[vr]),reactExports.useEffect(function(){cr||yr(null)},[cr]);var Ut=_defineProperty$1({},zt?"marginRight":"marginLeft",jt);$t.length||(Ut.visibility="hidden",Ut.order=1);var ir=cls(_defineProperty$1({},"".concat(Ht,"-rtl"),zt)),Cr=Bt?null:reactExports.createElement(Dropdown$3,_extends$5({prefixCls:Ht,overlay:er,visible:$t.length?cr:!1,onVisibleChange:Er,overlayClassName:cls(ir,Qt),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:Xt},Ft),reactExports.createElement("button",{type:"button",className:"".concat(yt,"-nav-more"),style:Ut,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":Lt,id:"".concat(Ct,"-more"),"aria-expanded":cr,onKeyDown:Jt},rr));return reactExports.createElement("div",{className:cls("".concat(yt,"-nav-operations"),Mt),style:kt,ref:Et},Cr,reactExports.createElement(AddButton,{prefixCls:yt,locale:At,editable:Nt}))});const OperationNode$1=reactExports.memo(OperationNode,function(ht,Et){return Et.tabMoving});var TabNode=function ht(Et){var yt=Et.prefixCls,Ct=Et.id,$t=Et.active,At=Et.tab,Bt=At.key,Dt=At.label,Ft=At.disabled,kt=At.closeIcon,Mt=At.icon,Nt=Et.closable,jt=Et.renderWrapper,zt=Et.removeAriaLabel,Vt=Et.editable,Kt=Et.onClick,Xt=Et.onFocus,Qt=Et.style,Zt="".concat(yt,"-tab"),dr=getRemovable(Nt,kt,Vt,Ft);function cr(vr){Ft||Kt(vr)}function Er(vr){vr.preventDefault(),vr.stopPropagation(),Vt.onEdit("remove",{key:Bt,event:vr})}var pr=reactExports.useMemo(function(){return Mt&&typeof Dt=="string"?reactExports.createElement("span",null,Dt):Dt},[Dt,Mt]),gr=reactExports.createElement("div",{key:Bt,"data-node-key":genDataNodeKey(Bt),className:cls(Zt,_defineProperty$1(_defineProperty$1(_defineProperty$1({},"".concat(Zt,"-with-remove"),dr),"".concat(Zt,"-active"),$t),"".concat(Zt,"-disabled"),Ft)),style:Qt,onClick:cr},reactExports.createElement("div",{role:"tab","aria-selected":$t,id:Ct&&"".concat(Ct,"-tab-").concat(Bt),className:"".concat(Zt,"-btn"),"aria-controls":Ct&&"".concat(Ct,"-panel-").concat(Bt),"aria-disabled":Ft,tabIndex:Ft?null:0,onClick:function(yr){yr.stopPropagation(),cr(yr)},onKeyDown:function(yr){[KeyCode.SPACE,KeyCode.ENTER].includes(yr.which)&&(yr.preventDefault(),cr(yr))},onFocus:Xt},Mt&&reactExports.createElement("span",{className:"".concat(Zt,"-icon")},Mt),Dt&&pr),dr&&reactExports.createElement("button",{type:"button","aria-label":zt||"remove",tabIndex:0,className:"".concat(Zt,"-remove"),onClick:function(yr){yr.stopPropagation(),Er(yr)}},kt||Vt.removeIcon||"×"));return jt?jt(gr):gr},getTabSize=function ht(Et,yt){var Ct=Et.offsetWidth,$t=Et.offsetHeight,At=Et.offsetTop,Bt=Et.offsetLeft,Dt=Et.getBoundingClientRect(),Ft=Dt.width,kt=Dt.height,Mt=Dt.x,Nt=Dt.y;return Math.abs(Ft-Ct)<1?[Ft,kt,Mt-yt.x,Nt-yt.y]:[Ct,$t,Bt,At]},getSize=function ht(Et){var yt=Et.current||{},Ct=yt.offsetWidth,$t=Ct===void 0?0:Ct,At=yt.offsetHeight,Bt=At===void 0?0:At;if(Et.current){var Dt=Et.current.getBoundingClientRect(),Ft=Dt.width,kt=Dt.height;if(Math.abs(Ft-$t)<1)return[Ft,kt]}return[$t,Bt]},getUnitValue=function ht(Et,yt){return Et[yt?0:1]},TabNavList=reactExports.forwardRef(function(ht,Et){var yt=ht.className,Ct=ht.style,$t=ht.id,At=ht.animated,Bt=ht.activeKey,Dt=ht.rtl,Ft=ht.extra,kt=ht.editable,Mt=ht.locale,Nt=ht.tabPosition,jt=ht.tabBarGutter,zt=ht.children,Vt=ht.onTabClick,Kt=ht.onTabScroll,Xt=ht.indicator,Qt=reactExports.useContext(TabContext),Zt=Qt.prefixCls,dr=Qt.tabs,cr=reactExports.useRef(null),Er=reactExports.useRef(null),pr=reactExports.useRef(null),gr=reactExports.useRef(null),vr=reactExports.useRef(null),yr=reactExports.useRef(null),xr=reactExports.useRef(null),rr=Nt==="top"||Nt==="bottom",Lt=useSyncState$1(0,function(Vn,En){rr&&Kt&&Kt({direction:Vn>En?"left":"right"})}),Ht=_slicedToArray(Lt,2),Wt=Ht[0],Gt=Ht[1],Yt=useSyncState$1(0,function(Vn,En){!rr&&Kt&&Kt({direction:Vn>En?"top":"bottom"})}),er=_slicedToArray(Yt,2),lr=er[0],Jt=er[1],Ut=reactExports.useState([0,0]),ir=_slicedToArray(Ut,2),Cr=ir[0],_r=ir[1],$r=reactExports.useState([0,0]),Tr=_slicedToArray($r,2),Dr=Tr[0],Ar=Tr[1],Fr=reactExports.useState([0,0]),Rr=_slicedToArray(Fr,2),wr=Rr[0],Sr=Rr[1],Br=reactExports.useState([0,0]),Or=_slicedToArray(Br,2),Pr=Or[0],Nr=Or[1],Lr=useUpdateState(new Map),Wr=_slicedToArray(Lr,2),Ur=Wr[0],jr=Wr[1],Kr=useOffsets(dr,Ur,Dr[0]),qr=getUnitValue(Cr,rr),Zr=getUnitValue(Dr,rr),dn=getUnitValue(wr,rr),Xr=getUnitValue(Pr,rr),un=qr<Zr+dn,Yr=un?qr-Xr:qr-dn,Gr="".concat(Zt,"-nav-operations-hidden"),Jr=0,wn=0;rr&&Dt?(Jr=0,wn=Math.max(0,Zr-Yr)):(Jr=Math.min(0,Yr-Zr),wn=0);function kr(Vn){return Vn<Jr?Jr:Vn>wn?wn:Vn}var Mr=reactExports.useRef(null),Ir=reactExports.useState(),Hr=_slicedToArray(Ir,2),Vr=Hr[0],on=Hr[1];function Qr(){on(Date.now())}function hn(){Mr.current&&clearTimeout(Mr.current)}useTouchMove(gr,function(Vn,En){function Sn(Xn,uu){Xn(function(Eu){var pu=kr(Eu+uu);return pu})}return un?(rr?Sn(Gt,Vn):Sn(Jt,En),hn(),Qr(),!0):!1}),reactExports.useEffect(function(){return hn(),Vr&&(Mr.current=setTimeout(function(){on(0)},100)),hn},[Vr]);var Wn=useVisibleRange(Kr,Yr,rr?Wt:lr,Zr,dn,Xr,_objectSpread2(_objectSpread2({},ht),{},{tabs:dr})),_n=_slicedToArray(Wn,2),An=_n[0],Yn=_n[1],Tn=useEvent(function(){var Vn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Bt,En=Kr.get(Vn)||{width:0,height:0,left:0,right:0,top:0};if(rr){var Sn=Wt;Dt?En.right<Wt?Sn=En.right:En.right+En.width>Wt+Yr&&(Sn=En.right+En.width-Yr):En.left<-Wt?Sn=-En.left:En.left+En.width>-Wt+Yr&&(Sn=-(En.left+En.width-Yr)),Jt(0),Gt(kr(Sn))}else{var Xn=lr;En.top<-lr?Xn=-En.top:En.top+En.height>-lr+Yr&&(Xn=-(En.top+En.height-Yr)),Gt(0),Jt(kr(Xn))}}),Nn={};Nt==="top"||Nt==="bottom"?Nn[Dt?"marginRight":"marginLeft"]=jt:Nn.marginTop=jt;var Zn=dr.map(function(Vn,En){var Sn=Vn.key;return reactExports.createElement(TabNode,{id:$t,prefixCls:Zt,key:Sn,tab:Vn,style:En===0?void 0:Nn,closable:Vn.closable,editable:kt,active:Sn===Bt,renderWrapper:zt,removeAriaLabel:Mt==null?void 0:Mt.removeAriaLabel,onClick:function(uu){Vt(Sn,uu)},onFocus:function(){Tn(Sn),Qr(),gr.current&&(Dt||(gr.current.scrollLeft=0),gr.current.scrollTop=0)}})}),$n=function(){return jr(function(){var En,Sn=new Map,Xn=(En=vr.current)===null||En===void 0?void 0:En.getBoundingClientRect();return dr.forEach(function(uu){var Eu,pu=uu.key,Qn=(Eu=vr.current)===null||Eu===void 0?void 0:Eu.querySelector('[data-node-key="'.concat(genDataNodeKey(pu),'"]'));if(Qn){var Jn=getTabSize(Qn,Xn),ou=_slicedToArray(Jn,4),mu=ou[0],xu=ou[1],_u=ou[2],$u=ou[3];Sn.set(pu,{width:mu,height:xu,left:_u,top:$u})}}),Sn})};reactExports.useEffect(function(){$n()},[dr.map(function(Vn){return Vn.key}).join("_")]);var Fn=useUpdate(function(){var Vn=getSize(cr),En=getSize(Er),Sn=getSize(pr);_r([Vn[0]-En[0]-Sn[0],Vn[1]-En[1]-Sn[1]]);var Xn=getSize(xr);Sr(Xn);var uu=getSize(yr);Nr(uu);var Eu=getSize(vr);Ar([Eu[0]-Xn[0],Eu[1]-Xn[1]]),$n()}),Gn=dr.slice(0,An),gn=dr.slice(Yn+1),Rn=[].concat(_toConsumableArray(Gn),_toConsumableArray(gn)),nu=Kr.get(Bt),pn=useIndicator({activeTabOffset:nu,horizontal:rr,indicator:Xt,rtl:Dt}),yn=pn.style;reactExports.useEffect(function(){Tn()},[Bt,Jr,wn,stringify$6(nu),stringify$6(Kr),rr]),reactExports.useEffect(function(){Fn()},[Dt]);var jn=!!Rn.length,Cn="".concat(Zt,"-nav-wrap"),On,au,In,Bn;return rr?Dt?(au=Wt>0,On=Wt!==wn):(On=Wt<0,au=Wt!==Jr):(In=lr<0,Bn=lr!==Jr),reactExports.createElement(RefResizeObserver,{onResize:Fn},reactExports.createElement("div",{ref:useComposeRef(Et,cr),role:"tablist",className:cls("".concat(Zt,"-nav"),yt),style:Ct,onKeyDown:function(){Qr()}},reactExports.createElement(ExtraContent,{ref:Er,position:"left",extra:Ft,prefixCls:Zt}),reactExports.createElement(RefResizeObserver,{onResize:Fn},reactExports.createElement("div",{className:cls(Cn,_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1({},"".concat(Cn,"-ping-left"),On),"".concat(Cn,"-ping-right"),au),"".concat(Cn,"-ping-top"),In),"".concat(Cn,"-ping-bottom"),Bn)),ref:gr},reactExports.createElement(RefResizeObserver,{onResize:Fn},reactExports.createElement("div",{ref:vr,className:"".concat(Zt,"-nav-list"),style:{transform:"translate(".concat(Wt,"px, ").concat(lr,"px)"),transition:Vr?"none":void 0}},Zn,reactExports.createElement(AddButton,{ref:xr,prefixCls:Zt,locale:Mt,editable:kt,style:_objectSpread2(_objectSpread2({},Zn.length===0?void 0:Nn),{},{visibility:jn?"hidden":null})}),reactExports.createElement("div",{className:cls("".concat(Zt,"-ink-bar"),_defineProperty$1({},"".concat(Zt,"-ink-bar-animated"),At.inkBar)),style:yn}))))),reactExports.createElement(OperationNode$1,_extends$5({},ht,{removeAriaLabel:Mt==null?void 0:Mt.removeAriaLabel,ref:yr,prefixCls:Zt,tabs:Rn,className:!jn&&Gr,tabMoving:!!Vr})),reactExports.createElement(ExtraContent,{ref:pr,position:"right",extra:Ft,prefixCls:Zt})))}),TabPane$1=reactExports.forwardRef(function(ht,Et){var yt=ht.prefixCls,Ct=ht.className,$t=ht.style,At=ht.id,Bt=ht.active,Dt=ht.tabKey,Ft=ht.children;return reactExports.createElement("div",{id:At&&"".concat(At,"-panel-").concat(Dt),role:"tabpanel",tabIndex:Bt?0:-1,"aria-labelledby":At&&"".concat(At,"-tab-").concat(Dt),"aria-hidden":!Bt,style:$t,className:cls(yt,Bt&&"".concat(yt,"-active"),Ct),ref:Et},Ft)}),_excluded$l=["renderTabBar"],_excluded2$1=["label","key"],TabNavListWrapper=function ht(Et){var yt=Et.renderTabBar,Ct=_objectWithoutProperties$1(Et,_excluded$l),$t=reactExports.useContext(TabContext),At=$t.tabs;if(yt){var Bt=_objectSpread2(_objectSpread2({},Ct),{},{panes:At.map(function(Dt){var Ft=Dt.label,kt=Dt.key,Mt=_objectWithoutProperties$1(Dt,_excluded2$1);return reactExports.createElement(TabPane$1,_extends$5({tab:Ft,key:kt,tabKey:kt},Mt))})});return yt(Bt,TabNavList)}return reactExports.createElement(TabNavList,Ct)},_excluded$k=["key","forceRender","style","className","destroyInactiveTabPane"],TabPanelList=function ht(Et){var yt=Et.id,Ct=Et.activeKey,$t=Et.animated,At=Et.tabPosition,Bt=Et.destroyInactiveTabPane,Dt=reactExports.useContext(TabContext),Ft=Dt.prefixCls,kt=Dt.tabs,Mt=$t.tabPane,Nt="".concat(Ft,"-tabpane");return reactExports.createElement("div",{className:cls("".concat(Ft,"-content-holder"))},reactExports.createElement("div",{className:cls("".concat(Ft,"-content"),"".concat(Ft,"-content-").concat(At),_defineProperty$1({},"".concat(Ft,"-content-animated"),Mt))},kt.map(function(jt){var zt=jt.key,Vt=jt.forceRender,Kt=jt.style,Xt=jt.className,Qt=jt.destroyInactiveTabPane,Zt=_objectWithoutProperties$1(jt,_excluded$k),dr=zt===Ct;return reactExports.createElement(CSSMotion,_extends$5({key:zt,visible:dr,forceRender:Vt,removeOnLeave:!!(Bt||Qt),leavedClassName:"".concat(Nt,"-hidden")},$t.tabPaneMotion),function(cr,Er){var pr=cr.style,gr=cr.className;return reactExports.createElement(TabPane$1,_extends$5({},Zt,{prefixCls:Nt,id:yt,tabKey:zt,animated:Mt,active:dr,style:_objectSpread2(_objectSpread2({},Kt),pr),className:cls(Xt,gr),ref:Er}))})})))};function useAnimateConfig$1(){var ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},Et;return ht===!1?Et={inkBar:!1,tabPane:!1}:ht===!0?Et={inkBar:!0,tabPane:!1}:Et=_objectSpread2({inkBar:!0},_typeof$1(ht)==="object"?ht:{}),Et.tabPaneMotion&&Et.tabPane===void 0&&(Et.tabPane=!0),!Et.tabPaneMotion&&Et.tabPane&&(Et.tabPane=!1),Et}var _excluded$j=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],uuid$1=0,Tabs$1=reactExports.forwardRef(function(ht,Et){var yt=ht.id,Ct=ht.prefixCls,$t=Ct===void 0?"rc-tabs":Ct,At=ht.className,Bt=ht.items,Dt=ht.direction,Ft=ht.activeKey,kt=ht.defaultActiveKey,Mt=ht.editable,Nt=ht.animated,jt=ht.tabPosition,zt=jt===void 0?"top":jt,Vt=ht.tabBarGutter,Kt=ht.tabBarStyle,Xt=ht.tabBarExtraContent,Qt=ht.locale,Zt=ht.more,dr=ht.destroyInactiveTabPane,cr=ht.renderTabBar,Er=ht.onChange,pr=ht.onTabClick,gr=ht.onTabScroll,vr=ht.getPopupContainer,yr=ht.popupClassName,xr=ht.indicator,rr=_objectWithoutProperties$1(ht,_excluded$j),Lt=reactExports.useMemo(function(){return(Bt||[]).filter(function(Pr){return Pr&&_typeof$1(Pr)==="object"&&"key"in Pr})},[Bt]),Ht=Dt==="rtl",Wt=useAnimateConfig$1(Nt),Gt=reactExports.useState(!1),Yt=_slicedToArray(Gt,2),er=Yt[0],lr=Yt[1];reactExports.useEffect(function(){lr(isMobile$3())},[]);var Jt=useMergedState(function(){var Pr;return(Pr=Lt[0])===null||Pr===void 0?void 0:Pr.key},{value:Ft,defaultValue:kt}),Ut=_slicedToArray(Jt,2),ir=Ut[0],Cr=Ut[1],_r=reactExports.useState(function(){return Lt.findIndex(function(Pr){return Pr.key===ir})}),$r=_slicedToArray(_r,2),Tr=$r[0],Dr=$r[1];reactExports.useEffect(function(){var Pr=Lt.findIndex(function(Lr){return Lr.key===ir});if(Pr===-1){var Nr;Pr=Math.max(0,Math.min(Tr,Lt.length-1)),Cr((Nr=Lt[Pr])===null||Nr===void 0?void 0:Nr.key)}Dr(Pr)},[Lt.map(function(Pr){return Pr.key}).join("_"),ir,Tr]);var Ar=useMergedState(null,{value:yt}),Fr=_slicedToArray(Ar,2),Rr=Fr[0],wr=Fr[1];reactExports.useEffect(function(){yt||(wr("rc-tabs-".concat(uuid$1)),uuid$1+=1)},[]);function Sr(Pr,Nr){pr==null||pr(Pr,Nr);var Lr=Pr!==ir;Cr(Pr),Lr&&(Er==null||Er(Pr))}var Br={id:Rr,activeKey:ir,animated:Wt,tabPosition:zt,rtl:Ht,mobile:er},Or=_objectSpread2(_objectSpread2({},Br),{},{editable:Mt,locale:Qt,more:Zt,tabBarGutter:Vt,onTabClick:Sr,onTabScroll:gr,extra:Xt,style:Kt,panes:null,getPopupContainer:vr,popupClassName:yr,indicator:xr});return reactExports.createElement(TabContext.Provider,{value:{tabs:Lt,prefixCls:$t}},reactExports.createElement("div",_extends$5({ref:Et,id:yt,className:cls($t,"".concat($t,"-").concat(zt),_defineProperty$1(_defineProperty$1(_defineProperty$1({},"".concat($t,"-mobile"),er),"".concat($t,"-editable"),Mt),"".concat($t,"-rtl"),Ht),At)},rr),reactExports.createElement(TabNavListWrapper,_extends$5({},Or,{renderTabBar:cr})),reactExports.createElement(TabPanelList,_extends$5({destroyInactiveTabPane:dr},Br,{animated:Wt}))))});const motion={motionAppear:!1,motionEnter:!0,motionLeave:!0};function useAnimateConfig(ht){let Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},yt;return Et===!1?yt={inkBar:!1,tabPane:!1}:Et===!0?yt={inkBar:!0,tabPane:!0}:yt=Object.assign({inkBar:!0},typeof Et=="object"?Et:{}),yt.tabPane&&(yt.tabPaneMotion=Object.assign(Object.assign({},motion),{motionName:getTransitionName(ht,"switch")})),yt}var __rest$q=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};function filter$3(ht){return ht.filter(Et=>Et)}function useLegacyItems(ht,Et){if(ht)return ht;const yt=toArray$5(Et).map(Ct=>{if(reactExports.isValidElement(Ct)){const{key:$t,props:At}=Ct,Bt=At||{},{tab:Dt}=Bt,Ft=__rest$q(Bt,["tab"]);return Object.assign(Object.assign({key:String($t)},Ft),{label:Dt})}return null});return filter$3(yt)}const genMotionStyle$1=ht=>{const{componentCls:Et,motionDurationSlow:yt}=ht;return[{[Et]:{[`${Et}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${yt}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${yt}`}}}}},[initSlideMotion(ht,"slide-up"),initSlideMotion(ht,"slide-down")]]},genCardStyle=ht=>{const{componentCls:Et,tabsCardPadding:yt,cardBg:Ct,cardGutter:$t,colorBorderSecondary:At,itemSelectedColor:Bt}=ht;return{[`${Et}-card`]:{[`> ${Et}-nav, > div > ${Et}-nav`]:{[`${Et}-tab`]:{margin:0,padding:yt,background:Ct,border:`${unit(ht.lineWidth)} ${ht.lineType} ${At}`,transition:`all ${ht.motionDurationSlow} ${ht.motionEaseInOut}`},[`${Et}-tab-active`]:{color:Bt,background:ht.colorBgContainer},[`${Et}-ink-bar`]:{visibility:"hidden"}},[`&${Et}-top, &${Et}-bottom`]:{[`> ${Et}-nav, > div > ${Et}-nav`]:{[`${Et}-tab + ${Et}-tab`]:{marginLeft:{_skip_check_:!0,value:unit($t)}}}},[`&${Et}-top`]:{[`> ${Et}-nav, > div > ${Et}-nav`]:{[`${Et}-tab`]:{borderRadius:`${unit(ht.borderRadiusLG)} ${unit(ht.borderRadiusLG)} 0 0`},[`${Et}-tab-active`]:{borderBottomColor:ht.colorBgContainer}}},[`&${Et}-bottom`]:{[`> ${Et}-nav, > div > ${Et}-nav`]:{[`${Et}-tab`]:{borderRadius:`0 0 ${unit(ht.borderRadiusLG)} ${unit(ht.borderRadiusLG)}`},[`${Et}-tab-active`]:{borderTopColor:ht.colorBgContainer}}},[`&${Et}-left, &${Et}-right`]:{[`> ${Et}-nav, > div > ${Et}-nav`]:{[`${Et}-tab + ${Et}-tab`]:{marginTop:unit($t)}}},[`&${Et}-left`]:{[`> ${Et}-nav, > div > ${Et}-nav`]:{[`${Et}-tab`]:{borderRadius:{_skip_check_:!0,value:`${unit(ht.borderRadiusLG)} 0 0 ${unit(ht.borderRadiusLG)}`}},[`${Et}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:ht.colorBgContainer}}}},[`&${Et}-right`]:{[`> ${Et}-nav, > div > ${Et}-nav`]:{[`${Et}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${unit(ht.borderRadiusLG)} ${unit(ht.borderRadiusLG)} 0`}},[`${Et}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:ht.colorBgContainer}}}}}}},genDropdownStyle=ht=>{const{componentCls:Et,itemHoverColor:yt,dropdownEdgeChildVerticalPadding:Ct}=ht;return{[`${Et}-dropdown`]:Object.assign(Object.assign({},resetComponent(ht)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:ht.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${Et}-dropdown-menu`]:{maxHeight:ht.tabsDropdownHeight,margin:0,padding:`${unit(Ct)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:ht.colorBgContainer,backgroundClip:"padding-box",borderRadius:ht.borderRadiusLG,outline:"none",boxShadow:ht.boxShadowSecondary,"&-item":Object.assign(Object.assign({},textEllipsis),{display:"flex",alignItems:"center",minWidth:ht.tabsDropdownWidth,margin:0,padding:`${unit(ht.paddingXXS)} ${unit(ht.paddingSM)}`,color:ht.colorText,fontWeight:"normal",fontSize:ht.fontSize,lineHeight:ht.lineHeight,cursor:"pointer",transition:`all ${ht.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:ht.marginSM},color:ht.colorTextDescription,fontSize:ht.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:yt}},"&:hover":{background:ht.controlItemBgHover},"&-disabled":{"&, &:hover":{color:ht.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},genPositionStyle=ht=>{const{componentCls:Et,margin:yt,colorBorderSecondary:Ct,horizontalMargin:$t,verticalItemPadding:At,verticalItemMargin:Bt,calc:Dt}=ht;return{[`${Et}-top, ${Et}-bottom`]:{flexDirection:"column",[`> ${Et}-nav, > div > ${Et}-nav`]:{margin:$t,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${unit(ht.lineWidth)} ${ht.lineType} ${Ct}`,content:"''"},[`${Et}-ink-bar`]:{height:ht.lineWidthBold,"&-animated":{transition:`width ${ht.motionDurationSlow}, left ${ht.motionDurationSlow},
            right ${ht.motionDurationSlow}`}},[`${Et}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:ht.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:ht.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:ht.boxShadowTabsOverflowRight},[`&${Et}-nav-wrap-ping-left::before`]:{opacity:1},[`&${Et}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${Et}-top`]:{[`> ${Et}-nav,
        > div > ${Et}-nav`]:{"&::before":{bottom:0},[`${Et}-ink-bar`]:{bottom:0}}},[`${Et}-bottom`]:{[`> ${Et}-nav, > div > ${Et}-nav`]:{order:1,marginTop:yt,marginBottom:0,"&::before":{top:0},[`${Et}-ink-bar`]:{top:0}},[`> ${Et}-content-holder, > div > ${Et}-content-holder`]:{order:0}},[`${Et}-left, ${Et}-right`]:{[`> ${Et}-nav, > div > ${Et}-nav`]:{flexDirection:"column",minWidth:Dt(ht.controlHeight).mul(1.25).equal(),[`${Et}-tab`]:{padding:At,textAlign:"center"},[`${Et}-tab + ${Et}-tab`]:{margin:Bt},[`${Et}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:ht.controlHeight},"&::before":{top:0,boxShadow:ht.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:ht.boxShadowTabsOverflowBottom},[`&${Et}-nav-wrap-ping-top::before`]:{opacity:1},[`&${Et}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${Et}-ink-bar`]:{width:ht.lineWidthBold,"&-animated":{transition:`height ${ht.motionDurationSlow}, top ${ht.motionDurationSlow}`}},[`${Et}-nav-list, ${Et}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${Et}-left`]:{[`> ${Et}-nav, > div > ${Et}-nav`]:{[`${Et}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${Et}-content-holder, > div > ${Et}-content-holder`]:{marginLeft:{_skip_check_:!0,value:unit(Dt(ht.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${unit(ht.lineWidth)} ${ht.lineType} ${ht.colorBorder}`},[`> ${Et}-content > ${Et}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:ht.paddingLG}}}},[`${Et}-right`]:{[`> ${Et}-nav, > div > ${Et}-nav`]:{order:1,[`${Et}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${Et}-content-holder, > div > ${Et}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:Dt(ht.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${unit(ht.lineWidth)} ${ht.lineType} ${ht.colorBorder}`},[`> ${Et}-content > ${Et}-tabpane`]:{paddingRight:{_skip_check_:!0,value:ht.paddingLG}}}}}},genSizeStyle$1=ht=>{const{componentCls:Et,cardPaddingSM:yt,cardPaddingLG:Ct,horizontalItemPaddingSM:$t,horizontalItemPaddingLG:At}=ht;return{[Et]:{"&-small":{[`> ${Et}-nav`]:{[`${Et}-tab`]:{padding:$t,fontSize:ht.titleFontSizeSM}}},"&-large":{[`> ${Et}-nav`]:{[`${Et}-tab`]:{padding:At,fontSize:ht.titleFontSizeLG}}}},[`${Et}-card`]:{[`&${Et}-small`]:{[`> ${Et}-nav`]:{[`${Et}-tab`]:{padding:yt}},[`&${Et}-bottom`]:{[`> ${Et}-nav ${Et}-tab`]:{borderRadius:`0 0 ${unit(ht.borderRadius)} ${unit(ht.borderRadius)}`}},[`&${Et}-top`]:{[`> ${Et}-nav ${Et}-tab`]:{borderRadius:`${unit(ht.borderRadius)} ${unit(ht.borderRadius)} 0 0`}},[`&${Et}-right`]:{[`> ${Et}-nav ${Et}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${unit(ht.borderRadius)} ${unit(ht.borderRadius)} 0`}}},[`&${Et}-left`]:{[`> ${Et}-nav ${Et}-tab`]:{borderRadius:{_skip_check_:!0,value:`${unit(ht.borderRadius)} 0 0 ${unit(ht.borderRadius)}`}}}},[`&${Et}-large`]:{[`> ${Et}-nav`]:{[`${Et}-tab`]:{padding:Ct}}}}}},genTabStyle=ht=>{const{componentCls:Et,itemActiveColor:yt,itemHoverColor:Ct,iconCls:$t,tabsHorizontalItemMargin:At,horizontalItemPadding:Bt,itemSelectedColor:Dt,itemColor:Ft}=ht,kt=`${Et}-tab`;return{[kt]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:Bt,fontSize:ht.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:Ft,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:yt}},genFocusStyle(ht)),"&-btn":{outline:"none",transition:`all ${ht.motionDurationSlow}`,[`${kt}-icon:not(:last-child)`]:{marginInlineEnd:ht.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:ht.calc(ht.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:ht.marginXS},color:ht.colorTextDescription,fontSize:ht.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${ht.motionDurationSlow}`,"&:hover":{color:ht.colorTextHeading}},"&:hover":{color:Ct},[`&${kt}-active ${kt}-btn`]:{color:Dt,textShadow:ht.tabsActiveTextShadow},[`&${kt}-disabled`]:{color:ht.colorTextDisabled,cursor:"not-allowed"},[`&${kt}-disabled ${kt}-btn, &${kt}-disabled ${Et}-remove`]:{"&:focus, &:active":{color:ht.colorTextDisabled}},[`& ${kt}-remove ${$t}`]:{margin:0},[`${$t}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:ht.marginSM}}},[`${kt} + ${kt}`]:{margin:{_skip_check_:!0,value:At}}}},genRtlStyle=ht=>{const{componentCls:Et,tabsHorizontalItemMarginRTL:yt,iconCls:Ct,cardGutter:$t,calc:At}=ht;return{[`${Et}-rtl`]:{direction:"rtl",[`${Et}-nav`]:{[`${Et}-tab`]:{margin:{_skip_check_:!0,value:yt},[`${Et}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[Ct]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:unit(ht.marginSM)}},[`${Et}-tab-remove`]:{marginRight:{_skip_check_:!0,value:unit(ht.marginXS)},marginLeft:{_skip_check_:!0,value:unit(At(ht.marginXXS).mul(-1).equal())},[Ct]:{margin:0}}}},[`&${Et}-left`]:{[`> ${Et}-nav`]:{order:1},[`> ${Et}-content-holder`]:{order:0}},[`&${Et}-right`]:{[`> ${Et}-nav`]:{order:0},[`> ${Et}-content-holder`]:{order:1}},[`&${Et}-card${Et}-top, &${Et}-card${Et}-bottom`]:{[`> ${Et}-nav, > div > ${Et}-nav`]:{[`${Et}-tab + ${Et}-tab`]:{marginRight:{_skip_check_:!0,value:$t},marginLeft:{_skip_check_:!0,value:0}}}}},[`${Et}-dropdown-rtl`]:{direction:"rtl"},[`${Et}-menu-item`]:{[`${Et}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},genTabsStyle=ht=>{const{componentCls:Et,tabsCardPadding:yt,cardHeight:Ct,cardGutter:$t,itemHoverColor:At,itemActiveColor:Bt,colorBorderSecondary:Dt}=ht;return{[Et]:Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent(ht)),{display:"flex",[`> ${Et}-nav, > div > ${Et}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${Et}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${ht.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${Et}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${ht.motionDurationSlow}`},[`${Et}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${Et}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${Et}-nav-more`]:{position:"relative",padding:yt,background:"transparent",border:0,color:ht.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:ht.calc(ht.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${Et}-nav-add`]:Object.assign({minWidth:Ct,minHeight:Ct,marginLeft:{_skip_check_:!0,value:$t},padding:`0 ${unit(ht.paddingXS)}`,background:"transparent",border:`${unit(ht.lineWidth)} ${ht.lineType} ${Dt}`,borderRadius:`${unit(ht.borderRadiusLG)} ${unit(ht.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:ht.colorText,transition:`all ${ht.motionDurationSlow} ${ht.motionEaseInOut}`,"&:hover":{color:At},"&:active, &:focus:not(:focus-visible)":{color:Bt}},genFocusStyle(ht))},[`${Et}-extra-content`]:{flex:"none"},[`${Et}-ink-bar`]:{position:"absolute",background:ht.inkBarColor,pointerEvents:"none"}}),genTabStyle(ht)),{[`${Et}-content`]:{position:"relative",width:"100%"},[`${Et}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${Et}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${Et}-centered`]:{[`> ${Et}-nav, > div > ${Et}-nav`]:{[`${Et}-nav-wrap`]:{[`&:not([class*='${Et}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},prepareComponentToken$a=ht=>{const Et=ht.controlHeightLG;return{zIndexPopup:ht.zIndexPopupBase+50,cardBg:ht.colorFillAlter,cardHeight:Et,cardPadding:`${(Et-Math.round(ht.fontSize*ht.lineHeight))/2-ht.lineWidth}px ${ht.padding}px`,cardPaddingSM:`${ht.paddingXXS*1.5}px ${ht.padding}px`,cardPaddingLG:`${ht.paddingXS}px ${ht.padding}px ${ht.paddingXXS*1.5}px`,titleFontSize:ht.fontSize,titleFontSizeLG:ht.fontSizeLG,titleFontSizeSM:ht.fontSize,inkBarColor:ht.colorPrimary,horizontalMargin:`0 0 ${ht.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${ht.paddingSM}px 0`,horizontalItemPaddingSM:`${ht.paddingXS}px 0`,horizontalItemPaddingLG:`${ht.padding}px 0`,verticalItemPadding:`${ht.paddingXS}px ${ht.paddingLG}px`,verticalItemMargin:`${ht.margin}px 0 0 0`,itemColor:ht.colorText,itemSelectedColor:ht.colorPrimary,itemHoverColor:ht.colorPrimaryHover,itemActiveColor:ht.colorPrimaryActive,cardGutter:ht.marginXXS/2}},useStyle$c=genStyleHooks("Tabs",ht=>{const Et=merge$2(ht,{tabsCardPadding:ht.cardPadding,dropdownEdgeChildVerticalPadding:ht.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${unit(ht.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${unit(ht.horizontalItemGutter)}`});return[genSizeStyle$1(Et),genRtlStyle(Et),genPositionStyle(Et),genDropdownStyle(Et),genCardStyle(Et),genTabsStyle(Et),genMotionStyle$1(Et)]},prepareComponentToken$a),TabPane=()=>null;var __rest$p=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};const Tabs=ht=>{var Et,yt,Ct,$t,At,Bt,Dt,Ft,kt,Mt,Nt;const{type:jt,className:zt,rootClassName:Vt,size:Kt,onEdit:Xt,hideAdd:Qt,centered:Zt,addIcon:dr,removeIcon:cr,moreIcon:Er,more:pr,popupClassName:gr,children:vr,items:yr,animated:xr,style:rr,indicatorSize:Lt,indicator:Ht}=ht,Wt=__rest$p(ht,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:Gt}=Wt,{direction:Yt,tabs:er,getPrefixCls:lr,getPopupContainer:Jt}=reactExports.useContext(ConfigContext$1),Ut=lr("tabs",Gt),ir=useCSSVarCls(Ut),[Cr,_r,$r]=useStyle$c(Ut,ir);let Tr;jt==="editable-card"&&(Tr={onEdit:(Br,Or)=>{let{key:Pr,event:Nr}=Or;Xt==null||Xt(Br==="add"?Nr:Pr,Br)},removeIcon:(Et=cr??(er==null?void 0:er.removeIcon))!==null&&Et!==void 0?Et:reactExports.createElement(RefIcon$r,null),addIcon:(dr??(er==null?void 0:er.addIcon))||reactExports.createElement(RefIcon$f,null),showAdd:Qt!==!0});const Dr=lr(),Ar=useSize(Kt),Fr=useLegacyItems(yr,vr),Rr=useAnimateConfig(Ut,xr),wr=Object.assign(Object.assign({},er==null?void 0:er.style),rr),Sr={align:(yt=Ht==null?void 0:Ht.align)!==null&&yt!==void 0?yt:(Ct=er==null?void 0:er.indicator)===null||Ct===void 0?void 0:Ct.align,size:(Dt=(At=($t=Ht==null?void 0:Ht.size)!==null&&$t!==void 0?$t:Lt)!==null&&At!==void 0?At:(Bt=er==null?void 0:er.indicator)===null||Bt===void 0?void 0:Bt.size)!==null&&Dt!==void 0?Dt:er==null?void 0:er.indicatorSize};return Cr(reactExports.createElement(Tabs$1,Object.assign({direction:Yt,getPopupContainer:Jt},Wt,{items:Fr,className:cls({[`${Ut}-${Ar}`]:Ar,[`${Ut}-card`]:["card","editable-card"].includes(jt),[`${Ut}-editable-card`]:jt==="editable-card",[`${Ut}-centered`]:Zt},er==null?void 0:er.className,zt,Vt,_r,$r,ir),popupClassName:cls(gr,_r,$r,ir),style:wr,editable:Tr,more:Object.assign({icon:(Nt=(Mt=(kt=(Ft=er==null?void 0:er.more)===null||Ft===void 0?void 0:Ft.icon)!==null&&kt!==void 0?kt:er==null?void 0:er.moreIcon)!==null&&Mt!==void 0?Mt:Er)!==null&&Nt!==void 0?Nt:reactExports.createElement(RefIcon$g,null),transitionName:`${Dr}-slide-up`},pr),prefixCls:Ut,animated:Rr,indicator:Sr})))};Tabs.TabPane=TabPane;function throttle(ht,Et,yt){var Ct=yt||{},$t=Ct.noTrailing,At=$t===void 0?!1:$t,Bt=Ct.noLeading,Dt=Bt===void 0?!1:Bt,Ft=Ct.debounceMode,kt=Ft===void 0?void 0:Ft,Mt,Nt=!1,jt=0;function zt(){Mt&&clearTimeout(Mt)}function Vt(Xt){var Qt=Xt||{},Zt=Qt.upcomingOnly,dr=Zt===void 0?!1:Zt;zt(),Nt=!dr}function Kt(){for(var Xt=arguments.length,Qt=new Array(Xt),Zt=0;Zt<Xt;Zt++)Qt[Zt]=arguments[Zt];var dr=this,cr=Date.now()-jt;if(Nt)return;function Er(){jt=Date.now(),Et.apply(dr,Qt)}function pr(){Mt=void 0}!Dt&&kt&&!Mt&&Er(),zt(),kt===void 0&&cr>ht?Dt?(jt=Date.now(),At||(Mt=setTimeout(kt?pr:Er,ht))):Er():At!==!0&&(Mt=setTimeout(kt?pr:Er,kt===void 0?ht-cr:ht))}return Kt.cancel=Vt,Kt}function debounce$4(ht,Et,yt){var Ct={},$t=Ct.atBegin,At=$t===void 0?!1:$t;return throttle(ht,Et,{debounceMode:At!==!1})}function getEntity(ht,Et){return ht[Et]}var _excluded$i=["children"];function getPosition(ht,Et){return"".concat(ht,"-").concat(Et)}function isTreeNode(ht){return ht&&ht.type&&ht.type.isTreeNode}function getKey(ht,Et){return ht??Et}function fillFieldNames(ht){var Et=ht||{},yt=Et.title,Ct=Et._title,$t=Et.key,At=Et.children,Bt=yt||"title";return{title:Bt,_title:Ct||[Bt],key:$t||"key",children:At||"children"}}function convertTreeToData(ht){function Et(yt){var Ct=toArray$5(yt);return Ct.map(function($t){if(!isTreeNode($t))return warningOnce(!$t,"Tree/TreeNode can only accept TreeNode as children."),null;var At=$t.key,Bt=$t.props,Dt=Bt.children,Ft=_objectWithoutProperties$1(Bt,_excluded$i),kt=_objectSpread2({key:At},Ft),Mt=Et(Dt);return Mt.length&&(kt.children=Mt),kt}).filter(function($t){return $t})}return Et(ht)}function flattenTreeData(ht,Et,yt){var Ct=fillFieldNames(yt),$t=Ct._title,At=Ct.key,Bt=Ct.children,Dt=new Set(Et===!0?[]:Et),Ft=[];function kt(Mt){var Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Mt.map(function(jt,zt){for(var Vt=getPosition(Nt?Nt.pos:"0",zt),Kt=getKey(jt[At],Vt),Xt,Qt=0;Qt<$t.length;Qt+=1){var Zt=$t[Qt];if(jt[Zt]!==void 0){Xt=jt[Zt];break}}var dr=Object.assign(omit$1(jt,[].concat(_toConsumableArray($t),[At,Bt])),{title:Xt,key:Kt,parent:Nt,pos:Vt,children:null,data:jt,isStart:[].concat(_toConsumableArray(Nt?Nt.isStart:[]),[zt===0]),isEnd:[].concat(_toConsumableArray(Nt?Nt.isEnd:[]),[zt===Mt.length-1])});return Ft.push(dr),Et===!0||Dt.has(Kt)?dr.children=kt(jt[Bt]||[],dr):dr.children=[],dr})}return kt(ht),Ft}function traverseDataNodes(ht,Et,yt){var Ct={};_typeof$1(yt)==="object"?Ct=yt:Ct={externalGetKey:yt},Ct=Ct||{};var $t=Ct,At=$t.childrenPropName,Bt=$t.externalGetKey,Dt=$t.fieldNames,Ft=fillFieldNames(Dt),kt=Ft.key,Mt=Ft.children,Nt=At||Mt,jt;Bt?typeof Bt=="string"?jt=function(Kt){return Kt[Bt]}:typeof Bt=="function"&&(jt=function(Kt){return Bt(Kt)}):jt=function(Kt,Xt){return getKey(Kt[kt],Xt)};function zt(Vt,Kt,Xt,Qt){var Zt=Vt?Vt[Nt]:ht,dr=Vt?getPosition(Xt.pos,Kt):"0",cr=Vt?[].concat(_toConsumableArray(Qt),[Vt]):[];if(Vt){var Er=jt(Vt,dr),pr={node:Vt,index:Kt,pos:dr,key:Er,parentPos:Xt.node?Xt.pos:null,level:Xt.level+1,nodes:cr};Et(pr)}Zt&&Zt.forEach(function(gr,vr){zt(gr,vr,{node:Vt,pos:dr,level:Xt?Xt.level+1:-1},cr)})}zt(null)}function convertDataToEntities(ht){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},yt=Et.initWrapper,Ct=Et.processEntity,$t=Et.onProcessFinished,At=Et.externalGetKey,Bt=Et.childrenPropName,Dt=Et.fieldNames,Ft=arguments.length>2?arguments[2]:void 0,kt=At||Ft,Mt={},Nt={},jt={posEntities:Mt,keyEntities:Nt};return yt&&(jt=yt(jt)||jt),traverseDataNodes(ht,function(zt){var Vt=zt.node,Kt=zt.index,Xt=zt.pos,Qt=zt.key,Zt=zt.parentPos,dr=zt.level,cr=zt.nodes,Er={node:Vt,nodes:cr,index:Kt,key:Qt,pos:Xt,level:dr},pr=getKey(Qt,Xt);Mt[Xt]=Er,Nt[pr]=Er,Er.parent=Mt[Zt],Er.parent&&(Er.parent.children=Er.parent.children||[],Er.parent.children.push(Er)),Ct&&Ct(Er,jt)},{externalGetKey:kt,childrenPropName:Bt,fieldNames:Dt}),$t&&$t(jt),jt}function getTreeNodeProps(ht,Et){var yt=Et.expandedKeys,Ct=Et.selectedKeys,$t=Et.loadedKeys,At=Et.loadingKeys,Bt=Et.checkedKeys,Dt=Et.halfCheckedKeys,Ft=Et.dragOverNodeKey,kt=Et.dropPosition,Mt=Et.keyEntities,Nt=getEntity(Mt,ht),jt={eventKey:ht,expanded:yt.indexOf(ht)!==-1,selected:Ct.indexOf(ht)!==-1,loaded:$t.indexOf(ht)!==-1,loading:At.indexOf(ht)!==-1,checked:Bt.indexOf(ht)!==-1,halfChecked:Dt.indexOf(ht)!==-1,pos:String(Nt?Nt.pos:""),dragOver:Ft===ht&&kt===0,dragOverGapTop:Ft===ht&&kt===-1,dragOverGapBottom:Ft===ht&&kt===1};return jt}function convertNodePropsToEventData(ht){var Et=ht.data,yt=ht.expanded,Ct=ht.selected,$t=ht.checked,At=ht.loaded,Bt=ht.loading,Dt=ht.halfChecked,Ft=ht.dragOver,kt=ht.dragOverGapTop,Mt=ht.dragOverGapBottom,Nt=ht.pos,jt=ht.active,zt=ht.eventKey,Vt=_objectSpread2(_objectSpread2({},Et),{},{expanded:yt,selected:Ct,checked:$t,loaded:At,loading:Bt,halfChecked:Dt,dragOver:Ft,dragOverGapTop:kt,dragOverGapBottom:Mt,pos:Nt,active:jt,key:zt});return"props"in Vt||Object.defineProperty(Vt,"props",{get:function(){return warningOnce(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),ht}}),Vt}function removeFromCheckedKeys(ht,Et){var yt=new Set;return ht.forEach(function(Ct){Et.has(Ct)||yt.add(Ct)}),yt}function isCheckDisabled(ht){var Et=ht||{},yt=Et.disabled,Ct=Et.disableCheckbox,$t=Et.checkable;return!!(yt||Ct)||$t===!1}function fillConductCheck(ht,Et,yt,Ct){for(var $t=new Set(ht),At=new Set,Bt=0;Bt<=yt;Bt+=1){var Dt=Et.get(Bt)||new Set;Dt.forEach(function(Nt){var jt=Nt.key,zt=Nt.node,Vt=Nt.children,Kt=Vt===void 0?[]:Vt;$t.has(jt)&&!Ct(zt)&&Kt.filter(function(Xt){return!Ct(Xt.node)}).forEach(function(Xt){$t.add(Xt.key)})})}for(var Ft=new Set,kt=yt;kt>=0;kt-=1){var Mt=Et.get(kt)||new Set;Mt.forEach(function(Nt){var jt=Nt.parent,zt=Nt.node;if(!(Ct(zt)||!Nt.parent||Ft.has(Nt.parent.key))){if(Ct(Nt.parent.node)){Ft.add(jt.key);return}var Vt=!0,Kt=!1;(jt.children||[]).filter(function(Xt){return!Ct(Xt.node)}).forEach(function(Xt){var Qt=Xt.key,Zt=$t.has(Qt);Vt&&!Zt&&(Vt=!1),!Kt&&(Zt||At.has(Qt))&&(Kt=!0)}),Vt&&$t.add(jt.key),Kt&&At.add(jt.key),Ft.add(jt.key)}})}return{checkedKeys:Array.from($t),halfCheckedKeys:Array.from(removeFromCheckedKeys(At,$t))}}function cleanConductCheck(ht,Et,yt,Ct,$t){for(var At=new Set(ht),Bt=new Set(Et),Dt=0;Dt<=Ct;Dt+=1){var Ft=yt.get(Dt)||new Set;Ft.forEach(function(jt){var zt=jt.key,Vt=jt.node,Kt=jt.children,Xt=Kt===void 0?[]:Kt;!At.has(zt)&&!Bt.has(zt)&&!$t(Vt)&&Xt.filter(function(Qt){return!$t(Qt.node)}).forEach(function(Qt){At.delete(Qt.key)})})}Bt=new Set;for(var kt=new Set,Mt=Ct;Mt>=0;Mt-=1){var Nt=yt.get(Mt)||new Set;Nt.forEach(function(jt){var zt=jt.parent,Vt=jt.node;if(!($t(Vt)||!jt.parent||kt.has(jt.parent.key))){if($t(jt.parent.node)){kt.add(zt.key);return}var Kt=!0,Xt=!1;(zt.children||[]).filter(function(Qt){return!$t(Qt.node)}).forEach(function(Qt){var Zt=Qt.key,dr=At.has(Zt);Kt&&!dr&&(Kt=!1),!Xt&&(dr||Bt.has(Zt))&&(Xt=!0)}),Kt||At.delete(zt.key),Xt&&Bt.add(zt.key),kt.add(zt.key)}})}return{checkedKeys:Array.from(At),halfCheckedKeys:Array.from(removeFromCheckedKeys(Bt,At))}}function conductCheck(ht,Et,yt,Ct){var $t=[],At;Ct?At=Ct:At=isCheckDisabled;var Bt=new Set(ht.filter(function(Mt){var Nt=!!getEntity(yt,Mt);return Nt||$t.push(Mt),Nt})),Dt=new Map,Ft=0;Object.keys(yt).forEach(function(Mt){var Nt=yt[Mt],jt=Nt.level,zt=Dt.get(jt);zt||(zt=new Set,Dt.set(jt,zt)),zt.add(Nt),Ft=Math.max(Ft,jt)}),warningOnce(!$t.length,"Tree missing follow keys: ".concat($t.slice(0,100).map(function(Mt){return"'".concat(Mt,"'")}).join(", ")));var kt;return Et===!0?kt=fillConductCheck(Bt,Dt,Ft,At):kt=cleanConductCheck(Bt,Et.halfCheckedKeys,Dt,Ft,At),kt}const genCheckboxStyle=ht=>{const{checkboxCls:Et}=ht,yt=`${Et}-wrapper`;return[{[`${Et}-group`]:Object.assign(Object.assign({},resetComponent(ht)),{display:"inline-flex",flexWrap:"wrap",columnGap:ht.marginXS,[`> ${ht.antCls}-row`]:{flex:1}}),[yt]:Object.assign(Object.assign({},resetComponent(ht)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${yt}`]:{marginInlineStart:0},[`&${yt}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[Et]:Object.assign(Object.assign({},resetComponent(ht)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:ht.borderRadiusSM,alignSelf:"center",[`${Et}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${Et}-inner`]:Object.assign({},genFocusOutline(ht))},[`${Et}-inner`]:{boxSizing:"border-box",display:"block",width:ht.checkboxSize,height:ht.checkboxSize,direction:"ltr",backgroundColor:ht.colorBgContainer,border:`${unit(ht.lineWidth)} ${ht.lineType} ${ht.colorBorder}`,borderRadius:ht.borderRadiusSM,borderCollapse:"separate",transition:`all ${ht.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:ht.calc(ht.checkboxSize).div(14).mul(5).equal(),height:ht.calc(ht.checkboxSize).div(14).mul(8).equal(),border:`${unit(ht.lineWidthBold)} solid ${ht.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${ht.motionDurationFast} ${ht.motionEaseInBack}, opacity ${ht.motionDurationFast}`}},"& + span":{paddingInlineStart:ht.paddingXS,paddingInlineEnd:ht.paddingXS}})},{[`
        ${yt}:not(${yt}-disabled),
        ${Et}:not(${Et}-disabled)
      `]:{[`&:hover ${Et}-inner`]:{borderColor:ht.colorPrimary}},[`${yt}:not(${yt}-disabled)`]:{[`&:hover ${Et}-checked:not(${Et}-disabled) ${Et}-inner`]:{backgroundColor:ht.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${Et}-checked:not(${Et}-disabled):after`]:{borderColor:ht.colorPrimaryHover}}},{[`${Et}-checked`]:{[`${Et}-inner`]:{backgroundColor:ht.colorPrimary,borderColor:ht.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${ht.motionDurationMid} ${ht.motionEaseOutBack} ${ht.motionDurationFast}`}}},[`
        ${yt}-checked:not(${yt}-disabled),
        ${Et}-checked:not(${Et}-disabled)
      `]:{[`&:hover ${Et}-inner`]:{backgroundColor:ht.colorPrimaryHover,borderColor:"transparent"}}},{[Et]:{"&-indeterminate":{[`${Et}-inner`]:{backgroundColor:ht.colorBgContainer,borderColor:ht.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:ht.calc(ht.fontSizeLG).div(2).equal(),height:ht.calc(ht.fontSizeLG).div(2).equal(),backgroundColor:ht.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${yt}-disabled`]:{cursor:"not-allowed"},[`${Et}-disabled`]:{[`&, ${Et}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${Et}-inner`]:{background:ht.colorBgContainerDisabled,borderColor:ht.colorBorder,"&:after":{borderColor:ht.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:ht.colorTextDisabled},[`&${Et}-indeterminate ${Et}-inner::after`]:{background:ht.colorTextDisabled}}}]};function getStyle(ht,Et){const yt=merge$2(Et,{checkboxCls:`.${ht}`,checkboxSize:Et.controlInteractiveSize});return[genCheckboxStyle(yt)]}const useStyle$b=genStyleHooks("Checkbox",(ht,Et)=>{let{prefixCls:yt}=Et;return[getStyle(yt,ht)]}),GroupContext=React$8.createContext(null);var __rest$o=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};const InternalCheckbox=(ht,Et)=>{var yt;const{prefixCls:Ct,className:$t,rootClassName:At,children:Bt,indeterminate:Dt=!1,style:Ft,onMouseEnter:kt,onMouseLeave:Mt,skipGroup:Nt=!1,disabled:jt}=ht,zt=__rest$o(ht,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Vt,direction:Kt,checkbox:Xt}=reactExports.useContext(ConfigContext$1),Qt=reactExports.useContext(GroupContext),{isFormItemInput:Zt}=reactExports.useContext(FormItemInputContext),dr=reactExports.useContext(DisabledContext),cr=(yt=(Qt==null?void 0:Qt.disabled)||jt)!==null&&yt!==void 0?yt:dr,Er=reactExports.useRef(zt.value);reactExports.useEffect(()=>{Qt==null||Qt.registerValue(zt.value)},[]),reactExports.useEffect(()=>{if(!Nt)return zt.value!==Er.current&&(Qt==null||Qt.cancelValue(Er.current),Qt==null||Qt.registerValue(zt.value),Er.current=zt.value),()=>Qt==null?void 0:Qt.cancelValue(zt.value)},[zt.value]);const pr=Vt("checkbox",Ct),gr=useCSSVarCls(pr),[vr,yr,xr]=useStyle$b(pr,gr),rr=Object.assign({},zt);Qt&&!Nt&&(rr.onChange=function(){zt.onChange&&zt.onChange.apply(zt,arguments),Qt.toggleOption&&Qt.toggleOption({label:Bt,value:zt.value})},rr.name=Qt.name,rr.checked=Qt.value.includes(zt.value));const Lt=cls(`${pr}-wrapper`,{[`${pr}-rtl`]:Kt==="rtl",[`${pr}-wrapper-checked`]:rr.checked,[`${pr}-wrapper-disabled`]:cr,[`${pr}-wrapper-in-form-item`]:Zt},Xt==null?void 0:Xt.className,$t,At,xr,gr,yr),Ht=cls({[`${pr}-indeterminate`]:Dt},TARGET_CLS,yr),Wt=Dt?"mixed":void 0;return vr(reactExports.createElement(Wave,{component:"Checkbox",disabled:cr},reactExports.createElement("label",{className:Lt,style:Object.assign(Object.assign({},Xt==null?void 0:Xt.style),Ft),onMouseEnter:kt,onMouseLeave:Mt},reactExports.createElement(Checkbox$2,Object.assign({"aria-checked":Wt},rr,{prefixCls:pr,className:Ht,disabled:cr,ref:Et})),Bt!==void 0&&reactExports.createElement("span",null,Bt))))},Checkbox$1=reactExports.forwardRef(InternalCheckbox);var __rest$n=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};const CheckboxGroup=reactExports.forwardRef((ht,Et)=>{const{defaultValue:yt,children:Ct,options:$t=[],prefixCls:At,className:Bt,rootClassName:Dt,style:Ft,onChange:kt}=ht,Mt=__rest$n(ht,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Nt,direction:jt}=reactExports.useContext(ConfigContext$1),[zt,Vt]=reactExports.useState(Mt.value||yt||[]),[Kt,Xt]=reactExports.useState([]);reactExports.useEffect(()=>{"value"in Mt&&Vt(Mt.value||[])},[Mt.value]);const Qt=reactExports.useMemo(()=>$t.map(Gt=>typeof Gt=="string"||typeof Gt=="number"?{label:Gt,value:Gt}:Gt),[$t]),Zt=Gt=>{Xt(Yt=>Yt.filter(er=>er!==Gt))},dr=Gt=>{Xt(Yt=>[].concat(_toConsumableArray(Yt),[Gt]))},cr=Gt=>{const Yt=zt.indexOf(Gt.value),er=_toConsumableArray(zt);Yt===-1?er.push(Gt.value):er.splice(Yt,1),"value"in Mt||Vt(er),kt==null||kt(er.filter(lr=>Kt.includes(lr)).sort((lr,Jt)=>{const Ut=Qt.findIndex(Cr=>Cr.value===lr),ir=Qt.findIndex(Cr=>Cr.value===Jt);return Ut-ir}))},Er=Nt("checkbox",At),pr=`${Er}-group`,gr=useCSSVarCls(Er),[vr,yr,xr]=useStyle$b(Er,gr),rr=omit$1(Mt,["value","disabled"]),Lt=$t.length?Qt.map(Gt=>reactExports.createElement(Checkbox$1,{prefixCls:Er,key:Gt.value.toString(),disabled:"disabled"in Gt?Gt.disabled:Mt.disabled,value:Gt.value,checked:zt.includes(Gt.value),onChange:Gt.onChange,className:`${pr}-item`,style:Gt.style,title:Gt.title,id:Gt.id,required:Gt.required},Gt.label)):Ct,Ht={toggleOption:cr,value:zt,disabled:Mt.disabled,name:Mt.name,registerValue:dr,cancelValue:Zt},Wt=cls(pr,{[`${pr}-rtl`]:jt==="rtl"},Bt,Dt,xr,gr,yr);return vr(reactExports.createElement("div",Object.assign({className:Wt,style:Ft},rr,{ref:Et}),reactExports.createElement(GroupContext.Provider,{value:Ht},Lt)))}),Checkbox=Checkbox$1;Checkbox.Group=CheckboxGroup;Checkbox.__ANT_CHECKBOX=!0;const RowContext=reactExports.createContext({}),genGridRowStyle=ht=>{const{componentCls:Et}=ht;return{[Et]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},genGridColStyle=ht=>{const{componentCls:Et}=ht;return{[Et]:{position:"relative",maxWidth:"100%",minHeight:1}}},genLoopGridColumnsStyle=(ht,Et)=>{const{prefixCls:yt,componentCls:Ct,gridColumns:$t}=ht,At={};for(let Bt=$t;Bt>=0;Bt--)Bt===0?(At[`${Ct}${Et}-${Bt}`]={display:"none"},At[`${Ct}-push-${Bt}`]={insetInlineStart:"auto"},At[`${Ct}-pull-${Bt}`]={insetInlineEnd:"auto"},At[`${Ct}${Et}-push-${Bt}`]={insetInlineStart:"auto"},At[`${Ct}${Et}-pull-${Bt}`]={insetInlineEnd:"auto"},At[`${Ct}${Et}-offset-${Bt}`]={marginInlineStart:0},At[`${Ct}${Et}-order-${Bt}`]={order:0}):(At[`${Ct}${Et}-${Bt}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${Bt/$t*100}%`,maxWidth:`${Bt/$t*100}%`}],At[`${Ct}${Et}-push-${Bt}`]={insetInlineStart:`${Bt/$t*100}%`},At[`${Ct}${Et}-pull-${Bt}`]={insetInlineEnd:`${Bt/$t*100}%`},At[`${Ct}${Et}-offset-${Bt}`]={marginInlineStart:`${Bt/$t*100}%`},At[`${Ct}${Et}-order-${Bt}`]={order:Bt});return At[`${Ct}${Et}-flex`]={flex:`var(--${yt}${Et}-flex)`},At},genGridStyle=(ht,Et)=>genLoopGridColumnsStyle(ht,Et),genGridMediaStyle=(ht,Et,yt)=>({[`@media (min-width: ${unit(Et)})`]:Object.assign({},genGridStyle(ht,yt))}),prepareRowComponentToken=()=>({}),prepareColComponentToken=()=>({}),useRowStyle=genStyleHooks("Grid",genGridRowStyle,prepareRowComponentToken),useColStyle=genStyleHooks("Grid",ht=>{const Et=merge$2(ht,{gridColumns:24}),yt={"-sm":Et.screenSMMin,"-md":Et.screenMDMin,"-lg":Et.screenLGMin,"-xl":Et.screenXLMin,"-xxl":Et.screenXXLMin};return[genGridColStyle(Et),genGridStyle(Et,""),genGridStyle(Et,"-xs"),Object.keys(yt).map(Ct=>genGridMediaStyle(Et,yt[Ct],Ct)).reduce((Ct,$t)=>Object.assign(Object.assign({},Ct),$t),{})]},prepareColComponentToken);var __rest$m=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};function parseFlex(ht){return typeof ht=="number"?`${ht} ${ht} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(ht)?`0 0 ${ht}`:ht}const sizes=["xs","sm","md","lg","xl","xxl"],Col=reactExports.forwardRef((ht,Et)=>{const{getPrefixCls:yt,direction:Ct}=reactExports.useContext(ConfigContext$1),{gutter:$t,wrap:At}=reactExports.useContext(RowContext),{prefixCls:Bt,span:Dt,order:Ft,offset:kt,push:Mt,pull:Nt,className:jt,children:zt,flex:Vt,style:Kt}=ht,Xt=__rest$m(ht,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),Qt=yt("col",Bt),[Zt,dr,cr]=useColStyle(Qt),Er={};let pr={};sizes.forEach(yr=>{let xr={};const rr=ht[yr];typeof rr=="number"?xr.span=rr:typeof rr=="object"&&(xr=rr||{}),delete Xt[yr],pr=Object.assign(Object.assign({},pr),{[`${Qt}-${yr}-${xr.span}`]:xr.span!==void 0,[`${Qt}-${yr}-order-${xr.order}`]:xr.order||xr.order===0,[`${Qt}-${yr}-offset-${xr.offset}`]:xr.offset||xr.offset===0,[`${Qt}-${yr}-push-${xr.push}`]:xr.push||xr.push===0,[`${Qt}-${yr}-pull-${xr.pull}`]:xr.pull||xr.pull===0,[`${Qt}-rtl`]:Ct==="rtl"}),xr.flex&&(pr[`${Qt}-${yr}-flex`]=!0,Er[`--${Qt}-${yr}-flex`]=parseFlex(xr.flex))});const gr=cls(Qt,{[`${Qt}-${Dt}`]:Dt!==void 0,[`${Qt}-order-${Ft}`]:Ft,[`${Qt}-offset-${kt}`]:kt,[`${Qt}-push-${Mt}`]:Mt,[`${Qt}-pull-${Nt}`]:Nt},jt,pr,dr,cr),vr={};if($t&&$t[0]>0){const yr=$t[0]/2;vr.paddingLeft=yr,vr.paddingRight=yr}return Vt&&(vr.flex=parseFlex(Vt),At===!1&&!vr.minWidth&&(vr.minWidth=0)),Zt(reactExports.createElement("div",Object.assign({},Xt,{style:Object.assign(Object.assign(Object.assign({},vr),Kt),Er),className:gr,ref:Et}),zt))});var __rest$l=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};function useMergedPropByScreen(ht,Et){const[yt,Ct]=reactExports.useState(typeof ht=="string"?ht:""),$t=()=>{if(typeof ht=="string"&&Ct(ht),typeof ht=="object")for(let At=0;At<responsiveArray.length;At++){const Bt=responsiveArray[At];if(!Et[Bt])continue;const Dt=ht[Bt];if(Dt!==void 0){Ct(Dt);return}}};return reactExports.useEffect(()=>{$t()},[JSON.stringify(ht),Et]),yt}const Row=reactExports.forwardRef((ht,Et)=>{const{prefixCls:yt,justify:Ct,align:$t,className:At,style:Bt,children:Dt,gutter:Ft=0,wrap:kt}=ht,Mt=__rest$l(ht,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:Nt,direction:jt}=reactExports.useContext(ConfigContext$1),[zt,Vt]=reactExports.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[Kt,Xt]=reactExports.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),Qt=useMergedPropByScreen($t,Kt),Zt=useMergedPropByScreen(Ct,Kt),dr=reactExports.useRef(Ft),cr=useResponsiveObserver();reactExports.useEffect(()=>{const er=cr.subscribe(lr=>{Xt(lr);const Jt=dr.current||0;(!Array.isArray(Jt)&&typeof Jt=="object"||Array.isArray(Jt)&&(typeof Jt[0]=="object"||typeof Jt[1]=="object"))&&Vt(lr)});return()=>cr.unsubscribe(er)},[]);const Er=()=>{const er=[void 0,void 0];return(Array.isArray(Ft)?Ft:[Ft,void 0]).forEach((Jt,Ut)=>{if(typeof Jt=="object")for(let ir=0;ir<responsiveArray.length;ir++){const Cr=responsiveArray[ir];if(zt[Cr]&&Jt[Cr]!==void 0){er[Ut]=Jt[Cr];break}}else er[Ut]=Jt}),er},pr=Nt("row",yt),[gr,vr,yr]=useRowStyle(pr),xr=Er(),rr=cls(pr,{[`${pr}-no-wrap`]:kt===!1,[`${pr}-${Zt}`]:Zt,[`${pr}-${Qt}`]:Qt,[`${pr}-rtl`]:jt==="rtl"},At,vr,yr),Lt={},Ht=xr[0]!=null&&xr[0]>0?xr[0]/-2:void 0;Ht&&(Lt.marginLeft=Ht,Lt.marginRight=Ht);const[Wt,Gt]=xr;Lt.rowGap=Gt;const Yt=reactExports.useMemo(()=>({gutter:[Wt,Gt],wrap:kt}),[Wt,Gt,kt]);return gr(reactExports.createElement(RowContext.Provider,{value:Yt},reactExports.createElement("div",Object.assign({},Mt,{className:rr,style:Object.assign(Object.assign({},Lt),Bt),ref:Et}),Dt)))});var PanelContent=React$8.forwardRef(function(ht,Et){var yt=ht.prefixCls,Ct=ht.forceRender,$t=ht.className,At=ht.style,Bt=ht.children,Dt=ht.isActive,Ft=ht.role,kt=React$8.useState(Dt||Ct),Mt=_slicedToArray(kt,2),Nt=Mt[0],jt=Mt[1];return React$8.useEffect(function(){(Ct||Dt)&&jt(!0)},[Ct,Dt]),Nt?React$8.createElement("div",{ref:Et,className:cls("".concat(yt,"-content"),_defineProperty$1(_defineProperty$1({},"".concat(yt,"-content-active"),Dt),"".concat(yt,"-content-inactive"),!Dt),$t),style:At,role:Ft},React$8.createElement("div",{className:"".concat(yt,"-content-box")},Bt)):null});PanelContent.displayName="PanelContent";var _excluded$h=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],CollapsePanel$1=React$8.forwardRef(function(ht,Et){var yt=ht.showArrow,Ct=yt===void 0?!0:yt,$t=ht.headerClass,At=ht.isActive,Bt=ht.onItemClick,Dt=ht.forceRender,Ft=ht.className,kt=ht.prefixCls,Mt=ht.collapsible,Nt=ht.accordion,jt=ht.panelKey,zt=ht.extra,Vt=ht.header,Kt=ht.expandIcon,Xt=ht.openMotion,Qt=ht.destroyInactivePanel,Zt=ht.children,dr=_objectWithoutProperties$1(ht,_excluded$h),cr=Mt==="disabled",Er=Mt==="header",pr=Mt==="icon",gr=zt!=null&&typeof zt!="boolean",vr=function(){Bt==null||Bt(jt)},yr=function(Gt){(Gt.key==="Enter"||Gt.keyCode===KeyCode.ENTER||Gt.which===KeyCode.ENTER)&&vr()},xr=typeof Kt=="function"?Kt(ht):React$8.createElement("i",{className:"arrow"});xr&&(xr=React$8.createElement("div",{className:"".concat(kt,"-expand-icon"),onClick:["header","icon"].includes(Mt)?vr:void 0},xr));var rr=cls(_defineProperty$1(_defineProperty$1(_defineProperty$1({},"".concat(kt,"-item"),!0),"".concat(kt,"-item-active"),At),"".concat(kt,"-item-disabled"),cr),Ft),Lt=cls($t,_defineProperty$1(_defineProperty$1(_defineProperty$1({},"".concat(kt,"-header"),!0),"".concat(kt,"-header-collapsible-only"),Er),"".concat(kt,"-icon-collapsible-only"),pr)),Ht={className:Lt,"aria-expanded":At,"aria-disabled":cr,onKeyDown:yr};return!Er&&!pr&&(Ht.onClick=vr,Ht.role=Nt?"tab":"button",Ht.tabIndex=cr?-1:0),React$8.createElement("div",_extends$5({},dr,{ref:Et,className:rr}),React$8.createElement("div",Ht,Ct&&xr,React$8.createElement("span",{className:"".concat(kt,"-header-text"),onClick:Mt==="header"?vr:void 0},Vt),gr&&React$8.createElement("div",{className:"".concat(kt,"-extra")},zt)),React$8.createElement(CSSMotion,_extends$5({visible:At,leavedClassName:"".concat(kt,"-content-hidden")},Xt,{forceRender:Dt,removeOnLeave:Qt}),function(Wt,Gt){var Yt=Wt.className,er=Wt.style;return React$8.createElement(PanelContent,{ref:Gt,prefixCls:kt,className:Yt,style:er,isActive:At,forceRender:Dt,role:Nt?"tabpanel":void 0},Zt)}))}),_excluded$g=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],convertItemsToNodes=function ht(Et,yt){var Ct=yt.prefixCls,$t=yt.accordion,At=yt.collapsible,Bt=yt.destroyInactivePanel,Dt=yt.onItemClick,Ft=yt.activeKey,kt=yt.openMotion,Mt=yt.expandIcon;return Et.map(function(Nt,jt){var zt=Nt.children,Vt=Nt.label,Kt=Nt.key,Xt=Nt.collapsible,Qt=Nt.onItemClick,Zt=Nt.destroyInactivePanel,dr=_objectWithoutProperties$1(Nt,_excluded$g),cr=String(Kt??jt),Er=Xt??At,pr=Zt??Bt,gr=function(xr){Er!=="disabled"&&(Dt(xr),Qt==null||Qt(xr))},vr=!1;return $t?vr=Ft[0]===cr:vr=Ft.indexOf(cr)>-1,React$8.createElement(CollapsePanel$1,_extends$5({},dr,{prefixCls:Ct,key:cr,panelKey:cr,isActive:vr,accordion:$t,openMotion:kt,expandIcon:Mt,header:Vt,collapsible:Er,onItemClick:gr,destroyInactivePanel:pr}),zt)})},getNewChild=function ht(Et,yt,Ct){if(!Et)return null;var $t=Ct.prefixCls,At=Ct.accordion,Bt=Ct.collapsible,Dt=Ct.destroyInactivePanel,Ft=Ct.onItemClick,kt=Ct.activeKey,Mt=Ct.openMotion,Nt=Ct.expandIcon,jt=Et.key||String(yt),zt=Et.props,Vt=zt.header,Kt=zt.headerClass,Xt=zt.destroyInactivePanel,Qt=zt.collapsible,Zt=zt.onItemClick,dr=!1;At?dr=kt[0]===jt:dr=kt.indexOf(jt)>-1;var cr=Qt??Bt,Er=function(vr){cr!=="disabled"&&(Ft(vr),Zt==null||Zt(vr))},pr={key:jt,panelKey:jt,header:Vt,headerClass:Kt,isActive:dr,prefixCls:$t,destroyInactivePanel:Xt??Dt,openMotion:Mt,accordion:At,children:Et.props.children,onItemClick:Er,expandIcon:Nt,collapsible:cr};return typeof Et.type=="string"?Et:(Object.keys(pr).forEach(function(gr){typeof pr[gr]>"u"&&delete pr[gr]}),React$8.cloneElement(Et,pr))};function useItems(ht,Et,yt){return Array.isArray(ht)?convertItemsToNodes(ht,yt):toArray$5(Et).map(function(Ct,$t){return getNewChild(Ct,$t,yt)})}function getActiveKeysArray(ht){var Et=ht;if(!Array.isArray(Et)){var yt=_typeof$1(Et);Et=yt==="number"||yt==="string"?[Et]:[]}return Et.map(function(Ct){return String(Ct)})}var Collapse$2=React$8.forwardRef(function(ht,Et){var yt=ht.prefixCls,Ct=yt===void 0?"rc-collapse":yt,$t=ht.destroyInactivePanel,At=$t===void 0?!1:$t,Bt=ht.style,Dt=ht.accordion,Ft=ht.className,kt=ht.children,Mt=ht.collapsible,Nt=ht.openMotion,jt=ht.expandIcon,zt=ht.activeKey,Vt=ht.defaultActiveKey,Kt=ht.onChange,Xt=ht.items,Qt=cls(Ct,Ft),Zt=useMergedState([],{value:zt,onChange:function(yr){return Kt==null?void 0:Kt(yr)},defaultValue:Vt,postState:getActiveKeysArray}),dr=_slicedToArray(Zt,2),cr=dr[0],Er=dr[1],pr=function(yr){return Er(function(){if(Dt)return cr[0]===yr?[]:[yr];var xr=cr.indexOf(yr),rr=xr>-1;return rr?cr.filter(function(Lt){return Lt!==yr}):[].concat(_toConsumableArray(cr),[yr])})};warningOnce(!kt,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var gr=useItems(Xt,kt,{prefixCls:Ct,accordion:Dt,openMotion:Nt,expandIcon:jt,collapsible:Mt,destroyInactivePanel:At,onItemClick:pr,activeKey:cr});return React$8.createElement("div",_extends$5({ref:Et,className:Qt,style:Bt,role:Dt?"tablist":void 0},pickAttrs(ht,{aria:!0,data:!0})),gr)});const Collapse$3=Object.assign(Collapse$2,{Panel:CollapsePanel$1});Collapse$3.Panel;const CollapsePanel=reactExports.forwardRef((ht,Et)=>{const{getPrefixCls:yt}=reactExports.useContext(ConfigContext$1),{prefixCls:Ct,className:$t,showArrow:At=!0}=ht,Bt=yt("collapse",Ct),Dt=cls({[`${Bt}-no-arrow`]:!At},$t);return reactExports.createElement(Collapse$3.Panel,Object.assign({ref:Et},ht,{prefixCls:Bt,className:Dt}))}),genBaseStyle$1=ht=>{const{componentCls:Et,contentBg:yt,padding:Ct,headerBg:$t,headerPadding:At,collapseHeaderPaddingSM:Bt,collapseHeaderPaddingLG:Dt,collapsePanelBorderRadius:Ft,lineWidth:kt,lineType:Mt,colorBorder:Nt,colorText:jt,colorTextHeading:zt,colorTextDisabled:Vt,fontSizeLG:Kt,lineHeight:Xt,lineHeightLG:Qt,marginSM:Zt,paddingSM:dr,paddingLG:cr,paddingXS:Er,motionDurationSlow:pr,fontSizeIcon:gr,contentPadding:vr,fontHeight:yr,fontHeightLG:xr}=ht,rr=`${unit(kt)} ${Mt} ${Nt}`;return{[Et]:Object.assign(Object.assign({},resetComponent(ht)),{backgroundColor:$t,border:rr,borderRadius:Ft,"&-rtl":{direction:"rtl"},[`& > ${Et}-item`]:{borderBottom:rr,"&:last-child":{[`
            &,
            & > ${Et}-header`]:{borderRadius:`0 0 ${unit(Ft)} ${unit(Ft)}`}},[`> ${Et}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:At,color:zt,lineHeight:Xt,cursor:"pointer",transition:`all ${pr}, visibility 0s`,[`> ${Et}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${Et}-expand-icon`]:{height:yr,display:"flex",alignItems:"center",paddingInlineEnd:Zt},[`${Et}-arrow`]:Object.assign(Object.assign({},resetIcon()),{fontSize:gr,transition:`transform ${pr}`,svg:{transition:`transform ${pr}`}}),[`${Et}-header-text`]:{marginInlineEnd:"auto"}},[`${Et}-icon-collapsible-only`]:{cursor:"unset",[`${Et}-expand-icon`]:{cursor:"pointer"}}},[`${Et}-content`]:{color:jt,backgroundColor:yt,borderTop:rr,[`& > ${Et}-content-box`]:{padding:vr},"&-hidden":{display:"none"}},"&-small":{[`> ${Et}-item`]:{[`> ${Et}-header`]:{padding:Bt,paddingInlineStart:Er,[`> ${Et}-expand-icon`]:{marginInlineStart:ht.calc(dr).sub(Er).equal()}},[`> ${Et}-content > ${Et}-content-box`]:{padding:dr}}},"&-large":{[`> ${Et}-item`]:{fontSize:Kt,lineHeight:Qt,[`> ${Et}-header`]:{padding:Dt,paddingInlineStart:Ct,[`> ${Et}-expand-icon`]:{height:xr,marginInlineStart:ht.calc(cr).sub(Ct).equal()}},[`> ${Et}-content > ${Et}-content-box`]:{padding:cr}}},[`${Et}-item:last-child`]:{borderBottom:0,[`> ${Et}-content`]:{borderRadius:`0 0 ${unit(Ft)} ${unit(Ft)}`}},[`& ${Et}-item-disabled > ${Et}-header`]:{"\n          &,\n          & > .arrow\n        ":{color:Vt,cursor:"not-allowed"}},[`&${Et}-icon-position-end`]:{[`& > ${Et}-item`]:{[`> ${Et}-header`]:{[`${Et}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:Zt}}}}})}},genArrowStyle=ht=>{const{componentCls:Et}=ht,yt=`> ${Et}-item > ${Et}-header ${Et}-arrow`;return{[`${Et}-rtl`]:{[yt]:{transform:"rotate(180deg)"}}}},genBorderlessStyle=ht=>{const{componentCls:Et,headerBg:yt,paddingXXS:Ct,colorBorder:$t}=ht;return{[`${Et}-borderless`]:{backgroundColor:yt,border:0,[`> ${Et}-item`]:{borderBottom:`1px solid ${$t}`},[`
        > ${Et}-item:last-child,
        > ${Et}-item:last-child ${Et}-header
      `]:{borderRadius:0},[`> ${Et}-item:last-child`]:{borderBottom:0},[`> ${Et}-item > ${Et}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${Et}-item > ${Et}-content > ${Et}-content-box`]:{paddingTop:Ct}}}},genGhostStyle=ht=>{const{componentCls:Et,paddingSM:yt}=ht;return{[`${Et}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${Et}-item`]:{borderBottom:0,[`> ${Et}-content`]:{backgroundColor:"transparent",border:0,[`> ${Et}-content-box`]:{paddingBlock:yt}}}}}},prepareComponentToken$9=ht=>({headerPadding:`${ht.paddingSM}px ${ht.padding}px`,headerBg:ht.colorFillAlter,contentPadding:`${ht.padding}px 16px`,contentBg:ht.colorBgContainer}),useStyle$a=genStyleHooks("Collapse",ht=>{const Et=merge$2(ht,{collapseHeaderPaddingSM:`${unit(ht.paddingXS)} ${unit(ht.paddingSM)}`,collapseHeaderPaddingLG:`${unit(ht.padding)} ${unit(ht.paddingLG)}`,collapsePanelBorderRadius:ht.borderRadiusLG});return[genBaseStyle$1(Et),genBorderlessStyle(Et),genGhostStyle(Et),genArrowStyle(Et),genCollapseMotion(Et)]},prepareComponentToken$9),Collapse=reactExports.forwardRef((ht,Et)=>{const{getPrefixCls:yt,direction:Ct,collapse:$t}=reactExports.useContext(ConfigContext$1),{prefixCls:At,className:Bt,rootClassName:Dt,style:Ft,bordered:kt=!0,ghost:Mt,size:Nt,expandIconPosition:jt="start",children:zt,expandIcon:Vt}=ht,Kt=useSize(rr=>{var Lt;return(Lt=Nt??rr)!==null&&Lt!==void 0?Lt:"middle"}),Xt=yt("collapse",At),Qt=yt(),[Zt,dr,cr]=useStyle$a(Xt),Er=reactExports.useMemo(()=>jt==="left"?"start":jt==="right"?"end":jt,[jt]),pr=Vt??($t==null?void 0:$t.expandIcon),gr=reactExports.useCallback(function(){let rr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const Lt=typeof pr=="function"?pr(rr):reactExports.createElement(RefIcon$j,{rotate:rr.isActive?90:void 0,"aria-label":rr.isActive?"expanded":"collapsed"});return cloneElement(Lt,()=>{var Ht;return{className:cls((Ht=Lt==null?void 0:Lt.props)===null||Ht===void 0?void 0:Ht.className,`${Xt}-arrow`)}})},[pr,Xt]),vr=cls(`${Xt}-icon-position-${Er}`,{[`${Xt}-borderless`]:!kt,[`${Xt}-rtl`]:Ct==="rtl",[`${Xt}-ghost`]:!!Mt,[`${Xt}-${Kt}`]:Kt!=="middle"},$t==null?void 0:$t.className,Bt,Dt,dr,cr),yr=Object.assign(Object.assign({},initCollapseMotion(Qt)),{motionAppear:!1,leavedClassName:`${Xt}-content-hidden`}),xr=reactExports.useMemo(()=>zt?toArray$5(zt).map((rr,Lt)=>{var Ht,Wt;if(!((Ht=rr.props)===null||Ht===void 0)&&Ht.disabled){const Gt=(Wt=rr.key)!==null&&Wt!==void 0?Wt:String(Lt),{disabled:Yt,collapsible:er}=rr.props,lr=Object.assign(Object.assign({},omit$1(rr.props,["disabled"])),{key:Gt,collapsible:er??(Yt?"disabled":void 0)});return cloneElement(rr,lr)}return rr}):null,[zt]);return Zt(reactExports.createElement(Collapse$3,Object.assign({ref:Et,openMotion:yr},omit$1(ht,["rootClassName"]),{expandIcon:gr,prefixCls:Xt,className:vr,style:Object.assign(Object.assign({},$t==null?void 0:$t.style),Ft)}),xr))}),Collapse$1=Object.assign(Collapse,{Panel:CollapsePanel}),genSharedDividerStyle=ht=>{const{componentCls:Et,sizePaddingEdgeHorizontal:yt,colorSplit:Ct,lineWidth:$t,textPaddingInline:At,orientationMargin:Bt,verticalMarginInline:Dt}=ht;return{[Et]:Object.assign(Object.assign({},resetComponent(ht)),{borderBlockStart:`${unit($t)} solid ${Ct}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:Dt,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${unit($t)} solid ${Ct}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${unit(ht.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${Et}-with-text`]:{display:"flex",alignItems:"center",margin:`${unit(ht.dividerHorizontalWithTextGutterMargin)} 0`,color:ht.colorTextHeading,fontWeight:500,fontSize:ht.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${Ct}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${unit($t)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${Et}-with-text-left`]:{"&::before":{width:`calc(${Bt} * 100%)`},"&::after":{width:`calc(100% - ${Bt} * 100%)`}},[`&-horizontal${Et}-with-text-right`]:{"&::before":{width:`calc(100% - ${Bt} * 100%)`},"&::after":{width:`calc(${Bt} * 100%)`}},[`${Et}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:At},"&-dashed":{background:"none",borderColor:Ct,borderStyle:"dashed",borderWidth:`${unit($t)} 0 0`},[`&-horizontal${Et}-with-text${Et}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${Et}-dashed`]:{borderInlineStartWidth:$t,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${Et}-with-text`]:{color:ht.colorText,fontWeight:"normal",fontSize:ht.fontSize},[`&-horizontal${Et}-with-text-left${Et}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${Et}-inner-text`]:{paddingInlineStart:yt}},[`&-horizontal${Et}-with-text-right${Et}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${Et}-inner-text`]:{paddingInlineEnd:yt}}})}},prepareComponentToken$8=ht=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:ht.marginXS}),useStyle$9=genStyleHooks("Divider",ht=>{const Et=merge$2(ht,{dividerHorizontalWithTextGutterMargin:ht.margin,dividerHorizontalGutterMargin:ht.marginLG,sizePaddingEdgeHorizontal:0});return[genSharedDividerStyle(Et)]},prepareComponentToken$8,{unitless:{orientationMargin:!0}});var __rest$k=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};const Divider=ht=>{const{getPrefixCls:Et,direction:yt,divider:Ct}=reactExports.useContext(ConfigContext$1),{prefixCls:$t,type:At="horizontal",orientation:Bt="center",orientationMargin:Dt,className:Ft,rootClassName:kt,children:Mt,dashed:Nt,plain:jt,style:zt}=ht,Vt=__rest$k(ht,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Kt=Et("divider",$t),[Xt,Qt,Zt]=useStyle$9(Kt),dr=!!Mt,cr=Bt==="left"&&Dt!=null,Er=Bt==="right"&&Dt!=null,pr=cls(Kt,Ct==null?void 0:Ct.className,Qt,Zt,`${Kt}-${At}`,{[`${Kt}-with-text`]:dr,[`${Kt}-with-text-${Bt}`]:dr,[`${Kt}-dashed`]:!!Nt,[`${Kt}-plain`]:!!jt,[`${Kt}-rtl`]:yt==="rtl",[`${Kt}-no-default-orientation-margin-left`]:cr,[`${Kt}-no-default-orientation-margin-right`]:Er},Ft,kt),gr=reactExports.useMemo(()=>typeof Dt=="number"?Dt:/^\d+$/.test(Dt)?Number(Dt):Dt,[Dt]),vr=Object.assign(Object.assign({},cr&&{marginLeft:gr}),Er&&{marginRight:gr});return Xt(reactExports.createElement("div",Object.assign({className:pr,style:Object.assign(Object.assign({},Ct==null?void 0:Ct.style),zt)},Vt,{role:"separator"}),Mt&&At!=="vertical"&&reactExports.createElement("span",{className:`${Kt}-inner-text`,style:vr},Mt)))};function hasAddon(ht){return!!(ht.addonBefore||ht.addonAfter)}function hasPrefixSuffix$1(ht){return!!(ht.prefix||ht.suffix||ht.allowClear)}function cloneEvent(ht,Et,yt){var Ct=Et.cloneNode(!0),$t=Object.create(ht,{target:{value:Ct},currentTarget:{value:Ct}});return Ct.value=yt,typeof Et.selectionStart=="number"&&typeof Et.selectionEnd=="number"&&(Ct.selectionStart=Et.selectionStart,Ct.selectionEnd=Et.selectionEnd),Ct.setSelectionRange=function(){Et.setSelectionRange.apply(Et,arguments)},$t}function resolveOnChange(ht,Et,yt,Ct){if(yt){var $t=Et;if(Et.type==="click"){$t=cloneEvent(Et,ht,""),yt($t);return}if(ht.type!=="file"&&Ct!==void 0){$t=cloneEvent(Et,ht,Ct),yt($t);return}yt($t)}}function triggerFocus$1(ht,Et){if(ht){ht.focus(Et);var yt=Et||{},Ct=yt.cursor;if(Ct){var $t=ht.value.length;switch(Ct){case"start":ht.setSelectionRange(0,0);break;case"end":ht.setSelectionRange($t,$t);break;default:ht.setSelectionRange(0,$t)}}}}var BaseInput=React$8.forwardRef(function(ht,Et){var yt,Ct,$t=ht.inputElement,At=ht.children,Bt=ht.prefixCls,Dt=ht.prefix,Ft=ht.suffix,kt=ht.addonBefore,Mt=ht.addonAfter,Nt=ht.className,jt=ht.style,zt=ht.disabled,Vt=ht.readOnly,Kt=ht.focused,Xt=ht.triggerFocus,Qt=ht.allowClear,Zt=ht.value,dr=ht.handleReset,cr=ht.hidden,Er=ht.classes,pr=ht.classNames,gr=ht.dataAttrs,vr=ht.styles,yr=ht.components,xr=At??$t,rr=(yr==null?void 0:yr.affixWrapper)||"span",Lt=(yr==null?void 0:yr.groupWrapper)||"span",Ht=(yr==null?void 0:yr.wrapper)||"span",Wt=(yr==null?void 0:yr.groupAddon)||"span",Gt=reactExports.useRef(null),Yt=function(Nr){var Lr;(Lr=Gt.current)!==null&&Lr!==void 0&&Lr.contains(Nr.target)&&(Xt==null||Xt())},er=hasPrefixSuffix$1(ht),lr=reactExports.cloneElement(xr,{value:Zt,className:cls(xr.props.className,!er&&(pr==null?void 0:pr.variant))||null}),Jt=reactExports.useRef(null);if(React$8.useImperativeHandle(Et,function(){return{nativeElement:Jt.current||Gt.current}}),er){var Ut,ir=null;if(Qt){var Cr,_r=!zt&&!Vt&&Zt,$r="".concat(Bt,"-clear-icon"),Tr=_typeof$1(Qt)==="object"&&Qt!==null&&Qt!==void 0&&Qt.clearIcon?Qt.clearIcon:"✖";ir=React$8.createElement("span",{onClick:dr,onMouseDown:function(Nr){return Nr.preventDefault()},className:cls($r,(Cr={},_defineProperty$1(Cr,"".concat($r,"-hidden"),!_r),_defineProperty$1(Cr,"".concat($r,"-has-suffix"),!!Ft),Cr)),role:"button",tabIndex:-1},Tr)}var Dr="".concat(Bt,"-affix-wrapper"),Ar=cls(Dr,(Ut={},_defineProperty$1(Ut,"".concat(Bt,"-disabled"),zt),_defineProperty$1(Ut,"".concat(Dr,"-disabled"),zt),_defineProperty$1(Ut,"".concat(Dr,"-focused"),Kt),_defineProperty$1(Ut,"".concat(Dr,"-readonly"),Vt),_defineProperty$1(Ut,"".concat(Dr,"-input-with-clear-btn"),Ft&&Qt&&Zt),Ut),Er==null?void 0:Er.affixWrapper,pr==null?void 0:pr.affixWrapper,pr==null?void 0:pr.variant),Fr=(Ft||Qt)&&React$8.createElement("span",{className:cls("".concat(Bt,"-suffix"),pr==null?void 0:pr.suffix),style:vr==null?void 0:vr.suffix},ir,Ft);lr=React$8.createElement(rr,_extends$5({className:Ar,style:vr==null?void 0:vr.affixWrapper,onClick:Yt},gr==null?void 0:gr.affixWrapper,{ref:Gt}),Dt&&React$8.createElement("span",{className:cls("".concat(Bt,"-prefix"),pr==null?void 0:pr.prefix),style:vr==null?void 0:vr.prefix},Dt),lr,Fr)}if(hasAddon(ht)){var Rr="".concat(Bt,"-group"),wr="".concat(Rr,"-addon"),Sr="".concat(Rr,"-wrapper"),Br=cls("".concat(Bt,"-wrapper"),Rr,Er==null?void 0:Er.wrapper,pr==null?void 0:pr.wrapper),Or=cls(Sr,_defineProperty$1({},"".concat(Sr,"-disabled"),zt),Er==null?void 0:Er.group,pr==null?void 0:pr.groupWrapper);lr=React$8.createElement(Lt,{className:Or,ref:Jt},React$8.createElement(Ht,{className:Br},kt&&React$8.createElement(Wt,{className:wr},kt),lr,Mt&&React$8.createElement(Wt,{className:wr},Mt)))}return React$8.cloneElement(lr,{className:cls((yt=lr.props)===null||yt===void 0?void 0:yt.className,Nt)||null,style:_objectSpread2(_objectSpread2({},(Ct=lr.props)===null||Ct===void 0?void 0:Ct.style),jt),hidden:cr})}),_excluded$f=["show"];function useCount(ht,Et){return reactExports.useMemo(function(){var yt={};Et&&(yt.show=_typeof$1(Et)==="object"&&Et.formatter?Et.formatter:!!Et),yt=_objectSpread2(_objectSpread2({},yt),ht);var Ct=yt,$t=Ct.show,At=_objectWithoutProperties$1(Ct,_excluded$f);return _objectSpread2(_objectSpread2({},At),{},{show:!!$t,showFormatter:typeof $t=="function"?$t:void 0,strategy:At.strategy||function(Bt){return Bt.length}})},[ht,Et])}var _excluded$e=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Input$2=reactExports.forwardRef(function(ht,Et){var yt=ht.autoComplete,Ct=ht.onChange,$t=ht.onFocus,At=ht.onBlur,Bt=ht.onPressEnter,Dt=ht.onKeyDown,Ft=ht.prefixCls,kt=Ft===void 0?"rc-input":Ft,Mt=ht.disabled,Nt=ht.htmlSize,jt=ht.className,zt=ht.maxLength,Vt=ht.suffix,Kt=ht.showCount,Xt=ht.count,Qt=ht.type,Zt=Qt===void 0?"text":Qt,dr=ht.classes,cr=ht.classNames,Er=ht.styles,pr=ht.onCompositionStart,gr=ht.onCompositionEnd,vr=_objectWithoutProperties$1(ht,_excluded$e),yr=reactExports.useState(!1),xr=_slicedToArray(yr,2),rr=xr[0],Lt=xr[1],Ht=reactExports.useRef(!1),Wt=reactExports.useRef(null),Gt=reactExports.useRef(null),Yt=function(qr){Wt.current&&triggerFocus$1(Wt.current,qr)},er=useMergedState(ht.defaultValue,{value:ht.value}),lr=_slicedToArray(er,2),Jt=lr[0],Ut=lr[1],ir=Jt==null?"":String(Jt),Cr=reactExports.useState(null),_r=_slicedToArray(Cr,2),$r=_r[0],Tr=_r[1],Dr=useCount(Xt,Kt),Ar=Dr.max||zt,Fr=Dr.strategy(ir),Rr=!!Ar&&Fr>Ar;reactExports.useImperativeHandle(Et,function(){var Kr;return{focus:Yt,blur:function(){var Zr;(Zr=Wt.current)===null||Zr===void 0||Zr.blur()},setSelectionRange:function(Zr,dn,Xr){var un;(un=Wt.current)===null||un===void 0||un.setSelectionRange(Zr,dn,Xr)},select:function(){var Zr;(Zr=Wt.current)===null||Zr===void 0||Zr.select()},input:Wt.current,nativeElement:((Kr=Gt.current)===null||Kr===void 0?void 0:Kr.nativeElement)||Wt.current}}),reactExports.useEffect(function(){Lt(function(Kr){return Kr&&Mt?!1:Kr})},[Mt]);var wr=function(qr,Zr,dn){var Xr=Zr;if(!Ht.current&&Dr.exceedFormatter&&Dr.max&&Dr.strategy(Zr)>Dr.max){if(Xr=Dr.exceedFormatter(Zr,{max:Dr.max}),Zr!==Xr){var un,Yr;Tr([((un=Wt.current)===null||un===void 0?void 0:un.selectionStart)||0,((Yr=Wt.current)===null||Yr===void 0?void 0:Yr.selectionEnd)||0])}}else if(dn.source==="compositionEnd")return;Ut(Xr),Wt.current&&resolveOnChange(Wt.current,qr,Ct,Xr)};reactExports.useEffect(function(){if($r){var Kr;(Kr=Wt.current)===null||Kr===void 0||Kr.setSelectionRange.apply(Kr,_toConsumableArray($r))}},[$r]);var Sr=function(qr){wr(qr,qr.target.value,{source:"change"})},Br=function(qr){Ht.current=!1,wr(qr,qr.currentTarget.value,{source:"compositionEnd"}),gr==null||gr(qr)},Or=function(qr){Bt&&qr.key==="Enter"&&Bt(qr),Dt==null||Dt(qr)},Pr=function(qr){Lt(!0),$t==null||$t(qr)},Nr=function(qr){Lt(!1),At==null||At(qr)},Lr=function(qr){Ut(""),Yt(),Wt.current&&resolveOnChange(Wt.current,qr,Ct)},Wr=Rr&&"".concat(kt,"-out-of-range"),Ur=function(){var qr=omit$1(ht,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]);return React$8.createElement("input",_extends$5({autoComplete:yt},qr,{onChange:Sr,onFocus:Pr,onBlur:Nr,onKeyDown:Or,className:cls(kt,_defineProperty$1({},"".concat(kt,"-disabled"),Mt),cr==null?void 0:cr.input),style:Er==null?void 0:Er.input,ref:Wt,size:Nt,type:Zt,onCompositionStart:function(dn){Ht.current=!0,pr==null||pr(dn)},onCompositionEnd:Br}))},jr=function(){var qr=Number(Ar)>0;if(Vt||Dr.show){var Zr=Dr.showFormatter?Dr.showFormatter({value:ir,count:Fr,maxLength:Ar}):"".concat(Fr).concat(qr?" / ".concat(Ar):"");return React$8.createElement(React$8.Fragment,null,Dr.show&&React$8.createElement("span",{className:cls("".concat(kt,"-show-count-suffix"),_defineProperty$1({},"".concat(kt,"-show-count-has-suffix"),!!Vt),cr==null?void 0:cr.count),style:_objectSpread2({},Er==null?void 0:Er.count)},Zr),Vt)}return null};return React$8.createElement(BaseInput,_extends$5({},vr,{prefixCls:kt,className:cls(jt,Wr),handleReset:Lr,value:ir,focused:rr,triggerFocus:Yt,suffix:jr(),disabled:Mt,classes:dr,classNames:cr,styles:Er}),Ur())});const Group=ht=>{const{getPrefixCls:Et,direction:yt}=reactExports.useContext(ConfigContext$1),{prefixCls:Ct,className:$t}=ht,At=Et("input-group",Ct),Bt=Et("input"),[Dt,Ft]=useStyle$d(Bt),kt=cls(At,{[`${At}-lg`]:ht.size==="large",[`${At}-sm`]:ht.size==="small",[`${At}-compact`]:ht.compact,[`${At}-rtl`]:yt==="rtl"},Ft,$t),Mt=reactExports.useContext(FormItemInputContext),Nt=reactExports.useMemo(()=>Object.assign(Object.assign({},Mt),{isFormItemInput:!1}),[Mt]);return Dt(reactExports.createElement("span",{className:kt,style:ht.style,onMouseEnter:ht.onMouseEnter,onMouseLeave:ht.onMouseLeave,onFocus:ht.onFocus,onBlur:ht.onBlur},reactExports.createElement(FormItemInputContext.Provider,{value:Nt},ht.children)))},getAllowClear=ht=>{let Et;return typeof ht=="object"&&(ht!=null&&ht.clearIcon)?Et=ht:ht&&(Et={clearIcon:React$8.createElement(RefIcon$s,null)}),Et};function useRemovePasswordTimeout(ht,Et){const yt=reactExports.useRef([]),Ct=()=>{yt.current.push(setTimeout(()=>{var $t,At,Bt,Dt;!(($t=ht.current)===null||$t===void 0)&&$t.input&&((At=ht.current)===null||At===void 0?void 0:At.input.getAttribute("type"))==="password"&&(!((Bt=ht.current)===null||Bt===void 0)&&Bt.input.hasAttribute("value"))&&((Dt=ht.current)===null||Dt===void 0||Dt.input.removeAttribute("value"))}))};return reactExports.useEffect(()=>(Et&&Ct(),()=>yt.current.forEach($t=>{$t&&clearTimeout($t)})),[]),Ct}function hasPrefixSuffix(ht){return!!(ht.prefix||ht.suffix||ht.allowClear||ht.showCount)}var __rest$j=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};function triggerFocus(ht,Et){if(!ht)return;ht.focus(Et);const{cursor:yt}=Et||{};if(yt){const Ct=ht.value.length;switch(yt){case"start":ht.setSelectionRange(0,0);break;case"end":ht.setSelectionRange(Ct,Ct);break;default:ht.setSelectionRange(0,Ct)}}}const Input$1=reactExports.forwardRef((ht,Et)=>{var yt;const{prefixCls:Ct,bordered:$t=!0,status:At,size:Bt,disabled:Dt,onBlur:Ft,onFocus:kt,suffix:Mt,allowClear:Nt,addonAfter:jt,addonBefore:zt,className:Vt,style:Kt,styles:Xt,rootClassName:Qt,onChange:Zt,classNames:dr,variant:cr}=ht,Er=__rest$j(ht,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:pr,direction:gr,input:vr}=React$8.useContext(ConfigContext$1),yr=pr("input",Ct),xr=reactExports.useRef(null),rr=useCSSVarCls(yr),[Lt,Ht,Wt]=useStyle$d(yr,rr),{compactSize:Gt,compactItemClassnames:Yt}=useCompactItemContext(yr,gr),er=useSize(Or=>{var Pr;return(Pr=Bt??Gt)!==null&&Pr!==void 0?Pr:Or}),lr=React$8.useContext(DisabledContext),Jt=Dt??lr,{status:Ut,hasFeedback:ir,feedbackIcon:Cr}=reactExports.useContext(FormItemInputContext),_r=getMergedStatus(Ut,At),$r=hasPrefixSuffix(ht)||!!ir;reactExports.useRef($r);const Tr=useRemovePasswordTimeout(xr,!0),Dr=Or=>{Tr(),Ft==null||Ft(Or)},Ar=Or=>{Tr(),kt==null||kt(Or)},Fr=Or=>{Tr(),Zt==null||Zt(Or)},Rr=(ir||Mt)&&React$8.createElement(React$8.Fragment,null,Mt,ir&&Cr),wr=getAllowClear(Nt??(vr==null?void 0:vr.allowClear)),[Sr,Br]=useVariant("input",cr,$t);return Lt(React$8.createElement(Input$2,Object.assign({ref:composeRef(Et,xr),prefixCls:yr,autoComplete:vr==null?void 0:vr.autoComplete},Er,{disabled:Jt,onBlur:Dr,onFocus:Ar,style:Object.assign(Object.assign({},vr==null?void 0:vr.style),Kt),styles:Object.assign(Object.assign({},vr==null?void 0:vr.styles),Xt),suffix:Rr,allowClear:wr,className:cls(Vt,Qt,Wt,rr,Yt,vr==null?void 0:vr.className),onChange:Fr,addonBefore:zt&&React$8.createElement(ContextIsolator,{form:!0,space:!0},zt),addonAfter:jt&&React$8.createElement(ContextIsolator,{form:!0,space:!0},jt),classNames:Object.assign(Object.assign(Object.assign({},dr),vr==null?void 0:vr.classNames),{input:cls({[`${yr}-sm`]:er==="small",[`${yr}-lg`]:er==="large",[`${yr}-rtl`]:gr==="rtl"},dr==null?void 0:dr.input,(yt=vr==null?void 0:vr.classNames)===null||yt===void 0?void 0:yt.input,Ht),variant:cls({[`${yr}-${Sr}`]:Br},getStatusClassNames(yr,_r)),affixWrapper:cls({[`${yr}-affix-wrapper-sm`]:er==="small",[`${yr}-affix-wrapper-lg`]:er==="large",[`${yr}-affix-wrapper-rtl`]:gr==="rtl"},Ht),wrapper:cls({[`${yr}-group-rtl`]:gr==="rtl"},Ht),groupWrapper:cls({[`${yr}-group-wrapper-sm`]:er==="small",[`${yr}-group-wrapper-lg`]:er==="large",[`${yr}-group-wrapper-rtl`]:gr==="rtl",[`${yr}-group-wrapper-${Sr}`]:Br},getStatusClassNames(`${yr}-group-wrapper`,_r,ir),Ht)})})))}),genOTPStyle=ht=>{const{componentCls:Et,paddingXS:yt}=ht;return{[`${Et}`]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:yt,"&-rtl":{direction:"rtl"},[`${Et}-input`]:{textAlign:"center",paddingInline:ht.paddingXXS},[`&${Et}-sm ${Et}-input`]:{paddingInline:ht.calc(ht.paddingXXS).div(2).equal()},[`&${Et}-lg ${Et}-input`]:{paddingInline:ht.paddingXS}}}},useStyle$8=genStyleHooks(["Input","OTP"],ht=>{const Et=merge$2(ht,initInputToken(ht));return[genOTPStyle(Et)]},initComponentToken$1);var __rest$i=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};const OTPInput=reactExports.forwardRef((ht,Et)=>{const{value:yt,onChange:Ct,onActiveChange:$t,index:At,mask:Bt}=ht,Dt=__rest$i(ht,["value","onChange","onActiveChange","index","mask"]),Ft=yt&&typeof Bt=="string"?Bt:yt,kt=Vt=>{Ct(At,Vt.target.value)},Mt=reactExports.useRef(null);reactExports.useImperativeHandle(Et,()=>Mt.current);const Nt=()=>{wrapperRaf(()=>{var Vt;const Kt=(Vt=Mt.current)===null||Vt===void 0?void 0:Vt.input;document.activeElement===Kt&&Kt&&Kt.select()})},jt=Vt=>{let{key:Kt}=Vt;Kt==="ArrowLeft"?$t(At-1):Kt==="ArrowRight"&&$t(At+1),Nt()},zt=Vt=>{Vt.key==="Backspace"&&!yt&&$t(At-1),Nt()};return reactExports.createElement(Input$1,Object.assign({},Dt,{ref:Mt,value:Ft,onInput:kt,onFocus:Nt,onKeyDown:jt,onKeyUp:zt,onMouseDown:Nt,onMouseUp:Nt,type:Bt===!0?"password":"text"}))});var __rest$h=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};function strToArr(ht){return(ht||"").split("")}const OTP=reactExports.forwardRef((ht,Et)=>{const{prefixCls:yt,length:Ct=6,size:$t,defaultValue:At,value:Bt,onChange:Dt,formatter:Ft,variant:kt,disabled:Mt,status:Nt,autoFocus:jt,mask:zt}=ht,Vt=__rest$h(ht,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]),{getPrefixCls:Kt,direction:Xt}=reactExports.useContext(ConfigContext$1),Qt=Kt("otp",yt),Zt=pickAttrs(Vt,{aria:!0,data:!0,attr:!0}),dr=useCSSVarCls(Qt),[cr,Er,pr]=useStyle$8(Qt,dr),gr=useSize(ir=>$t??ir),vr=reactExports.useContext(FormItemInputContext),yr=getMergedStatus(vr.status,Nt),xr=reactExports.useMemo(()=>Object.assign(Object.assign({},vr),{status:yr,hasFeedback:!1,feedbackIcon:null}),[vr,yr]),rr=reactExports.useRef(null),Lt=reactExports.useRef({});reactExports.useImperativeHandle(Et,()=>({focus:()=>{var ir;(ir=Lt.current[0])===null||ir===void 0||ir.focus()},blur:()=>{var ir;for(let Cr=0;Cr<Ct;Cr+=1)(ir=Lt.current[Cr])===null||ir===void 0||ir.blur()},nativeElement:rr.current}));const Ht=ir=>Ft?Ft(ir):ir,[Wt,Gt]=reactExports.useState(strToArr(Ht(At||"")));reactExports.useEffect(()=>{Bt!==void 0&&Gt(strToArr(Bt))},[Bt]);const Yt=useEvent(ir=>{Gt(ir),Dt&&ir.length===Ct&&ir.every(Cr=>Cr)&&ir.some((Cr,_r)=>Wt[_r]!==Cr)&&Dt(ir.join(""))}),er=useEvent((ir,Cr)=>{let _r=_toConsumableArray(Wt);for(let Tr=0;Tr<ir;Tr+=1)_r[Tr]||(_r[Tr]="");Cr.length<=1?_r[ir]=Cr:_r=_r.slice(0,ir).concat(strToArr(Cr)),_r=_r.slice(0,Ct);for(let Tr=_r.length-1;Tr>=0&&!_r[Tr];Tr-=1)_r.pop();const $r=Ht(_r.map(Tr=>Tr||" ").join(""));return _r=strToArr($r).map((Tr,Dr)=>Tr===" "&&!_r[Dr]?_r[Dr]:Tr),_r}),lr=(ir,Cr)=>{var _r;const $r=er(ir,Cr),Tr=Math.min(ir+Cr.length,Ct-1);Tr!==ir&&((_r=Lt.current[Tr])===null||_r===void 0||_r.focus()),Yt($r)},Jt=ir=>{var Cr;(Cr=Lt.current[ir])===null||Cr===void 0||Cr.focus()},Ut={variant:kt,disabled:Mt,status:yr,mask:zt};return cr(reactExports.createElement("div",Object.assign({},Zt,{ref:rr,className:cls(Qt,{[`${Qt}-sm`]:gr==="small",[`${Qt}-lg`]:gr==="large",[`${Qt}-rtl`]:Xt==="rtl"},pr,Er)}),reactExports.createElement(FormItemInputContext.Provider,{value:xr},Array.from({length:Ct}).map((ir,Cr)=>{const _r=`otp-${Cr}`,$r=Wt[Cr]||"";return reactExports.createElement(OTPInput,Object.assign({ref:Tr=>{Lt.current[Cr]=Tr},key:_r,index:Cr,size:gr,htmlSize:1,className:`${Qt}-input`,onChange:lr,value:$r,onActiveChange:Jt,autoFocus:Cr===0&&jt},Ut))}))))});var EyeInvisibleOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},EyeInvisibleOutlined=function ht(Et,yt){return reactExports.createElement(Icon$1,_extends$5({},Et,{ref:yt,icon:EyeInvisibleOutlined$1}))},RefIcon$e=reactExports.forwardRef(EyeInvisibleOutlined),EyeOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},EyeOutlined=function ht(Et,yt){return reactExports.createElement(Icon$1,_extends$5({},Et,{ref:yt,icon:EyeOutlined$1}))},RefIcon$d=reactExports.forwardRef(EyeOutlined),__rest$g=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};const defaultIconRender=ht=>ht?reactExports.createElement(RefIcon$d,null):reactExports.createElement(RefIcon$e,null),actionMap={click:"onClick",hover:"onMouseOver"},Password=reactExports.forwardRef((ht,Et)=>{const{disabled:yt,action:Ct="click",visibilityToggle:$t=!0,iconRender:At=defaultIconRender}=ht,Bt=typeof $t=="object"&&$t.visible!==void 0,[Dt,Ft]=reactExports.useState(()=>Bt?$t.visible:!1),kt=reactExports.useRef(null);reactExports.useEffect(()=>{Bt&&Ft($t.visible)},[Bt,$t]);const Mt=useRemovePasswordTimeout(kt),Nt=()=>{yt||(Dt&&Mt(),Ft(vr=>{var yr;const xr=!vr;return typeof $t=="object"&&((yr=$t.onVisibleChange)===null||yr===void 0||yr.call($t,xr)),xr}))},jt=vr=>{const yr=actionMap[Ct]||"",xr=At(Dt),rr={[yr]:Nt,className:`${vr}-icon`,key:"passwordIcon",onMouseDown:Lt=>{Lt.preventDefault()},onMouseUp:Lt=>{Lt.preventDefault()}};return reactExports.cloneElement(reactExports.isValidElement(xr)?xr:reactExports.createElement("span",null,xr),rr)},{className:zt,prefixCls:Vt,inputPrefixCls:Kt,size:Xt}=ht,Qt=__rest$g(ht,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Zt}=reactExports.useContext(ConfigContext$1),dr=Zt("input",Kt),cr=Zt("input-password",Vt),Er=$t&&jt(cr),pr=cls(cr,zt,{[`${cr}-${Xt}`]:!!Xt}),gr=Object.assign(Object.assign({},omit$1(Qt,["suffix","iconRender","visibilityToggle"])),{type:Dt?"text":"password",className:pr,prefixCls:dr,suffix:Er});return Xt&&(gr.size=Xt),reactExports.createElement(Input$1,Object.assign({ref:composeRef(Et,kt)},gr))});var __rest$f=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};const Search=reactExports.forwardRef((ht,Et)=>{const{prefixCls:yt,inputPrefixCls:Ct,className:$t,size:At,suffix:Bt,enterButton:Dt=!1,addonAfter:Ft,loading:kt,disabled:Mt,onSearch:Nt,onChange:jt,onCompositionStart:zt,onCompositionEnd:Vt}=ht,Kt=__rest$f(ht,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Xt,direction:Qt}=reactExports.useContext(ConfigContext$1),Zt=reactExports.useRef(!1),dr=Xt("input-search",yt),cr=Xt("input",Ct),{compactSize:Er}=useCompactItemContext(dr,Qt),pr=useSize(Ut=>{var ir;return(ir=At??Er)!==null&&ir!==void 0?ir:Ut}),gr=reactExports.useRef(null),vr=Ut=>{Ut!=null&&Ut.target&&Ut.type==="click"&&Nt&&Nt(Ut.target.value,Ut,{source:"clear"}),jt==null||jt(Ut)},yr=Ut=>{var ir;document.activeElement===((ir=gr.current)===null||ir===void 0?void 0:ir.input)&&Ut.preventDefault()},xr=Ut=>{var ir,Cr;Nt&&Nt((Cr=(ir=gr.current)===null||ir===void 0?void 0:ir.input)===null||Cr===void 0?void 0:Cr.value,Ut,{source:"input"})},rr=Ut=>{Zt.current||kt||xr(Ut)},Lt=typeof Dt=="boolean"?reactExports.createElement(RefIcon$k,null):null,Ht=`${dr}-button`;let Wt;const Gt=Dt||{},Yt=Gt.type&&Gt.type.__ANT_BUTTON===!0;Yt||Gt.type==="button"?Wt=cloneElement(Gt,Object.assign({onMouseDown:yr,onClick:Ut=>{var ir,Cr;(Cr=(ir=Gt==null?void 0:Gt.props)===null||ir===void 0?void 0:ir.onClick)===null||Cr===void 0||Cr.call(ir,Ut),xr(Ut)},key:"enterButton"},Yt?{className:Ht,size:pr}:{})):Wt=reactExports.createElement(Button$1,{className:Ht,type:Dt?"primary":void 0,size:pr,disabled:Mt,key:"enterButton",onMouseDown:yr,onClick:xr,loading:kt,icon:Lt},Dt),Ft&&(Wt=[Wt,cloneElement(Ft,{key:"addonAfter"})]);const er=cls(dr,{[`${dr}-rtl`]:Qt==="rtl",[`${dr}-${pr}`]:!!pr,[`${dr}-with-button`]:!!Dt},$t),lr=Ut=>{Zt.current=!0,zt==null||zt(Ut)},Jt=Ut=>{Zt.current=!1,Vt==null||Vt(Ut)};return reactExports.createElement(Input$1,Object.assign({ref:composeRef(gr,Et),onPressEnter:rr},Kt,{size:pr,onCompositionStart:lr,onCompositionEnd:Jt,prefixCls:cr,addonAfter:Wt,suffix:Bt,onChange:vr,className:er,disabled:Mt}))});var HIDDEN_TEXTAREA_STYLE=`
  min-height:0 !important;
  max-height:none !important;
  height:0 !important;
  visibility:hidden !important;
  overflow:hidden !important;
  position:absolute !important;
  z-index:-1000 !important;
  top:0 !important;
  right:0 !important;
  pointer-events: none !important;
`,SIZING_STYLE=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],computedStyleCache={},hiddenTextarea;function calculateNodeStyling(ht){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,yt=ht.getAttribute("id")||ht.getAttribute("data-reactid")||ht.getAttribute("name");if(Et&&computedStyleCache[yt])return computedStyleCache[yt];var Ct=window.getComputedStyle(ht),$t=Ct.getPropertyValue("box-sizing")||Ct.getPropertyValue("-moz-box-sizing")||Ct.getPropertyValue("-webkit-box-sizing"),At=parseFloat(Ct.getPropertyValue("padding-bottom"))+parseFloat(Ct.getPropertyValue("padding-top")),Bt=parseFloat(Ct.getPropertyValue("border-bottom-width"))+parseFloat(Ct.getPropertyValue("border-top-width")),Dt=SIZING_STYLE.map(function(kt){return"".concat(kt,":").concat(Ct.getPropertyValue(kt))}).join(";"),Ft={sizingStyle:Dt,paddingSize:At,borderSize:Bt,boxSizing:$t};return Et&&yt&&(computedStyleCache[yt]=Ft),Ft}function calculateAutoSizeStyle(ht){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ct=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;hiddenTextarea||(hiddenTextarea=document.createElement("textarea"),hiddenTextarea.setAttribute("tab-index","-1"),hiddenTextarea.setAttribute("aria-hidden","true"),document.body.appendChild(hiddenTextarea)),ht.getAttribute("wrap")?hiddenTextarea.setAttribute("wrap",ht.getAttribute("wrap")):hiddenTextarea.removeAttribute("wrap");var $t=calculateNodeStyling(ht,Et),At=$t.paddingSize,Bt=$t.borderSize,Dt=$t.boxSizing,Ft=$t.sizingStyle;hiddenTextarea.setAttribute("style","".concat(Ft,";").concat(HIDDEN_TEXTAREA_STYLE)),hiddenTextarea.value=ht.value||ht.placeholder||"";var kt=void 0,Mt=void 0,Nt,jt=hiddenTextarea.scrollHeight;if(Dt==="border-box"?jt+=Bt:Dt==="content-box"&&(jt-=At),yt!==null||Ct!==null){hiddenTextarea.value=" ";var zt=hiddenTextarea.scrollHeight-At;yt!==null&&(kt=zt*yt,Dt==="border-box"&&(kt=kt+At+Bt),jt=Math.max(kt,jt)),Ct!==null&&(Mt=zt*Ct,Dt==="border-box"&&(Mt=Mt+At+Bt),Nt=jt>Mt?"":"hidden",jt=Math.min(Mt,jt))}var Vt={height:jt,overflowY:Nt,resize:"none"};return kt&&(Vt.minHeight=kt),Mt&&(Vt.maxHeight=Mt),Vt}var _excluded$d=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],RESIZE_START=0,RESIZE_MEASURING=1,RESIZE_STABLE=2,ResizableTextArea=reactExports.forwardRef(function(ht,Et){var yt=ht,Ct=yt.prefixCls;yt.onPressEnter;var $t=yt.defaultValue,At=yt.value,Bt=yt.autoSize,Dt=yt.onResize,Ft=yt.className,kt=yt.style,Mt=yt.disabled,Nt=yt.onChange;yt.onInternalAutoSize;var jt=_objectWithoutProperties$1(yt,_excluded$d),zt=useMergedState($t,{value:At,postState:function($r){return $r??""}}),Vt=_slicedToArray(zt,2),Kt=Vt[0],Xt=Vt[1],Qt=function($r){Xt($r.target.value),Nt==null||Nt($r)},Zt=reactExports.useRef();reactExports.useImperativeHandle(Et,function(){return{textArea:Zt.current}});var dr=reactExports.useMemo(function(){return Bt&&_typeof$1(Bt)==="object"?[Bt.minRows,Bt.maxRows]:[]},[Bt]),cr=_slicedToArray(dr,2),Er=cr[0],pr=cr[1],gr=!!Bt,vr=function(){try{if(document.activeElement===Zt.current){var $r=Zt.current,Tr=$r.selectionStart,Dr=$r.selectionEnd,Ar=$r.scrollTop;Zt.current.setSelectionRange(Tr,Dr),Zt.current.scrollTop=Ar}}catch{}},yr=reactExports.useState(RESIZE_STABLE),xr=_slicedToArray(yr,2),rr=xr[0],Lt=xr[1],Ht=reactExports.useState(),Wt=_slicedToArray(Ht,2),Gt=Wt[0],Yt=Wt[1],er=function(){Lt(RESIZE_START)};useLayoutEffect$1(function(){gr&&er()},[At,Er,pr,gr]),useLayoutEffect$1(function(){if(rr===RESIZE_START)Lt(RESIZE_MEASURING);else if(rr===RESIZE_MEASURING){var _r=calculateAutoSizeStyle(Zt.current,!1,Er,pr);Lt(RESIZE_STABLE),Yt(_r)}else vr()},[rr]);var lr=reactExports.useRef(),Jt=function(){wrapperRaf.cancel(lr.current)},Ut=function($r){rr===RESIZE_STABLE&&(Dt==null||Dt($r),Bt&&(Jt(),lr.current=wrapperRaf(function(){er()})))};reactExports.useEffect(function(){return Jt},[]);var ir=gr?Gt:null,Cr=_objectSpread2(_objectSpread2({},kt),ir);return(rr===RESIZE_START||rr===RESIZE_MEASURING)&&(Cr.overflowY="hidden",Cr.overflowX="hidden"),reactExports.createElement(RefResizeObserver,{onResize:Ut,disabled:!(Bt||Dt)},reactExports.createElement("textarea",_extends$5({},jt,{ref:Zt,style:Cr,className:cls(Ct,Ft,_defineProperty$1({},"".concat(Ct,"-disabled"),Mt)),disabled:Mt,value:Kt,onChange:Qt})))}),_excluded$c=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","readOnly"],TextArea$2=React$8.forwardRef(function(ht,Et){var yt,Ct=ht.defaultValue,$t=ht.value,At=ht.onFocus,Bt=ht.onBlur,Dt=ht.onChange,Ft=ht.allowClear,kt=ht.maxLength,Mt=ht.onCompositionStart,Nt=ht.onCompositionEnd,jt=ht.suffix,zt=ht.prefixCls,Vt=zt===void 0?"rc-textarea":zt,Kt=ht.showCount,Xt=ht.count,Qt=ht.className,Zt=ht.style,dr=ht.disabled,cr=ht.hidden,Er=ht.classNames,pr=ht.styles,gr=ht.onResize,vr=ht.readOnly,yr=_objectWithoutProperties$1(ht,_excluded$c),xr=useMergedState(Ct,{value:$t,defaultValue:Ct}),rr=_slicedToArray(xr,2),Lt=rr[0],Ht=rr[1],Wt=Lt==null?"":String(Lt),Gt=React$8.useState(!1),Yt=_slicedToArray(Gt,2),er=Yt[0],lr=Yt[1],Jt=React$8.useRef(!1),Ut=React$8.useState(null),ir=_slicedToArray(Ut,2),Cr=ir[0],_r=ir[1],$r=reactExports.useRef(null),Tr=reactExports.useRef(null),Dr=function(){var kr;return(kr=Tr.current)===null||kr===void 0?void 0:kr.textArea},Ar=function(){Dr().focus()};reactExports.useImperativeHandle(Et,function(){var wn;return{resizableTextArea:Tr.current,focus:Ar,blur:function(){Dr().blur()},nativeElement:((wn=$r.current)===null||wn===void 0?void 0:wn.nativeElement)||Dr()}}),reactExports.useEffect(function(){lr(function(wn){return!dr&&wn})},[dr]);var Fr=React$8.useState(null),Rr=_slicedToArray(Fr,2),wr=Rr[0],Sr=Rr[1];React$8.useEffect(function(){if(wr){var wn;(wn=Dr()).setSelectionRange.apply(wn,_toConsumableArray(wr))}},[wr]);var Br=useCount(Xt,Kt),Or=(yt=Br.max)!==null&&yt!==void 0?yt:kt,Pr=Number(Or)>0,Nr=Br.strategy(Wt),Lr=!!Or&&Nr>Or,Wr=function(kr,Mr){var Ir=Mr;!Jt.current&&Br.exceedFormatter&&Br.max&&Br.strategy(Mr)>Br.max&&(Ir=Br.exceedFormatter(Mr,{max:Br.max}),Mr!==Ir&&Sr([Dr().selectionStart||0,Dr().selectionEnd||0])),Ht(Ir),resolveOnChange(kr.currentTarget,kr,Dt,Ir)},Ur=function(kr){Jt.current=!0,Mt==null||Mt(kr)},jr=function(kr){Jt.current=!1,Wr(kr,kr.currentTarget.value),Nt==null||Nt(kr)},Kr=function(kr){Wr(kr,kr.target.value)},qr=function(kr){var Mr=yr.onPressEnter,Ir=yr.onKeyDown;kr.key==="Enter"&&Mr&&Mr(kr),Ir==null||Ir(kr)},Zr=function(kr){lr(!0),At==null||At(kr)},dn=function(kr){lr(!1),Bt==null||Bt(kr)},Xr=function(kr){Ht(""),Ar(),resolveOnChange(Dr(),kr,Dt)},un=jt,Yr;Br.show&&(Br.showFormatter?Yr=Br.showFormatter({value:Wt,count:Nr,maxLength:Or}):Yr="".concat(Nr).concat(Pr?" / ".concat(Or):""),un=React$8.createElement(React$8.Fragment,null,un,React$8.createElement("span",{className:cls("".concat(Vt,"-data-count"),Er==null?void 0:Er.count),style:pr==null?void 0:pr.count},Yr)));var Gr=function(kr){var Mr;gr==null||gr(kr),(Mr=Dr())!==null&&Mr!==void 0&&Mr.style.height&&_r(!0)},Jr=!yr.autoSize&&!Kt&&!Ft;return React$8.createElement(BaseInput,{ref:$r,value:Wt,allowClear:Ft,handleReset:Xr,suffix:un,prefixCls:Vt,classNames:_objectSpread2(_objectSpread2({},Er),{},{affixWrapper:cls(Er==null?void 0:Er.affixWrapper,_defineProperty$1(_defineProperty$1({},"".concat(Vt,"-show-count"),Kt),"".concat(Vt,"-textarea-allow-clear"),Ft))}),disabled:dr,focused:er,className:cls(Qt,Lr&&"".concat(Vt,"-out-of-range")),style:_objectSpread2(_objectSpread2({},Zt),Cr&&!Jr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Yr=="string"?Yr:void 0}},hidden:cr,readOnly:vr},React$8.createElement(ResizableTextArea,_extends$5({},yr,{maxLength:kt,onKeyDown:qr,onChange:Kr,onFocus:Zr,onBlur:dn,onCompositionStart:Ur,onCompositionEnd:jr,className:cls(Er==null?void 0:Er.textarea),style:_objectSpread2(_objectSpread2({},pr==null?void 0:pr.textarea),{},{resize:Zt==null?void 0:Zt.resize}),disabled:dr,prefixCls:Vt,onResize:Gr,ref:Tr,readOnly:vr})))}),__rest$e=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};const TextArea$1=reactExports.forwardRef((ht,Et)=>{var yt,Ct;const{prefixCls:$t,bordered:At=!0,size:Bt,disabled:Dt,status:Ft,allowClear:kt,classNames:Mt,rootClassName:Nt,className:jt,style:zt,styles:Vt,variant:Kt}=ht,Xt=__rest$e(ht,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:Qt,direction:Zt,textArea:dr}=reactExports.useContext(ConfigContext$1),cr=useSize(Bt),Er=reactExports.useContext(DisabledContext),pr=Dt??Er,{status:gr,hasFeedback:vr,feedbackIcon:yr}=reactExports.useContext(FormItemInputContext),xr=getMergedStatus(gr,Ft),rr=reactExports.useRef(null);reactExports.useImperativeHandle(Et,()=>{var Ut;return{resizableTextArea:(Ut=rr.current)===null||Ut===void 0?void 0:Ut.resizableTextArea,focus:ir=>{var Cr,_r;triggerFocus((_r=(Cr=rr.current)===null||Cr===void 0?void 0:Cr.resizableTextArea)===null||_r===void 0?void 0:_r.textArea,ir)},blur:()=>{var ir;return(ir=rr.current)===null||ir===void 0?void 0:ir.blur()}}});const Lt=Qt("input",$t),Ht=useCSSVarCls(Lt),[Wt,Gt,Yt]=useStyle$d(Lt,Ht),[er,lr]=useVariant("textArea",Kt,At),Jt=getAllowClear(kt??(dr==null?void 0:dr.allowClear));return Wt(reactExports.createElement(TextArea$2,Object.assign({autoComplete:dr==null?void 0:dr.autoComplete},Xt,{style:Object.assign(Object.assign({},dr==null?void 0:dr.style),zt),styles:Object.assign(Object.assign({},dr==null?void 0:dr.styles),Vt),disabled:pr,allowClear:Jt,className:cls(Yt,Ht,jt,Nt,dr==null?void 0:dr.className),classNames:Object.assign(Object.assign(Object.assign({},Mt),dr==null?void 0:dr.classNames),{textarea:cls({[`${Lt}-sm`]:cr==="small",[`${Lt}-lg`]:cr==="large"},Gt,Mt==null?void 0:Mt.textarea,(yt=dr==null?void 0:dr.classNames)===null||yt===void 0?void 0:yt.textarea),variant:cls({[`${Lt}-${er}`]:lr},getStatusClassNames(Lt,xr)),affixWrapper:cls(`${Lt}-textarea-affix-wrapper`,{[`${Lt}-affix-wrapper-rtl`]:Zt==="rtl",[`${Lt}-affix-wrapper-sm`]:cr==="small",[`${Lt}-affix-wrapper-lg`]:cr==="large",[`${Lt}-textarea-show-count`]:ht.showCount||((Ct=ht.count)===null||Ct===void 0?void 0:Ct.show)},Gt)}),prefixCls:Lt,suffix:vr&&reactExports.createElement("span",{className:`${Lt}-textarea-suffix`},yr),ref:rr})))}),Input=Input$1;Input.Group=Group;Input.Search=Search;Input.TextArea=TextArea$1;Input.Password=Password;Input.OTP=OTP;var DrawerContext=reactExports.createContext(null),RefContext=reactExports.createContext({}),_excluded$b=["prefixCls","className","containerRef"],DrawerPanel$1=function ht(Et){var yt=Et.prefixCls,Ct=Et.className,$t=Et.containerRef,At=_objectWithoutProperties$1(Et,_excluded$b),Bt=reactExports.useContext(RefContext),Dt=Bt.panel,Ft=useComposeRef(Dt,$t);return reactExports.createElement("div",_extends$5({className:cls("".concat(yt,"-content"),Ct),role:"dialog",ref:Ft},pickAttrs(Et,{aria:!0}),{"aria-modal":"true"},At))};function parseWidthHeight(ht){return typeof ht=="string"&&String(Number(ht))===ht?(warningOnce(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(ht)):ht}var sentinelStyle={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function DrawerPopup(ht,Et){var yt,Ct,$t,At=ht.prefixCls,Bt=ht.open,Dt=ht.placement,Ft=ht.inline,kt=ht.push,Mt=ht.forceRender,Nt=ht.autoFocus,jt=ht.keyboard,zt=ht.classNames,Vt=ht.rootClassName,Kt=ht.rootStyle,Xt=ht.zIndex,Qt=ht.className,Zt=ht.id,dr=ht.style,cr=ht.motion,Er=ht.width,pr=ht.height,gr=ht.children,vr=ht.mask,yr=ht.maskClosable,xr=ht.maskMotion,rr=ht.maskClassName,Lt=ht.maskStyle,Ht=ht.afterOpenChange,Wt=ht.onClose,Gt=ht.onMouseEnter,Yt=ht.onMouseOver,er=ht.onMouseLeave,lr=ht.onClick,Jt=ht.onKeyDown,Ut=ht.onKeyUp,ir=ht.styles,Cr=ht.drawerRender,_r=reactExports.useRef(),$r=reactExports.useRef(),Tr=reactExports.useRef();reactExports.useImperativeHandle(Et,function(){return _r.current});var Dr=function(Zr){var dn=Zr.keyCode,Xr=Zr.shiftKey;switch(dn){case KeyCode.TAB:{if(dn===KeyCode.TAB){if(!Xr&&document.activeElement===Tr.current){var un;(un=$r.current)===null||un===void 0||un.focus({preventScroll:!0})}else if(Xr&&document.activeElement===$r.current){var Yr;(Yr=Tr.current)===null||Yr===void 0||Yr.focus({preventScroll:!0})}}break}case KeyCode.ESC:{Wt&&jt&&(Zr.stopPropagation(),Wt(Zr));break}}};reactExports.useEffect(function(){if(Bt&&Nt){var qr;(qr=_r.current)===null||qr===void 0||qr.focus({preventScroll:!0})}},[Bt]);var Ar=reactExports.useState(!1),Fr=_slicedToArray(Ar,2),Rr=Fr[0],wr=Fr[1],Sr=reactExports.useContext(DrawerContext),Br;typeof kt=="boolean"?Br=kt?{}:{distance:0}:Br=kt||{};var Or=(yt=(Ct=($t=Br)===null||$t===void 0?void 0:$t.distance)!==null&&Ct!==void 0?Ct:Sr==null?void 0:Sr.pushDistance)!==null&&yt!==void 0?yt:180,Pr=reactExports.useMemo(function(){return{pushDistance:Or,push:function(){wr(!0)},pull:function(){wr(!1)}}},[Or]);reactExports.useEffect(function(){if(Bt){var qr;Sr==null||(qr=Sr.push)===null||qr===void 0||qr.call(Sr)}else{var Zr;Sr==null||(Zr=Sr.pull)===null||Zr===void 0||Zr.call(Sr)}},[Bt]),reactExports.useEffect(function(){return function(){var qr;Sr==null||(qr=Sr.pull)===null||qr===void 0||qr.call(Sr)}},[]);var Nr=vr&&reactExports.createElement(CSSMotion,_extends$5({key:"mask"},xr,{visible:Bt}),function(qr,Zr){var dn=qr.className,Xr=qr.style;return reactExports.createElement("div",{className:cls("".concat(At,"-mask"),dn,zt==null?void 0:zt.mask,rr),style:_objectSpread2(_objectSpread2(_objectSpread2({},Xr),Lt),ir==null?void 0:ir.mask),onClick:yr&&Bt?Wt:void 0,ref:Zr})}),Lr=typeof cr=="function"?cr(Dt):cr,Wr={};if(Rr&&Or)switch(Dt){case"top":Wr.transform="translateY(".concat(Or,"px)");break;case"bottom":Wr.transform="translateY(".concat(-Or,"px)");break;case"left":Wr.transform="translateX(".concat(Or,"px)");break;default:Wr.transform="translateX(".concat(-Or,"px)");break}Dt==="left"||Dt==="right"?Wr.width=parseWidthHeight(Er):Wr.height=parseWidthHeight(pr);var Ur={onMouseEnter:Gt,onMouseOver:Yt,onMouseLeave:er,onClick:lr,onKeyDown:Jt,onKeyUp:Ut},jr=reactExports.createElement(CSSMotion,_extends$5({key:"panel"},Lr,{visible:Bt,forceRender:Mt,onVisibleChanged:function(Zr){Ht==null||Ht(Zr)},removeOnLeave:!1,leavedClassName:"".concat(At,"-content-wrapper-hidden")}),function(qr,Zr){var dn=qr.className,Xr=qr.style,un=reactExports.createElement(DrawerPanel$1,_extends$5({id:Zt,containerRef:Zr,prefixCls:At,className:cls(Qt,zt==null?void 0:zt.content),style:_objectSpread2(_objectSpread2({},dr),ir==null?void 0:ir.content)},pickAttrs(ht,{aria:!0}),Ur),gr);return reactExports.createElement("div",_extends$5({className:cls("".concat(At,"-content-wrapper"),zt==null?void 0:zt.wrapper,dn),style:_objectSpread2(_objectSpread2(_objectSpread2({},Wr),Xr),ir==null?void 0:ir.wrapper)},pickAttrs(ht,{data:!0})),Cr?Cr(un):un)}),Kr=_objectSpread2({},Kt);return Xt&&(Kr.zIndex=Xt),reactExports.createElement(DrawerContext.Provider,{value:Pr},reactExports.createElement("div",{className:cls(At,"".concat(At,"-").concat(Dt),Vt,_defineProperty$1(_defineProperty$1({},"".concat(At,"-open"),Bt),"".concat(At,"-inline"),Ft)),style:Kr,tabIndex:-1,ref:_r,onKeyDown:Dr},Nr,reactExports.createElement("div",{tabIndex:0,ref:$r,style:sentinelStyle,"aria-hidden":"true","data-sentinel":"start"}),jr,reactExports.createElement("div",{tabIndex:0,ref:Tr,style:sentinelStyle,"aria-hidden":"true","data-sentinel":"end"})))}var RefDrawerPopup=reactExports.forwardRef(DrawerPopup),Drawer$1=function ht(Et){var yt=Et.open,Ct=yt===void 0?!1:yt,$t=Et.prefixCls,At=$t===void 0?"rc-drawer":$t,Bt=Et.placement,Dt=Bt===void 0?"right":Bt,Ft=Et.autoFocus,kt=Ft===void 0?!0:Ft,Mt=Et.keyboard,Nt=Mt===void 0?!0:Mt,jt=Et.width,zt=jt===void 0?378:jt,Vt=Et.mask,Kt=Vt===void 0?!0:Vt,Xt=Et.maskClosable,Qt=Xt===void 0?!0:Xt,Zt=Et.getContainer,dr=Et.forceRender,cr=Et.afterOpenChange,Er=Et.destroyOnClose,pr=Et.onMouseEnter,gr=Et.onMouseOver,vr=Et.onMouseLeave,yr=Et.onClick,xr=Et.onKeyDown,rr=Et.onKeyUp,Lt=Et.panelRef,Ht=reactExports.useState(!1),Wt=_slicedToArray(Ht,2),Gt=Wt[0],Yt=Wt[1],er=reactExports.useState(!1),lr=_slicedToArray(er,2),Jt=lr[0],Ut=lr[1];useLayoutEffect$1(function(){Ut(!0)},[]);var ir=Jt?Ct:!1,Cr=reactExports.useRef(),_r=reactExports.useRef();useLayoutEffect$1(function(){ir&&(_r.current=document.activeElement)},[ir]);var $r=function(Rr){var wr;if(Yt(Rr),cr==null||cr(Rr),!Rr&&_r.current&&!((wr=Cr.current)!==null&&wr!==void 0&&wr.contains(_r.current))){var Sr;(Sr=_r.current)===null||Sr===void 0||Sr.focus({preventScroll:!0})}},Tr=reactExports.useMemo(function(){return{panel:Lt}},[Lt]);if(!dr&&!Gt&&!ir&&Er)return null;var Dr={onMouseEnter:pr,onMouseOver:gr,onMouseLeave:vr,onClick:yr,onKeyDown:xr,onKeyUp:rr},Ar=_objectSpread2(_objectSpread2({},Et),{},{open:ir,prefixCls:At,placement:Dt,autoFocus:kt,keyboard:Nt,width:zt,mask:Kt,maskClosable:Qt,inline:Zt===!1,afterOpenChange:$r,ref:Cr},Dr);return reactExports.createElement(RefContext.Provider,{value:Tr},reactExports.createElement(Portal,{open:ir||dr||Gt,autoDestroy:!1,getContainer:Zt,autoLock:Kt&&(ir||Gt)},reactExports.createElement(RefDrawerPopup,Ar)))};const DrawerPanel=ht=>{var Et,yt;const{prefixCls:Ct,title:$t,footer:At,extra:Bt,loading:Dt,onClose:Ft,headerStyle:kt,bodyStyle:Mt,footerStyle:Nt,children:jt,classNames:zt,styles:Vt}=ht,{drawer:Kt}=reactExports.useContext(ConfigContext$1),Xt=reactExports.useCallback(Er=>reactExports.createElement("button",{type:"button",onClick:Ft,"aria-label":"Close",className:`${Ct}-close`},Er),[Ft]),[Qt,Zt]=useClosable(pickClosable(ht),pickClosable(Kt),{closable:!0,closeIconRender:Xt}),dr=reactExports.useMemo(()=>{var Er,pr;return!$t&&!Qt?null:reactExports.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(Er=Kt==null?void 0:Kt.styles)===null||Er===void 0?void 0:Er.header),kt),Vt==null?void 0:Vt.header),className:cls(`${Ct}-header`,{[`${Ct}-header-close-only`]:Qt&&!$t&&!Bt},(pr=Kt==null?void 0:Kt.classNames)===null||pr===void 0?void 0:pr.header,zt==null?void 0:zt.header)},reactExports.createElement("div",{className:`${Ct}-header-title`},Zt,$t&&reactExports.createElement("div",{className:`${Ct}-title`},$t)),Bt&&reactExports.createElement("div",{className:`${Ct}-extra`},Bt))},[Qt,Zt,Bt,kt,Ct,$t]),cr=reactExports.useMemo(()=>{var Er,pr;if(!At)return null;const gr=`${Ct}-footer`;return reactExports.createElement("div",{className:cls(gr,(Er=Kt==null?void 0:Kt.classNames)===null||Er===void 0?void 0:Er.footer,zt==null?void 0:zt.footer),style:Object.assign(Object.assign(Object.assign({},(pr=Kt==null?void 0:Kt.styles)===null||pr===void 0?void 0:pr.footer),Nt),Vt==null?void 0:Vt.footer)},At)},[At,Nt,Ct]);return reactExports.createElement(reactExports.Fragment,null,dr,reactExports.createElement("div",{className:cls(`${Ct}-body`,zt==null?void 0:zt.body,(Et=Kt==null?void 0:Kt.classNames)===null||Et===void 0?void 0:Et.body),style:Object.assign(Object.assign(Object.assign({},(yt=Kt==null?void 0:Kt.styles)===null||yt===void 0?void 0:yt.body),Mt),Vt==null?void 0:Vt.body)},Dt?reactExports.createElement(Skeleton,{active:!0,title:!1,paragraph:{rows:5},className:`${Ct}-body-skeleton`}):jt),cr)},getMoveTranslate=ht=>{const Et="100%";return{left:`translateX(-${Et})`,right:`translateX(${Et})`,top:`translateY(-${Et})`,bottom:`translateY(${Et})`}[ht]},getEnterLeaveStyle=(ht,Et)=>({"&-enter, &-appear":Object.assign(Object.assign({},ht),{"&-active":Et}),"&-leave":Object.assign(Object.assign({},Et),{"&-active":ht})}),getFadeStyle=(ht,Et)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Et}`}}},getEnterLeaveStyle({opacity:ht},{opacity:1})),getPanelMotionStyles=(ht,Et)=>[getFadeStyle(.7,Et),getEnterLeaveStyle({transform:getMoveTranslate(ht)},{transform:"none"})],genMotionStyle=ht=>{const{componentCls:Et,motionDurationSlow:yt}=ht;return{[Et]:{[`${Et}-mask-motion`]:getFadeStyle(0,yt),[`${Et}-panel-motion`]:["left","right","top","bottom"].reduce((Ct,$t)=>Object.assign(Object.assign({},Ct),{[`&-${$t}`]:getPanelMotionStyles($t,yt)}),{})}}},genDrawerStyle=ht=>{const{borderRadiusSM:Et,componentCls:yt,zIndexPopup:Ct,colorBgMask:$t,colorBgElevated:At,motionDurationSlow:Bt,motionDurationMid:Dt,paddingXS:Ft,padding:kt,paddingLG:Mt,fontSizeLG:Nt,lineHeightLG:jt,lineWidth:zt,lineType:Vt,colorSplit:Kt,marginXS:Xt,colorIcon:Qt,colorIconHover:Zt,colorBgTextHover:dr,colorBgTextActive:cr,colorText:Er,fontWeightStrong:pr,footerPaddingBlock:gr,footerPaddingInline:vr,calc:yr}=ht,xr=`${yt}-content-wrapper`;return{[yt]:{position:"fixed",inset:0,zIndex:Ct,pointerEvents:"none",color:Er,"&-pure":{position:"relative",background:At,display:"flex",flexDirection:"column",[`&${yt}-left`]:{boxShadow:ht.boxShadowDrawerLeft},[`&${yt}-right`]:{boxShadow:ht.boxShadowDrawerRight},[`&${yt}-top`]:{boxShadow:ht.boxShadowDrawerUp},[`&${yt}-bottom`]:{boxShadow:ht.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${yt}-mask`]:{position:"absolute",inset:0,zIndex:Ct,background:$t,pointerEvents:"auto"},[xr]:{position:"absolute",zIndex:Ct,maxWidth:"100vw",transition:`all ${Bt}`,"&-hidden":{display:"none"}},[`&-left > ${xr}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:ht.boxShadowDrawerLeft},[`&-right > ${xr}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:ht.boxShadowDrawerRight},[`&-top > ${xr}`]:{top:0,insetInline:0,boxShadow:ht.boxShadowDrawerUp},[`&-bottom > ${xr}`]:{bottom:0,insetInline:0,boxShadow:ht.boxShadowDrawerDown},[`${yt}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:At,pointerEvents:"auto"},[`${yt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${unit(kt)} ${unit(Mt)}`,fontSize:Nt,lineHeight:jt,borderBottom:`${unit(zt)} ${Vt} ${Kt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${yt}-extra`]:{flex:"none"},[`${yt}-close`]:Object.assign({display:"inline-flex",width:yr(Nt).add(Ft).equal(),height:yr(Nt).add(Ft).equal(),borderRadius:Et,justifyContent:"center",alignItems:"center",marginInlineEnd:Xt,color:Qt,fontWeight:pr,fontSize:Nt,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${Dt}`,textRendering:"auto","&:hover":{color:Zt,backgroundColor:dr,textDecoration:"none"},"&:active":{backgroundColor:cr}},genFocusStyle(ht)),[`${yt}-title`]:{flex:1,margin:0,fontWeight:ht.fontWeightStrong,fontSize:Nt,lineHeight:jt},[`${yt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Mt,overflow:"auto",[`${yt}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${yt}-footer`]:{flexShrink:0,padding:`${unit(gr)} ${unit(vr)}`,borderTop:`${unit(zt)} ${Vt} ${Kt}`},"&-rtl":{direction:"rtl"}}}},prepareComponentToken$7=ht=>({zIndexPopup:ht.zIndexPopupBase,footerPaddingBlock:ht.paddingXS,footerPaddingInline:ht.padding}),useStyle$7=genStyleHooks("Drawer",ht=>{const Et=merge$2(ht,{});return[genDrawerStyle(Et),genMotionStyle(Et)]},prepareComponentToken$7);var __rest$d=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};const defaultPushState={distance:180},Drawer=ht=>{const{rootClassName:Et,width:yt,height:Ct,size:$t="default",mask:At=!0,push:Bt=defaultPushState,open:Dt,afterOpenChange:Ft,onClose:kt,prefixCls:Mt,getContainer:Nt,style:jt,className:zt,visible:Vt,afterVisibleChange:Kt,maskStyle:Xt,drawerStyle:Qt,contentWrapperStyle:Zt}=ht,dr=__rest$d(ht,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:cr,getPrefixCls:Er,direction:pr,drawer:gr}=reactExports.useContext(ConfigContext$1),vr=Er("drawer",Mt),[yr,xr,rr]=useStyle$7(vr),Lt=Nt===void 0&&cr?()=>cr(document.body):Nt,Ht=cls({"no-mask":!At,[`${vr}-rtl`]:pr==="rtl"},Et,xr,rr),Wt=reactExports.useMemo(()=>yt??($t==="large"?736:378),[yt,$t]),Gt=reactExports.useMemo(()=>Ct??($t==="large"?736:378),[Ct,$t]),Yt={motionName:getTransitionName(vr,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},er=Tr=>({motionName:getTransitionName(vr,`panel-motion-${Tr}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),lr=usePanelRef(),[Jt,Ut]=useZIndex("Drawer",dr.zIndex),{classNames:ir={},styles:Cr={}}=dr,{classNames:_r={},styles:$r={}}=gr||{};return yr(reactExports.createElement(ContextIsolator,{form:!0,space:!0},reactExports.createElement(zIndexContext.Provider,{value:Ut},reactExports.createElement(Drawer$1,Object.assign({prefixCls:vr,onClose:kt,maskMotion:Yt,motion:er},dr,{classNames:{mask:cls(ir.mask,_r.mask),content:cls(ir.content,_r.content),wrapper:cls(ir.wrapper,_r.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},Cr.mask),Xt),$r.mask),content:Object.assign(Object.assign(Object.assign({},Cr.content),Qt),$r.content),wrapper:Object.assign(Object.assign(Object.assign({},Cr.wrapper),Zt),$r.wrapper)},open:Dt??Vt,mask:At,push:Bt,width:Wt,height:Gt,style:Object.assign(Object.assign({},gr==null?void 0:gr.style),jt),className:cls(gr==null?void 0:gr.className,zt),rootClassName:Ht,getContainer:Lt,afterOpenChange:Ft??Kt,panelRef:lr,zIndex:Jt}),reactExports.createElement(DrawerPanel,Object.assign({prefixCls:vr},dr,{onClose:kt}))))))},PurePanel$2=ht=>{const{prefixCls:Et,style:yt,className:Ct,placement:$t="right"}=ht,At=__rest$d(ht,["prefixCls","style","className","placement"]),{getPrefixCls:Bt}=reactExports.useContext(ConfigContext$1),Dt=Bt("drawer",Et),[Ft,kt,Mt]=useStyle$7(Dt),Nt=cls(Dt,`${Dt}-pure`,`${Dt}-${$t}`,kt,Mt,Ct);return Ft(reactExports.createElement("div",{className:Nt,style:yt},reactExports.createElement(DrawerPanel,Object.assign({prefixCls:Dt},At))))};Drawer._InternalPanelDoNotUseOrYouWillBeFired=PurePanel$2;function isPresetSize(ht){return["small","middle","large"].includes(ht)}function isValidGapNumber(ht){return ht?typeof ht=="number"&&!Number.isNaN(ht):!1}const SpaceContext=React$8.createContext({latestIndex:0}),SpaceContextProvider=SpaceContext.Provider,Item=ht=>{let{className:Et,index:yt,children:Ct,split:$t,style:At}=ht;const{latestIndex:Bt}=reactExports.useContext(SpaceContext);return Ct==null?null:reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("div",{className:Et,style:At},Ct),yt<Bt&&$t&&reactExports.createElement("span",{className:`${Et}-split`},$t))};var __rest$c=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};const InternalSpace=reactExports.forwardRef((ht,Et)=>{var yt,Ct,$t;const{getPrefixCls:At,space:Bt,direction:Dt}=reactExports.useContext(ConfigContext$1),{size:Ft=(yt=Bt==null?void 0:Bt.size)!==null&&yt!==void 0?yt:"small",align:kt,className:Mt,rootClassName:Nt,children:jt,direction:zt="horizontal",prefixCls:Vt,split:Kt,style:Xt,wrap:Qt=!1,classNames:Zt,styles:dr}=ht,cr=__rest$c(ht,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[Er,pr]=Array.isArray(Ft)?Ft:[Ft,Ft],gr=isPresetSize(pr),vr=isPresetSize(Er),yr=isValidGapNumber(pr),xr=isValidGapNumber(Er),rr=toArray$5(jt,{keepEmpty:!0}),Lt=kt===void 0&&zt==="horizontal"?"center":kt,Ht=At("space",Vt),[Wt,Gt,Yt]=useStyle$o(Ht),er=cls(Ht,Bt==null?void 0:Bt.className,Gt,`${Ht}-${zt}`,{[`${Ht}-rtl`]:Dt==="rtl",[`${Ht}-align-${Lt}`]:Lt,[`${Ht}-gap-row-${pr}`]:gr,[`${Ht}-gap-col-${Er}`]:vr},Mt,Nt,Yt),lr=cls(`${Ht}-item`,(Ct=Zt==null?void 0:Zt.item)!==null&&Ct!==void 0?Ct:($t=Bt==null?void 0:Bt.classNames)===null||$t===void 0?void 0:$t.item);let Jt=0;const Ut=rr.map((_r,$r)=>{var Tr,Dr;_r!=null&&(Jt=$r);const Ar=(_r==null?void 0:_r.key)||`${lr}-${$r}`;return reactExports.createElement(Item,{className:lr,key:Ar,index:$r,split:Kt,style:(Tr=dr==null?void 0:dr.item)!==null&&Tr!==void 0?Tr:(Dr=Bt==null?void 0:Bt.styles)===null||Dr===void 0?void 0:Dr.item},_r)}),ir=reactExports.useMemo(()=>({latestIndex:Jt}),[Jt]);if(rr.length===0)return null;const Cr={};return Qt&&(Cr.flexWrap="wrap"),!vr&&xr&&(Cr.columnGap=Er),!gr&&yr&&(Cr.rowGap=pr),Wt(reactExports.createElement("div",Object.assign({ref:Et,className:er,style:Object.assign(Object.assign(Object.assign({},Cr),Bt==null?void 0:Bt.style),Xt)},cr),reactExports.createElement(SpaceContextProvider,{value:ir},Ut)))}),Space=InternalSpace;Space.Compact=Compact;var __rest$b=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};const DropdownButton=ht=>{const{getPopupContainer:Et,getPrefixCls:yt,direction:Ct}=reactExports.useContext(ConfigContext$1),{prefixCls:$t,type:At="default",danger:Bt,disabled:Dt,loading:Ft,onClick:kt,htmlType:Mt,children:Nt,className:jt,menu:zt,arrow:Vt,autoFocus:Kt,overlay:Xt,trigger:Qt,align:Zt,open:dr,onOpenChange:cr,placement:Er,getPopupContainer:pr,href:gr,icon:vr=reactExports.createElement(RefIcon$g,null),title:yr,buttonsRender:xr=Fr=>Fr,mouseEnterDelay:rr,mouseLeaveDelay:Lt,overlayClassName:Ht,overlayStyle:Wt,destroyPopupOnHide:Gt,dropdownRender:Yt}=ht,er=__rest$b(ht,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),lr=yt("dropdown",$t),Jt=`${lr}-button`,Ut={menu:zt,arrow:Vt,autoFocus:Kt,align:Zt,disabled:Dt,trigger:Dt?[]:Qt,onOpenChange:cr,getPopupContainer:pr||Et,mouseEnterDelay:rr,mouseLeaveDelay:Lt,overlayClassName:Ht,overlayStyle:Wt,destroyPopupOnHide:Gt,dropdownRender:Yt},{compactSize:ir,compactItemClassnames:Cr}=useCompactItemContext(lr,Ct),_r=cls(Jt,Cr,jt);"overlay"in ht&&(Ut.overlay=Xt),"open"in ht&&(Ut.open=dr),"placement"in ht?Ut.placement=Er:Ut.placement=Ct==="rtl"?"bottomLeft":"bottomRight";const $r=reactExports.createElement(Button$1,{type:At,danger:Bt,disabled:Dt,loading:Ft,onClick:kt,htmlType:Mt,href:gr,title:yr},Nt),Tr=reactExports.createElement(Button$1,{type:At,danger:Bt,icon:vr}),[Dr,Ar]=xr([$r,Tr]);return reactExports.createElement(Space.Compact,Object.assign({className:_r,size:ir,block:!0},er),Dr,reactExports.createElement(Dropdown$1,Object.assign({},Ut),Ar))};DropdownButton.__ANT_BUTTON=!0;const Dropdown=Dropdown$1;Dropdown.Button=DropdownButton;function useDebounce(ht){const[Et,yt]=reactExports.useState(ht);return reactExports.useEffect(()=>{const Ct=setTimeout(()=>{yt(ht)},ht.length?0:10);return()=>{clearTimeout(Ct)}},[ht]),Et}const genFormValidateMotionStyle=ht=>{const{componentCls:Et}=ht,yt=`${Et}-show-help`,Ct=`${Et}-show-help-item`;return{[yt]:{transition:`opacity ${ht.motionDurationSlow} ${ht.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Ct]:{overflow:"hidden",transition:`height ${ht.motionDurationSlow} ${ht.motionEaseInOut},
                     opacity ${ht.motionDurationSlow} ${ht.motionEaseInOut},
                     transform ${ht.motionDurationSlow} ${ht.motionEaseInOut} !important`,[`&${Ct}-appear, &${Ct}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Ct}-leave-active`]:{transform:"translateY(-5px)"}}}}},resetForm=ht=>({legend:{display:"block",width:"100%",marginBottom:ht.marginLG,padding:0,color:ht.colorTextDescription,fontSize:ht.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${unit(ht.lineWidth)} ${ht.lineType} ${ht.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n  input[type='radio']:focus,\n  input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${unit(ht.controlOutlineWidth)} ${ht.controlOutline}`},output:{display:"block",paddingTop:15,color:ht.colorText,fontSize:ht.fontSize,lineHeight:ht.lineHeight}}),genFormSize=(ht,Et)=>{const{formItemCls:yt}=ht;return{[yt]:{[`${yt}-label > label`]:{height:Et},[`${yt}-control-input`]:{minHeight:Et}}}},genFormStyle=ht=>{const{componentCls:Et}=ht;return{[ht.componentCls]:Object.assign(Object.assign(Object.assign({},resetComponent(ht)),resetForm(ht)),{[`${Et}-text`]:{display:"inline-block",paddingInlineEnd:ht.paddingSM},"&-small":Object.assign({},genFormSize(ht,ht.controlHeightSM)),"&-large":Object.assign({},genFormSize(ht,ht.controlHeightLG))})}},genFormItemStyle=ht=>{const{formItemCls:Et,iconCls:yt,componentCls:Ct,rootPrefixCls:$t,antCls:At,labelRequiredMarkColor:Bt,labelColor:Dt,labelFontSize:Ft,labelHeight:kt,labelColonMarginInlineStart:Mt,labelColonMarginInlineEnd:Nt,itemMarginBottom:jt}=ht;return{[Et]:Object.assign(Object.assign({},resetComponent(ht)),{marginBottom:jt,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
        &-hidden${At}-row`]:{display:"none"},"&-has-warning":{[`${Et}-split`]:{color:ht.colorError}},"&-has-error":{[`${Et}-split`]:{color:ht.colorWarning}},[`${Et}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:ht.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:kt,color:Dt,fontSize:Ft,[`> ${yt}`]:{fontSize:ht.fontSize,verticalAlign:"top"},[`&${Et}-required:not(${Et}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:ht.marginXXS,color:Bt,fontSize:ht.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Ct}-hide-required-mark &`]:{display:"none"}},[`${Et}-optional`]:{display:"inline-block",marginInlineStart:ht.marginXXS,color:ht.colorTextDescription,[`${Ct}-hide-required-mark &`]:{display:"none"}},[`${Et}-tooltip`]:{color:ht.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:ht.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Mt,marginInlineEnd:Nt},[`&${Et}-no-colon::after`]:{content:'"\\a0"'}}},[`${Et}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${$t}-col-'"]):not([class*="' ${$t}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:ht.controlHeight,"&-content":{flex:"auto",maxWidth:"100%",lineHeight:"100%"}}},[Et]:{"&-explain, &-extra":{clear:"both",color:ht.colorTextDescription,fontSize:ht.fontSize,lineHeight:ht.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:ht.controlHeightSM,transition:`color ${ht.motionDurationMid} ${ht.motionEaseOut}`},"&-explain":{"&-error":{color:ht.colorError},"&-warning":{color:ht.colorWarning}}},[`&-with-help ${Et}-explain`]:{height:"auto",opacity:1},[`${Et}-feedback-icon`]:{fontSize:ht.fontSize,textAlign:"center",visibility:"visible",animationName:zoomIn,animationDuration:ht.motionDurationMid,animationTimingFunction:ht.motionEaseOutBack,pointerEvents:"none","&-success":{color:ht.colorSuccess},"&-error":{color:ht.colorError},"&-warning":{color:ht.colorWarning},"&-validating":{color:ht.colorPrimary}}})}},genHorizontalStyle=(ht,Et)=>{const{formItemCls:yt}=ht;return{[`${Et}-horizontal`]:{[`${yt}-label`]:{flexGrow:0},[`${yt}-control`]:{flex:"1 1 0",minWidth:0},[`${yt}-label[class$='-24'], ${yt}-label[class*='-24 ']`]:{[`& + ${yt}-control`]:{minWidth:"unset"}}}}},genInlineStyle=ht=>{const{componentCls:Et,formItemCls:yt,inlineItemMarginBottom:Ct}=ht;return{[`${Et}-inline`]:{display:"flex",flexWrap:"wrap",[yt]:{flex:"none",marginInlineEnd:ht.margin,marginBottom:Ct,"&-row":{flexWrap:"nowrap"},[`> ${yt}-label,
        > ${yt}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${yt}-label`]:{flex:"none"},[`${Et}-text`]:{display:"inline-block"},[`${yt}-has-feedback`]:{display:"inline-block"}}}}},makeVerticalLayoutLabel=ht=>({padding:ht.verticalLabelPadding,margin:ht.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),makeVerticalLayout=ht=>{const{componentCls:Et,formItemCls:yt,rootPrefixCls:Ct}=ht;return{[`${yt} ${yt}-label`]:makeVerticalLayoutLabel(ht),[`${Et}:not(${Et}-inline)`]:{[yt]:{flexWrap:"wrap",[`${yt}-label, ${yt}-control`]:{[`&:not([class*=" ${Ct}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},genVerticalStyle=ht=>{const{componentCls:Et,formItemCls:yt,antCls:Ct}=ht;return{[`${Et}-vertical`]:{[`${yt}:not(${yt}-horizontal)`]:{[`${yt}-row`]:{flexDirection:"column"},[`${yt}-label > label`]:{height:"auto"},[`${yt}-control`]:{width:"100%"},[`${yt}-label,
        ${Ct}-col-24${yt}-label,
        ${Ct}-col-xl-24${yt}-label`]:makeVerticalLayoutLabel(ht)}},[`@media (max-width: ${unit(ht.screenXSMax)})`]:[makeVerticalLayout(ht),{[Et]:{[`${yt}:not(${yt}-horizontal)`]:{[`${Ct}-col-xs-24${yt}-label`]:makeVerticalLayoutLabel(ht)}}}],[`@media (max-width: ${unit(ht.screenSMMax)})`]:{[Et]:{[`${yt}:not(${yt}-horizontal)`]:{[`${Ct}-col-sm-24${yt}-label`]:makeVerticalLayoutLabel(ht)}}},[`@media (max-width: ${unit(ht.screenMDMax)})`]:{[Et]:{[`${yt}:not(${yt}-horizontal)`]:{[`${Ct}-col-md-24${yt}-label`]:makeVerticalLayoutLabel(ht)}}},[`@media (max-width: ${unit(ht.screenLGMax)})`]:{[Et]:{[`${yt}:not(${yt}-horizontal)`]:{[`${Ct}-col-lg-24${yt}-label`]:makeVerticalLayoutLabel(ht)}}}}},genItemVerticalStyle=ht=>{const{formItemCls:Et,antCls:yt}=ht;return{[`${Et}-vertical`]:{[`${Et}-row`]:{flexDirection:"column"},[`${Et}-label > label`]:{height:"auto"},[`${Et}-control`]:{width:"100%"}},[`${Et}-vertical ${Et}-label,
      ${yt}-col-24${Et}-label,
      ${yt}-col-xl-24${Et}-label`]:makeVerticalLayoutLabel(ht),[`@media (max-width: ${unit(ht.screenXSMax)})`]:[makeVerticalLayout(ht),{[Et]:{[`${yt}-col-xs-24${Et}-label`]:makeVerticalLayoutLabel(ht)}}],[`@media (max-width: ${unit(ht.screenSMMax)})`]:{[Et]:{[`${yt}-col-sm-24${Et}-label`]:makeVerticalLayoutLabel(ht)}},[`@media (max-width: ${unit(ht.screenMDMax)})`]:{[Et]:{[`${yt}-col-md-24${Et}-label`]:makeVerticalLayoutLabel(ht)}},[`@media (max-width: ${unit(ht.screenLGMax)})`]:{[Et]:{[`${yt}-col-lg-24${Et}-label`]:makeVerticalLayoutLabel(ht)}}}},prepareComponentToken$6=ht=>({labelRequiredMarkColor:ht.colorError,labelColor:ht.colorTextHeading,labelFontSize:ht.fontSize,labelHeight:ht.controlHeight,labelColonMarginInlineStart:ht.marginXXS/2,labelColonMarginInlineEnd:ht.marginXS,itemMarginBottom:ht.marginLG,verticalLabelPadding:`0 0 ${ht.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),prepareToken$1=(ht,Et)=>merge$2(ht,{formItemCls:`${ht.componentCls}-item`,rootPrefixCls:Et}),useStyle$6=genStyleHooks("Form",(ht,Et)=>{let{rootPrefixCls:yt}=Et;const Ct=prepareToken$1(ht,yt);return[genFormStyle(Ct),genFormItemStyle(Ct),genFormValidateMotionStyle(Ct),genHorizontalStyle(Ct,Ct.componentCls),genHorizontalStyle(Ct,Ct.formItemCls),genInlineStyle(Ct),genVerticalStyle(Ct),genItemVerticalStyle(Ct),genCollapseMotion(Ct),zoomIn]},prepareComponentToken$6,{order:-1e3}),EMPTY_LIST$2=[];function toErrorEntity(ht,Et,yt){let Ct=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof ht=="string"?ht:`${Et}-${Ct}`,error:ht,errorStatus:yt}}const ErrorList=ht=>{let{help:Et,helpStatus:yt,errors:Ct=EMPTY_LIST$2,warnings:$t=EMPTY_LIST$2,className:At,fieldId:Bt,onVisibleChanged:Dt}=ht;const{prefixCls:Ft}=reactExports.useContext(FormItemPrefixContext),kt=`${Ft}-item-explain`,Mt=useCSSVarCls(Ft),[Nt,jt,zt]=useStyle$6(Ft,Mt),Vt=reactExports.useMemo(()=>initCollapseMotion(Ft),[Ft]),Kt=useDebounce(Ct),Xt=useDebounce($t),Qt=reactExports.useMemo(()=>Et!=null?[toErrorEntity(Et,"help",yt)]:[].concat(_toConsumableArray(Kt.map((dr,cr)=>toErrorEntity(dr,"error","error",cr))),_toConsumableArray(Xt.map((dr,cr)=>toErrorEntity(dr,"warning","warning",cr)))),[Et,yt,Kt,Xt]),Zt={};return Bt&&(Zt.id=`${Bt}_help`),Nt(reactExports.createElement(CSSMotion,{motionDeadline:Vt.motionDeadline,motionName:`${Ft}-show-help`,visible:!!Qt.length,onVisibleChanged:Dt},dr=>{const{className:cr,style:Er}=dr;return reactExports.createElement("div",Object.assign({},Zt,{className:cls(kt,cr,zt,Mt,At,jt),style:Er,role:"alert"}),reactExports.createElement(CSSMotionList,Object.assign({keys:Qt},initCollapseMotion(Ft),{motionName:`${Ft}-show-help-item`,component:!1}),pr=>{const{key:gr,error:vr,errorStatus:yr,className:xr,style:rr}=pr;return reactExports.createElement("div",{key:gr,className:cls(xr,{[`${kt}-${yr}`]:yr}),style:rr},vr)}))}))},formItemNameBlackList=["parentNode"],defaultItemNamePrefixCls="form_item";function toArray$1(ht){return ht===void 0||ht===!1?[]:Array.isArray(ht)?ht:[ht]}function getFieldId(ht,Et){if(!ht.length)return;const yt=ht.join("_");return Et?`${Et}_${yt}`:formItemNameBlackList.includes(yt)?`${defaultItemNamePrefixCls}_${yt}`:yt}function getStatus(ht,Et,yt,Ct,$t,At){let Bt=Ct;return At!==void 0?Bt=At:yt.validating?Bt="validating":ht.length?Bt="error":Et.length?Bt="warning":(yt.touched||$t&&yt.validated)&&(Bt="success"),Bt}function toNamePathStr(ht){return toArray$1(ht).join("_")}function getFieldDOMNode(ht,Et){const yt=Et.getFieldInstance(ht),Ct=getDOM(yt);if(Ct)return Ct;const $t=getFieldId(toArray$1(ht),Et.__INTERNAL__.name);if($t)return document.getElementById($t)}function useForm(ht){const[Et]=useForm$1(),yt=reactExports.useRef({}),Ct=reactExports.useMemo(()=>ht??Object.assign(Object.assign({},Et),{__INTERNAL__:{itemRef:$t=>At=>{const Bt=toNamePathStr($t);At?yt.current[Bt]=At:delete yt.current[Bt]}},scrollToField:function($t){let At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Bt=getFieldDOMNode($t,Ct);Bt&&e$3(Bt,Object.assign({scrollMode:"if-needed",block:"nearest"},At))},getFieldInstance:$t=>{const At=toNamePathStr($t);return yt.current[At]}}),[ht,Et]);return[Ct]}var __rest$a=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};const InternalForm=(ht,Et)=>{const yt=reactExports.useContext(DisabledContext),{getPrefixCls:Ct,direction:$t,form:At}=reactExports.useContext(ConfigContext$1),{prefixCls:Bt,className:Dt,rootClassName:Ft,size:kt,disabled:Mt=yt,form:Nt,colon:jt,labelAlign:zt,labelWrap:Vt,labelCol:Kt,wrapperCol:Xt,hideRequiredMark:Qt,layout:Zt="horizontal",scrollToFirstError:dr,requiredMark:cr,onFinishFailed:Er,name:pr,style:gr,feedbackIcons:vr,variant:yr}=ht,xr=__rest$a(ht,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),rr=useSize(kt),Lt=reactExports.useContext(ValidateMessagesContext),Ht=reactExports.useMemo(()=>cr!==void 0?cr:Qt?!1:At&&At.requiredMark!==void 0?At.requiredMark:!0,[Qt,cr,At]),Wt=jt??(At==null?void 0:At.colon),Gt=Ct("form",Bt),Yt=useCSSVarCls(Gt),[er,lr,Jt]=useStyle$6(Gt,Yt),Ut=cls(Gt,`${Gt}-${Zt}`,{[`${Gt}-hide-required-mark`]:Ht===!1,[`${Gt}-rtl`]:$t==="rtl",[`${Gt}-${rr}`]:rr},Jt,Yt,lr,At==null?void 0:At.className,Dt,Ft),[ir]=useForm(Nt),{__INTERNAL__:Cr}=ir;Cr.name=pr;const _r=reactExports.useMemo(()=>({name:pr,labelAlign:zt,labelCol:Kt,labelWrap:Vt,wrapperCol:Xt,vertical:Zt==="vertical",colon:Wt,requiredMark:Ht,itemRef:Cr.itemRef,form:ir,feedbackIcons:vr}),[pr,zt,Kt,Xt,Zt,Wt,Ht,ir,vr]),$r=reactExports.useRef(null);reactExports.useImperativeHandle(Et,()=>{var Ar;return Object.assign(Object.assign({},ir),{nativeElement:(Ar=$r.current)===null||Ar===void 0?void 0:Ar.nativeElement})});const Tr=(Ar,Fr)=>{if(Ar){let Rr={block:"nearest"};typeof Ar=="object"&&(Rr=Ar),ir.scrollToField(Fr,Rr)}},Dr=Ar=>{if(Er==null||Er(Ar),Ar.errorFields.length){const Fr=Ar.errorFields[0].name;if(dr!==void 0){Tr(dr,Fr);return}At&&At.scrollToFirstError!==void 0&&Tr(At.scrollToFirstError,Fr)}};return er(reactExports.createElement(VariantContext.Provider,{value:yr},reactExports.createElement(DisabledContextProvider,{disabled:Mt},reactExports.createElement(SizeContext.Provider,{value:rr},reactExports.createElement(FormProvider,{validateMessages:Lt},reactExports.createElement(FormContext.Provider,{value:_r},reactExports.createElement(RefForm,Object.assign({id:pr},xr,{name:pr,onFinishFailed:Dr,form:ir,ref:$r,style:Object.assign(Object.assign({},At==null?void 0:At.style),gr),className:Ut}))))))))},Form$1=reactExports.forwardRef(InternalForm);function useChildren(ht){if(typeof ht=="function")return ht;const Et=toArray$5(ht);return Et.length<=1?Et[0]:Et}const useFormItemStatus=()=>{const{status:ht,errors:Et=[],warnings:yt=[]}=reactExports.useContext(FormItemInputContext);return{status:ht,errors:Et,warnings:yt}};useFormItemStatus.Context=FormItemInputContext;function useFrameState(ht){const[Et,yt]=reactExports.useState(ht),Ct=reactExports.useRef(null),$t=reactExports.useRef([]),At=reactExports.useRef(!1);reactExports.useEffect(()=>(At.current=!1,()=>{At.current=!0,wrapperRaf.cancel(Ct.current),Ct.current=null}),[]);function Bt(Dt){At.current||(Ct.current===null&&($t.current=[],Ct.current=wrapperRaf(()=>{Ct.current=null,yt(Ft=>{let kt=Ft;return $t.current.forEach(Mt=>{kt=Mt(kt)}),kt})})),$t.current.push(Dt))}return[Et,Bt]}function useItemRef(){const{itemRef:ht}=reactExports.useContext(FormContext),Et=reactExports.useRef({});function yt(Ct,$t){const At=$t&&typeof $t=="object"&&$t.ref,Bt=Ct.join("_");return(Et.current.name!==Bt||Et.current.originRef!==At)&&(Et.current.name=Bt,Et.current.originRef=At,Et.current.ref=composeRef(ht(Ct),At)),Et.current.ref}return yt}const genFallbackStyle=ht=>{const{formItemCls:Et}=ht;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Et}-control`]:{display:"flex"}}}},FallbackCmp=genSubStyleComponent(["Form","item-item"],(ht,Et)=>{let{rootPrefixCls:yt}=Et;const Ct=prepareToken$1(ht,yt);return[genFallbackStyle(Ct)]}),FormItemInput=ht=>{const{prefixCls:Et,status:yt,wrapperCol:Ct,children:$t,errors:At,warnings:Bt,_internalItemRender:Dt,extra:Ft,help:kt,fieldId:Mt,marginBottom:Nt,onErrorVisibleChanged:jt}=ht,zt=`${Et}-item`,Vt=reactExports.useContext(FormContext),Kt=Ct||Vt.wrapperCol||{},Xt=cls(`${zt}-control`,Kt.className),Qt=reactExports.useMemo(()=>Object.assign({},Vt),[Vt]);delete Qt.labelCol,delete Qt.wrapperCol;const Zt=reactExports.createElement("div",{className:`${zt}-control-input`},reactExports.createElement("div",{className:`${zt}-control-input-content`},$t)),dr=reactExports.useMemo(()=>({prefixCls:Et,status:yt}),[Et,yt]),cr=Nt!==null||At.length||Bt.length?reactExports.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},reactExports.createElement(FormItemPrefixContext.Provider,{value:dr},reactExports.createElement(ErrorList,{fieldId:Mt,errors:At,warnings:Bt,help:kt,helpStatus:yt,className:`${zt}-explain-connected`,onVisibleChanged:jt})),!!Nt&&reactExports.createElement("div",{style:{width:0,height:Nt}})):null,Er={};Mt&&(Er.id=`${Mt}_extra`);const pr=Ft?reactExports.createElement("div",Object.assign({},Er,{className:`${zt}-extra`}),Ft):null,gr=Dt&&Dt.mark==="pro_table_render"&&Dt.render?Dt.render(ht,{input:Zt,errorList:cr,extra:pr}):reactExports.createElement(reactExports.Fragment,null,Zt,cr,pr);return reactExports.createElement(FormContext.Provider,{value:Qt},reactExports.createElement(Col,Object.assign({},Kt,{className:Xt}),gr),reactExports.createElement(FallbackCmp,{prefixCls:Et}))};var QuestionCircleOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},QuestionCircleOutlined=function ht(Et,yt){return reactExports.createElement(Icon$1,_extends$5({},Et,{ref:yt,icon:QuestionCircleOutlined$1}))},RefIcon$c=reactExports.forwardRef(QuestionCircleOutlined),__rest$9=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};function toTooltipProps(ht){return ht?typeof ht=="object"&&!reactExports.isValidElement(ht)?ht:{title:ht}:null}const FormItemLabel=ht=>{let{prefixCls:Et,label:yt,htmlFor:Ct,labelCol:$t,labelAlign:At,colon:Bt,required:Dt,requiredMark:Ft,tooltip:kt,vertical:Mt}=ht;var Nt;const[jt]=useLocale("Form"),{labelAlign:zt,labelCol:Vt,labelWrap:Kt,colon:Xt}=reactExports.useContext(FormContext);if(!yt)return null;const Qt=$t||Vt||{},Zt=At||zt,dr=`${Et}-item-label`,cr=cls(dr,Zt==="left"&&`${dr}-left`,Qt.className,{[`${dr}-wrap`]:!!Kt});let Er=yt;const pr=Bt===!0||Xt!==!1&&Bt!==!1;pr&&!Mt&&typeof yt=="string"&&yt.trim()&&(Er=yt.replace(/[:|:]\s*$/,""));const vr=toTooltipProps(kt);if(vr){const{icon:Lt=reactExports.createElement(RefIcon$c,null)}=vr,Ht=__rest$9(vr,["icon"]),Wt=reactExports.createElement(Tooltip,Object.assign({},Ht),reactExports.cloneElement(Lt,{className:`${Et}-item-tooltip`,title:"",onClick:Gt=>{Gt.preventDefault()},tabIndex:null}));Er=reactExports.createElement(reactExports.Fragment,null,Er,Wt)}const yr=Ft==="optional",xr=typeof Ft=="function";xr?Er=Ft(Er,{required:!!Dt}):yr&&!Dt&&(Er=reactExports.createElement(reactExports.Fragment,null,Er,reactExports.createElement("span",{className:`${Et}-item-optional`,title:""},(jt==null?void 0:jt.optional)||((Nt=localeValues.Form)===null||Nt===void 0?void 0:Nt.optional))));const rr=cls({[`${Et}-item-required`]:Dt,[`${Et}-item-required-mark-optional`]:yr||xr,[`${Et}-item-no-colon`]:!pr});return reactExports.createElement(Col,Object.assign({},Qt,{className:cr}),reactExports.createElement("label",{htmlFor:Ct,className:rr,title:typeof yt=="string"?yt:""},Er))},iconMap={success:RefIcon$t,warning:RefIcon$q,error:RefIcon$s,validating:RefIcon$o};function StatusProvider(ht){let{children:Et,errors:yt,warnings:Ct,hasFeedback:$t,validateStatus:At,prefixCls:Bt,meta:Dt,noStyle:Ft}=ht;const kt=`${Bt}-item`,{feedbackIcons:Mt}=reactExports.useContext(FormContext),Nt=getStatus(yt,Ct,Dt,null,!!$t,At),{isFormItemInput:jt,status:zt,hasFeedback:Vt,feedbackIcon:Kt}=reactExports.useContext(FormItemInputContext),Xt=reactExports.useMemo(()=>{var Qt;let Zt;if($t){const cr=$t!==!0&&$t.icons||Mt,Er=Nt&&((Qt=cr==null?void 0:cr({status:Nt,errors:yt,warnings:Ct}))===null||Qt===void 0?void 0:Qt[Nt]),pr=Nt&&iconMap[Nt];Zt=Er!==!1&&pr?reactExports.createElement("span",{className:cls(`${kt}-feedback-icon`,`${kt}-feedback-icon-${Nt}`)},Er||reactExports.createElement(pr,null)):null}const dr={status:Nt||"",errors:yt,warnings:Ct,hasFeedback:!!$t,feedbackIcon:Zt,isFormItemInput:!0};return Ft&&(dr.status=(Nt??zt)||"",dr.isFormItemInput=jt,dr.hasFeedback=!!($t??Vt),dr.feedbackIcon=$t!==void 0?dr.feedbackIcon:Kt),dr},[Nt,$t,Ft,jt,zt]);return reactExports.createElement(FormItemInputContext.Provider,{value:Xt},Et)}var __rest$8=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};function ItemHolder(ht){const{prefixCls:Et,className:yt,rootClassName:Ct,style:$t,help:At,errors:Bt,warnings:Dt,validateStatus:Ft,meta:kt,hasFeedback:Mt,hidden:Nt,children:jt,fieldId:zt,required:Vt,isRequired:Kt,onSubItemMetaChange:Xt,layout:Qt}=ht,Zt=__rest$8(ht,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),dr=`${Et}-item`,{requiredMark:cr,vertical:Er}=reactExports.useContext(FormContext),pr=Er||Qt==="vertical",gr=reactExports.useRef(null),vr=useDebounce(Bt),yr=useDebounce(Dt),xr=At!=null,rr=!!(xr||Bt.length||Dt.length),Lt=!!gr.current&&isVisible(gr.current),[Ht,Wt]=reactExports.useState(null);useLayoutEffect$1(()=>{if(rr&&gr.current){const Jt=getComputedStyle(gr.current);Wt(parseInt(Jt.marginBottom,10))}},[rr,Lt]);const Gt=Jt=>{Jt||Wt(null)},er=function(){let Jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Ut=Jt?vr:kt.errors,ir=Jt?yr:kt.warnings;return getStatus(Ut,ir,kt,"",!!Mt,Ft)}(),lr=cls(dr,yt,Ct,{[`${dr}-with-help`]:xr||vr.length||yr.length,[`${dr}-has-feedback`]:er&&Mt,[`${dr}-has-success`]:er==="success",[`${dr}-has-warning`]:er==="warning",[`${dr}-has-error`]:er==="error",[`${dr}-is-validating`]:er==="validating",[`${dr}-hidden`]:Nt,[`${dr}-${Qt}`]:Qt});return reactExports.createElement("div",{className:lr,style:$t,ref:gr},reactExports.createElement(Row,Object.assign({className:`${dr}-row`},omit$1(Zt,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),reactExports.createElement(FormItemLabel,Object.assign({htmlFor:zt},ht,{requiredMark:cr,required:Vt??Kt,prefixCls:Et,vertical:pr})),reactExports.createElement(FormItemInput,Object.assign({},ht,kt,{errors:vr,warnings:yr,prefixCls:Et,status:er,help:At,marginBottom:Ht,onErrorVisibleChanged:Gt}),reactExports.createElement(NoStyleItemContext.Provider,{value:Xt},reactExports.createElement(StatusProvider,{prefixCls:Et,meta:kt,errors:kt.errors,warnings:kt.warnings,hasFeedback:Mt,validateStatus:er},jt)))),!!Ht&&reactExports.createElement("div",{className:`${dr}-margin-offset`,style:{marginBottom:-Ht}}))}const NAME_SPLIT="__SPLIT__";function isSimilarControl(ht,Et){const yt=Object.keys(ht),Ct=Object.keys(Et);return yt.length===Ct.length&&yt.every($t=>{const At=ht[$t],Bt=Et[$t];return At===Bt||typeof At=="function"||typeof Bt=="function"})}const MemoInput=reactExports.memo(ht=>{let{children:Et}=ht;return Et},(ht,Et)=>isSimilarControl(ht.control,Et.control)&&ht.update===Et.update&&ht.childProps.length===Et.childProps.length&&ht.childProps.every((yt,Ct)=>yt===Et.childProps[Ct]));function genEmptyMeta(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function InternalFormItem(ht){const{name:Et,noStyle:yt,className:Ct,dependencies:$t,prefixCls:At,shouldUpdate:Bt,rules:Dt,children:Ft,required:kt,label:Mt,messageVariables:Nt,trigger:jt="onChange",validateTrigger:zt,hidden:Vt,help:Kt,layout:Xt}=ht,{getPrefixCls:Qt}=reactExports.useContext(ConfigContext$1),{name:Zt}=reactExports.useContext(FormContext),dr=useChildren(Ft),cr=typeof dr=="function",Er=reactExports.useContext(NoStyleItemContext),{validateTrigger:pr}=reactExports.useContext(Context),gr=zt!==void 0?zt:pr,vr=Et!=null,yr=Qt("form",At),xr=useCSSVarCls(yr),[rr,Lt,Ht]=useStyle$6(yr,xr);devUseWarning();const Wt=reactExports.useContext(ListContext),Gt=reactExports.useRef(),[Yt,er]=useFrameState({}),[lr,Jt]=useSafeState(()=>genEmptyMeta()),Ut=Ar=>{const Fr=Wt==null?void 0:Wt.getKey(Ar.name);if(Jt(Ar.destroy?genEmptyMeta():Ar,!0),yt&&Kt!==!1&&Er){let Rr=Ar.name;if(Ar.destroy)Rr=Gt.current||Rr;else if(Fr!==void 0){const[wr,Sr]=Fr;Rr=[wr].concat(_toConsumableArray(Sr)),Gt.current=Rr}Er(Ar,Rr)}},ir=(Ar,Fr)=>{er(Rr=>{const wr=Object.assign({},Rr),Br=[].concat(_toConsumableArray(Ar.name.slice(0,-1)),_toConsumableArray(Fr)).join(NAME_SPLIT);return Ar.destroy?delete wr[Br]:wr[Br]=Ar,wr})},[Cr,_r]=reactExports.useMemo(()=>{const Ar=_toConsumableArray(lr.errors),Fr=_toConsumableArray(lr.warnings);return Object.values(Yt).forEach(Rr=>{Ar.push.apply(Ar,_toConsumableArray(Rr.errors||[])),Fr.push.apply(Fr,_toConsumableArray(Rr.warnings||[]))}),[Ar,Fr]},[Yt,lr.errors,lr.warnings]),$r=useItemRef();function Tr(Ar,Fr,Rr){return yt&&!Vt?reactExports.createElement(StatusProvider,{prefixCls:yr,hasFeedback:ht.hasFeedback,validateStatus:ht.validateStatus,meta:lr,errors:Cr,warnings:_r,noStyle:!0},Ar):reactExports.createElement(ItemHolder,Object.assign({key:"row"},ht,{className:cls(Ct,Ht,xr,Lt),prefixCls:yr,fieldId:Fr,isRequired:Rr,errors:Cr,warnings:_r,meta:lr,onSubItemMetaChange:ir,layout:Xt}),Ar)}if(!vr&&!cr&&!$t)return rr(Tr(dr));let Dr={};return typeof Mt=="string"?Dr.label=Mt:Et&&(Dr.label=String(Et)),Nt&&(Dr=Object.assign(Object.assign({},Dr),Nt)),rr(reactExports.createElement(WrapperField,Object.assign({},ht,{messageVariables:Dr,trigger:jt,validateTrigger:gr,onMetaChange:Ut}),(Ar,Fr,Rr)=>{const wr=toArray$1(Et).length&&Fr?Fr.name:[],Sr=getFieldId(wr,Zt),Br=kt!==void 0?kt:!!(Dt!=null&&Dt.some(Nr=>{if(Nr&&typeof Nr=="object"&&Nr.required&&!Nr.warningOnly)return!0;if(typeof Nr=="function"){const Lr=Nr(Rr);return(Lr==null?void 0:Lr.required)&&!(Lr!=null&&Lr.warningOnly)}return!1})),Or=Object.assign({},Ar);let Pr=null;if(Array.isArray(dr)&&vr)Pr=dr;else if(!(cr&&(!(Bt||$t)||vr))){if(!($t&&!cr&&!vr))if(reactExports.isValidElement(dr)){const Nr=Object.assign(Object.assign({},dr.props),Or);if(Nr.id||(Nr.id=Sr),Kt||Cr.length>0||_r.length>0||ht.extra){const Ur=[];(Kt||Cr.length>0)&&Ur.push(`${Sr}_help`),ht.extra&&Ur.push(`${Sr}_extra`),Nr["aria-describedby"]=Ur.join(" ")}Cr.length>0&&(Nr["aria-invalid"]="true"),Br&&(Nr["aria-required"]="true"),supportRef(dr)&&(Nr.ref=$r(wr,dr)),new Set([].concat(_toConsumableArray(toArray$1(jt)),_toConsumableArray(toArray$1(gr)))).forEach(Ur=>{Nr[Ur]=function(){for(var jr,Kr,qr,Zr,dn,Xr=arguments.length,un=new Array(Xr),Yr=0;Yr<Xr;Yr++)un[Yr]=arguments[Yr];(qr=Or[Ur])===null||qr===void 0||(jr=qr).call.apply(jr,[Or].concat(un)),(dn=(Zr=dr.props)[Ur])===null||dn===void 0||(Kr=dn).call.apply(Kr,[Zr].concat(un))}});const Wr=[Nr["aria-required"],Nr["aria-invalid"],Nr["aria-describedby"]];Pr=reactExports.createElement(MemoInput,{control:Or,update:dr,childProps:Wr},cloneElement(dr,Nr))}else cr&&(Bt||$t)&&!vr?Pr=dr(Rr):Pr=dr}return Tr(Pr,Sr,Br)}))}const FormItem=InternalFormItem;FormItem.useStatus=useFormItemStatus;var __rest$7=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};const FormList=ht=>{var{prefixCls:Et,children:yt}=ht,Ct=__rest$7(ht,["prefixCls","children"]);const{getPrefixCls:$t}=reactExports.useContext(ConfigContext$1),At=$t("form",Et),Bt=reactExports.useMemo(()=>({prefixCls:At,status:"error"}),[At]);return reactExports.createElement(List$1,Object.assign({},Ct),(Dt,Ft,kt)=>reactExports.createElement(FormItemPrefixContext.Provider,{value:Bt},yt(Dt.map(Mt=>Object.assign(Object.assign({},Mt),{fieldKey:Mt.key})),Ft,{errors:kt.errors,warnings:kt.warnings})))};function useFormInstance(){const{form:ht}=reactExports.useContext(FormContext);return ht}const Form=Form$1;Form.Item=FormItem;Form.List=FormList;Form.ErrorList=ErrorList;Form.useForm=useForm;Form.useFormInstance=useFormInstance;Form.useWatch=useWatch$1;Form.Provider=FormProvider;Form.create=()=>{};function getOffset(ht){var Et=ht.getBoundingClientRect(),yt=document.documentElement;return{left:Et.left+(window.pageXOffset||yt.scrollLeft)-(yt.clientLeft||document.body.clientLeft||0),top:Et.top+(window.pageYOffset||yt.scrollTop)-(yt.clientTop||document.body.clientTop||0)}}function addEventListenerWrap(ht,Et,yt,Ct){var $t=ReactDOM.unstable_batchedUpdates?function(Bt){ReactDOM.unstable_batchedUpdates(yt,Bt)}:yt;return ht!=null&&ht.addEventListener&&ht.addEventListener(Et,$t,Ct),{remove:function(){ht!=null&&ht.removeEventListener&&ht.removeEventListener(Et,$t,Ct)}}}function useHasSider(ht,Et,yt){return typeof yt=="boolean"?yt:ht.length?!0:toArray$5(Et).some($t=>$t.type===Sider)}const genLayoutLightStyle=ht=>{const{componentCls:Et,bodyBg:yt,lightSiderBg:Ct,lightTriggerBg:$t,lightTriggerColor:At}=ht;return{[`${Et}-sider-light`]:{background:Ct,[`${Et}-sider-trigger`]:{color:At,background:$t},[`${Et}-sider-zero-width-trigger`]:{color:At,background:$t,border:`1px solid ${yt}`,borderInlineStart:0}}}},genLayoutStyle=ht=>{const{antCls:Et,componentCls:yt,colorText:Ct,triggerColor:$t,footerBg:At,triggerBg:Bt,headerHeight:Dt,headerPadding:Ft,headerColor:kt,footerPadding:Mt,triggerHeight:Nt,zeroTriggerHeight:jt,zeroTriggerWidth:zt,motionDurationMid:Vt,motionDurationSlow:Kt,fontSize:Xt,borderRadius:Qt,bodyBg:Zt,headerBg:dr,siderBg:cr}=ht;return{[yt]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Zt,"&, *":{boxSizing:"border-box"},[`&${yt}-has-sider`]:{flexDirection:"row",[`> ${yt}, > ${yt}-content`]:{width:0}},[`${yt}-header, &${yt}-footer`]:{flex:"0 0 auto"},[`${yt}-sider`]:{position:"relative",minWidth:0,background:cr,transition:`all ${Vt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${Et}-menu${Et}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Nt},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Nt,color:$t,lineHeight:unit(Nt),textAlign:"center",background:Bt,cursor:"pointer",transition:`all ${Vt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Dt,insetInlineEnd:ht.calc(zt).mul(-1).equal(),zIndex:1,width:zt,height:jt,color:$t,fontSize:ht.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:cr,borderStartStartRadius:0,borderStartEndRadius:Qt,borderEndEndRadius:Qt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Kt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Kt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:ht.calc(zt).mul(-1).equal(),borderStartStartRadius:Qt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Qt}}}}},genLayoutLightStyle(ht)),{"&-rtl":{direction:"rtl"}}),[`${yt}-header`]:{height:Dt,padding:Ft,color:kt,lineHeight:unit(Dt),background:dr,[`${Et}-menu`]:{lineHeight:"inherit"}},[`${yt}-footer`]:{padding:Mt,color:Ct,fontSize:Xt,background:At},[`${yt}-content`]:{flex:"auto",color:Ct,minHeight:0}}},prepareComponentToken$5=ht=>{const{colorBgLayout:Et,controlHeight:yt,controlHeightLG:Ct,colorText:$t,controlHeightSM:At,marginXXS:Bt,colorTextLightSolid:Dt,colorBgContainer:Ft}=ht,kt=Ct*1.25;return{colorBgHeader:"#001529",colorBgBody:Et,colorBgTrigger:"#002140",bodyBg:Et,headerBg:"#001529",headerHeight:yt*2,headerPadding:`0 ${kt}px`,headerColor:$t,footerPadding:`${At}px ${kt}px`,footerBg:Et,siderBg:"#001529",triggerHeight:Ct+Bt*2,triggerBg:"#002140",triggerColor:Dt,zeroTriggerWidth:Ct,zeroTriggerHeight:Ct,lightSiderBg:Ft,lightTriggerBg:Ft,lightTriggerColor:$t}},useStyle$5=genStyleHooks("Layout",ht=>[genLayoutStyle(ht)],prepareComponentToken$5,{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]});var __rest$6=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};function generator(ht){let{suffixCls:Et,tagName:yt,displayName:Ct}=ht;return $t=>reactExports.forwardRef((Bt,Dt)=>reactExports.createElement($t,Object.assign({ref:Dt,suffixCls:Et,tagName:yt},Bt)))}const Basic=reactExports.forwardRef((ht,Et)=>{const{prefixCls:yt,suffixCls:Ct,className:$t,tagName:At}=ht,Bt=__rest$6(ht,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Dt}=reactExports.useContext(ConfigContext$1),Ft=Dt("layout",yt),[kt,Mt,Nt]=useStyle$5(Ft),jt=Ct?`${Ft}-${Ct}`:Ft;return kt(reactExports.createElement(At,Object.assign({className:cls(yt||jt,$t,Mt,Nt),ref:Et},Bt)))}),BasicLayout=reactExports.forwardRef((ht,Et)=>{const{direction:yt}=reactExports.useContext(ConfigContext$1),[Ct,$t]=reactExports.useState([]),{prefixCls:At,className:Bt,rootClassName:Dt,children:Ft,hasSider:kt,tagName:Mt,style:Nt}=ht,jt=__rest$6(ht,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),zt=omit$1(jt,["suffixCls"]),{getPrefixCls:Vt,layout:Kt}=reactExports.useContext(ConfigContext$1),Xt=Vt("layout",At),Qt=useHasSider(Ct,Ft,kt),[Zt,dr,cr]=useStyle$5(Xt),Er=cls(Xt,{[`${Xt}-has-sider`]:Qt,[`${Xt}-rtl`]:yt==="rtl"},Kt==null?void 0:Kt.className,Bt,Dt,dr,cr),pr=reactExports.useMemo(()=>({siderHook:{addSider:gr=>{$t(vr=>[].concat(_toConsumableArray(vr),[gr]))},removeSider:gr=>{$t(vr=>vr.filter(yr=>yr!==gr))}}}),[]);return Zt(reactExports.createElement(LayoutContext.Provider,{value:pr},reactExports.createElement(Mt,Object.assign({ref:Et,className:Er,style:Object.assign(Object.assign({},Kt==null?void 0:Kt.style),Nt)},zt),Ft)))}),Layout$2=generator({tagName:"div",displayName:"Layout"})(BasicLayout),Header$2=generator({suffixCls:"header",tagName:"header",displayName:"Header"})(Basic),Footer$2=generator({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Basic),Content=generator({suffixCls:"content",tagName:"main",displayName:"Content"})(Basic),Layout$1=Layout$2;Layout$1.Header=Header$2;Layout$1.Footer=Footer$2;Layout$1.Content=Content;Layout$1.Sider=Sider;Layout$1._InternalSiderContext=SiderContext;const extendsObject=function(){const ht=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let Et=1;Et<arguments.length;Et++){const yt=Et<0||arguments.length<=Et?void 0:arguments[Et];yt&&Object.keys(yt).forEach(Ct=>{const $t=yt[Ct];$t!==void 0&&(ht[Ct]=$t)})}return ht};var DoubleLeftOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},DoubleLeftOutlined=function ht(Et,yt){return reactExports.createElement(Icon$1,_extends$5({},Et,{ref:yt,icon:DoubleLeftOutlined$1}))},RefIcon$b=reactExports.forwardRef(DoubleLeftOutlined),DoubleRightOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},DoubleRightOutlined=function ht(Et,yt){return reactExports.createElement(Icon$1,_extends$5({},Et,{ref:yt,icon:DoubleRightOutlined$1}))},RefIcon$a=reactExports.forwardRef(DoubleRightOutlined),locale={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},defaultPageSizeOptions=["10","20","50","100"],Options=function ht(Et){var yt=Et.pageSizeOptions,Ct=yt===void 0?defaultPageSizeOptions:yt,$t=Et.locale,At=Et.changeSize,Bt=Et.pageSize,Dt=Et.goButton,Ft=Et.quickGo,kt=Et.rootPrefixCls,Mt=Et.selectComponentClass,Nt=Et.selectPrefixCls,jt=Et.disabled,zt=Et.buildOptionText,Vt=React$8.useState(""),Kt=_slicedToArray(Vt,2),Xt=Kt[0],Qt=Kt[1],Zt=function(){return!Xt||Number.isNaN(Xt)?void 0:Number(Xt)},dr=typeof zt=="function"?zt:function(Wt){return"".concat(Wt," ").concat($t.items_per_page)},cr=function(Gt){At==null||At(Number(Gt))},Er=function(Gt){Qt(Gt.target.value)},pr=function(Gt){Dt||Xt===""||(Qt(""),!(Gt.relatedTarget&&(Gt.relatedTarget.className.indexOf("".concat(kt,"-item-link"))>=0||Gt.relatedTarget.className.indexOf("".concat(kt,"-item"))>=0))&&(Ft==null||Ft(Zt())))},gr=function(Gt){Xt!==""&&(Gt.keyCode===KeyCode.ENTER||Gt.type==="click")&&(Qt(""),Ft==null||Ft(Zt()))},vr=function(){return Ct.some(function(Gt){return Gt.toString()===Bt.toString()})?Ct:Ct.concat([Bt.toString()]).sort(function(Gt,Yt){var er=Number.isNaN(Number(Gt))?0:Number(Gt),lr=Number.isNaN(Number(Yt))?0:Number(Yt);return er-lr})},yr="".concat(kt,"-options");if(!At&&!Ft)return null;var xr=null,rr=null,Lt=null;if(At&&Mt){var Ht=vr().map(function(Wt,Gt){return React$8.createElement(Mt.Option,{key:Gt,value:Wt.toString()},dr(Wt))});xr=React$8.createElement(Mt,{disabled:jt,prefixCls:Nt,showSearch:!1,className:"".concat(yr,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Bt||Ct[0]).toString(),onChange:cr,getPopupContainer:function(Gt){return Gt.parentNode},"aria-label":$t.page_size,defaultOpen:!1},Ht)}return Ft&&(Dt&&(Lt=typeof Dt=="boolean"?React$8.createElement("button",{type:"button",onClick:gr,onKeyUp:gr,disabled:jt,className:"".concat(yr,"-quick-jumper-button")},$t.jump_to_confirm):React$8.createElement("span",{onClick:gr,onKeyUp:gr},Dt)),rr=React$8.createElement("div",{className:"".concat(yr,"-quick-jumper")},$t.jump_to,React$8.createElement("input",{disabled:jt,type:"text",value:Xt,onChange:Er,onKeyUp:gr,onBlur:pr,"aria-label":$t.page}),$t.page,Lt)),React$8.createElement("li",{className:yr},xr,rr)},Pager=function ht(Et){var yt,Ct=Et.rootPrefixCls,$t=Et.page,At=Et.active,Bt=Et.className,Dt=Et.showTitle,Ft=Et.onClick,kt=Et.onKeyPress,Mt=Et.itemRender,Nt="".concat(Ct,"-item"),jt=cls(Nt,"".concat(Nt,"-").concat($t),(yt={},_defineProperty$1(yt,"".concat(Nt,"-active"),At),_defineProperty$1(yt,"".concat(Nt,"-disabled"),!$t),yt),Bt),zt=function(){Ft($t)},Vt=function(Qt){kt(Qt,Ft,$t)},Kt=Mt($t,"page",React$8.createElement("a",{rel:"nofollow"},$t));return Kt?React$8.createElement("li",{title:Dt?String($t):null,className:jt,onClick:zt,onKeyDown:Vt,tabIndex:0},Kt):null},defaultItemRender=function ht(Et,yt,Ct){return Ct};function noop$3(){}function isInteger(ht){var Et=Number(ht);return typeof Et=="number"&&!Number.isNaN(Et)&&isFinite(Et)&&Math.floor(Et)===Et}function calculatePage(ht,Et,yt){var Ct=typeof ht>"u"?Et:ht;return Math.floor((yt-1)/Ct)+1}var Pagination$1=function ht(Et){var yt,Ct=Et.prefixCls,$t=Ct===void 0?"rc-pagination":Ct,At=Et.selectPrefixCls,Bt=At===void 0?"rc-select":At,Dt=Et.className,Ft=Et.selectComponentClass,kt=Et.current,Mt=Et.defaultCurrent,Nt=Mt===void 0?1:Mt,jt=Et.total,zt=jt===void 0?0:jt,Vt=Et.pageSize,Kt=Et.defaultPageSize,Xt=Kt===void 0?10:Kt,Qt=Et.onChange,Zt=Qt===void 0?noop$3:Qt,dr=Et.hideOnSinglePage,cr=Et.align,Er=Et.showPrevNextJumpers,pr=Er===void 0?!0:Er,gr=Et.showQuickJumper,vr=Et.showLessItems,yr=Et.showTitle,xr=yr===void 0?!0:yr,rr=Et.onShowSizeChange,Lt=rr===void 0?noop$3:rr,Ht=Et.locale,Wt=Ht===void 0?locale:Ht,Gt=Et.style,Yt=Et.totalBoundaryShowSizeChanger,er=Yt===void 0?50:Yt,lr=Et.disabled,Jt=Et.simple,Ut=Et.showTotal,ir=Et.showSizeChanger,Cr=Et.pageSizeOptions,_r=Et.itemRender,$r=_r===void 0?defaultItemRender:_r,Tr=Et.jumpPrevIcon,Dr=Et.jumpNextIcon,Ar=Et.prevIcon,Fr=Et.nextIcon,Rr=React$8.useRef(null),wr=useMergedState(10,{value:Vt,defaultValue:Xt}),Sr=_slicedToArray(wr,2),Br=Sr[0],Or=Sr[1],Pr=useMergedState(1,{value:kt,defaultValue:Nt,postState:function(du){return Math.max(1,Math.min(du,calculatePage(void 0,Br,zt)))}}),Nr=_slicedToArray(Pr,2),Lr=Nr[0],Wr=Nr[1],Ur=React$8.useState(Lr),jr=_slicedToArray(Ur,2),Kr=jr[0],qr=jr[1];reactExports.useEffect(function(){qr(Lr)},[Lr]);var Zr=Math.max(1,Lr-(vr?3:5)),dn=Math.min(calculatePage(void 0,Br,zt),Lr+(vr?3:5));function Xr(lu,du){var fu=lu||React$8.createElement("button",{type:"button","aria-label":du,className:"".concat($t,"-item-link")});return typeof lu=="function"&&(fu=React$8.createElement(lu,_objectSpread2({},Et))),fu}function un(lu){var du=lu.target.value,fu=calculatePage(void 0,Br,zt),Tu;return du===""?Tu=du:Number.isNaN(Number(du))?Tu=Kr:du>=fu?Tu=fu:Tu=Number(du),Tu}function Yr(lu){return isInteger(lu)&&lu!==Lr&&isInteger(zt)&&zt>0}var Gr=zt>Br?gr:!1;function Jr(lu){(lu.keyCode===KeyCode.UP||lu.keyCode===KeyCode.DOWN)&&lu.preventDefault()}function wn(lu){var du=un(lu);switch(du!==Kr&&qr(du),lu.keyCode){case KeyCode.ENTER:Ir(du);break;case KeyCode.UP:Ir(du-1);break;case KeyCode.DOWN:Ir(du+1);break}}function kr(lu){Ir(un(lu))}function Mr(lu){var du=calculatePage(lu,Br,zt),fu=Lr>du&&du!==0?du:Lr;Or(lu),qr(fu),Lt==null||Lt(Lr,lu),Wr(fu),Zt==null||Zt(fu,lu)}function Ir(lu){if(Yr(lu)&&!lr){var du=calculatePage(void 0,Br,zt),fu=lu;return lu>du?fu=du:lu<1&&(fu=1),fu!==Kr&&qr(fu),Wr(fu),Zt==null||Zt(fu,Br),fu}return Lr}var Hr=Lr>1,Vr=Lr<calculatePage(void 0,Br,zt),on=ir??zt>er;function Qr(){Hr&&Ir(Lr-1)}function hn(){Vr&&Ir(Lr+1)}function Wn(){Ir(Zr)}function _n(){Ir(dn)}function An(lu,du){if(lu.key==="Enter"||lu.charCode===KeyCode.ENTER||lu.keyCode===KeyCode.ENTER){for(var fu=arguments.length,Tu=new Array(fu>2?fu-2:0),Zu=2;Zu<fu;Zu++)Tu[Zu-2]=arguments[Zu];du.apply(void 0,Tu)}}function Yn(lu){An(lu,Qr)}function Tn(lu){An(lu,hn)}function Nn(lu){An(lu,Wn)}function Zn(lu){An(lu,_n)}function $n(lu){var du=$r(lu,"prev",Xr(Ar,"prev page"));return React$8.isValidElement(du)?React$8.cloneElement(du,{disabled:!Hr}):du}function Fn(lu){var du=$r(lu,"next",Xr(Fr,"next page"));return React$8.isValidElement(du)?React$8.cloneElement(du,{disabled:!Vr}):du}function Gn(lu){(lu.type==="click"||lu.keyCode===KeyCode.ENTER)&&Ir(Kr)}var gn=null,Rn=pickAttrs(Et,{aria:!0,data:!0}),nu=Ut&&React$8.createElement("li",{className:"".concat($t,"-total-text")},Ut(zt,[zt===0?0:(Lr-1)*Br+1,Lr*Br>zt?zt:Lr*Br])),pn=null,yn=calculatePage(void 0,Br,zt);if(dr&&zt<=Br)return null;var jn=[],Cn={rootPrefixCls:$t,onClick:Ir,onKeyPress:An,showTitle:xr,itemRender:$r,page:-1},On=Lr-1>0?Lr-1:0,au=Lr+1<yn?Lr+1:yn,In=gr&&gr.goButton,Bn=_typeof$1(Jt)==="object"?Jt.readOnly:!Jt,Vn=In,En=null;Jt&&(In&&(typeof In=="boolean"?Vn=React$8.createElement("button",{type:"button",onClick:Gn,onKeyUp:Gn},Wt.jump_to_confirm):Vn=React$8.createElement("span",{onClick:Gn,onKeyUp:Gn},In),Vn=React$8.createElement("li",{title:xr?"".concat(Wt.jump_to).concat(Lr,"/").concat(yn):null,className:"".concat($t,"-simple-pager")},Vn)),En=React$8.createElement("li",{title:xr?"".concat(Lr,"/").concat(yn):null,className:"".concat($t,"-simple-pager")},Bn?Kr:React$8.createElement("input",{type:"text",value:Kr,disabled:lr,onKeyDown:Jr,onKeyUp:wn,onChange:wn,onBlur:kr,size:3}),React$8.createElement("span",{className:"".concat($t,"-slash")},"/"),yn));var Sn=vr?1:2;if(yn<=3+Sn*2){yn||jn.push(React$8.createElement(Pager,_extends$5({},Cn,{key:"noPager",page:1,className:"".concat($t,"-item-disabled")})));for(var Xn=1;Xn<=yn;Xn+=1)jn.push(React$8.createElement(Pager,_extends$5({},Cn,{key:Xn,page:Xn,active:Lr===Xn})))}else{var uu=vr?Wt.prev_3:Wt.prev_5,Eu=vr?Wt.next_3:Wt.next_5,pu=$r(Zr,"jump-prev",Xr(Tr,"prev page")),Qn=$r(dn,"jump-next",Xr(Dr,"next page"));pr&&(gn=pu?React$8.createElement("li",{title:xr?uu:null,key:"prev",onClick:Wn,tabIndex:0,onKeyDown:Nn,className:cls("".concat($t,"-jump-prev"),_defineProperty$1({},"".concat($t,"-jump-prev-custom-icon"),!!Tr))},pu):null,pn=Qn?React$8.createElement("li",{title:xr?Eu:null,key:"next",onClick:_n,tabIndex:0,onKeyDown:Zn,className:cls("".concat($t,"-jump-next"),_defineProperty$1({},"".concat($t,"-jump-next-custom-icon"),!!Dr))},Qn):null);var Jn=Math.max(1,Lr-Sn),ou=Math.min(Lr+Sn,yn);Lr-1<=Sn&&(ou=1+Sn*2),yn-Lr<=Sn&&(Jn=yn-Sn*2);for(var mu=Jn;mu<=ou;mu+=1)jn.push(React$8.createElement(Pager,_extends$5({},Cn,{key:mu,page:mu,active:Lr===mu})));if(Lr-1>=Sn*2&&Lr!==3&&(jn[0]=React$8.cloneElement(jn[0],{className:cls("".concat($t,"-item-after-jump-prev"),jn[0].props.className)}),jn.unshift(gn)),yn-Lr>=Sn*2&&Lr!==yn-2){var xu=jn[jn.length-1];jn[jn.length-1]=React$8.cloneElement(xu,{className:cls("".concat($t,"-item-before-jump-next"),xu.props.className)}),jn.push(pn)}Jn!==1&&jn.unshift(React$8.createElement(Pager,_extends$5({},Cn,{key:1,page:1}))),ou!==yn&&jn.push(React$8.createElement(Pager,_extends$5({},Cn,{key:yn,page:yn})))}var _u=$n(On);if(_u){var $u=!Hr||!yn;_u=React$8.createElement("li",{title:xr?Wt.prev_page:null,onClick:Qr,tabIndex:$u?null:0,onKeyDown:Yn,className:cls("".concat($t,"-prev"),_defineProperty$1({},"".concat($t,"-disabled"),$u)),"aria-disabled":$u},_u)}var Au=Fn(au);if(Au){var Bu,Su;Jt?(Bu=!Vr,Su=Hr?0:null):(Bu=!Vr||!yn,Su=Bu?null:0),Au=React$8.createElement("li",{title:xr?Wt.next_page:null,onClick:hn,tabIndex:Su,onKeyDown:Tn,className:cls("".concat($t,"-next"),_defineProperty$1({},"".concat($t,"-disabled"),Bu)),"aria-disabled":Bu},Au)}var Ru=cls($t,Dt,(yt={},_defineProperty$1(yt,"".concat($t,"-start"),cr==="start"),_defineProperty$1(yt,"".concat($t,"-center"),cr==="center"),_defineProperty$1(yt,"".concat($t,"-end"),cr==="end"),_defineProperty$1(yt,"".concat($t,"-simple"),Jt),_defineProperty$1(yt,"".concat($t,"-disabled"),lr),yt));return React$8.createElement("ul",_extends$5({className:Ru,style:Gt,ref:Rr},Rn),nu,_u,Jt?En:jn,Au,React$8.createElement(Options,{locale:Wt,rootPrefixCls:$t,disabled:lr,selectComponentClass:Ft,selectPrefixCls:Bt,changeSize:on?Mr:null,pageSize:Br,pageSizeOptions:Cr,quickGo:Gr?Ir:null,goButton:Vn}))};const MiniSelect=ht=>reactExports.createElement(Select,Object.assign({},ht,{showSearch:!0,size:"small"})),MiddleSelect=ht=>reactExports.createElement(Select,Object.assign({},ht,{showSearch:!0,size:"middle"}));MiniSelect.Option=Select.Option;MiddleSelect.Option=Select.Option;const genPaginationDisabledStyle=ht=>{const{componentCls:Et}=ht;return{[`${Et}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Et}-item-link`]:{color:ht.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Et}-item-link`]:{color:ht.colorTextDisabled,cursor:"not-allowed"}}},[`&${Et}-disabled`]:{cursor:"not-allowed",[`${Et}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:ht.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:ht.colorBorder,backgroundColor:ht.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:ht.itemActiveBgDisabled},a:{color:ht.itemActiveColorDisabled}}},[`${Et}-item-link`]:{color:ht.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Et}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Et}-simple-pager`]:{color:ht.colorTextDisabled},[`${Et}-jump-prev, ${Et}-jump-next`]:{[`${Et}-item-link-icon`]:{opacity:0},[`${Et}-item-ellipsis`]:{opacity:1}}},[`&${Et}-simple`]:{[`${Et}-prev, ${Et}-next`]:{[`&${Et}-disabled ${Et}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},genPaginationMiniStyle=ht=>{const{componentCls:Et}=ht;return{[`&${Et}-mini ${Et}-total-text, &${Et}-mini ${Et}-simple-pager`]:{height:ht.itemSizeSM,lineHeight:unit(ht.itemSizeSM)},[`&${Et}-mini ${Et}-item`]:{minWidth:ht.itemSizeSM,height:ht.itemSizeSM,margin:0,lineHeight:unit(ht.calc(ht.itemSizeSM).sub(2).equal())},[`&${Et}-mini:not(${Et}-disabled) ${Et}-item:not(${Et}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:ht.colorBgTextHover},"&:active":{backgroundColor:ht.colorBgTextActive}},[`&${Et}-mini ${Et}-prev, &${Et}-mini ${Et}-next`]:{minWidth:ht.itemSizeSM,height:ht.itemSizeSM,margin:0,lineHeight:unit(ht.itemSizeSM)},[`&${Et}-mini:not(${Et}-disabled)`]:{[`${Et}-prev, ${Et}-next`]:{[`&:hover ${Et}-item-link`]:{backgroundColor:ht.colorBgTextHover},[`&:active ${Et}-item-link`]:{backgroundColor:ht.colorBgTextActive},[`&${Et}-disabled:hover ${Et}-item-link`]:{backgroundColor:"transparent"}}},[`
    &${Et}-mini ${Et}-prev ${Et}-item-link,
    &${Et}-mini ${Et}-next ${Et}-item-link
    `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:ht.itemSizeSM,lineHeight:unit(ht.itemSizeSM)}},[`&${Et}-mini ${Et}-jump-prev, &${Et}-mini ${Et}-jump-next`]:{height:ht.itemSizeSM,marginInlineEnd:0,lineHeight:unit(ht.itemSizeSM)},[`&${Et}-mini ${Et}-options`]:{marginInlineStart:ht.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:ht.miniOptionsSizeChangerTop},"&-quick-jumper":{height:ht.itemSizeSM,lineHeight:unit(ht.itemSizeSM),input:Object.assign(Object.assign({},genInputSmallStyle(ht)),{width:ht.paginationMiniQuickJumperInputWidth,height:ht.controlHeightSM})}}}},genPaginationSimpleStyle=ht=>{const{componentCls:Et}=ht;return{[`
    &${Et}-simple ${Et}-prev,
    &${Et}-simple ${Et}-next
    `]:{height:ht.itemSizeSM,lineHeight:unit(ht.itemSizeSM),verticalAlign:"top",[`${Et}-item-link`]:{height:ht.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:ht.colorBgTextHover},"&:active":{backgroundColor:ht.colorBgTextActive},"&::after":{height:ht.itemSizeSM,lineHeight:unit(ht.itemSizeSM)}}},[`&${Et}-simple ${Et}-simple-pager`]:{display:"inline-block",height:ht.itemSizeSM,marginInlineEnd:ht.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${unit(ht.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:ht.itemInputBg,border:`${unit(ht.lineWidth)} ${ht.lineType} ${ht.colorBorder}`,borderRadius:ht.borderRadius,outline:"none",transition:`border-color ${ht.motionDurationMid}`,color:"inherit","&:hover":{borderColor:ht.colorPrimary},"&:focus":{borderColor:ht.colorPrimaryHover,boxShadow:`${unit(ht.inputOutlineOffset)} 0 ${unit(ht.controlOutlineWidth)} ${ht.controlOutline}`},"&[disabled]":{color:ht.colorTextDisabled,backgroundColor:ht.colorBgContainerDisabled,borderColor:ht.colorBorder,cursor:"not-allowed"}}}}},genPaginationJumpStyle=ht=>{const{componentCls:Et,antCls:yt}=ht;return{[`${Et}-jump-prev, ${Et}-jump-next`]:{outline:0,[`${Et}-item-container`]:{position:"relative",[`${Et}-item-link-icon`]:{color:ht.colorPrimary,fontSize:ht.fontSizeSM,opacity:0,transition:`all ${ht.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Et}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:ht.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:ht.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:ht.paginationEllipsisTextIndent,opacity:1,transition:`all ${ht.motionDurationMid}`}},"&:hover":{[`${Et}-item-link-icon`]:{opacity:1},[`${Et}-item-ellipsis`]:{opacity:0}}},[`
    ${Et}-prev,
    ${Et}-jump-prev,
    ${Et}-jump-next
    `]:{marginInlineEnd:ht.marginXS},[`
    ${Et}-prev,
    ${Et}-next,
    ${Et}-jump-prev,
    ${Et}-jump-next
    `]:{display:"inline-block",minWidth:ht.itemSize,height:ht.itemSize,color:ht.colorText,fontFamily:ht.fontFamily,lineHeight:`${unit(ht.itemSize)}`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:ht.borderRadius,cursor:"pointer",transition:`all ${ht.motionDurationMid}`},[`${Et}-prev, ${Et}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:ht.colorText,cursor:"pointer",userSelect:"none"},[`${Et}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:ht.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${unit(ht.lineWidth)} ${ht.lineType} transparent`,borderRadius:ht.borderRadius,outline:"none",transition:`all ${ht.motionDurationMid}`},[`&:hover ${Et}-item-link`]:{backgroundColor:ht.colorBgTextHover},[`&:active ${Et}-item-link`]:{backgroundColor:ht.colorBgTextActive},[`&${Et}-disabled:hover`]:{[`${Et}-item-link`]:{backgroundColor:"transparent"}}},[`${Et}-slash`]:{marginInlineEnd:ht.paginationSlashMarginInlineEnd,marginInlineStart:ht.paginationSlashMarginInlineStart},[`${Et}-options`]:{display:"inline-block",marginInlineStart:ht.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto",[`${yt}-select-arrow:not(:last-child)`]:{opacity:1}},"&-quick-jumper":{display:"inline-block",height:ht.controlHeight,marginInlineStart:ht.marginXS,lineHeight:unit(ht.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},genBasicInputStyle(ht)),genBaseOutlinedStyle(ht,{borderColor:ht.colorBorder,hoverBorderColor:ht.colorPrimaryHover,activeBorderColor:ht.colorPrimary,activeShadow:ht.activeShadow})),{"&[disabled]":Object.assign({},genDisabledStyle(ht)),width:ht.calc(ht.controlHeightLG).mul(1.25).equal(),height:ht.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:ht.marginXS,marginInlineEnd:ht.marginXS})}}}},genPaginationItemStyle=ht=>{const{componentCls:Et}=ht;return{[`${Et}-item`]:{display:"inline-block",minWidth:ht.itemSize,height:ht.itemSize,marginInlineEnd:ht.marginXS,fontFamily:ht.fontFamily,lineHeight:unit(ht.calc(ht.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:ht.itemBg,border:`${unit(ht.lineWidth)} ${ht.lineType} transparent`,borderRadius:ht.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${unit(ht.paginationItemPaddingInline)}`,color:ht.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Et}-item-active)`]:{"&:hover":{transition:`all ${ht.motionDurationMid}`,backgroundColor:ht.colorBgTextHover},"&:active":{backgroundColor:ht.colorBgTextActive}},"&-active":{fontWeight:ht.fontWeightStrong,backgroundColor:ht.itemActiveBg,borderColor:ht.colorPrimary,a:{color:ht.colorPrimary},"&:hover":{borderColor:ht.colorPrimaryHover},"&:hover a":{color:ht.colorPrimaryHover}}}}},genPaginationStyle$1=ht=>{const{componentCls:Et}=ht;return{[Et]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent(ht)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Et}-total-text`]:{display:"inline-block",height:ht.itemSize,marginInlineEnd:ht.marginXS,lineHeight:unit(ht.calc(ht.itemSize).sub(2).equal()),verticalAlign:"middle"}}),genPaginationItemStyle(ht)),genPaginationJumpStyle(ht)),genPaginationSimpleStyle(ht)),genPaginationMiniStyle(ht)),genPaginationDisabledStyle(ht)),{[`@media only screen and (max-width: ${ht.screenLG}px)`]:{[`${Et}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${ht.screenSM}px)`]:{[`${Et}-options`]:{display:"none"}}}),[`&${ht.componentCls}-rtl`]:{direction:"rtl"}}},genPaginationFocusStyle=ht=>{const{componentCls:Et}=ht;return{[`${Et}:not(${Et}-disabled)`]:{[`${Et}-item`]:Object.assign({},genFocusStyle(ht)),[`${Et}-jump-prev, ${Et}-jump-next`]:{"&:focus-visible":Object.assign({[`${Et}-item-link-icon`]:{opacity:1},[`${Et}-item-ellipsis`]:{opacity:0}},genFocusOutline(ht))},[`${Et}-prev, ${Et}-next`]:{[`&:focus-visible ${Et}-item-link`]:Object.assign({},genFocusOutline(ht))}}}},prepareComponentToken$4=ht=>Object.assign({itemBg:ht.colorBgContainer,itemSize:ht.controlHeight,itemSizeSM:ht.controlHeightSM,itemActiveBg:ht.colorBgContainer,itemLinkBg:ht.colorBgContainer,itemActiveColorDisabled:ht.colorTextDisabled,itemActiveBgDisabled:ht.controlItemBgActiveDisabled,itemInputBg:ht.colorBgContainer,miniOptionsSizeChangerTop:0},initComponentToken$1(ht)),prepareToken=ht=>merge$2(ht,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:ht.calc(ht.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:ht.calc(ht.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:ht.calc(ht.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:ht.calc(ht.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:ht.marginSM,paginationSlashMarginInlineEnd:ht.marginSM,paginationEllipsisTextIndent:"0.13em"},initInputToken(ht)),useStyle$4=genStyleHooks("Pagination",ht=>{const Et=prepareToken(ht);return[genPaginationStyle$1(Et),genPaginationFocusStyle(Et)]},prepareComponentToken$4),genBorderedStyle$1=ht=>{const{componentCls:Et}=ht;return{[`${Et}${Et}-bordered${Et}-disabled:not(${Et}-mini)`]:{"&, &:hover":{[`${Et}-item-link`]:{borderColor:ht.colorBorder}},"&:focus-visible":{[`${Et}-item-link`]:{borderColor:ht.colorBorder}},[`${Et}-item, ${Et}-item-link`]:{backgroundColor:ht.colorBgContainerDisabled,borderColor:ht.colorBorder,[`&:hover:not(${Et}-item-active)`]:{backgroundColor:ht.colorBgContainerDisabled,borderColor:ht.colorBorder,a:{color:ht.colorTextDisabled}},[`&${Et}-item-active`]:{backgroundColor:ht.itemActiveBgDisabled}},[`${Et}-prev, ${Et}-next`]:{"&:hover button":{backgroundColor:ht.colorBgContainerDisabled,borderColor:ht.colorBorder,color:ht.colorTextDisabled},[`${Et}-item-link`]:{backgroundColor:ht.colorBgContainerDisabled,borderColor:ht.colorBorder}}},[`${Et}${Et}-bordered:not(${Et}-mini)`]:{[`${Et}-prev, ${Et}-next`]:{"&:hover button":{borderColor:ht.colorPrimaryHover,backgroundColor:ht.itemBg},[`${Et}-item-link`]:{backgroundColor:ht.itemLinkBg,borderColor:ht.colorBorder},[`&:hover ${Et}-item-link`]:{borderColor:ht.colorPrimary,backgroundColor:ht.itemBg,color:ht.colorPrimary},[`&${Et}-disabled`]:{[`${Et}-item-link`]:{borderColor:ht.colorBorder,color:ht.colorTextDisabled}}},[`${Et}-item`]:{backgroundColor:ht.itemBg,border:`${unit(ht.lineWidth)} ${ht.lineType} ${ht.colorBorder}`,[`&:hover:not(${Et}-item-active)`]:{borderColor:ht.colorPrimary,backgroundColor:ht.itemBg,a:{color:ht.colorPrimary}},"&-active":{borderColor:ht.colorPrimary}}}}},BorderedStyle=genSubStyleComponent(["Pagination","bordered"],ht=>{const Et=prepareToken(ht);return[genBorderedStyle$1(Et)]},prepareComponentToken$4);var __rest$5=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};const Pagination=ht=>{const{align:Et,prefixCls:yt,selectPrefixCls:Ct,className:$t,rootClassName:At,style:Bt,size:Dt,locale:Ft,selectComponentClass:kt,responsive:Mt,showSizeChanger:Nt}=ht,jt=__rest$5(ht,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:zt}=useBreakpoint(Mt),[,Vt]=useToken$1(),{getPrefixCls:Kt,direction:Xt,pagination:Qt={}}=reactExports.useContext(ConfigContext$1),Zt=Kt("pagination",yt),[dr,cr,Er]=useStyle$4(Zt),pr=Nt??Qt.showSizeChanger,gr=reactExports.useMemo(()=>{const Gt=reactExports.createElement("span",{className:`${Zt}-item-ellipsis`},"•••"),Yt=reactExports.createElement("button",{className:`${Zt}-item-link`,type:"button",tabIndex:-1},Xt==="rtl"?reactExports.createElement(RefIcon$j,null):reactExports.createElement(RefIcon$h,null)),er=reactExports.createElement("button",{className:`${Zt}-item-link`,type:"button",tabIndex:-1},Xt==="rtl"?reactExports.createElement(RefIcon$h,null):reactExports.createElement(RefIcon$j,null)),lr=reactExports.createElement("a",{className:`${Zt}-item-link`},reactExports.createElement("div",{className:`${Zt}-item-container`},Xt==="rtl"?reactExports.createElement(RefIcon$a,{className:`${Zt}-item-link-icon`}):reactExports.createElement(RefIcon$b,{className:`${Zt}-item-link-icon`}),Gt)),Jt=reactExports.createElement("a",{className:`${Zt}-item-link`},reactExports.createElement("div",{className:`${Zt}-item-container`},Xt==="rtl"?reactExports.createElement(RefIcon$b,{className:`${Zt}-item-link-icon`}):reactExports.createElement(RefIcon$a,{className:`${Zt}-item-link-icon`}),Gt));return{prevIcon:Yt,nextIcon:er,jumpPrevIcon:lr,jumpNextIcon:Jt}},[Xt,Zt]),[vr]=useLocale("Pagination",locale$4),yr=Object.assign(Object.assign({},vr),Ft),xr=useSize(Dt),rr=xr==="small"||!!(zt&&!xr&&Mt),Lt=Kt("select",Ct),Ht=cls({[`${Zt}-${Et}`]:!!Et,[`${Zt}-mini`]:rr,[`${Zt}-rtl`]:Xt==="rtl",[`${Zt}-bordered`]:Vt.wireframe},Qt==null?void 0:Qt.className,$t,At,cr,Er),Wt=Object.assign(Object.assign({},Qt==null?void 0:Qt.style),Bt);return dr(reactExports.createElement(reactExports.Fragment,null,Vt.wireframe&&reactExports.createElement(BorderedStyle,{prefixCls:Zt}),reactExports.createElement(Pagination$1,Object.assign({},gr,jt,{style:Wt,prefixCls:Zt,selectPrefixCls:Lt,className:Ht,selectComponentClass:kt||(rr?MiniSelect:MiddleSelect),locale:yr,showSizeChanger:pr}))))};function Progress(ht){let{percent:Et,prefixCls:yt}=ht;const Ct=`${yt}-dot`,$t=`${Ct}-holder`,At=`${$t}-hidden`,[Bt,Dt]=reactExports.useState(!1);useLayoutEffect$1(()=>{Et!==0&&Dt(!0)},[Et!==0]);const Ft=Math.max(Math.min(Et,100),0),kt=100,Mt=kt/5,Nt=kt/2-Mt/2,jt=Nt*2*Math.PI,zt=(Vt,Kt)=>reactExports.createElement("circle",{className:cls(Vt,`${Ct}-circle`),r:Nt,cx:"50",cy:"50",strokeWidth:Mt,style:Kt});return Bt?reactExports.createElement("span",{className:cls($t,`${Ct}-progress`,Ft<=0&&At)},reactExports.createElement("svg",{viewBox:`0 0 ${kt} ${kt}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Ft},zt(`${Ct}-circle-bg`),zt("",{strokeDasharray:`${jt*Ft/100} ${jt*(100-Ft)/100}`,strokeDashoffset:`${jt/4}`}))):null}function Looper(ht){const{prefixCls:Et,percent:yt=0}=ht,Ct=`${Et}-dot`,$t=`${Ct}-holder`,At=`${$t}-hidden`;return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("span",{className:cls($t,yt>0&&At)},reactExports.createElement("span",{className:cls(Ct,`${Et}-dot-spin`)},[1,2,3,4].map(Bt=>reactExports.createElement("i",{className:`${Et}-dot-item`,key:Bt})))),reactExports.createElement(Progress,{prefixCls:Et,percent:yt}))}function Indicator(ht){const{prefixCls:Et,indicator:yt,percent:Ct}=ht,$t=`${Et}-dot`;return yt&&reactExports.isValidElement(yt)?cloneElement(yt,{className:cls(yt.props.className,$t),percent:Ct}):reactExports.createElement(Looper,{prefixCls:Et,percent:Ct})}const antSpinMove=new Keyframe("antSpinMove",{to:{opacity:1}}),antRotate=new Keyframe("antRotate",{to:{transform:"rotate(405deg)"}}),genSpinStyle=ht=>{const{componentCls:Et,calc:yt}=ht;return{[`${Et}`]:Object.assign(Object.assign({},resetComponent(ht)),{position:"absolute",display:"none",color:ht.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${ht.motionDurationSlow} ${ht.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${Et}-text`]:{fontSize:ht.fontSize,paddingTop:yt(yt(ht.dotSize).sub(ht.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:ht.colorBgMask,zIndex:ht.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${ht.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[Et]:{[`${Et}-dot-holder`]:{color:ht.colorWhite},[`${Et}-text`]:{color:ht.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${Et}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:ht.contentHeight,[`${Et}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:yt(ht.dotSize).mul(-1).div(2).equal()},[`${Et}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${ht.colorBgContainer}`},[`&${Et}-show-text ${Et}-dot`]:{marginTop:yt(ht.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${Et}-dot`]:{margin:yt(ht.dotSizeSM).mul(-1).div(2).equal()},[`${Et}-text`]:{paddingTop:yt(yt(ht.dotSizeSM).sub(ht.fontSize)).div(2).add(2).equal()},[`&${Et}-show-text ${Et}-dot`]:{marginTop:yt(ht.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${Et}-dot`]:{margin:yt(ht.dotSizeLG).mul(-1).div(2).equal()},[`${Et}-text`]:{paddingTop:yt(yt(ht.dotSizeLG).sub(ht.fontSize)).div(2).add(2).equal()},[`&${Et}-show-text ${Et}-dot`]:{marginTop:yt(ht.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${Et}-container`]:{position:"relative",transition:`opacity ${ht.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:ht.colorBgContainer,opacity:0,transition:`all ${ht.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${Et}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:ht.spinDotDefault},[`${Et}-dot-holder`]:{width:"1em",height:"1em",fontSize:ht.dotSize,display:"inline-block",transition:`transform ${ht.motionDurationSlow} ease, opacity ${ht.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:ht.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${Et}-dot-progress`]:{position:"absolute",top:"50%",transform:"translateY(-50%)",insetInlineStart:0},[`${Et}-dot`]:{position:"relative",display:"inline-block",fontSize:ht.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:yt(ht.dotSize).sub(yt(ht.marginXXS).div(2)).div(2).equal(),height:yt(ht.dotSize).sub(yt(ht.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:antSpinMove,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:antRotate,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(Ct=>`${Ct} ${ht.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:ht.colorFillSecondary}},[`&-sm ${Et}-dot`]:{"&, &-holder":{fontSize:ht.dotSizeSM}},[`&-sm ${Et}-dot-holder`]:{i:{width:yt(yt(ht.dotSizeSM).sub(yt(ht.marginXXS).div(2))).div(2).equal(),height:yt(yt(ht.dotSizeSM).sub(yt(ht.marginXXS).div(2))).div(2).equal()}},[`&-lg ${Et}-dot`]:{"&, &-holder":{fontSize:ht.dotSizeLG}},[`&-lg ${Et}-dot-holder`]:{i:{width:yt(yt(ht.dotSizeLG).sub(ht.marginXXS)).div(2).equal(),height:yt(yt(ht.dotSizeLG).sub(ht.marginXXS)).div(2).equal()}},[`&${Et}-show-text ${Et}-text`]:{display:"block"}})}},prepareComponentToken$3=ht=>{const{controlHeightLG:Et,controlHeight:yt}=ht;return{contentHeight:400,dotSize:Et/2,dotSizeSM:Et*.35,dotSizeLG:yt}},useStyle$3=genStyleHooks("Spin",ht=>{const Et=merge$2(ht,{spinDotDefault:ht.colorTextDescription});return[genSpinStyle(Et)]},prepareComponentToken$3),AUTO_INTERVAL=200,STEP_BUCKETS=[[30,.05],[70,.03],[96,.01]];function usePercent(ht,Et){const[yt,Ct]=reactExports.useState(0),$t=reactExports.useRef(),At=Et==="auto";return reactExports.useEffect(()=>(At&&ht&&(Ct(0),$t.current=setInterval(()=>{Ct(Bt=>{const Dt=100-Bt;for(let Ft=0;Ft<STEP_BUCKETS.length;Ft+=1){const[kt,Mt]=STEP_BUCKETS[Ft];if(Bt<=kt)return Bt+Dt*Mt}return Bt})},AUTO_INTERVAL)),()=>{clearInterval($t.current)}),[At,ht]),At?yt:Et}var __rest$4=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};let defaultIndicator;function shouldDelay(ht,Et){return!!ht&&!!Et&&!isNaN(Number(Et))}const Spin=ht=>{const{prefixCls:Et,spinning:yt=!0,delay:Ct=0,className:$t,rootClassName:At,size:Bt="default",tip:Dt,wrapperClassName:Ft,style:kt,children:Mt,fullscreen:Nt=!1,indicator:jt,percent:zt}=ht,Vt=__rest$4(ht,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:Kt}=reactExports.useContext(ConfigContext$1),Xt=Kt("spin",Et),[Qt,Zt,dr]=useStyle$3(Xt),[cr,Er]=reactExports.useState(()=>yt&&!shouldDelay(yt,Ct)),pr=usePercent(cr,zt);reactExports.useEffect(()=>{if(yt){const Wt=debounce$4(Ct,()=>{Er(!0)});return Wt(),()=>{var Gt;(Gt=Wt==null?void 0:Wt.cancel)===null||Gt===void 0||Gt.call(Wt)}}Er(!1)},[Ct,yt]);const gr=reactExports.useMemo(()=>typeof Mt<"u"&&!Nt,[Mt,Nt]),{direction:vr,spin:yr}=reactExports.useContext(ConfigContext$1),xr=cls(Xt,yr==null?void 0:yr.className,{[`${Xt}-sm`]:Bt==="small",[`${Xt}-lg`]:Bt==="large",[`${Xt}-spinning`]:cr,[`${Xt}-show-text`]:!!Dt,[`${Xt}-rtl`]:vr==="rtl"},$t,!Nt&&At,Zt,dr),rr=cls(`${Xt}-container`,{[`${Xt}-blur`]:cr}),Lt=Object.assign(Object.assign({},yr==null?void 0:yr.style),kt),Ht=reactExports.createElement("div",Object.assign({},Vt,{style:Lt,className:xr,"aria-live":"polite","aria-busy":cr}),reactExports.createElement(Indicator,{prefixCls:Xt,indicator:jt??defaultIndicator,percent:pr}),Dt&&(gr||Nt)?reactExports.createElement("div",{className:`${Xt}-text`},Dt):null);return Qt(gr?reactExports.createElement("div",Object.assign({},Vt,{className:cls(`${Xt}-nested-loading`,Ft,Zt,dr)}),cr&&reactExports.createElement("div",{key:"loading"},Ht),reactExports.createElement("div",{className:rr,key:"container"},Mt)):Nt?reactExports.createElement("div",{className:cls(`${Xt}-fullscreen`,{[`${Xt}-fullscreen-show`]:cr},At,Zt,dr)},Ht):Ht)};Spin.setDefaultIndicator=ht=>{defaultIndicator=ht};var __rest$3=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};const PurePanel=ht=>{const{prefixCls:Et,className:yt,closeIcon:Ct,closable:$t,type:At,title:Bt,children:Dt,footer:Ft}=ht,kt=__rest$3(ht,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:Mt}=reactExports.useContext(ConfigContext$1),Nt=Mt(),jt=Et||Mt("modal"),zt=useCSSVarCls(Nt),[Vt,Kt,Xt]=useStyle$l(jt,zt),Qt=`${jt}-confirm`;let Zt={};return At?Zt={closable:$t??!1,title:"",footer:"",children:reactExports.createElement(ConfirmContent,Object.assign({},ht,{prefixCls:jt,confirmPrefixCls:Qt,rootPrefixCls:Nt,content:Dt}))}:Zt={closable:$t??!0,title:Bt,footer:Ft!==null&&reactExports.createElement(Footer$3,Object.assign({},ht)),children:Dt},Vt(reactExports.createElement(Panel$1,Object.assign({prefixCls:jt,className:cls(Kt,`${jt}-pure-panel`,At&&Qt,At&&`${Qt}-${At}`,yt,Xt,zt)},kt,{closeIcon:renderCloseIcon(jt,Ct),closable:$t},Zt)))},PurePanel$1=withPureRenderTheme(PurePanel);function modalWarn(ht){return confirm(withWarn(ht))}const Modal=Modal$1;Modal.useModal=useModal;Modal.info=function ht(Et){return confirm(withInfo(Et))};Modal.success=function ht(Et){return confirm(withSuccess(Et))};Modal.error=function ht(Et){return confirm(withError(Et))};Modal.warning=modalWarn;Modal.warn=modalWarn;Modal.confirm=function ht(Et){return confirm(withConfirm(Et))};Modal.destroyAll=function ht(){for(;destroyFns.length;){const Et=destroyFns.pop();Et&&Et()}};Modal.config=modalGlobalConfig;Modal._InternalPanelDoNotUseOrYouWillBeFired=PurePanel$1;var _excluded$a=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Switch$1=reactExports.forwardRef(function(ht,Et){var yt,Ct=ht.prefixCls,$t=Ct===void 0?"rc-switch":Ct,At=ht.className,Bt=ht.checked,Dt=ht.defaultChecked,Ft=ht.disabled,kt=ht.loadingIcon,Mt=ht.checkedChildren,Nt=ht.unCheckedChildren,jt=ht.onClick,zt=ht.onChange,Vt=ht.onKeyDown,Kt=_objectWithoutProperties$1(ht,_excluded$a),Xt=useMergedState(!1,{value:Bt,defaultValue:Dt}),Qt=_slicedToArray(Xt,2),Zt=Qt[0],dr=Qt[1];function cr(vr,yr){var xr=Zt;return Ft||(xr=vr,dr(xr),zt==null||zt(xr,yr)),xr}function Er(vr){vr.which===KeyCode.LEFT?cr(!1,vr):vr.which===KeyCode.RIGHT&&cr(!0,vr),Vt==null||Vt(vr)}function pr(vr){var yr=cr(!Zt,vr);jt==null||jt(yr,vr)}var gr=cls($t,At,(yt={},_defineProperty$1(yt,"".concat($t,"-checked"),Zt),_defineProperty$1(yt,"".concat($t,"-disabled"),Ft),yt));return reactExports.createElement("button",_extends$5({},Kt,{type:"button",role:"switch","aria-checked":Zt,disabled:Ft,className:gr,ref:Et,onKeyDown:Er,onClick:pr}),kt,reactExports.createElement("span",{className:"".concat($t,"-inner")},reactExports.createElement("span",{className:"".concat($t,"-inner-checked")},Mt),reactExports.createElement("span",{className:"".concat($t,"-inner-unchecked")},Nt)))});Switch$1.displayName="Switch";const genSwitchSmallStyle=ht=>{const{componentCls:Et,trackHeightSM:yt,trackPadding:Ct,trackMinWidthSM:$t,innerMinMarginSM:At,innerMaxMarginSM:Bt,handleSizeSM:Dt,calc:Ft}=ht,kt=`${Et}-inner`,Mt=unit(Ft(Dt).add(Ft(Ct).mul(2)).equal()),Nt=unit(Ft(Bt).mul(2).equal());return{[Et]:{[`&${Et}-small`]:{minWidth:$t,height:yt,lineHeight:unit(yt),[`${Et}-inner`]:{paddingInlineStart:Bt,paddingInlineEnd:At,[`${kt}-checked, ${kt}-unchecked`]:{minHeight:yt},[`${kt}-checked`]:{marginInlineStart:`calc(-100% + ${Mt} - ${Nt})`,marginInlineEnd:`calc(100% - ${Mt} + ${Nt})`},[`${kt}-unchecked`]:{marginTop:Ft(yt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${Et}-handle`]:{width:Dt,height:Dt},[`${Et}-loading-icon`]:{top:Ft(Ft(Dt).sub(ht.switchLoadingIconSize)).div(2).equal(),fontSize:ht.switchLoadingIconSize},[`&${Et}-checked`]:{[`${Et}-inner`]:{paddingInlineStart:At,paddingInlineEnd:Bt,[`${kt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${kt}-unchecked`]:{marginInlineStart:`calc(100% - ${Mt} + ${Nt})`,marginInlineEnd:`calc(-100% + ${Mt} - ${Nt})`}},[`${Et}-handle`]:{insetInlineStart:`calc(100% - ${unit(Ft(Dt).add(Ct).equal())})`}},[`&:not(${Et}-disabled):active`]:{[`&:not(${Et}-checked) ${kt}`]:{[`${kt}-unchecked`]:{marginInlineStart:Ft(ht.marginXXS).div(2).equal(),marginInlineEnd:Ft(ht.marginXXS).mul(-1).div(2).equal()}},[`&${Et}-checked ${kt}`]:{[`${kt}-checked`]:{marginInlineStart:Ft(ht.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:Ft(ht.marginXXS).div(2).equal()}}}}}}},genSwitchLoadingStyle=ht=>{const{componentCls:Et,handleSize:yt,calc:Ct}=ht;return{[Et]:{[`${Et}-loading-icon${ht.iconCls}`]:{position:"relative",top:Ct(Ct(yt).sub(ht.fontSize)).div(2).equal(),color:ht.switchLoadingIconColor,verticalAlign:"top"},[`&${Et}-checked ${Et}-loading-icon`]:{color:ht.switchColor}}}},genSwitchHandleStyle=ht=>{const{componentCls:Et,trackPadding:yt,handleBg:Ct,handleShadow:$t,handleSize:At,calc:Bt}=ht,Dt=`${Et}-handle`;return{[Et]:{[Dt]:{position:"absolute",top:yt,insetInlineStart:yt,width:At,height:At,transition:`all ${ht.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Ct,borderRadius:Bt(At).div(2).equal(),boxShadow:$t,transition:`all ${ht.switchDuration} ease-in-out`,content:'""'}},[`&${Et}-checked ${Dt}`]:{insetInlineStart:`calc(100% - ${unit(Bt(At).add(yt).equal())})`},[`&:not(${Et}-disabled):active`]:{[`${Dt}::before`]:{insetInlineEnd:ht.switchHandleActiveInset,insetInlineStart:0},[`&${Et}-checked ${Dt}::before`]:{insetInlineEnd:0,insetInlineStart:ht.switchHandleActiveInset}}}}},genSwitchInnerStyle=ht=>{const{componentCls:Et,trackHeight:yt,trackPadding:Ct,innerMinMargin:$t,innerMaxMargin:At,handleSize:Bt,calc:Dt}=ht,Ft=`${Et}-inner`,kt=unit(Dt(Bt).add(Dt(Ct).mul(2)).equal()),Mt=unit(Dt(At).mul(2).equal());return{[Et]:{[Ft]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:At,paddingInlineEnd:$t,transition:`padding-inline-start ${ht.switchDuration} ease-in-out, padding-inline-end ${ht.switchDuration} ease-in-out`,[`${Ft}-checked, ${Ft}-unchecked`]:{display:"block",color:ht.colorTextLightSolid,fontSize:ht.fontSizeSM,transition:`margin-inline-start ${ht.switchDuration} ease-in-out, margin-inline-end ${ht.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:yt},[`${Ft}-checked`]:{marginInlineStart:`calc(-100% + ${kt} - ${Mt})`,marginInlineEnd:`calc(100% - ${kt} + ${Mt})`},[`${Ft}-unchecked`]:{marginTop:Dt(yt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${Et}-checked ${Ft}`]:{paddingInlineStart:$t,paddingInlineEnd:At,[`${Ft}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ft}-unchecked`]:{marginInlineStart:`calc(100% - ${kt} + ${Mt})`,marginInlineEnd:`calc(-100% + ${kt} - ${Mt})`}},[`&:not(${Et}-disabled):active`]:{[`&:not(${Et}-checked) ${Ft}`]:{[`${Ft}-unchecked`]:{marginInlineStart:Dt(Ct).mul(2).equal(),marginInlineEnd:Dt(Ct).mul(-1).mul(2).equal()}},[`&${Et}-checked ${Ft}`]:{[`${Ft}-checked`]:{marginInlineStart:Dt(Ct).mul(-1).mul(2).equal(),marginInlineEnd:Dt(Ct).mul(2).equal()}}}}}},genSwitchStyle=ht=>{const{componentCls:Et,trackHeight:yt,trackMinWidth:Ct}=ht;return{[Et]:Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent(ht)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Ct,height:yt,lineHeight:`${unit(yt)}`,verticalAlign:"middle",background:ht.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${ht.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Et}-disabled)`]:{background:ht.colorTextTertiary}}),genFocusStyle(ht)),{[`&${Et}-checked`]:{background:ht.switchColor,[`&:hover:not(${Et}-disabled)`]:{background:ht.colorPrimaryHover}},[`&${Et}-loading, &${Et}-disabled`]:{cursor:"not-allowed",opacity:ht.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Et}-rtl`]:{direction:"rtl"}})}},prepareComponentToken$2=ht=>{const{fontSize:Et,lineHeight:yt,controlHeight:Ct,colorWhite:$t}=ht,At=Et*yt,Bt=Ct/2,Dt=2,Ft=At-Dt*2,kt=Bt-Dt*2;return{trackHeight:At,trackHeightSM:Bt,trackMinWidth:Ft*2+Dt*4,trackMinWidthSM:kt*2+Dt*2,trackPadding:Dt,handleBg:$t,handleSize:Ft,handleSizeSM:kt,handleShadow:`0 2px 4px 0 ${new TinyColor("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:Ft/2,innerMaxMargin:Ft+Dt+Dt*2,innerMinMarginSM:kt/2,innerMaxMarginSM:kt+Dt+Dt*2}},useStyle$2=genStyleHooks("Switch",ht=>{const Et=merge$2(ht,{switchDuration:ht.motionDurationMid,switchColor:ht.colorPrimary,switchDisabledOpacity:ht.opacityLoading,switchLoadingIconSize:ht.calc(ht.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${ht.opacityLoading})`,switchHandleActiveInset:"-30%"});return[genSwitchStyle(Et),genSwitchInnerStyle(Et),genSwitchHandleStyle(Et),genSwitchLoadingStyle(Et),genSwitchSmallStyle(Et)]},prepareComponentToken$2);var __rest$2=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};const InternalSwitch=reactExports.forwardRef((ht,Et)=>{const{prefixCls:yt,size:Ct,disabled:$t,loading:At,className:Bt,rootClassName:Dt,style:Ft,checked:kt,value:Mt,defaultChecked:Nt,defaultValue:jt,onChange:zt}=ht,Vt=__rest$2(ht,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[Kt,Xt]=useMergedState(!1,{value:kt??Mt,defaultValue:Nt??jt}),{getPrefixCls:Qt,direction:Zt,switch:dr}=reactExports.useContext(ConfigContext$1),cr=reactExports.useContext(DisabledContext),Er=($t??cr)||At,pr=Qt("switch",yt),gr=reactExports.createElement("div",{className:`${pr}-handle`},At&&reactExports.createElement(RefIcon$o,{className:`${pr}-loading-icon`})),[vr,yr,xr]=useStyle$2(pr),rr=useSize(Ct),Lt=cls(dr==null?void 0:dr.className,{[`${pr}-small`]:rr==="small",[`${pr}-loading`]:At,[`${pr}-rtl`]:Zt==="rtl"},Bt,Dt,yr,xr),Ht=Object.assign(Object.assign({},dr==null?void 0:dr.style),Ft),Wt=function(){Xt(arguments.length<=0?void 0:arguments[0]),zt==null||zt.apply(void 0,arguments)};return vr(reactExports.createElement(Wave,{component:"Switch"},reactExports.createElement(Switch$1,Object.assign({},Vt,{checked:Kt,onChange:Wt,prefixCls:pr,className:Lt,style:Ht,disabled:Er,ref:Et,loadingIcon:gr}))))}),Switch=InternalSwitch;Switch.__ANT_SWITCH=!0;var EXPAND_COLUMN={},INTERNAL_HOOKS="rc-table-internal-hook";function createContext(ht){var Et=reactExports.createContext(void 0),yt=function($t){var At=$t.value,Bt=$t.children,Dt=reactExports.useRef(At);Dt.current=At;var Ft=reactExports.useState(function(){return{getValue:function(){return Dt.current},listeners:new Set}}),kt=_slicedToArray(Ft,1),Mt=kt[0];return useLayoutEffect$1(function(){reactDomExports.unstable_batchedUpdates(function(){Mt.listeners.forEach(function(Nt){Nt(At)})})},[At]),reactExports.createElement(Et.Provider,{value:Mt},Bt)};return{Context:Et,Provider:yt,defaultValue:ht}}function useContext(ht,Et){var yt=useEvent(typeof Et=="function"?Et:function(Nt){if(Et===void 0)return Nt;if(!Array.isArray(Et))return Nt[Et];var jt={};return Et.forEach(function(zt){jt[zt]=Nt[zt]}),jt}),Ct=reactExports.useContext(ht==null?void 0:ht.Context),$t=Ct||{},At=$t.listeners,Bt=$t.getValue,Dt=reactExports.useRef();Dt.current=yt(Ct?Bt():ht==null?void 0:ht.defaultValue);var Ft=reactExports.useState({}),kt=_slicedToArray(Ft,2),Mt=kt[1];return useLayoutEffect$1(function(){if(!Ct)return;function Nt(jt){var zt=yt(jt);isEqual$3(Dt.current,zt,!0)||Mt({})}return At.add(Nt),function(){At.delete(Nt)}},[Ct]),Dt.current}function createImmutable(){var ht=reactExports.createContext(null);function Et(){return reactExports.useContext(ht)}function yt($t,At){var Bt=supportRef($t),Dt=function(kt,Mt){var Nt=Bt?{ref:Mt}:{},jt=reactExports.useRef(0),zt=reactExports.useRef(kt),Vt=Et();return Vt!==null?reactExports.createElement($t,_extends$5({},kt,Nt)):((!At||At(zt.current,kt))&&(jt.current+=1),zt.current=kt,reactExports.createElement(ht.Provider,{value:jt.current},reactExports.createElement($t,_extends$5({},kt,Nt))))};return Bt?reactExports.forwardRef(Dt):Dt}function Ct($t,At){var Bt=supportRef($t),Dt=function(kt,Mt){var Nt=Bt?{ref:Mt}:{};return Et(),reactExports.createElement($t,_extends$5({},kt,Nt))};return Bt?reactExports.memo(reactExports.forwardRef(Dt),At):reactExports.memo(Dt,At)}return{makeImmutable:yt,responseImmutable:Ct,useImmutableMark:Et}}var _createImmutable=createImmutable(),makeImmutable=_createImmutable.makeImmutable,responseImmutable=_createImmutable.responseImmutable,useImmutableMark=_createImmutable.useImmutableMark,TableContext=createContext(),PerfContext=reactExports.createContext({renderWithProps:!1}),INTERNAL_KEY_PREFIX="RC_TABLE_KEY";function toArray(ht){return ht==null?[]:Array.isArray(ht)?ht:[ht]}function getColumnsKey(ht){var Et=[],yt={};return ht.forEach(function(Ct){for(var $t=Ct||{},At=$t.key,Bt=$t.dataIndex,Dt=At||toArray(Bt).join("-")||INTERNAL_KEY_PREFIX;yt[Dt];)Dt="".concat(Dt,"_next");yt[Dt]=!0,Et.push(Dt)}),Et}function validateValue$1(ht){return ht!=null}function isRenderCell(ht){return ht&&_typeof$1(ht)==="object"&&!Array.isArray(ht)&&!reactExports.isValidElement(ht)}function useCellRender(ht,Et,yt,Ct,$t,At){var Bt=reactExports.useContext(PerfContext),Dt=useImmutableMark(),Ft=useMemo(function(){if(validateValue$1(Ct))return[Ct];var kt=Et==null||Et===""?[]:Array.isArray(Et)?Et:[Et],Mt=get$3(ht,kt),Nt=Mt,jt=void 0;if($t){var zt=$t(Mt,ht,yt);isRenderCell(zt)?(Nt=zt.children,jt=zt.props,Bt.renderWithProps=!0):Nt=zt}return[Nt,jt]},[Dt,ht,Ct,Et,$t,yt],function(kt,Mt){if(At){var Nt=_slicedToArray(kt,2),jt=Nt[1],zt=_slicedToArray(Mt,2),Vt=zt[1];return At(Vt,jt)}return Bt.renderWithProps?!0:!isEqual$3(kt,Mt,!0)});return Ft}function inHoverRange(ht,Et,yt,Ct){var $t=ht+Et-1;return ht<=Ct&&$t>=yt}function useHoverState(ht,Et){return useContext(TableContext,function(yt){var Ct=inHoverRange(ht,Et||1,yt.hoverStartRow,yt.hoverEndRow);return[Ct,yt.onHover]})}var getTitleFromCellRenderChildren=function ht(Et){var yt=Et.ellipsis,Ct=Et.rowType,$t=Et.children,At,Bt=yt===!0?{showTitle:!0}:yt;return Bt&&(Bt.showTitle||Ct==="header")&&(typeof $t=="string"||typeof $t=="number"?At=$t.toString():reactExports.isValidElement($t)&&typeof $t.props.children=="string"&&(At=$t.props.children)),At};function Cell(ht){var Et,yt,Ct,$t,At,Bt,Dt,Ft,kt=ht.component,Mt=ht.children,Nt=ht.ellipsis,jt=ht.scope,zt=ht.prefixCls,Vt=ht.className,Kt=ht.align,Xt=ht.record,Qt=ht.render,Zt=ht.dataIndex,dr=ht.renderIndex,cr=ht.shouldCellUpdate,Er=ht.index,pr=ht.rowType,gr=ht.colSpan,vr=ht.rowSpan,yr=ht.fixLeft,xr=ht.fixRight,rr=ht.firstFixLeft,Lt=ht.lastFixLeft,Ht=ht.firstFixRight,Wt=ht.lastFixRight,Gt=ht.appendNode,Yt=ht.additionalProps,er=Yt===void 0?{}:Yt,lr=ht.isSticky,Jt="".concat(zt,"-cell"),Ut=useContext(TableContext,["supportSticky","allColumnsFixedLeft","rowHoverable"]),ir=Ut.supportSticky,Cr=Ut.allColumnsFixedLeft,_r=Ut.rowHoverable,$r=useCellRender(Xt,Zt,dr,Mt,Qt,cr),Tr=_slicedToArray($r,2),Dr=Tr[0],Ar=Tr[1],Fr={},Rr=typeof yr=="number"&&ir,wr=typeof xr=="number"&&ir;Rr&&(Fr.position="sticky",Fr.left=yr),wr&&(Fr.position="sticky",Fr.right=xr);var Sr=(Et=(yt=(Ct=Ar==null?void 0:Ar.colSpan)!==null&&Ct!==void 0?Ct:er.colSpan)!==null&&yt!==void 0?yt:gr)!==null&&Et!==void 0?Et:1,Br=($t=(At=(Bt=Ar==null?void 0:Ar.rowSpan)!==null&&Bt!==void 0?Bt:er.rowSpan)!==null&&At!==void 0?At:vr)!==null&&$t!==void 0?$t:1,Or=useHoverState(Er,Br),Pr=_slicedToArray(Or,2),Nr=Pr[0],Lr=Pr[1],Wr=useEvent(function(Xr){var un;Xt&&Lr(Er,Er+Br-1),er==null||(un=er.onMouseEnter)===null||un===void 0||un.call(er,Xr)}),Ur=useEvent(function(Xr){var un;Xt&&Lr(-1,-1),er==null||(un=er.onMouseLeave)===null||un===void 0||un.call(er,Xr)});if(Sr===0||Br===0)return null;var jr=(Dt=er.title)!==null&&Dt!==void 0?Dt:getTitleFromCellRenderChildren({rowType:pr,ellipsis:Nt,children:Dr}),Kr=cls(Jt,Vt,(Ft={},_defineProperty$1(Ft,"".concat(Jt,"-fix-left"),Rr&&ir),_defineProperty$1(Ft,"".concat(Jt,"-fix-left-first"),rr&&ir),_defineProperty$1(Ft,"".concat(Jt,"-fix-left-last"),Lt&&ir),_defineProperty$1(Ft,"".concat(Jt,"-fix-left-all"),Lt&&Cr&&ir),_defineProperty$1(Ft,"".concat(Jt,"-fix-right"),wr&&ir),_defineProperty$1(Ft,"".concat(Jt,"-fix-right-first"),Ht&&ir),_defineProperty$1(Ft,"".concat(Jt,"-fix-right-last"),Wt&&ir),_defineProperty$1(Ft,"".concat(Jt,"-ellipsis"),Nt),_defineProperty$1(Ft,"".concat(Jt,"-with-append"),Gt),_defineProperty$1(Ft,"".concat(Jt,"-fix-sticky"),(Rr||wr)&&lr&&ir),_defineProperty$1(Ft,"".concat(Jt,"-row-hover"),!Ar&&Nr),Ft),er.className,Ar==null?void 0:Ar.className),qr={};Kt&&(qr.textAlign=Kt);var Zr=_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({},Fr),er.style),qr),Ar==null?void 0:Ar.style),dn=Dr;return _typeof$1(dn)==="object"&&!Array.isArray(dn)&&!reactExports.isValidElement(dn)&&(dn=null),Nt&&(Lt||Ht)&&(dn=reactExports.createElement("span",{className:"".concat(Jt,"-content")},dn)),reactExports.createElement(kt,_extends$5({},Ar,er,{className:Kr,style:Zr,title:jr,scope:jt,onMouseEnter:_r?Wr:void 0,onMouseLeave:_r?Ur:void 0,colSpan:Sr!==1?Sr:null,rowSpan:Br!==1?Br:null}),Gt,dn)}const Cell$1=reactExports.memo(Cell);function getCellFixedInfo(ht,Et,yt,Ct,$t){var At=yt[ht]||{},Bt=yt[Et]||{},Dt,Ft;At.fixed==="left"?Dt=Ct.left[$t==="rtl"?Et:ht]:Bt.fixed==="right"&&(Ft=Ct.right[$t==="rtl"?ht:Et]);var kt=!1,Mt=!1,Nt=!1,jt=!1,zt=yt[Et+1],Vt=yt[ht-1],Kt=zt&&!zt.fixed||Vt&&!Vt.fixed||yt.every(function(cr){return cr.fixed==="left"});if($t==="rtl"){if(Dt!==void 0){var Xt=Vt&&Vt.fixed==="left";jt=!Xt&&Kt}else if(Ft!==void 0){var Qt=zt&&zt.fixed==="right";Nt=!Qt&&Kt}}else if(Dt!==void 0){var Zt=zt&&zt.fixed==="left";kt=!Zt&&Kt}else if(Ft!==void 0){var dr=Vt&&Vt.fixed==="right";Mt=!dr&&Kt}return{fixLeft:Dt,fixRight:Ft,lastFixLeft:kt,firstFixRight:Mt,lastFixRight:Nt,firstFixLeft:jt,isSticky:Ct.isSticky}}var SummaryContext=reactExports.createContext({});function SummaryCell(ht){var Et=ht.className,yt=ht.index,Ct=ht.children,$t=ht.colSpan,At=$t===void 0?1:$t,Bt=ht.rowSpan,Dt=ht.align,Ft=useContext(TableContext,["prefixCls","direction"]),kt=Ft.prefixCls,Mt=Ft.direction,Nt=reactExports.useContext(SummaryContext),jt=Nt.scrollColumnIndex,zt=Nt.stickyOffsets,Vt=Nt.flattenColumns,Kt=yt+At-1,Xt=Kt+1===jt?At+1:At,Qt=getCellFixedInfo(yt,yt+Xt-1,Vt,zt,Mt);return reactExports.createElement(Cell$1,_extends$5({className:Et,index:yt,component:"td",prefixCls:kt,record:null,dataIndex:null,align:Dt,colSpan:Xt,rowSpan:Bt,render:function(){return Ct}},Qt))}var _excluded$9=["children"];function FooterRow(ht){var Et=ht.children,yt=_objectWithoutProperties$1(ht,_excluded$9);return reactExports.createElement("tr",yt,Et)}function Summary(ht){var Et=ht.children;return Et}Summary.Row=FooterRow;Summary.Cell=SummaryCell;function Footer(ht){var Et=ht.children,yt=ht.stickyOffsets,Ct=ht.flattenColumns,$t=useContext(TableContext,"prefixCls"),At=Ct.length-1,Bt=Ct[At],Dt=reactExports.useMemo(function(){return{stickyOffsets:yt,flattenColumns:Ct,scrollColumnIndex:Bt!=null&&Bt.scrollbar?At:null}},[Bt,Ct,At,yt]);return reactExports.createElement(SummaryContext.Provider,{value:Dt},reactExports.createElement("tfoot",{className:"".concat($t,"-summary")},Et))}const Footer$1=responseImmutable(Footer);var FooterComponents=Summary;function Column$1(ht){return null}function ColumnGroup$1(ht){return null}function fillRecords(ht,Et,yt,Ct,$t,At,Bt){ht.push({record:Et,indent:yt,index:Bt});var Dt=At(Et),Ft=$t==null?void 0:$t.has(Dt);if(Et&&Array.isArray(Et[Ct])&&Ft)for(var kt=0;kt<Et[Ct].length;kt+=1)fillRecords(ht,Et[Ct][kt],yt+1,Ct,$t,At,kt)}function useFlattenRecords(ht,Et,yt,Ct){var $t=reactExports.useMemo(function(){if(yt!=null&&yt.size){for(var At=[],Bt=0;Bt<(ht==null?void 0:ht.length);Bt+=1){var Dt=ht[Bt];fillRecords(At,Dt,0,Et,yt,Ct,Bt)}return At}return ht==null?void 0:ht.map(function(Ft,kt){return{record:Ft,indent:0,index:kt}})},[ht,Et,yt,Ct]);return $t}function useRowInfo(ht,Et,yt,Ct){var $t=useContext(TableContext,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),At=$t.flattenColumns,Bt=$t.expandableType,Dt=$t.expandedKeys,Ft=$t.childrenColumnName,kt=$t.onTriggerExpand,Mt=$t.rowExpandable,Nt=$t.onRow,jt=$t.expandRowByClick,zt=$t.rowClassName,Vt=Bt==="nest",Kt=Bt==="row"&&(!Mt||Mt(ht)),Xt=Kt||Vt,Qt=Dt&&Dt.has(Et),Zt=Ft&&ht&&ht[Ft],dr=useEvent(kt),cr=Nt==null?void 0:Nt(ht,yt),Er=cr==null?void 0:cr.onClick,pr=function(xr){jt&&Xt&&kt(ht,xr);for(var rr=arguments.length,Lt=new Array(rr>1?rr-1:0),Ht=1;Ht<rr;Ht++)Lt[Ht-1]=arguments[Ht];Er==null||Er.apply(void 0,[xr].concat(Lt))},gr;typeof zt=="string"?gr=zt:typeof zt=="function"&&(gr=zt(ht,yt,Ct));var vr=getColumnsKey(At);return _objectSpread2(_objectSpread2({},$t),{},{columnsKey:vr,nestExpandable:Vt,expanded:Qt,hasNestChildren:Zt,record:ht,onTriggerExpand:dr,rowSupportExpand:Kt,expandable:Xt,rowProps:_objectSpread2(_objectSpread2({},cr),{},{className:cls(gr,cr==null?void 0:cr.className),onClick:pr})})}function ExpandedRow(ht){var Et=ht.prefixCls,yt=ht.children,Ct=ht.component,$t=ht.cellComponent,At=ht.className,Bt=ht.expanded,Dt=ht.colSpan,Ft=ht.isEmpty,kt=useContext(TableContext,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Mt=kt.scrollbarSize,Nt=kt.fixHeader,jt=kt.fixColumn,zt=kt.componentWidth,Vt=kt.horizonScroll,Kt=yt;return(Ft?Vt&&zt:jt)&&(Kt=reactExports.createElement("div",{style:{width:zt-(Nt?Mt:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Et,"-expanded-row-fixed")},Kt)),reactExports.createElement(Ct,{className:At,style:{display:Bt?null:"none"}},reactExports.createElement(Cell$1,{component:$t,prefixCls:Et,colSpan:Dt},Kt))}function getCellProps(ht,Et,yt,Ct,$t){var At=ht.record,Bt=ht.prefixCls,Dt=ht.columnsKey,Ft=ht.fixedInfoList,kt=ht.expandIconColumnIndex,Mt=ht.nestExpandable,Nt=ht.indentSize,jt=ht.expandIcon,zt=ht.expanded,Vt=ht.hasNestChildren,Kt=ht.onTriggerExpand,Xt=Dt[yt],Qt=Ft[yt],Zt;yt===(kt||0)&&Mt&&(Zt=reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("span",{style:{paddingLeft:"".concat(Nt*Ct,"px")},className:"".concat(Bt,"-row-indent indent-level-").concat(Ct)}),jt({prefixCls:Bt,expanded:zt,expandable:Vt,record:At,onExpand:Kt})));var dr;return Et.onCell&&(dr=Et.onCell(At,$t)),{key:Xt,fixedInfo:Qt,appendCellNode:Zt,additionalCellProps:dr||{}}}function BodyRow(ht){var Et=ht.className,yt=ht.style,Ct=ht.record,$t=ht.index,At=ht.renderIndex,Bt=ht.rowKey,Dt=ht.indent,Ft=Dt===void 0?0:Dt,kt=ht.rowComponent,Mt=ht.cellComponent,Nt=ht.scopeCellComponent,jt=useRowInfo(Ct,Bt,$t,Ft),zt=jt.prefixCls,Vt=jt.flattenColumns,Kt=jt.expandedRowClassName,Xt=jt.expandedRowRender,Qt=jt.rowProps,Zt=jt.expanded,dr=jt.rowSupportExpand,cr=reactExports.useRef(!1);cr.current||(cr.current=Zt);var Er=Kt&&Kt(Ct,$t,Ft),pr=reactExports.createElement(kt,_extends$5({},Qt,{"data-row-key":Bt,className:cls(Et,"".concat(zt,"-row"),"".concat(zt,"-row-level-").concat(Ft),Qt==null?void 0:Qt.className,Ft>=1?Er:""),style:_objectSpread2(_objectSpread2({},yt),Qt==null?void 0:Qt.style)}),Vt.map(function(yr,xr){var rr=yr.render,Lt=yr.dataIndex,Ht=yr.className,Wt=getCellProps(jt,yr,xr,Ft,$t),Gt=Wt.key,Yt=Wt.fixedInfo,er=Wt.appendCellNode,lr=Wt.additionalCellProps;return reactExports.createElement(Cell$1,_extends$5({className:Ht,ellipsis:yr.ellipsis,align:yr.align,scope:yr.rowScope,component:yr.rowScope?Nt:Mt,prefixCls:zt,key:Gt,record:Ct,index:$t,renderIndex:At,dataIndex:Lt,render:rr,shouldCellUpdate:yr.shouldCellUpdate},Yt,{appendNode:er,additionalProps:lr}))})),gr;if(dr&&(cr.current||Zt)){var vr=Xt(Ct,$t,Ft+1,Zt);gr=reactExports.createElement(ExpandedRow,{expanded:Zt,className:cls("".concat(zt,"-expanded-row"),"".concat(zt,"-expanded-row-level-").concat(Ft+1),Er),prefixCls:zt,component:kt,cellComponent:Mt,colSpan:Vt.length,isEmpty:!1},vr)}return reactExports.createElement(reactExports.Fragment,null,pr,gr)}const BodyRow$1=responseImmutable(BodyRow);function MeasureCell(ht){var Et=ht.columnKey,yt=ht.onColumnResize,Ct=reactExports.useRef();return reactExports.useEffect(function(){Ct.current&&yt(Et,Ct.current.offsetWidth)},[]),reactExports.createElement(RefResizeObserver,{data:Et},reactExports.createElement("td",{ref:Ct,style:{padding:0,border:0,height:0}},reactExports.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function MeasureRow(ht){var Et=ht.prefixCls,yt=ht.columnsKey,Ct=ht.onColumnResize;return reactExports.createElement("tr",{"aria-hidden":"true",className:"".concat(Et,"-measure-row"),style:{height:0,fontSize:0}},reactExports.createElement(RefResizeObserver.Collection,{onBatchResize:function(At){At.forEach(function(Bt){var Dt=Bt.data,Ft=Bt.size;Ct(Dt,Ft.offsetWidth)})}},yt.map(function($t){return reactExports.createElement(MeasureCell,{key:$t,columnKey:$t,onColumnResize:Ct})})))}function Body(ht){var Et=ht.data,yt=ht.measureColumnWidth,Ct=useContext(TableContext,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),$t=Ct.prefixCls,At=Ct.getComponent,Bt=Ct.onColumnResize,Dt=Ct.flattenColumns,Ft=Ct.getRowKey,kt=Ct.expandedKeys,Mt=Ct.childrenColumnName,Nt=Ct.emptyNode,jt=useFlattenRecords(Et,Mt,kt,Ft),zt=reactExports.useRef({renderWithProps:!1}),Vt=At(["body","wrapper"],"tbody"),Kt=At(["body","row"],"tr"),Xt=At(["body","cell"],"td"),Qt=At(["body","cell"],"th"),Zt;Et.length?Zt=jt.map(function(cr,Er){var pr=cr.record,gr=cr.indent,vr=cr.index,yr=Ft(pr,Er);return reactExports.createElement(BodyRow$1,{key:yr,rowKey:yr,record:pr,index:Er,renderIndex:vr,rowComponent:Kt,cellComponent:Xt,scopeCellComponent:Qt,getRowKey:Ft,indent:gr})}):Zt=reactExports.createElement(ExpandedRow,{expanded:!0,className:"".concat($t,"-placeholder"),prefixCls:$t,component:Kt,cellComponent:Xt,colSpan:Dt.length,isEmpty:!0},Nt);var dr=getColumnsKey(Dt);return reactExports.createElement(PerfContext.Provider,{value:zt.current},reactExports.createElement(Vt,{className:"".concat($t,"-tbody")},yt&&reactExports.createElement(MeasureRow,{prefixCls:$t,columnsKey:dr,onColumnResize:Bt}),Zt))}const Body$1=responseImmutable(Body);var _excluded$8=["expandable"],INTERNAL_COL_DEFINE="RC_TABLE_INTERNAL_COL_DEFINE";function getExpandableProps(ht){var Et=ht.expandable,yt=_objectWithoutProperties$1(ht,_excluded$8),Ct;return"expandable"in ht?Ct=_objectSpread2(_objectSpread2({},yt),Et):Ct=yt,Ct.showExpandColumn===!1&&(Ct.expandIconColumnIndex=-1),Ct}var _excluded$7=["columnType"];function ColGroup(ht){for(var Et=ht.colWidths,yt=ht.columns,Ct=ht.columCount,$t=[],At=Ct||yt.length,Bt=!1,Dt=At-1;Dt>=0;Dt-=1){var Ft=Et[Dt],kt=yt&&yt[Dt],Mt=kt&&kt[INTERNAL_COL_DEFINE];if(Ft||Mt||Bt){var Nt=Mt||{};Nt.columnType;var jt=_objectWithoutProperties$1(Nt,_excluded$7);$t.unshift(reactExports.createElement("col",_extends$5({key:Dt,style:{width:Ft}},jt))),Bt=!0}}return reactExports.createElement("colgroup",null,$t)}var _excluded$6=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function useColumnWidth(ht,Et){return reactExports.useMemo(function(){for(var yt=[],Ct=0;Ct<Et;Ct+=1){var $t=ht[Ct];if($t!==void 0)yt[Ct]=$t;else return null}return yt},[ht.join("_"),Et])}var FixedHolder=reactExports.forwardRef(function(ht,Et){var yt=ht.className,Ct=ht.noData,$t=ht.columns,At=ht.flattenColumns,Bt=ht.colWidths,Dt=ht.columCount,Ft=ht.stickyOffsets,kt=ht.direction,Mt=ht.fixHeader,Nt=ht.stickyTopOffset,jt=ht.stickyBottomOffset,zt=ht.stickyClassName,Vt=ht.onScroll,Kt=ht.maxContentScroll,Xt=ht.children,Qt=_objectWithoutProperties$1(ht,_excluded$6),Zt=useContext(TableContext,["prefixCls","scrollbarSize","isSticky","getComponent"]),dr=Zt.prefixCls,cr=Zt.scrollbarSize,Er=Zt.isSticky,pr=Zt.getComponent,gr=pr(["header","table"],"table"),vr=Er&&!Mt?0:cr,yr=reactExports.useRef(null),xr=reactExports.useCallback(function(lr){fillRef(Et,lr),fillRef(yr,lr)},[]);reactExports.useEffect(function(){var lr;function Jt(Ut){var ir=Ut,Cr=ir.currentTarget,_r=ir.deltaX;_r&&(Vt({currentTarget:Cr,scrollLeft:Cr.scrollLeft+_r}),Ut.preventDefault())}return(lr=yr.current)===null||lr===void 0||lr.addEventListener("wheel",Jt,{passive:!1}),function(){var Ut;(Ut=yr.current)===null||Ut===void 0||Ut.removeEventListener("wheel",Jt)}},[]);var rr=reactExports.useMemo(function(){return At.every(function(lr){return lr.width})},[At]),Lt=At[At.length-1],Ht={fixed:Lt?Lt.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(dr,"-cell-scrollbar")}}},Wt=reactExports.useMemo(function(){return vr?[].concat(_toConsumableArray($t),[Ht]):$t},[vr,$t]),Gt=reactExports.useMemo(function(){return vr?[].concat(_toConsumableArray(At),[Ht]):At},[vr,At]),Yt=reactExports.useMemo(function(){var lr=Ft.right,Jt=Ft.left;return _objectSpread2(_objectSpread2({},Ft),{},{left:kt==="rtl"?[].concat(_toConsumableArray(Jt.map(function(Ut){return Ut+vr})),[0]):Jt,right:kt==="rtl"?lr:[].concat(_toConsumableArray(lr.map(function(Ut){return Ut+vr})),[0]),isSticky:Er})},[vr,Ft,Er]),er=useColumnWidth(Bt,Dt);return reactExports.createElement("div",{style:_objectSpread2({overflow:"hidden"},Er?{top:Nt,bottom:jt}:{}),ref:xr,className:cls(yt,_defineProperty$1({},zt,!!zt))},reactExports.createElement(gr,{style:{tableLayout:"fixed",visibility:Ct||er?null:"hidden"}},(!Ct||!Kt||rr)&&reactExports.createElement(ColGroup,{colWidths:er?[].concat(_toConsumableArray(er),[vr]):[],columCount:Dt+1,columns:Gt}),Xt(_objectSpread2(_objectSpread2({},Qt),{},{stickyOffsets:Yt,columns:Wt,flattenColumns:Gt}))))});const FixedHolder$1=reactExports.memo(FixedHolder);var HeaderRow=function ht(Et){var yt=Et.cells,Ct=Et.stickyOffsets,$t=Et.flattenColumns,At=Et.rowComponent,Bt=Et.cellComponent,Dt=Et.onHeaderRow,Ft=Et.index,kt=useContext(TableContext,["prefixCls","direction"]),Mt=kt.prefixCls,Nt=kt.direction,jt;Dt&&(jt=Dt(yt.map(function(Vt){return Vt.column}),Ft));var zt=getColumnsKey(yt.map(function(Vt){return Vt.column}));return reactExports.createElement(At,jt,yt.map(function(Vt,Kt){var Xt=Vt.column,Qt=getCellFixedInfo(Vt.colStart,Vt.colEnd,$t,Ct,Nt),Zt;return Xt&&Xt.onHeaderCell&&(Zt=Vt.column.onHeaderCell(Xt)),reactExports.createElement(Cell$1,_extends$5({},Vt,{scope:Xt.title?Vt.colSpan>1?"colgroup":"col":null,ellipsis:Xt.ellipsis,align:Xt.align,component:Bt,prefixCls:Mt,key:zt[Kt]},Qt,{additionalProps:Zt,rowType:"header"}))}))};function parseHeaderRows(ht){var Et=[];function yt(Bt,Dt){var Ft=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Et[Ft]=Et[Ft]||[];var kt=Dt,Mt=Bt.filter(Boolean).map(function(Nt){var jt={key:Nt.key,className:Nt.className||"",children:Nt.title,column:Nt,colStart:kt},zt=1,Vt=Nt.children;return Vt&&Vt.length>0&&(zt=yt(Vt,kt,Ft+1).reduce(function(Kt,Xt){return Kt+Xt},0),jt.hasSubColumns=!0),"colSpan"in Nt&&(zt=Nt.colSpan),"rowSpan"in Nt&&(jt.rowSpan=Nt.rowSpan),jt.colSpan=zt,jt.colEnd=jt.colStart+zt-1,Et[Ft].push(jt),kt+=zt,zt});return Mt}yt(ht,0);for(var Ct=Et.length,$t=function(Dt){Et[Dt].forEach(function(Ft){!("rowSpan"in Ft)&&!Ft.hasSubColumns&&(Ft.rowSpan=Ct-Dt)})},At=0;At<Ct;At+=1)$t(At);return Et}var Header=function ht(Et){var yt=Et.stickyOffsets,Ct=Et.columns,$t=Et.flattenColumns,At=Et.onHeaderRow,Bt=useContext(TableContext,["prefixCls","getComponent"]),Dt=Bt.prefixCls,Ft=Bt.getComponent,kt=reactExports.useMemo(function(){return parseHeaderRows(Ct)},[Ct]),Mt=Ft(["header","wrapper"],"thead"),Nt=Ft(["header","row"],"tr"),jt=Ft(["header","cell"],"th");return reactExports.createElement(Mt,{className:"".concat(Dt,"-thead")},kt.map(function(zt,Vt){var Kt=reactExports.createElement(HeaderRow,{key:Vt,flattenColumns:$t,cells:zt,stickyOffsets:yt,rowComponent:Nt,cellComponent:jt,onHeaderRow:At,index:Vt});return Kt}))};const Header$1=responseImmutable(Header);function parseColWidth(ht){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Et=="number"?Et:Et.endsWith("%")?ht*parseFloat(Et)/100:null}function useWidthColumns(ht,Et,yt){return reactExports.useMemo(function(){if(Et&&Et>0){var Ct=0,$t=0;ht.forEach(function(jt){var zt=parseColWidth(Et,jt.width);zt?Ct+=zt:$t+=1});var At=Math.max(Et,yt),Bt=Math.max(At-Ct,$t),Dt=$t,Ft=Bt/$t,kt=0,Mt=ht.map(function(jt){var zt=_objectSpread2({},jt),Vt=parseColWidth(Et,zt.width);if(Vt)zt.width=Vt;else{var Kt=Math.floor(Ft);zt.width=Dt===1?Bt:Kt,Bt-=Kt,Dt-=1}return kt+=zt.width,zt});if(kt<At){var Nt=At/kt;Bt=At,Mt.forEach(function(jt,zt){var Vt=Math.floor(jt.width*Nt);jt.width=zt===Mt.length-1?Bt:Vt,Bt-=Vt})}return[Mt,Math.max(kt,At)]}return[ht,Et]},[ht,Et,yt])}var _excluded$5=["children"],_excluded2=["fixed"];function convertChildrenToColumns(ht){return toArray$5(ht).filter(function(Et){return reactExports.isValidElement(Et)}).map(function(Et){var yt=Et.key,Ct=Et.props,$t=Ct.children,At=_objectWithoutProperties$1(Ct,_excluded$5),Bt=_objectSpread2({key:yt},At);return $t&&(Bt.children=convertChildrenToColumns($t)),Bt})}function filterHiddenColumns(ht){return ht.filter(function(Et){return Et&&_typeof$1(Et)==="object"&&!Et.hidden}).map(function(Et){var yt=Et.children;return yt&&yt.length>0?_objectSpread2(_objectSpread2({},Et),{},{children:filterHiddenColumns(yt)}):Et})}function flatColumns(ht){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return ht.filter(function(yt){return yt&&_typeof$1(yt)==="object"}).reduce(function(yt,Ct,$t){var At=Ct.fixed,Bt=At===!0?"left":At,Dt="".concat(Et,"-").concat($t),Ft=Ct.children;return Ft&&Ft.length>0?[].concat(_toConsumableArray(yt),_toConsumableArray(flatColumns(Ft,Dt).map(function(kt){return _objectSpread2({fixed:Bt},kt)}))):[].concat(_toConsumableArray(yt),[_objectSpread2(_objectSpread2({key:Dt},Ct),{},{fixed:Bt})])},[])}function revertForRtl(ht){return ht.map(function(Et){var yt=Et.fixed,Ct=_objectWithoutProperties$1(Et,_excluded2),$t=yt;return yt==="left"?$t="right":yt==="right"&&($t="left"),_objectSpread2({fixed:$t},Ct)})}function useColumns(ht,Et){var yt=ht.prefixCls,Ct=ht.columns,$t=ht.children,At=ht.expandable,Bt=ht.expandedKeys,Dt=ht.columnTitle,Ft=ht.getRowKey,kt=ht.onTriggerExpand,Mt=ht.expandIcon,Nt=ht.rowExpandable,jt=ht.expandIconColumnIndex,zt=ht.direction,Vt=ht.expandRowByClick,Kt=ht.columnWidth,Xt=ht.fixed,Qt=ht.scrollWidth,Zt=ht.clientWidth,dr=reactExports.useMemo(function(){var Lt=Ct||convertChildrenToColumns($t)||[];return filterHiddenColumns(Lt.slice())},[Ct,$t]),cr=reactExports.useMemo(function(){if(At){var Lt,Ht=dr.slice();if(!Ht.includes(EXPAND_COLUMN)){var Wt=jt||0;Wt>=0&&Ht.splice(Wt,0,EXPAND_COLUMN)}var Gt=Ht.indexOf(EXPAND_COLUMN);Ht=Ht.filter(function(Jt,Ut){return Jt!==EXPAND_COLUMN||Ut===Gt});var Yt=dr[Gt],er;(Xt==="left"||Xt)&&!jt?er="left":(Xt==="right"||Xt)&&jt===dr.length?er="right":er=Yt?Yt.fixed:null;var lr=(Lt={},_defineProperty$1(Lt,INTERNAL_COL_DEFINE,{className:"".concat(yt,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),_defineProperty$1(Lt,"title",Dt),_defineProperty$1(Lt,"fixed",er),_defineProperty$1(Lt,"className","".concat(yt,"-row-expand-icon-cell")),_defineProperty$1(Lt,"width",Kt),_defineProperty$1(Lt,"render",function(Ut,ir,Cr){var _r=Ft(ir,Cr),$r=Bt.has(_r),Tr=Nt?Nt(ir):!0,Dr=Mt({prefixCls:yt,expanded:$r,expandable:Tr,record:ir,onExpand:kt});return Vt?reactExports.createElement("span",{onClick:function(Fr){return Fr.stopPropagation()}},Dr):Dr}),Lt);return Ht.map(function(Jt){return Jt===EXPAND_COLUMN?lr:Jt})}return dr.filter(function(Jt){return Jt!==EXPAND_COLUMN})},[At,dr,Ft,Bt,Mt,zt]),Er=reactExports.useMemo(function(){var Lt=cr;return Et&&(Lt=Et(Lt)),Lt.length||(Lt=[{render:function(){return null}}]),Lt},[Et,cr,zt]),pr=reactExports.useMemo(function(){return zt==="rtl"?revertForRtl(flatColumns(Er)):flatColumns(Er)},[Er,zt,Qt]),gr=reactExports.useMemo(function(){for(var Lt=-1,Ht=pr.length-1;Ht>=0;Ht-=1){var Wt=pr[Ht].fixed;if(Wt==="left"||Wt===!0){Lt=Ht;break}}if(Lt>=0)for(var Gt=0;Gt<=Lt;Gt+=1){var Yt=pr[Gt].fixed;if(Yt!=="left"&&Yt!==!0)return!0}var er=pr.findIndex(function(Ut){var ir=Ut.fixed;return ir==="right"});if(er>=0)for(var lr=er;lr<pr.length;lr+=1){var Jt=pr[lr].fixed;if(Jt!=="right")return!0}return!1},[pr]),vr=useWidthColumns(pr,Qt,Zt),yr=_slicedToArray(vr,2),xr=yr[0],rr=yr[1];return[Er,xr,rr,gr]}function renderExpandIcon$1(ht){var Et,yt=ht.prefixCls,Ct=ht.record,$t=ht.onExpand,At=ht.expanded,Bt=ht.expandable,Dt="".concat(yt,"-row-expand-icon");if(!Bt)return reactExports.createElement("span",{className:cls(Dt,"".concat(yt,"-row-spaced"))});var Ft=function(Mt){$t(Ct,Mt),Mt.stopPropagation()};return reactExports.createElement("span",{className:cls(Dt,(Et={},_defineProperty$1(Et,"".concat(yt,"-row-expanded"),At),_defineProperty$1(Et,"".concat(yt,"-row-collapsed"),!At),Et)),onClick:Ft})}function findAllChildrenKeys(ht,Et,yt){var Ct=[];function $t(At){(At||[]).forEach(function(Bt,Dt){Ct.push(Et(Bt,Dt)),$t(Bt[yt])})}return $t(ht),Ct}function useExpand(ht,Et,yt){var Ct=getExpandableProps(ht),$t=Ct.expandIcon,At=Ct.expandedRowKeys,Bt=Ct.defaultExpandedRowKeys,Dt=Ct.defaultExpandAllRows,Ft=Ct.expandedRowRender,kt=Ct.onExpand,Mt=Ct.onExpandedRowsChange,Nt=Ct.childrenColumnName,jt=$t||renderExpandIcon$1,zt=Nt||"children",Vt=reactExports.useMemo(function(){return Ft?"row":ht.expandable&&ht.internalHooks===INTERNAL_HOOKS&&ht.expandable.__PARENT_RENDER_ICON__||Et.some(function(Er){return Er&&_typeof$1(Er)==="object"&&Er[zt]})?"nest":!1},[!!Ft,Et]),Kt=reactExports.useState(function(){return Bt||(Dt?findAllChildrenKeys(Et,yt,zt):[])}),Xt=_slicedToArray(Kt,2),Qt=Xt[0],Zt=Xt[1],dr=reactExports.useMemo(function(){return new Set(At||Qt||[])},[At,Qt]),cr=reactExports.useCallback(function(Er){var pr=yt(Er,Et.indexOf(Er)),gr,vr=dr.has(pr);vr?(dr.delete(pr),gr=_toConsumableArray(dr)):gr=[].concat(_toConsumableArray(dr),[pr]),Zt(gr),kt&&kt(!vr,Er),Mt&&Mt(gr)},[yt,dr,Et,kt,Mt]);return[Ct,Vt,dr,jt,zt,cr]}function useFixedInfo(ht,Et,yt){var Ct=ht.map(function($t,At){return getCellFixedInfo(At,At,ht,Et,yt)});return useMemo(function(){return Ct},[Ct],function($t,At){return!isEqual$3($t,At)})}function useLayoutState(ht){var Et=reactExports.useRef(ht),yt=reactExports.useState({}),Ct=_slicedToArray(yt,2),$t=Ct[1],At=reactExports.useRef(null),Bt=reactExports.useRef([]);function Dt(Ft){Bt.current.push(Ft);var kt=Promise.resolve();At.current=kt,kt.then(function(){if(At.current===kt){var Mt=Bt.current,Nt=Et.current;Bt.current=[],Mt.forEach(function(jt){Et.current=jt(Et.current)}),At.current=null,Nt!==Et.current&&$t({})}})}return reactExports.useEffect(function(){return function(){At.current=null}},[]),[Et.current,Dt]}function useTimeoutLock(ht){var Et=reactExports.useRef(null),yt=reactExports.useRef();function Ct(){window.clearTimeout(yt.current)}function $t(Bt){Et.current=Bt,Ct(),yt.current=window.setTimeout(function(){Et.current=null,yt.current=void 0},100)}function At(){return Et.current}return reactExports.useEffect(function(){return Ct},[]),[$t,At]}function useHover(){var ht=reactExports.useState(-1),Et=_slicedToArray(ht,2),yt=Et[0],Ct=Et[1],$t=reactExports.useState(-1),At=_slicedToArray($t,2),Bt=At[0],Dt=At[1],Ft=reactExports.useCallback(function(kt,Mt){Ct(kt),Dt(Mt)},[]);return[yt,Bt,Ft]}var defaultContainer=canUseDom()?window:null;function useSticky(ht,Et){var yt=_typeof$1(ht)==="object"?ht:{},Ct=yt.offsetHeader,$t=Ct===void 0?0:Ct,At=yt.offsetSummary,Bt=At===void 0?0:At,Dt=yt.offsetScroll,Ft=Dt===void 0?0:Dt,kt=yt.getContainer,Mt=kt===void 0?function(){return defaultContainer}:kt,Nt=Mt()||defaultContainer;return reactExports.useMemo(function(){var jt=!!ht;return{isSticky:jt,stickyClassName:jt?"".concat(Et,"-sticky-holder"):"",offsetHeader:$t,offsetSummary:Bt,offsetScroll:Ft,container:Nt}},[Ft,$t,Bt,Et,Nt])}function useStickyOffsets(ht,Et,yt){var Ct=reactExports.useMemo(function(){var $t=Et.length,At=function(kt,Mt,Nt){for(var jt=[],zt=0,Vt=kt;Vt!==Mt;Vt+=Nt)jt.push(zt),Et[Vt].fixed&&(zt+=ht[Vt]||0);return jt},Bt=At(0,$t,1),Dt=At($t-1,-1,-1).reverse();return yt==="rtl"?{left:Dt,right:Bt}:{left:Bt,right:Dt}},[ht,Et,yt]);return Ct}function Panel(ht){var Et=ht.className,yt=ht.children;return reactExports.createElement("div",{className:Et},yt)}var StickyScrollBar=function ht(Et,yt){var Ct,$t,At=Et.scrollBodyRef,Bt=Et.onScroll,Dt=Et.offsetScroll,Ft=Et.container,kt=useContext(TableContext,"prefixCls"),Mt=((Ct=At.current)===null||Ct===void 0?void 0:Ct.scrollWidth)||0,Nt=(($t=At.current)===null||$t===void 0?void 0:$t.clientWidth)||0,jt=Mt&&Nt*(Nt/Mt),zt=reactExports.useRef(),Vt=useLayoutState({scrollLeft:0,isHiddenScrollBar:!1}),Kt=_slicedToArray(Vt,2),Xt=Kt[0],Qt=Kt[1],Zt=reactExports.useRef({delta:0,x:0}),dr=reactExports.useState(!1),cr=_slicedToArray(dr,2),Er=cr[0],pr=cr[1],gr=reactExports.useRef(null);reactExports.useEffect(function(){return function(){wrapperRaf.cancel(gr.current)}},[]);var vr=function(){pr(!1)},yr=function(Wt){Wt.persist(),Zt.current.delta=Wt.pageX-Xt.scrollLeft,Zt.current.x=0,pr(!0),Wt.preventDefault()},xr=function(Wt){var Gt,Yt=Wt||((Gt=window)===null||Gt===void 0?void 0:Gt.event),er=Yt.buttons;if(!Er||er===0){Er&&pr(!1);return}var lr=Zt.current.x+Wt.pageX-Zt.current.x-Zt.current.delta;lr<=0&&(lr=0),lr+jt>=Nt&&(lr=Nt-jt),Bt({scrollLeft:lr/Nt*(Mt+2)}),Zt.current.x=Wt.pageX},rr=function(){gr.current=wrapperRaf(function(){if(At.current){var Wt=getOffset(At.current).top,Gt=Wt+At.current.offsetHeight,Yt=Ft===window?document.documentElement.scrollTop+window.innerHeight:getOffset(Ft).top+Ft.clientHeight;Gt-getScrollBarSize()<=Yt||Wt>=Yt-Dt?Qt(function(er){return _objectSpread2(_objectSpread2({},er),{},{isHiddenScrollBar:!0})}):Qt(function(er){return _objectSpread2(_objectSpread2({},er),{},{isHiddenScrollBar:!1})})}})},Lt=function(Wt){Qt(function(Gt){return _objectSpread2(_objectSpread2({},Gt),{},{scrollLeft:Wt/Mt*Nt||0})})};return reactExports.useImperativeHandle(yt,function(){return{setScrollLeft:Lt,checkScrollBarVisible:rr}}),reactExports.useEffect(function(){var Ht=addEventListenerWrap(document.body,"mouseup",vr,!1),Wt=addEventListenerWrap(document.body,"mousemove",xr,!1);return rr(),function(){Ht.remove(),Wt.remove()}},[jt,Er]),reactExports.useEffect(function(){var Ht=addEventListenerWrap(Ft,"scroll",rr,!1),Wt=addEventListenerWrap(window,"resize",rr,!1);return function(){Ht.remove(),Wt.remove()}},[Ft]),reactExports.useEffect(function(){Xt.isHiddenScrollBar||Qt(function(Ht){var Wt=At.current;return Wt?_objectSpread2(_objectSpread2({},Ht),{},{scrollLeft:Wt.scrollLeft/Wt.scrollWidth*Wt.clientWidth}):Ht})},[Xt.isHiddenScrollBar]),Mt<=Nt||!jt||Xt.isHiddenScrollBar?null:reactExports.createElement("div",{style:{height:getScrollBarSize(),width:Nt,bottom:Dt},className:"".concat(kt,"-sticky-scroll")},reactExports.createElement("div",{onMouseDown:yr,ref:zt,className:cls("".concat(kt,"-sticky-scroll-bar"),_defineProperty$1({},"".concat(kt,"-sticky-scroll-bar-active"),Er)),style:{width:"".concat(jt,"px"),transform:"translate3d(".concat(Xt.scrollLeft,"px, 0, 0)")}}))};const StickyScrollBar$1=reactExports.forwardRef(StickyScrollBar);var DEFAULT_PREFIX="rc-table",EMPTY_DATA=[],EMPTY_SCROLL_TARGET={};function defaultEmpty(){return"No Data"}function Table$1(ht,Et){var yt,Ct=_objectSpread2({rowKey:"key",prefixCls:DEFAULT_PREFIX,emptyText:defaultEmpty},ht),$t=Ct.prefixCls,At=Ct.className,Bt=Ct.rowClassName,Dt=Ct.style,Ft=Ct.data,kt=Ct.rowKey,Mt=Ct.scroll,Nt=Ct.tableLayout,jt=Ct.direction,zt=Ct.title,Vt=Ct.footer,Kt=Ct.summary,Xt=Ct.caption,Qt=Ct.id,Zt=Ct.showHeader,dr=Ct.components,cr=Ct.emptyText,Er=Ct.onRow,pr=Ct.onHeaderRow,gr=Ct.onScroll,vr=Ct.internalHooks,yr=Ct.transformColumns,xr=Ct.internalRefs,rr=Ct.tailor,Lt=Ct.getContainerWidth,Ht=Ct.sticky,Wt=Ct.rowHoverable,Gt=Wt===void 0?!0:Wt,Yt=Ft||EMPTY_DATA,er=!!Yt.length,lr=vr===INTERNAL_HOOKS,Jt=reactExports.useCallback(function(bu,Iu){return get$3(dr,bu)||Iu},[dr]),Ut=reactExports.useMemo(function(){return typeof kt=="function"?kt:function(bu){var Iu=bu&&bu[kt];return Iu}},[kt]),ir=Jt(["body"]),Cr=useHover(),_r=_slicedToArray(Cr,3),$r=_r[0],Tr=_r[1],Dr=_r[2],Ar=useExpand(Ct,Yt,Ut),Fr=_slicedToArray(Ar,6),Rr=Fr[0],wr=Fr[1],Sr=Fr[2],Br=Fr[3],Or=Fr[4],Pr=Fr[5],Nr=Mt==null?void 0:Mt.x,Lr=reactExports.useState(0),Wr=_slicedToArray(Lr,2),Ur=Wr[0],jr=Wr[1],Kr=useColumns(_objectSpread2(_objectSpread2(_objectSpread2({},Ct),Rr),{},{expandable:!!Rr.expandedRowRender,columnTitle:Rr.columnTitle,expandedKeys:Sr,getRowKey:Ut,onTriggerExpand:Pr,expandIcon:Br,expandIconColumnIndex:Rr.expandIconColumnIndex,direction:jt,scrollWidth:lr&&rr&&typeof Nr=="number"?Nr:null,clientWidth:Ur}),lr?yr:null),qr=_slicedToArray(Kr,4),Zr=qr[0],dn=qr[1],Xr=qr[2],un=qr[3],Yr=Xr??Nr,Gr=reactExports.useMemo(function(){return{columns:Zr,flattenColumns:dn}},[Zr,dn]),Jr=reactExports.useRef(),wn=reactExports.useRef(),kr=reactExports.useRef(),Mr=reactExports.useRef();reactExports.useImperativeHandle(Et,function(){return{nativeElement:Jr.current,scrollTo:function(Iu){var Hu;if(kr.current instanceof HTMLElement){var _i=Iu.index,Vu=Iu.top,Eo=Iu.key;if(Vu){var Qu;(Qu=kr.current)===null||Qu===void 0||Qu.scrollTo({top:Vu})}else{var _o,Mo=Eo??Ut(Yt[_i]);(_o=kr.current.querySelector('[data-row-key="'.concat(Mo,'"]')))===null||_o===void 0||_o.scrollIntoView()}}else(Hu=kr.current)!==null&&Hu!==void 0&&Hu.scrollTo&&kr.current.scrollTo(Iu)}}});var Ir=reactExports.useRef(),Hr=reactExports.useState(!1),Vr=_slicedToArray(Hr,2),on=Vr[0],Qr=Vr[1],hn=reactExports.useState(!1),Wn=_slicedToArray(hn,2),_n=Wn[0],An=Wn[1],Yn=useLayoutState(new Map),Tn=_slicedToArray(Yn,2),Nn=Tn[0],Zn=Tn[1],$n=getColumnsKey(dn),Fn=$n.map(function(bu){return Nn.get(bu)}),Gn=reactExports.useMemo(function(){return Fn},[Fn.join("_")]),gn=useStickyOffsets(Gn,dn,jt),Rn=Mt&&validateValue$1(Mt.y),nu=Mt&&validateValue$1(Yr)||!!Rr.fixed,pn=nu&&dn.some(function(bu){var Iu=bu.fixed;return Iu}),yn=reactExports.useRef(),jn=useSticky(Ht,$t),Cn=jn.isSticky,On=jn.offsetHeader,au=jn.offsetSummary,In=jn.offsetScroll,Bn=jn.stickyClassName,Vn=jn.container,En=reactExports.useMemo(function(){return Kt==null?void 0:Kt(Yt)},[Kt,Yt]),Sn=(Rn||Cn)&&reactExports.isValidElement(En)&&En.type===Summary&&En.props.fixed,Xn,uu,Eu;Rn&&(uu={overflowY:"scroll",maxHeight:Mt.y}),nu&&(Xn={overflowX:"auto"},Rn||(uu={overflowY:"hidden"}),Eu={width:Yr===!0?"auto":Yr,minWidth:"100%"});var pu=reactExports.useCallback(function(bu,Iu){isVisible(Jr.current)&&Zn(function(Hu){if(Hu.get(bu)!==Iu){var _i=new Map(Hu);return _i.set(bu,Iu),_i}return Hu})},[]),Qn=useTimeoutLock(),Jn=_slicedToArray(Qn,2),ou=Jn[0],mu=Jn[1];function xu(bu,Iu){Iu&&(typeof Iu=="function"?Iu(bu):Iu.scrollLeft!==bu&&(Iu.scrollLeft=bu,Iu.scrollLeft!==bu&&setTimeout(function(){Iu.scrollLeft=bu},0)))}var _u=useEvent(function(bu){var Iu=bu.currentTarget,Hu=bu.scrollLeft,_i=jt==="rtl",Vu=typeof Hu=="number"?Hu:Iu.scrollLeft,Eo=Iu||EMPTY_SCROLL_TARGET;if(!mu()||mu()===Eo){var Qu;ou(Eo),xu(Vu,wn.current),xu(Vu,kr.current),xu(Vu,Ir.current),xu(Vu,(Qu=yn.current)===null||Qu===void 0?void 0:Qu.setScrollLeft)}var _o=Iu||wn.current;if(_o){var Mo=_o.scrollWidth,To=_o.clientWidth;if(Mo===To){Qr(!1),An(!1);return}_i?(Qr(-Vu<Mo-To),An(-Vu>0)):(Qr(Vu>0),An(Vu<Mo-To))}}),$u=useEvent(function(bu){_u(bu),gr==null||gr(bu)}),Au=function(){nu&&kr.current?_u({currentTarget:kr.current}):(Qr(!1),An(!1))},Bu=function(Iu){var Hu,_i=Iu.width;(Hu=yn.current)===null||Hu===void 0||Hu.checkScrollBarVisible();var Vu=Jr.current?Jr.current.offsetWidth:_i;lr&&Lt&&Jr.current&&(Vu=Lt(Jr.current,Vu)||Vu),Vu!==Ur&&(Au(),jr(Vu))},Su=reactExports.useRef(!1);reactExports.useEffect(function(){Su.current&&Au()},[nu,Ft,Zr.length]),reactExports.useEffect(function(){Su.current=!0},[]);var Ru=reactExports.useState(0),lu=_slicedToArray(Ru,2),du=lu[0],fu=lu[1],Tu=reactExports.useState(!0),Zu=_slicedToArray(Tu,2),rn=Zu[0],xn=Zu[1];reactExports.useEffect(function(){(!rr||!lr)&&(kr.current instanceof Element?fu(getTargetScrollBarSize(kr.current).width):fu(getTargetScrollBarSize(Mr.current).width)),xn(isStyleSupport("position","sticky"))},[]),reactExports.useEffect(function(){lr&&xr&&(xr.body.current=kr.current)});var cn=reactExports.useCallback(function(bu){return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(Header$1,bu),Sn==="top"&&reactExports.createElement(Footer$1,bu,En))},[Sn,En]),Dn=reactExports.useCallback(function(bu){return reactExports.createElement(Footer$1,bu,En)},[En]),Mn=Jt(["table"],"table"),vn=reactExports.useMemo(function(){return Nt||(pn?Yr==="max-content"?"auto":"fixed":Rn||Cn||dn.some(function(bu){var Iu=bu.ellipsis;return Iu})?"fixed":"auto")},[Rn,pn,dn,Nt,Cn]),Ln,zn={colWidths:Gn,columCount:dn.length,stickyOffsets:gn,onHeaderRow:pr,fixHeader:Rn,scroll:Mt},Hn=reactExports.useMemo(function(){return er?null:typeof cr=="function"?cr():cr},[er,cr]),Un=reactExports.createElement(Body$1,{data:Yt,measureColumnWidth:Rn||nu||Cn}),Kn=reactExports.createElement(ColGroup,{colWidths:dn.map(function(bu){var Iu=bu.width;return Iu}),columns:dn}),cu=Xt!=null?reactExports.createElement("caption",{className:"".concat($t,"-caption")},Xt):void 0,Cu=pickAttrs(Ct,{data:!0}),Du=pickAttrs(Ct,{aria:!0});if(Rn||Cn){var Fu;typeof ir=="function"?(Fu=ir(Yt,{scrollbarSize:du,ref:kr,onScroll:_u}),zn.colWidths=dn.map(function(bu,Iu){var Hu=bu.width,_i=Iu===dn.length-1?Hu-du:Hu;return typeof _i=="number"&&!Number.isNaN(_i)?_i:0})):Fu=reactExports.createElement("div",{style:_objectSpread2(_objectSpread2({},Xn),uu),onScroll:$u,ref:kr,className:cls("".concat($t,"-body"))},reactExports.createElement(Mn,_extends$5({style:_objectSpread2(_objectSpread2({},Eu),{},{tableLayout:vn})},Du),cu,Kn,Un,!Sn&&En&&reactExports.createElement(Footer$1,{stickyOffsets:gn,flattenColumns:dn},En)));var Ou=_objectSpread2(_objectSpread2(_objectSpread2({noData:!Yt.length,maxContentScroll:nu&&Yr==="max-content"},zn),Gr),{},{direction:jt,stickyClassName:Bn,onScroll:_u});Ln=reactExports.createElement(reactExports.Fragment,null,Zt!==!1&&reactExports.createElement(FixedHolder$1,_extends$5({},Ou,{stickyTopOffset:On,className:"".concat($t,"-header"),ref:wn}),cn),Fu,Sn&&Sn!=="top"&&reactExports.createElement(FixedHolder$1,_extends$5({},Ou,{stickyBottomOffset:au,className:"".concat($t,"-summary"),ref:Ir}),Dn),Cn&&kr.current&&kr.current instanceof Element&&reactExports.createElement(StickyScrollBar$1,{ref:yn,offsetScroll:In,scrollBodyRef:kr,onScroll:_u,container:Vn}))}else Ln=reactExports.createElement("div",{style:_objectSpread2(_objectSpread2({},Xn),uu),className:cls("".concat($t,"-content")),onScroll:_u,ref:kr},reactExports.createElement(Mn,_extends$5({style:_objectSpread2(_objectSpread2({},Eu),{},{tableLayout:vn})},Du),cu,Kn,Zt!==!1&&reactExports.createElement(Header$1,_extends$5({},zn,Gr)),Un,En&&reactExports.createElement(Footer$1,{stickyOffsets:gn,flattenColumns:dn},En)));var Nu=reactExports.createElement("div",_extends$5({className:cls($t,At,(yt={},_defineProperty$1(yt,"".concat($t,"-rtl"),jt==="rtl"),_defineProperty$1(yt,"".concat($t,"-ping-left"),on),_defineProperty$1(yt,"".concat($t,"-ping-right"),_n),_defineProperty$1(yt,"".concat($t,"-layout-fixed"),Nt==="fixed"),_defineProperty$1(yt,"".concat($t,"-fixed-header"),Rn),_defineProperty$1(yt,"".concat($t,"-fixed-column"),pn),_defineProperty$1(yt,"".concat($t,"-fixed-column-gapped"),pn&&un),_defineProperty$1(yt,"".concat($t,"-scroll-horizontal"),nu),_defineProperty$1(yt,"".concat($t,"-has-fix-left"),dn[0]&&dn[0].fixed),_defineProperty$1(yt,"".concat($t,"-has-fix-right"),dn[dn.length-1]&&dn[dn.length-1].fixed==="right"),yt)),style:Dt,id:Qt,ref:Jr},Cu),zt&&reactExports.createElement(Panel,{className:"".concat($t,"-title")},zt(Yt)),reactExports.createElement("div",{ref:Mr,className:"".concat($t,"-container")},Ln),Vt&&reactExports.createElement(Panel,{className:"".concat($t,"-footer")},Vt(Yt)));nu&&(Nu=reactExports.createElement(RefResizeObserver,{onResize:Bu},Nu));var Lu=useFixedInfo(dn,gn,jt),ao=reactExports.useMemo(function(){return{scrollX:Yr,prefixCls:$t,getComponent:Jt,scrollbarSize:du,direction:jt,fixedInfoList:Lu,isSticky:Cn,supportSticky:rn,componentWidth:Ur,fixHeader:Rn,fixColumn:pn,horizonScroll:nu,tableLayout:vn,rowClassName:Bt,expandedRowClassName:Rr.expandedRowClassName,expandIcon:Br,expandableType:wr,expandRowByClick:Rr.expandRowByClick,expandedRowRender:Rr.expandedRowRender,onTriggerExpand:Pr,expandIconColumnIndex:Rr.expandIconColumnIndex,indentSize:Rr.indentSize,allColumnsFixedLeft:dn.every(function(bu){return bu.fixed==="left"}),emptyNode:Hn,columns:Zr,flattenColumns:dn,onColumnResize:pu,hoverStartRow:$r,hoverEndRow:Tr,onHover:Dr,rowExpandable:Rr.rowExpandable,onRow:Er,getRowKey:Ut,expandedKeys:Sr,childrenColumnName:Or,rowHoverable:Gt}},[Yr,$t,Jt,du,jt,Lu,Cn,rn,Ur,Rn,pn,nu,vn,Bt,Rr.expandedRowClassName,Br,wr,Rr.expandRowByClick,Rr.expandedRowRender,Pr,Rr.expandIconColumnIndex,Rr.indentSize,Hn,Zr,dn,pu,$r,Tr,Dr,Rr.rowExpandable,Er,Ut,Sr,Or,Gt]);return reactExports.createElement(TableContext.Provider,{value:ao},Nu)}var RefTable=reactExports.forwardRef(Table$1);function genTable(ht){return makeImmutable(RefTable,ht)}var ImmutableTable=genTable();ImmutableTable.EXPAND_COLUMN=EXPAND_COLUMN;ImmutableTable.INTERNAL_HOOKS=INTERNAL_HOOKS;ImmutableTable.Column=Column$1;ImmutableTable.ColumnGroup=ColumnGroup$1;ImmutableTable.Summary=FooterComponents;var StaticContext=createContext(null),GridContext=createContext(null);function getColumnWidth(ht,Et,yt){var Ct=Et||1;return yt[ht+Ct]-(yt[ht]||0)}function VirtualCell(ht){var Et=ht.rowInfo,yt=ht.column,Ct=ht.colIndex,$t=ht.indent,At=ht.index,Bt=ht.component,Dt=ht.renderIndex,Ft=ht.record,kt=ht.style,Mt=ht.className,Nt=ht.inverse,jt=ht.getHeight,zt=yt.render,Vt=yt.dataIndex,Kt=yt.className,Xt=yt.width,Qt=useContext(GridContext,["columnsOffset"]),Zt=Qt.columnsOffset,dr=getCellProps(Et,yt,Ct,$t,At),cr=dr.key,Er=dr.fixedInfo,pr=dr.appendCellNode,gr=dr.additionalCellProps,vr=gr.style,yr=gr.colSpan,xr=yr===void 0?1:yr,rr=gr.rowSpan,Lt=rr===void 0?1:rr,Ht=Ct-1,Wt=getColumnWidth(Ht,xr,Zt),Gt=xr>1?Xt-Wt:0,Yt=_objectSpread2(_objectSpread2(_objectSpread2({},vr),kt),{},{flex:"0 0 ".concat(Wt,"px"),width:"".concat(Wt,"px"),marginRight:Gt,pointerEvents:"auto"}),er=reactExports.useMemo(function(){return Nt?Lt<=1:xr===0||Lt===0||Lt>1},[Lt,xr,Nt]);er?Yt.visibility="hidden":Nt&&(Yt.height=jt==null?void 0:jt(Lt));var lr=er?function(){return null}:zt,Jt={};return(Lt===0||xr===0)&&(Jt.rowSpan=1,Jt.colSpan=1),reactExports.createElement(Cell$1,_extends$5({className:cls(Kt,Mt),ellipsis:yt.ellipsis,align:yt.align,scope:yt.rowScope,component:Bt,prefixCls:Et.prefixCls,key:cr,record:Ft,index:At,renderIndex:Dt,dataIndex:Vt,render:lr,shouldCellUpdate:yt.shouldCellUpdate},Er,{appendNode:pr,additionalProps:_objectSpread2(_objectSpread2({},gr),{},{style:Yt},Jt)}))}var _excluded$4=["data","index","className","rowKey","style","extra","getHeight"],BodyLine=reactExports.forwardRef(function(ht,Et){var yt=ht.data,Ct=ht.index,$t=ht.className,At=ht.rowKey,Bt=ht.style,Dt=ht.extra,Ft=ht.getHeight,kt=_objectWithoutProperties$1(ht,_excluded$4),Mt=yt.record,Nt=yt.indent,jt=yt.index,zt=useContext(TableContext,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Vt=zt.scrollX,Kt=zt.flattenColumns,Xt=zt.prefixCls,Qt=zt.fixColumn,Zt=zt.componentWidth,dr=useContext(StaticContext,["getComponent"]),cr=dr.getComponent,Er=useRowInfo(Mt,At,Ct,Nt),pr=cr(["body","row"],"div"),gr=cr(["body","cell"],"div"),vr=Er.rowSupportExpand,yr=Er.expanded,xr=Er.rowProps,rr=Er.expandedRowRender,Lt=Er.expandedRowClassName,Ht;if(vr&&yr){var Wt=rr(Mt,Ct,Nt+1,yr),Gt=Lt==null?void 0:Lt(Mt,Ct,Nt),Yt={};Qt&&(Yt={style:_defineProperty$1({},"--virtual-width","".concat(Zt,"px"))});var er="".concat(Xt,"-expanded-row-cell");Ht=reactExports.createElement(pr,{className:cls("".concat(Xt,"-expanded-row"),"".concat(Xt,"-expanded-row-level-").concat(Nt+1),Gt)},reactExports.createElement(Cell$1,{component:gr,prefixCls:Xt,className:cls(er,_defineProperty$1({},"".concat(er,"-fixed"),Qt)),additionalProps:Yt},Wt))}var lr=_objectSpread2(_objectSpread2({},Bt),{},{width:Vt});Dt&&(lr.position="absolute",lr.pointerEvents="none");var Jt=reactExports.createElement(pr,_extends$5({},xr,kt,{"data-row-key":At,ref:vr?null:Et,className:cls($t,"".concat(Xt,"-row"),xr==null?void 0:xr.className,_defineProperty$1({},"".concat(Xt,"-row-extra"),Dt)),style:_objectSpread2(_objectSpread2({},lr),xr==null?void 0:xr.style)}),Kt.map(function(Ut,ir){return reactExports.createElement(VirtualCell,{key:ir,component:gr,rowInfo:Er,column:Ut,colIndex:ir,indent:Nt,index:Ct,renderIndex:jt,record:Mt,inverse:Dt,getHeight:Ft})}));return vr?reactExports.createElement("div",{ref:Et},Jt,Ht):Jt}),ResponseBodyLine=responseImmutable(BodyLine),Grid=reactExports.forwardRef(function(ht,Et){var yt=ht.data,Ct=ht.onScroll,$t=useContext(TableContext,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),At=$t.flattenColumns,Bt=$t.onColumnResize,Dt=$t.getRowKey,Ft=$t.expandedKeys,kt=$t.prefixCls,Mt=$t.childrenColumnName,Nt=$t.emptyNode,jt=$t.scrollX,zt=useContext(StaticContext),Vt=zt.sticky,Kt=zt.scrollY,Xt=zt.listItemHeight,Qt=zt.getComponent,Zt=zt.onScroll,dr=reactExports.useRef(),cr=useFlattenRecords(yt,Mt,Ft,Dt),Er=reactExports.useMemo(function(){var Yt=0;return At.map(function(er){var lr=er.width,Jt=er.key;return Yt+=lr,[Jt,lr,Yt]})},[At]),pr=reactExports.useMemo(function(){return Er.map(function(Yt){return Yt[2]})},[Er]);reactExports.useEffect(function(){Er.forEach(function(Yt){var er=_slicedToArray(Yt,2),lr=er[0],Jt=er[1];Bt(lr,Jt)})},[Er]),reactExports.useImperativeHandle(Et,function(){var Yt={scrollTo:function(lr){var Jt;(Jt=dr.current)===null||Jt===void 0||Jt.scrollTo(lr)}};return Object.defineProperty(Yt,"scrollLeft",{get:function(){var lr;return((lr=dr.current)===null||lr===void 0?void 0:lr.getScrollInfo().x)||0},set:function(lr){var Jt;(Jt=dr.current)===null||Jt===void 0||Jt.scrollTo({left:lr})}}),Yt});var gr=function(er,lr){var Jt,Ut=(Jt=cr[lr])===null||Jt===void 0?void 0:Jt.record,ir=er.onCell;if(ir){var Cr,_r=ir(Ut,lr);return(Cr=_r==null?void 0:_r.rowSpan)!==null&&Cr!==void 0?Cr:1}return 1},vr=function(er){var lr=er.start,Jt=er.end,Ut=er.getSize,ir=er.offsetY;if(Jt<0)return null;for(var Cr=At.filter(function(Pr){return gr(Pr,lr)===0}),_r=lr,$r=function(Nr){if(Cr=Cr.filter(function(Lr){return gr(Lr,Nr)===0}),!Cr.length)return _r=Nr,1},Tr=lr;Tr>=0&&!$r(Tr);Tr-=1);for(var Dr=At.filter(function(Pr){return gr(Pr,Jt)!==1}),Ar=Jt,Fr=function(Nr){if(Dr=Dr.filter(function(Lr){return gr(Lr,Nr)!==1}),!Dr.length)return Ar=Math.max(Nr-1,Jt),1},Rr=Jt;Rr<cr.length&&!Fr(Rr);Rr+=1);for(var wr=[],Sr=function(Nr){var Lr=cr[Nr];if(!Lr)return 1;At.some(function(Wr){return gr(Wr,Nr)>1})&&wr.push(Nr)},Br=_r;Br<=Ar;Br+=1)Sr(Br);var Or=wr.map(function(Pr){var Nr=cr[Pr],Lr=Dt(Nr.record,Pr),Wr=function(Kr){var qr=Pr+Kr-1,Zr=Dt(cr[qr].record,qr),dn=Ut(Lr,Zr);return dn.bottom-dn.top},Ur=Ut(Lr);return reactExports.createElement(ResponseBodyLine,{key:Pr,data:Nr,rowKey:Lr,index:Pr,style:{top:-ir+Ur.top},extra:!0,getHeight:Wr})});return Or},yr=reactExports.useMemo(function(){return{columnsOffset:pr}},[pr]),xr="".concat(kt,"-tbody"),rr=Qt(["body","wrapper"]),Lt=Qt(["body","row"],"div"),Ht=Qt(["body","cell"],"div"),Wt;if(cr.length){var Gt={};Vt&&(Gt.position="sticky",Gt.bottom=0,_typeof$1(Vt)==="object"&&Vt.offsetScroll&&(Gt.bottom=Vt.offsetScroll)),Wt=reactExports.createElement(List,{fullHeight:!1,ref:dr,prefixCls:"".concat(xr,"-virtual"),styles:{horizontalScrollBar:Gt},className:xr,height:Kt,itemHeight:Xt||24,data:cr,itemKey:function(er){return Dt(er.record)},component:rr,scrollWidth:jt,onVirtualScroll:function(er){var lr=er.x;Ct({scrollLeft:lr})},onScroll:Zt,extraRender:vr},function(Yt,er,lr){var Jt=Dt(Yt.record,er);return reactExports.createElement(ResponseBodyLine,{data:Yt,rowKey:Jt,index:er,style:lr.style})})}else Wt=reactExports.createElement(Lt,{className:cls("".concat(kt,"-placeholder"))},reactExports.createElement(Cell$1,{component:Ht,prefixCls:kt},Nt));return reactExports.createElement(GridContext.Provider,{value:yr},Wt)}),ResponseGrid=responseImmutable(Grid),renderBody=function ht(Et,yt){var Ct=yt.ref,$t=yt.onScroll;return reactExports.createElement(ResponseGrid,{ref:Ct,data:Et,onScroll:$t})};function VirtualTable(ht,Et){var yt=ht.columns,Ct=ht.scroll,$t=ht.sticky,At=ht.prefixCls,Bt=At===void 0?DEFAULT_PREFIX:At,Dt=ht.className,Ft=ht.listItemHeight,kt=ht.components,Mt=ht.onScroll,Nt=Ct||{},jt=Nt.x,zt=Nt.y;typeof jt!="number"&&(jt=1),typeof zt!="number"&&(zt=500);var Vt=useEvent(function(Qt,Zt){return get$3(kt,Qt)||Zt}),Kt=useEvent(Mt),Xt=reactExports.useMemo(function(){return{sticky:$t,scrollY:zt,listItemHeight:Ft,getComponent:Vt,onScroll:Kt}},[$t,zt,Ft,Vt,Kt]);return reactExports.createElement(StaticContext.Provider,{value:Xt},reactExports.createElement(ImmutableTable,_extends$5({},ht,{className:cls(Dt,"".concat(Bt,"-virtual")),scroll:_objectSpread2(_objectSpread2({},Ct),{},{x:jt}),components:_objectSpread2(_objectSpread2({},kt),{},{body:renderBody}),columns:yt,internalHooks:INTERNAL_HOOKS,tailor:!0,ref:Et})))}var RefVirtualTable=reactExports.forwardRef(VirtualTable);function genVirtualTable(ht){return makeImmutable(RefVirtualTable,ht)}genVirtualTable();function Column(ht){return null}function ColumnGroup(ht){return null}var TreeContext=reactExports.createContext(null),Indent=function ht(Et){for(var yt=Et.prefixCls,Ct=Et.level,$t=Et.isStart,At=Et.isEnd,Bt="".concat(yt,"-indent-unit"),Dt=[],Ft=0;Ft<Ct;Ft+=1)Dt.push(reactExports.createElement("span",{key:Ft,className:cls(Bt,_defineProperty$1(_defineProperty$1({},"".concat(Bt,"-start"),$t[Ft]),"".concat(Bt,"-end"),At[Ft]))}));return reactExports.createElement("span",{"aria-hidden":"true",className:"".concat(yt,"-indent")},Dt)};const Indent$1=reactExports.memo(Indent);var _excluded$3=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ICON_OPEN="open",ICON_CLOSE="close",defaultTitle="---",InternalTreeNode=function(ht){_inherits(yt,ht);var Et=_createSuper$5(yt);function yt(){var Ct;_classCallCheck(this,yt);for(var $t=arguments.length,At=new Array($t),Bt=0;Bt<$t;Bt++)At[Bt]=arguments[Bt];return Ct=Et.call.apply(Et,[this].concat(At)),_defineProperty$1(_assertThisInitialized$1(Ct),"state",{dragNodeHighlight:!1}),_defineProperty$1(_assertThisInitialized$1(Ct),"selectHandle",void 0),_defineProperty$1(_assertThisInitialized$1(Ct),"cacheIndent",void 0),_defineProperty$1(_assertThisInitialized$1(Ct),"onSelectorClick",function(Dt){var Ft=Ct.props.context.onNodeClick;Ft(Dt,convertNodePropsToEventData(Ct.props)),Ct.isSelectable()?Ct.onSelect(Dt):Ct.onCheck(Dt)}),_defineProperty$1(_assertThisInitialized$1(Ct),"onSelectorDoubleClick",function(Dt){var Ft=Ct.props.context.onNodeDoubleClick;Ft(Dt,convertNodePropsToEventData(Ct.props))}),_defineProperty$1(_assertThisInitialized$1(Ct),"onSelect",function(Dt){if(!Ct.isDisabled()){var Ft=Ct.props.context.onNodeSelect;Ft(Dt,convertNodePropsToEventData(Ct.props))}}),_defineProperty$1(_assertThisInitialized$1(Ct),"onCheck",function(Dt){if(!Ct.isDisabled()){var Ft=Ct.props,kt=Ft.disableCheckbox,Mt=Ft.checked,Nt=Ct.props.context.onNodeCheck;if(!(!Ct.isCheckable()||kt)){var jt=!Mt;Nt(Dt,convertNodePropsToEventData(Ct.props),jt)}}}),_defineProperty$1(_assertThisInitialized$1(Ct),"onMouseEnter",function(Dt){var Ft=Ct.props.context.onNodeMouseEnter;Ft(Dt,convertNodePropsToEventData(Ct.props))}),_defineProperty$1(_assertThisInitialized$1(Ct),"onMouseLeave",function(Dt){var Ft=Ct.props.context.onNodeMouseLeave;Ft(Dt,convertNodePropsToEventData(Ct.props))}),_defineProperty$1(_assertThisInitialized$1(Ct),"onContextMenu",function(Dt){var Ft=Ct.props.context.onNodeContextMenu;Ft(Dt,convertNodePropsToEventData(Ct.props))}),_defineProperty$1(_assertThisInitialized$1(Ct),"onDragStart",function(Dt){var Ft=Ct.props.context.onNodeDragStart;Dt.stopPropagation(),Ct.setState({dragNodeHighlight:!0}),Ft(Dt,_assertThisInitialized$1(Ct));try{Dt.dataTransfer.setData("text/plain","")}catch{}}),_defineProperty$1(_assertThisInitialized$1(Ct),"onDragEnter",function(Dt){var Ft=Ct.props.context.onNodeDragEnter;Dt.preventDefault(),Dt.stopPropagation(),Ft(Dt,_assertThisInitialized$1(Ct))}),_defineProperty$1(_assertThisInitialized$1(Ct),"onDragOver",function(Dt){var Ft=Ct.props.context.onNodeDragOver;Dt.preventDefault(),Dt.stopPropagation(),Ft(Dt,_assertThisInitialized$1(Ct))}),_defineProperty$1(_assertThisInitialized$1(Ct),"onDragLeave",function(Dt){var Ft=Ct.props.context.onNodeDragLeave;Dt.stopPropagation(),Ft(Dt,_assertThisInitialized$1(Ct))}),_defineProperty$1(_assertThisInitialized$1(Ct),"onDragEnd",function(Dt){var Ft=Ct.props.context.onNodeDragEnd;Dt.stopPropagation(),Ct.setState({dragNodeHighlight:!1}),Ft(Dt,_assertThisInitialized$1(Ct))}),_defineProperty$1(_assertThisInitialized$1(Ct),"onDrop",function(Dt){var Ft=Ct.props.context.onNodeDrop;Dt.preventDefault(),Dt.stopPropagation(),Ct.setState({dragNodeHighlight:!1}),Ft(Dt,_assertThisInitialized$1(Ct))}),_defineProperty$1(_assertThisInitialized$1(Ct),"onExpand",function(Dt){var Ft=Ct.props,kt=Ft.loading,Mt=Ft.context.onNodeExpand;kt||Mt(Dt,convertNodePropsToEventData(Ct.props))}),_defineProperty$1(_assertThisInitialized$1(Ct),"setSelectHandle",function(Dt){Ct.selectHandle=Dt}),_defineProperty$1(_assertThisInitialized$1(Ct),"getNodeState",function(){var Dt=Ct.props.expanded;return Ct.isLeaf()?null:Dt?ICON_OPEN:ICON_CLOSE}),_defineProperty$1(_assertThisInitialized$1(Ct),"hasChildren",function(){var Dt=Ct.props.eventKey,Ft=Ct.props.context.keyEntities,kt=getEntity(Ft,Dt)||{},Mt=kt.children;return!!(Mt||[]).length}),_defineProperty$1(_assertThisInitialized$1(Ct),"isLeaf",function(){var Dt=Ct.props,Ft=Dt.isLeaf,kt=Dt.loaded,Mt=Ct.props.context.loadData,Nt=Ct.hasChildren();return Ft===!1?!1:Ft||!Mt&&!Nt||Mt&&kt&&!Nt}),_defineProperty$1(_assertThisInitialized$1(Ct),"isDisabled",function(){var Dt=Ct.props.disabled,Ft=Ct.props.context.disabled;return!!(Ft||Dt)}),_defineProperty$1(_assertThisInitialized$1(Ct),"isCheckable",function(){var Dt=Ct.props.checkable,Ft=Ct.props.context.checkable;return!Ft||Dt===!1?!1:Ft}),_defineProperty$1(_assertThisInitialized$1(Ct),"syncLoadData",function(Dt){var Ft=Dt.expanded,kt=Dt.loading,Mt=Dt.loaded,Nt=Ct.props.context,jt=Nt.loadData,zt=Nt.onNodeLoad;kt||jt&&Ft&&!Ct.isLeaf()&&!Mt&&zt(convertNodePropsToEventData(Ct.props))}),_defineProperty$1(_assertThisInitialized$1(Ct),"isDraggable",function(){var Dt=Ct.props,Ft=Dt.data,kt=Dt.context.draggable;return!!(kt&&(!kt.nodeDraggable||kt.nodeDraggable(Ft)))}),_defineProperty$1(_assertThisInitialized$1(Ct),"renderDragHandler",function(){var Dt=Ct.props.context,Ft=Dt.draggable,kt=Dt.prefixCls;return Ft!=null&&Ft.icon?reactExports.createElement("span",{className:"".concat(kt,"-draggable-icon")},Ft.icon):null}),_defineProperty$1(_assertThisInitialized$1(Ct),"renderSwitcherIconDom",function(Dt){var Ft=Ct.props.switcherIcon,kt=Ct.props.context.switcherIcon,Mt=Ft||kt;return typeof Mt=="function"?Mt(_objectSpread2(_objectSpread2({},Ct.props),{},{isLeaf:Dt})):Mt}),_defineProperty$1(_assertThisInitialized$1(Ct),"renderSwitcher",function(){var Dt=Ct.props.expanded,Ft=Ct.props.context.prefixCls;if(Ct.isLeaf()){var kt=Ct.renderSwitcherIconDom(!0);return kt!==!1?reactExports.createElement("span",{className:cls("".concat(Ft,"-switcher"),"".concat(Ft,"-switcher-noop"))},kt):null}var Mt=cls("".concat(Ft,"-switcher"),"".concat(Ft,"-switcher_").concat(Dt?ICON_OPEN:ICON_CLOSE)),Nt=Ct.renderSwitcherIconDom(!1);return Nt!==!1?reactExports.createElement("span",{onClick:Ct.onExpand,className:Mt},Nt):null}),_defineProperty$1(_assertThisInitialized$1(Ct),"renderCheckbox",function(){var Dt=Ct.props,Ft=Dt.checked,kt=Dt.halfChecked,Mt=Dt.disableCheckbox,Nt=Ct.props.context.prefixCls,jt=Ct.isDisabled(),zt=Ct.isCheckable();if(!zt)return null;var Vt=typeof zt!="boolean"?zt:null;return reactExports.createElement("span",{className:cls("".concat(Nt,"-checkbox"),Ft&&"".concat(Nt,"-checkbox-checked"),!Ft&&kt&&"".concat(Nt,"-checkbox-indeterminate"),(jt||Mt)&&"".concat(Nt,"-checkbox-disabled")),onClick:Ct.onCheck},Vt)}),_defineProperty$1(_assertThisInitialized$1(Ct),"renderIcon",function(){var Dt=Ct.props.loading,Ft=Ct.props.context.prefixCls;return reactExports.createElement("span",{className:cls("".concat(Ft,"-iconEle"),"".concat(Ft,"-icon__").concat(Ct.getNodeState()||"docu"),Dt&&"".concat(Ft,"-icon_loading"))})}),_defineProperty$1(_assertThisInitialized$1(Ct),"renderSelector",function(){var Dt=Ct.state.dragNodeHighlight,Ft=Ct.props,kt=Ft.title,Mt=kt===void 0?defaultTitle:kt,Nt=Ft.selected,jt=Ft.icon,zt=Ft.loading,Vt=Ft.data,Kt=Ct.props.context,Xt=Kt.prefixCls,Qt=Kt.showIcon,Zt=Kt.icon,dr=Kt.loadData,cr=Kt.titleRender,Er=Ct.isDisabled(),pr="".concat(Xt,"-node-content-wrapper"),gr;if(Qt){var vr=jt||Zt;gr=vr?reactExports.createElement("span",{className:cls("".concat(Xt,"-iconEle"),"".concat(Xt,"-icon__customize"))},typeof vr=="function"?vr(Ct.props):vr):Ct.renderIcon()}else dr&&zt&&(gr=Ct.renderIcon());var yr;typeof Mt=="function"?yr=Mt(Vt):cr?yr=cr(Vt):yr=Mt;var xr=reactExports.createElement("span",{className:"".concat(Xt,"-title")},yr);return reactExports.createElement("span",{ref:Ct.setSelectHandle,title:typeof Mt=="string"?Mt:"",className:cls("".concat(pr),"".concat(pr,"-").concat(Ct.getNodeState()||"normal"),!Er&&(Nt||Dt)&&"".concat(Xt,"-node-selected")),onMouseEnter:Ct.onMouseEnter,onMouseLeave:Ct.onMouseLeave,onContextMenu:Ct.onContextMenu,onClick:Ct.onSelectorClick,onDoubleClick:Ct.onSelectorDoubleClick},gr,xr,Ct.renderDropIndicator())}),_defineProperty$1(_assertThisInitialized$1(Ct),"renderDropIndicator",function(){var Dt=Ct.props,Ft=Dt.disabled,kt=Dt.eventKey,Mt=Ct.props.context,Nt=Mt.draggable,jt=Mt.dropLevelOffset,zt=Mt.dropPosition,Vt=Mt.prefixCls,Kt=Mt.indent,Xt=Mt.dropIndicatorRender,Qt=Mt.dragOverNodeKey,Zt=Mt.direction,dr=!!Nt,cr=!Ft&&dr&&Qt===kt,Er=Kt??Ct.cacheIndent;return Ct.cacheIndent=Kt,cr?Xt({dropPosition:zt,dropLevelOffset:jt,indent:Er,prefixCls:Vt,direction:Zt}):null}),Ct}return _createClass$1(yt,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var $t=this.props.selectable,At=this.props.context.selectable;return typeof $t=="boolean"?$t:At}},{key:"render",value:function(){var $t,At=this.props,Bt=At.eventKey,Dt=At.className,Ft=At.style,kt=At.dragOver,Mt=At.dragOverGapTop,Nt=At.dragOverGapBottom,jt=At.isLeaf,zt=At.isStart,Vt=At.isEnd,Kt=At.expanded,Xt=At.selected,Qt=At.checked,Zt=At.halfChecked,dr=At.loading,cr=At.domRef,Er=At.active;At.data;var pr=At.onMouseMove,gr=At.selectable,vr=_objectWithoutProperties$1(At,_excluded$3),yr=this.props.context,xr=yr.prefixCls,rr=yr.filterTreeNode,Lt=yr.keyEntities,Ht=yr.dropContainerKey,Wt=yr.dropTargetKey,Gt=yr.draggingNodeKey,Yt=this.isDisabled(),er=pickAttrs(vr,{aria:!0,data:!0}),lr=getEntity(Lt,Bt)||{},Jt=lr.level,Ut=Vt[Vt.length-1],ir=this.isDraggable(),Cr=!Yt&&ir,_r=Gt===Bt,$r=gr!==void 0?{"aria-selected":!!gr}:void 0;return reactExports.createElement("div",_extends$5({ref:cr,className:cls(Dt,"".concat(xr,"-treenode"),($t={},_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1($t,"".concat(xr,"-treenode-disabled"),Yt),"".concat(xr,"-treenode-switcher-").concat(Kt?"open":"close"),!jt),"".concat(xr,"-treenode-checkbox-checked"),Qt),"".concat(xr,"-treenode-checkbox-indeterminate"),Zt),"".concat(xr,"-treenode-selected"),Xt),"".concat(xr,"-treenode-loading"),dr),"".concat(xr,"-treenode-active"),Er),"".concat(xr,"-treenode-leaf-last"),Ut),"".concat(xr,"-treenode-draggable"),ir),"dragging",_r),_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1($t,"drop-target",Wt===Bt),"drop-container",Ht===Bt),"drag-over",!Yt&&kt),"drag-over-gap-top",!Yt&&Mt),"drag-over-gap-bottom",!Yt&&Nt),"filter-node",rr&&rr(convertNodePropsToEventData(this.props))))),style:Ft,draggable:Cr,"aria-grabbed":_r,onDragStart:Cr?this.onDragStart:void 0,onDragEnter:ir?this.onDragEnter:void 0,onDragOver:ir?this.onDragOver:void 0,onDragLeave:ir?this.onDragLeave:void 0,onDrop:ir?this.onDrop:void 0,onDragEnd:ir?this.onDragEnd:void 0,onMouseMove:pr},$r,er),reactExports.createElement(Indent$1,{prefixCls:xr,level:Jt,isStart:zt,isEnd:Vt}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),yt}(reactExports.Component),ContextTreeNode=function ht(Et){return reactExports.createElement(TreeContext.Consumer,null,function(yt){return reactExports.createElement(InternalTreeNode,_extends$5({},Et,{context:yt}))})};ContextTreeNode.displayName="TreeNode";ContextTreeNode.isTreeNode=1;function arrDel(ht,Et){if(!ht)return[];var yt=ht.slice(),Ct=yt.indexOf(Et);return Ct>=0&&yt.splice(Ct,1),yt}function arrAdd(ht,Et){var yt=(ht||[]).slice();return yt.indexOf(Et)===-1&&yt.push(Et),yt}function posToArr(ht){return ht.split("-")}function getDragChildrenKeys(ht,Et){var yt=[],Ct=getEntity(Et,ht);function $t(){var At=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];At.forEach(function(Bt){var Dt=Bt.key,Ft=Bt.children;yt.push(Dt),$t(Ft)})}return $t(Ct.children),yt}function isLastChild(ht){if(ht.parent){var Et=posToArr(ht.pos);return Number(Et[Et.length-1])===ht.parent.children.length-1}return!1}function isFirstChild(ht){var Et=posToArr(ht.pos);return Number(Et[Et.length-1])===0}function calcDropPosition(ht,Et,yt,Ct,$t,At,Bt,Dt,Ft,kt){var Mt,Nt=ht.clientX,jt=ht.clientY,zt=ht.target.getBoundingClientRect(),Vt=zt.top,Kt=zt.height,Xt=(kt==="rtl"?-1:1)*((($t==null?void 0:$t.x)||0)-Nt),Qt=(Xt-12)/Ct,Zt=Ft.filter(function(Yt){var er;return(er=Dt[Yt])===null||er===void 0||(er=er.children)===null||er===void 0?void 0:er.length}),dr=getEntity(Dt,yt.props.eventKey);if(jt<Vt+Kt/2){var cr=Bt.findIndex(function(Yt){return Yt.key===dr.key}),Er=cr<=0?0:cr-1,pr=Bt[Er].key;dr=getEntity(Dt,pr)}var gr=dr.key,vr=dr,yr=dr.key,xr=0,rr=0;if(!Zt.includes(gr))for(var Lt=0;Lt<Qt&&isLastChild(dr);Lt+=1)dr=dr.parent,rr+=1;var Ht=Et.props.data,Wt=dr.node,Gt=!0;return isFirstChild(dr)&&dr.level===0&&jt<Vt+Kt/2&&At({dragNode:Ht,dropNode:Wt,dropPosition:-1})&&dr.key===yt.props.eventKey?xr=-1:(vr.children||[]).length&&Zt.includes(yr)?At({dragNode:Ht,dropNode:Wt,dropPosition:0})?xr=0:Gt=!1:rr===0?Qt>-1.5?At({dragNode:Ht,dropNode:Wt,dropPosition:1})?xr=1:Gt=!1:At({dragNode:Ht,dropNode:Wt,dropPosition:0})?xr=0:At({dragNode:Ht,dropNode:Wt,dropPosition:1})?xr=1:Gt=!1:At({dragNode:Ht,dropNode:Wt,dropPosition:1})?xr=1:Gt=!1,{dropPosition:xr,dropLevelOffset:rr,dropTargetKey:dr.key,dropTargetPos:dr.pos,dragOverNodeKey:yr,dropContainerKey:xr===0?null:((Mt=dr.parent)===null||Mt===void 0?void 0:Mt.key)||null,dropAllowed:Gt}}function calcSelectedKeys(ht,Et){if(ht){var yt=Et.multiple;return yt?ht.slice():ht.length?[ht[0]]:ht}}function parseCheckedKeys(ht){if(!ht)return null;var Et;if(Array.isArray(ht))Et={checkedKeys:ht,halfCheckedKeys:void 0};else if(_typeof$1(ht)==="object")Et={checkedKeys:ht.checked||void 0,halfCheckedKeys:ht.halfChecked||void 0};else return warningOnce(!1,"`checkedKeys` is not an array or an object"),null;return Et}function conductExpandParent(ht,Et){var yt=new Set;function Ct($t){if(!yt.has($t)){var At=getEntity(Et,$t);if(At){yt.add($t);var Bt=At.parent,Dt=At.node;Dt.disabled||Bt&&Ct(Bt.key)}}}return(ht||[]).forEach(function($t){Ct($t)}),_toConsumableArray(yt)}function useMultipleSelect(ht){const[Et,yt]=reactExports.useState(null);return[reactExports.useCallback((At,Bt,Dt)=>{const Ft=Et??At,kt=Math.min(Ft||0,At),Mt=Math.max(Ft||0,At),Nt=Bt.slice(kt,Mt+1).map(Vt=>ht(Vt)),jt=Nt.some(Vt=>!Dt.has(Vt)),zt=[];return Nt.forEach(Vt=>{jt?(Dt.has(Vt)||zt.push(Vt),Dt.add(Vt)):(Dt.delete(Vt),zt.push(Vt))}),yt(jt?Mt:null),zt},[Et]),At=>{yt(At)}]}const SELECTION_COLUMN={},SELECTION_ALL="SELECT_ALL",SELECTION_INVERT="SELECT_INVERT",SELECTION_NONE="SELECT_NONE",EMPTY_LIST$1=[],flattenData=(ht,Et)=>{let yt=[];return(Et||[]).forEach(Ct=>{yt.push(Ct),Ct&&typeof Ct=="object"&&ht in Ct&&(yt=[].concat(_toConsumableArray(yt),_toConsumableArray(flattenData(ht,Ct[ht]))))}),yt},useSelection=(ht,Et)=>{const{preserveSelectedRowKeys:yt,selectedRowKeys:Ct,defaultSelectedRowKeys:$t,getCheckboxProps:At,onChange:Bt,onSelect:Dt,onSelectAll:Ft,onSelectInvert:kt,onSelectNone:Mt,onSelectMultiple:Nt,columnWidth:jt,type:zt,selections:Vt,fixed:Kt,renderCell:Xt,hideSelectAll:Qt,checkStrictly:Zt=!0}=Et||{},{prefixCls:dr,data:cr,pageData:Er,getRecordByKey:pr,getRowKey:gr,expandType:vr,childrenColumnName:yr,locale:xr,getPopupContainer:rr}=ht,Lt=devUseWarning(),[Ht,Wt]=useMultipleSelect(Sr=>Sr),[Gt,Yt]=useMergedState(Ct||$t||EMPTY_LIST$1,{value:Ct}),er=reactExports.useRef(new Map),lr=reactExports.useCallback(Sr=>{if(yt){const Br=new Map;Sr.forEach(Or=>{let Pr=pr(Or);!Pr&&er.current.has(Or)&&(Pr=er.current.get(Or)),Br.set(Or,Pr)}),er.current=Br}},[pr,yt]);reactExports.useEffect(()=>{lr(Gt)},[Gt]);const{keyEntities:Jt}=reactExports.useMemo(()=>{if(Zt)return{keyEntities:null};let Sr=cr;if(yt){const Br=new Set(cr.map((Pr,Nr)=>gr(Pr,Nr))),Or=Array.from(er.current).reduce((Pr,Nr)=>{let[Lr,Wr]=Nr;return Br.has(Lr)?Pr:Pr.concat(Wr)},[]);Sr=[].concat(_toConsumableArray(Sr),_toConsumableArray(Or))}return convertDataToEntities(Sr,{externalGetKey:gr,childrenPropName:yr})},[cr,gr,Zt,yr,yt]),Ut=reactExports.useMemo(()=>flattenData(yr,Er),[yr,Er]),ir=reactExports.useMemo(()=>{const Sr=new Map;return Ut.forEach((Br,Or)=>{const Pr=gr(Br,Or),Nr=(At?At(Br):null)||{};Sr.set(Pr,Nr)}),Sr},[Ut,gr,At]),Cr=reactExports.useCallback(Sr=>{var Br;return!!(!((Br=ir.get(gr(Sr)))===null||Br===void 0)&&Br.disabled)},[ir,gr]),[_r,$r]=reactExports.useMemo(()=>{if(Zt)return[Gt||[],[]];const{checkedKeys:Sr,halfCheckedKeys:Br}=conductCheck(Gt,!0,Jt,Cr);return[Sr||[],Br]},[Gt,Zt,Jt,Cr]),Tr=reactExports.useMemo(()=>{const Sr=zt==="radio"?_r.slice(0,1):_r;return new Set(Sr)},[_r,zt]),Dr=reactExports.useMemo(()=>zt==="radio"?new Set:new Set($r),[$r,zt]);reactExports.useEffect(()=>{Et||Yt(EMPTY_LIST$1)},[!!Et]);const Ar=reactExports.useCallback((Sr,Br)=>{let Or,Pr;lr(Sr),yt?(Or=Sr,Pr=Sr.map(Nr=>er.current.get(Nr))):(Or=[],Pr=[],Sr.forEach(Nr=>{const Lr=pr(Nr);Lr!==void 0&&(Or.push(Nr),Pr.push(Lr))})),Yt(Or),Bt==null||Bt(Or,Pr,{type:Br})},[Yt,pr,Bt,yt]),Fr=reactExports.useCallback((Sr,Br,Or,Pr)=>{if(Dt){const Nr=Or.map(Lr=>pr(Lr));Dt(pr(Sr),Br,Nr,Pr)}Ar(Or,"single")},[Dt,pr,Ar]),Rr=reactExports.useMemo(()=>!Vt||Qt?null:(Vt===!0?[SELECTION_ALL,SELECTION_INVERT,SELECTION_NONE]:Vt).map(Br=>Br===SELECTION_ALL?{key:"all",text:xr.selectionAll,onSelect(){Ar(cr.map((Or,Pr)=>gr(Or,Pr)).filter(Or=>{const Pr=ir.get(Or);return!(Pr!=null&&Pr.disabled)||Tr.has(Or)}),"all")}}:Br===SELECTION_INVERT?{key:"invert",text:xr.selectInvert,onSelect(){const Or=new Set(Tr);Er.forEach((Nr,Lr)=>{const Wr=gr(Nr,Lr),Ur=ir.get(Wr);Ur!=null&&Ur.disabled||(Or.has(Wr)?Or.delete(Wr):Or.add(Wr))});const Pr=Array.from(Or);kt&&(Lt.deprecated(!1,"onSelectInvert","onChange"),kt(Pr)),Ar(Pr,"invert")}}:Br===SELECTION_NONE?{key:"none",text:xr.selectNone,onSelect(){Mt==null||Mt(),Ar(Array.from(Tr).filter(Or=>{const Pr=ir.get(Or);return Pr==null?void 0:Pr.disabled}),"none")}}:Br).map(Br=>Object.assign(Object.assign({},Br),{onSelect:function(){for(var Or,Pr,Nr=arguments.length,Lr=new Array(Nr),Wr=0;Wr<Nr;Wr++)Lr[Wr]=arguments[Wr];(Pr=Br.onSelect)===null||Pr===void 0||(Or=Pr).call.apply(Or,[Br].concat(Lr)),Wt(null)}})),[Vt,Tr,Er,gr,kt,Ar]);return[reactExports.useCallback(Sr=>{var Br;if(!Et)return Sr.filter(kr=>kr!==SELECTION_COLUMN);let Or=_toConsumableArray(Sr);const Pr=new Set(Tr),Nr=Ut.map(gr).filter(kr=>!ir.get(kr).disabled),Lr=Nr.every(kr=>Pr.has(kr)),Wr=Nr.some(kr=>Pr.has(kr)),Ur=()=>{const kr=[];Lr?Nr.forEach(Ir=>{Pr.delete(Ir),kr.push(Ir)}):Nr.forEach(Ir=>{Pr.has(Ir)||(Pr.add(Ir),kr.push(Ir))});const Mr=Array.from(Pr);Ft==null||Ft(!Lr,Mr.map(Ir=>pr(Ir)),kr.map(Ir=>pr(Ir))),Ar(Mr,"all"),Wt(null)};let jr,Kr;if(zt!=="radio"){let kr;if(Rr){const on={getPopupContainer:rr,items:Rr.map((Qr,hn)=>{const{key:Wn,text:_n,onSelect:An}=Qr;return{key:Wn??hn,onClick:()=>{An==null||An(Nr)},label:_n}})};kr=reactExports.createElement("div",{className:`${dr}-selection-extra`},reactExports.createElement(Dropdown,{menu:on,getPopupContainer:rr},reactExports.createElement("span",null,reactExports.createElement(RefIcon$l,null))))}const Mr=Ut.map((on,Qr)=>{const hn=gr(on,Qr),Wn=ir.get(hn)||{};return Object.assign({checked:Pr.has(hn)},Wn)}).filter(on=>{let{disabled:Qr}=on;return Qr}),Ir=!!Mr.length&&Mr.length===Ut.length,Hr=Ir&&Mr.every(on=>{let{checked:Qr}=on;return Qr}),Vr=Ir&&Mr.some(on=>{let{checked:Qr}=on;return Qr});Kr=reactExports.createElement(Checkbox,{checked:Ir?Hr:!!Ut.length&&Lr,indeterminate:Ir?!Hr&&Vr:!Lr&&Wr,onChange:Ur,disabled:Ut.length===0||Ir,"aria-label":kr?"Custom selection":"Select all",skipGroup:!0}),jr=!Qt&&reactExports.createElement("div",{className:`${dr}-selection`},Kr,kr)}let qr;zt==="radio"?qr=(kr,Mr,Ir)=>{const Hr=gr(Mr,Ir),Vr=Pr.has(Hr);return{node:reactExports.createElement(Radio,Object.assign({},ir.get(Hr),{checked:Vr,onClick:on=>on.stopPropagation(),onChange:on=>{Pr.has(Hr)||Fr(Hr,!0,[Hr],on.nativeEvent)}})),checked:Vr}}:qr=(kr,Mr,Ir)=>{var Hr;const Vr=gr(Mr,Ir),on=Pr.has(Vr),Qr=Dr.has(Vr),hn=ir.get(Vr);let Wn;return vr==="nest"?Wn=Qr:Wn=(Hr=hn==null?void 0:hn.indeterminate)!==null&&Hr!==void 0?Hr:Qr,{node:reactExports.createElement(Checkbox,Object.assign({},hn,{indeterminate:Wn,checked:on,skipGroup:!0,onClick:_n=>_n.stopPropagation(),onChange:_n=>{let{nativeEvent:An}=_n;const{shiftKey:Yn}=An,Tn=Nr.findIndex(Zn=>Zn===Vr),Nn=_r.some(Zn=>Nr.includes(Zn));if(Yn&&Zt&&Nn){const Zn=Ht(Tn,Nr,Pr),$n=Array.from(Pr);Nt==null||Nt(!on,$n.map(Fn=>pr(Fn)),Zn.map(Fn=>pr(Fn))),Ar($n,"multiple")}else{const Zn=_r;if(Zt){const $n=on?arrDel(Zn,Vr):arrAdd(Zn,Vr);Fr(Vr,!on,$n,An)}else{const $n=conductCheck([].concat(_toConsumableArray(Zn),[Vr]),!0,Jt,Cr),{checkedKeys:Fn,halfCheckedKeys:Gn}=$n;let gn=Fn;if(on){const Rn=new Set(Fn);Rn.delete(Vr),gn=conductCheck(Array.from(Rn),{checked:!1,halfCheckedKeys:Gn},Jt,Cr).checkedKeys}Fr(Vr,!on,gn,An)}}Wt(on?null:Tn)}})),checked:on}};const Zr=(kr,Mr,Ir)=>{const{node:Hr,checked:Vr}=qr(kr,Mr,Ir);return Xt?Xt(Vr,Mr,Ir,Hr):Hr};if(!Or.includes(SELECTION_COLUMN))if(Or.findIndex(kr=>{var Mr;return((Mr=kr[INTERNAL_COL_DEFINE])===null||Mr===void 0?void 0:Mr.columnType)==="EXPAND_COLUMN"})===0){const[kr,...Mr]=Or;Or=[kr,SELECTION_COLUMN].concat(_toConsumableArray(Mr))}else Or=[SELECTION_COLUMN].concat(_toConsumableArray(Or));const dn=Or.indexOf(SELECTION_COLUMN);Or=Or.filter((kr,Mr)=>kr!==SELECTION_COLUMN||Mr===dn);const Xr=Or[dn-1],un=Or[dn+1];let Yr=Kt;Yr===void 0&&((un==null?void 0:un.fixed)!==void 0?Yr=un.fixed:(Xr==null?void 0:Xr.fixed)!==void 0&&(Yr=Xr.fixed)),Yr&&Xr&&((Br=Xr[INTERNAL_COL_DEFINE])===null||Br===void 0?void 0:Br.columnType)==="EXPAND_COLUMN"&&Xr.fixed===void 0&&(Xr.fixed=Yr);const Gr=cls(`${dr}-selection-col`,{[`${dr}-selection-col-with-dropdown`]:Vt&&zt==="checkbox"}),Jr=()=>Et!=null&&Et.columnTitle?typeof Et.columnTitle=="function"?Et.columnTitle(Kr):Et.columnTitle:jr,wn={fixed:Yr,width:jt,className:`${dr}-selection-column`,title:Jr(),render:Zr,onCell:Et.onCell,[INTERNAL_COL_DEFINE]:{className:Gr}};return Or.map(kr=>kr===SELECTION_COLUMN?wn:kr)},[gr,Ut,Et,_r,Tr,Dr,jt,Rr,vr,ir,Nt,Fr,Cr]),Tr]};function fillProxy(ht,Et){return ht._antProxy=ht._antProxy||{},Object.keys(Et).forEach(yt=>{if(!(yt in ht._antProxy)){const Ct=ht[yt];ht._antProxy[yt]=Ct,ht[yt]=Et[yt]}}),ht}function useProxyImperativeHandle(ht,Et){return reactExports.useImperativeHandle(ht,()=>{const yt=Et(),{nativeElement:Ct}=yt;return typeof Proxy<"u"?new Proxy(Ct,{get($t,At){return yt[At]?yt[At]:Reflect.get($t,At)}}):fillProxy(Ct,yt)})}function renderExpandIcon(ht){return function(yt){let{prefixCls:Ct,onExpand:$t,record:At,expanded:Bt,expandable:Dt}=yt;const Ft=`${Ct}-row-expand-icon`;return reactExports.createElement("button",{type:"button",onClick:kt=>{$t(At,kt),kt.stopPropagation()},className:cls(Ft,{[`${Ft}-spaced`]:!Dt,[`${Ft}-expanded`]:Dt&&Bt,[`${Ft}-collapsed`]:Dt&&!Bt}),"aria-label":Bt?ht.collapse:ht.expand,"aria-expanded":Bt})}}function useContainerWidth(ht){return(yt,Ct)=>{const $t=yt.querySelector(`.${ht}-container`);let At=Ct;if($t){const Bt=getComputedStyle($t),Dt=parseInt(Bt.borderLeftWidth,10),Ft=parseInt(Bt.borderRightWidth,10);At=Ct-Dt-Ft}return At}}function getColumnKey(ht,Et){return"key"in ht&&ht.key!==void 0&&ht.key!==null?ht.key:ht.dataIndex?Array.isArray(ht.dataIndex)?ht.dataIndex.join("."):ht.dataIndex:Et}function getColumnPos(ht,Et){return Et?`${Et}-${ht}`:`${ht}`}function renderColumnTitle(ht,Et){return typeof ht=="function"?ht(Et):ht}function safeColumnTitle(ht,Et){const yt=renderColumnTitle(ht,Et);return Object.prototype.toString.call(yt)==="[object Object]"?"":yt}var FilterFilled$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},FilterFilled=function ht(Et,yt){return reactExports.createElement(Icon$1,_extends$5({},Et,{ref:yt,icon:FilterFilled$1}))},RefIcon$9=reactExports.forwardRef(FilterFilled);function useSyncState(ht){const Et=reactExports.useRef(ht),yt=useForceUpdate();return[()=>Et.current,Ct=>{Et.current=Ct,yt()}]}function DropIndicator(ht){var Et=ht.dropPosition,yt=ht.dropLevelOffset,Ct=ht.indent,$t={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Et){case-1:$t.top=0,$t.left=-yt*Ct;break;case 1:$t.bottom=0,$t.left=-yt*Ct;break;case 0:$t.bottom=0,$t.left=Ct;break}return reactExports.createElement("div",{style:$t})}function _objectDestructuringEmpty(ht){if(ht==null)throw new TypeError("Cannot destructure "+ht)}function useUnmount$1(ht,Et){var yt=reactExports.useState(!1),Ct=_slicedToArray(yt,2),$t=Ct[0],At=Ct[1];useLayoutEffect$1(function(){if($t)return ht(),function(){Et()}},[$t]),useLayoutEffect$1(function(){return At(!0),function(){At(!1)}},[])}var _excluded$2=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],MotionTreeNode=function ht(Et,yt){var Ct=Et.className,$t=Et.style,At=Et.motion,Bt=Et.motionNodes,Dt=Et.motionType,Ft=Et.onMotionStart,kt=Et.onMotionEnd,Mt=Et.active,Nt=Et.treeNodeRequiredProps,jt=_objectWithoutProperties$1(Et,_excluded$2),zt=reactExports.useState(!0),Vt=_slicedToArray(zt,2),Kt=Vt[0],Xt=Vt[1],Qt=reactExports.useContext(TreeContext),Zt=Qt.prefixCls,dr=Bt&&Dt!=="hide";useLayoutEffect$1(function(){Bt&&dr!==Kt&&Xt(dr)},[Bt]);var cr=function(){Bt&&Ft()},Er=reactExports.useRef(!1),pr=function(){Bt&&!Er.current&&(Er.current=!0,kt())};useUnmount$1(cr,pr);var gr=function(yr){dr===yr&&pr()};return Bt?reactExports.createElement(CSSMotion,_extends$5({ref:yt,visible:Kt},At,{motionAppear:Dt==="show",onVisibleChanged:gr}),function(vr,yr){var xr=vr.className,rr=vr.style;return reactExports.createElement("div",{ref:yr,className:cls("".concat(Zt,"-treenode-motion"),xr),style:rr},Bt.map(function(Lt){var Ht=Object.assign({},(_objectDestructuringEmpty(Lt.data),Lt.data)),Wt=Lt.title,Gt=Lt.key,Yt=Lt.isStart,er=Lt.isEnd;delete Ht.children;var lr=getTreeNodeProps(Gt,Nt);return reactExports.createElement(ContextTreeNode,_extends$5({},Ht,lr,{title:Wt,active:Mt,data:Lt.data,key:Gt,isStart:Yt,isEnd:er}))}))}):reactExports.createElement(ContextTreeNode,_extends$5({domRef:yt,className:Ct,style:$t},jt,{active:Mt}))};MotionTreeNode.displayName="MotionTreeNode";var RefMotionTreeNode=reactExports.forwardRef(MotionTreeNode);function findExpandedKeys(){var ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],yt=ht.length,Ct=Et.length;if(Math.abs(yt-Ct)!==1)return{add:!1,key:null};function $t(At,Bt){var Dt=new Map;At.forEach(function(kt){Dt.set(kt,!0)});var Ft=Bt.filter(function(kt){return!Dt.has(kt)});return Ft.length===1?Ft[0]:null}return yt<Ct?{add:!0,key:$t(ht,Et)}:{add:!1,key:$t(Et,ht)}}function getExpandRange(ht,Et,yt){var Ct=ht.findIndex(function(Dt){return Dt.key===yt}),$t=ht[Ct+1],At=Et.findIndex(function(Dt){return Dt.key===yt});if($t){var Bt=Et.findIndex(function(Dt){return Dt.key===$t.key});return Et.slice(At+1,Bt)}return Et.slice(At+1)}var _excluded$1=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],HIDDEN_STYLE={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},noop$2=function ht(){},MOTION_KEY="RC_TREE_MOTION_".concat(Math.random()),MotionNode={key:MOTION_KEY},MotionEntity={key:MOTION_KEY,level:0,index:0,pos:"0",node:MotionNode,nodes:[MotionNode]},MotionFlattenData={parent:null,children:[],pos:MotionEntity.pos,data:MotionNode,title:null,key:MOTION_KEY,isStart:[],isEnd:[]};function getMinimumRangeTransitionRange(ht,Et,yt,Ct){return Et===!1||!yt?ht:ht.slice(0,Math.ceil(yt/Ct)+1)}function itemKey(ht){var Et=ht.key,yt=ht.pos;return getKey(Et,yt)}function getAccessibilityPath(ht){for(var Et=String(ht.data.key),yt=ht;yt.parent;)yt=yt.parent,Et="".concat(yt.data.key," > ").concat(Et);return Et}var NodeList=reactExports.forwardRef(function(ht,Et){var yt=ht.prefixCls,Ct=ht.data;ht.selectable,ht.checkable;var $t=ht.expandedKeys,At=ht.selectedKeys,Bt=ht.checkedKeys,Dt=ht.loadedKeys,Ft=ht.loadingKeys,kt=ht.halfCheckedKeys,Mt=ht.keyEntities,Nt=ht.disabled,jt=ht.dragging,zt=ht.dragOverNodeKey,Vt=ht.dropPosition,Kt=ht.motion,Xt=ht.height,Qt=ht.itemHeight,Zt=ht.virtual,dr=ht.focusable,cr=ht.activeItem,Er=ht.focused,pr=ht.tabIndex,gr=ht.onKeyDown,vr=ht.onFocus,yr=ht.onBlur,xr=ht.onActiveChange,rr=ht.onListChangeStart,Lt=ht.onListChangeEnd,Ht=_objectWithoutProperties$1(ht,_excluded$1),Wt=reactExports.useRef(null),Gt=reactExports.useRef(null);reactExports.useImperativeHandle(Et,function(){return{scrollTo:function(qr){Wt.current.scrollTo(qr)},getIndentWidth:function(){return Gt.current.offsetWidth}}});var Yt=reactExports.useState($t),er=_slicedToArray(Yt,2),lr=er[0],Jt=er[1],Ut=reactExports.useState(Ct),ir=_slicedToArray(Ut,2),Cr=ir[0],_r=ir[1],$r=reactExports.useState(Ct),Tr=_slicedToArray($r,2),Dr=Tr[0],Ar=Tr[1],Fr=reactExports.useState([]),Rr=_slicedToArray(Fr,2),wr=Rr[0],Sr=Rr[1],Br=reactExports.useState(null),Or=_slicedToArray(Br,2),Pr=Or[0],Nr=Or[1],Lr=reactExports.useRef(Ct);Lr.current=Ct;function Wr(){var Kr=Lr.current;_r(Kr),Ar(Kr),Sr([]),Nr(null),Lt()}useLayoutEffect$1(function(){Jt($t);var Kr=findExpandedKeys(lr,$t);if(Kr.key!==null)if(Kr.add){var qr=Cr.findIndex(function(Gr){var Jr=Gr.key;return Jr===Kr.key}),Zr=getMinimumRangeTransitionRange(getExpandRange(Cr,Ct,Kr.key),Zt,Xt,Qt),dn=Cr.slice();dn.splice(qr+1,0,MotionFlattenData),Ar(dn),Sr(Zr),Nr("show")}else{var Xr=Ct.findIndex(function(Gr){var Jr=Gr.key;return Jr===Kr.key}),un=getMinimumRangeTransitionRange(getExpandRange(Ct,Cr,Kr.key),Zt,Xt,Qt),Yr=Ct.slice();Yr.splice(Xr+1,0,MotionFlattenData),Ar(Yr),Sr(un),Nr("hide")}else Cr!==Ct&&(_r(Ct),Ar(Ct))},[$t,Ct]),reactExports.useEffect(function(){jt||Wr()},[jt]);var Ur=Kt?Dr:Ct,jr={expandedKeys:$t,selectedKeys:At,loadedKeys:Dt,loadingKeys:Ft,checkedKeys:Bt,halfCheckedKeys:kt,dragOverNodeKey:zt,dropPosition:Vt,keyEntities:Mt};return reactExports.createElement(reactExports.Fragment,null,Er&&cr&&reactExports.createElement("span",{style:HIDDEN_STYLE,"aria-live":"assertive"},getAccessibilityPath(cr)),reactExports.createElement("div",null,reactExports.createElement("input",{style:HIDDEN_STYLE,disabled:dr===!1||Nt,tabIndex:dr!==!1?pr:null,onKeyDown:gr,onFocus:vr,onBlur:yr,value:"",onChange:noop$2,"aria-label":"for screen reader"})),reactExports.createElement("div",{className:"".concat(yt,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},reactExports.createElement("div",{className:"".concat(yt,"-indent")},reactExports.createElement("div",{ref:Gt,className:"".concat(yt,"-indent-unit")}))),reactExports.createElement(List,_extends$5({},Ht,{data:Ur,itemKey,height:Xt,fullHeight:!1,virtual:Zt,itemHeight:Qt,prefixCls:"".concat(yt,"-list"),ref:Wt,onVisibleChange:function(qr,Zr){var dn=new Set(qr),Xr=Zr.filter(function(un){return!dn.has(un)});Xr.some(function(un){return itemKey(un)===MOTION_KEY})&&Wr()}}),function(Kr){var qr=Kr.pos,Zr=Object.assign({},(_objectDestructuringEmpty(Kr.data),Kr.data)),dn=Kr.title,Xr=Kr.key,un=Kr.isStart,Yr=Kr.isEnd,Gr=getKey(Xr,qr);delete Zr.key,delete Zr.children;var Jr=getTreeNodeProps(Gr,jr);return reactExports.createElement(RefMotionTreeNode,_extends$5({},Zr,Jr,{title:dn,active:!!cr&&Xr===cr.key,pos:qr,data:Kr.data,isStart:un,isEnd:Yr,motion:Kt,motionNodes:Xr===MOTION_KEY?wr:null,motionType:Pr,onMotionStart:rr,onMotionEnd:Wr,treeNodeRequiredProps:jr,onMouseMove:function(){xr(null)}}))}))});NodeList.displayName="NodeList";var MAX_RETRY_TIMES=10,Tree$2=function(ht){_inherits(yt,ht);var Et=_createSuper$5(yt);function yt(){var Ct;_classCallCheck(this,yt);for(var $t=arguments.length,At=new Array($t),Bt=0;Bt<$t;Bt++)At[Bt]=arguments[Bt];return Ct=Et.call.apply(Et,[this].concat(At)),_defineProperty$1(_assertThisInitialized$1(Ct),"destroyed",!1),_defineProperty$1(_assertThisInitialized$1(Ct),"delayedDragEnterLogic",void 0),_defineProperty$1(_assertThisInitialized$1(Ct),"loadingRetryTimes",{}),_defineProperty$1(_assertThisInitialized$1(Ct),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:fillFieldNames()}),_defineProperty$1(_assertThisInitialized$1(Ct),"dragStartMousePosition",null),_defineProperty$1(_assertThisInitialized$1(Ct),"dragNode",void 0),_defineProperty$1(_assertThisInitialized$1(Ct),"currentMouseOverDroppableNodeKey",null),_defineProperty$1(_assertThisInitialized$1(Ct),"listRef",reactExports.createRef()),_defineProperty$1(_assertThisInitialized$1(Ct),"onNodeDragStart",function(Dt,Ft){var kt=Ct.state,Mt=kt.expandedKeys,Nt=kt.keyEntities,jt=Ct.props.onDragStart,zt=Ft.props.eventKey;Ct.dragNode=Ft,Ct.dragStartMousePosition={x:Dt.clientX,y:Dt.clientY};var Vt=arrDel(Mt,zt);Ct.setState({draggingNodeKey:zt,dragChildrenKeys:getDragChildrenKeys(zt,Nt),indent:Ct.listRef.current.getIndentWidth()}),Ct.setExpandedKeys(Vt),window.addEventListener("dragend",Ct.onWindowDragEnd),jt==null||jt({event:Dt,node:convertNodePropsToEventData(Ft.props)})}),_defineProperty$1(_assertThisInitialized$1(Ct),"onNodeDragEnter",function(Dt,Ft){var kt=Ct.state,Mt=kt.expandedKeys,Nt=kt.keyEntities,jt=kt.dragChildrenKeys,zt=kt.flattenNodes,Vt=kt.indent,Kt=Ct.props,Xt=Kt.onDragEnter,Qt=Kt.onExpand,Zt=Kt.allowDrop,dr=Kt.direction,cr=Ft.props,Er=cr.pos,pr=cr.eventKey,gr=_assertThisInitialized$1(Ct),vr=gr.dragNode;if(Ct.currentMouseOverDroppableNodeKey!==pr&&(Ct.currentMouseOverDroppableNodeKey=pr),!vr){Ct.resetDragState();return}var yr=calcDropPosition(Dt,vr,Ft,Vt,Ct.dragStartMousePosition,Zt,zt,Nt,Mt,dr),xr=yr.dropPosition,rr=yr.dropLevelOffset,Lt=yr.dropTargetKey,Ht=yr.dropContainerKey,Wt=yr.dropTargetPos,Gt=yr.dropAllowed,Yt=yr.dragOverNodeKey;if(jt.indexOf(Lt)!==-1||!Gt){Ct.resetDragState();return}if(Ct.delayedDragEnterLogic||(Ct.delayedDragEnterLogic={}),Object.keys(Ct.delayedDragEnterLogic).forEach(function(er){clearTimeout(Ct.delayedDragEnterLogic[er])}),vr.props.eventKey!==Ft.props.eventKey&&(Dt.persist(),Ct.delayedDragEnterLogic[Er]=window.setTimeout(function(){if(Ct.state.draggingNodeKey!==null){var er=_toConsumableArray(Mt),lr=getEntity(Nt,Ft.props.eventKey);lr&&(lr.children||[]).length&&(er=arrAdd(Mt,Ft.props.eventKey)),"expandedKeys"in Ct.props||Ct.setExpandedKeys(er),Qt==null||Qt(er,{node:convertNodePropsToEventData(Ft.props),expanded:!0,nativeEvent:Dt.nativeEvent})}},800)),vr.props.eventKey===Lt&&rr===0){Ct.resetDragState();return}Ct.setState({dragOverNodeKey:Yt,dropPosition:xr,dropLevelOffset:rr,dropTargetKey:Lt,dropContainerKey:Ht,dropTargetPos:Wt,dropAllowed:Gt}),Xt==null||Xt({event:Dt,node:convertNodePropsToEventData(Ft.props),expandedKeys:Mt})}),_defineProperty$1(_assertThisInitialized$1(Ct),"onNodeDragOver",function(Dt,Ft){var kt=Ct.state,Mt=kt.dragChildrenKeys,Nt=kt.flattenNodes,jt=kt.keyEntities,zt=kt.expandedKeys,Vt=kt.indent,Kt=Ct.props,Xt=Kt.onDragOver,Qt=Kt.allowDrop,Zt=Kt.direction,dr=_assertThisInitialized$1(Ct),cr=dr.dragNode;if(cr){var Er=calcDropPosition(Dt,cr,Ft,Vt,Ct.dragStartMousePosition,Qt,Nt,jt,zt,Zt),pr=Er.dropPosition,gr=Er.dropLevelOffset,vr=Er.dropTargetKey,yr=Er.dropContainerKey,xr=Er.dropAllowed,rr=Er.dropTargetPos,Lt=Er.dragOverNodeKey;Mt.indexOf(vr)!==-1||!xr||(cr.props.eventKey===vr&&gr===0?Ct.state.dropPosition===null&&Ct.state.dropLevelOffset===null&&Ct.state.dropTargetKey===null&&Ct.state.dropContainerKey===null&&Ct.state.dropTargetPos===null&&Ct.state.dropAllowed===!1&&Ct.state.dragOverNodeKey===null||Ct.resetDragState():pr===Ct.state.dropPosition&&gr===Ct.state.dropLevelOffset&&vr===Ct.state.dropTargetKey&&yr===Ct.state.dropContainerKey&&rr===Ct.state.dropTargetPos&&xr===Ct.state.dropAllowed&&Lt===Ct.state.dragOverNodeKey||Ct.setState({dropPosition:pr,dropLevelOffset:gr,dropTargetKey:vr,dropContainerKey:yr,dropTargetPos:rr,dropAllowed:xr,dragOverNodeKey:Lt}),Xt==null||Xt({event:Dt,node:convertNodePropsToEventData(Ft.props)}))}}),_defineProperty$1(_assertThisInitialized$1(Ct),"onNodeDragLeave",function(Dt,Ft){Ct.currentMouseOverDroppableNodeKey===Ft.props.eventKey&&!Dt.currentTarget.contains(Dt.relatedTarget)&&(Ct.resetDragState(),Ct.currentMouseOverDroppableNodeKey=null);var kt=Ct.props.onDragLeave;kt==null||kt({event:Dt,node:convertNodePropsToEventData(Ft.props)})}),_defineProperty$1(_assertThisInitialized$1(Ct),"onWindowDragEnd",function(Dt){Ct.onNodeDragEnd(Dt,null,!0),window.removeEventListener("dragend",Ct.onWindowDragEnd)}),_defineProperty$1(_assertThisInitialized$1(Ct),"onNodeDragEnd",function(Dt,Ft){var kt=Ct.props.onDragEnd;Ct.setState({dragOverNodeKey:null}),Ct.cleanDragState(),kt==null||kt({event:Dt,node:convertNodePropsToEventData(Ft.props)}),Ct.dragNode=null,window.removeEventListener("dragend",Ct.onWindowDragEnd)}),_defineProperty$1(_assertThisInitialized$1(Ct),"onNodeDrop",function(Dt,Ft){var kt,Mt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Nt=Ct.state,jt=Nt.dragChildrenKeys,zt=Nt.dropPosition,Vt=Nt.dropTargetKey,Kt=Nt.dropTargetPos,Xt=Nt.dropAllowed;if(Xt){var Qt=Ct.props.onDrop;if(Ct.setState({dragOverNodeKey:null}),Ct.cleanDragState(),Vt!==null){var Zt=_objectSpread2(_objectSpread2({},getTreeNodeProps(Vt,Ct.getTreeNodeRequiredProps())),{},{active:((kt=Ct.getActiveItem())===null||kt===void 0?void 0:kt.key)===Vt,data:getEntity(Ct.state.keyEntities,Vt).node}),dr=jt.indexOf(Vt)!==-1;warningOnce(!dr,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var cr=posToArr(Kt),Er={event:Dt,node:convertNodePropsToEventData(Zt),dragNode:Ct.dragNode?convertNodePropsToEventData(Ct.dragNode.props):null,dragNodesKeys:[Ct.dragNode.props.eventKey].concat(jt),dropToGap:zt!==0,dropPosition:zt+Number(cr[cr.length-1])};Mt||Qt==null||Qt(Er),Ct.dragNode=null}}}),_defineProperty$1(_assertThisInitialized$1(Ct),"cleanDragState",function(){var Dt=Ct.state.draggingNodeKey;Dt!==null&&Ct.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Ct.dragStartMousePosition=null,Ct.currentMouseOverDroppableNodeKey=null}),_defineProperty$1(_assertThisInitialized$1(Ct),"triggerExpandActionExpand",function(Dt,Ft){var kt=Ct.state,Mt=kt.expandedKeys,Nt=kt.flattenNodes,jt=Ft.expanded,zt=Ft.key,Vt=Ft.isLeaf;if(!(Vt||Dt.shiftKey||Dt.metaKey||Dt.ctrlKey)){var Kt=Nt.filter(function(Qt){return Qt.key===zt})[0],Xt=convertNodePropsToEventData(_objectSpread2(_objectSpread2({},getTreeNodeProps(zt,Ct.getTreeNodeRequiredProps())),{},{data:Kt.data}));Ct.setExpandedKeys(jt?arrDel(Mt,zt):arrAdd(Mt,zt)),Ct.onNodeExpand(Dt,Xt)}}),_defineProperty$1(_assertThisInitialized$1(Ct),"onNodeClick",function(Dt,Ft){var kt=Ct.props,Mt=kt.onClick,Nt=kt.expandAction;Nt==="click"&&Ct.triggerExpandActionExpand(Dt,Ft),Mt==null||Mt(Dt,Ft)}),_defineProperty$1(_assertThisInitialized$1(Ct),"onNodeDoubleClick",function(Dt,Ft){var kt=Ct.props,Mt=kt.onDoubleClick,Nt=kt.expandAction;Nt==="doubleClick"&&Ct.triggerExpandActionExpand(Dt,Ft),Mt==null||Mt(Dt,Ft)}),_defineProperty$1(_assertThisInitialized$1(Ct),"onNodeSelect",function(Dt,Ft){var kt=Ct.state.selectedKeys,Mt=Ct.state,Nt=Mt.keyEntities,jt=Mt.fieldNames,zt=Ct.props,Vt=zt.onSelect,Kt=zt.multiple,Xt=Ft.selected,Qt=Ft[jt.key],Zt=!Xt;Zt?Kt?kt=arrAdd(kt,Qt):kt=[Qt]:kt=arrDel(kt,Qt);var dr=kt.map(function(cr){var Er=getEntity(Nt,cr);return Er?Er.node:null}).filter(function(cr){return cr});Ct.setUncontrolledState({selectedKeys:kt}),Vt==null||Vt(kt,{event:"select",selected:Zt,node:Ft,selectedNodes:dr,nativeEvent:Dt.nativeEvent})}),_defineProperty$1(_assertThisInitialized$1(Ct),"onNodeCheck",function(Dt,Ft,kt){var Mt=Ct.state,Nt=Mt.keyEntities,jt=Mt.checkedKeys,zt=Mt.halfCheckedKeys,Vt=Ct.props,Kt=Vt.checkStrictly,Xt=Vt.onCheck,Qt=Ft.key,Zt,dr={event:"check",node:Ft,checked:kt,nativeEvent:Dt.nativeEvent};if(Kt){var cr=kt?arrAdd(jt,Qt):arrDel(jt,Qt),Er=arrDel(zt,Qt);Zt={checked:cr,halfChecked:Er},dr.checkedNodes=cr.map(function(rr){return getEntity(Nt,rr)}).filter(function(rr){return rr}).map(function(rr){return rr.node}),Ct.setUncontrolledState({checkedKeys:cr})}else{var pr=conductCheck([].concat(_toConsumableArray(jt),[Qt]),!0,Nt),gr=pr.checkedKeys,vr=pr.halfCheckedKeys;if(!kt){var yr=new Set(gr);yr.delete(Qt);var xr=conductCheck(Array.from(yr),{checked:!1,halfCheckedKeys:vr},Nt);gr=xr.checkedKeys,vr=xr.halfCheckedKeys}Zt=gr,dr.checkedNodes=[],dr.checkedNodesPositions=[],dr.halfCheckedKeys=vr,gr.forEach(function(rr){var Lt=getEntity(Nt,rr);if(Lt){var Ht=Lt.node,Wt=Lt.pos;dr.checkedNodes.push(Ht),dr.checkedNodesPositions.push({node:Ht,pos:Wt})}}),Ct.setUncontrolledState({checkedKeys:gr},!1,{halfCheckedKeys:vr})}Xt==null||Xt(Zt,dr)}),_defineProperty$1(_assertThisInitialized$1(Ct),"onNodeLoad",function(Dt){var Ft,kt=Dt.key,Mt=Ct.state.keyEntities,Nt=getEntity(Mt,kt);if(!(Nt!=null&&(Ft=Nt.children)!==null&&Ft!==void 0&&Ft.length)){var jt=new Promise(function(zt,Vt){Ct.setState(function(Kt){var Xt=Kt.loadedKeys,Qt=Xt===void 0?[]:Xt,Zt=Kt.loadingKeys,dr=Zt===void 0?[]:Zt,cr=Ct.props,Er=cr.loadData,pr=cr.onLoad;if(!Er||Qt.indexOf(kt)!==-1||dr.indexOf(kt)!==-1)return null;var gr=Er(Dt);return gr.then(function(){var vr=Ct.state.loadedKeys,yr=arrAdd(vr,kt);pr==null||pr(yr,{event:"load",node:Dt}),Ct.setUncontrolledState({loadedKeys:yr}),Ct.setState(function(xr){return{loadingKeys:arrDel(xr.loadingKeys,kt)}}),zt()}).catch(function(vr){if(Ct.setState(function(xr){return{loadingKeys:arrDel(xr.loadingKeys,kt)}}),Ct.loadingRetryTimes[kt]=(Ct.loadingRetryTimes[kt]||0)+1,Ct.loadingRetryTimes[kt]>=MAX_RETRY_TIMES){var yr=Ct.state.loadedKeys;warningOnce(!1,"Retry for `loadData` many times but still failed. No more retry."),Ct.setUncontrolledState({loadedKeys:arrAdd(yr,kt)}),zt()}Vt(vr)}),{loadingKeys:arrAdd(dr,kt)}})});return jt.catch(function(){}),jt}}),_defineProperty$1(_assertThisInitialized$1(Ct),"onNodeMouseEnter",function(Dt,Ft){var kt=Ct.props.onMouseEnter;kt==null||kt({event:Dt,node:Ft})}),_defineProperty$1(_assertThisInitialized$1(Ct),"onNodeMouseLeave",function(Dt,Ft){var kt=Ct.props.onMouseLeave;kt==null||kt({event:Dt,node:Ft})}),_defineProperty$1(_assertThisInitialized$1(Ct),"onNodeContextMenu",function(Dt,Ft){var kt=Ct.props.onRightClick;kt&&(Dt.preventDefault(),kt({event:Dt,node:Ft}))}),_defineProperty$1(_assertThisInitialized$1(Ct),"onFocus",function(){var Dt=Ct.props.onFocus;Ct.setState({focused:!0});for(var Ft=arguments.length,kt=new Array(Ft),Mt=0;Mt<Ft;Mt++)kt[Mt]=arguments[Mt];Dt==null||Dt.apply(void 0,kt)}),_defineProperty$1(_assertThisInitialized$1(Ct),"onBlur",function(){var Dt=Ct.props.onBlur;Ct.setState({focused:!1}),Ct.onActiveChange(null);for(var Ft=arguments.length,kt=new Array(Ft),Mt=0;Mt<Ft;Mt++)kt[Mt]=arguments[Mt];Dt==null||Dt.apply(void 0,kt)}),_defineProperty$1(_assertThisInitialized$1(Ct),"getTreeNodeRequiredProps",function(){var Dt=Ct.state,Ft=Dt.expandedKeys,kt=Dt.selectedKeys,Mt=Dt.loadedKeys,Nt=Dt.loadingKeys,jt=Dt.checkedKeys,zt=Dt.halfCheckedKeys,Vt=Dt.dragOverNodeKey,Kt=Dt.dropPosition,Xt=Dt.keyEntities;return{expandedKeys:Ft||[],selectedKeys:kt||[],loadedKeys:Mt||[],loadingKeys:Nt||[],checkedKeys:jt||[],halfCheckedKeys:zt||[],dragOverNodeKey:Vt,dropPosition:Kt,keyEntities:Xt}}),_defineProperty$1(_assertThisInitialized$1(Ct),"setExpandedKeys",function(Dt){var Ft=Ct.state,kt=Ft.treeData,Mt=Ft.fieldNames,Nt=flattenTreeData(kt,Dt,Mt);Ct.setUncontrolledState({expandedKeys:Dt,flattenNodes:Nt},!0)}),_defineProperty$1(_assertThisInitialized$1(Ct),"onNodeExpand",function(Dt,Ft){var kt=Ct.state.expandedKeys,Mt=Ct.state,Nt=Mt.listChanging,jt=Mt.fieldNames,zt=Ct.props,Vt=zt.onExpand,Kt=zt.loadData,Xt=Ft.expanded,Qt=Ft[jt.key];if(!Nt){var Zt=kt.indexOf(Qt),dr=!Xt;if(warningOnce(Xt&&Zt!==-1||!Xt&&Zt===-1,"Expand state not sync with index check"),dr?kt=arrAdd(kt,Qt):kt=arrDel(kt,Qt),Ct.setExpandedKeys(kt),Vt==null||Vt(kt,{node:Ft,expanded:dr,nativeEvent:Dt.nativeEvent}),dr&&Kt){var cr=Ct.onNodeLoad(Ft);cr&&cr.then(function(){var Er=flattenTreeData(Ct.state.treeData,kt,jt);Ct.setUncontrolledState({flattenNodes:Er})}).catch(function(){var Er=Ct.state.expandedKeys,pr=arrDel(Er,Qt);Ct.setExpandedKeys(pr)})}}}),_defineProperty$1(_assertThisInitialized$1(Ct),"onListChangeStart",function(){Ct.setUncontrolledState({listChanging:!0})}),_defineProperty$1(_assertThisInitialized$1(Ct),"onListChangeEnd",function(){setTimeout(function(){Ct.setUncontrolledState({listChanging:!1})})}),_defineProperty$1(_assertThisInitialized$1(Ct),"onActiveChange",function(Dt){var Ft=Ct.state.activeKey,kt=Ct.props,Mt=kt.onActiveChange,Nt=kt.itemScrollOffset,jt=Nt===void 0?0:Nt;Ft!==Dt&&(Ct.setState({activeKey:Dt}),Dt!==null&&Ct.scrollTo({key:Dt,offset:jt}),Mt==null||Mt(Dt))}),_defineProperty$1(_assertThisInitialized$1(Ct),"getActiveItem",function(){var Dt=Ct.state,Ft=Dt.activeKey,kt=Dt.flattenNodes;return Ft===null?null:kt.find(function(Mt){var Nt=Mt.key;return Nt===Ft})||null}),_defineProperty$1(_assertThisInitialized$1(Ct),"offsetActiveKey",function(Dt){var Ft=Ct.state,kt=Ft.flattenNodes,Mt=Ft.activeKey,Nt=kt.findIndex(function(Vt){var Kt=Vt.key;return Kt===Mt});Nt===-1&&Dt<0&&(Nt=kt.length),Nt=(Nt+Dt+kt.length)%kt.length;var jt=kt[Nt];if(jt){var zt=jt.key;Ct.onActiveChange(zt)}else Ct.onActiveChange(null)}),_defineProperty$1(_assertThisInitialized$1(Ct),"onKeyDown",function(Dt){var Ft=Ct.state,kt=Ft.activeKey,Mt=Ft.expandedKeys,Nt=Ft.checkedKeys,jt=Ft.fieldNames,zt=Ct.props,Vt=zt.onKeyDown,Kt=zt.checkable,Xt=zt.selectable;switch(Dt.which){case KeyCode.UP:{Ct.offsetActiveKey(-1),Dt.preventDefault();break}case KeyCode.DOWN:{Ct.offsetActiveKey(1),Dt.preventDefault();break}}var Qt=Ct.getActiveItem();if(Qt&&Qt.data){var Zt=Ct.getTreeNodeRequiredProps(),dr=Qt.data.isLeaf===!1||!!(Qt.data[jt.children]||[]).length,cr=convertNodePropsToEventData(_objectSpread2(_objectSpread2({},getTreeNodeProps(kt,Zt)),{},{data:Qt.data,active:!0}));switch(Dt.which){case KeyCode.LEFT:{dr&&Mt.includes(kt)?Ct.onNodeExpand({},cr):Qt.parent&&Ct.onActiveChange(Qt.parent.key),Dt.preventDefault();break}case KeyCode.RIGHT:{dr&&!Mt.includes(kt)?Ct.onNodeExpand({},cr):Qt.children&&Qt.children.length&&Ct.onActiveChange(Qt.children[0].key),Dt.preventDefault();break}case KeyCode.ENTER:case KeyCode.SPACE:{Kt&&!cr.disabled&&cr.checkable!==!1&&!cr.disableCheckbox?Ct.onNodeCheck({},cr,!Nt.includes(kt)):!Kt&&Xt&&!cr.disabled&&cr.selectable!==!1&&Ct.onNodeSelect({},cr);break}}}Vt==null||Vt(Dt)}),_defineProperty$1(_assertThisInitialized$1(Ct),"setUncontrolledState",function(Dt){var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,kt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Ct.destroyed){var Mt=!1,Nt=!0,jt={};Object.keys(Dt).forEach(function(zt){if(zt in Ct.props){Nt=!1;return}Mt=!0,jt[zt]=Dt[zt]}),Mt&&(!Ft||Nt)&&Ct.setState(_objectSpread2(_objectSpread2({},jt),kt))}}),_defineProperty$1(_assertThisInitialized$1(Ct),"scrollTo",function(Dt){Ct.listRef.current.scrollTo(Dt)}),Ct}return _createClass$1(yt,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var $t=this.props,At=$t.activeKey,Bt=$t.itemScrollOffset,Dt=Bt===void 0?0:Bt;At!==void 0&&At!==this.state.activeKey&&(this.setState({activeKey:At}),At!==null&&this.scrollTo({key:At,offset:Dt}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var $t=this.state,At=$t.focused,Bt=$t.flattenNodes,Dt=$t.keyEntities,Ft=$t.draggingNodeKey,kt=$t.activeKey,Mt=$t.dropLevelOffset,Nt=$t.dropContainerKey,jt=$t.dropTargetKey,zt=$t.dropPosition,Vt=$t.dragOverNodeKey,Kt=$t.indent,Xt=this.props,Qt=Xt.prefixCls,Zt=Xt.className,dr=Xt.style,cr=Xt.showLine,Er=Xt.focusable,pr=Xt.tabIndex,gr=pr===void 0?0:pr,vr=Xt.selectable,yr=Xt.showIcon,xr=Xt.icon,rr=Xt.switcherIcon,Lt=Xt.draggable,Ht=Xt.checkable,Wt=Xt.checkStrictly,Gt=Xt.disabled,Yt=Xt.motion,er=Xt.loadData,lr=Xt.filterTreeNode,Jt=Xt.height,Ut=Xt.itemHeight,ir=Xt.virtual,Cr=Xt.titleRender,_r=Xt.dropIndicatorRender,$r=Xt.onContextMenu,Tr=Xt.onScroll,Dr=Xt.direction,Ar=Xt.rootClassName,Fr=Xt.rootStyle,Rr=pickAttrs(this.props,{aria:!0,data:!0}),wr;return Lt&&(_typeof$1(Lt)==="object"?wr=Lt:typeof Lt=="function"?wr={nodeDraggable:Lt}:wr={}),reactExports.createElement(TreeContext.Provider,{value:{prefixCls:Qt,selectable:vr,showIcon:yr,icon:xr,switcherIcon:rr,draggable:wr,draggingNodeKey:Ft,checkable:Ht,checkStrictly:Wt,disabled:Gt,keyEntities:Dt,dropLevelOffset:Mt,dropContainerKey:Nt,dropTargetKey:jt,dropPosition:zt,dragOverNodeKey:Vt,indent:Kt,direction:Dr,dropIndicatorRender:_r,loadData:er,filterTreeNode:lr,titleRender:Cr,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},reactExports.createElement("div",{role:"tree",className:cls(Qt,Zt,Ar,_defineProperty$1(_defineProperty$1(_defineProperty$1({},"".concat(Qt,"-show-line"),cr),"".concat(Qt,"-focused"),At),"".concat(Qt,"-active-focused"),kt!==null)),style:Fr},reactExports.createElement(NodeList,_extends$5({ref:this.listRef,prefixCls:Qt,style:dr,data:Bt,disabled:Gt,selectable:vr,checkable:!!Ht,motion:Yt,dragging:Ft!==null,height:Jt,itemHeight:Ut,virtual:ir,focusable:Er,focused:At,tabIndex:gr,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:$r,onScroll:Tr},this.getTreeNodeRequiredProps(),Rr))))}}],[{key:"getDerivedStateFromProps",value:function($t,At){var Bt=At.prevProps,Dt={prevProps:$t};function Ft(pr){return!Bt&&pr in $t||Bt&&Bt[pr]!==$t[pr]}var kt,Mt=At.fieldNames;if(Ft("fieldNames")&&(Mt=fillFieldNames($t.fieldNames),Dt.fieldNames=Mt),Ft("treeData")?kt=$t.treeData:Ft("children")&&(warningOnce(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),kt=convertTreeToData($t.children)),kt){Dt.treeData=kt;var Nt=convertDataToEntities(kt,{fieldNames:Mt});Dt.keyEntities=_objectSpread2(_defineProperty$1({},MOTION_KEY,MotionEntity),Nt.keyEntities)}var jt=Dt.keyEntities||At.keyEntities;if(Ft("expandedKeys")||Bt&&Ft("autoExpandParent"))Dt.expandedKeys=$t.autoExpandParent||!Bt&&$t.defaultExpandParent?conductExpandParent($t.expandedKeys,jt):$t.expandedKeys;else if(!Bt&&$t.defaultExpandAll){var zt=_objectSpread2({},jt);delete zt[MOTION_KEY],Dt.expandedKeys=Object.keys(zt).map(function(pr){return zt[pr].key})}else!Bt&&$t.defaultExpandedKeys&&(Dt.expandedKeys=$t.autoExpandParent||$t.defaultExpandParent?conductExpandParent($t.defaultExpandedKeys,jt):$t.defaultExpandedKeys);if(Dt.expandedKeys||delete Dt.expandedKeys,kt||Dt.expandedKeys){var Vt=flattenTreeData(kt||At.treeData,Dt.expandedKeys||At.expandedKeys,Mt);Dt.flattenNodes=Vt}if($t.selectable&&(Ft("selectedKeys")?Dt.selectedKeys=calcSelectedKeys($t.selectedKeys,$t):!Bt&&$t.defaultSelectedKeys&&(Dt.selectedKeys=calcSelectedKeys($t.defaultSelectedKeys,$t))),$t.checkable){var Kt;if(Ft("checkedKeys")?Kt=parseCheckedKeys($t.checkedKeys)||{}:!Bt&&$t.defaultCheckedKeys?Kt=parseCheckedKeys($t.defaultCheckedKeys)||{}:kt&&(Kt=parseCheckedKeys($t.checkedKeys)||{checkedKeys:At.checkedKeys,halfCheckedKeys:At.halfCheckedKeys}),Kt){var Xt=Kt,Qt=Xt.checkedKeys,Zt=Qt===void 0?[]:Qt,dr=Xt.halfCheckedKeys,cr=dr===void 0?[]:dr;if(!$t.checkStrictly){var Er=conductCheck(Zt,!0,jt);Zt=Er.checkedKeys,cr=Er.halfCheckedKeys}Dt.checkedKeys=Zt,Dt.halfCheckedKeys=cr}}return Ft("loadedKeys")&&(Dt.loadedKeys=$t.loadedKeys),Dt}}]),yt}(reactExports.Component);_defineProperty$1(Tree$2,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:DropIndicator,allowDrop:function ht(){return!0},expandAction:!1});_defineProperty$1(Tree$2,"TreeNode",ContextTreeNode);var FileOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},FileOutlined=function ht(Et,yt){return reactExports.createElement(Icon$1,_extends$5({},Et,{ref:yt,icon:FileOutlined$1}))},RefIcon$8=reactExports.forwardRef(FileOutlined),FolderOpenOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},FolderOpenOutlined=function ht(Et,yt){return reactExports.createElement(Icon$1,_extends$5({},Et,{ref:yt,icon:FolderOpenOutlined$1}))},RefIcon$7=reactExports.forwardRef(FolderOpenOutlined),FolderOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},FolderOutlined=function ht(Et,yt){return reactExports.createElement(Icon$1,_extends$5({},Et,{ref:yt,icon:FolderOutlined$1}))},RefIcon$6=reactExports.forwardRef(FolderOutlined),HolderOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},HolderOutlined=function ht(Et,yt){return reactExports.createElement(Icon$1,_extends$5({},Et,{ref:yt,icon:HolderOutlined$1}))},RefIcon$5=reactExports.forwardRef(HolderOutlined);const treeNodeFX=new Keyframe("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),getSwitchStyle=(ht,Et)=>({[`.${ht}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${Et.motionDurationSlow}`}}}),getDropIndicatorStyle=(ht,Et)=>({[`.${ht}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:Et.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${unit(Et.lineWidthBold)} solid ${Et.colorPrimary}`,borderRadius:"50%",content:'""'}}}),genBaseStyle=(ht,Et)=>{const{treeCls:yt,treeNodeCls:Ct,treeNodePadding:$t,titleHeight:At,nodeSelectedBg:Bt,nodeHoverBg:Dt}=Et,Ft=Et.paddingXS;return{[yt]:Object.assign(Object.assign({},resetComponent(Et)),{background:Et.colorBgContainer,borderRadius:Et.borderRadius,transition:`background-color ${Et.motionDurationSlow}`,[`&${yt}-rtl`]:{[`${yt}-switcher`]:{"&_close":{[`${yt}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${yt}-active-focused)`]:Object.assign({},genFocusOutline(Et)),[`${yt}-list-holder-inner`]:{alignItems:"flex-start"},[`&${yt}-block-node`]:{[`${yt}-list-holder-inner`]:{alignItems:"stretch",[`${yt}-node-content-wrapper`]:{flex:"auto"},[`${Ct}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:$t,insetInlineStart:0,border:`1px solid ${Et.colorPrimary}`,opacity:0,animationName:treeNodeFX,animationDuration:Et.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${Ct}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${unit($t)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${yt}-node-content-wrapper`]:{color:Et.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${yt}-node-content-wrapper`]:{background:Et.controlItemBgHover},[`&:not(${Ct}-disabled).filter-node ${yt}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{cursor:"grab",[`${yt}-draggable-icon`]:{flexShrink:0,width:At,lineHeight:`${unit(At)}`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${Et.motionDurationSlow}`,[`${Ct}:hover &`]:{opacity:.45}},[`&${Ct}-disabled`]:{[`${yt}-draggable-icon`]:{visibility:"hidden"}}}},[`${yt}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:At}},[`${yt}-draggable-icon`]:{visibility:"hidden"},[`${yt}-switcher`]:Object.assign(Object.assign({},getSwitchStyle(ht,Et)),{position:"relative",flex:"none",alignSelf:"stretch",width:At,margin:0,lineHeight:`${unit(At)}`,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${Et.motionDurationSlow}`,borderRadius:Et.borderRadius,"&-noop":{cursor:"unset"},[`&:not(${yt}-switcher-noop):hover`]:{backgroundColor:Et.colorBgTextHover},"&_close":{[`${yt}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:Et.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Et.calc(At).div(2).equal(),bottom:Et.calc($t).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${Et.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:Et.calc(Et.calc(At).div(2).equal()).mul(.8).equal(),height:Et.calc(At).div(2).equal(),borderBottom:`1px solid ${Et.colorBorder}`,content:'""'}}}),[`${yt}-checkbox`]:{top:"initial",marginInlineEnd:Ft,alignSelf:"flex-start",marginTop:Et.marginXXS},[`${yt}-node-content-wrapper, ${yt}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:At,margin:0,padding:`0 ${unit(Et.calc(Et.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:`${unit(At)}`,background:"transparent",borderRadius:Et.borderRadius,cursor:"pointer",transition:`all ${Et.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:Dt},[`&${yt}-node-selected`]:{backgroundColor:Bt},[`${yt}-iconEle`]:{display:"inline-block",width:At,height:At,lineHeight:`${unit(At)}`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${yt}-unselectable ${yt}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${yt}-node-content-wrapper`]:Object.assign({lineHeight:`${unit(At)}`,userSelect:"none"},getDropIndicatorStyle(ht,Et)),[`${Ct}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${Et.colorPrimary}`}},"&-show-line":{[`${yt}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Et.calc(At).div(2).equal(),bottom:Et.calc($t).mul(-1).equal(),borderInlineEnd:`1px solid ${Et.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${yt}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${Ct}-leaf-last`]:{[`${yt}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${unit(Et.calc(At).div(2).equal())} !important`}}}}})}},genDirectoryStyle=ht=>{const{treeCls:Et,treeNodeCls:yt,treeNodePadding:Ct,directoryNodeSelectedBg:$t,directoryNodeSelectedColor:At}=ht;return{[`${Et}${Et}-directory`]:{[yt]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:Ct,insetInlineStart:0,transition:`background-color ${ht.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:ht.controlItemBgHover}},"> *":{zIndex:1},[`${Et}-switcher`]:{transition:`color ${ht.motionDurationMid}`},[`${Et}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${Et}-node-selected`]:{color:At,background:"transparent"}},"&-selected":{"\n            &:hover::before,\n            &::before\n          ":{background:$t},[`${Et}-switcher`]:{color:At},[`${Et}-node-content-wrapper`]:{color:At,background:"transparent"}}}}}},genTreeStyle=(ht,Et)=>{const yt=`.${ht}`,Ct=`${yt}-treenode`,$t=Et.calc(Et.paddingXS).div(2).equal(),At=merge$2(Et,{treeCls:yt,treeNodeCls:Ct,treeNodePadding:$t});return[genBaseStyle(ht,At),genDirectoryStyle(At)]},initComponentToken=ht=>{const{controlHeightSM:Et}=ht;return{titleHeight:Et,nodeHoverBg:ht.controlItemBgHover,nodeSelectedBg:ht.controlItemBgActive}},prepareComponentToken$1=ht=>{const{colorTextLightSolid:Et,colorPrimary:yt}=ht;return Object.assign(Object.assign({},initComponentToken(ht)),{directoryNodeSelectedColor:Et,directoryNodeSelectedBg:yt})},useStyle$1=genStyleHooks("Tree",(ht,Et)=>{let{prefixCls:yt}=Et;return[{[ht.componentCls]:getStyle(`${yt}-checkbox`,ht)},genTreeStyle(yt,ht),genCollapseMotion(ht)]},prepareComponentToken$1),offset=4;function dropIndicatorRender(ht){const{dropPosition:Et,dropLevelOffset:yt,prefixCls:Ct,indent:$t,direction:At="ltr"}=ht,Bt=At==="ltr"?"left":"right",Dt=At==="ltr"?"right":"left",Ft={[Bt]:-yt*$t+offset,[Dt]:0};switch(Et){case-1:Ft.top=-3;break;case 1:Ft.bottom=-3;break;default:Ft.bottom=-3,Ft[Bt]=$t+offset;break}return React$8.createElement("div",{style:Ft,className:`${Ct}-drop-indicator`})}var CaretDownFilled$1={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},CaretDownFilled=function ht(Et,yt){return reactExports.createElement(Icon$1,_extends$5({},Et,{ref:yt,icon:CaretDownFilled$1}))},RefIcon$4=reactExports.forwardRef(CaretDownFilled),MinusSquareOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},MinusSquareOutlined=function ht(Et,yt){return reactExports.createElement(Icon$1,_extends$5({},Et,{ref:yt,icon:MinusSquareOutlined$1}))},RefIcon$3=reactExports.forwardRef(MinusSquareOutlined),PlusSquareOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},PlusSquareOutlined=function ht(Et,yt){return reactExports.createElement(Icon$1,_extends$5({},Et,{ref:yt,icon:PlusSquareOutlined$1}))},RefIcon$2=reactExports.forwardRef(PlusSquareOutlined);const SwitcherIconCom=ht=>{const{prefixCls:Et,switcherIcon:yt,treeNodeProps:Ct,showLine:$t}=ht,{isLeaf:At,expanded:Bt,loading:Dt}=Ct;if(Dt)return reactExports.createElement(RefIcon$o,{className:`${Et}-switcher-loading-icon`});let Ft;if($t&&typeof $t=="object"&&(Ft=$t.showLeafIcon),At){if(!$t)return null;if(typeof Ft!="boolean"&&Ft){const Nt=typeof Ft=="function"?Ft(Ct):Ft,jt=`${Et}-switcher-line-custom-icon`;return reactExports.isValidElement(Nt)?cloneElement(Nt,{className:cls(Nt.props.className||"",jt)}):Nt}return Ft?reactExports.createElement(RefIcon$8,{className:`${Et}-switcher-line-icon`}):reactExports.createElement("span",{className:`${Et}-switcher-leaf-line`})}const kt=`${Et}-switcher-icon`,Mt=typeof yt=="function"?yt(Ct):yt;return reactExports.isValidElement(Mt)?cloneElement(Mt,{className:cls(Mt.props.className||"",kt)}):Mt!==void 0?Mt:$t?Bt?reactExports.createElement(RefIcon$3,{className:`${Et}-switcher-line-icon`}):reactExports.createElement(RefIcon$2,{className:`${Et}-switcher-line-icon`}):reactExports.createElement(RefIcon$4,{className:kt})},Tree$1=React$8.forwardRef((ht,Et)=>{var yt;const{getPrefixCls:Ct,direction:$t,virtual:At,tree:Bt}=React$8.useContext(ConfigContext$1),{prefixCls:Dt,className:Ft,showIcon:kt=!1,showLine:Mt,switcherIcon:Nt,blockNode:jt=!1,children:zt,checkable:Vt=!1,selectable:Kt=!0,draggable:Xt,motion:Qt,style:Zt}=ht,dr=Ct("tree",Dt),cr=Ct(),Er=Qt??Object.assign(Object.assign({},initCollapseMotion(cr)),{motionAppear:!1}),pr=Object.assign(Object.assign({},ht),{checkable:Vt,selectable:Kt,showIcon:kt,motion:Er,blockNode:jt,showLine:!!Mt,dropIndicatorRender}),[gr,vr,yr]=useStyle$1(dr),[,xr]=useToken$1(),rr=xr.paddingXS/2+(((yt=xr.Tree)===null||yt===void 0?void 0:yt.titleHeight)||xr.controlHeightSM),Lt=React$8.useMemo(()=>{if(!Xt)return!1;let Wt={};switch(typeof Xt){case"function":Wt.nodeDraggable=Xt;break;case"object":Wt=Object.assign({},Xt);break}return Wt.icon!==!1&&(Wt.icon=Wt.icon||React$8.createElement(RefIcon$5,null)),Wt},[Xt]),Ht=Wt=>React$8.createElement(SwitcherIconCom,{prefixCls:dr,switcherIcon:Nt,treeNodeProps:Wt,showLine:Mt});return gr(React$8.createElement(Tree$2,Object.assign({itemHeight:rr,ref:Et,virtual:At},pr,{style:Object.assign(Object.assign({},Bt==null?void 0:Bt.style),Zt),prefixCls:dr,className:cls({[`${dr}-icon-hide`]:!kt,[`${dr}-block-node`]:jt,[`${dr}-unselectable`]:!Kt,[`${dr}-rtl`]:$t==="rtl"},Bt==null?void 0:Bt.className,Ft,vr,yr),direction:$t,checkable:Vt&&React$8.createElement("span",{className:`${dr}-checkbox-inner`}),selectable:Kt,switcherIcon:Ht,draggable:Lt}),zt))}),RECORD_NONE=0,RECORD_START=1,RECORD_END=2;function traverseNodesKey(ht,Et,yt){const{key:Ct,children:$t}=yt;function At(Bt){const Dt=Bt[Ct],Ft=Bt[$t];Et(Dt,Bt)!==!1&&traverseNodesKey(Ft||[],Et,yt)}ht.forEach(At)}function calcRangeKeys(ht){let{treeData:Et,expandedKeys:yt,startKey:Ct,endKey:$t,fieldNames:At}=ht;const Bt=[];let Dt=RECORD_NONE;if(Ct&&Ct===$t)return[Ct];if(!Ct||!$t)return[];function Ft(kt){return kt===Ct||kt===$t}return traverseNodesKey(Et,kt=>{if(Dt===RECORD_END)return!1;if(Ft(kt)){if(Bt.push(kt),Dt===RECORD_NONE)Dt=RECORD_START;else if(Dt===RECORD_START)return Dt=RECORD_END,!1}else Dt===RECORD_START&&Bt.push(kt);return yt.includes(kt)},fillFieldNames(At)),Bt}function convertDirectoryKeysToNodes(ht,Et,yt){const Ct=_toConsumableArray(Et),$t=[];return traverseNodesKey(ht,(At,Bt)=>{const Dt=Ct.indexOf(At);return Dt!==-1&&($t.push(Bt),Ct.splice(Dt,1)),!!Ct.length},fillFieldNames(yt)),$t}var __rest$1=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};function getIcon(ht){const{isLeaf:Et,expanded:yt}=ht;return Et?reactExports.createElement(RefIcon$8,null):yt?reactExports.createElement(RefIcon$7,null):reactExports.createElement(RefIcon$6,null)}function getTreeData(ht){let{treeData:Et,children:yt}=ht;return Et||convertTreeToData(yt)}const DirectoryTree=(ht,Et)=>{var{defaultExpandAll:yt,defaultExpandParent:Ct,defaultExpandedKeys:$t}=ht,At=__rest$1(ht,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Bt=reactExports.useRef(),Dt=reactExports.useRef(),Ft=()=>{const{keyEntities:vr}=convertDataToEntities(getTreeData(At));let yr;return yt?yr=Object.keys(vr):Ct?yr=conductExpandParent(At.expandedKeys||$t||[],vr):yr=At.expandedKeys||$t||[],yr},[kt,Mt]=reactExports.useState(At.selectedKeys||At.defaultSelectedKeys||[]),[Nt,jt]=reactExports.useState(()=>Ft());reactExports.useEffect(()=>{"selectedKeys"in At&&Mt(At.selectedKeys)},[At.selectedKeys]),reactExports.useEffect(()=>{"expandedKeys"in At&&jt(At.expandedKeys)},[At.expandedKeys]);const zt=(vr,yr)=>{var xr;return"expandedKeys"in At||jt(vr),(xr=At.onExpand)===null||xr===void 0?void 0:xr.call(At,vr,yr)},Vt=(vr,yr)=>{var xr;const{multiple:rr,fieldNames:Lt}=At,{node:Ht,nativeEvent:Wt}=yr,{key:Gt=""}=Ht,Yt=getTreeData(At),er=Object.assign(Object.assign({},yr),{selected:!0}),lr=(Wt==null?void 0:Wt.ctrlKey)||(Wt==null?void 0:Wt.metaKey),Jt=Wt==null?void 0:Wt.shiftKey;let Ut;rr&&lr?(Ut=vr,Bt.current=Gt,Dt.current=Ut,er.selectedNodes=convertDirectoryKeysToNodes(Yt,Ut,Lt)):rr&&Jt?(Ut=Array.from(new Set([].concat(_toConsumableArray(Dt.current||[]),_toConsumableArray(calcRangeKeys({treeData:Yt,expandedKeys:Nt,startKey:Gt,endKey:Bt.current,fieldNames:Lt}))))),er.selectedNodes=convertDirectoryKeysToNodes(Yt,Ut,Lt)):(Ut=[Gt],Bt.current=Gt,Dt.current=Ut,er.selectedNodes=convertDirectoryKeysToNodes(Yt,Ut,Lt)),(xr=At.onSelect)===null||xr===void 0||xr.call(At,Ut,er),"selectedKeys"in At||Mt(Ut)},{getPrefixCls:Kt,direction:Xt}=reactExports.useContext(ConfigContext$1),{prefixCls:Qt,className:Zt,showIcon:dr=!0,expandAction:cr="click"}=At,Er=__rest$1(At,["prefixCls","className","showIcon","expandAction"]),pr=Kt("tree",Qt),gr=cls(`${pr}-directory`,{[`${pr}-directory-rtl`]:Xt==="rtl"},Zt);return reactExports.createElement(Tree$1,Object.assign({icon:getIcon,ref:Et,blockNode:!0},Er,{showIcon:dr,expandAction:cr,prefixCls:pr,className:gr,expandedKeys:Nt,selectedKeys:kt,onSelect:Vt,onExpand:zt}))},ForwardDirectoryTree=reactExports.forwardRef(DirectoryTree),Tree=Tree$1;Tree.DirectoryTree=ForwardDirectoryTree;Tree.TreeNode=ContextTreeNode;function FilterSearch(ht){let{value:Et,onChange:yt,filterSearch:Ct,tablePrefixCls:$t,locale:At}=ht;return Ct?reactExports.createElement("div",{className:`${$t}-filter-dropdown-search`},reactExports.createElement(Input,{prefix:reactExports.createElement(RefIcon$k,null),placeholder:At.filterSearchPlaceholder,onChange:yt,value:Et,htmlSize:1,className:`${$t}-filter-dropdown-search-input`})):null}const onKeyDown=ht=>{const{keyCode:Et}=ht;Et===KeyCode.ENTER&&ht.stopPropagation()},FilterDropdownMenuWrapper=reactExports.forwardRef((ht,Et)=>reactExports.createElement("div",{className:ht.className,onClick:yt=>yt.stopPropagation(),onKeyDown,ref:Et},ht.children));function flattenKeys(ht){let Et=[];return(ht||[]).forEach(yt=>{let{value:Ct,children:$t}=yt;Et.push(Ct),$t&&(Et=[].concat(_toConsumableArray(Et),_toConsumableArray(flattenKeys($t))))}),Et}function hasSubMenu(ht){return ht.some(Et=>{let{children:yt}=Et;return yt})}function searchValueMatched(ht,Et){return typeof Et=="string"||typeof Et=="number"?Et==null?void 0:Et.toString().toLowerCase().includes(ht.trim().toLowerCase()):!1}function renderFilterItems(ht){let{filters:Et,prefixCls:yt,filteredKeys:Ct,filterMultiple:$t,searchValue:At,filterSearch:Bt}=ht;return Et.map((Dt,Ft)=>{const kt=String(Dt.value);if(Dt.children)return{key:kt||Ft,label:Dt.text,popupClassName:`${yt}-dropdown-submenu`,children:renderFilterItems({filters:Dt.children,prefixCls:yt,filteredKeys:Ct,filterMultiple:$t,searchValue:At,filterSearch:Bt})};const Mt=$t?Checkbox:Radio,Nt={key:Dt.value!==void 0?kt:Ft,label:reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(Mt,{checked:Ct.includes(kt)}),reactExports.createElement("span",null,Dt.text))};return At.trim()?typeof Bt=="function"?Bt(At,Dt)?Nt:null:searchValueMatched(At,Dt.text)?Nt:null:Nt})}function wrapStringListType(ht){return ht||[]}function FilterDropdown(ht){var Et,yt;const{tablePrefixCls:Ct,prefixCls:$t,column:At,dropdownPrefixCls:Bt,columnKey:Dt,filterOnClose:Ft,filterMultiple:kt,filterMode:Mt="menu",filterSearch:Nt=!1,filterState:jt,triggerFilter:zt,locale:Vt,children:Kt,getPopupContainer:Xt,rootClassName:Qt}=ht,{filterDropdownOpen:Zt,onFilterDropdownOpenChange:dr,filterResetToDefaultFilteredValue:cr,defaultFilteredValue:Er,filterDropdownVisible:pr,onFilterDropdownVisibleChange:gr}=At,[vr,yr]=reactExports.useState(!1),xr=!!(jt&&(!((Et=jt.filteredKeys)===null||Et===void 0)&&Et.length||jt.forceFiltered)),rr=Wr=>{yr(Wr),dr==null||dr(Wr),gr==null||gr(Wr)},Lt=(yt=Zt??pr)!==null&&yt!==void 0?yt:vr,Ht=jt==null?void 0:jt.filteredKeys,[Wt,Gt]=useSyncState(wrapStringListType(Ht)),Yt=Wr=>{let{selectedKeys:Ur}=Wr;Gt(Ur)},er=(Wr,Ur)=>{let{node:jr,checked:Kr}=Ur;Yt(kt?{selectedKeys:Wr}:{selectedKeys:Kr&&jr.key?[jr.key]:[]})};reactExports.useEffect(()=>{vr&&Yt({selectedKeys:wrapStringListType(Ht)})},[Ht]);const[lr,Jt]=reactExports.useState([]),Ut=Wr=>{Jt(Wr)},[ir,Cr]=reactExports.useState(""),_r=Wr=>{const{value:Ur}=Wr.target;Cr(Ur)};reactExports.useEffect(()=>{vr||Cr("")},[vr]);const $r=Wr=>{const Ur=Wr!=null&&Wr.length?Wr:null;if(Ur===null&&(!jt||!jt.filteredKeys)||isEqual$3(Ur,jt==null?void 0:jt.filteredKeys,!0))return null;zt({column:At,key:Dt,filteredKeys:Ur})},Tr=()=>{rr(!1),$r(Wt())},Dr=function(){let{confirm:Wr,closeDropdown:Ur}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Wr&&$r([]),Ur&&rr(!1),Cr(""),Gt(cr?(Er||[]).map(jr=>String(jr)):[])},Ar=function(){let{closeDropdown:Wr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Wr&&rr(!1),$r(Wt())},Fr=(Wr,Ur)=>{Ur.source==="trigger"&&(Wr&&Ht!==void 0&&Gt(wrapStringListType(Ht)),rr(Wr),!Wr&&!At.filterDropdown&&Ft&&Tr())},Rr=cls({[`${Bt}-menu-without-submenu`]:!hasSubMenu(At.filters||[])}),wr=Wr=>{if(Wr.target.checked){const Ur=flattenKeys(At==null?void 0:At.filters).map(jr=>String(jr));Gt(Ur)}else Gt([])},Sr=Wr=>{let{filters:Ur}=Wr;return(Ur||[]).map((jr,Kr)=>{const qr=String(jr.value),Zr={title:jr.text,key:jr.value!==void 0?qr:String(Kr)};return jr.children&&(Zr.children=Sr({filters:jr.children})),Zr})},Br=Wr=>{var Ur;return Object.assign(Object.assign({},Wr),{text:Wr.title,value:Wr.key,children:((Ur=Wr.children)===null||Ur===void 0?void 0:Ur.map(jr=>Br(jr)))||[]})};let Or;if(typeof At.filterDropdown=="function")Or=At.filterDropdown({prefixCls:`${Bt}-custom`,setSelectedKeys:Wr=>Yt({selectedKeys:Wr}),selectedKeys:Wt(),confirm:Ar,clearFilters:Dr,filters:At.filters,visible:Lt,close:()=>{rr(!1)}});else if(At.filterDropdown)Or=At.filterDropdown;else{const Wr=Wt()||[],Ur=()=>{const Kr=reactExports.createElement(Empty$3,{image:Empty$3.PRESENTED_IMAGE_SIMPLE,description:Vt.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}});if((At.filters||[]).length===0)return Kr;if(Mt==="tree")return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(FilterSearch,{filterSearch:Nt,value:ir,onChange:_r,tablePrefixCls:Ct,locale:Vt}),reactExports.createElement("div",{className:`${Ct}-filter-dropdown-tree`},kt?reactExports.createElement(Checkbox,{checked:Wr.length===flattenKeys(At.filters).length,indeterminate:Wr.length>0&&Wr.length<flattenKeys(At.filters).length,className:`${Ct}-filter-dropdown-checkall`,onChange:wr},Vt.filterCheckall):null,reactExports.createElement(Tree,{checkable:!0,selectable:!1,blockNode:!0,multiple:kt,checkStrictly:!kt,className:`${Bt}-menu`,onCheck:er,checkedKeys:Wr,selectedKeys:Wr,showIcon:!1,treeData:Sr({filters:At.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:ir.trim()?dn=>typeof Nt=="function"?Nt(ir,Br(dn)):searchValueMatched(ir,dn.title):void 0})));const qr=renderFilterItems({filters:At.filters||[],filterSearch:Nt,prefixCls:$t,filteredKeys:Wt(),filterMultiple:kt,searchValue:ir}),Zr=qr.every(dn=>dn===null);return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(FilterSearch,{filterSearch:Nt,value:ir,onChange:_r,tablePrefixCls:Ct,locale:Vt}),Zr?Kr:reactExports.createElement(Menu,{selectable:!0,multiple:kt,prefixCls:`${Bt}-menu`,className:Rr,onSelect:Yt,onDeselect:Yt,selectedKeys:Wr,getPopupContainer:Xt,openKeys:lr,onOpenChange:Ut,items:qr}))},jr=()=>cr?isEqual$3((Er||[]).map(Kr=>String(Kr)),Wr,!0):Wr.length===0;Or=reactExports.createElement(reactExports.Fragment,null,Ur(),reactExports.createElement("div",{className:`${$t}-dropdown-btns`},reactExports.createElement(Button$1,{type:"link",size:"small",disabled:jr(),onClick:()=>Dr()},Vt.filterReset),reactExports.createElement(Button$1,{type:"primary",size:"small",onClick:Tr},Vt.filterConfirm)))}At.filterDropdown&&(Or=reactExports.createElement(OverrideProvider,{selectable:void 0},Or));const Pr=()=>reactExports.createElement(FilterDropdownMenuWrapper,{className:`${$t}-dropdown`},Or);let Nr;typeof At.filterIcon=="function"?Nr=At.filterIcon(xr):At.filterIcon?Nr=At.filterIcon:Nr=reactExports.createElement(RefIcon$9,null);const{direction:Lr}=reactExports.useContext(ConfigContext$1);return reactExports.createElement("div",{className:`${$t}-column`},reactExports.createElement("span",{className:`${Ct}-column-title`},Kt),reactExports.createElement(Dropdown,{dropdownRender:Pr,trigger:["click"],open:Lt,onOpenChange:Fr,getPopupContainer:Xt,placement:Lr==="rtl"?"bottomLeft":"bottomRight",rootClassName:Qt},reactExports.createElement("span",{role:"button",tabIndex:-1,className:cls(`${$t}-trigger`,{active:xr}),onClick:Wr=>{Wr.stopPropagation()}},Nr)))}function collectFilterStates(ht,Et,yt){let Ct=[];return(ht||[]).forEach(($t,At)=>{var Bt;const Dt=getColumnPos(At,yt);if($t.filters||"filterDropdown"in $t||"onFilter"in $t)if("filteredValue"in $t){let Ft=$t.filteredValue;"filterDropdown"in $t||(Ft=(Bt=Ft==null?void 0:Ft.map(String))!==null&&Bt!==void 0?Bt:Ft),Ct.push({column:$t,key:getColumnKey($t,Dt),filteredKeys:Ft,forceFiltered:$t.filtered})}else Ct.push({column:$t,key:getColumnKey($t,Dt),filteredKeys:Et&&$t.defaultFilteredValue?$t.defaultFilteredValue:void 0,forceFiltered:$t.filtered});"children"in $t&&(Ct=[].concat(_toConsumableArray(Ct),_toConsumableArray(collectFilterStates($t.children,Et,Dt))))}),Ct}function injectFilter(ht,Et,yt,Ct,$t,At,Bt,Dt,Ft){return yt.map((kt,Mt)=>{const Nt=getColumnPos(Mt,Dt),{filterOnClose:jt=!0,filterMultiple:zt=!0,filterMode:Vt,filterSearch:Kt}=kt;let Xt=kt;if(Xt.filters||Xt.filterDropdown){const Qt=getColumnKey(Xt,Nt),Zt=Ct.find(dr=>{let{key:cr}=dr;return Qt===cr});Xt=Object.assign(Object.assign({},Xt),{title:dr=>reactExports.createElement(FilterDropdown,{tablePrefixCls:ht,prefixCls:`${ht}-filter`,dropdownPrefixCls:Et,column:Xt,columnKey:Qt,filterState:Zt,filterOnClose:jt,filterMultiple:zt,filterMode:Vt,filterSearch:Kt,triggerFilter:At,locale:$t,getPopupContainer:Bt,rootClassName:Ft},renderColumnTitle(kt.title,dr))})}return"children"in Xt&&(Xt=Object.assign(Object.assign({},Xt),{children:injectFilter(ht,Et,Xt.children,Ct,$t,At,Bt,Nt,Ft)})),Xt})}function generateFilterInfo(ht){const Et={};return ht.forEach(yt=>{let{key:Ct,filteredKeys:$t,column:At}=yt;const Bt=Ct,{filters:Dt,filterDropdown:Ft}=At;if(Ft)Et[Bt]=$t||null;else if(Array.isArray($t)){const kt=flattenKeys(Dt);Et[Bt]=kt.filter(Mt=>$t.includes(String(Mt)))}else Et[Bt]=null}),Et}function getFilterData(ht,Et,yt){return Et.reduce((Ct,$t)=>{const{column:{onFilter:At,filters:Bt},filteredKeys:Dt}=$t;return At&&Dt&&Dt.length?Ct.map(Ft=>Object.assign({},Ft)).filter(Ft=>Dt.some(kt=>{const Mt=flattenKeys(Bt),Nt=Mt.findIndex(zt=>String(zt)===String(kt)),jt=Nt!==-1?Mt[Nt]:kt;return Ft[yt]&&(Ft[yt]=getFilterData(Ft[yt],Et,yt)),At(jt,Ft)})):Ct},ht)}const getMergedColumns=ht=>ht.flatMap(Et=>"children"in Et?[Et].concat(_toConsumableArray(getMergedColumns(Et.children||[]))):[Et]);function useFilter(ht){let{prefixCls:Et,dropdownPrefixCls:yt,mergedColumns:Ct,onFilterChange:$t,getPopupContainer:At,locale:Bt,rootClassName:Dt}=ht;devUseWarning();const Ft=reactExports.useMemo(()=>getMergedColumns(Ct||[]),[Ct]),[kt,Mt]=reactExports.useState(()=>collectFilterStates(Ft,!0)),Nt=reactExports.useMemo(()=>{const Kt=collectFilterStates(Ft,!1);if(Kt.length===0)return Kt;let Xt=!0;if(Kt.forEach(Qt=>{let{filteredKeys:Zt}=Qt;Zt!==void 0&&(Xt=!1)}),Xt){const Qt=(Ft||[]).map((Zt,dr)=>getColumnKey(Zt,getColumnPos(dr)));return kt.filter(Zt=>{let{key:dr}=Zt;return Qt.includes(dr)}).map(Zt=>{const dr=Ft[Qt.findIndex(cr=>cr===Zt.key)];return Object.assign(Object.assign({},Zt),{column:Object.assign(Object.assign({},Zt.column),dr),forceFiltered:dr.filtered})})}return Kt},[Ft,kt]),jt=reactExports.useMemo(()=>generateFilterInfo(Nt),[Nt]),zt=Kt=>{const Xt=Nt.filter(Qt=>{let{key:Zt}=Qt;return Zt!==Kt.key});Xt.push(Kt),Mt(Xt),$t(generateFilterInfo(Xt),Xt)};return[Kt=>injectFilter(Et,yt,Kt,Nt,Bt,zt,At,void 0,Dt),Nt,jt]}function useLazyKVMap(ht,Et,yt){const Ct=reactExports.useRef({});function $t(At){if(!Ct.current||Ct.current.data!==ht||Ct.current.childrenColumnName!==Et||Ct.current.getRowKey!==yt){let Dt=function(Ft){Ft.forEach((kt,Mt)=>{const Nt=yt(kt,Mt);Bt.set(Nt,kt),kt&&typeof kt=="object"&&Et in kt&&Dt(kt[Et]||[])})};const Bt=new Map;Dt(ht),Ct.current={data:ht,childrenColumnName:Et,kvMap:Bt,getRowKey:yt}}return Ct.current.kvMap.get(At)}return[$t]}var __rest=function(ht,Et){var yt={};for(var Ct in ht)Object.prototype.hasOwnProperty.call(ht,Ct)&&Et.indexOf(Ct)<0&&(yt[Ct]=ht[Ct]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(ht);$t<Ct.length;$t++)Et.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ct[$t])&&(yt[Ct[$t]]=ht[Ct[$t]]);return yt};const DEFAULT_PAGE_SIZE=10;function getPaginationParam(ht,Et){const yt={current:ht.current,pageSize:ht.pageSize};return Object.keys(Et&&typeof Et=="object"?Et:{}).forEach($t=>{const At=ht[$t];typeof At!="function"&&(yt[$t]=At)}),yt}function usePagination(ht,Et,yt){const Ct=yt&&typeof yt=="object"?yt:{},{total:$t=0}=Ct,At=__rest(Ct,["total"]),[Bt,Dt]=reactExports.useState(()=>({current:"defaultCurrent"in At?At.defaultCurrent:1,pageSize:"defaultPageSize"in At?At.defaultPageSize:DEFAULT_PAGE_SIZE})),Ft=extendsObject(Bt,At,{total:$t>0?$t:ht}),kt=Math.ceil(($t||ht)/Ft.pageSize);Ft.current>kt&&(Ft.current=kt||1);const Mt=(jt,zt)=>{Dt({current:jt??1,pageSize:zt||Ft.pageSize})},Nt=(jt,zt)=>{var Vt;yt&&((Vt=yt.onChange)===null||Vt===void 0||Vt.call(yt,jt,zt)),Mt(jt,zt),Et(jt,zt||(Ft==null?void 0:Ft.pageSize))};return yt===!1?[{},()=>{}]:[Object.assign(Object.assign({},Ft),{onChange:Nt}),Mt]}var CaretDownOutlined$1={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},CaretDownOutlined=function ht(Et,yt){return reactExports.createElement(Icon$1,_extends$5({},Et,{ref:yt,icon:CaretDownOutlined$1}))},RefIcon$1=reactExports.forwardRef(CaretDownOutlined),CaretUpOutlined$1={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},CaretUpOutlined=function ht(Et,yt){return reactExports.createElement(Icon$1,_extends$5({},Et,{ref:yt,icon:CaretUpOutlined$1}))},RefIcon=reactExports.forwardRef(CaretUpOutlined);const ASCEND="ascend",DESCEND="descend";function getMultiplePriority(ht){return typeof ht.sorter=="object"&&typeof ht.sorter.multiple=="number"?ht.sorter.multiple:!1}function getSortFunction(ht){return typeof ht=="function"?ht:ht&&typeof ht=="object"&&ht.compare?ht.compare:!1}function nextSortDirection(ht,Et){return Et?ht[ht.indexOf(Et)+1]:ht[0]}function collectSortStates(ht,Et,yt){let Ct=[];function $t(At,Bt){Ct.push({column:At,key:getColumnKey(At,Bt),multiplePriority:getMultiplePriority(At),sortOrder:At.sortOrder})}return(ht||[]).forEach((At,Bt)=>{const Dt=getColumnPos(Bt,yt);At.children?("sortOrder"in At&&$t(At,Dt),Ct=[].concat(_toConsumableArray(Ct),_toConsumableArray(collectSortStates(At.children,Et,Dt)))):At.sorter&&("sortOrder"in At?$t(At,Dt):Et&&At.defaultSortOrder&&Ct.push({column:At,key:getColumnKey(At,Dt),multiplePriority:getMultiplePriority(At),sortOrder:At.defaultSortOrder}))}),Ct}function injectSorter(ht,Et,yt,Ct,$t,At,Bt,Dt){return(Et||[]).map((Ft,kt)=>{const Mt=getColumnPos(kt,Dt);let Nt=Ft;if(Nt.sorter){const jt=Nt.sortDirections||$t,zt=Nt.showSorterTooltip===void 0?Bt:Nt.showSorterTooltip,Vt=getColumnKey(Nt,Mt),Kt=yt.find(vr=>{let{key:yr}=vr;return yr===Vt}),Xt=Kt?Kt.sortOrder:null,Qt=nextSortDirection(jt,Xt);let Zt;if(Ft.sortIcon)Zt=Ft.sortIcon({sortOrder:Xt});else{const vr=jt.includes(ASCEND)&&reactExports.createElement(RefIcon,{className:cls(`${ht}-column-sorter-up`,{active:Xt===ASCEND})}),yr=jt.includes(DESCEND)&&reactExports.createElement(RefIcon$1,{className:cls(`${ht}-column-sorter-down`,{active:Xt===DESCEND})});Zt=reactExports.createElement("span",{className:cls(`${ht}-column-sorter`,{[`${ht}-column-sorter-full`]:!!(vr&&yr)})},reactExports.createElement("span",{className:`${ht}-column-sorter-inner`,"aria-hidden":"true"},vr,yr))}const{cancelSort:dr,triggerAsc:cr,triggerDesc:Er}=At||{};let pr=dr;Qt===DESCEND?pr=Er:Qt===ASCEND&&(pr=cr);const gr=typeof zt=="object"?Object.assign({title:pr},zt):{title:pr};Nt=Object.assign(Object.assign({},Nt),{className:cls(Nt.className,{[`${ht}-column-sort`]:Xt}),title:vr=>{const yr=`${ht}-column-sorters`,xr=reactExports.createElement("span",{className:`${ht}-column-title`},renderColumnTitle(Ft.title,vr)),rr=reactExports.createElement("div",{className:yr},xr,Zt);return zt?typeof zt!="boolean"&&(zt==null?void 0:zt.target)==="sorter-icon"?reactExports.createElement("div",{className:`${yr} ${ht}-column-sorters-tooltip-target-sorter`},xr,reactExports.createElement(Tooltip,Object.assign({},gr),Zt)):reactExports.createElement(Tooltip,Object.assign({},gr),rr):rr},onHeaderCell:vr=>{var yr;const xr=((yr=Ft.onHeaderCell)===null||yr===void 0?void 0:yr.call(Ft,vr))||{},rr=xr.onClick,Lt=xr.onKeyDown;xr.onClick=Gt=>{Ct({column:Ft,key:Vt,sortOrder:Qt,multiplePriority:getMultiplePriority(Ft)}),rr==null||rr(Gt)},xr.onKeyDown=Gt=>{Gt.keyCode===KeyCode.ENTER&&(Ct({column:Ft,key:Vt,sortOrder:Qt,multiplePriority:getMultiplePriority(Ft)}),Lt==null||Lt(Gt))};const Ht=safeColumnTitle(Ft.title,{}),Wt=Ht==null?void 0:Ht.toString();return Xt?xr["aria-sort"]=Xt==="ascend"?"ascending":"descending":xr["aria-label"]=Wt||"",xr.className=cls(xr.className,`${ht}-column-has-sorters`),xr.tabIndex=0,Ft.ellipsis&&(xr.title=(Ht??"").toString()),xr}})}return"children"in Nt&&(Nt=Object.assign(Object.assign({},Nt),{children:injectSorter(ht,Nt.children,yt,Ct,$t,At,Bt,Mt)})),Nt})}const stateToInfo=ht=>{const{column:Et,sortOrder:yt}=ht;return{column:Et,order:yt,field:Et.dataIndex,columnKey:Et.key}},generateSorterInfo=ht=>{const Et=ht.filter(yt=>{let{sortOrder:Ct}=yt;return Ct}).map(stateToInfo);if(Et.length===0&&ht.length){const yt=ht.length-1;return Object.assign(Object.assign({},stateToInfo(ht[yt])),{column:void 0})}return Et.length<=1?Et[0]||{}:Et};function getSortData(ht,Et,yt){const Ct=Et.slice().sort((Bt,Dt)=>Dt.multiplePriority-Bt.multiplePriority),$t=ht.slice(),At=Ct.filter(Bt=>{let{column:{sorter:Dt},sortOrder:Ft}=Bt;return getSortFunction(Dt)&&Ft});return At.length?$t.sort((Bt,Dt)=>{for(let Ft=0;Ft<At.length;Ft+=1){const kt=At[Ft],{column:{sorter:Mt},sortOrder:Nt}=kt,jt=getSortFunction(Mt);if(jt&&Nt){const zt=jt(Bt,Dt,Nt);if(zt!==0)return Nt===ASCEND?zt:-zt}}return 0}).map(Bt=>{const Dt=Bt[yt];return Dt?Object.assign(Object.assign({},Bt),{[yt]:getSortData(Dt,Et,yt)}):Bt}):$t}function useFilterSorter(ht){let{prefixCls:Et,mergedColumns:yt,onSorterChange:Ct,sortDirections:$t,tableLocale:At,showSorterTooltip:Bt}=ht;const[Dt,Ft]=reactExports.useState(collectSortStates(yt,!0)),kt=reactExports.useMemo(()=>{let Vt=!0;const Kt=collectSortStates(yt,!1);if(!Kt.length){const dr=yt.map((cr,Er)=>getColumnKey(cr,getColumnPos(Er)));return Dt.filter(cr=>{let{key:Er}=cr;return dr.includes(Er)})}const Xt=[];function Qt(dr){Vt?Xt.push(dr):Xt.push(Object.assign(Object.assign({},dr),{sortOrder:null}))}let Zt=null;return Kt.forEach(dr=>{Zt===null?(Qt(dr),dr.sortOrder&&(dr.multiplePriority===!1?Vt=!1:Zt=!0)):(Zt&&dr.multiplePriority!==!1||(Vt=!1),Qt(dr))}),Xt},[yt,Dt]),Mt=reactExports.useMemo(()=>{var Vt,Kt;const Xt=kt.map(Qt=>{let{column:Zt,sortOrder:dr}=Qt;return{column:Zt,order:dr}});return{sortColumns:Xt,sortColumn:(Vt=Xt[0])===null||Vt===void 0?void 0:Vt.column,sortOrder:(Kt=Xt[0])===null||Kt===void 0?void 0:Kt.order}},[kt]),Nt=Vt=>{let Kt;Vt.multiplePriority===!1||!kt.length||kt[0].multiplePriority===!1?Kt=[Vt]:Kt=[].concat(_toConsumableArray(kt.filter(Xt=>{let{key:Qt}=Xt;return Qt!==Vt.key})),[Vt]),Ft(Kt),Ct(generateSorterInfo(Kt),Kt)};return[Vt=>injectSorter(Et,Vt,kt,Nt,$t,At,Bt),kt,Mt,()=>generateSorterInfo(kt)]}function fillTitle(ht,Et){return ht.map(yt=>{const Ct=Object.assign({},yt);return Ct.title=renderColumnTitle(yt.title,Et),"children"in Ct&&(Ct.children=fillTitle(Ct.children,Et)),Ct})}function useTitleColumns(ht){return[reactExports.useCallback(yt=>fillTitle(yt,ht),[ht])]}const RcTable=genTable((ht,Et)=>{const{_renderTimes:yt}=ht,{_renderTimes:Ct}=Et;return yt!==Ct}),RcVirtualTable=genVirtualTable((ht,Et)=>{const{_renderTimes:yt}=ht,{_renderTimes:Ct}=Et;return yt!==Ct}),genBorderedStyle=ht=>{const{componentCls:Et,lineWidth:yt,lineType:Ct,tableBorderColor:$t,tableHeaderBg:At,tablePaddingVertical:Bt,tablePaddingHorizontal:Dt,calc:Ft}=ht,kt=`${unit(yt)} ${Ct} ${$t}`,Mt=(Nt,jt,zt)=>({[`&${Et}-${Nt}`]:{[`> ${Et}-container`]:{[`> ${Et}-content, > ${Et}-body`]:{"\n            > table > tbody > tr > th,\n            > table > tbody > tr > td\n          ":{[`> ${Et}-expanded-row-fixed`]:{margin:`${unit(Ft(jt).mul(-1).equal())}
              ${unit(Ft(Ft(zt).add(yt)).mul(-1).equal())}`}}}}}});return{[`${Et}-wrapper`]:{[`${Et}${Et}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Et}-title`]:{border:kt,borderBottom:0},[`> ${Et}-container`]:{borderInlineStart:kt,borderTop:kt,[`
            > ${Et}-content,
            > ${Et}-header,
            > ${Et}-body,
            > ${Et}-summary
          `]:{"> table":{"\n                > thead > tr > th,\n                > thead > tr > td,\n                > tbody > tr > th,\n                > tbody > tr > td,\n                > tfoot > tr > th,\n                > tfoot > tr > td\n              ":{borderInlineEnd:kt},"> thead":{"> tr:not(:last-child) > th":{borderBottom:kt},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n                > thead > tr,\n                > tbody > tr,\n                > tfoot > tr\n              ":{[`> ${Et}-cell-fix-right-first::after`]:{borderInlineEnd:kt}},"\n                > tbody > tr > th,\n                > tbody > tr > td\n              ":{[`> ${Et}-expanded-row-fixed`]:{margin:`${unit(Ft(Bt).mul(-1).equal())} ${unit(Ft(Ft(Dt).add(yt)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:yt,bottom:0,borderInlineEnd:kt,content:'""'}}}}}},[`&${Et}-scroll-horizontal`]:{[`> ${Et}-container > ${Et}-body`]:{"> table > tbody":{[`
                > tr${Et}-expanded-row,
                > tr${Et}-placeholder
              `]:{"> th, > td":{borderInlineEnd:0}}}}}},Mt("middle",ht.tablePaddingVerticalMiddle,ht.tablePaddingHorizontalMiddle)),Mt("small",ht.tablePaddingVerticalSmall,ht.tablePaddingHorizontalSmall)),{[`> ${Et}-footer`]:{border:kt,borderTop:0}}),[`${Et}-cell`]:{[`${Et}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${unit(yt)} 0 ${unit(yt)} ${At}`}},[`${Et}-bordered ${Et}-cell-scrollbar`]:{borderInlineEnd:kt}}}},genEllipsisStyle=ht=>{const{componentCls:Et}=ht;return{[`${Et}-wrapper`]:{[`${Et}-cell-ellipsis`]:Object.assign(Object.assign({},textEllipsis),{wordBreak:"keep-all",[`
          &${Et}-cell-fix-left-last,
          &${Et}-cell-fix-right-first
        `]:{overflow:"visible",[`${Et}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Et}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},genEmptyStyle=ht=>{const{componentCls:Et}=ht;return{[`${Et}-wrapper`]:{[`${Et}-tbody > tr${Et}-placeholder`]:{textAlign:"center",color:ht.colorTextDisabled,"\n          &:hover > th,\n          &:hover > td,\n        ":{background:ht.colorBgContainer}}}}},genExpandStyle=ht=>{const{componentCls:Et,antCls:yt,motionDurationSlow:Ct,lineWidth:$t,paddingXS:At,lineType:Bt,tableBorderColor:Dt,tableExpandIconBg:Ft,tableExpandColumnWidth:kt,borderRadius:Mt,tablePaddingVertical:Nt,tablePaddingHorizontal:jt,tableExpandedRowBg:zt,paddingXXS:Vt,expandIconMarginTop:Kt,expandIconSize:Xt,expandIconHalfInner:Qt,expandIconScale:Zt,calc:dr}=ht,cr=`${unit($t)} ${Bt} ${Dt}`,Er=dr(Vt).sub($t).equal();return{[`${Et}-wrapper`]:{[`${Et}-expand-icon-col`]:{width:kt},[`${Et}-row-expand-icon-cell`]:{textAlign:"center",[`${Et}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Et}-row-indent`]:{height:1,float:"left"},[`${Et}-row-expand-icon`]:Object.assign(Object.assign({},operationUnit(ht)),{position:"relative",float:"left",boxSizing:"border-box",width:Xt,height:Xt,padding:0,color:"inherit",lineHeight:unit(Xt),background:Ft,border:cr,borderRadius:Mt,transform:`scale(${Zt})`,transition:`all ${Ct}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Ct} ease-out`,content:'""'},"&::before":{top:Qt,insetInlineEnd:Er,insetInlineStart:Er,height:$t},"&::after":{top:Er,bottom:Er,insetInlineStart:Qt,width:$t,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${Et}-row-indent + ${Et}-row-expand-icon`]:{marginTop:Kt,marginInlineEnd:At},[`tr${Et}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:zt}},[`${yt}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${Et}-expanded-row-fixed`]:{position:"relative",margin:`${unit(dr(Nt).mul(-1).equal())} ${unit(dr(jt).mul(-1).equal())}`,padding:`${unit(Nt)} ${unit(jt)}`}}}},genFilterStyle=ht=>{const{componentCls:Et,antCls:yt,iconCls:Ct,tableFilterDropdownWidth:$t,tableFilterDropdownSearchWidth:At,paddingXXS:Bt,paddingXS:Dt,colorText:Ft,lineWidth:kt,lineType:Mt,tableBorderColor:Nt,headerIconColor:jt,fontSizeSM:zt,tablePaddingHorizontal:Vt,borderRadius:Kt,motionDurationSlow:Xt,colorTextDescription:Qt,colorPrimary:Zt,tableHeaderFilterActiveBg:dr,colorTextDisabled:cr,tableFilterDropdownBg:Er,tableFilterDropdownHeight:pr,controlItemBgHover:gr,controlItemBgActive:vr,boxShadowSecondary:yr,filterDropdownMenuBg:xr,calc:rr}=ht,Lt=`${yt}-dropdown`,Ht=`${Et}-filter-dropdown`,Wt=`${yt}-tree`,Gt=`${unit(kt)} ${Mt} ${Nt}`;return[{[`${Et}-wrapper`]:{[`${Et}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Et}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:rr(Bt).mul(-1).equal(),marginInline:`${unit(Bt)} ${unit(rr(Vt).div(2).mul(-1).equal())}`,padding:`0 ${unit(Bt)}`,color:jt,fontSize:zt,borderRadius:Kt,cursor:"pointer",transition:`all ${Xt}`,"&:hover":{color:Qt,background:dr},"&.active":{color:Zt}}}},{[`${yt}-dropdown`]:{[Ht]:Object.assign(Object.assign({},resetComponent(ht)),{minWidth:$t,backgroundColor:Er,borderRadius:Kt,boxShadow:yr,overflow:"hidden",[`${Lt}-menu`]:{maxHeight:pr,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:xr,"&:empty::after":{display:"block",padding:`${unit(Dt)} 0`,color:cr,fontSize:zt,textAlign:"center",content:'"Not Found"'}},[`${Ht}-tree`]:{paddingBlock:`${unit(Dt)} 0`,paddingInline:Dt,[Wt]:{padding:0},[`${Wt}-treenode ${Wt}-node-content-wrapper:hover`]:{backgroundColor:gr},[`${Wt}-treenode-checkbox-checked ${Wt}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:vr}}},[`${Ht}-search`]:{padding:Dt,borderBottom:Gt,"&-input":{input:{minWidth:At},[Ct]:{color:cr}}},[`${Ht}-checkall`]:{width:"100%",marginBottom:Bt,marginInlineStart:Bt},[`${Ht}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${unit(rr(Dt).sub(kt).equal())} ${unit(Dt)}`,overflow:"hidden",borderTop:Gt}})}},{[`${yt}-dropdown ${Ht}, ${Ht}-submenu`]:{[`${yt}-checkbox-wrapper + span`]:{paddingInlineStart:Dt,color:Ft},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},genFixedStyle=ht=>{const{componentCls:Et,lineWidth:yt,colorSplit:Ct,motionDurationSlow:$t,zIndexTableFixed:At,tableBg:Bt,zIndexTableSticky:Dt,calc:Ft}=ht,kt=Ct;return{[`${Et}-wrapper`]:{[`
        ${Et}-cell-fix-left,
        ${Et}-cell-fix-right
      `]:{position:"sticky !important",zIndex:At,background:Bt},[`
        ${Et}-cell-fix-left-first::after,
        ${Et}-cell-fix-left-last::after
      `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:Ft(yt).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${$t}`,content:'""',pointerEvents:"none"},[`${Et}-cell-fix-left-all::after`]:{display:"none"},[`
        ${Et}-cell-fix-right-first::after,
        ${Et}-cell-fix-right-last::after
      `]:{position:"absolute",top:0,bottom:Ft(yt).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${$t}`,content:'""',pointerEvents:"none"},[`${Et}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Ft(Dt).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${$t}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Et}-ping-left`]:{[`&:not(${Et}-has-fix-left) ${Et}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${kt}`},[`
          ${Et}-cell-fix-left-first::after,
          ${Et}-cell-fix-left-last::after
        `]:{boxShadow:`inset 10px 0 8px -8px ${kt}`},[`${Et}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Et}-ping-right`]:{[`&:not(${Et}-has-fix-right) ${Et}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${kt}`},[`
          ${Et}-cell-fix-right-first::after,
          ${Et}-cell-fix-right-last::after
        `]:{boxShadow:`inset -10px 0 8px -8px ${kt}`}},[`${Et}-fixed-column-gapped`]:{[`
        ${Et}-cell-fix-left-first::after,
        ${Et}-cell-fix-left-last::after,
        ${Et}-cell-fix-right-first::after,
        ${Et}-cell-fix-right-last::after
      `]:{boxShadow:"none"}}}}},genPaginationStyle=ht=>{const{componentCls:Et,antCls:yt,margin:Ct}=ht;return{[`${Et}-wrapper`]:{[`${Et}-pagination${yt}-pagination`]:{margin:`${unit(Ct)} 0`},[`${Et}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:ht.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},genRadiusStyle=ht=>{const{componentCls:Et,tableRadius:yt}=ht;return{[`${Et}-wrapper`]:{[Et]:{[`${Et}-title, ${Et}-header`]:{borderRadius:`${unit(yt)} ${unit(yt)} 0 0`},[`${Et}-title + ${Et}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Et}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:yt,borderStartEndRadius:yt,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:yt},"> *:last-child":{borderStartEndRadius:yt}}},"&-footer":{borderRadius:`0 0 ${unit(yt)} ${unit(yt)}`}}}}},genStyle=ht=>{const{componentCls:Et}=ht;return{[`${Et}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Et}-pagination-left`]:{justifyContent:"flex-end"},[`${Et}-pagination-right`]:{justifyContent:"flex-start"},[`${Et}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Et}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Et}-row-indent`]:{float:"right"}}}}},genSelectionStyle=ht=>{const{componentCls:Et,antCls:yt,iconCls:Ct,fontSizeIcon:$t,padding:At,paddingXS:Bt,headerIconColor:Dt,headerIconHoverColor:Ft,tableSelectionColumnWidth:kt,tableSelectedRowBg:Mt,tableSelectedRowHoverBg:Nt,tableRowHoverBg:jt,tablePaddingHorizontal:zt,calc:Vt}=ht;return{[`${Et}-wrapper`]:{[`${Et}-selection-col`]:{width:kt,[`&${Et}-selection-col-with-dropdown`]:{width:Vt(kt).add($t).add(Vt(At).div(4)).equal()}},[`${Et}-bordered ${Et}-selection-col`]:{width:Vt(kt).add(Vt(Bt).mul(2)).equal(),[`&${Et}-selection-col-with-dropdown`]:{width:Vt(kt).add($t).add(Vt(At).div(4)).add(Vt(Bt).mul(2)).equal()}},[`
        table tr th${Et}-selection-column,
        table tr td${Et}-selection-column,
        ${Et}-selection-column
      `]:{paddingInlineEnd:ht.paddingXS,paddingInlineStart:ht.paddingXS,textAlign:"center",[`${yt}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Et}-selection-column${Et}-cell-fix-left`]:{zIndex:ht.zIndexTableFixed+1},[`table tr th${Et}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Et}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Et}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${ht.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:unit(Vt(zt).div(4).equal()),[Ct]:{color:Dt,fontSize:$t,verticalAlign:"baseline","&:hover":{color:Ft}}},[`${Et}-tbody`]:{[`${Et}-row`]:{[`&${Et}-row-selected`]:{[`> ${Et}-cell`]:{background:Mt,"&-row-hover":{background:Nt}}},[`> ${Et}-cell-row-hover`]:{background:jt}}}}}},genSizeStyle=ht=>{const{componentCls:Et,tableExpandColumnWidth:yt,calc:Ct}=ht,$t=(At,Bt,Dt,Ft)=>({[`${Et}${Et}-${At}`]:{fontSize:Ft,[`
        ${Et}-title,
        ${Et}-footer,
        ${Et}-cell,
        ${Et}-thead > tr > th,
        ${Et}-tbody > tr > th,
        ${Et}-tbody > tr > td,
        tfoot > tr > th,
        tfoot > tr > td
      `]:{padding:`${unit(Bt)} ${unit(Dt)}`},[`${Et}-filter-trigger`]:{marginInlineEnd:unit(Ct(Dt).div(2).mul(-1).equal())},[`${Et}-expanded-row-fixed`]:{margin:`${unit(Ct(Bt).mul(-1).equal())} ${unit(Ct(Dt).mul(-1).equal())}`},[`${Et}-tbody`]:{[`${Et}-wrapper:only-child ${Et}`]:{marginBlock:unit(Ct(Bt).mul(-1).equal()),marginInline:`${unit(Ct(yt).sub(Dt).equal())} ${unit(Ct(Dt).mul(-1).equal())}`}},[`${Et}-selection-extra`]:{paddingInlineStart:unit(Ct(Dt).div(4).equal())}}});return{[`${Et}-wrapper`]:Object.assign(Object.assign({},$t("middle",ht.tablePaddingVerticalMiddle,ht.tablePaddingHorizontalMiddle,ht.tableFontSizeMiddle)),$t("small",ht.tablePaddingVerticalSmall,ht.tablePaddingHorizontalSmall,ht.tableFontSizeSmall))}},genSorterStyle=ht=>{const{componentCls:Et,marginXXS:yt,fontSizeIcon:Ct,headerIconColor:$t,headerIconHoverColor:At}=ht;return{[`${Et}-wrapper`]:{[`${Et}-thead th${Et}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${ht.motionDurationSlow}`,"&:hover":{background:ht.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:ht.colorPrimary},[`
          &${Et}-cell-fix-left:hover,
          &${Et}-cell-fix-right:hover
        `]:{background:ht.tableFixedHeaderSortActiveBg}},[`${Et}-thead th${Et}-column-sort`]:{background:ht.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Et}-column-sort`]:{background:ht.tableBodySortBg},[`${Et}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${Et}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Et}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${Et}-column-sorter`]:{marginInlineStart:yt,color:$t,fontSize:0,transition:`color ${ht.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Ct,"&.active":{color:ht.colorPrimary}},[`${Et}-column-sorter-up + ${Et}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Et}-column-sorters:hover ${Et}-column-sorter`]:{color:At}}}},genStickyStyle=ht=>{const{componentCls:Et,opacityLoading:yt,tableScrollThumbBg:Ct,tableScrollThumbBgHover:$t,tableScrollThumbSize:At,tableScrollBg:Bt,zIndexTableSticky:Dt,stickyScrollBarBorderRadius:Ft,lineWidth:kt,lineType:Mt,tableBorderColor:Nt}=ht,jt=`${unit(kt)} ${Mt} ${Nt}`;return{[`${Et}-wrapper`]:{[`${Et}-sticky`]:{"&-holder":{position:"sticky",zIndex:Dt,background:ht.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${unit(At)} !important`,zIndex:Dt,display:"flex",alignItems:"center",background:Bt,borderTop:jt,opacity:yt,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:At,backgroundColor:Ct,borderRadius:Ft,transition:`all ${ht.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:$t}}}}}}},genSummaryStyle=ht=>{const{componentCls:Et,lineWidth:yt,tableBorderColor:Ct,calc:$t}=ht,At=`${unit(yt)} ${ht.lineType} ${Ct}`;return{[`${Et}-wrapper`]:{[`${Et}-summary`]:{position:"relative",zIndex:ht.zIndexTableFixed,background:ht.tableBg,"> tr":{"> th, > td":{borderBottom:At}}},[`div${Et}-summary`]:{boxShadow:`0 ${unit($t(yt).mul(-1).equal())} 0 ${Ct}`}}}},genVirtualStyle=ht=>{const{componentCls:Et,motionDurationMid:yt,lineWidth:Ct,lineType:$t,tableBorderColor:At,calc:Bt}=ht,Dt=`${unit(Ct)} ${$t} ${At}`,Ft=`${Et}-expanded-row-cell`;return{[`${Et}-wrapper`]:{[`${Et}-tbody-virtual`]:{[`${Et}-row:not(tr)`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${Et}-cell`]:{borderBottom:Dt,transition:`background ${yt}`},[`${Et}-expanded-row`]:{[`${Ft}${Ft}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${unit(Ct)})`,borderInlineEnd:"none"}}},[`${Et}-bordered`]:{[`${Et}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Dt,position:"absolute"},[`${Et}-cell`]:{borderInlineEnd:Dt,[`&${Et}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:Bt(Ct).mul(-1).equal(),borderInlineStart:Dt}}},[`&${Et}-virtual`]:{[`${Et}-placeholder ${Et}-cell`]:{borderInlineEnd:Dt,borderBottom:Dt}}}}}},genTableStyle=ht=>{const{componentCls:Et,fontWeightStrong:yt,tablePaddingVertical:Ct,tablePaddingHorizontal:$t,tableExpandColumnWidth:At,lineWidth:Bt,lineType:Dt,tableBorderColor:Ft,tableFontSize:kt,tableBg:Mt,tableRadius:Nt,tableHeaderTextColor:jt,motionDurationMid:zt,tableHeaderBg:Vt,tableHeaderCellSplitColor:Kt,tableFooterTextColor:Xt,tableFooterBg:Qt,calc:Zt}=ht,dr=`${unit(Bt)} ${Dt} ${Ft}`;return{[`${Et}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},clearFix()),{[Et]:Object.assign(Object.assign({},resetComponent(ht)),{fontSize:kt,background:Mt,borderRadius:`${unit(Nt)} ${unit(Nt)} 0 0`,scrollbarColor:`${ht.tableScrollThumbBg} ${ht.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${unit(Nt)} ${unit(Nt)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
          ${Et}-cell,
          ${Et}-thead > tr > th,
          ${Et}-tbody > tr > th,
          ${Et}-tbody > tr > td,
          tfoot > tr > th,
          tfoot > tr > td
        `]:{position:"relative",padding:`${unit(Ct)} ${unit($t)}`,overflowWrap:"break-word"},[`${Et}-title`]:{padding:`${unit(Ct)} ${unit($t)}`},[`${Et}-thead`]:{"\n          > tr > th,\n          > tr > td\n        ":{position:"relative",color:jt,fontWeight:yt,textAlign:"start",background:Vt,borderBottom:dr,transition:`background ${zt} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Et}-selection-column):not(${Et}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:Kt,transform:"translateY(-50%)",transition:`background-color ${zt}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Et}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${zt}, border-color ${zt}`,borderBottom:dr,[`
              > ${Et}-wrapper:only-child,
              > ${Et}-expanded-row-fixed > ${Et}-wrapper:only-child
            `]:{[Et]:{marginBlock:unit(Zt(Ct).mul(-1).equal()),marginInline:`${unit(Zt(At).sub($t).equal())}
                ${unit(Zt($t).mul(-1).equal())}`,[`${Et}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:jt,fontWeight:yt,textAlign:"start",background:Vt,borderBottom:dr,transition:`background ${zt} ease`}}},[`${Et}-footer`]:{padding:`${unit(Ct)} ${unit($t)}`,color:Xt,background:Qt}})}},prepareComponentToken=ht=>{const{colorFillAlter:Et,colorBgContainer:yt,colorTextHeading:Ct,colorFillSecondary:$t,colorFillContent:At,controlItemBgActive:Bt,controlItemBgActiveHover:Dt,padding:Ft,paddingSM:kt,paddingXS:Mt,colorBorderSecondary:Nt,borderRadiusLG:jt,controlHeight:zt,colorTextPlaceholder:Vt,fontSize:Kt,fontSizeSM:Xt,lineHeight:Qt,lineWidth:Zt,colorIcon:dr,colorIconHover:cr,opacityLoading:Er,controlInteractiveSize:pr}=ht,gr=new TinyColor($t).onBackground(yt).toHexShortString(),vr=new TinyColor(At).onBackground(yt).toHexShortString(),yr=new TinyColor(Et).onBackground(yt).toHexShortString(),xr=new TinyColor(dr),rr=new TinyColor(cr),Lt=pr/2-Zt,Ht=Lt*2+Zt*3;return{headerBg:yr,headerColor:Ct,headerSortActiveBg:gr,headerSortHoverBg:vr,bodySortBg:yr,rowHoverBg:yr,rowSelectedBg:Bt,rowSelectedHoverBg:Dt,rowExpandedBg:Et,cellPaddingBlock:Ft,cellPaddingInline:Ft,cellPaddingBlockMD:kt,cellPaddingInlineMD:Mt,cellPaddingBlockSM:Mt,cellPaddingInlineSM:Mt,borderColor:Nt,headerBorderRadius:jt,footerBg:yr,footerColor:Ct,cellFontSize:Kt,cellFontSizeMD:Kt,cellFontSizeSM:Kt,headerSplitColor:Nt,fixedHeaderSortActiveBg:gr,headerFilterHoverBg:At,filterDropdownMenuBg:yt,filterDropdownBg:yt,expandIconBg:yt,selectionColumnWidth:zt,stickyScrollBarBg:Vt,stickyScrollBarBorderRadius:100,expandIconMarginTop:(Kt*Qt-Zt*3)/2-Math.ceil((Xt*1.4-Zt*3)/2),headerIconColor:xr.clone().setAlpha(xr.getAlpha()*Er).toRgbString(),headerIconHoverColor:rr.clone().setAlpha(rr.getAlpha()*Er).toRgbString(),expandIconHalfInner:Lt,expandIconSize:Ht,expandIconScale:pr/Ht}},useStyle=genStyleHooks("Table",ht=>{const{colorTextHeading:Et,colorSplit:yt,colorBgContainer:Ct,controlInteractiveSize:$t,headerBg:At,headerColor:Bt,headerSortActiveBg:Dt,headerSortHoverBg:Ft,bodySortBg:kt,rowHoverBg:Mt,rowSelectedBg:Nt,rowSelectedHoverBg:jt,rowExpandedBg:zt,cellPaddingBlock:Vt,cellPaddingInline:Kt,cellPaddingBlockMD:Xt,cellPaddingInlineMD:Qt,cellPaddingBlockSM:Zt,cellPaddingInlineSM:dr,borderColor:cr,footerBg:Er,footerColor:pr,headerBorderRadius:gr,cellFontSize:vr,cellFontSizeMD:yr,cellFontSizeSM:xr,headerSplitColor:rr,fixedHeaderSortActiveBg:Lt,headerFilterHoverBg:Ht,filterDropdownBg:Wt,expandIconBg:Gt,selectionColumnWidth:Yt,stickyScrollBarBg:er,calc:lr}=ht,Jt=2,Ut=merge$2(ht,{tableFontSize:vr,tableBg:Ct,tableRadius:gr,tablePaddingVertical:Vt,tablePaddingHorizontal:Kt,tablePaddingVerticalMiddle:Xt,tablePaddingHorizontalMiddle:Qt,tablePaddingVerticalSmall:Zt,tablePaddingHorizontalSmall:dr,tableBorderColor:cr,tableHeaderTextColor:Bt,tableHeaderBg:At,tableFooterTextColor:pr,tableFooterBg:Er,tableHeaderCellSplitColor:rr,tableHeaderSortBg:Dt,tableHeaderSortHoverBg:Ft,tableBodySortBg:kt,tableFixedHeaderSortActiveBg:Lt,tableHeaderFilterActiveBg:Ht,tableFilterDropdownBg:Wt,tableRowHoverBg:Mt,tableSelectedRowBg:Nt,tableSelectedRowHoverBg:jt,zIndexTableFixed:Jt,zIndexTableSticky:Jt+1,tableFontSizeMiddle:yr,tableFontSizeSmall:xr,tableSelectionColumnWidth:Yt,tableExpandIconBg:Gt,tableExpandColumnWidth:lr($t).add(lr(ht.padding).mul(2)).equal(),tableExpandedRowBg:zt,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:er,tableScrollThumbBgHover:Et,tableScrollBg:yt});return[genTableStyle(Ut),genPaginationStyle(Ut),genSummaryStyle(Ut),genSorterStyle(Ut),genFilterStyle(Ut),genBorderedStyle(Ut),genRadiusStyle(Ut),genExpandStyle(Ut),genSummaryStyle(Ut),genEmptyStyle(Ut),genSelectionStyle(Ut),genFixedStyle(Ut),genStickyStyle(Ut),genEllipsisStyle(Ut),genSizeStyle(Ut),genStyle(Ut),genVirtualStyle(Ut)]},prepareComponentToken,{unitless:{expandIconScale:!0}}),EMPTY_LIST=[],InternalTable=(ht,Et)=>{var yt,Ct;const{prefixCls:$t,className:At,rootClassName:Bt,style:Dt,size:Ft,bordered:kt,dropdownPrefixCls:Mt,dataSource:Nt,pagination:jt,rowSelection:zt,rowKey:Vt="key",rowClassName:Kt,columns:Xt,children:Qt,childrenColumnName:Zt,onChange:dr,getPopupContainer:cr,loading:Er,expandIcon:pr,expandable:gr,expandedRowRender:vr,expandIconColumnIndex:yr,indentSize:xr,scroll:rr,sortDirections:Lt,locale:Ht,showSorterTooltip:Wt={target:"full-header"},virtual:Gt}=ht;devUseWarning();const Yt=reactExports.useMemo(()=>Xt||convertChildrenToColumns(Qt),[Xt,Qt]),er=reactExports.useMemo(()=>Yt.some(Bn=>Bn.responsive),[Yt]),lr=useBreakpoint(er),Jt=reactExports.useMemo(()=>{const Bn=new Set(Object.keys(lr).filter(Vn=>lr[Vn]));return Yt.filter(Vn=>!Vn.responsive||Vn.responsive.some(En=>Bn.has(En)))},[Yt,lr]),Ut=omit$1(ht,["className","style","columns"]),{locale:ir=localeValues,direction:Cr,table:_r,renderEmpty:$r,getPrefixCls:Tr,getPopupContainer:Dr}=reactExports.useContext(ConfigContext$1),Ar=useSize(Ft),Fr=Object.assign(Object.assign({},ir.Table),Ht),Rr=Nt||EMPTY_LIST,wr=Tr("table",$t),Sr=Tr("dropdown",Mt),[,Br]=useToken$1(),Or=useCSSVarCls(wr),[Pr,Nr,Lr]=useStyle(wr,Or),Wr=Object.assign(Object.assign({childrenColumnName:Zt,expandIconColumnIndex:yr},gr),{expandIcon:(yt=gr==null?void 0:gr.expandIcon)!==null&&yt!==void 0?yt:(Ct=_r==null?void 0:_r.expandable)===null||Ct===void 0?void 0:Ct.expandIcon}),{childrenColumnName:Ur="children"}=Wr,jr=reactExports.useMemo(()=>Rr.some(Bn=>Bn==null?void 0:Bn[Ur])?"nest":vr||gr!=null&&gr.expandedRowRender?"row":null,[Rr]),Kr={body:reactExports.useRef()},qr=useContainerWidth(wr),Zr=reactExports.useRef(null),dn=reactExports.useRef(null);useProxyImperativeHandle(Et,()=>Object.assign(Object.assign({},dn.current),{nativeElement:Zr.current}));const Xr=reactExports.useMemo(()=>typeof Vt=="function"?Vt:Bn=>Bn==null?void 0:Bn[Vt],[Vt]),[un]=useLazyKVMap(Rr,Ur,Xr),Yr={},Gr=function(Bn,Vn){let En=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Sn,Xn,uu,Eu;const pu=Object.assign(Object.assign({},Yr),Bn);En&&((Sn=Yr.resetPagination)===null||Sn===void 0||Sn.call(Yr),!((Xn=pu.pagination)===null||Xn===void 0)&&Xn.current&&(pu.pagination.current=1),jt&&((uu=jt.onChange)===null||uu===void 0||uu.call(jt,1,(Eu=pu.pagination)===null||Eu===void 0?void 0:Eu.pageSize))),rr&&rr.scrollToFirstRowOnChange!==!1&&Kr.body.current&&scrollTo(0,{getContainer:()=>Kr.body.current}),dr==null||dr(pu.pagination,pu.filters,pu.sorter,{currentDataSource:getFilterData(getSortData(Rr,pu.sorterStates,Ur),pu.filterStates,Ur),action:Vn})},Jr=(Bn,Vn)=>{Gr({sorter:Bn,sorterStates:Vn},"sort",!1)},[wn,kr,Mr,Ir]=useFilterSorter({prefixCls:wr,mergedColumns:Jt,onSorterChange:Jr,sortDirections:Lt||["ascend","descend"],tableLocale:Fr,showSorterTooltip:Wt}),Hr=reactExports.useMemo(()=>getSortData(Rr,kr,Ur),[Rr,kr]);Yr.sorter=Ir(),Yr.sorterStates=kr;const Vr=(Bn,Vn)=>{Gr({filters:Bn,filterStates:Vn},"filter",!0)},[on,Qr,hn]=useFilter({prefixCls:wr,locale:Fr,dropdownPrefixCls:Sr,mergedColumns:Jt,onFilterChange:Vr,getPopupContainer:cr||Dr,rootClassName:cls(Bt,Or)}),Wn=getFilterData(Hr,Qr,Ur);Yr.filters=hn,Yr.filterStates=Qr;const _n=reactExports.useMemo(()=>{const Bn={};return Object.keys(hn).forEach(Vn=>{hn[Vn]!==null&&(Bn[Vn]=hn[Vn])}),Object.assign(Object.assign({},Mr),{filters:Bn})},[Mr,hn]),[An]=useTitleColumns(_n),Yn=(Bn,Vn)=>{Gr({pagination:Object.assign(Object.assign({},Yr.pagination),{current:Bn,pageSize:Vn})},"paginate")},[Tn,Nn]=usePagination(Wn.length,Yn,jt);Yr.pagination=jt===!1?{}:getPaginationParam(Tn,jt),Yr.resetPagination=Nn;const Zn=reactExports.useMemo(()=>{if(jt===!1||!Tn.pageSize)return Wn;const{current:Bn=1,total:Vn,pageSize:En=DEFAULT_PAGE_SIZE}=Tn;return Wn.length<Vn?Wn.length>En?Wn.slice((Bn-1)*En,Bn*En):Wn:Wn.slice((Bn-1)*En,Bn*En)},[!!jt,Wn,Tn==null?void 0:Tn.current,Tn==null?void 0:Tn.pageSize,Tn==null?void 0:Tn.total]),[$n,Fn]=useSelection({prefixCls:wr,data:Wn,pageData:Zn,getRowKey:Xr,getRecordByKey:un,expandType:jr,childrenColumnName:Ur,locale:Fr,getPopupContainer:cr||Dr},zt),Gn=(Bn,Vn,En)=>{let Sn;return typeof Kt=="function"?Sn=cls(Kt(Bn,Vn,En)):Sn=cls(Kt),cls({[`${wr}-row-selected`]:Fn.has(Xr(Bn,Vn))},Sn)};Wr.__PARENT_RENDER_ICON__=Wr.expandIcon,Wr.expandIcon=Wr.expandIcon||pr||renderExpandIcon(Fr),jr==="nest"&&Wr.expandIconColumnIndex===void 0?Wr.expandIconColumnIndex=zt?1:0:Wr.expandIconColumnIndex>0&&zt&&(Wr.expandIconColumnIndex-=1),typeof Wr.indentSize!="number"&&(Wr.indentSize=typeof xr=="number"?xr:15);const gn=reactExports.useCallback(Bn=>An($n(on(wn(Bn)))),[wn,on,$n]);let Rn,nu;if(jt!==!1&&(Tn!=null&&Tn.total)){let Bn;Tn.size?Bn=Tn.size:Bn=Ar==="small"||Ar==="middle"?"small":void 0;const Vn=Xn=>reactExports.createElement(Pagination,Object.assign({},Tn,{className:cls(`${wr}-pagination ${wr}-pagination-${Xn}`,Tn.className),size:Bn})),En=Cr==="rtl"?"left":"right",{position:Sn}=Tn;if(Sn!==null&&Array.isArray(Sn)){const Xn=Sn.find(pu=>pu.includes("top")),uu=Sn.find(pu=>pu.includes("bottom")),Eu=Sn.every(pu=>`${pu}`=="none");!Xn&&!uu&&!Eu&&(nu=Vn(En)),Xn&&(Rn=Vn(Xn.toLowerCase().replace("top",""))),uu&&(nu=Vn(uu.toLowerCase().replace("bottom","")))}else nu=Vn(En)}let pn;typeof Er=="boolean"?pn={spinning:Er}:typeof Er=="object"&&(pn=Object.assign({spinning:!0},Er));const yn=cls(Lr,Or,`${wr}-wrapper`,_r==null?void 0:_r.className,{[`${wr}-wrapper-rtl`]:Cr==="rtl"},At,Bt,Nr),jn=Object.assign(Object.assign({},_r==null?void 0:_r.style),Dt),Cn=typeof(Ht==null?void 0:Ht.emptyText)<"u"?Ht.emptyText:($r==null?void 0:$r("Table"))||reactExports.createElement(DefaultRenderEmpty,{componentName:"Table"}),On=Gt?RcVirtualTable:RcTable,au={},In=reactExports.useMemo(()=>{const{fontSize:Bn,lineHeight:Vn,padding:En,paddingXS:Sn,paddingSM:Xn}=Br,uu=Math.floor(Bn*Vn);switch(Ar){case"large":return En*2+uu;case"small":return Sn*2+uu;default:return Xn*2+uu}},[Br,Ar]);return Gt&&(au.listItemHeight=In),Pr(reactExports.createElement("div",{ref:Zr,className:yn,style:jn},reactExports.createElement(Spin,Object.assign({spinning:!1},pn),Rn,reactExports.createElement(On,Object.assign({},au,Ut,{ref:dn,columns:Jt,direction:Cr,expandable:Wr,prefixCls:wr,className:cls({[`${wr}-middle`]:Ar==="middle",[`${wr}-small`]:Ar==="small",[`${wr}-bordered`]:kt,[`${wr}-empty`]:Rr.length===0},Lr,Or,Nr),data:Zn,rowKey:Xr,rowClassName:Gn,emptyText:Cn,internalHooks:INTERNAL_HOOKS,internalRefs:Kr,transformColumns:gn,getContainerWidth:qr})),nu)))},InternalTable$1=reactExports.forwardRef(InternalTable),Table=(ht,Et)=>{const yt=reactExports.useRef(0);return yt.current+=1,reactExports.createElement(InternalTable$1,Object.assign({},ht,{ref:Et,_renderTimes:yt.current}))},ForwardTable=reactExports.forwardRef(Table);ForwardTable.SELECTION_COLUMN=SELECTION_COLUMN;ForwardTable.EXPAND_COLUMN=EXPAND_COLUMN;ForwardTable.SELECTION_ALL=SELECTION_ALL;ForwardTable.SELECTION_INVERT=SELECTION_INVERT;ForwardTable.SELECTION_NONE=SELECTION_NONE;ForwardTable.Column=Column;ForwardTable.ColumnGroup=ColumnGroup;ForwardTable.Summary=FooterComponents;const getDesignToken=ht=>{const Et=ht!=null&&ht.algorithm?createTheme(ht.algorithm):createTheme(derivative$2),yt=Object.assign(Object.assign({},seedToken),ht==null?void 0:ht.token);return getComputedToken$1(yt,{override:ht==null?void 0:ht.token},Et,formatToken)};function genSizeMapToken(ht){const{sizeUnit:Et,sizeStep:yt}=ht,Ct=yt-2;return{sizeXXL:Et*(Ct+10),sizeXL:Et*(Ct+6),sizeLG:Et*(Ct+2),sizeMD:Et*(Ct+2),sizeMS:Et*(Ct+1),size:Et*Ct,sizeSM:Et*Ct,sizeXS:Et*(Ct-1),sizeXXS:Et*(Ct-1)}}const derivative$1=(ht,Et)=>{const yt=Et??derivative$2(ht),Ct=yt.fontSizeSM,$t=yt.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},yt),genSizeMapToken(Et??ht)),genFontMapToken(Ct)),{controlHeight:$t}),genControlHeight(Object.assign(Object.assign({},yt),{controlHeight:$t})))},getAlphaColor=(ht,Et)=>new TinyColor(ht).setAlpha(Et).toRgbString(),getSolidColor=(ht,Et)=>new TinyColor(ht).lighten(Et).toHexString(),generateColorPalettes=ht=>{const Et=generate$1(ht,{theme:"dark"});return{1:Et[0],2:Et[1],3:Et[2],4:Et[3],5:Et[6],6:Et[5],7:Et[4],8:Et[6],9:Et[5],10:Et[4]}},generateNeutralColorPalettes=(ht,Et)=>{const yt=ht||"#000",Ct=Et||"#fff";return{colorBgBase:yt,colorTextBase:Ct,colorText:getAlphaColor(Ct,.85),colorTextSecondary:getAlphaColor(Ct,.65),colorTextTertiary:getAlphaColor(Ct,.45),colorTextQuaternary:getAlphaColor(Ct,.25),colorFill:getAlphaColor(Ct,.18),colorFillSecondary:getAlphaColor(Ct,.12),colorFillTertiary:getAlphaColor(Ct,.08),colorFillQuaternary:getAlphaColor(Ct,.04),colorBgElevated:getSolidColor(yt,12),colorBgContainer:getSolidColor(yt,8),colorBgLayout:getSolidColor(yt,0),colorBgSpotlight:getSolidColor(yt,26),colorBgBlur:getAlphaColor(Ct,.04),colorBorder:getSolidColor(yt,26),colorBorderSecondary:getSolidColor(yt,19)}},derivative=(ht,Et)=>{const yt=Object.keys(defaultPresetColors).map($t=>{const At=generate$1(ht[$t],{theme:"dark"});return new Array(10).fill(1).reduce((Bt,Dt,Ft)=>(Bt[`${$t}-${Ft+1}`]=At[Ft],Bt[`${$t}${Ft+1}`]=At[Ft],Bt),{})}).reduce(($t,At)=>($t=Object.assign(Object.assign({},$t),At),$t),{}),Ct=Et??derivative$2(ht);return Object.assign(Object.assign(Object.assign({},Ct),yt),genColorMapToken(ht,{generateColorPalettes,generateNeutralColorPalettes}))};function useToken(){const[ht,Et,yt]=useToken$1();return{theme:ht,token:Et,hashId:yt}}const antdTheme={defaultConfig,defaultSeed:defaultConfig.token,useToken,defaultAlgorithm:derivative$2,darkAlgorithm:derivative,compactAlgorithm:derivative$1,getDesignToken};var toggleSelection=function(){var ht=document.getSelection();if(!ht.rangeCount)return function(){};for(var Et=document.activeElement,yt=[],Ct=0;Ct<ht.rangeCount;Ct++)yt.push(ht.getRangeAt(Ct));switch(Et.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":Et.blur();break;default:Et=null;break}return ht.removeAllRanges(),function(){ht.type==="Caret"&&ht.removeAllRanges(),ht.rangeCount||yt.forEach(function($t){ht.addRange($t)}),Et&&Et.focus()}},deselectCurrent=toggleSelection,clipboardToIE11Formatting={"text/plain":"Text","text/html":"Url",default:"Text"},defaultMessage="Copy to clipboard: #{key}, Enter";function format$2(ht){var Et=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return ht.replace(/#{\s*key\s*}/g,Et)}function copy(ht,Et){var yt,Ct,$t,At,Bt,Dt,Ft=!1;Et||(Et={}),yt=Et.debug||!1;try{$t=deselectCurrent(),At=document.createRange(),Bt=document.getSelection(),Dt=document.createElement("span"),Dt.textContent=ht,Dt.ariaHidden="true",Dt.style.all="unset",Dt.style.position="fixed",Dt.style.top=0,Dt.style.clip="rect(0, 0, 0, 0)",Dt.style.whiteSpace="pre",Dt.style.webkitUserSelect="text",Dt.style.MozUserSelect="text",Dt.style.msUserSelect="text",Dt.style.userSelect="text",Dt.addEventListener("copy",function(Mt){if(Mt.stopPropagation(),Et.format)if(Mt.preventDefault(),typeof Mt.clipboardData>"u"){yt&&console.warn("unable to use e.clipboardData"),yt&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var Nt=clipboardToIE11Formatting[Et.format]||clipboardToIE11Formatting.default;window.clipboardData.setData(Nt,ht)}else Mt.clipboardData.clearData(),Mt.clipboardData.setData(Et.format,ht);Et.onCopy&&(Mt.preventDefault(),Et.onCopy(Mt.clipboardData))}),document.body.appendChild(Dt),At.selectNodeContents(Dt),Bt.addRange(At);var kt=document.execCommand("copy");if(!kt)throw new Error("copy command was unsuccessful");Ft=!0}catch(Mt){yt&&console.error("unable to copy using execCommand: ",Mt),yt&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(Et.format||"text",ht),Et.onCopy&&Et.onCopy(window.clipboardData),Ft=!0}catch(Nt){yt&&console.error("unable to copy using clipboardData: ",Nt),yt&&console.error("falling back to prompt"),Ct=format$2("message"in Et?Et.message:defaultMessage),window.prompt(Ct,ht)}}finally{Bt&&(typeof Bt.removeRange=="function"?Bt.removeRange(At):Bt.removeAllRanges()),Dt&&document.body.removeChild(Dt),$t()}return Ft}var copyToClipboard=copy;const copy$1=getDefaultExportFromCjs$1(copyToClipboard);var freeGlobal$1=typeof global$g=="object"&&global$g&&global$g.Object===Object&&global$g,freeSelf$1=typeof self=="object"&&self&&self.Object===Object&&self,root$3=freeGlobal$1||freeSelf$1||Function("return this")(),Symbol$5=root$3.Symbol,objectProto$f=Object.prototype,hasOwnProperty$e=objectProto$f.hasOwnProperty,nativeObjectToString$2=objectProto$f.toString,symToStringTag$2=Symbol$5?Symbol$5.toStringTag:void 0;function getRawTag$1(ht){var Et=hasOwnProperty$e.call(ht,symToStringTag$2),yt=ht[symToStringTag$2];try{ht[symToStringTag$2]=void 0;var Ct=!0}catch{}var $t=nativeObjectToString$2.call(ht);return Ct&&(Et?ht[symToStringTag$2]=yt:delete ht[symToStringTag$2]),$t}var objectProto$e=Object.prototype,nativeObjectToString$1=objectProto$e.toString;function objectToString$3(ht){return nativeObjectToString$1.call(ht)}var nullTag$1="[object Null]",undefinedTag$1="[object Undefined]",symToStringTag$1=Symbol$5?Symbol$5.toStringTag:void 0;function baseGetTag$1(ht){return ht==null?ht===void 0?undefinedTag$1:nullTag$1:symToStringTag$1&&symToStringTag$1 in Object(ht)?getRawTag$1(ht):objectToString$3(ht)}function isObjectLike$2(ht){return ht!=null&&typeof ht=="object"}var symbolTag$3="[object Symbol]";function isSymbol$6(ht){return typeof ht=="symbol"||isObjectLike$2(ht)&&baseGetTag$1(ht)==symbolTag$3}function arrayMap(ht,Et){for(var yt=-1,Ct=ht==null?0:ht.length,$t=Array(Ct);++yt<Ct;)$t[yt]=Et(ht[yt],yt,ht);return $t}var isArray$7=Array.isArray,INFINITY$2=1/0,symbolProto$2=Symbol$5?Symbol$5.prototype:void 0,symbolToString$1=symbolProto$2?symbolProto$2.toString:void 0;function baseToString$1(ht){if(typeof ht=="string")return ht;if(isArray$7(ht))return arrayMap(ht,baseToString$1)+"";if(isSymbol$6(ht))return symbolToString$1?symbolToString$1.call(ht):"";var Et=ht+"";return Et=="0"&&1/ht==-INFINITY$2?"-0":Et}var reWhitespace=/\s/;function trimmedEndIndex(ht){for(var Et=ht.length;Et--&&reWhitespace.test(ht.charAt(Et)););return Et}var reTrimStart=/^\s+/;function baseTrim(ht){return ht&&ht.slice(0,trimmedEndIndex(ht)+1).replace(reTrimStart,"")}function isObject$g(ht){var Et=typeof ht;return ht!=null&&(Et=="object"||Et=="function")}var NAN=NaN,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber$1(ht){if(typeof ht=="number")return ht;if(isSymbol$6(ht))return NAN;if(isObject$g(ht)){var Et=typeof ht.valueOf=="function"?ht.valueOf():ht;ht=isObject$g(Et)?Et+"":Et}if(typeof ht!="string")return ht===0?ht:+ht;ht=baseTrim(ht);var yt=reIsBinary.test(ht);return yt||reIsOctal.test(ht)?freeParseInt(ht.slice(2),yt?2:8):reIsBadHex.test(ht)?NAN:+ht}function identity$1(ht){return ht}var asyncTag="[object AsyncFunction]",funcTag$3="[object Function]",genTag$2="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$6(ht){if(!isObject$g(ht))return!1;var Et=baseGetTag$1(ht);return Et==funcTag$3||Et==genTag$2||Et==asyncTag||Et==proxyTag}var coreJsData$1=root$3["__core-js_shared__"],maskSrcKey$1=function(){var ht=/[^.]+$/.exec(coreJsData$1&&coreJsData$1.keys&&coreJsData$1.keys.IE_PROTO||"");return ht?"Symbol(src)_1."+ht:""}();function isMasked$1(ht){return!!maskSrcKey$1&&maskSrcKey$1 in ht}var funcProto$4=Function.prototype,funcToString$4=funcProto$4.toString;function toSource$1(ht){if(ht!=null){try{return funcToString$4.call(ht)}catch{}try{return ht+""}catch{}}return""}var reRegExpChar$1=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor$1=/^\[object .+?Constructor\]$/,funcProto$3=Function.prototype,objectProto$d=Object.prototype,funcToString$3=funcProto$3.toString,hasOwnProperty$d=objectProto$d.hasOwnProperty,reIsNative$1=RegExp("^"+funcToString$3.call(hasOwnProperty$d).replace(reRegExpChar$1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$1(ht){if(!isObject$g(ht)||isMasked$1(ht))return!1;var Et=isFunction$6(ht)?reIsNative$1:reIsHostCtor$1;return Et.test(toSource$1(ht))}function getValue$2(ht,Et){return ht==null?void 0:ht[Et]}function getNative$1(ht,Et){var yt=getValue$2(ht,Et);return baseIsNative$1(yt)?yt:void 0}var WeakMap$3=getNative$1(root$3,"WeakMap"),objectCreate$1=Object.create,baseCreate=function(){function ht(){}return function(Et){if(!isObject$g(Et))return{};if(objectCreate$1)return objectCreate$1(Et);ht.prototype=Et;var yt=new ht;return ht.prototype=void 0,yt}}();function apply$5(ht,Et,yt){switch(yt.length){case 0:return ht.call(Et);case 1:return ht.call(Et,yt[0]);case 2:return ht.call(Et,yt[0],yt[1]);case 3:return ht.call(Et,yt[0],yt[1],yt[2])}return ht.apply(Et,yt)}function copyArray(ht,Et){var yt=-1,Ct=ht.length;for(Et||(Et=Array(Ct));++yt<Ct;)Et[yt]=ht[yt];return Et}var HOT_COUNT=800,HOT_SPAN=16,nativeNow=Date.now;function shortOut(ht){var Et=0,yt=0;return function(){var Ct=nativeNow(),$t=HOT_SPAN-(Ct-yt);if(yt=Ct,$t>0){if(++Et>=HOT_COUNT)return arguments[0]}else Et=0;return ht.apply(void 0,arguments)}}function constant(ht){return function(){return ht}}var defineProperty$b=function(){try{var ht=getNative$1(Object,"defineProperty");return ht({},"",{}),ht}catch{}}(),baseSetToString=defineProperty$b?function(ht,Et){return defineProperty$b(ht,"toString",{configurable:!0,enumerable:!1,value:constant(Et),writable:!0})}:identity$1,setToString=shortOut(baseSetToString);function arrayEach(ht,Et){for(var yt=-1,Ct=ht==null?0:ht.length;++yt<Ct&&Et(ht[yt],yt,ht)!==!1;);return ht}function baseFindIndex(ht,Et,yt,Ct){for(var $t=ht.length,At=yt+-1;++At<$t;)if(Et(ht[At],At,ht))return At;return-1}function baseIsNaN(ht){return ht!==ht}function strictIndexOf(ht,Et,yt){for(var Ct=yt-1,$t=ht.length;++Ct<$t;)if(ht[Ct]===Et)return Ct;return-1}function baseIndexOf(ht,Et,yt){return Et===Et?strictIndexOf(ht,Et,yt):baseFindIndex(ht,baseIsNaN,yt)}function arrayIncludes$1(ht,Et){var yt=ht==null?0:ht.length;return!!yt&&baseIndexOf(ht,Et,0)>-1}var MAX_SAFE_INTEGER$2=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(ht,Et){var yt=typeof ht;return Et=Et??MAX_SAFE_INTEGER$2,!!Et&&(yt=="number"||yt!="symbol"&&reIsUint.test(ht))&&ht>-1&&ht%1==0&&ht<Et}function baseAssignValue(ht,Et,yt){Et=="__proto__"&&defineProperty$b?defineProperty$b(ht,Et,{configurable:!0,enumerable:!0,value:yt,writable:!0}):ht[Et]=yt}function eq$2(ht,Et){return ht===Et||ht!==ht&&Et!==Et}var objectProto$c=Object.prototype,hasOwnProperty$c=objectProto$c.hasOwnProperty;function assignValue(ht,Et,yt){var Ct=ht[Et];(!(hasOwnProperty$c.call(ht,Et)&&eq$2(Ct,yt))||yt===void 0&&!(Et in ht))&&baseAssignValue(ht,Et,yt)}function copyObject(ht,Et,yt,Ct){var $t=!yt;yt||(yt={});for(var At=-1,Bt=Et.length;++At<Bt;){var Dt=Et[At],Ft=Ct?Ct(yt[Dt],ht[Dt],Dt,yt,ht):void 0;Ft===void 0&&(Ft=ht[Dt]),$t?baseAssignValue(yt,Dt,Ft):assignValue(yt,Dt,Ft)}return yt}var nativeMax$1=Math.max;function overRest(ht,Et,yt){return Et=nativeMax$1(Et===void 0?ht.length-1:Et,0),function(){for(var Ct=arguments,$t=-1,At=nativeMax$1(Ct.length-Et,0),Bt=Array(At);++$t<At;)Bt[$t]=Ct[Et+$t];$t=-1;for(var Dt=Array(Et+1);++$t<Et;)Dt[$t]=Ct[$t];return Dt[Et]=yt(Bt),apply$5(ht,this,Dt)}}function baseRest(ht,Et){return setToString(overRest(ht,Et,identity$1),ht+"")}var MAX_SAFE_INTEGER$1=9007199254740991;function isLength(ht){return typeof ht=="number"&&ht>-1&&ht%1==0&&ht<=MAX_SAFE_INTEGER$1}function isArrayLike(ht){return ht!=null&&isLength(ht.length)&&!isFunction$6(ht)}var objectProto$b=Object.prototype;function isPrototype(ht){var Et=ht&&ht.constructor,yt=typeof Et=="function"&&Et.prototype||objectProto$b;return ht===yt}function baseTimes(ht,Et){for(var yt=-1,Ct=Array(ht);++yt<ht;)Ct[yt]=Et(yt);return Ct}var argsTag$2="[object Arguments]";function baseIsArguments(ht){return isObjectLike$2(ht)&&baseGetTag$1(ht)==argsTag$2}var objectProto$a=Object.prototype,hasOwnProperty$b=objectProto$a.hasOwnProperty,propertyIsEnumerable$1=objectProto$a.propertyIsEnumerable,isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function(ht){return isObjectLike$2(ht)&&hasOwnProperty$b.call(ht,"callee")&&!propertyIsEnumerable$1.call(ht,"callee")};function stubFalse(){return!1}var freeExports$2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$2=freeExports$2&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$2=freeModule$2&&freeModule$2.exports===freeExports$2,Buffer$1=moduleExports$2?root$3.Buffer:void 0,nativeIsBuffer=Buffer$1?Buffer$1.isBuffer:void 0,isBuffer$1=nativeIsBuffer||stubFalse,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$2="[object Boolean]",dateTag$2="[object Date]",errorTag$1="[object Error]",funcTag$2="[object Function]",mapTag$4="[object Map]",numberTag$2="[object Number]",objectTag$4="[object Object]",regexpTag$2="[object RegExp]",setTag$4="[object Set]",stringTag$2="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$3="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0;typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag$2]=typedArrayTags[boolTag$2]=typedArrayTags[dataViewTag$3]=typedArrayTags[dateTag$2]=typedArrayTags[errorTag$1]=typedArrayTags[funcTag$2]=typedArrayTags[mapTag$4]=typedArrayTags[numberTag$2]=typedArrayTags[objectTag$4]=typedArrayTags[regexpTag$2]=typedArrayTags[setTag$4]=typedArrayTags[stringTag$2]=typedArrayTags[weakMapTag$2]=!1;function baseIsTypedArray(ht){return isObjectLike$2(ht)&&isLength(ht.length)&&!!typedArrayTags[baseGetTag$1(ht)]}function baseUnary(ht){return function(Et){return ht(Et)}}var freeExports$1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$1=freeExports$1&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$1=freeModule$1&&freeModule$1.exports===freeExports$1,freeProcess=moduleExports$1&&freeGlobal$1.process,nodeUtil=function(){try{var ht=freeModule$1&&freeModule$1.require&&freeModule$1.require("util").types;return ht||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch{}}(),nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,objectProto$9=Object.prototype,hasOwnProperty$a=objectProto$9.hasOwnProperty;function arrayLikeKeys(ht,Et){var yt=isArray$7(ht),Ct=!yt&&isArguments(ht),$t=!yt&&!Ct&&isBuffer$1(ht),At=!yt&&!Ct&&!$t&&isTypedArray(ht),Bt=yt||Ct||$t||At,Dt=Bt?baseTimes(ht.length,String):[],Ft=Dt.length;for(var kt in ht)(Et||hasOwnProperty$a.call(ht,kt))&&!(Bt&&(kt=="length"||$t&&(kt=="offset"||kt=="parent")||At&&(kt=="buffer"||kt=="byteLength"||kt=="byteOffset")||isIndex(kt,Ft)))&&Dt.push(kt);return Dt}function overArg$1(ht,Et){return function(yt){return ht(Et(yt))}}var nativeKeys$1=overArg$1(Object.keys,Object),objectProto$8=Object.prototype,hasOwnProperty$9=objectProto$8.hasOwnProperty;function baseKeys(ht){if(!isPrototype(ht))return nativeKeys$1(ht);var Et=[];for(var yt in Object(ht))hasOwnProperty$9.call(ht,yt)&&yt!="constructor"&&Et.push(yt);return Et}function keys$3(ht){return isArrayLike(ht)?arrayLikeKeys(ht):baseKeys(ht)}function nativeKeysIn(ht){var Et=[];if(ht!=null)for(var yt in Object(ht))Et.push(yt);return Et}var objectProto$7=Object.prototype,hasOwnProperty$8=objectProto$7.hasOwnProperty;function baseKeysIn(ht){if(!isObject$g(ht))return nativeKeysIn(ht);var Et=isPrototype(ht),yt=[];for(var Ct in ht)Ct=="constructor"&&(Et||!hasOwnProperty$8.call(ht,Ct))||yt.push(Ct);return yt}function keysIn(ht){return isArrayLike(ht)?arrayLikeKeys(ht,!0):baseKeysIn(ht)}var reIsDeepProp$1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp$1=/^\w*$/;function isKey$1(ht,Et){if(isArray$7(ht))return!1;var yt=typeof ht;return yt=="number"||yt=="symbol"||yt=="boolean"||ht==null||isSymbol$6(ht)?!0:reIsPlainProp$1.test(ht)||!reIsDeepProp$1.test(ht)||Et!=null&&ht in Object(Et)}var nativeCreate$1=getNative$1(Object,"create");function hashClear$1(){this.__data__=nativeCreate$1?nativeCreate$1(null):{},this.size=0}function hashDelete$1(ht){var Et=this.has(ht)&&delete this.__data__[ht];return this.size-=Et?1:0,Et}var HASH_UNDEFINED$3="__lodash_hash_undefined__",objectProto$6=Object.prototype,hasOwnProperty$7=objectProto$6.hasOwnProperty;function hashGet$1(ht){var Et=this.__data__;if(nativeCreate$1){var yt=Et[ht];return yt===HASH_UNDEFINED$3?void 0:yt}return hasOwnProperty$7.call(Et,ht)?Et[ht]:void 0}var objectProto$5=Object.prototype,hasOwnProperty$6=objectProto$5.hasOwnProperty;function hashHas$1(ht){var Et=this.__data__;return nativeCreate$1?Et[ht]!==void 0:hasOwnProperty$6.call(Et,ht)}var HASH_UNDEFINED$2="__lodash_hash_undefined__";function hashSet$1(ht,Et){var yt=this.__data__;return this.size+=this.has(ht)?0:1,yt[ht]=nativeCreate$1&&Et===void 0?HASH_UNDEFINED$2:Et,this}function Hash$2(ht){var Et=-1,yt=ht==null?0:ht.length;for(this.clear();++Et<yt;){var Ct=ht[Et];this.set(Ct[0],Ct[1])}}Hash$2.prototype.clear=hashClear$1;Hash$2.prototype.delete=hashDelete$1;Hash$2.prototype.get=hashGet$1;Hash$2.prototype.has=hashHas$1;Hash$2.prototype.set=hashSet$1;function listCacheClear$1(){this.__data__=[],this.size=0}function assocIndexOf$1(ht,Et){for(var yt=ht.length;yt--;)if(eq$2(ht[yt][0],Et))return yt;return-1}var arrayProto$1=Array.prototype,splice$1=arrayProto$1.splice;function listCacheDelete$1(ht){var Et=this.__data__,yt=assocIndexOf$1(Et,ht);if(yt<0)return!1;var Ct=Et.length-1;return yt==Ct?Et.pop():splice$1.call(Et,yt,1),--this.size,!0}function listCacheGet$1(ht){var Et=this.__data__,yt=assocIndexOf$1(Et,ht);return yt<0?void 0:Et[yt][1]}function listCacheHas$1(ht){return assocIndexOf$1(this.__data__,ht)>-1}function listCacheSet$1(ht,Et){var yt=this.__data__,Ct=assocIndexOf$1(yt,ht);return Ct<0?(++this.size,yt.push([ht,Et])):yt[Ct][1]=Et,this}function ListCache$1(ht){var Et=-1,yt=ht==null?0:ht.length;for(this.clear();++Et<yt;){var Ct=ht[Et];this.set(Ct[0],Ct[1])}}ListCache$1.prototype.clear=listCacheClear$1;ListCache$1.prototype.delete=listCacheDelete$1;ListCache$1.prototype.get=listCacheGet$1;ListCache$1.prototype.has=listCacheHas$1;ListCache$1.prototype.set=listCacheSet$1;var Map$2=getNative$1(root$3,"Map");function mapCacheClear$1(){this.size=0,this.__data__={hash:new Hash$2,map:new(Map$2||ListCache$1),string:new Hash$2}}function isKeyable$1(ht){var Et=typeof ht;return Et=="string"||Et=="number"||Et=="symbol"||Et=="boolean"?ht!=="__proto__":ht===null}function getMapData$1(ht,Et){var yt=ht.__data__;return isKeyable$1(Et)?yt[typeof Et=="string"?"string":"hash"]:yt.map}function mapCacheDelete$1(ht){var Et=getMapData$1(this,ht).delete(ht);return this.size-=Et?1:0,Et}function mapCacheGet$1(ht){return getMapData$1(this,ht).get(ht)}function mapCacheHas$1(ht){return getMapData$1(this,ht).has(ht)}function mapCacheSet$1(ht,Et){var yt=getMapData$1(this,ht),Ct=yt.size;return yt.set(ht,Et),this.size+=yt.size==Ct?0:1,this}function MapCache$1(ht){var Et=-1,yt=ht==null?0:ht.length;for(this.clear();++Et<yt;){var Ct=ht[Et];this.set(Ct[0],Ct[1])}}MapCache$1.prototype.clear=mapCacheClear$1;MapCache$1.prototype.delete=mapCacheDelete$1;MapCache$1.prototype.get=mapCacheGet$1;MapCache$1.prototype.has=mapCacheHas$1;MapCache$1.prototype.set=mapCacheSet$1;var FUNC_ERROR_TEXT$2="Expected a function";function memoize$1(ht,Et){if(typeof ht!="function"||Et!=null&&typeof Et!="function")throw new TypeError(FUNC_ERROR_TEXT$2);var yt=function(){var Ct=arguments,$t=Et?Et.apply(this,Ct):Ct[0],At=yt.cache;if(At.has($t))return At.get($t);var Bt=ht.apply(this,Ct);return yt.cache=At.set($t,Bt)||At,Bt};return yt.cache=new(memoize$1.Cache||MapCache$1),yt}memoize$1.Cache=MapCache$1;var MAX_MEMOIZE_SIZE=500;function memoizeCapped(ht){var Et=memoize$1(ht,function(Ct){return yt.size===MAX_MEMOIZE_SIZE&&yt.clear(),Ct}),yt=Et.cache;return Et}var rePropName$1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar$1=/\\(\\)?/g,stringToPath$1=memoizeCapped(function(ht){var Et=[];return ht.charCodeAt(0)===46&&Et.push(""),ht.replace(rePropName$1,function(yt,Ct,$t,At){Et.push($t?At.replace(reEscapeChar$1,"$1"):Ct||yt)}),Et});function toString$d(ht){return ht==null?"":baseToString$1(ht)}function castPath$1(ht,Et){return isArray$7(ht)?ht:isKey$1(ht,Et)?[ht]:stringToPath$1(toString$d(ht))}var INFINITY$1=1/0;function toKey$1(ht){if(typeof ht=="string"||isSymbol$6(ht))return ht;var Et=ht+"";return Et=="0"&&1/ht==-INFINITY$1?"-0":Et}function baseGet$1(ht,Et){Et=castPath$1(Et,ht);for(var yt=0,Ct=Et.length;ht!=null&&yt<Ct;)ht=ht[toKey$1(Et[yt++])];return yt&&yt==Ct?ht:void 0}function arrayPush(ht,Et){for(var yt=-1,Ct=Et.length,$t=ht.length;++yt<Ct;)ht[$t+yt]=Et[yt];return ht}var spreadableSymbol=Symbol$5?Symbol$5.isConcatSpreadable:void 0;function isFlattenable(ht){return isArray$7(ht)||isArguments(ht)||!!(spreadableSymbol&&ht&&ht[spreadableSymbol])}function baseFlatten(ht,Et,yt,Ct,$t){var At=-1,Bt=ht.length;for(yt||(yt=isFlattenable),$t||($t=[]);++At<Bt;){var Dt=ht[At];yt(Dt)?arrayPush($t,Dt):Ct||($t[$t.length]=Dt)}return $t}function flatten(ht){var Et=ht==null?0:ht.length;return Et?baseFlatten(ht):[]}function flatRest(ht){return setToString(overRest(ht,void 0,flatten),ht+"")}var getPrototype$1=overArg$1(Object.getPrototypeOf,Object),objectTag$3="[object Object]",funcProto$2=Function.prototype,objectProto$4=Object.prototype,funcToString$2=funcProto$2.toString,hasOwnProperty$5=objectProto$4.hasOwnProperty,objectCtorString$1=funcToString$2.call(Object);function isPlainObject$2(ht){if(!isObjectLike$2(ht)||baseGetTag$1(ht)!=objectTag$3)return!1;var Et=getPrototype$1(ht);if(Et===null)return!0;var yt=hasOwnProperty$5.call(Et,"constructor")&&Et.constructor;return typeof yt=="function"&&yt instanceof yt&&funcToString$2.call(yt)==objectCtorString$1}function baseSlice(ht,Et,yt){var Ct=-1,$t=ht.length;Et<0&&(Et=-Et>$t?0:$t+Et),yt=yt>$t?$t:yt,yt<0&&(yt+=$t),$t=Et>yt?0:yt-Et>>>0,Et>>>=0;for(var At=Array($t);++Ct<$t;)At[Ct]=ht[Ct+Et];return At}function stackClear(){this.__data__=new ListCache$1,this.size=0}function stackDelete(ht){var Et=this.__data__,yt=Et.delete(ht);return this.size=Et.size,yt}function stackGet(ht){return this.__data__.get(ht)}function stackHas(ht){return this.__data__.has(ht)}var LARGE_ARRAY_SIZE=200;function stackSet(ht,Et){var yt=this.__data__;if(yt instanceof ListCache$1){var Ct=yt.__data__;if(!Map$2||Ct.length<LARGE_ARRAY_SIZE-1)return Ct.push([ht,Et]),this.size=++yt.size,this;yt=this.__data__=new MapCache$1(Ct)}return yt.set(ht,Et),this.size=yt.size,this}function Stack(ht){var Et=this.__data__=new ListCache$1(ht);this.size=Et.size}Stack.prototype.clear=stackClear;Stack.prototype.delete=stackDelete;Stack.prototype.get=stackGet;Stack.prototype.has=stackHas;Stack.prototype.set=stackSet;function baseAssign(ht,Et){return ht&&copyObject(Et,keys$3(Et),ht)}function baseAssignIn(ht,Et){return ht&&copyObject(Et,keysIn(Et),ht)}var freeExports=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,Buffer=moduleExports?root$3.Buffer:void 0,allocUnsafe=Buffer?Buffer.allocUnsafe:void 0;function cloneBuffer(ht,Et){if(Et)return ht.slice();var yt=ht.length,Ct=allocUnsafe?allocUnsafe(yt):new ht.constructor(yt);return ht.copy(Ct),Ct}function arrayFilter(ht,Et){for(var yt=-1,Ct=ht==null?0:ht.length,$t=0,At=[];++yt<Ct;){var Bt=ht[yt];Et(Bt,yt,ht)&&(At[$t++]=Bt)}return At}function stubArray(){return[]}var objectProto$3=Object.prototype,propertyIsEnumerable=objectProto$3.propertyIsEnumerable,nativeGetSymbols$1=Object.getOwnPropertySymbols,getSymbols=nativeGetSymbols$1?function(ht){return ht==null?[]:(ht=Object(ht),arrayFilter(nativeGetSymbols$1(ht),function(Et){return propertyIsEnumerable.call(ht,Et)}))}:stubArray;function copySymbols(ht,Et){return copyObject(ht,getSymbols(ht),Et)}var nativeGetSymbols=Object.getOwnPropertySymbols,getSymbolsIn=nativeGetSymbols?function(ht){for(var Et=[];ht;)arrayPush(Et,getSymbols(ht)),ht=getPrototype$1(ht);return Et}:stubArray;function copySymbolsIn(ht,Et){return copyObject(ht,getSymbolsIn(ht),Et)}function baseGetAllKeys(ht,Et,yt){var Ct=Et(ht);return isArray$7(ht)?Ct:arrayPush(Ct,yt(ht))}function getAllKeys(ht){return baseGetAllKeys(ht,keys$3,getSymbols)}function getAllKeysIn(ht){return baseGetAllKeys(ht,keysIn,getSymbolsIn)}var DataView$1=getNative$1(root$3,"DataView"),Promise$1=getNative$1(root$3,"Promise"),Set$1=getNative$1(root$3,"Set"),mapTag$3="[object Map]",objectTag$2="[object Object]",promiseTag="[object Promise]",setTag$3="[object Set]",weakMapTag$1="[object WeakMap]",dataViewTag$2="[object DataView]",dataViewCtorString=toSource$1(DataView$1),mapCtorString=toSource$1(Map$2),promiseCtorString=toSource$1(Promise$1),setCtorString=toSource$1(Set$1),weakMapCtorString=toSource$1(WeakMap$3),getTag=baseGetTag$1;(DataView$1&&getTag(new DataView$1(new ArrayBuffer(1)))!=dataViewTag$2||Map$2&&getTag(new Map$2)!=mapTag$3||Promise$1&&getTag(Promise$1.resolve())!=promiseTag||Set$1&&getTag(new Set$1)!=setTag$3||WeakMap$3&&getTag(new WeakMap$3)!=weakMapTag$1)&&(getTag=function(ht){var Et=baseGetTag$1(ht),yt=Et==objectTag$2?ht.constructor:void 0,Ct=yt?toSource$1(yt):"";if(Ct)switch(Ct){case dataViewCtorString:return dataViewTag$2;case mapCtorString:return mapTag$3;case promiseCtorString:return promiseTag;case setCtorString:return setTag$3;case weakMapCtorString:return weakMapTag$1}return Et});var objectProto$2=Object.prototype,hasOwnProperty$4=objectProto$2.hasOwnProperty;function initCloneArray(ht){var Et=ht.length,yt=new ht.constructor(Et);return Et&&typeof ht[0]=="string"&&hasOwnProperty$4.call(ht,"index")&&(yt.index=ht.index,yt.input=ht.input),yt}var Uint8Array$1=root$3.Uint8Array;function cloneArrayBuffer(ht){var Et=new ht.constructor(ht.byteLength);return new Uint8Array$1(Et).set(new Uint8Array$1(ht)),Et}function cloneDataView(ht,Et){var yt=Et?cloneArrayBuffer(ht.buffer):ht.buffer;return new ht.constructor(yt,ht.byteOffset,ht.byteLength)}var reFlags=/\w*$/;function cloneRegExp(ht){var Et=new ht.constructor(ht.source,reFlags.exec(ht));return Et.lastIndex=ht.lastIndex,Et}var symbolProto$1=Symbol$5?Symbol$5.prototype:void 0,symbolValueOf=symbolProto$1?symbolProto$1.valueOf:void 0;function cloneSymbol(ht){return symbolValueOf?Object(symbolValueOf.call(ht)):{}}function cloneTypedArray(ht,Et){var yt=Et?cloneArrayBuffer(ht.buffer):ht.buffer;return new ht.constructor(yt,ht.byteOffset,ht.length)}var boolTag$1="[object Boolean]",dateTag$1="[object Date]",mapTag$2="[object Map]",numberTag$1="[object Number]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$1="[object String]",symbolTag$2="[object Symbol]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag$1="[object Float32Array]",float64Tag$1="[object Float64Array]",int8Tag$1="[object Int8Array]",int16Tag$1="[object Int16Array]",int32Tag$1="[object Int32Array]",uint8Tag$1="[object Uint8Array]",uint8ClampedTag$1="[object Uint8ClampedArray]",uint16Tag$1="[object Uint16Array]",uint32Tag$1="[object Uint32Array]";function initCloneByTag(ht,Et,yt){var Ct=ht.constructor;switch(Et){case arrayBufferTag$1:return cloneArrayBuffer(ht);case boolTag$1:case dateTag$1:return new Ct(+ht);case dataViewTag$1:return cloneDataView(ht,yt);case float32Tag$1:case float64Tag$1:case int8Tag$1:case int16Tag$1:case int32Tag$1:case uint8Tag$1:case uint8ClampedTag$1:case uint16Tag$1:case uint32Tag$1:return cloneTypedArray(ht,yt);case mapTag$2:return new Ct;case numberTag$1:case stringTag$1:return new Ct(ht);case regexpTag$1:return cloneRegExp(ht);case setTag$2:return new Ct;case symbolTag$2:return cloneSymbol(ht)}}function initCloneObject(ht){return typeof ht.constructor=="function"&&!isPrototype(ht)?baseCreate(getPrototype$1(ht)):{}}var mapTag$1="[object Map]";function baseIsMap(ht){return isObjectLike$2(ht)&&getTag(ht)==mapTag$1}var nodeIsMap=nodeUtil&&nodeUtil.isMap,isMap=nodeIsMap?baseUnary(nodeIsMap):baseIsMap,setTag$1="[object Set]";function baseIsSet(ht){return isObjectLike$2(ht)&&getTag(ht)==setTag$1}var nodeIsSet=nodeUtil&&nodeUtil.isSet,isSet=nodeIsSet?baseUnary(nodeIsSet):baseIsSet,CLONE_DEEP_FLAG$2=1,CLONE_FLAT_FLAG$1=2,CLONE_SYMBOLS_FLAG$2=4,argsTag="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag$1="[object Function]",genTag$1="[object GeneratorFunction]",mapTag="[object Map]",numberTag="[object Number]",objectTag$1="[object Object]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag$1="[object Symbol]",weakMapTag="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",cloneableTags={};cloneableTags[argsTag]=cloneableTags[arrayTag]=cloneableTags[arrayBufferTag]=cloneableTags[dataViewTag]=cloneableTags[boolTag]=cloneableTags[dateTag]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag]=cloneableTags[numberTag]=cloneableTags[objectTag$1]=cloneableTags[regexpTag]=cloneableTags[setTag]=cloneableTags[stringTag]=cloneableTags[symbolTag$1]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0;cloneableTags[errorTag]=cloneableTags[funcTag$1]=cloneableTags[weakMapTag]=!1;function baseClone(ht,Et,yt,Ct,$t,At){var Bt,Dt=Et&CLONE_DEEP_FLAG$2,Ft=Et&CLONE_FLAT_FLAG$1,kt=Et&CLONE_SYMBOLS_FLAG$2;if(yt&&(Bt=$t?yt(ht,Ct,$t,At):yt(ht)),Bt!==void 0)return Bt;if(!isObject$g(ht))return ht;var Mt=isArray$7(ht);if(Mt){if(Bt=initCloneArray(ht),!Dt)return copyArray(ht,Bt)}else{var Nt=getTag(ht),jt=Nt==funcTag$1||Nt==genTag$1;if(isBuffer$1(ht))return cloneBuffer(ht,Dt);if(Nt==objectTag$1||Nt==argsTag||jt&&!$t){if(Bt=Ft||jt?{}:initCloneObject(ht),!Dt)return Ft?copySymbolsIn(ht,baseAssignIn(Bt,ht)):copySymbols(ht,baseAssign(Bt,ht))}else{if(!cloneableTags[Nt])return $t?ht:{};Bt=initCloneByTag(ht,Nt,Dt)}}At||(At=new Stack);var zt=At.get(ht);if(zt)return zt;At.set(ht,Bt),isSet(ht)?ht.forEach(function(Xt){Bt.add(baseClone(Xt,Et,yt,Xt,ht,At))}):isMap(ht)&&ht.forEach(function(Xt,Qt){Bt.set(Qt,baseClone(Xt,Et,yt,Qt,ht,At))});var Vt=kt?Ft?getAllKeysIn:getAllKeys:Ft?keysIn:keys$3,Kt=Mt?void 0:Vt(ht);return arrayEach(Kt||ht,function(Xt,Qt){Kt&&(Qt=Xt,Xt=ht[Qt]),assignValue(Bt,Qt,baseClone(Xt,Et,yt,Qt,ht,At))}),Bt}var CLONE_DEEP_FLAG$1=1,CLONE_SYMBOLS_FLAG$1=4;function cloneDeep(ht){return baseClone(ht,CLONE_DEEP_FLAG$1|CLONE_SYMBOLS_FLAG$1)}var HASH_UNDEFINED$1="__lodash_hash_undefined__";function setCacheAdd(ht){return this.__data__.set(ht,HASH_UNDEFINED$1),this}function setCacheHas(ht){return this.__data__.has(ht)}function SetCache(ht){var Et=-1,yt=ht==null?0:ht.length;for(this.__data__=new MapCache$1;++Et<yt;)this.add(ht[Et])}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;function cacheHas(ht,Et){return ht.has(Et)}var now$1=function(){return root$3.Date.now()},FUNC_ERROR_TEXT$1="Expected a function",nativeMax=Math.max,nativeMin$1=Math.min;function debounce$3(ht,Et,yt){var Ct,$t,At,Bt,Dt,Ft,kt=0,Mt=!1,Nt=!1,jt=!0;if(typeof ht!="function")throw new TypeError(FUNC_ERROR_TEXT$1);Et=toNumber$1(Et)||0,isObject$g(yt)&&(Mt=!!yt.leading,Nt="maxWait"in yt,At=Nt?nativeMax(toNumber$1(yt.maxWait)||0,Et):At,jt="trailing"in yt?!!yt.trailing:jt);function zt(pr){var gr=Ct,vr=$t;return Ct=$t=void 0,kt=pr,Bt=ht.apply(vr,gr),Bt}function Vt(pr){return kt=pr,Dt=setTimeout(Qt,Et),Mt?zt(pr):Bt}function Kt(pr){var gr=pr-Ft,vr=pr-kt,yr=Et-gr;return Nt?nativeMin$1(yr,At-vr):yr}function Xt(pr){var gr=pr-Ft,vr=pr-kt;return Ft===void 0||gr>=Et||gr<0||Nt&&vr>=At}function Qt(){var pr=now$1();if(Xt(pr))return Zt(pr);Dt=setTimeout(Qt,Kt(pr))}function Zt(pr){return Dt=void 0,jt&&Ct?zt(pr):(Ct=$t=void 0,Bt)}function dr(){Dt!==void 0&&clearTimeout(Dt),kt=0,Ct=Ft=$t=Dt=void 0}function cr(){return Dt===void 0?Bt:Zt(now$1())}function Er(){var pr=now$1(),gr=Xt(pr);if(Ct=arguments,$t=this,Ft=pr,gr){if(Dt===void 0)return Vt(Ft);if(Nt)return clearTimeout(Dt),Dt=setTimeout(Qt,Et),zt(Ft)}return Dt===void 0&&(Dt=setTimeout(Qt,Et)),Bt}return Er.cancel=dr,Er.flush=cr,Er}function isArrayLikeObject(ht){return isObjectLike$2(ht)&&isArrayLike(ht)}function last$1(ht){var Et=ht==null?0:ht.length;return Et?ht[Et-1]:void 0}var nativeMin=Math.min;function baseIntersection(ht,Et,yt){for(var Ct=arrayIncludes$1,$t=ht[0].length,At=ht.length,Bt=At,Dt=Array(At),Ft=1/0,kt=[];Bt--;){var Mt=ht[Bt];Bt&&Et&&(Mt=arrayMap(Mt,baseUnary(Et))),Ft=nativeMin(Mt.length,Ft),Dt[Bt]=$t>=120&&Mt.length>=120?new SetCache(Bt&&Mt):void 0}Mt=ht[0];var Nt=-1,jt=Dt[0];e:for(;++Nt<$t&&kt.length<Ft;){var zt=Mt[Nt],Vt=zt;if(zt=zt!==0?zt:0,!(jt?cacheHas(jt,Vt):Ct(kt,Vt))){for(Bt=At;--Bt;){var Kt=Dt[Bt];if(!(Kt?cacheHas(Kt,Vt):Ct(ht[Bt],Vt)))continue e}jt&&jt.push(Vt),kt.push(zt)}}return kt}function castArrayLikeObject(ht){return isArrayLikeObject(ht)?ht:[]}var intersection=baseRest(function(ht){var Et=arrayMap(ht,castArrayLikeObject);return Et.length&&Et[0]===ht[0]?baseIntersection(Et):[]});function parent$f(ht,Et){return Et.length<2?ht:baseGet$1(ht,baseSlice(Et,0,-1))}function isNil(ht){return ht==null}function baseUnset(ht,Et){return Et=castPath$1(Et,ht),ht=parent$f(ht,Et),ht==null||delete ht[toKey$1(last$1(Et))]}function customOmitClone(ht){return isPlainObject$2(ht)?void 0:ht}var CLONE_DEEP_FLAG=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG=4,omit=flatRest(function(ht,Et){var yt={};if(ht==null)return yt;var Ct=!1;Et=arrayMap(Et,function(At){return At=castPath$1(At,ht),Ct||(Ct=At.length>1),At}),copyObject(ht,getAllKeysIn(ht),yt),Ct&&(yt=baseClone(yt,CLONE_DEEP_FLAG|CLONE_FLAT_FLAG|CLONE_SYMBOLS_FLAG,customOmitClone));for(var $t=Et.length;$t--;)baseUnset(yt,Et[$t]);return yt});function r$6(ht){var Et,yt,Ct="";if(typeof ht=="string"||typeof ht=="number")Ct+=ht;else if(typeof ht=="object")if(Array.isArray(ht)){var $t=ht.length;for(Et=0;Et<$t;Et++)ht[Et]&&(yt=r$6(ht[Et]))&&(Ct&&(Ct+=" "),Ct+=yt)}else for(yt in ht)ht[yt]&&(Ct&&(Ct+=" "),Ct+=yt);return Ct}function clsx(){for(var ht,Et,yt=0,Ct="",$t=arguments.length;yt<$t;yt++)(ht=arguments[yt])&&(Et=r$6(ht))&&(Ct&&(Ct+=" "),Ct+=Et);return Ct}const c$8=ht=>typeof ht=="number"&&!isNaN(ht),d$9=ht=>typeof ht=="string",u$a=ht=>typeof ht=="function",p$8=ht=>d$9(ht)||u$a(ht)?ht:null,m$4=ht=>reactExports.isValidElement(ht)||d$9(ht)||u$a(ht)||c$8(ht);function f$9(ht,Et,yt){yt===void 0&&(yt=300);const{scrollHeight:Ct,style:$t}=ht;requestAnimationFrame(()=>{$t.minHeight="initial",$t.height=Ct+"px",$t.transition=`all ${yt}ms`,requestAnimationFrame(()=>{$t.height="0",$t.padding="0",$t.margin="0",setTimeout(Et,yt)})})}function g$2(ht){let{enter:Et,exit:yt,appendPosition:Ct=!1,collapse:$t=!0,collapseDuration:At=300}=ht;return function(Bt){let{children:Dt,position:Ft,preventExitTransition:kt,done:Mt,nodeRef:Nt,isIn:jt,playToast:zt}=Bt;const Vt=Ct?`${Et}--${Ft}`:Et,Kt=Ct?`${yt}--${Ft}`:yt,Xt=reactExports.useRef(0);return reactExports.useLayoutEffect(()=>{const Qt=Nt.current,Zt=Vt.split(" "),dr=cr=>{cr.target===Nt.current&&(zt(),Qt.removeEventListener("animationend",dr),Qt.removeEventListener("animationcancel",dr),Xt.current===0&&cr.type!=="animationcancel"&&Qt.classList.remove(...Zt))};Qt.classList.add(...Zt),Qt.addEventListener("animationend",dr),Qt.addEventListener("animationcancel",dr)},[]),reactExports.useEffect(()=>{const Qt=Nt.current,Zt=()=>{Qt.removeEventListener("animationend",Zt),$t?f$9(Qt,Mt,At):Mt()};jt||(kt?Zt():(Xt.current=1,Qt.className+=` ${Kt}`,Qt.addEventListener("animationend",Zt)))},[jt]),React$8.createElement(React$8.Fragment,null,Dt)}}function y$5(ht,Et){return ht!=null?{content:ht.content,containerId:ht.props.containerId,id:ht.props.toastId,theme:ht.props.theme,type:ht.props.type,data:ht.props.data||{},isLoading:ht.props.isLoading,icon:ht.props.icon,status:Et}:{}}const v$4=new Map;let h$5=[];const T$4=new Set,E$1=ht=>T$4.forEach(Et=>Et(ht)),b$7=()=>v$4.size>0;function I$6(ht,Et){var yt;if(Et)return!((yt=v$4.get(Et))==null||!yt.isToastActive(ht));let Ct=!1;return v$4.forEach($t=>{$t.isToastActive(ht)&&(Ct=!0)}),Ct}function _$2(ht,Et){m$4(ht)&&(b$7()||h$5.push({content:ht,options:Et}),v$4.forEach(yt=>{yt.buildToast(ht,Et)}))}function C$1(ht,Et){v$4.forEach(yt=>{Et!=null&&Et!=null&&Et.containerId?(Et==null?void 0:Et.containerId)===yt.id&&yt.toggle(ht,Et==null?void 0:Et.id):yt.toggle(ht,Et==null?void 0:Et.id)})}function L(ht){const{subscribe:Et,getSnapshot:yt,setProps:Ct}=reactExports.useRef(function(At){const Bt=At.containerId||1;return{subscribe(Dt){const Ft=function(Mt,Nt,jt){let zt=1,Vt=0,Kt=[],Xt=[],Qt=[],Zt=Nt;const dr=new Map,cr=new Set,Er=()=>{Qt=Array.from(dr.values()),cr.forEach(vr=>vr())},pr=vr=>{Xt=vr==null?[]:Xt.filter(yr=>yr!==vr),Er()},gr=vr=>{const{toastId:yr,onOpen:xr,updateId:rr,children:Lt}=vr.props,Ht=rr==null;vr.staleId&&dr.delete(vr.staleId),dr.set(yr,vr),Xt=[...Xt,vr.props.toastId].filter(Wt=>Wt!==vr.staleId),Er(),jt(y$5(vr,Ht?"added":"updated")),Ht&&u$a(xr)&&xr(reactExports.isValidElement(Lt)&&Lt.props)};return{id:Mt,props:Zt,observe:vr=>(cr.add(vr),()=>cr.delete(vr)),toggle:(vr,yr)=>{dr.forEach(xr=>{yr!=null&&yr!==xr.props.toastId||u$a(xr.toggle)&&xr.toggle(vr)})},removeToast:pr,toasts:dr,clearQueue:()=>{Vt-=Kt.length,Kt=[]},buildToast:(vr,yr)=>{if((Cr=>{let{containerId:_r,toastId:$r,updateId:Tr}=Cr;const Dr=_r?_r!==Mt:Mt!==1,Ar=dr.has($r)&&Tr==null;return Dr||Ar})(yr))return;const{toastId:xr,updateId:rr,data:Lt,staleId:Ht,delay:Wt}=yr,Gt=()=>{pr(xr)},Yt=rr==null;Yt&&Vt++;const er={...Zt,style:Zt.toastStyle,key:zt++,...Object.fromEntries(Object.entries(yr).filter(Cr=>{let[_r,$r]=Cr;return $r!=null})),toastId:xr,updateId:rr,data:Lt,closeToast:Gt,isIn:!1,className:p$8(yr.className||Zt.toastClassName),bodyClassName:p$8(yr.bodyClassName||Zt.bodyClassName),progressClassName:p$8(yr.progressClassName||Zt.progressClassName),autoClose:!yr.isLoading&&(lr=yr.autoClose,Jt=Zt.autoClose,lr===!1||c$8(lr)&&lr>0?lr:Jt),deleteToast(){const Cr=dr.get(xr),{onClose:_r,children:$r}=Cr.props;u$a(_r)&&_r(reactExports.isValidElement($r)&&$r.props),jt(y$5(Cr,"removed")),dr.delete(xr),Vt--,Vt<0&&(Vt=0),Kt.length>0?gr(Kt.shift()):Er()}};var lr,Jt;er.closeButton=Zt.closeButton,yr.closeButton===!1||m$4(yr.closeButton)?er.closeButton=yr.closeButton:yr.closeButton===!0&&(er.closeButton=!m$4(Zt.closeButton)||Zt.closeButton);let Ut=vr;reactExports.isValidElement(vr)&&!d$9(vr.type)?Ut=reactExports.cloneElement(vr,{closeToast:Gt,toastProps:er,data:Lt}):u$a(vr)&&(Ut=vr({closeToast:Gt,toastProps:er,data:Lt}));const ir={content:Ut,props:er,staleId:Ht};Zt.limit&&Zt.limit>0&&Vt>Zt.limit&&Yt?Kt.push(ir):c$8(Wt)?setTimeout(()=>{gr(ir)},Wt):gr(ir)},setProps(vr){Zt=vr},setToggle:(vr,yr)=>{dr.get(vr).toggle=yr},isToastActive:vr=>Xt.some(yr=>yr===vr),getSnapshot:()=>Zt.newestOnTop?Qt.reverse():Qt}}(Bt,At,E$1);v$4.set(Bt,Ft);const kt=Ft.observe(Dt);return h$5.forEach(Mt=>_$2(Mt.content,Mt.options)),h$5=[],()=>{kt(),v$4.delete(Bt)}},setProps(Dt){var Ft;(Ft=v$4.get(Bt))==null||Ft.setProps(Dt)},getSnapshot(){var Dt;return(Dt=v$4.get(Bt))==null?void 0:Dt.getSnapshot()}}}(ht)).current;Ct(ht);const $t=reactExports.useSyncExternalStore(Et,yt,yt);return{getToastToRender:function(At){if(!$t)return[];const Bt=new Map;return $t.forEach(Dt=>{const{position:Ft}=Dt.props;Bt.has(Ft)||Bt.set(Ft,[]),Bt.get(Ft).push(Dt)}),Array.from(Bt,Dt=>At(Dt[0],Dt[1]))},isToastActive:I$6,count:$t==null?void 0:$t.length}}function N$3(ht){const[Et,yt]=reactExports.useState(!1),[Ct,$t]=reactExports.useState(!1),At=reactExports.useRef(null),Bt=reactExports.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:Dt,pauseOnHover:Ft,closeToast:kt,onClick:Mt,closeOnClick:Nt}=ht;var jt,zt;function Vt(){yt(!0)}function Kt(){yt(!1)}function Xt(dr){const cr=At.current;Bt.canDrag&&cr&&(Bt.didMove=!0,Et&&Kt(),Bt.delta=ht.draggableDirection==="x"?dr.clientX-Bt.start:dr.clientY-Bt.start,Bt.start!==dr.clientX&&(Bt.canCloseOnClick=!1),cr.style.transform=`translate3d(${ht.draggableDirection==="x"?`${Bt.delta}px, var(--y)`:`0, calc(${Bt.delta}px + var(--y))`},0)`,cr.style.opacity=""+(1-Math.abs(Bt.delta/Bt.removalDistance)))}function Qt(){document.removeEventListener("pointermove",Xt),document.removeEventListener("pointerup",Qt);const dr=At.current;if(Bt.canDrag&&Bt.didMove&&dr){if(Bt.canDrag=!1,Math.abs(Bt.delta)>Bt.removalDistance)return $t(!0),ht.closeToast(),void ht.collapseAll();dr.style.transition="transform 0.2s, opacity 0.2s",dr.style.removeProperty("transform"),dr.style.removeProperty("opacity")}}(zt=v$4.get((jt={id:ht.toastId,containerId:ht.containerId,fn:yt}).containerId||1))==null||zt.setToggle(jt.id,jt.fn),reactExports.useEffect(()=>{if(ht.pauseOnFocusLoss)return document.hasFocus()||Kt(),window.addEventListener("focus",Vt),window.addEventListener("blur",Kt),()=>{window.removeEventListener("focus",Vt),window.removeEventListener("blur",Kt)}},[ht.pauseOnFocusLoss]);const Zt={onPointerDown:function(dr){if(ht.draggable===!0||ht.draggable===dr.pointerType){Bt.didMove=!1,document.addEventListener("pointermove",Xt),document.addEventListener("pointerup",Qt);const cr=At.current;Bt.canCloseOnClick=!0,Bt.canDrag=!0,cr.style.transition="none",ht.draggableDirection==="x"?(Bt.start=dr.clientX,Bt.removalDistance=cr.offsetWidth*(ht.draggablePercent/100)):(Bt.start=dr.clientY,Bt.removalDistance=cr.offsetHeight*(ht.draggablePercent===80?1.5*ht.draggablePercent:ht.draggablePercent)/100)}},onPointerUp:function(dr){const{top:cr,bottom:Er,left:pr,right:gr}=At.current.getBoundingClientRect();dr.nativeEvent.type!=="touchend"&&ht.pauseOnHover&&dr.clientX>=pr&&dr.clientX<=gr&&dr.clientY>=cr&&dr.clientY<=Er?Kt():Vt()}};return Dt&&Ft&&(Zt.onMouseEnter=Kt,ht.stacked||(Zt.onMouseLeave=Vt)),Nt&&(Zt.onClick=dr=>{Mt&&Mt(dr),Bt.canCloseOnClick&&kt()}),{playToast:Vt,pauseToast:Kt,isRunning:Et,preventExitTransition:Ct,toastRef:At,eventHandlers:Zt}}function $$l(ht){let{delay:Et,isRunning:yt,closeToast:Ct,type:$t="default",hide:At,className:Bt,style:Dt,controlledProgress:Ft,progress:kt,rtl:Mt,isIn:Nt,theme:jt}=ht;const zt=At||Ft&&kt===0,Vt={...Dt,animationDuration:`${Et}ms`,animationPlayState:yt?"running":"paused"};Ft&&(Vt.transform=`scaleX(${kt})`);const Kt=clsx("Toastify__progress-bar",Ft?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${jt}`,`Toastify__progress-bar--${$t}`,{"Toastify__progress-bar--rtl":Mt}),Xt=u$a(Bt)?Bt({rtl:Mt,type:$t,defaultClassName:Kt}):clsx(Kt,Bt),Qt={[Ft&&kt>=1?"onTransitionEnd":"onAnimationEnd"]:Ft&&kt<1?null:()=>{Nt&&Ct()}};return React$8.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":zt},React$8.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${jt} Toastify__progress-bar--${$t}`}),React$8.createElement("div",{role:"progressbar","aria-hidden":zt?"true":"false","aria-label":"notification timer",className:Xt,style:Vt,...Qt}))}let w$4=1;const k$2=()=>""+w$4++;function P$3(ht){return ht&&(d$9(ht.toastId)||c$8(ht.toastId))?ht.toastId:k$2()}function M$3(ht,Et){return _$2(ht,Et),Et.toastId}function x$3(ht,Et){return{...Et,type:Et&&Et.type||ht,toastId:P$3(Et)}}function A$1(ht){return(Et,yt)=>M$3(Et,x$3(ht,yt))}function B(ht,Et){return M$3(ht,x$3("default",Et))}B.loading=(ht,Et)=>M$3(ht,x$3("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...Et})),B.promise=function(ht,Et,yt){let Ct,{pending:$t,error:At,success:Bt}=Et;$t&&(Ct=d$9($t)?B.loading($t,yt):B.loading($t.render,{...yt,...$t}));const Dt={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},Ft=(Mt,Nt,jt)=>{if(Nt==null)return void B.dismiss(Ct);const zt={type:Mt,...Dt,...yt,data:jt},Vt=d$9(Nt)?{render:Nt}:Nt;return Ct?B.update(Ct,{...zt,...Vt}):B(Vt.render,{...zt,...Vt}),jt},kt=u$a(ht)?ht():ht;return kt.then(Mt=>Ft("success",Bt,Mt)).catch(Mt=>Ft("error",At,Mt)),kt},B.success=A$1("success"),B.info=A$1("info"),B.error=A$1("error"),B.warning=A$1("warning"),B.warn=B.warning,B.dark=(ht,Et)=>M$3(ht,x$3("default",{theme:"dark",...Et})),B.dismiss=function(ht){(function(Et){var yt;if(b$7()){if(Et==null||d$9(yt=Et)||c$8(yt))v$4.forEach(Ct=>{Ct.removeToast(Et)});else if(Et&&("containerId"in Et||"id"in Et)){const Ct=v$4.get(Et.containerId);Ct?Ct.removeToast(Et.id):v$4.forEach($t=>{$t.removeToast(Et.id)})}}else h$5=h$5.filter(Ct=>Et!=null&&Ct.options.toastId!==Et)})(ht)},B.clearWaitingQueue=function(ht){ht===void 0&&(ht={}),v$4.forEach(Et=>{!Et.props.limit||ht.containerId&&Et.id!==ht.containerId||Et.clearQueue()})},B.isActive=I$6,B.update=function(ht,Et){Et===void 0&&(Et={});const yt=((Ct,$t)=>{var At;let{containerId:Bt}=$t;return(At=v$4.get(Bt||1))==null?void 0:At.toasts.get(Ct)})(ht,Et);if(yt){const{props:Ct,content:$t}=yt,At={delay:100,...Ct,...Et,toastId:Et.toastId||ht,updateId:k$2()};At.toastId!==ht&&(At.staleId=ht);const Bt=At.render||$t;delete At.render,M$3(Bt,At)}},B.done=ht=>{B.update(ht,{progress:1})},B.onChange=function(ht){return T$4.add(ht),()=>{T$4.delete(ht)}},B.play=ht=>C$1(!0,ht),B.pause=ht=>C$1(!1,ht);const O$2=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect,D$3=ht=>{let{theme:Et,type:yt,isLoading:Ct,...$t}=ht;return React$8.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:Et==="colored"?"currentColor":`var(--toastify-icon-color-${yt})`,...$t})},z$2={info:function(ht){return React$8.createElement(D$3,{...ht},React$8.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(ht){return React$8.createElement(D$3,{...ht},React$8.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(ht){return React$8.createElement(D$3,{...ht},React$8.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(ht){return React$8.createElement(D$3,{...ht},React$8.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return React$8.createElement("div",{className:"Toastify__spinner"})}},R$1=ht=>{const{isRunning:Et,preventExitTransition:yt,toastRef:Ct,eventHandlers:$t,playToast:At}=N$3(ht),{closeButton:Bt,children:Dt,autoClose:Ft,onClick:kt,type:Mt,hideProgressBar:Nt,closeToast:jt,transition:zt,position:Vt,className:Kt,style:Xt,bodyClassName:Qt,bodyStyle:Zt,progressClassName:dr,progressStyle:cr,updateId:Er,role:pr,progress:gr,rtl:vr,toastId:yr,deleteToast:xr,isIn:rr,isLoading:Lt,closeOnClick:Ht,theme:Wt}=ht,Gt=clsx("Toastify__toast",`Toastify__toast-theme--${Wt}`,`Toastify__toast--${Mt}`,{"Toastify__toast--rtl":vr},{"Toastify__toast--close-on-click":Ht}),Yt=u$a(Kt)?Kt({rtl:vr,position:Vt,type:Mt,defaultClassName:Gt}):clsx(Gt,Kt),er=function(ir){let{theme:Cr,type:_r,isLoading:$r,icon:Tr}=ir,Dr=null;const Ar={theme:Cr,type:_r};return Tr===!1||(u$a(Tr)?Dr=Tr({...Ar,isLoading:$r}):reactExports.isValidElement(Tr)?Dr=reactExports.cloneElement(Tr,Ar):$r?Dr=z$2.spinner():(Fr=>Fr in z$2)(_r)&&(Dr=z$2[_r](Ar))),Dr}(ht),lr=!!gr||!Ft,Jt={closeToast:jt,type:Mt,theme:Wt};let Ut=null;return Bt===!1||(Ut=u$a(Bt)?Bt(Jt):reactExports.isValidElement(Bt)?reactExports.cloneElement(Bt,Jt):function(ir){let{closeToast:Cr,theme:_r,ariaLabel:$r="close"}=ir;return React$8.createElement("button",{className:`Toastify__close-button Toastify__close-button--${_r}`,type:"button",onClick:Tr=>{Tr.stopPropagation(),Cr(Tr)},"aria-label":$r},React$8.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},React$8.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(Jt)),React$8.createElement(zt,{isIn:rr,done:xr,position:Vt,preventExitTransition:yt,nodeRef:Ct,playToast:At},React$8.createElement("div",{id:yr,onClick:kt,"data-in":rr,className:Yt,...$t,style:Xt,ref:Ct},React$8.createElement("div",{...rr&&{role:pr},className:u$a(Qt)?Qt({type:Mt}):clsx("Toastify__toast-body",Qt),style:Zt},er!=null&&React$8.createElement("div",{className:clsx("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!Lt})},er),React$8.createElement("div",null,Dt)),Ut,React$8.createElement($$l,{...Er&&!lr?{key:`pb-${Er}`}:{},rtl:vr,theme:Wt,delay:Ft,isRunning:Et,isIn:rr,closeToast:jt,hide:Nt,type:Mt,style:cr,className:dr,controlledProgress:lr,progress:gr||0})))},S$6=function(ht,Et){return Et===void 0&&(Et=!1),{enter:`Toastify--animate Toastify__${ht}-enter`,exit:`Toastify--animate Toastify__${ht}-exit`,appendPosition:Et}},H$1=g$2(S$6("bounce",!0));g$2(S$6("slide",!0));g$2(S$6("zoom"));g$2(S$6("flip"));const q$2={position:"top-right",transition:H$1,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function Q$1(ht){let Et={...q$2,...ht};const yt=ht.stacked,[Ct,$t]=reactExports.useState(!0),At=reactExports.useRef(null),{getToastToRender:Bt,isToastActive:Dt,count:Ft}=L(Et),{className:kt,style:Mt,rtl:Nt,containerId:jt}=Et;function zt(Kt){const Xt=clsx("Toastify__toast-container",`Toastify__toast-container--${Kt}`,{"Toastify__toast-container--rtl":Nt});return u$a(kt)?kt({position:Kt,rtl:Nt,defaultClassName:Xt}):clsx(Xt,p$8(kt))}function Vt(){yt&&($t(!0),B.play())}return O$2(()=>{if(yt){var Kt;const Xt=At.current.querySelectorAll('[data-in="true"]'),Qt=12,Zt=(Kt=Et.position)==null?void 0:Kt.includes("top");let dr=0,cr=0;Array.from(Xt).reverse().forEach((Er,pr)=>{const gr=Er;gr.classList.add("Toastify__toast--stacked"),pr>0&&(gr.dataset.collapsed=`${Ct}`),gr.dataset.pos||(gr.dataset.pos=Zt?"top":"bot");const vr=dr*(Ct?.2:1)+(Ct?0:Qt*pr);gr.style.setProperty("--y",`${Zt?vr:-1*vr}px`),gr.style.setProperty("--g",`${Qt}`),gr.style.setProperty("--s",""+(1-(Ct?cr:0))),dr+=gr.offsetHeight,cr+=.025})}},[Ct,Ft,yt]),React$8.createElement("div",{ref:At,className:"Toastify",id:jt,onMouseEnter:()=>{yt&&($t(!1),B.pause())},onMouseLeave:Vt},Bt((Kt,Xt)=>{const Qt=Xt.length?{...Mt}:{...Mt,pointerEvents:"none"};return React$8.createElement("div",{className:zt(Kt),style:Qt,key:`container-${Kt}`},Xt.map(Zt=>{let{content:dr,props:cr}=Zt;return React$8.createElement(R$1,{...cr,stacked:yt,collapseAll:Vt,isIn:Dt(cr.toastId,cr.containerId),style:cr.style,key:`toast-${cr.key}`},dr)}))}))}const SITE_KEY="6Le79UMpAAAAAIVdp0oB_o_m13_PnatEMLPscztR",SIDEBAR_COLLAPSED="sidebar_collapsed",VERIFY_EXPIRE_TIME="verify_expire_time",RECENT_SEARCHES="recentSearches",LOCAL_ABI="local_abi",FAVORITE_ATTACK_ID="favorite_attack_id",FULL_SCREEN_FEATURE_TIPS_VISIBLE="full_screen_feature_tips_visible",PHALCON_FORK_LOGO_DARK="https://assets.blocksec.com/image/1690370665957-2.png",PHALCON_FORK_LOGO_LIGHT="https://assets.blocksec.com/image/1704679179431-2.svg",PHALCON_FAVICON_DARK="https://assets.blocksec.com/image/1701661728136-2.svg",PHALCON_FAVICON_LIGHT="https://assets.blocksec.com/image/1705911486893-2.svg",SAFE_WALLET_LOGO="https://assets.blocksec.com/image/1702295932164-2.svg",BLOCKSEC_LOGO_LIGHT="https://assets.blocksec.com/image/1690356652768-9.png",BLOCKSEC_LOGO_DARK="https://assets.blocksec.com/image/1690356652768-10.png",BLOCKSEC_FAVICON_DARK="https://assets.blocksec.com/image/1711521665785-2.png",BLOCKSEC_FAVICON_LIGHT="https://assets.blocksec.com/image/1711521665785-3.png",FORK_LINK_LIGHT_LOGO="https://assets.blocksec.com/image/1688974453570-2.svg",FORK_LINK_DARK_LOGO="https://assets.blocksec.com/image/1682582577863-2.svg",METAMASK_LOGO="https://assets.blocksec.com/image/1702294762782-2.svg",WALLETCONNECT_LOGO="https://assets.blocksec.com/image/1702957115189-2.svg",CODE_STATUS={NO_ACTIVE:40100002,TOKEN_INVALID:40100004,SHARE_EXPIRED:40000003,UNAUTHORIZED:40100001,FORBIDDEN:40300001,PRODUCT_NOT_ENABLED:40300002,PRODUCT_EXPIRED:40300003,CACHE_EXPIRED:40300004},NetworkMap={ETHEREUM:{chainId:mainnet.id,symbol:"https://assets.blocksec.com/image/1706238425583-2.svg",simpleName:"ETH",unit:"Ether",fullName:"Ethereum",hrefPrefix:"https://etherscan.io/",scanName:"Etherscan",icon:"https://assets.blocksec.com/image/1675421254791-6.svg",...mainnet},SEPOLIA:{chainId:sepolia.id,symbol:"https://assets.blocksec.com/image/1706238425583-2.svg",simpleName:sepolia.name,unit:sepolia.nativeCurrency.symbol,hrefPrefix:"https://sepolia.etherscan.io/",fullName:sepolia.name,scanName:"Etherscan",icon:"https://assets.blocksec.com/image/1675421254791-6.svg",...sepolia},BINANCE:{chainId:bsc.id,symbol:"https://assets.blocksec.com/image/1706238425583-3.svg",simpleName:"BSC",unit:"BNB",fullName:bsc.name,hrefPrefix:"https://bscscan.com/",scanName:"BscScan",icon:"https://assets.blocksec.com/image/1675421254791-7.svg",...bsc},CRONOS:{chainId:cronos.id,symbol:"https://assets.blocksec.com/image/1706238425583-7.svg",simpleName:"CRO",unit:"CRO",fullName:"Cronos",hrefPrefix:"https://cronoscan.com/",scanName:"CronoScan",icon:"https://assets.blocksec.com/image/1675421254791-4.svg",...cronos},AVAX:{chainId:avalanche.id,symbol:"https://assets.blocksec.com/image/1706238425583-6.svg",simpleName:"Avalanche",unit:"AVAX",fullName:"Avalanche",hrefPrefix:"https://snowscan.xyz/",scanName:"SnowScan",icon:"https://assets.blocksec.com/image/1675421254791-2.svg",...avalanche},POLYGON:{chainId:polygon.id,symbol:"https://assets.blocksec.com/image/1706238425583-4.svg",simpleName:"Polygon",unit:"MATIC",fullName:"Polygon",hrefPrefix:"https://polygonscan.com/",scanName:"PolygonScan",icon:"https://assets.blocksec.com/image/1675421254791-5.svg",...polygon},ARBITRUM:{chainId:arbitrum.id,symbol:"https://assets.blocksec.com/image/1706238425583-5.svg",simpleName:"Arbitrum",unit:"Ether",fullName:"Arbitrum",hrefPrefix:"https://arbiscan.io/",scanName:"ARBISCAN",icon:"https://assets.blocksec.com/image/1675421254791-3.svg",...arbitrum},OPTIMISM:{chainId:optimism.id,symbol:"https://assets.blocksec.com/image/1706238425583-8.svg",simpleName:"Optimism",unit:"Ether",hrefPrefix:"https://optimistic.etherscan.io/",fullName:"Optimism",scanName:"Optimism",icon:"https://assets.blocksec.com/image/1676448600014-2.svg",...optimism},BASE:{chainId:base$1.id,symbol:"https://assets.blocksec.com/image/1700561698230-3.png",simpleName:base$1.name,unit:"Ether",fullName:base$1.name,hrefPrefix:"https://basescan.org/",scanName:"BaseScan",icon:"https://assets.blocksec.com/image/1700561698230-2.png",...base$1},FANTOM:{chainId:fantom.id,symbol:"https://assets.blocksec.com/image/1676448502622-2.svg",simpleName:"Fantom",unit:"FTM",hrefPrefix:"https://ftmscan.com/",fullName:"Fantom",scanName:"FTMScan",icon:"https://assets.blocksec.com/image/1676449057972-2.svg",...fantom},LINEA:{chainId:linea.id,symbol:"https://assets.blocksec.com/image/1700560564994-3.png",simpleName:"Linea",unit:"Ether",fullName:"Linea",hrefPrefix:"https://lineascan.build/",scanName:"LineaScan",icon:"https://assets.blocksec.com/image/1721646450757-7.svg",...linea},ZKSYNC:{chainId:zkSync.id,symbol:"https://assets.blocksec.com/image/1700560564994-2.png",simpleName:"zkSync-Era",unit:"Ether",fullName:zkSync.name,hrefPrefix:"https://era.zksync.network/",scanName:"ZkSync",icon:"https://assets.blocksec.com/image/1721646450757-6.svg",...zkSync},HOLESKY:{chainId:holesky.id,symbol:"https://assets.blocksec.com/image/1700644573494-3.png",simpleName:"Holesky",unit:"Ether",fullName:"Holesky",hrefPrefix:"https://holesky.etherscan.io/",scanName:"Etherscan",icon:"https://assets.blocksec.com/image/1675421254791-6.svg",...holesky},KAVA:{chainId:kava.id,symbol:"https://assets.blocksec.com/image/1702995473123-3.svg",simpleName:"Kava",unit:"KAVA",fullName:"Kava",hrefPrefix:"https://kavascan.com/",scanName:"Kavascan",icon:"https://assets.blocksec.com/image/1703043680227-3.svg",...kava},EVMOS:{chainId:evmos.id,symbol:"https://assets.blocksec.com/image/1695292802526-2.png",simpleName:evmos.name,unit:evmos.nativeCurrency.symbol,hrefPrefix:"https://escan.live/",fullName:evmos.name,scanName:"Evmos",icon:"https://assets.blocksec.com/image/1721646450757-2.svg",...evmos},MERLIN:{chainId:merlin.id,symbol:"https://assets.blocksec.com/image/1721897873276-2.png",simpleName:"MERLIN",unit:"BTC",fullName:"Merlin",hrefPrefix:"https://scan.merlinchain.io/",scanName:"Merlin",icon:"https://assets.blocksec.com/image/1721646450757-3.svg",...merlin},MANTA:{chainId:manta.id,symbol:"https://assets.blocksec.com/image/1718873511711-2.svg",simpleName:"Manta",unit:"Ether",fullName:"Manta",hrefPrefix:"https://manta.socialscan.io/",scanName:"Manta",icon:"https://assets.blocksec.com/image/1715675207656-2.svg",...manta},BSC_TESTNET:{chainId:bscTestnet.id,symbol:"https://assets.blocksec.com/image/1706238425583-3.svg",simpleName:"BSC-Testnet",unit:"BNB",fullName:"Binance Smart Chain",hrefPrefix:"https://testnet.bscscan.com/",scanName:"BSC Testnet",icon:"https://assets.blocksec.com/image/1675421254791-7.svg",...bscTestnet},SOLANA:{chainId:solana.id,symbol:"https://assets.blocksec.com/image/1718163500463-2.svg",simpleName:solana.name,unit:"Sol",scanName:"Solscan",fullName:"Solana",hrefPrefix:"https://solscan.io/",icon:"https://assets.blocksec.com/image/1721646450757-4.svg",...solana},MANTLE:{chainId:mantle.id,symbol:"https://assets.blocksec.com/image/1721387994429-2.svg",simpleName:mantle.name,unit:"MNT",scanName:"Mantlescan",fullName:"Mantle",hrefPrefix:"https://mantlescan.info/",icon:"https://assets.blocksec.com/image/1721646450757-5.svg",...mantle},STORY_PARTNER_TESTNET:{chainId:storyTestnet.id,hrefPrefix:"https://explorer.testnet.storyprotocol.net/",symbol:"https://assets.blocksec.com/image/1724913128320-2.svg",simpleName:"Story-Partner-Testnet",unit:"IP",fullName:"Story Partner Testnet",scanName:"Story Partner Testnet",icon:"https://assets.blocksec.com/image/1724913128320-3.svg",...storyTestnet},SCROLL:{chainId:scroll.id,symbol:"https://assets.blocksec.com/image/1724918972478-2.svg",simpleName:"Scroll",unit:"ETH",fullName:"Scroll",scanName:"Scrollscan",hrefPrefix:"https://scrollscan.com/",icon:"https://assets.blocksec.com/image/1724918972478-3.svg",...scroll},NEOX:{chainId:47763,symbol:"https://assets.blocksec.com/image/1729063562199-2.svg",unit:"GAS",simpleName:"Neo-X",fullName:"Neo X",scanName:"xexplorer",hrefPrefix:"https://xexplorer.neo.org/",icon:"https://assets.blocksec.com/image/1724913128320-3.svg"},ZK_LINK:{chainId:810180,symbol:"https://assets.blocksec.com/image/1729496130768-2.svg",unit:"ETH",simpleName:"zkLink-Nova",fullName:"zkLink Nova",scanName:"zkLink Nova Scan",hrefPrefix:"https://explorer.zklink.io/",icon:"https://assets.blocksec.com/image/1729496130768-2.svg"},SEI:{chainId:1329,symbol:"https://assets.blocksec.com/image/1730790406154-3.svg",unit:"SEI",simpleName:"SEI",fullName:"SEI",scanName:"Sei Scan",hrefPrefix:"https://www.mintscan.io/sei/",icon:"https://assets.blocksec.com/image/1730790406154-3.svg"},BITLAYER:{chainId:200901,symbol:"https://assets.blocksec.com/image/1730790406154-2.svg",unit:"BTC",simpleName:"BTR",fullName:"Bitlayer Mainnet",scanName:"Btrscan",hrefPrefix:"https://www.btrscan.com/",icon:"https://assets.blocksec.com/image/1730790406154-2.svg"},BOUNCEBIT:{chainId:6001,symbol:"https://assets.blocksec.com/image/1731988090284-2.svg",unit:"BB",simpleName:"BounceBit",fullName:"BounceBit Mainnet",scanName:"BBScan",hrefPrefix:"https://bbscan.io/",icon:"https://assets.blocksec.com/image/1731988090284-2.svg"},BOB:{chainId:60808,symbol:"https://assets.blocksec.com/image/1732087559048-3.svg",unit:"ETH",simpleName:"BOB",fullName:"BOB",scanName:"BOB explorer",hrefPrefix:"https://explorer.gobob.xyz/",icon:"https://assets.blocksec.com/image/1732087559048-3.svg"}},So=class So{static getNetworkByChainId(Et){return Object.values(NetworkMap).find(yt=>yt.chainId===Et)}static getSimpleNameByChainId(Et,yt,Ct=""){const $t=Object.values(NetworkMap).find(At=>At.chainId===Et);return $t?yt?$t==null?void 0:$t.simpleName.toLowerCase():$t==null?void 0:$t.simpleName:Ct}static getFullNameByChainId(Et,yt=""){const Ct=Object.values(NetworkMap).find($t=>$t.chainId===Et);return(Ct==null?void 0:Ct.fullName)??yt}static getFullNameBySimpleName(Et){if(!Et)return"";const yt=Object.values(NetworkMap).find(Ct=>Ct.simpleName.toLowerCase()===Et.toLowerCase());return(yt==null?void 0:yt.fullName)??""}static getSymbolByChainId(Et){const yt=Object.values(NetworkMap).find(Ct=>Ct.chainId===Et);return(yt==null?void 0:yt.symbol)??""}static getSymbolBySimpleName(Et){const yt=Object.values(NetworkMap).find(Ct=>Ct.simpleName.toLowerCase()===Et.toLowerCase());return(yt==null?void 0:yt.symbol)??""}static getUnitByChainId(Et){const yt=Object.values(NetworkMap).find(Ct=>Ct.chainId===Et);return(yt==null?void 0:yt.unit)??""}static getUnitBySimpleName(Et){if(!Et)return"";const yt=Object.values(NetworkMap).find(Ct=>Ct.simpleName.toLowerCase()===Et.toLowerCase());return(yt==null?void 0:yt.unit)??""}static isMainnet(Et){const yt=Object.values(NetworkMap).find(Ct=>Ct.chainId===Et);return!(yt!=null&&yt.testnet)}static isSolana(Et){const yt=Object.values(NetworkMap).find(Ct=>Ct.fullName.toLocaleLowerCase()===Et);return(yt==null?void 0:yt.chainId)===-3}};So.getScanUrlByChainId=(Et,yt,Ct="address")=>{var At;const $t=Object.values(NetworkMap).find(Bt=>Bt.chainId===Et);return $t?`${(At=$t.blockExplorers)==null?void 0:At.default.url}/${Ct}/${yt}`:""},So.getHrefBySimpleName=(Et,yt,Ct="address")=>{const $t=Object.values(NetworkMap).find(At=>At.simpleName.toLowerCase()===Et.toLowerCase());return($t==null?void 0:$t.chainId)===NetworkMap.SOLANA.chainId&&(Ct=Ct==="address"?"account":Ct),$t?`${$t.hrefPrefix}${Ct}/${yt}`:""},So.getHrefByChainId=(Et,yt,Ct="address")=>{const $t=Object.values(NetworkMap).find(At=>At.chainId===Et);return Et===NetworkMap.SOLANA.chainId&&(Ct=Ct==="address"?"account":Ct),$t?`${$t.hrefPrefix}${Ct}/${yt}`:""},So.getChainIconBySimpleName=(Et,yt,Ct="address")=>{const $t=Object.values(NetworkMap).find(At=>At.simpleName.toLowerCase()===Et.toLowerCase());return($t==null?void 0:$t.chainId)===NetworkMap.SOLANA.chainId&&(Ct=Ct==="address"?"account":Ct),$t?{icon:$t.icon,link:`${$t.hrefPrefix}${Ct}/${yt}`}:{icon:"",link:""}},So.getChainIconByChainId=Et=>{const yt=Object.values(NetworkMap).find(Ct=>Ct.chainId===Et);return(yt==null?void 0:yt.icon)??""},So.getScanNameBySimpleName=Et=>{const yt=Object.values(NetworkMap).find(Ct=>Ct.simpleName.toLowerCase()===(Et==null?void 0:Et.toLowerCase()));return yt?yt.scanName:""},So.getScanNameByChainId=Et=>{var Ct;const yt=Object.values(NetworkMap).find($t=>$t.chainId===Et);return yt?(Ct=yt.blockExplorers)==null?void 0:Ct.default.name:""},So.getChainIdBySimpleName=Et=>{const yt=Object.values(NetworkMap).find(Ct=>Ct.simpleName.toLowerCase()===Et.toLowerCase());return yt==null?void 0:yt.chainId},So.getNativeCurrencyByChainId=Et=>{const yt=Object.values(NetworkMap).find(Ct=>Ct.chainId===Et);return yt==null?void 0:yt.nativeCurrency},So.validSimpleName=Et=>Object.values(NetworkMap).findIndex(yt=>yt.simpleName.toLowerCase()===Et.toLowerCase())!==-1,So.isETH=Et=>typeof Et=="string"?Et.toUpperCase()===NetworkMap.ETHEREUM.simpleName:typeof Et=="number"?Et===NetworkMap.ETHEREUM.chainId:!1;let NetworkUtils=So;const FORK_SUPPORTED_NETWORKS=[{label:NetworkMap.ETHEREUM.fullName,value:NetworkMap.ETHEREUM.chainId,defaultGasPrice:"30",defaultGasLimit:"1000000",maxGasLimit:"200000000"},{label:NetworkMap.BINANCE.fullName,value:NetworkMap.BINANCE.chainId,defaultGasPrice:"3",defaultGasLimit:"1000000",maxGasLimit:"200000000"},{label:NetworkMap.MANTLE.fullName,value:NetworkMap.MANTLE.chainId,defaultGasPrice:"0.3",defaultGasLimit:"10000000000",maxGasLimit:"400000000000"}];var ForkPrivacyMode=(ht=>(ht[ht.SHARED=1]="SHARED",ht[ht.PRIVATE=0]="PRIVATE",ht))(ForkPrivacyMode||{}),SubscriptionStatus=(ht=>(ht[ht.SUBSCRIBING=0]="SUBSCRIBING",ht[ht.UNSUBSCRIBED=1]="UNSUBSCRIBED",ht))(SubscriptionStatus||{}),PriceInterval=(ht=>(ht.MONTHLY="monthly",ht.QUARTERLY="quarterly",ht.Annually="annually",ht))(PriceInterval||{}),ProductMode=(ht=>(ht[ht.FREE=0]="FREE",ht[ht.NORMAL=1]="NORMAL",ht[ht.CUSTOM=2]="CUSTOM",ht[ht.CRYPTO=3]="CRYPTO",ht))(ProductMode||{}),ProductType=(ht=>(ht.FORK="fork-chain",ht.TEAM="team",ht.BLOCK="block",ht.BLOCK_ALERT="block_alert",ht.BLOCK_ACTION="block_action",ht))(ProductType||{}),CryptoOrderStatus=(ht=>(ht[ht.UNPAID=0]="UNPAID",ht[ht.PENDING=1]="PENDING",ht[ht.PAID=2]="PAID",ht[ht.EXPIRED=3]="EXPIRED",ht))(CryptoOrderStatus||{});const PATTERN_ADDRESS=/^0[x|X][A-Fa-f0-9]{40}$/,PATTERN_INPUT_DATA=/^0[x|X][A-Fa-f0-9]*$/;var ProjectMemberStatus=(ht=>(ht[ht.NORMAL=1]="NORMAL",ht[ht.FORBIDDEN=2]="FORBIDDEN",ht))(ProjectMemberStatus||{}),Roles=(ht=>(ht[ht.PROJECT_OWNER=11]="PROJECT_OWNER",ht[ht.PROJECT_ADMIN=12]="PROJECT_ADMIN",ht[ht.BLOCK_ADMIN=13]="BLOCK_ADMIN",ht[ht.FORK_ADMIN=14]="FORK_ADMIN",ht[ht.PROJECT_MEMBER=15]="PROJECT_MEMBER",ht))(Roles||{}),Permissions=(ht=>(ht.ACCESS_FORK="access_fork",ht.ACCESS_BLOCK="access_block",ht.ACCESS_COLLABORATOR="access_collaborator",ht.EDIT_PROJECT="edit_project",ht.DELETE_PROJECT="delete_project",ht.EXIT_PROJECT="exit_project",ht))(Permissions||{});class BaseConstant{static getEnumMap(){const Et=Object.getOwnPropertyDescriptors(this),yt={};for(const Ct in Et){const $t=Et[Ct].value;$t instanceof BaseConstant&&$t._name&&(yt[$t._name]=$t)}return yt}static getEnumList(){const Et=Object.getOwnPropertyDescriptors(this),yt=[];for(const Ct in Et){const $t=Et[Ct].value;$t instanceof BaseConstant&&$t._name&&yt.push($t)}return yt}static getValueByName(Et){const Ct=this.getEnumMap()[Et];return Ct?Ct.value():null}static getNameByValue(Et,yt){const Ct=this.getEnumList();let $t=yt??"";return Ct.forEach(At=>{if(At.value()===Et)return $t=At.name(),!0}),$t}static getDescByValue(Et,yt){const Ct=this.getEnumList();let $t=yt??"";return Ct.forEach(At=>{if(At.value()===Et)return $t=At.desc(),!0}),$t}static getSelectOptionsByDescAndValue(Et){const yt=this.getEnumList(),Ct=[];return yt.forEach($t=>{Ct.push({[(Et==null?void 0:Et.value)??"value"]:$t.value(),[(Et==null?void 0:Et.label)??"label"]:$t.desc()})}),Ct}static getSelectOptionsByNameAndValue(Et){const yt=this.getEnumList(),Ct=[];return yt.forEach($t=>{Ct.push({[(Et==null?void 0:Et.value)??"value"]:$t.value(),[(Et==null?void 0:Et.label)??"label"]:$t.name()})}),Ct}static getColumnFilterItemsByNameAndValue(){const Et=this.getEnumList(),yt=[];return Et.forEach(Ct=>{yt.push({value:Ct.value(),text:Ct.name()})}),yt}constructor(Et,yt,Ct=""){this._name=Et,this._value=yt,this._desc=Ct}name(){return this._name}value(){return this._value}desc(){return this._desc}}const na=class na extends BaseConstant{};na.TOKEN_AMOUNT=new BaseConstant("Token Amount","token_amount"),na.TOKEN_PRICE=new BaseConstant("Token Price","token_price"),na.KEY_VARIABLES=new BaseConstant("Key Variables","key_variable"),na.SENSITIVE_EVENTS=new BaseConstant("Sensitive Events","event"),na.FUNCTION_CALL=new BaseConstant("Function Invocation","function");let MonitorType=na;const BLOCK_NOTIFICATION_TYPE={TELEGRAM:{label:"Telegram",value:"telegram"},EMAIL:{label:"Email",value:"email"},WEBHOOK:{label:"Webhook",value:"webhook"},SLACK:{label:"Slack",value:"slack"},LARK:{label:"Lark",value:"lark"}},MONITOR_VARIABLE_ANY_RISK_TYPES=["address","bool"],MONITOR_VARIABLE_RANGE_RISK_TYPES=["int8","int16","int24","int32","int40","int48","int56","int64","int72","int80","int88","int96","int104","int112","int120","int128","int136","int144","int152","int160","int168","int176","int184","int192","int200","int208","int216","int224","int232","int240","int248","int256","uint8","uint16","uint24","uint32","uint40","uint48","uint56","uint64","uint72","uint80","uint88","uint96","uint104","uint112","uint120","uint128","uint136","uint144","uint152","uint160","uint168","uint176","uint184","uint192","uint200","uint208","uint216","uint224","uint232","uint240","uint248","uint256"],BLOCK_SUPPORTED_VARIABLE_TYPES=[...MONITOR_VARIABLE_ANY_RISK_TYPES,...MONITOR_VARIABLE_RANGE_RISK_TYPES],RiskLevel={HIGH:{label:"Attack transaction",value:3,color:"#FF0000"},MEDIUM:{label:"Suspicious transaction",value:2,color:"#FF7520"},LOW:{label:"Regular transaction",value:1,color:"#FFBA09"},ANY:{label:"30-minute Timeframe",value:0,color:"#D60473"}},ba=class ba extends BaseConstant{};ba.ATTACK=new BaseConstant("Attack",3),ba.SUSPICIOUS=new BaseConstant("Suspicious",2),ba.REGULAR=new BaseConstant("Regular",1),ba.TIMEFRAME=new BaseConstant("30-minute Timeframe",0),ba.ALL=new BaseConstant("A Single Transaction",-1);let TxRisk=ba;const Rs=class Rs extends BaseConstant{};Rs.EVENT_EMIT=new BaseConstant("EVENT_EMIT",1,"Ignore <%= type %> parameters"),Rs.VARIABLE_CHANGE=new BaseConstant("VARIABLE_CHANGE",2,"Trigger based on <%= type %> parameters");let MonitorEventTriggerType=Rs;const qo=class qo extends BaseConstant{};qo.MAINNET=new BaseConstant("Ethereum",mainnet.id),qo.BSC=new BaseConstant("BSC",bsc.id),qo.ARBITRUM=new BaseConstant("Arbitrum",arbitrum.id),qo.MANTLE=new BaseConstant("Mantle",mantle.id),qo.MANTA=new BaseConstant("Manta",manta.id),qo.MERLIN=new BaseConstant("Merlin",merlin.id),qo.BASE=new BaseConstant("Base",base$1.id);let BlockNetworks=qo;const BLOCK_ONCHAIN_ONLY_NETWORKS=[BlockNetworks.ARBITRUM.value(),BlockNetworks.MERLIN.value(),BlockNetworks.MANTA.value(),BlockNetworks.MANTLE.value(),BlockNetworks.BASE.value()],Ms=class Ms extends BaseConstant{};Ms.PRE_SIGNED=new BaseConstant("Pre-signed Tx Mode",1,"Protocol admin is EoA."),Ms.DELEGATE=new BaseConstant("Delegate Mode",2,"Protocol admin utilizes Safe Multi-sig Wallet.");let DefenseMode=Ms;const Os=class Os extends BaseConstant{};Os.ONLINE=new BaseConstant("Online",1),Os.OFFLINE=new BaseConstant("Offline",2);let BlockMonitorStatus=Os;const xs=class xs extends BaseConstant{};xs.NONE=new BaseConstant("None",1),xs.BASIC_AUTH=new BaseConstant("Basic Auth",2),xs.HMAC_AUTH=new BaseConstant("HMAC Auth",3);let BlockWebhookAuthMethod=xs;var EffectiveStatus=(ht=>(ht[ht.EFFECTIVE=1]="EFFECTIVE",ht[ht.INEFFECTIVE=2]="INEFFECTIVE",ht[ht.PENDING=3]="PENDING",ht))(EffectiveStatus||{});const BLOCK_TX_STATUS={FAIL:{value:0,label:"Failed"},SUCCESS:{value:1,label:"Successful"},FAIL_ADD_ON_CHAIN:{value:2,label:"Failed to add on-chain"},PENDING:{value:3,label:"Pending"},NO_STATUS:{value:4,label:"No Status"}},SIGNED_TXN_COUNT=10;var BlockOpSourceType=(ht=>(ht[ht.CONTRACT=1]="CONTRACT",ht[ht.MONITOR=2]="MONITOR",ht[ht.DEFENSE=3]="DEFENSE",ht[ht.NOTIFICATION=4]="NOTIFICATION",ht[ht.MODULE=5]="MODULE",ht))(BlockOpSourceType||{}),BlockOperationType=(ht=>(ht[ht.ADD=1]="ADD",ht[ht.DELETE=2]="DELETE",ht[ht.UPDATE=3]="UPDATE",ht[ht.SYNC_ADD=11]="SYNC_ADD",ht[ht.SYNC_DELETE=12]="SYNC_DELETE",ht[ht.SYNC_UPDATE=13]="SYNC_UPDATE",ht))(BlockOperationType||{}),BlockModuleStatus=(ht=>(ht[ht.PENDING=1]="PENDING",ht[ht.ACTIVE=2]="ACTIVE",ht))(BlockModuleStatus||{});const _s=class _s extends BaseConstant{};_s.OWNER=new BaseConstant("Owner",1,"Owner"),_s.BLOCK=new BaseConstant("Phalcon",2,"Phalcon"),_s.OTHER=new BaseConstant("Another",3,"Another");let GuardianEoAType=_s;const Is=class Is extends BaseConstant{};Is.Private=new BaseConstant("Private Only",0,"Private Only"),Is.privateAndPublic=new BaseConstant("Private & Public",1,"Private & Public");let SendingChannelType=Is;const BLOCK_EXPRESSION_KEYWORDS=["and","or","decrease","decrease to","drop","when",">","<","==",">=","<="],Ps=class Ps extends BaseConstant{};Ps.ONCHAIN=new BaseConstant("Onchain",1),Ps.MEMPOOL=new BaseConstant("Mempool",2);let ActionTriggerSource=Ps;const BlockMenuList=[{label:"Dashboard",key:""},{label:"Contracts",key:"/contract/list",children:[{key:"/contract/list",label:"Contracts"},{key:"/contract/edit"},{key:"/contract/detail"}]},{key:"/monitor/list",label:"Monitors",children:[{key:"/monitor/detail"},{key:"/monitor/edit"},{key:"/monitor/create"},{label:"Monitors",key:"/monitor/list"}]},{key:"/action/list",label:"Actions",children:[{key:"/action/list",label:"Actions"},{key:"/action/detail"},{key:"/action/edit"},{key:"/action/module/edit"},{key:"/action/module/detail"}]},{label:"Triggering Records",key:"/alert/list",children:[{key:"/alert/list",label:"Triggering Record"},{key:"/alert/detail"}]},{label:"Notification Channels",key:"/notification"},{label:"Test Kit",key:"/testkit"},{label:"Logs",key:"/log/list",children:[{key:"/log/list",label:"Log"}]}];let clientID;switch("prod"){case"test":clientID="1894014555829.6249117667952";break;case"prod":clientID="6222614279796.6211795568471";break;case"dev":clientID="1894014555829.6249117667952";break}const SAFE_CHAIN_NAME=[{chainId:mainnet.id,name:"eth"},{chainId:bsc.id,name:"bnb"},{chainId:arbitrum.id,name:"arb1"},{chainId:manta.id,name:"manta"},{chainId:mantle.id,name:"mantle"},{chainId:base$1.id,name:"base"}],getSafeChainByChainId=ht=>{const Et=SAFE_CHAIN_NAME.find(yt=>yt.chainId===ht);return(Et==null?void 0:Et.name)??""};var VerifyType=(ht=>(ht[ht.AUTHENTICATOR=0]="AUTHENTICATOR",ht[ht.NOTIFICATION=1]="NOTIFICATION",ht[ht.WITHDRAW=2]="WITHDRAW",ht[ht.EXECUTE=3]="EXECUTE",ht))(VerifyType||{}),AuthWay=(ht=>(ht.AUTHENTICATOR="authenticator",ht.EMAIL="email",ht))(AuthWay||{});let ACCOUNT_DOMAIN,DOMAIN,MS_DOMAIN,PHALCON_LANDING_DOMAIN,PHALCON_SCAN_DOMAIN,PHALCON_API_DOMAIN,BLOCKSEC_DOMAIN,SCAN_DOMAIN;const PHALCON_DOCS_URL="https://docs.blocksec.com/phalcon",PHALCON_MANUAL_DOCS_URL="https://phalcon-manual.blocksec.com";switch("prod"){case"test":case"dev":ACCOUNT_DOMAIN="https://account-dev.blocksec.com",DOMAIN="https://app-dev.blocksec.com",MS_DOMAIN="https://www-dev.metasleuth.io",PHALCON_LANDING_DOMAIN="https://www-dev.blocksec.com/phalcon",PHALCON_SCAN_DOMAIN="https://app-dev.blocksec.com/fork/scan",PHALCON_API_DOMAIN="https://api-dev.phalcon.blocksec.com",BLOCKSEC_DOMAIN="https://www-dev.blocksec.com",SCAN_DOMAIN="https://app-dev.blocksec.com/fork/scan";break;case"prod":ACCOUNT_DOMAIN="https://account.blocksec.com",DOMAIN="https://app.blocksec.com",MS_DOMAIN="https://metasleuth.io",PHALCON_LANDING_DOMAIN="https://blocksec.com/phalcon",PHALCON_SCAN_DOMAIN="https://app.blocksec.com/fork/scan",PHALCON_API_DOMAIN="https://api.phalcon.blocksec.com",BLOCKSEC_DOMAIN="https://www.blocksec.com",SCAN_DOMAIN="https://app.blocksec.com/fork/scan";break}const BLOCKSEC_EXTERNAL_LINKS={FORK:{HOMEPAGE:`${PHALCON_DOCS_URL}/phalcon-fork`,QUOTA:`${PHALCON_DOCS_URL}/phalcon-fork/quota`,API_REST:`${PHALCON_DOCS_URL}/phalcon-fork/integration/rest-apis`,DEVELOPMENT_FRAMEWORKS:`${PHALCON_DOCS_URL}/phalcon-fork/integration/development-frameworks`,CONTRACT_VERIFICATION:`${PHALCON_DOCS_URL}/phalcon-fork/integration/contract-verification`,ANTI_REPLY:`${PHALCON_DOCS_URL}/phalcon-fork/quick-start#anti-replay`},CALENDY:{PHALCON:"https://calendly.com/blocksec/phalcon-demo"},PHALCON:{OVERVIEW:PHALCON_MANUAL_DOCS_URL,UPDATE_ABI:`${PHALCON_MANUAL_DOCS_URL}/contracts#updating-abi`,UPDATE_STORAGE_LAYOUT:`${PHALCON_MANUAL_DOCS_URL}/contracts#updating-storage-layout`,TG_BOT:`${PHALCON_MANUAL_DOCS_URL}/notification-channels/how-to-setup-a-telegram-bot`,PRE_SIGN:`${PHALCON_MANUAL_DOCS_URL}/actions/pre-signed-tx-mode`}},BC_KEY="common",bc=new BroadcastChannel(BC_KEY);var PostMessageType=(ht=>(ht[ht.CLOSE_REMOTE_TAB=0]="CLOSE_REMOTE_TAB",ht[ht.CLOSING_REMOTE_TAB=1]="CLOSING_REMOTE_TAB",ht[ht.RELOAD_REMOTE_TAB=2]="RELOAD_REMOTE_TAB",ht[ht.POST_DATA_TO_SUB_VIEW=3]="POST_DATA_TO_SUB_VIEW",ht[ht.POST_DATA_TO_MAIN_VIEW=4]="POST_DATA_TO_MAIN_VIEW",ht[ht.PING=5]="PING",ht))(PostMessageType||{}),FundFlowPosition=(ht=>(ht[ht.NO=0]="NO",ht[ht.TX=1]="TX",ht[ht.SEPARATE=2]="SEPARATE",ht))(FundFlowPosition||{}),InvocationFlowPosition=(ht=>(ht[ht.NO=0]="NO",ht[ht.TX=1]="TX",ht[ht.SEPARATE=2]="SEPARATE",ht[ht.DEBUG=3]="DEBUG",ht))(InvocationFlowPosition||{}),DebugActionType=(ht=>(ht[ht.STEP_UP=0]="STEP_UP",ht[ht.STEP_OUT=1]="STEP_OUT",ht[ht.STEP_IN=2]="STEP_IN",ht[ht.PREVIOUS=3]="PREVIOUS",ht[ht.NEXT=4]="NEXT",ht[ht.CLICK=5]="CLICK",ht[ht.AUTO=6]="AUTO",ht))(DebugActionType||{}),EventType=(ht=>(ht.SIMULATE="simulation",ht.MOPSUS="mopsus",ht.FORK="fork",ht.TESTNET="testnet",ht.PRERUN="prerun",ht))(EventType||{}),LabelAction=(ht=>(ht.COLOR="COLOR",ht.ADDRESS="ADDRESS",ht.RAW="RAW",ht))(LabelAction||{}),ControlStatus=(ht=>(ht[ht.TRACE_ONLY=0]="TRACE_ONLY",ht[ht.TRACE_CODE_LR=1]="TRACE_CODE_LR",ht[ht.TRACE_CODE_TB=2]="TRACE_CODE_TB",ht[ht.ONLY_CODE=3]="ONLY_CODE",ht[ht.CODE_IN_SEPARATE_TAB=4]="CODE_IN_SEPARATE_TAB",ht[ht.DEBUG=5]="DEBUG",ht))(ControlStatus||{}),FocusType=(ht=>(ht.BASIC_INFO="basic_info",ht.FUND_FLOW="fund_flow",ht.BALANCE_CHANGES="balance_changes",ht.SOURCE_CODE="source_code",ht.FOCUS="focus",ht))(FocusType||{});const GA_EVENT_NAMES={FUND_FLOW_EXPAND:"fundflow_expand",FUND_FLOW_DOWNLOAD_PNG:"fundflow_download_png",FUND_FLOW_DOWNLOAD_SVG:"fundflow_download_svg",ON_CLICK_COPY:"on_click_copy",TIPS_EDIT_ADDRESS:"tips_edit_address",TIPS_EDIT_BG_COLOR:"tips_edit_bg_color",TIPS_OPEN_EXTERNAL_EXPLORE:"tips_open_external_explore",TIPS_DECODE_SIGNATURE:"tips_decode_signature",[`FOCUS_ON_CLICK_${FocusType.BASIC_INFO.toUpperCase()}`]:"focus_on_click_basic_info",[`FOCUS_ON_CLICK_${FocusType.FUND_FLOW.toUpperCase()}`]:"focus_on_click_fund_flow",[`FOCUS_ON_CLICK_${FocusType.BALANCE_CHANGES.toUpperCase()}`]:"focus_on_click_balance_changes",[`FOCUS_ON_CLICK_${FocusType.SOURCE_CODE.toUpperCase()}`]:"focus_on_click_source_code",FOCUS_ON_CLICK_JSON:"focus_on_click_json",FOCUS_ON_CLICK_RAW:"focus_on_click_raw",FOCUS_ON_JSON_RAW_COPY:"focus_on_json_raw_copy",ON_INVOCATION_FLOW_SEARCH:"on_invocation_flow_search",SIMULATE_THIS_TX:"simulate_this_tx",SIMULATE_CUSTOM:"simulate_custom",SIMULATE_SUCCESS:"simulate_success",DEBUG_ICON_BUTTON:"debug_icon_button",DEBUG_PRIMARY_BUTTON:"debug_primary_button"};function t$9(){return t$9=Object.assign?Object.assign.bind():function(ht){for(var Et=1;Et<arguments.length;Et++){var yt=arguments[Et];for(var Ct in yt)Object.prototype.hasOwnProperty.call(yt,Ct)&&(ht[Ct]=yt[Ct])}return ht},t$9.apply(this,arguments)}var r$5;function o$7(ht,Et){var yt=t$9({},ht);return Et.forEach(function(Ct){delete yt[Ct]}),yt}function c$7(ht){return ht===void 0&&(ht={}),Object.keys(ht).map(function(Et){return encodeURIComponent(Et)+"="+encodeURIComponent(ht[Et])}).join("&")}(function(ht){ht[ht.FAILED=0]="FAILED",ht[ht.SUCCESS=200]="SUCCESS",ht[ht.WRONG_PASSWORD=401e5]="WRONG_PASSWORD"})(r$5||(r$5={}));var u$9,s$9=["config"],i$7=function(ht,Et){try{var yt=cloneDeep(t$9({},a$5,u$9==null?void 0:u$9(),Et)),Ct=yt.dataType,$t=yt.bodyType,At=yt.ignore,Bt=yt.expect,Dt=yt.onError,Ft=yt.onSuccess,kt=yt.transformUrl,Mt=yt.beforeRequest,Nt=yt.transformRequest,jt=o$7(yt,["dataType","bodyType","codeKey","ignore","expect","onError","onSuccess","transformUrl","beforeRequest","transformRequest"]),zt=jt.method,Vt=jt.body,Kt=Vt===void 0?{}:Vt;if(Nt&&(Kt=Nt(t$9({},Kt)),jt.body=Nt(t$9({},Kt))),Object.keys(Kt).forEach(function(Qt){At!=null&&At.includes(Kt[Qt])&&delete Kt[Qt]}),zt.toLowerCase()==="get"&&(ht=function(Qt,Zt){var dr=c$7(Zt);return dr?Qt.includes("?")?Qt+"&"+dr:Qt+"?"+dr:Qt}(ht,Kt),delete jt.body),$t==="form")jt.body=c$7(jt.body),jt.headers["Content-Type"]="application/x-www-form-urlencoded;charset=utf-8";else if($t==="file"){var Xt=new FormData;Object.keys(Kt).forEach(function(Qt){Xt.append(Qt,Kt[Qt])}),jt.body=Xt,delete jt.headers["Content-Type"]}else jt.body&&(jt.body=JSON.stringify(jt.body));return kt&&!(ht=kt(ht,jt))?Promise.resolve(void 0):Promise.resolve(function(Qt,Zt){try{var dr=Qt()}catch(cr){return Zt(cr)}return dr&&dr.then?dr.then(void 0,Zt):dr}(function(){return Promise.resolve(fetch(ht,t$9({},jt,{headers:Mt?Mt(ht,jt.headers):jt.headers}))).then(function(Qt){var Zt;function dr(Er){return Zt?Er:Qt[Ct]()}var cr=function(){if(Ct==="bsc")return Promise.resolve(Qt.json()).then(function(Er){var pr,gr,vr,yr,xr;if(Array.isArray(Er)?xr=Er:(vr=Er.code,yr=Er.message,xr=o$7(Er,["code","message"])),vr!==void 0){if(typeof Dt=="function"){var rr=Qt.headers.get("Traceparent");Dt({code:vr,msg:yr,url:ht,body:Kt,traceparent:rr})}}else typeof Ft=="function"&&Ft(ht);var Lt={msg:(pr=yr)!=null?pr:"Success",code:(gr=vr)!=null?gr:r$5.SUCCESS,data:xr,success:vr===void 0};return Zt=1,Lt})}();return cr&&cr.then?cr.then(dr):dr(cr)})},function(Qt){return{data:Bt,msg:"Request failed",success:!1,code:r$5.FAILED,abort:Qt.name==="AbortError"}}))}catch(Qt){return Promise.reject(Qt)}},a$5={method:"GET",body:{},headers:{Accept:"application/json","Content-Type":"application/json;charset=utf-8"},credentials:"include",dataType:"bsc",bodyType:"json",codeKey:"",ignore:[null,void 0,""],onError:!1,onSuccess:!1,expect:{},transformUrl:!1,beforeRequest:!1},d$8=Object.assign(i$7,{get:function(ht,Et){return i$7(ht,t$9({},Et,{method:"GET"}))},post:function(ht,Et){return i$7(ht,t$9({},Et,{method:"POST"}))},put:function(ht,Et){return i$7(ht,t$9({},Et,{method:"PUT"}))},delete:function(ht,Et){return i$7(ht,t$9({},Et,{method:"DELETE"}))}});function f$8(ht,Et){return d$8(ht,t$9({},Et))}var l$7=Object.assign(f$8,{get:function(ht,Et){return f$8(ht,t$9({},Et,{method:"GET"}))},post:function(ht,Et){return f$8(ht,t$9({},Et,{method:"POST"}))},put:function(ht,Et){return f$8(ht,t$9({},Et,{method:"PUT"}))},delete:function(ht,Et){return f$8(ht,t$9({},Et,{method:"DELETE"}))}});function p$7(ht){var Et=ht.config,yt=function(Ct,$t){if(Ct==null)return{};var At,Bt,Dt={},Ft=Object.keys(Ct);for(Bt=0;Bt<Ft.length;Bt++)$t.indexOf(At=Ft[Bt])>=0||(Dt[At]=Ct[At]);return Dt}(ht,s$9);Object.prototype.toString.call(Et)==="[object Function]"&&(u$9=function(){return Et(a$5)}),a$5=t$9({},a$5,yt)}function die(ht){for(var Et=arguments.length,yt=new Array(Et>1?Et-1:0),Ct=1;Ct<Et;Ct++)yt[Ct-1]=arguments[Ct];throw new Error(typeof ht=="number"?"[MobX] minified error nr: "+ht+(yt.length?" "+yt.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+ht)}var mockGlobal={};function getGlobal$1(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global$g<"u"?global$g:typeof self<"u"?self:mockGlobal}var assign$6=Object.assign,getDescriptor=Object.getOwnPropertyDescriptor,defineProperty$a=Object.defineProperty,objectPrototype$1=Object.prototype,EMPTY_ARRAY=[];Object.freeze(EMPTY_ARRAY);var EMPTY_OBJECT={};Object.freeze(EMPTY_OBJECT);var hasProxy=typeof Proxy<"u",plainObjectString=Object.toString();function assertProxies(){hasProxy||die("Proxy not available")}function once(ht){var Et=!1;return function(){if(!Et)return Et=!0,ht.apply(this,arguments)}}var noop$1=function ht(){};function isFunction$5(ht){return typeof ht=="function"}function isStringish(ht){var Et=typeof ht;switch(Et){case"string":case"symbol":case"number":return!0}return!1}function isObject$f(ht){return ht!==null&&typeof ht=="object"}function isPlainObject$1(ht){if(!isObject$f(ht))return!1;var Et=Object.getPrototypeOf(ht);if(Et==null)return!0;var yt=Object.hasOwnProperty.call(Et,"constructor")&&Et.constructor;return typeof yt=="function"&&yt.toString()===plainObjectString}function isGenerator(ht){var Et=ht==null?void 0:ht.constructor;return Et?Et.name==="GeneratorFunction"||Et.displayName==="GeneratorFunction":!1}function addHiddenProp(ht,Et,yt){defineProperty$a(ht,Et,{enumerable:!1,writable:!0,configurable:!0,value:yt})}function addHiddenFinalProp(ht,Et,yt){defineProperty$a(ht,Et,{enumerable:!1,writable:!1,configurable:!0,value:yt})}function createInstanceofPredicate(ht,Et){var yt="isMobX"+ht;return Et.prototype[yt]=!0,function(Ct){return isObject$f(Ct)&&Ct[yt]===!0}}function isES6Map(ht){return ht!=null&&Object.prototype.toString.call(ht)==="[object Map]"}function isPlainES6Map(ht){var Et=Object.getPrototypeOf(ht),yt=Object.getPrototypeOf(Et),Ct=Object.getPrototypeOf(yt);return Ct===null}function isES6Set(ht){return ht!=null&&Object.prototype.toString.call(ht)==="[object Set]"}var hasGetOwnPropertySymbols=typeof Object.getOwnPropertySymbols<"u";function getPlainObjectKeys(ht){var Et=Object.keys(ht);if(!hasGetOwnPropertySymbols)return Et;var yt=Object.getOwnPropertySymbols(ht);return yt.length?[].concat(Et,yt.filter(function(Ct){return objectPrototype$1.propertyIsEnumerable.call(ht,Ct)})):Et}var ownKeys$4=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:hasGetOwnPropertySymbols?function(ht){return Object.getOwnPropertyNames(ht).concat(Object.getOwnPropertySymbols(ht))}:Object.getOwnPropertyNames;function toPrimitive$3(ht){return ht===null?null:typeof ht=="object"?""+ht:ht}function hasProp(ht,Et){return objectPrototype$1.hasOwnProperty.call(ht,Et)}var getOwnPropertyDescriptors$2=Object.getOwnPropertyDescriptors||function ht(Et){var yt={};return ownKeys$4(Et).forEach(function(Ct){yt[Ct]=getDescriptor(Et,Ct)}),yt};function getFlag(ht,Et){return!!(ht&Et)}function setFlag(ht,Et,yt){return yt?ht|=Et:ht&=~Et,ht}function _arrayLikeToArray(ht,Et){(Et==null||Et>ht.length)&&(Et=ht.length);for(var yt=0,Ct=Array(Et);yt<Et;yt++)Ct[yt]=ht[yt];return Ct}function _defineProperties(ht,Et){for(var yt=0;yt<Et.length;yt++){var Ct=Et[yt];Ct.enumerable=Ct.enumerable||!1,Ct.configurable=!0,"value"in Ct&&(Ct.writable=!0),Object.defineProperty(ht,_toPropertyKey(Ct.key),Ct)}}function _createClass(ht,Et,yt){return Et&&_defineProperties(ht.prototype,Et),Object.defineProperty(ht,"prototype",{writable:!1}),ht}function _createForOfIteratorHelperLoose(ht,Et){var yt=typeof Symbol<"u"&&ht[Symbol.iterator]||ht["@@iterator"];if(yt)return(yt=yt.call(ht)).next.bind(yt);if(Array.isArray(ht)||(yt=_unsupportedIterableToArray(ht))||Et){yt&&(ht=yt);var Ct=0;return function(){return Ct>=ht.length?{done:!0}:{done:!1,value:ht[Ct++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _extends$4(){return _extends$4=Object.assign?Object.assign.bind():function(ht){for(var Et=1;Et<arguments.length;Et++){var yt=arguments[Et];for(var Ct in yt)({}).hasOwnProperty.call(yt,Ct)&&(ht[Ct]=yt[Ct])}return ht},_extends$4.apply(null,arguments)}function _inheritsLoose$3(ht,Et){ht.prototype=Object.create(Et.prototype),ht.prototype.constructor=ht,_setPrototypeOf$1(ht,Et)}function _setPrototypeOf$1(ht,Et){return _setPrototypeOf$1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(yt,Ct){return yt.__proto__=Ct,yt},_setPrototypeOf$1(ht,Et)}function _toPrimitive(ht,Et){if(typeof ht!="object"||!ht)return ht;var yt=ht[Symbol.toPrimitive];if(yt!==void 0){var Ct=yt.call(ht,Et);if(typeof Ct!="object")return Ct;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(ht)}function _toPropertyKey(ht){var Et=_toPrimitive(ht,"string");return typeof Et=="symbol"?Et:Et+""}function _unsupportedIterableToArray(ht,Et){if(ht){if(typeof ht=="string")return _arrayLikeToArray(ht,Et);var yt={}.toString.call(ht).slice(8,-1);return yt==="Object"&&ht.constructor&&(yt=ht.constructor.name),yt==="Map"||yt==="Set"?Array.from(ht):yt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(yt)?_arrayLikeToArray(ht,Et):void 0}}var storedAnnotationsSymbol=Symbol("mobx-stored-annotations");function createDecoratorAnnotation(ht){function Et(yt,Ct){if(is20223Decorator(Ct))return ht.decorate_20223_(yt,Ct);storeAnnotation(yt,Ct,ht)}return Object.assign(Et,ht)}function storeAnnotation(ht,Et,yt){hasProp(ht,storedAnnotationsSymbol)||addHiddenProp(ht,storedAnnotationsSymbol,_extends$4({},ht[storedAnnotationsSymbol])),isOverride(yt)||(ht[storedAnnotationsSymbol][Et]=yt)}function collectStoredAnnotations(ht){return hasProp(ht,storedAnnotationsSymbol)||addHiddenProp(ht,storedAnnotationsSymbol,_extends$4({},ht[storedAnnotationsSymbol])),ht[storedAnnotationsSymbol]}function is20223Decorator(ht){return typeof ht=="object"&&typeof ht.kind=="string"}var $mobx=Symbol("mobx administration"),Atom=function(){function ht(yt){yt===void 0&&(yt="Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=IDerivationState_.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=yt}var Et=ht.prototype;return Et.onBO=function(){this.onBOL&&this.onBOL.forEach(function(Ct){return Ct()})},Et.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(Ct){return Ct()})},Et.reportObserved=function(){return reportObserved(this)},Et.reportChanged=function(){startBatch(),propagateChanged(this),endBatch()},Et.toString=function(){return this.name_},_createClass(ht,[{key:"isBeingObserved",get:function(){return getFlag(this.flags_,ht.isBeingObservedMask_)},set:function(Ct){this.flags_=setFlag(this.flags_,ht.isBeingObservedMask_,Ct)}},{key:"isPendingUnobservation",get:function(){return getFlag(this.flags_,ht.isPendingUnobservationMask_)},set:function(Ct){this.flags_=setFlag(this.flags_,ht.isPendingUnobservationMask_,Ct)}},{key:"diffValue",get:function(){return getFlag(this.flags_,ht.diffValueMask_)?1:0},set:function(Ct){this.flags_=setFlag(this.flags_,ht.diffValueMask_,Ct===1)}}])}();Atom.isBeingObservedMask_=1;Atom.isPendingUnobservationMask_=2;Atom.diffValueMask_=4;var isAtom=createInstanceofPredicate("Atom",Atom);function createAtom(ht,Et,yt){Et===void 0&&(Et=noop$1),yt===void 0&&(yt=noop$1);var Ct=new Atom(ht);return Et!==noop$1&&onBecomeObserved(Ct,Et),yt!==noop$1&&onBecomeUnobserved(Ct,yt),Ct}function identityComparer(ht,Et){return ht===Et}function structuralComparer(ht,Et){return deepEqual(ht,Et)}function shallowComparer(ht,Et){return deepEqual(ht,Et,1)}function defaultComparer(ht,Et){return Object.is?Object.is(ht,Et):ht===Et?ht!==0||1/ht===1/Et:ht!==ht&&Et!==Et}var comparer={identity:identityComparer,structural:structuralComparer,default:defaultComparer,shallow:shallowComparer};function deepEnhancer(ht,Et,yt){return isObservable(ht)?ht:Array.isArray(ht)?observable.array(ht,{name:yt}):isPlainObject$1(ht)?observable.object(ht,void 0,{name:yt}):isES6Map(ht)?observable.map(ht,{name:yt}):isES6Set(ht)?observable.set(ht,{name:yt}):typeof ht=="function"&&!isAction(ht)&&!isFlow(ht)?isGenerator(ht)?flow(ht):autoAction(yt,ht):ht}function shallowEnhancer(ht,Et,yt){if(ht==null||isObservableObject(ht)||isObservableArray(ht)||isObservableMap(ht)||isObservableSet(ht))return ht;if(Array.isArray(ht))return observable.array(ht,{name:yt,deep:!1});if(isPlainObject$1(ht))return observable.object(ht,void 0,{name:yt,deep:!1});if(isES6Map(ht))return observable.map(ht,{name:yt,deep:!1});if(isES6Set(ht))return observable.set(ht,{name:yt,deep:!1})}function referenceEnhancer(ht){return ht}function refStructEnhancer(ht,Et){return deepEqual(ht,Et)?Et:ht}var OVERRIDE="override";function isOverride(ht){return ht.annotationType_===OVERRIDE}function createActionAnnotation(ht,Et){return{annotationType_:ht,options_:Et,make_:make_$1,extend_:extend_$1,decorate_20223_:decorate_20223_$1}}function make_$1(ht,Et,yt,Ct){var $t;if(($t=this.options_)!=null&&$t.bound)return this.extend_(ht,Et,yt,!1)===null?0:1;if(Ct===ht.target_)return this.extend_(ht,Et,yt,!1)===null?0:2;if(isAction(yt.value))return 1;var At=createActionDescriptor(ht,this,Et,yt,!1);return defineProperty$a(Ct,Et,At),2}function extend_$1(ht,Et,yt,Ct){var $t=createActionDescriptor(ht,this,Et,yt);return ht.defineProperty_(Et,$t,Ct)}function decorate_20223_$1(ht,Et){var yt=Et.kind,Ct=Et.name,$t=Et.addInitializer,At=this,Bt=function(kt){var Mt,Nt,jt,zt;return createAction((Mt=(Nt=At.options_)==null?void 0:Nt.name)!=null?Mt:Ct.toString(),kt,(jt=(zt=At.options_)==null?void 0:zt.autoAction)!=null?jt:!1)};if(yt=="field"){$t(function(){storeAnnotation(this,Ct,At)});return}if(yt=="method"){var Dt;return isAction(ht)||(ht=Bt(ht)),(Dt=this.options_)!=null&&Dt.bound&&$t(function(){var Ft=this,kt=Ft[Ct].bind(Ft);kt.isMobxAction=!0,Ft[Ct]=kt}),ht}die("Cannot apply '"+At.annotationType_+"' to '"+String(Ct)+"' (kind: "+yt+"):"+(`
'`+At.annotationType_+"' can only be used on properties with a function value."))}function assertActionDescriptor(ht,Et,yt,Ct){Et.annotationType_,Ct.value}function createActionDescriptor(ht,Et,yt,Ct,$t){var At,Bt,Dt,Ft,kt,Mt,Nt;$t===void 0&&($t=globalState.safeDescriptors),assertActionDescriptor(ht,Et,yt,Ct);var jt=Ct.value;if((At=Et.options_)!=null&&At.bound){var zt;jt=jt.bind((zt=ht.proxy_)!=null?zt:ht.target_)}return{value:createAction((Bt=(Dt=Et.options_)==null?void 0:Dt.name)!=null?Bt:yt.toString(),jt,(Ft=(kt=Et.options_)==null?void 0:kt.autoAction)!=null?Ft:!1,(Mt=Et.options_)!=null&&Mt.bound?(Nt=ht.proxy_)!=null?Nt:ht.target_:void 0),configurable:$t?ht.isPlainObject_:!0,enumerable:!1,writable:!$t}}function createFlowAnnotation(ht,Et){return{annotationType_:ht,options_:Et,make_:make_$2,extend_:extend_$2,decorate_20223_:decorate_20223_$2}}function make_$2(ht,Et,yt,Ct){var $t;if(Ct===ht.target_)return this.extend_(ht,Et,yt,!1)===null?0:2;if(($t=this.options_)!=null&&$t.bound&&(!hasProp(ht.target_,Et)||!isFlow(ht.target_[Et]))&&this.extend_(ht,Et,yt,!1)===null)return 0;if(isFlow(yt.value))return 1;var At=createFlowDescriptor(ht,this,Et,yt,!1,!1);return defineProperty$a(Ct,Et,At),2}function extend_$2(ht,Et,yt,Ct){var $t,At=createFlowDescriptor(ht,this,Et,yt,($t=this.options_)==null?void 0:$t.bound);return ht.defineProperty_(Et,At,Ct)}function decorate_20223_$2(ht,Et){var yt,Ct=Et.name,$t=Et.addInitializer;return isFlow(ht)||(ht=flow(ht)),(yt=this.options_)!=null&&yt.bound&&$t(function(){var At=this,Bt=At[Ct].bind(At);Bt.isMobXFlow=!0,At[Ct]=Bt}),ht}function assertFlowDescriptor(ht,Et,yt,Ct){Et.annotationType_,Ct.value}function createFlowDescriptor(ht,Et,yt,Ct,$t,At){At===void 0&&(At=globalState.safeDescriptors),assertFlowDescriptor(ht,Et,yt,Ct);var Bt=Ct.value;if(isFlow(Bt)||(Bt=flow(Bt)),$t){var Dt;Bt=Bt.bind((Dt=ht.proxy_)!=null?Dt:ht.target_),Bt.isMobXFlow=!0}return{value:Bt,configurable:At?ht.isPlainObject_:!0,enumerable:!1,writable:!At}}function createComputedAnnotation(ht,Et){return{annotationType_:ht,options_:Et,make_:make_$3,extend_:extend_$3,decorate_20223_:decorate_20223_$3}}function make_$3(ht,Et,yt){return this.extend_(ht,Et,yt,!1)===null?0:1}function extend_$3(ht,Et,yt,Ct){return assertComputedDescriptor(ht,this,Et,yt),ht.defineComputedProperty_(Et,_extends$4({},this.options_,{get:yt.get,set:yt.set}),Ct)}function decorate_20223_$3(ht,Et){var yt=this,Ct=Et.name,$t=Et.addInitializer;return $t(function(){var At=asObservableObject(this)[$mobx],Bt=_extends$4({},yt.options_,{get:ht,context:this});Bt.name||(Bt.name="ObservableObject."+Ct.toString()),At.values_.set(Ct,new ComputedValue(Bt))}),function(){return this[$mobx].getObservablePropValue_(Ct)}}function assertComputedDescriptor(ht,Et,yt,Ct){Et.annotationType_,Ct.get}function createObservableAnnotation(ht,Et){return{annotationType_:ht,options_:Et,make_:make_$4,extend_:extend_$4,decorate_20223_:decorate_20223_$4}}function make_$4(ht,Et,yt){return this.extend_(ht,Et,yt,!1)===null?0:1}function extend_$4(ht,Et,yt,Ct){var $t,At;return assertObservableDescriptor(ht,this),ht.defineObservableProperty_(Et,yt.value,($t=(At=this.options_)==null?void 0:At.enhancer)!=null?$t:deepEnhancer,Ct)}function decorate_20223_$4(ht,Et){var yt=this,Ct=Et.kind,$t=Et.name,At=new WeakSet;function Bt(Dt,Ft){var kt,Mt,Nt=asObservableObject(Dt)[$mobx],jt=new ObservableValue(Ft,(kt=(Mt=yt.options_)==null?void 0:Mt.enhancer)!=null?kt:deepEnhancer,"ObservableObject."+$t.toString(),!1);Nt.values_.set($t,jt),At.add(Dt)}if(Ct=="accessor")return{get:function(){return At.has(this)||Bt(this,ht.get.call(this)),this[$mobx].getObservablePropValue_($t)},set:function(Ft){return At.has(this)||Bt(this,Ft),this[$mobx].setObservablePropValue_($t,Ft)},init:function(Ft){return At.has(this)||Bt(this,Ft),Ft}}}function assertObservableDescriptor(ht,Et,yt,Ct){Et.annotationType_}var AUTO="true",autoAnnotation=createAutoAnnotation();function createAutoAnnotation(ht){return{annotationType_:AUTO,options_:ht,make_:make_$5,extend_:extend_$5,decorate_20223_:decorate_20223_$5}}function make_$5(ht,Et,yt,Ct){var $t,At;if(yt.get)return computed.make_(ht,Et,yt,Ct);if(yt.set){var Bt=createAction(Et.toString(),yt.set);return Ct===ht.target_?ht.defineProperty_(Et,{configurable:globalState.safeDescriptors?ht.isPlainObject_:!0,set:Bt})===null?0:2:(defineProperty$a(Ct,Et,{configurable:!0,set:Bt}),2)}if(Ct!==ht.target_&&typeof yt.value=="function"){var Dt;if(isGenerator(yt.value)){var Ft,kt=(Ft=this.options_)!=null&&Ft.autoBind?flow.bound:flow;return kt.make_(ht,Et,yt,Ct)}var Mt=(Dt=this.options_)!=null&&Dt.autoBind?autoAction.bound:autoAction;return Mt.make_(ht,Et,yt,Ct)}var Nt=(($t=this.options_)==null?void 0:$t.deep)===!1?observable.ref:observable;if(typeof yt.value=="function"&&(At=this.options_)!=null&&At.autoBind){var jt;yt.value=yt.value.bind((jt=ht.proxy_)!=null?jt:ht.target_)}return Nt.make_(ht,Et,yt,Ct)}function extend_$5(ht,Et,yt,Ct){var $t,At;if(yt.get)return computed.extend_(ht,Et,yt,Ct);if(yt.set)return ht.defineProperty_(Et,{configurable:globalState.safeDescriptors?ht.isPlainObject_:!0,set:createAction(Et.toString(),yt.set)},Ct);if(typeof yt.value=="function"&&($t=this.options_)!=null&&$t.autoBind){var Bt;yt.value=yt.value.bind((Bt=ht.proxy_)!=null?Bt:ht.target_)}var Dt=((At=this.options_)==null?void 0:At.deep)===!1?observable.ref:observable;return Dt.extend_(ht,Et,yt,Ct)}function decorate_20223_$5(ht,Et){die("'"+this.annotationType_+"' cannot be used as a decorator")}var OBSERVABLE="observable",OBSERVABLE_REF="observable.ref",OBSERVABLE_SHALLOW="observable.shallow",OBSERVABLE_STRUCT="observable.struct",defaultCreateObservableOptions={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(defaultCreateObservableOptions);function asCreateObservableOptions(ht){return ht||defaultCreateObservableOptions}var observableAnnotation=createObservableAnnotation(OBSERVABLE),observableRefAnnotation=createObservableAnnotation(OBSERVABLE_REF,{enhancer:referenceEnhancer}),observableShallowAnnotation=createObservableAnnotation(OBSERVABLE_SHALLOW,{enhancer:shallowEnhancer}),observableStructAnnotation=createObservableAnnotation(OBSERVABLE_STRUCT,{enhancer:refStructEnhancer}),observableDecoratorAnnotation=createDecoratorAnnotation(observableAnnotation);function getEnhancerFromOptions(ht){return ht.deep===!0?deepEnhancer:ht.deep===!1?referenceEnhancer:getEnhancerFromAnnotation(ht.defaultDecorator)}function getAnnotationFromOptions(ht){var Et;return ht?(Et=ht.defaultDecorator)!=null?Et:createAutoAnnotation(ht):void 0}function getEnhancerFromAnnotation(ht){var Et,yt;return ht&&(Et=(yt=ht.options_)==null?void 0:yt.enhancer)!=null?Et:deepEnhancer}function createObservable(ht,Et,yt){if(is20223Decorator(Et))return observableAnnotation.decorate_20223_(ht,Et);if(isStringish(Et)){storeAnnotation(ht,Et,observableAnnotation);return}return isObservable(ht)?ht:isPlainObject$1(ht)?observable.object(ht,Et,yt):Array.isArray(ht)?observable.array(ht,Et):isES6Map(ht)?observable.map(ht,Et):isES6Set(ht)?observable.set(ht,Et):typeof ht=="object"&&ht!==null?ht:observable.box(ht,Et)}assign$6(createObservable,observableDecoratorAnnotation);var observableFactories={box:function ht(Et,yt){var Ct=asCreateObservableOptions(yt);return new ObservableValue(Et,getEnhancerFromOptions(Ct),Ct.name,!0,Ct.equals)},array:function ht(Et,yt){var Ct=asCreateObservableOptions(yt);return(globalState.useProxies===!1||Ct.proxy===!1?createLegacyArray:createObservableArray)(Et,getEnhancerFromOptions(Ct),Ct.name)},map:function ht(Et,yt){var Ct=asCreateObservableOptions(yt);return new ObservableMap(Et,getEnhancerFromOptions(Ct),Ct.name)},set:function ht(Et,yt){var Ct=asCreateObservableOptions(yt);return new ObservableSet(Et,getEnhancerFromOptions(Ct),Ct.name)},object:function ht(Et,yt,Ct){return initObservable(function(){return extendObservable(globalState.useProxies===!1||(Ct==null?void 0:Ct.proxy)===!1?asObservableObject({},Ct):asDynamicObservableObject({},Ct),Et,yt)})},ref:createDecoratorAnnotation(observableRefAnnotation),shallow:createDecoratorAnnotation(observableShallowAnnotation),deep:observableDecoratorAnnotation,struct:createDecoratorAnnotation(observableStructAnnotation)},observable=assign$6(createObservable,observableFactories),COMPUTED="computed",COMPUTED_STRUCT="computed.struct",computedAnnotation=createComputedAnnotation(COMPUTED),computedStructAnnotation=createComputedAnnotation(COMPUTED_STRUCT,{equals:comparer.structural}),computed=function ht(Et,yt){if(is20223Decorator(yt))return computedAnnotation.decorate_20223_(Et,yt);if(isStringish(yt))return storeAnnotation(Et,yt,computedAnnotation);if(isPlainObject$1(Et))return createDecoratorAnnotation(createComputedAnnotation(COMPUTED,Et));var Ct=isPlainObject$1(yt)?yt:{};return Ct.get=Et,Ct.name||(Ct.name=Et.name||""),new ComputedValue(Ct)};Object.assign(computed,computedAnnotation);computed.struct=createDecoratorAnnotation(computedStructAnnotation);var _getDescriptor$config,_getDescriptor,currentActionId=0,nextActionId=1,isFunctionNameConfigurable=(_getDescriptor$config=(_getDescriptor=getDescriptor(function(){},"name"))==null?void 0:_getDescriptor.configurable)!=null?_getDescriptor$config:!1,tmpNameDescriptor={value:"action",configurable:!0,writable:!1,enumerable:!1};function createAction(ht,Et,yt,Ct){yt===void 0&&(yt=!1);function $t(){return executeAction(ht,yt,Et,Ct||this,arguments)}return $t.isMobxAction=!0,$t.toString=function(){return Et.toString()},isFunctionNameConfigurable&&(tmpNameDescriptor.value=ht,defineProperty$a($t,"name",tmpNameDescriptor)),$t}function executeAction(ht,Et,yt,Ct,$t){var At=_startAction(ht,Et);try{return yt.apply(Ct,$t)}catch(Bt){throw At.error_=Bt,Bt}finally{_endAction(At)}}function _startAction(ht,Et,yt,Ct){var $t=!1,At=0,Bt=globalState.trackingDerivation,Dt=!Et||!Bt;startBatch();var Ft=globalState.allowStateChanges;Dt&&(untrackedStart(),Ft=allowStateChangesStart(!0));var kt=allowStateReadsStart(!0),Mt={runAsAction_:Dt,prevDerivation_:Bt,prevAllowStateChanges_:Ft,prevAllowStateReads_:kt,notifySpy_:$t,startTime_:At,actionId_:nextActionId++,parentActionId_:currentActionId};return currentActionId=Mt.actionId_,Mt}function _endAction(ht){currentActionId!==ht.actionId_&&die(30),currentActionId=ht.parentActionId_,ht.error_!==void 0&&(globalState.suppressReactionErrors=!0),allowStateChangesEnd(ht.prevAllowStateChanges_),allowStateReadsEnd(ht.prevAllowStateReads_),endBatch(),ht.runAsAction_&&untrackedEnd(ht.prevDerivation_),globalState.suppressReactionErrors=!1}function allowStateChanges(ht,Et){var yt=allowStateChangesStart(ht);try{return Et()}finally{allowStateChangesEnd(yt)}}function allowStateChangesStart(ht){var Et=globalState.allowStateChanges;return globalState.allowStateChanges=ht,Et}function allowStateChangesEnd(ht){globalState.allowStateChanges=ht}var ObservableValue=function(ht){function Et(Ct,$t,At,Bt,Dt){var Ft;return At===void 0&&(At="ObservableValue"),Dt===void 0&&(Dt=comparer.default),Ft=ht.call(this,At)||this,Ft.enhancer=void 0,Ft.name_=void 0,Ft.equals=void 0,Ft.hasUnreportedChange_=!1,Ft.interceptors_=void 0,Ft.changeListeners_=void 0,Ft.value_=void 0,Ft.dehancer=void 0,Ft.enhancer=$t,Ft.name_=At,Ft.equals=Dt,Ft.value_=$t(Ct,void 0,At),Ft}_inheritsLoose$3(Et,ht);var yt=Et.prototype;return yt.dehanceValue=function($t){return this.dehancer!==void 0?this.dehancer($t):$t},yt.set=function($t){this.value_,$t=this.prepareNewValue_($t),$t!==globalState.UNCHANGED&&this.setNewValue_($t)},yt.prepareNewValue_=function($t){if(hasInterceptors(this)){var At=interceptChange(this,{object:this,type:UPDATE,newValue:$t});if(!At)return globalState.UNCHANGED;$t=At.newValue}return $t=this.enhancer($t,this.value_,this.name_),this.equals(this.value_,$t)?globalState.UNCHANGED:$t},yt.setNewValue_=function($t){var At=this.value_;this.value_=$t,this.reportChanged(),hasListeners(this)&&notifyListeners(this,{type:UPDATE,object:this,newValue:$t,oldValue:At})},yt.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},yt.intercept_=function($t){return registerInterceptor(this,$t)},yt.observe_=function($t,At){return At&&$t({observableKind:"value",debugObjectName:this.name_,object:this,type:UPDATE,newValue:this.value_,oldValue:void 0}),registerListener(this,$t)},yt.raw=function(){return this.value_},yt.toJSON=function(){return this.get()},yt.toString=function(){return this.name_+"["+this.value_+"]"},yt.valueOf=function(){return toPrimitive$3(this.get())},yt[Symbol.toPrimitive]=function(){return this.valueOf()},Et}(Atom),isObservableValue=createInstanceofPredicate("ObservableValue",ObservableValue),ComputedValue=function(){function ht(yt){this.dependenciesState_=IDerivationState_.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=IDerivationState_.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new CaughtException(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=TraceMode.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,yt.get||die(31),this.derivation=yt.get,this.name_=yt.name||"ComputedValue",yt.set&&(this.setter_=createAction("ComputedValue-setter",yt.set)),this.equals_=yt.equals||(yt.compareStructural||yt.struct?comparer.structural:comparer.default),this.scope_=yt.context,this.requiresReaction_=yt.requiresReaction,this.keepAlive_=!!yt.keepAlive}var Et=ht.prototype;return Et.onBecomeStale_=function(){propagateMaybeChanged(this)},Et.onBO=function(){this.onBOL&&this.onBOL.forEach(function(Ct){return Ct()})},Et.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(Ct){return Ct()})},Et.get=function(){if(this.isComputing&&die(32,this.name_,this.derivation),globalState.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)shouldCompute(this)&&(this.warnAboutUntrackedRead_(),startBatch(),this.value_=this.computeValue_(!1),endBatch());else if(reportObserved(this),shouldCompute(this)){var Ct=globalState.trackingContext;this.keepAlive_&&!Ct&&(globalState.trackingContext=this),this.trackAndCompute()&&propagateChangeConfirmed(this),globalState.trackingContext=Ct}var $t=this.value_;if(isCaughtException($t))throw $t.cause;return $t},Et.set=function(Ct){if(this.setter_){this.isRunningSetter&&die(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,Ct)}finally{this.isRunningSetter=!1}}else die(34,this.name_)},Et.trackAndCompute=function(){var Ct=this.value_,$t=this.dependenciesState_===IDerivationState_.NOT_TRACKING_,At=this.computeValue_(!0),Bt=$t||isCaughtException(Ct)||isCaughtException(At)||!this.equals_(Ct,At);return Bt&&(this.value_=At),Bt},Et.computeValue_=function(Ct){this.isComputing=!0;var $t=allowStateChangesStart(!1),At;if(Ct)At=trackDerivedFunction(this,this.derivation,this.scope_);else if(globalState.disableErrorBoundaries===!0)At=this.derivation.call(this.scope_);else try{At=this.derivation.call(this.scope_)}catch(Bt){At=new CaughtException(Bt)}return allowStateChangesEnd($t),this.isComputing=!1,At},Et.suspend_=function(){this.keepAlive_||(clearObserving(this),this.value_=void 0)},Et.observe_=function(Ct,$t){var At=this,Bt=!0,Dt=void 0;return autorun(function(){var Ft=At.get();if(!Bt||$t){var kt=untrackedStart();Ct({observableKind:"computed",debugObjectName:At.name_,type:UPDATE,object:At,newValue:Ft,oldValue:Dt}),untrackedEnd(kt)}Bt=!1,Dt=Ft})},Et.warnAboutUntrackedRead_=function(){},Et.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},Et.valueOf=function(){return toPrimitive$3(this.get())},Et[Symbol.toPrimitive]=function(){return this.valueOf()},_createClass(ht,[{key:"isComputing",get:function(){return getFlag(this.flags_,ht.isComputingMask_)},set:function(Ct){this.flags_=setFlag(this.flags_,ht.isComputingMask_,Ct)}},{key:"isRunningSetter",get:function(){return getFlag(this.flags_,ht.isRunningSetterMask_)},set:function(Ct){this.flags_=setFlag(this.flags_,ht.isRunningSetterMask_,Ct)}},{key:"isBeingObserved",get:function(){return getFlag(this.flags_,ht.isBeingObservedMask_)},set:function(Ct){this.flags_=setFlag(this.flags_,ht.isBeingObservedMask_,Ct)}},{key:"isPendingUnobservation",get:function(){return getFlag(this.flags_,ht.isPendingUnobservationMask_)},set:function(Ct){this.flags_=setFlag(this.flags_,ht.isPendingUnobservationMask_,Ct)}},{key:"diffValue",get:function(){return getFlag(this.flags_,ht.diffValueMask_)?1:0},set:function(Ct){this.flags_=setFlag(this.flags_,ht.diffValueMask_,Ct===1)}}])}();ComputedValue.isComputingMask_=1;ComputedValue.isRunningSetterMask_=2;ComputedValue.isBeingObservedMask_=4;ComputedValue.isPendingUnobservationMask_=8;ComputedValue.diffValueMask_=16;var isComputedValue=createInstanceofPredicate("ComputedValue",ComputedValue),IDerivationState_;(function(ht){ht[ht.NOT_TRACKING_=-1]="NOT_TRACKING_",ht[ht.UP_TO_DATE_=0]="UP_TO_DATE_",ht[ht.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",ht[ht.STALE_=2]="STALE_"})(IDerivationState_||(IDerivationState_={}));var TraceMode;(function(ht){ht[ht.NONE=0]="NONE",ht[ht.LOG=1]="LOG",ht[ht.BREAK=2]="BREAK"})(TraceMode||(TraceMode={}));var CaughtException=function ht(Et){this.cause=void 0,this.cause=Et};function isCaughtException(ht){return ht instanceof CaughtException}function shouldCompute(ht){switch(ht.dependenciesState_){case IDerivationState_.UP_TO_DATE_:return!1;case IDerivationState_.NOT_TRACKING_:case IDerivationState_.STALE_:return!0;case IDerivationState_.POSSIBLY_STALE_:{for(var Et=allowStateReadsStart(!0),yt=untrackedStart(),Ct=ht.observing_,$t=Ct.length,At=0;At<$t;At++){var Bt=Ct[At];if(isComputedValue(Bt)){if(globalState.disableErrorBoundaries)Bt.get();else try{Bt.get()}catch{return untrackedEnd(yt),allowStateReadsEnd(Et),!0}if(ht.dependenciesState_===IDerivationState_.STALE_)return untrackedEnd(yt),allowStateReadsEnd(Et),!0}}return changeDependenciesStateTo0(ht),untrackedEnd(yt),allowStateReadsEnd(Et),!1}}}function checkIfStateModificationsAreAllowed(ht){}function trackDerivedFunction(ht,Et,yt){var Ct=allowStateReadsStart(!0);changeDependenciesStateTo0(ht),ht.newObserving_=new Array(ht.runId_===0?100:ht.observing_.length),ht.unboundDepsCount_=0,ht.runId_=++globalState.runId;var $t=globalState.trackingDerivation;globalState.trackingDerivation=ht,globalState.inBatch++;var At;if(globalState.disableErrorBoundaries===!0)At=Et.call(yt);else try{At=Et.call(yt)}catch(Bt){At=new CaughtException(Bt)}return globalState.inBatch--,globalState.trackingDerivation=$t,bindDependencies(ht),allowStateReadsEnd(Ct),At}function bindDependencies(ht){for(var Et=ht.observing_,yt=ht.observing_=ht.newObserving_,Ct=IDerivationState_.UP_TO_DATE_,$t=0,At=ht.unboundDepsCount_,Bt=0;Bt<At;Bt++){var Dt=yt[Bt];Dt.diffValue===0&&(Dt.diffValue=1,$t!==Bt&&(yt[$t]=Dt),$t++),Dt.dependenciesState_>Ct&&(Ct=Dt.dependenciesState_)}for(yt.length=$t,ht.newObserving_=null,At=Et.length;At--;){var Ft=Et[At];Ft.diffValue===0&&removeObserver(Ft,ht),Ft.diffValue=0}for(;$t--;){var kt=yt[$t];kt.diffValue===1&&(kt.diffValue=0,addObserver(kt,ht))}Ct!==IDerivationState_.UP_TO_DATE_&&(ht.dependenciesState_=Ct,ht.onBecomeStale_())}function clearObserving(ht){var Et=ht.observing_;ht.observing_=[];for(var yt=Et.length;yt--;)removeObserver(Et[yt],ht);ht.dependenciesState_=IDerivationState_.NOT_TRACKING_}function untracked(ht){var Et=untrackedStart();try{return ht()}finally{untrackedEnd(Et)}}function untrackedStart(){var ht=globalState.trackingDerivation;return globalState.trackingDerivation=null,ht}function untrackedEnd(ht){globalState.trackingDerivation=ht}function allowStateReadsStart(ht){var Et=globalState.allowStateReads;return globalState.allowStateReads=ht,Et}function allowStateReadsEnd(ht){globalState.allowStateReads=ht}function changeDependenciesStateTo0(ht){if(ht.dependenciesState_!==IDerivationState_.UP_TO_DATE_){ht.dependenciesState_=IDerivationState_.UP_TO_DATE_;for(var Et=ht.observing_,yt=Et.length;yt--;)Et[yt].lowestObserverState_=IDerivationState_.UP_TO_DATE_}}var MobXGlobals=function ht(){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},canMergeGlobalState=!0,isolateCalled=!1,globalState=function(){var ht=getGlobal$1();return ht.__mobxInstanceCount>0&&!ht.__mobxGlobals&&(canMergeGlobalState=!1),ht.__mobxGlobals&&ht.__mobxGlobals.version!==new MobXGlobals().version&&(canMergeGlobalState=!1),canMergeGlobalState?ht.__mobxGlobals?(ht.__mobxInstanceCount+=1,ht.__mobxGlobals.UNCHANGED||(ht.__mobxGlobals.UNCHANGED={}),ht.__mobxGlobals):(ht.__mobxInstanceCount=1,ht.__mobxGlobals=new MobXGlobals):(setTimeout(function(){isolateCalled||die(35)},1),new MobXGlobals)}();function isolateGlobalState(){if((globalState.pendingReactions.length||globalState.inBatch||globalState.isRunningReactions)&&die(36),isolateCalled=!0,canMergeGlobalState){var ht=getGlobal$1();--ht.__mobxInstanceCount===0&&(ht.__mobxGlobals=void 0),globalState=new MobXGlobals}}function addObserver(ht,Et){ht.observers_.add(Et),ht.lowestObserverState_>Et.dependenciesState_&&(ht.lowestObserverState_=Et.dependenciesState_)}function removeObserver(ht,Et){ht.observers_.delete(Et),ht.observers_.size===0&&queueForUnobservation(ht)}function queueForUnobservation(ht){ht.isPendingUnobservation===!1&&(ht.isPendingUnobservation=!0,globalState.pendingUnobservations.push(ht))}function startBatch(){globalState.inBatch++}function endBatch(){if(--globalState.inBatch===0){runReactions();for(var ht=globalState.pendingUnobservations,Et=0;Et<ht.length;Et++){var yt=ht[Et];yt.isPendingUnobservation=!1,yt.observers_.size===0&&(yt.isBeingObserved&&(yt.isBeingObserved=!1,yt.onBUO()),yt instanceof ComputedValue&&yt.suspend_())}globalState.pendingUnobservations=[]}}function reportObserved(ht){var Et=globalState.trackingDerivation;return Et!==null?(Et.runId_!==ht.lastAccessedBy_&&(ht.lastAccessedBy_=Et.runId_,Et.newObserving_[Et.unboundDepsCount_++]=ht,!ht.isBeingObserved&&globalState.trackingContext&&(ht.isBeingObserved=!0,ht.onBO())),ht.isBeingObserved):(ht.observers_.size===0&&globalState.inBatch>0&&queueForUnobservation(ht),!1)}function propagateChanged(ht){ht.lowestObserverState_!==IDerivationState_.STALE_&&(ht.lowestObserverState_=IDerivationState_.STALE_,ht.observers_.forEach(function(Et){Et.dependenciesState_===IDerivationState_.UP_TO_DATE_&&Et.onBecomeStale_(),Et.dependenciesState_=IDerivationState_.STALE_}))}function propagateChangeConfirmed(ht){ht.lowestObserverState_!==IDerivationState_.STALE_&&(ht.lowestObserverState_=IDerivationState_.STALE_,ht.observers_.forEach(function(Et){Et.dependenciesState_===IDerivationState_.POSSIBLY_STALE_?Et.dependenciesState_=IDerivationState_.STALE_:Et.dependenciesState_===IDerivationState_.UP_TO_DATE_&&(ht.lowestObserverState_=IDerivationState_.UP_TO_DATE_)}))}function propagateMaybeChanged(ht){ht.lowestObserverState_===IDerivationState_.UP_TO_DATE_&&(ht.lowestObserverState_=IDerivationState_.POSSIBLY_STALE_,ht.observers_.forEach(function(Et){Et.dependenciesState_===IDerivationState_.UP_TO_DATE_&&(Et.dependenciesState_=IDerivationState_.POSSIBLY_STALE_,Et.onBecomeStale_())}))}var Reaction=function(){function ht(yt,Ct,$t,At){yt===void 0&&(yt="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=IDerivationState_.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=TraceMode.NONE,this.name_=yt,this.onInvalidate_=Ct,this.errorHandler_=$t,this.requiresObservable_=At}var Et=ht.prototype;return Et.onBecomeStale_=function(){this.schedule_()},Et.schedule_=function(){this.isScheduled||(this.isScheduled=!0,globalState.pendingReactions.push(this),runReactions())},Et.runReaction_=function(){if(!this.isDisposed){startBatch(),this.isScheduled=!1;var Ct=globalState.trackingContext;if(globalState.trackingContext=this,shouldCompute(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch($t){this.reportExceptionInDerivation_($t)}}globalState.trackingContext=Ct,endBatch()}},Et.track=function(Ct){if(!this.isDisposed){startBatch(),this.isRunning=!0;var $t=globalState.trackingContext;globalState.trackingContext=this;var At=trackDerivedFunction(this,Ct,void 0);globalState.trackingContext=$t,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&clearObserving(this),isCaughtException(At)&&this.reportExceptionInDerivation_(At.cause),endBatch()}},Et.reportExceptionInDerivation_=function(Ct){var $t=this;if(this.errorHandler_){this.errorHandler_(Ct,this);return}if(globalState.disableErrorBoundaries)throw Ct;var At="[mobx] uncaught error in '"+this+"'";globalState.suppressReactionErrors||console.error(At,Ct),globalState.globalReactionErrorHandlers.forEach(function(Bt){return Bt(Ct,$t)})},Et.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(startBatch(),clearObserving(this),endBatch()))},Et.getDisposer_=function(Ct){var $t=this,At=function Bt(){$t.dispose(),Ct==null||Ct.removeEventListener==null||Ct.removeEventListener("abort",Bt)};return Ct==null||Ct.addEventListener==null||Ct.addEventListener("abort",At),At[$mobx]=this,At},Et.toString=function(){return"Reaction["+this.name_+"]"},Et.trace=function(Ct){},_createClass(ht,[{key:"isDisposed",get:function(){return getFlag(this.flags_,ht.isDisposedMask_)},set:function(Ct){this.flags_=setFlag(this.flags_,ht.isDisposedMask_,Ct)}},{key:"isScheduled",get:function(){return getFlag(this.flags_,ht.isScheduledMask_)},set:function(Ct){this.flags_=setFlag(this.flags_,ht.isScheduledMask_,Ct)}},{key:"isTrackPending",get:function(){return getFlag(this.flags_,ht.isTrackPendingMask_)},set:function(Ct){this.flags_=setFlag(this.flags_,ht.isTrackPendingMask_,Ct)}},{key:"isRunning",get:function(){return getFlag(this.flags_,ht.isRunningMask_)},set:function(Ct){this.flags_=setFlag(this.flags_,ht.isRunningMask_,Ct)}},{key:"diffValue",get:function(){return getFlag(this.flags_,ht.diffValueMask_)?1:0},set:function(Ct){this.flags_=setFlag(this.flags_,ht.diffValueMask_,Ct===1)}}])}();Reaction.isDisposedMask_=1;Reaction.isScheduledMask_=2;Reaction.isTrackPendingMask_=4;Reaction.isRunningMask_=8;Reaction.diffValueMask_=16;var MAX_REACTION_ITERATIONS=100,reactionScheduler=function ht(Et){return Et()};function runReactions(){globalState.inBatch>0||globalState.isRunningReactions||reactionScheduler(runReactionsHelper)}function runReactionsHelper(){globalState.isRunningReactions=!0;for(var ht=globalState.pendingReactions,Et=0;ht.length>0;){++Et===MAX_REACTION_ITERATIONS&&(console.error("[mobx] cycle in reaction: "+ht[0]),ht.splice(0));for(var yt=ht.splice(0),Ct=0,$t=yt.length;Ct<$t;Ct++)yt[Ct].runReaction_()}globalState.isRunningReactions=!1}var isReaction=createInstanceofPredicate("Reaction",Reaction);function setReactionScheduler(ht){var Et=reactionScheduler;reactionScheduler=function(Ct){return ht(function(){return Et(Ct)})}}function isSpyEnabled(){return!1}function spyReport(ht){}function spyReportStart(ht){}function spyReportEnd(ht){}function spy(ht){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var ACTION="action",ACTION_BOUND="action.bound",AUTOACTION="autoAction",AUTOACTION_BOUND="autoAction.bound",DEFAULT_ACTION_NAME="<unnamed action>",actionAnnotation=createActionAnnotation(ACTION),actionBoundAnnotation=createActionAnnotation(ACTION_BOUND,{bound:!0}),autoActionAnnotation=createActionAnnotation(AUTOACTION,{autoAction:!0}),autoActionBoundAnnotation=createActionAnnotation(AUTOACTION_BOUND,{autoAction:!0,bound:!0});function createActionFactory(ht){var Et=function(Ct,$t){if(isFunction$5(Ct))return createAction(Ct.name||DEFAULT_ACTION_NAME,Ct,ht);if(isFunction$5($t))return createAction(Ct,$t,ht);if(is20223Decorator($t))return(ht?autoActionAnnotation:actionAnnotation).decorate_20223_(Ct,$t);if(isStringish($t))return storeAnnotation(Ct,$t,ht?autoActionAnnotation:actionAnnotation);if(isStringish(Ct))return createDecoratorAnnotation(createActionAnnotation(ht?AUTOACTION:ACTION,{name:Ct,autoAction:ht}))};return Et}var action=createActionFactory(!1);Object.assign(action,actionAnnotation);var autoAction=createActionFactory(!0);Object.assign(autoAction,autoActionAnnotation);action.bound=createDecoratorAnnotation(actionBoundAnnotation);autoAction.bound=createDecoratorAnnotation(autoActionBoundAnnotation);function runInAction(ht){return executeAction(ht.name||DEFAULT_ACTION_NAME,!1,ht,this,void 0)}function isAction(ht){return isFunction$5(ht)&&ht.isMobxAction===!0}function autorun(ht,Et){var yt,Ct,$t,At;Et===void 0&&(Et=EMPTY_OBJECT);var Bt=(yt=(Ct=Et)==null?void 0:Ct.name)!=null?yt:"Autorun",Dt=!Et.scheduler&&!Et.delay,Ft;if(Dt)Ft=new Reaction(Bt,function(){this.track(Nt)},Et.onError,Et.requiresObservable);else{var kt=createSchedulerFromOptions(Et),Mt=!1;Ft=new Reaction(Bt,function(){Mt||(Mt=!0,kt(function(){Mt=!1,Ft.isDisposed||Ft.track(Nt)}))},Et.onError,Et.requiresObservable)}function Nt(){ht(Ft)}return($t=Et)!=null&&($t=$t.signal)!=null&&$t.aborted||Ft.schedule_(),Ft.getDisposer_((At=Et)==null?void 0:At.signal)}var run=function ht(Et){return Et()};function createSchedulerFromOptions(ht){return ht.scheduler?ht.scheduler:ht.delay?function(Et){return setTimeout(Et,ht.delay)}:run}function reaction(ht,Et,yt){var Ct,$t,At;yt===void 0&&(yt=EMPTY_OBJECT);var Bt=(Ct=yt.name)!=null?Ct:"Reaction",Dt=action(Bt,yt.onError?wrapErrorHandler(yt.onError,Et):Et),Ft=!yt.scheduler&&!yt.delay,kt=createSchedulerFromOptions(yt),Mt=!0,Nt=!1,jt,zt=yt.compareStructural?comparer.structural:yt.equals||comparer.default,Vt=new Reaction(Bt,function(){Mt||Ft?Kt():Nt||(Nt=!0,kt(Kt))},yt.onError,yt.requiresObservable);function Kt(){if(Nt=!1,!Vt.isDisposed){var Xt=!1,Qt=jt;Vt.track(function(){var Zt=allowStateChanges(!1,function(){return ht(Vt)});Xt=Mt||!zt(jt,Zt),jt=Zt}),(Mt&&yt.fireImmediately||!Mt&&Xt)&&Dt(jt,Qt,Vt),Mt=!1}}return($t=yt)!=null&&($t=$t.signal)!=null&&$t.aborted||Vt.schedule_(),Vt.getDisposer_((At=yt)==null?void 0:At.signal)}function wrapErrorHandler(ht,Et){return function(){try{return Et.apply(this,arguments)}catch(yt){ht.call(this,yt)}}}var ON_BECOME_OBSERVED="onBO",ON_BECOME_UNOBSERVED="onBUO";function onBecomeObserved(ht,Et,yt){return interceptHook(ON_BECOME_OBSERVED,ht,Et,yt)}function onBecomeUnobserved(ht,Et,yt){return interceptHook(ON_BECOME_UNOBSERVED,ht,Et,yt)}function interceptHook(ht,Et,yt,Ct){var $t=getAtom(Et),At=isFunction$5(Ct)?Ct:yt,Bt=ht+"L";return $t[Bt]?$t[Bt].add(At):$t[Bt]=new Set([At]),function(){var Dt=$t[Bt];Dt&&(Dt.delete(At),Dt.size===0&&delete $t[Bt])}}var NEVER="never",ALWAYS="always",OBSERVED="observed";function configure(ht){ht.isolateGlobalState===!0&&isolateGlobalState();var Et=ht.useProxies,yt=ht.enforceActions;if(Et!==void 0&&(globalState.useProxies=Et===ALWAYS?!0:Et===NEVER?!1:typeof Proxy<"u"),Et==="ifavailable"&&(globalState.verifyProxies=!0),yt!==void 0){var Ct=yt===ALWAYS?ALWAYS:yt===OBSERVED;globalState.enforceActions=Ct,globalState.allowStateChanges=!(Ct===!0||Ct===ALWAYS)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function($t){$t in ht&&(globalState[$t]=!!ht[$t])}),globalState.allowStateReads=!globalState.observableRequiresReaction,ht.reactionScheduler&&setReactionScheduler(ht.reactionScheduler)}function extendObservable(ht,Et,yt,Ct){var $t=getOwnPropertyDescriptors$2(Et);return initObservable(function(){var At=asObservableObject(ht,Ct)[$mobx];ownKeys$4($t).forEach(function(Bt){At.extend_(Bt,$t[Bt],yt&&Bt in yt?yt[Bt]:!0)})}),ht}function getDependencyTree(ht,Et){return nodeToDependencyTree(getAtom(ht,Et))}function nodeToDependencyTree(ht){var Et={name:ht.name_};return ht.observing_&&ht.observing_.length>0&&(Et.dependencies=unique(ht.observing_).map(nodeToDependencyTree)),Et}function unique(ht){return Array.from(new Set(ht))}var generatorId=0;function FlowCancellationError(){this.message="FLOW_CANCELLED"}FlowCancellationError.prototype=Object.create(Error.prototype);var flowAnnotation=createFlowAnnotation("flow"),flowBoundAnnotation=createFlowAnnotation("flow.bound",{bound:!0}),flow=Object.assign(function ht(Et,yt){if(is20223Decorator(yt))return flowAnnotation.decorate_20223_(Et,yt);if(isStringish(yt))return storeAnnotation(Et,yt,flowAnnotation);var Ct=Et,$t=Ct.name||"<unnamed flow>",At=function(){var Dt=this,Ft=arguments,kt=++generatorId,Mt=action($t+" - runid: "+kt+" - init",Ct).apply(Dt,Ft),Nt,jt=void 0,zt=new Promise(function(Vt,Kt){var Xt=0;Nt=Kt;function Qt(cr){jt=void 0;var Er;try{Er=action($t+" - runid: "+kt+" - yield "+Xt++,Mt.next).call(Mt,cr)}catch(pr){return Kt(pr)}dr(Er)}function Zt(cr){jt=void 0;var Er;try{Er=action($t+" - runid: "+kt+" - yield "+Xt++,Mt.throw).call(Mt,cr)}catch(pr){return Kt(pr)}dr(Er)}function dr(cr){if(isFunction$5(cr==null?void 0:cr.then)){cr.then(dr,Kt);return}return cr.done?Vt(cr.value):(jt=Promise.resolve(cr.value),jt.then(Qt,Zt))}Qt(void 0)});return zt.cancel=action($t+" - runid: "+kt+" - cancel",function(){try{jt&&cancelPromise(jt);var Vt=Mt.return(void 0),Kt=Promise.resolve(Vt.value);Kt.then(noop$1,noop$1),cancelPromise(Kt),Nt(new FlowCancellationError)}catch(Xt){Nt(Xt)}}),zt};return At.isMobXFlow=!0,At},flowAnnotation);flow.bound=createDecoratorAnnotation(flowBoundAnnotation);function cancelPromise(ht){isFunction$5(ht.cancel)&&ht.cancel()}function isFlow(ht){return(ht==null?void 0:ht.isMobXFlow)===!0}function _isObservable(ht,Et){return ht?isObservableObject(ht)||!!ht[$mobx]||isAtom(ht)||isReaction(ht)||isComputedValue(ht):!1}function isObservable(ht){return _isObservable(ht)}function apiOwnKeys(ht){if(isObservableObject(ht))return ht[$mobx].ownKeys_();die(38)}function cache$1(ht,Et,yt){return ht.set(Et,yt),yt}function toJSHelper(ht,Et){if(ht==null||typeof ht!="object"||ht instanceof Date||!isObservable(ht))return ht;if(isObservableValue(ht)||isComputedValue(ht))return toJSHelper(ht.get(),Et);if(Et.has(ht))return Et.get(ht);if(isObservableArray(ht)){var yt=cache$1(Et,ht,new Array(ht.length));return ht.forEach(function(Bt,Dt){yt[Dt]=toJSHelper(Bt,Et)}),yt}if(isObservableSet(ht)){var Ct=cache$1(Et,ht,new Set);return ht.forEach(function(Bt){Ct.add(toJSHelper(Bt,Et))}),Ct}if(isObservableMap(ht)){var $t=cache$1(Et,ht,new Map);return ht.forEach(function(Bt,Dt){$t.set(Dt,toJSHelper(Bt,Et))}),$t}else{var At=cache$1(Et,ht,{});return apiOwnKeys(ht).forEach(function(Bt){objectPrototype$1.propertyIsEnumerable.call(ht,Bt)&&(At[Bt]=toJSHelper(ht[Bt],Et))}),At}}function toJS(ht,Et){return toJSHelper(ht,new Map)}function transaction(ht,Et){Et===void 0&&(Et=void 0),startBatch();try{return ht.apply(Et)}finally{endBatch()}}function getAdm(ht){return ht[$mobx]}var objectProxyTraps={has:function ht(Et,yt){return getAdm(Et).has_(yt)},get:function ht(Et,yt){return getAdm(Et).get_(yt)},set:function ht(Et,yt,Ct){var $t;return isStringish(yt)?($t=getAdm(Et).set_(yt,Ct,!0))!=null?$t:!0:!1},deleteProperty:function ht(Et,yt){var Ct;return isStringish(yt)?(Ct=getAdm(Et).delete_(yt,!0))!=null?Ct:!0:!1},defineProperty:function ht(Et,yt,Ct){var $t;return($t=getAdm(Et).defineProperty_(yt,Ct))!=null?$t:!0},ownKeys:function ht(Et){return getAdm(Et).ownKeys_()},preventExtensions:function ht(Et){die(13)}};function asDynamicObservableObject(ht,Et){var yt,Ct;return assertProxies(),ht=asObservableObject(ht,Et),(Ct=(yt=ht[$mobx]).proxy_)!=null?Ct:yt.proxy_=new Proxy(ht,objectProxyTraps)}function hasInterceptors(ht){return ht.interceptors_!==void 0&&ht.interceptors_.length>0}function registerInterceptor(ht,Et){var yt=ht.interceptors_||(ht.interceptors_=[]);return yt.push(Et),once(function(){var Ct=yt.indexOf(Et);Ct!==-1&&yt.splice(Ct,1)})}function interceptChange(ht,Et){var yt=untrackedStart();try{for(var Ct=[].concat(ht.interceptors_||[]),$t=0,At=Ct.length;$t<At&&(Et=Ct[$t](Et),Et&&!Et.type&&die(14),!!Et);$t++);return Et}finally{untrackedEnd(yt)}}function hasListeners(ht){return ht.changeListeners_!==void 0&&ht.changeListeners_.length>0}function registerListener(ht,Et){var yt=ht.changeListeners_||(ht.changeListeners_=[]);return yt.push(Et),once(function(){var Ct=yt.indexOf(Et);Ct!==-1&&yt.splice(Ct,1)})}function notifyListeners(ht,Et){var yt=untrackedStart(),Ct=ht.changeListeners_;if(Ct){Ct=Ct.slice();for(var $t=0,At=Ct.length;$t<At;$t++)Ct[$t](Et);untrackedEnd(yt)}}function makeObservable(ht,Et,yt){return initObservable(function(){var Ct,$t=asObservableObject(ht,yt)[$mobx];(Ct=Et)!=null||(Et=collectStoredAnnotations(ht)),ownKeys$4(Et).forEach(function(At){return $t.make_(At,Et[At])})}),ht}var keysSymbol=Symbol("mobx-keys");function makeAutoObservable(ht,Et,yt){return isPlainObject$1(ht)?extendObservable(ht,ht,Et,yt):(initObservable(function(){var Ct=asObservableObject(ht,yt)[$mobx];if(!ht[keysSymbol]){var $t=Object.getPrototypeOf(ht),At=new Set([].concat(ownKeys$4(ht),ownKeys$4($t)));At.delete("constructor"),At.delete($mobx),addHiddenProp($t,keysSymbol,At)}ht[keysSymbol].forEach(function(Bt){return Ct.make_(Bt,Et&&Bt in Et?Et[Bt]:!0)})}),ht)}var SPLICE="splice",UPDATE="update",MAX_SPLICE_SIZE=1e4,arrayTraps={get:function ht(Et,yt){var Ct=Et[$mobx];return yt===$mobx?Ct:yt==="length"?Ct.getArrayLength_():typeof yt=="string"&&!isNaN(yt)?Ct.get_(parseInt(yt)):hasProp(arrayExtensions,yt)?arrayExtensions[yt]:Et[yt]},set:function ht(Et,yt,Ct){var $t=Et[$mobx];return yt==="length"&&$t.setArrayLength_(Ct),typeof yt=="symbol"||isNaN(yt)?Et[yt]=Ct:$t.set_(parseInt(yt),Ct),!0},preventExtensions:function ht(){die(15)}},ObservableArrayAdministration=function(){function ht(yt,Ct,$t,At){yt===void 0&&(yt="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=$t,this.legacyMode_=At,this.atom_=new Atom(yt),this.enhancer_=function(Bt,Dt){return Ct(Bt,Dt,"ObservableArray[..]")}}var Et=ht.prototype;return Et.dehanceValue_=function(Ct){return this.dehancer!==void 0?this.dehancer(Ct):Ct},Et.dehanceValues_=function(Ct){return this.dehancer!==void 0&&Ct.length>0?Ct.map(this.dehancer):Ct},Et.intercept_=function(Ct){return registerInterceptor(this,Ct)},Et.observe_=function(Ct,$t){return $t===void 0&&($t=!1),$t&&Ct({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),registerListener(this,Ct)},Et.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},Et.setArrayLength_=function(Ct){(typeof Ct!="number"||isNaN(Ct)||Ct<0)&&die("Out of range: "+Ct);var $t=this.values_.length;if(Ct!==$t)if(Ct>$t){for(var At=new Array(Ct-$t),Bt=0;Bt<Ct-$t;Bt++)At[Bt]=void 0;this.spliceWithArray_($t,0,At)}else this.spliceWithArray_(Ct,$t-Ct)},Et.updateArrayLength_=function(Ct,$t){Ct!==this.lastKnownLength_&&die(16),this.lastKnownLength_+=$t,this.legacyMode_&&$t>0&&reserveArrayBuffer(Ct+$t+1)},Et.spliceWithArray_=function(Ct,$t,At){var Bt=this;this.atom_;var Dt=this.values_.length;if(Ct===void 0?Ct=0:Ct>Dt?Ct=Dt:Ct<0&&(Ct=Math.max(0,Dt+Ct)),arguments.length===1?$t=Dt-Ct:$t==null?$t=0:$t=Math.max(0,Math.min($t,Dt-Ct)),At===void 0&&(At=EMPTY_ARRAY),hasInterceptors(this)){var Ft=interceptChange(this,{object:this.proxy_,type:SPLICE,index:Ct,removedCount:$t,added:At});if(!Ft)return EMPTY_ARRAY;$t=Ft.removedCount,At=Ft.added}if(At=At.length===0?At:At.map(function(Nt){return Bt.enhancer_(Nt,void 0)}),this.legacyMode_){var kt=At.length-$t;this.updateArrayLength_(Dt,kt)}var Mt=this.spliceItemsIntoValues_(Ct,$t,At);return($t!==0||At.length!==0)&&this.notifyArraySplice_(Ct,At,Mt),this.dehanceValues_(Mt)},Et.spliceItemsIntoValues_=function(Ct,$t,At){if(At.length<MAX_SPLICE_SIZE){var Bt;return(Bt=this.values_).splice.apply(Bt,[Ct,$t].concat(At))}else{var Dt=this.values_.slice(Ct,Ct+$t),Ft=this.values_.slice(Ct+$t);this.values_.length+=At.length-$t;for(var kt=0;kt<At.length;kt++)this.values_[Ct+kt]=At[kt];for(var Mt=0;Mt<Ft.length;Mt++)this.values_[Ct+At.length+Mt]=Ft[Mt];return Dt}},Et.notifyArrayChildUpdate_=function(Ct,$t,At){var Bt=!this.owned_&&isSpyEnabled(),Dt=hasListeners(this),Ft=Dt||Bt?{observableKind:"array",object:this.proxy_,type:UPDATE,debugObjectName:this.atom_.name_,index:Ct,newValue:$t,oldValue:At}:null;this.atom_.reportChanged(),Dt&&notifyListeners(this,Ft)},Et.notifyArraySplice_=function(Ct,$t,At){var Bt=!this.owned_&&isSpyEnabled(),Dt=hasListeners(this),Ft=Dt||Bt?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:SPLICE,index:Ct,removed:At,added:$t,removedCount:At.length,addedCount:$t.length}:null;this.atom_.reportChanged(),Dt&&notifyListeners(this,Ft)},Et.get_=function(Ct){if(this.legacyMode_&&Ct>=this.values_.length){console.warn("[mobx] Out of bounds read: "+Ct);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[Ct])},Et.set_=function(Ct,$t){var At=this.values_;if(this.legacyMode_&&Ct>At.length&&die(17,Ct,At.length),Ct<At.length){this.atom_;var Bt=At[Ct];if(hasInterceptors(this)){var Dt=interceptChange(this,{type:UPDATE,object:this.proxy_,index:Ct,newValue:$t});if(!Dt)return;$t=Dt.newValue}$t=this.enhancer_($t,Bt);var Ft=$t!==Bt;Ft&&(At[Ct]=$t,this.notifyArrayChildUpdate_(Ct,$t,Bt))}else{for(var kt=new Array(Ct+1-At.length),Mt=0;Mt<kt.length-1;Mt++)kt[Mt]=void 0;kt[kt.length-1]=$t,this.spliceWithArray_(At.length,0,kt)}},ht}();function createObservableArray(ht,Et,yt,Ct){return yt===void 0&&(yt="ObservableArray"),Ct===void 0&&(Ct=!1),assertProxies(),initObservable(function(){var $t=new ObservableArrayAdministration(yt,Et,Ct,!1);addHiddenFinalProp($t.values_,$mobx,$t);var At=new Proxy($t.values_,arrayTraps);return $t.proxy_=At,ht&&ht.length&&$t.spliceWithArray_(0,0,ht),At})}var arrayExtensions={clear:function ht(){return this.splice(0)},replace:function ht(Et){var yt=this[$mobx];return yt.spliceWithArray_(0,yt.values_.length,Et)},toJSON:function ht(){return this.slice()},splice:function ht(Et,yt){for(var Ct=arguments.length,$t=new Array(Ct>2?Ct-2:0),At=2;At<Ct;At++)$t[At-2]=arguments[At];var Bt=this[$mobx];switch(arguments.length){case 0:return[];case 1:return Bt.spliceWithArray_(Et);case 2:return Bt.spliceWithArray_(Et,yt)}return Bt.spliceWithArray_(Et,yt,$t)},spliceWithArray:function ht(Et,yt,Ct){return this[$mobx].spliceWithArray_(Et,yt,Ct)},push:function ht(){for(var Et=this[$mobx],yt=arguments.length,Ct=new Array(yt),$t=0;$t<yt;$t++)Ct[$t]=arguments[$t];return Et.spliceWithArray_(Et.values_.length,0,Ct),Et.values_.length},pop:function ht(){return this.splice(Math.max(this[$mobx].values_.length-1,0),1)[0]},shift:function ht(){return this.splice(0,1)[0]},unshift:function ht(){for(var Et=this[$mobx],yt=arguments.length,Ct=new Array(yt),$t=0;$t<yt;$t++)Ct[$t]=arguments[$t];return Et.spliceWithArray_(0,0,Ct),Et.values_.length},reverse:function ht(){return globalState.trackingDerivation&&die(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function ht(){globalState.trackingDerivation&&die(37,"sort");var Et=this.slice();return Et.sort.apply(Et,arguments),this.replace(Et),this},remove:function ht(Et){var yt=this[$mobx],Ct=yt.dehanceValues_(yt.values_).indexOf(Et);return Ct>-1?(this.splice(Ct,1),!0):!1}};addArrayExtension("at",simpleFunc);addArrayExtension("concat",simpleFunc);addArrayExtension("flat",simpleFunc);addArrayExtension("includes",simpleFunc);addArrayExtension("indexOf",simpleFunc);addArrayExtension("join",simpleFunc);addArrayExtension("lastIndexOf",simpleFunc);addArrayExtension("slice",simpleFunc);addArrayExtension("toString",simpleFunc);addArrayExtension("toLocaleString",simpleFunc);addArrayExtension("toSorted",simpleFunc);addArrayExtension("toSpliced",simpleFunc);addArrayExtension("with",simpleFunc);addArrayExtension("every",mapLikeFunc);addArrayExtension("filter",mapLikeFunc);addArrayExtension("find",mapLikeFunc);addArrayExtension("findIndex",mapLikeFunc);addArrayExtension("findLast",mapLikeFunc);addArrayExtension("findLastIndex",mapLikeFunc);addArrayExtension("flatMap",mapLikeFunc);addArrayExtension("forEach",mapLikeFunc);addArrayExtension("map",mapLikeFunc);addArrayExtension("some",mapLikeFunc);addArrayExtension("toReversed",mapLikeFunc);addArrayExtension("reduce",reduceLikeFunc);addArrayExtension("reduceRight",reduceLikeFunc);function addArrayExtension(ht,Et){typeof Array.prototype[ht]=="function"&&(arrayExtensions[ht]=Et(ht))}function simpleFunc(ht){return function(){var Et=this[$mobx];Et.atom_.reportObserved();var yt=Et.dehanceValues_(Et.values_);return yt[ht].apply(yt,arguments)}}function mapLikeFunc(ht){return function(Et,yt){var Ct=this,$t=this[$mobx];$t.atom_.reportObserved();var At=$t.dehanceValues_($t.values_);return At[ht](function(Bt,Dt){return Et.call(yt,Bt,Dt,Ct)})}}function reduceLikeFunc(ht){return function(){var Et=this,yt=this[$mobx];yt.atom_.reportObserved();var Ct=yt.dehanceValues_(yt.values_),$t=arguments[0];return arguments[0]=function(At,Bt,Dt){return $t(At,Bt,Dt,Et)},Ct[ht].apply(Ct,arguments)}}var isObservableArrayAdministration=createInstanceofPredicate("ObservableArrayAdministration",ObservableArrayAdministration);function isObservableArray(ht){return isObject$f(ht)&&isObservableArrayAdministration(ht[$mobx])}var ObservableMapMarker={},ADD="add",DELETE="delete",ObservableMap=function(){function ht(yt,Ct,$t){var At=this;Ct===void 0&&(Ct=deepEnhancer),$t===void 0&&($t="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[$mobx]=ObservableMapMarker,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=Ct,this.name_=$t,isFunction$5(Map)||die(18),initObservable(function(){At.keysAtom_=createAtom("ObservableMap.keys()"),At.data_=new Map,At.hasMap_=new Map,yt&&At.merge(yt)})}var Et=ht.prototype;return Et.has_=function(Ct){return this.data_.has(Ct)},Et.has=function(Ct){var $t=this;if(!globalState.trackingDerivation)return this.has_(Ct);var At=this.hasMap_.get(Ct);if(!At){var Bt=At=new ObservableValue(this.has_(Ct),referenceEnhancer,"ObservableMap.key?",!1);this.hasMap_.set(Ct,Bt),onBecomeUnobserved(Bt,function(){return $t.hasMap_.delete(Ct)})}return At.get()},Et.set=function(Ct,$t){var At=this.has_(Ct);if(hasInterceptors(this)){var Bt=interceptChange(this,{type:At?UPDATE:ADD,object:this,newValue:$t,name:Ct});if(!Bt)return this;$t=Bt.newValue}return At?this.updateValue_(Ct,$t):this.addValue_(Ct,$t),this},Et.delete=function(Ct){var $t=this;if(this.keysAtom_,hasInterceptors(this)){var At=interceptChange(this,{type:DELETE,object:this,name:Ct});if(!At)return!1}if(this.has_(Ct)){var Bt=isSpyEnabled(),Dt=hasListeners(this),Ft=Dt||Bt?{observableKind:"map",debugObjectName:this.name_,type:DELETE,object:this,oldValue:this.data_.get(Ct).value_,name:Ct}:null;return transaction(function(){var kt;$t.keysAtom_.reportChanged(),(kt=$t.hasMap_.get(Ct))==null||kt.setNewValue_(!1);var Mt=$t.data_.get(Ct);Mt.setNewValue_(void 0),$t.data_.delete(Ct)}),Dt&&notifyListeners(this,Ft),!0}return!1},Et.updateValue_=function(Ct,$t){var At=this.data_.get(Ct);if($t=At.prepareNewValue_($t),$t!==globalState.UNCHANGED){var Bt=isSpyEnabled(),Dt=hasListeners(this),Ft=Dt||Bt?{observableKind:"map",debugObjectName:this.name_,type:UPDATE,object:this,oldValue:At.value_,name:Ct,newValue:$t}:null;At.setNewValue_($t),Dt&&notifyListeners(this,Ft)}},Et.addValue_=function(Ct,$t){var At=this;this.keysAtom_,transaction(function(){var kt,Mt=new ObservableValue($t,At.enhancer_,"ObservableMap.key",!1);At.data_.set(Ct,Mt),$t=Mt.value_,(kt=At.hasMap_.get(Ct))==null||kt.setNewValue_(!0),At.keysAtom_.reportChanged()});var Bt=isSpyEnabled(),Dt=hasListeners(this),Ft=Dt||Bt?{observableKind:"map",debugObjectName:this.name_,type:ADD,object:this,name:Ct,newValue:$t}:null;Dt&&notifyListeners(this,Ft)},Et.get=function(Ct){return this.has(Ct)?this.dehanceValue_(this.data_.get(Ct).get()):this.dehanceValue_(void 0)},Et.dehanceValue_=function(Ct){return this.dehancer!==void 0?this.dehancer(Ct):Ct},Et.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},Et.values=function(){var Ct=this,$t=this.keys();return makeIterable({next:function(){var Bt=$t.next(),Dt=Bt.done,Ft=Bt.value;return{done:Dt,value:Dt?void 0:Ct.get(Ft)}}})},Et.entries=function(){var Ct=this,$t=this.keys();return makeIterable({next:function(){var Bt=$t.next(),Dt=Bt.done,Ft=Bt.value;return{done:Dt,value:Dt?void 0:[Ft,Ct.get(Ft)]}}})},Et[Symbol.iterator]=function(){return this.entries()},Et.forEach=function(Ct,$t){for(var At=_createForOfIteratorHelperLoose(this),Bt;!(Bt=At()).done;){var Dt=Bt.value,Ft=Dt[0],kt=Dt[1];Ct.call($t,kt,Ft,this)}},Et.merge=function(Ct){var $t=this;return isObservableMap(Ct)&&(Ct=new Map(Ct)),transaction(function(){isPlainObject$1(Ct)?getPlainObjectKeys(Ct).forEach(function(At){return $t.set(At,Ct[At])}):Array.isArray(Ct)?Ct.forEach(function(At){var Bt=At[0],Dt=At[1];return $t.set(Bt,Dt)}):isES6Map(Ct)?(isPlainES6Map(Ct)||die(19,Ct),Ct.forEach(function(At,Bt){return $t.set(Bt,At)})):Ct!=null&&die(20,Ct)}),this},Et.clear=function(){var Ct=this;transaction(function(){untracked(function(){for(var $t=_createForOfIteratorHelperLoose(Ct.keys()),At;!(At=$t()).done;){var Bt=At.value;Ct.delete(Bt)}})})},Et.replace=function(Ct){var $t=this;return transaction(function(){for(var At=convertToMap(Ct),Bt=new Map,Dt=!1,Ft=_createForOfIteratorHelperLoose($t.data_.keys()),kt;!(kt=Ft()).done;){var Mt=kt.value;if(!At.has(Mt)){var Nt=$t.delete(Mt);if(Nt)Dt=!0;else{var jt=$t.data_.get(Mt);Bt.set(Mt,jt)}}}for(var zt=_createForOfIteratorHelperLoose(At.entries()),Vt;!(Vt=zt()).done;){var Kt=Vt.value,Xt=Kt[0],Qt=Kt[1],Zt=$t.data_.has(Xt);if($t.set(Xt,Qt),$t.data_.has(Xt)){var dr=$t.data_.get(Xt);Bt.set(Xt,dr),Zt||(Dt=!0)}}if(!Dt)if($t.data_.size!==Bt.size)$t.keysAtom_.reportChanged();else for(var cr=$t.data_.keys(),Er=Bt.keys(),pr=cr.next(),gr=Er.next();!pr.done;){if(pr.value!==gr.value){$t.keysAtom_.reportChanged();break}pr=cr.next(),gr=Er.next()}$t.data_=Bt}),this},Et.toString=function(){return"[object ObservableMap]"},Et.toJSON=function(){return Array.from(this)},Et.observe_=function(Ct,$t){return registerListener(this,Ct)},Et.intercept_=function(Ct){return registerInterceptor(this,Ct)},_createClass(ht,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),isObservableMap=createInstanceofPredicate("ObservableMap",ObservableMap);function convertToMap(ht){if(isES6Map(ht)||isObservableMap(ht))return ht;if(Array.isArray(ht))return new Map(ht);if(isPlainObject$1(ht)){var Et=new Map;for(var yt in ht)Et.set(yt,ht[yt]);return Et}else return die(21,ht)}var ObservableSetMarker={},ObservableSet=function(){function ht(yt,Ct,$t){var At=this;Ct===void 0&&(Ct=deepEnhancer),$t===void 0&&($t="ObservableSet"),this.name_=void 0,this[$mobx]=ObservableSetMarker,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=$t,isFunction$5(Set)||die(22),this.enhancer_=function(Bt,Dt){return Ct(Bt,Dt,$t)},initObservable(function(){At.atom_=createAtom(At.name_),yt&&At.replace(yt)})}var Et=ht.prototype;return Et.dehanceValue_=function(Ct){return this.dehancer!==void 0?this.dehancer(Ct):Ct},Et.clear=function(){var Ct=this;transaction(function(){untracked(function(){for(var $t=_createForOfIteratorHelperLoose(Ct.data_.values()),At;!(At=$t()).done;){var Bt=At.value;Ct.delete(Bt)}})})},Et.forEach=function(Ct,$t){for(var At=_createForOfIteratorHelperLoose(this),Bt;!(Bt=At()).done;){var Dt=Bt.value;Ct.call($t,Dt,Dt,this)}},Et.add=function(Ct){var $t=this;if(this.atom_,hasInterceptors(this)){var At=interceptChange(this,{type:ADD,object:this,newValue:Ct});if(!At)return this}if(!this.has(Ct)){transaction(function(){$t.data_.add($t.enhancer_(Ct,void 0)),$t.atom_.reportChanged()});var Bt=!1,Dt=hasListeners(this),Ft=Dt||Bt?{observableKind:"set",debugObjectName:this.name_,type:ADD,object:this,newValue:Ct}:null;Dt&&notifyListeners(this,Ft)}return this},Et.delete=function(Ct){var $t=this;if(hasInterceptors(this)){var At=interceptChange(this,{type:DELETE,object:this,oldValue:Ct});if(!At)return!1}if(this.has(Ct)){var Bt=!1,Dt=hasListeners(this),Ft=Dt||Bt?{observableKind:"set",debugObjectName:this.name_,type:DELETE,object:this,oldValue:Ct}:null;return transaction(function(){$t.atom_.reportChanged(),$t.data_.delete(Ct)}),Dt&&notifyListeners(this,Ft),!0}return!1},Et.has=function(Ct){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(Ct))},Et.entries=function(){var Ct=0,$t=Array.from(this.keys()),At=Array.from(this.values());return makeIterable({next:function(){var Dt=Ct;return Ct+=1,Dt<At.length?{value:[$t[Dt],At[Dt]],done:!1}:{done:!0}}})},Et.keys=function(){return this.values()},Et.values=function(){this.atom_.reportObserved();var Ct=this,$t=0,At=Array.from(this.data_.values());return makeIterable({next:function(){return $t<At.length?{value:Ct.dehanceValue_(At[$t++]),done:!1}:{done:!0}}})},Et.intersection=function(Ct){if(isES6Set(Ct))return Ct.intersection(this);var $t=new Set(this);return $t.intersection(Ct)},Et.union=function(Ct){if(isES6Set(Ct))return Ct.union(this);var $t=new Set(this);return $t.union(Ct)},Et.difference=function(Ct){return new Set(this).difference(Ct)},Et.symmetricDifference=function(Ct){if(isES6Set(Ct))return Ct.symmetricDifference(this);var $t=new Set(this);return $t.symmetricDifference(Ct)},Et.isSubsetOf=function(Ct){return new Set(this).isSubsetOf(Ct)},Et.isSupersetOf=function(Ct){return new Set(this).isSupersetOf(Ct)},Et.isDisjointFrom=function(Ct){if(isES6Set(Ct))return Ct.isDisjointFrom(this);var $t=new Set(this);return $t.isDisjointFrom(Ct)},Et.replace=function(Ct){var $t=this;return isObservableSet(Ct)&&(Ct=new Set(Ct)),transaction(function(){Array.isArray(Ct)?($t.clear(),Ct.forEach(function(At){return $t.add(At)})):isES6Set(Ct)?($t.clear(),Ct.forEach(function(At){return $t.add(At)})):Ct!=null&&die("Cannot initialize set from "+Ct)}),this},Et.observe_=function(Ct,$t){return registerListener(this,Ct)},Et.intercept_=function(Ct){return registerInterceptor(this,Ct)},Et.toJSON=function(){return Array.from(this)},Et.toString=function(){return"[object ObservableSet]"},Et[Symbol.iterator]=function(){return this.values()},_createClass(ht,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),isObservableSet=createInstanceofPredicate("ObservableSet",ObservableSet),descriptorCache=Object.create(null),REMOVE="remove",ObservableObjectAdministration=function(){function ht(yt,Ct,$t,At){Ct===void 0&&(Ct=new Map),At===void 0&&(At=autoAnnotation),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=yt,this.values_=Ct,this.name_=$t,this.defaultAnnotation_=At,this.keysAtom_=new Atom("ObservableObject.keys"),this.isPlainObject_=isPlainObject$1(this.target_)}var Et=ht.prototype;return Et.getObservablePropValue_=function(Ct){return this.values_.get(Ct).get()},Et.setObservablePropValue_=function(Ct,$t){var At=this.values_.get(Ct);if(At instanceof ComputedValue)return At.set($t),!0;if(hasInterceptors(this)){var Bt=interceptChange(this,{type:UPDATE,object:this.proxy_||this.target_,name:Ct,newValue:$t});if(!Bt)return null;$t=Bt.newValue}if($t=At.prepareNewValue_($t),$t!==globalState.UNCHANGED){var Dt=hasListeners(this),Ft=!1,kt=Dt||Ft?{type:UPDATE,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:At.value_,name:Ct,newValue:$t}:null;At.setNewValue_($t),Dt&&notifyListeners(this,kt)}return!0},Et.get_=function(Ct){return globalState.trackingDerivation&&!hasProp(this.target_,Ct)&&this.has_(Ct),this.target_[Ct]},Et.set_=function(Ct,$t,At){return At===void 0&&(At=!1),hasProp(this.target_,Ct)?this.values_.has(Ct)?this.setObservablePropValue_(Ct,$t):At?Reflect.set(this.target_,Ct,$t):(this.target_[Ct]=$t,!0):this.extend_(Ct,{value:$t,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,At)},Et.has_=function(Ct){if(!globalState.trackingDerivation)return Ct in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var $t=this.pendingKeys_.get(Ct);return $t||($t=new ObservableValue(Ct in this.target_,referenceEnhancer,"ObservableObject.key?",!1),this.pendingKeys_.set(Ct,$t)),$t.get()},Et.make_=function(Ct,$t){if($t===!0&&($t=this.defaultAnnotation_),$t!==!1){if(!(Ct in this.target_)){var At;if((At=this.target_[storedAnnotationsSymbol])!=null&&At[Ct])return;die(1,$t.annotationType_,this.name_+"."+Ct.toString())}for(var Bt=this.target_;Bt&&Bt!==objectPrototype$1;){var Dt=getDescriptor(Bt,Ct);if(Dt){var Ft=$t.make_(this,Ct,Dt,Bt);if(Ft===0)return;if(Ft===1)break}Bt=Object.getPrototypeOf(Bt)}recordAnnotationApplied(this,$t,Ct)}},Et.extend_=function(Ct,$t,At,Bt){if(Bt===void 0&&(Bt=!1),At===!0&&(At=this.defaultAnnotation_),At===!1)return this.defineProperty_(Ct,$t,Bt);var Dt=At.extend_(this,Ct,$t,Bt);return Dt&&recordAnnotationApplied(this,At,Ct),Dt},Et.defineProperty_=function(Ct,$t,At){At===void 0&&(At=!1),this.keysAtom_;try{startBatch();var Bt=this.delete_(Ct);if(!Bt)return Bt;if(hasInterceptors(this)){var Dt=interceptChange(this,{object:this.proxy_||this.target_,name:Ct,type:ADD,newValue:$t.value});if(!Dt)return null;var Ft=Dt.newValue;$t.value!==Ft&&($t=_extends$4({},$t,{value:Ft}))}if(At){if(!Reflect.defineProperty(this.target_,Ct,$t))return!1}else defineProperty$a(this.target_,Ct,$t);this.notifyPropertyAddition_(Ct,$t.value)}finally{endBatch()}return!0},Et.defineObservableProperty_=function(Ct,$t,At,Bt){Bt===void 0&&(Bt=!1),this.keysAtom_;try{startBatch();var Dt=this.delete_(Ct);if(!Dt)return Dt;if(hasInterceptors(this)){var Ft=interceptChange(this,{object:this.proxy_||this.target_,name:Ct,type:ADD,newValue:$t});if(!Ft)return null;$t=Ft.newValue}var kt=getCachedObservablePropDescriptor(Ct),Mt={configurable:globalState.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:kt.get,set:kt.set};if(Bt){if(!Reflect.defineProperty(this.target_,Ct,Mt))return!1}else defineProperty$a(this.target_,Ct,Mt);var Nt=new ObservableValue($t,At,"ObservableObject.key",!1);this.values_.set(Ct,Nt),this.notifyPropertyAddition_(Ct,Nt.value_)}finally{endBatch()}return!0},Et.defineComputedProperty_=function(Ct,$t,At){At===void 0&&(At=!1),this.keysAtom_;try{startBatch();var Bt=this.delete_(Ct);if(!Bt)return Bt;if(hasInterceptors(this)){var Dt=interceptChange(this,{object:this.proxy_||this.target_,name:Ct,type:ADD,newValue:void 0});if(!Dt)return null}$t.name||($t.name="ObservableObject.key"),$t.context=this.proxy_||this.target_;var Ft=getCachedObservablePropDescriptor(Ct),kt={configurable:globalState.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:Ft.get,set:Ft.set};if(At){if(!Reflect.defineProperty(this.target_,Ct,kt))return!1}else defineProperty$a(this.target_,Ct,kt);this.values_.set(Ct,new ComputedValue($t)),this.notifyPropertyAddition_(Ct,void 0)}finally{endBatch()}return!0},Et.delete_=function(Ct,$t){if($t===void 0&&($t=!1),this.keysAtom_,!hasProp(this.target_,Ct))return!0;if(hasInterceptors(this)){var At=interceptChange(this,{object:this.proxy_||this.target_,name:Ct,type:REMOVE});if(!At)return null}try{var Bt;startBatch();var Dt=hasListeners(this),Ft=!1,kt=this.values_.get(Ct),Mt=void 0;if(!kt&&(Dt||Ft)){var Nt;Mt=(Nt=getDescriptor(this.target_,Ct))==null?void 0:Nt.value}if($t){if(!Reflect.deleteProperty(this.target_,Ct))return!1}else delete this.target_[Ct];if(kt&&(this.values_.delete(Ct),kt instanceof ObservableValue&&(Mt=kt.value_),propagateChanged(kt)),this.keysAtom_.reportChanged(),(Bt=this.pendingKeys_)==null||(Bt=Bt.get(Ct))==null||Bt.set(Ct in this.target_),Dt||Ft){var jt={type:REMOVE,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:Mt,name:Ct};Dt&&notifyListeners(this,jt)}}finally{endBatch()}return!0},Et.observe_=function(Ct,$t){return registerListener(this,Ct)},Et.intercept_=function(Ct){return registerInterceptor(this,Ct)},Et.notifyPropertyAddition_=function(Ct,$t){var At,Bt=hasListeners(this),Dt=!1;if(Bt||Dt){var Ft=Bt||Dt?{type:ADD,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:Ct,newValue:$t}:null;Bt&&notifyListeners(this,Ft)}(At=this.pendingKeys_)==null||(At=At.get(Ct))==null||At.set(!0),this.keysAtom_.reportChanged()},Et.ownKeys_=function(){return this.keysAtom_.reportObserved(),ownKeys$4(this.target_)},Et.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},ht}();function asObservableObject(ht,Et){var yt;if(hasProp(ht,$mobx))return ht;var Ct=(yt=Et==null?void 0:Et.name)!=null?yt:"ObservableObject",$t=new ObservableObjectAdministration(ht,new Map,String(Ct),getAnnotationFromOptions(Et));return addHiddenProp(ht,$mobx,$t),ht}var isObservableObjectAdministration=createInstanceofPredicate("ObservableObjectAdministration",ObservableObjectAdministration);function getCachedObservablePropDescriptor(ht){return descriptorCache[ht]||(descriptorCache[ht]={get:function(){return this[$mobx].getObservablePropValue_(ht)},set:function(yt){return this[$mobx].setObservablePropValue_(ht,yt)}})}function isObservableObject(ht){return isObject$f(ht)?isObservableObjectAdministration(ht[$mobx]):!1}function recordAnnotationApplied(ht,Et,yt){var Ct;(Ct=ht.target_[storedAnnotationsSymbol])==null||delete Ct[yt]}var ENTRY_0=createArrayEntryDescriptor(0),safariPrototypeSetterInheritanceBug=function(){var ht=!1,Et={};return Object.defineProperty(Et,"0",{set:function(){ht=!0}}),Object.create(Et)[0]=1,ht===!1}(),OBSERVABLE_ARRAY_BUFFER_SIZE=0,StubArray=function ht(){};function inherit(ht,Et){Object.setPrototypeOf?Object.setPrototypeOf(ht.prototype,Et):ht.prototype.__proto__!==void 0?ht.prototype.__proto__=Et:ht.prototype=Et}inherit(StubArray,Array.prototype);var LegacyObservableArray=function(ht){function Et(Ct,$t,At,Bt){var Dt;return At===void 0&&(At="ObservableArray"),Bt===void 0&&(Bt=!1),Dt=ht.call(this)||this,initObservable(function(){var Ft=new ObservableArrayAdministration(At,$t,Bt,!0);Ft.proxy_=Dt,addHiddenFinalProp(Dt,$mobx,Ft),Ct&&Ct.length&&Dt.spliceWithArray(0,0,Ct),safariPrototypeSetterInheritanceBug&&Object.defineProperty(Dt,"0",ENTRY_0)}),Dt}_inheritsLoose$3(Et,ht);var yt=Et.prototype;return yt.concat=function(){this[$mobx].atom_.reportObserved();for(var $t=arguments.length,At=new Array($t),Bt=0;Bt<$t;Bt++)At[Bt]=arguments[Bt];return Array.prototype.concat.apply(this.slice(),At.map(function(Dt){return isObservableArray(Dt)?Dt.slice():Dt}))},yt[Symbol.iterator]=function(){var Ct=this,$t=0;return makeIterable({next:function(){return $t<Ct.length?{value:Ct[$t++],done:!1}:{done:!0,value:void 0}}})},_createClass(Et,[{key:"length",get:function(){return this[$mobx].getArrayLength_()},set:function($t){this[$mobx].setArrayLength_($t)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(StubArray);Object.entries(arrayExtensions).forEach(function(ht){var Et=ht[0],yt=ht[1];Et!=="concat"&&addHiddenProp(LegacyObservableArray.prototype,Et,yt)});function createArrayEntryDescriptor(ht){return{enumerable:!1,configurable:!0,get:function(){return this[$mobx].get_(ht)},set:function(yt){this[$mobx].set_(ht,yt)}}}function createArrayBufferItem(ht){defineProperty$a(LegacyObservableArray.prototype,""+ht,createArrayEntryDescriptor(ht))}function reserveArrayBuffer(ht){if(ht>OBSERVABLE_ARRAY_BUFFER_SIZE){for(var Et=OBSERVABLE_ARRAY_BUFFER_SIZE;Et<ht+100;Et++)createArrayBufferItem(Et);OBSERVABLE_ARRAY_BUFFER_SIZE=ht}}reserveArrayBuffer(1e3);function createLegacyArray(ht,Et,yt){return new LegacyObservableArray(ht,Et,yt)}function getAtom(ht,Et){if(typeof ht=="object"&&ht!==null){if(isObservableArray(ht))return Et!==void 0&&die(23),ht[$mobx].atom_;if(isObservableSet(ht))return ht.atom_;if(isObservableMap(ht)){if(Et===void 0)return ht.keysAtom_;var yt=ht.data_.get(Et)||ht.hasMap_.get(Et);return yt||die(25,Et,getDebugName(ht)),yt}if(isObservableObject(ht)){if(!Et)return die(26);var Ct=ht[$mobx].values_.get(Et);return Ct||die(27,Et,getDebugName(ht)),Ct}if(isAtom(ht)||isComputedValue(ht)||isReaction(ht))return ht}else if(isFunction$5(ht)&&isReaction(ht[$mobx]))return ht[$mobx];die(28)}function getAdministration(ht,Et){if(ht||die(29),isAtom(ht)||isComputedValue(ht)||isReaction(ht)||isObservableMap(ht)||isObservableSet(ht))return ht;if(ht[$mobx])return ht[$mobx];die(24,ht)}function getDebugName(ht,Et){var yt;if(Et!==void 0)yt=getAtom(ht,Et);else{if(isAction(ht))return ht.name;isObservableObject(ht)||isObservableMap(ht)||isObservableSet(ht)?yt=getAdministration(ht):yt=getAtom(ht)}return yt.name_}function initObservable(ht){var Et=untrackedStart(),yt=allowStateChangesStart(!0);startBatch();try{return ht()}finally{endBatch(),allowStateChangesEnd(yt),untrackedEnd(Et)}}var toString$c=objectPrototype$1.toString;function deepEqual(ht,Et,yt){return yt===void 0&&(yt=-1),eq$1(ht,Et,yt)}function eq$1(ht,Et,yt,Ct,$t){if(ht===Et)return ht!==0||1/ht===1/Et;if(ht==null||Et==null)return!1;if(ht!==ht)return Et!==Et;var At=typeof ht;if(At!=="function"&&At!=="object"&&typeof Et!="object")return!1;var Bt=toString$c.call(ht);if(Bt!==toString$c.call(Et))return!1;switch(Bt){case"[object RegExp]":case"[object String]":return""+ht==""+Et;case"[object Number]":return+ht!=+ht?+Et!=+Et:+ht==0?1/+ht===1/Et:+ht==+Et;case"[object Date]":case"[object Boolean]":return+ht==+Et;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(ht)===Symbol.valueOf.call(Et);case"[object Map]":case"[object Set]":yt>=0&&yt++;break}ht=unwrap(ht),Et=unwrap(Et);var Dt=Bt==="[object Array]";if(!Dt){if(typeof ht!="object"||typeof Et!="object")return!1;var Ft=ht.constructor,kt=Et.constructor;if(Ft!==kt&&!(isFunction$5(Ft)&&Ft instanceof Ft&&isFunction$5(kt)&&kt instanceof kt)&&"constructor"in ht&&"constructor"in Et)return!1}if(yt===0)return!1;yt<0&&(yt=-1),Ct=Ct||[],$t=$t||[];for(var Mt=Ct.length;Mt--;)if(Ct[Mt]===ht)return $t[Mt]===Et;if(Ct.push(ht),$t.push(Et),Dt){if(Mt=ht.length,Mt!==Et.length)return!1;for(;Mt--;)if(!eq$1(ht[Mt],Et[Mt],yt-1,Ct,$t))return!1}else{var Nt=Object.keys(ht),jt;if(Mt=Nt.length,Object.keys(Et).length!==Mt)return!1;for(;Mt--;)if(jt=Nt[Mt],!(hasProp(Et,jt)&&eq$1(ht[jt],Et[jt],yt-1,Ct,$t)))return!1}return Ct.pop(),$t.pop(),!0}function unwrap(ht){return isObservableArray(ht)?ht.slice():isES6Map(ht)||isObservableMap(ht)||isES6Set(ht)||isObservableSet(ht)?Array.from(ht.entries()):ht}function makeIterable(ht){return ht[Symbol.iterator]=getSelf,ht}function getSelf(){return this}["Symbol","Map","Set"].forEach(function(ht){var Et=getGlobal$1();typeof Et[ht]>"u"&&die("MobX requires global '"+ht+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy,extras:{getDebugName},$mobx});var __defProp$2=Object.defineProperty,__getOwnPropDesc$2=Object.getOwnPropertyDescriptor,__decorateClass$2=(ht,Et,yt,Ct)=>{for(var $t=__getOwnPropDesc$2(Et,yt),At=ht.length-1,Bt;At>=0;At--)(Bt=ht[At])&&($t=Bt(Et,yt,$t)||$t);return $t&&__defProp$2(Et,yt,$t),$t};class ProjectStore{constructor(){this.projectId="",this.projectList=null,this.roles=[],this.projectCapacity=null,this.permissions=null,this.loading={permissions:!1},this.usage=null,this.setLoading=(Et,yt)=>{this.loading[Et]=yt},this.setProjectId=Et=>{this.projectId=Et},this.setPermissions=Et=>{this.permissions=Et},this.getRoles=async()=>{const{success:Et,data:yt}=await commonApi.getRoleList();Et&&runInAction(()=>{this.roles=yt})},this.getProjectCapacity=async Et=>{const{success:yt,data:Ct}=await commonApi.getProjectCapacity(Et);return yt&&runInAction(()=>{isNil(this.projectCapacity)?this.projectCapacity=Ct:this.projectCapacity={...this.projectCapacity,...Ct}}),Ct},this.getPermissions=async()=>{this.setLoading("permissions",!0);const{success:Et,data:yt}=await commonApi.getProjectPermissions();this.setLoading("permissions",!1),Et&&runInAction(()=>{this.permissions=yt})},this.getProjectList=async Et=>{var $t;const{success:yt,data:Ct}=await commonApi.getProjectList();if(yt)if(runInAction(()=>{this.projectList=Ct}),Et)Ct.findIndex(At=>At.id===Et)===-1?window.location.replace("/403"):this.setProjectId(Et);else{const At=Ct.find(Bt=>Bt.isChoose);this.setProjectId((At==null?void 0:At.id)??(($t=Ct[0])==null?void 0:$t.id)??"")}},this.getProjectsUsage=async()=>{const{success:Et,msg:yt,data:Ct}=await commonApi.getProjectsUsage();Et?runInAction(()=>{this.usage=Ct}):B.error(yt)},makeAutoObservable(this)}get currentProject(){var Et;return(Et=this.projectList)==null?void 0:Et.find(yt=>yt.id===this.projectId)}get block(){var Et,yt,Ct;return{id:this.blockId,...(Et=this.projectCapacity)==null?void 0:Et.block,...isNil((Ct=(yt=this.projectCapacity)==null?void 0:yt.block)==null?void 0:Ct.periodEnd)?{}:{isExpired:dayjs(this.projectCapacity.block.periodEnd).isBefore(dayjs())}}}get blockLimitReached(){var Et;return(Et=this.projectCapacity)!=null&&Et.block?this.projectCapacity.block.notificationCapacity>0&&this.projectCapacity.block.notificationCount>=this.projectCapacity.block.notificationCapacity||this.projectCapacity.block.actionCapacity>0&&this.projectCapacity.block.triggeredActionCount>=this.projectCapacity.block.triggeredActionCapacity:!1}get blockId(){var Et,yt;return((yt=(Et=this.currentProject)==null?void 0:Et.block)==null?void 0:yt.id)??""}}__decorateClass$2([computed],ProjectStore.prototype,"currentProject");__decorateClass$2([computed],ProjectStore.prototype,"block");__decorateClass$2([computed],ProjectStore.prototype,"blockLimitReached");__decorateClass$2([computed],ProjectStore.prototype,"blockId");const projectStore=new ProjectStore;reaction(()=>projectStore.projectId,async(ht,Et)=>{Et&&projectStore.setPermissions([])});const userApis={logout:()=>d$8.get(`${ACCOUNT_DOMAIN}/api/v1/account/logout`),getAccountInfo:()=>d$8.get(`${ACCOUNT_DOMAIN}/api/v1/account/info`),modifyUsername:ht=>d$8.post(`${ACCOUNT_DOMAIN}/api/v1/account/modify-username`,{body:{name:ht}}),getAccessKey:()=>d$8.get("/api/v1/user/access"),updateAccessKey:()=>d$8.put("/api/v1/user/access"),verifySessionCode:ht=>d$8.post(`/api/v1/project/${projectStore.projectId}/two-factor/verify`,{body:ht}),sendEmailCaptcha:ht=>d$8.post(`/api/v1/project/${projectStore.projectId}/email/captcha`,{body:{captchaType:ht}})},forkApis={createChainFork:ht=>d$8.post(`/api/v1/project/${projectStore.projectId}/fork`,{body:ht}),getChainForkList:()=>d$8.get(`/api/v1/project/${projectStore.projectId}/forks`),updateBaseFee:(ht,Et)=>d$8.put(`/api/v1/project/${projectStore.projectId}/fork/${ht}/base-fee`,{body:{baseFee:Et}}),getChainForkInfo:ht=>d$8.get(`/api/v1/project/${projectStore.projectId}/fork/${ht}`),sendForkTxn:(ht,Et)=>d$8.post(`/api/v1/project/${projectStore.projectId}/fork/${ht}/transaction`,{body:Et}),getChainForkTxnList:({forkId:ht,...Et})=>d$8.get(`/api/v1/project/${projectStore.projectId}/fork/${ht}/transactions`,{body:Et}),createSnapshot:(ht,Et)=>d$8.post(`/api/v1/project/${projectStore.projectId}/fork/${ht}/snapshot`,{body:Et}),getSnapshots:ht=>d$8.get(`/api/v1/project/${projectStore.projectId}/fork/${ht}/snapshots`),switchSnapshot:(ht,Et)=>d$8.post(`/api/v1/project/${projectStore.projectId}/fork/${ht}/snapshot/${Et}/switch`),getContractList:(ht,Et)=>d$8.get(`/api/v1/project/${projectStore.projectId}/fork/${ht}/contracts`,{body:Et}),setBlockHeaderOverrides:(ht,Et)=>d$8.post(`/api/v1/project/${projectStore.projectId}/fork/${ht}/override`,{body:Et}),getBlockHeaderOverrides:ht=>d$8.get(`/api/v1/project/${projectStore.projectId}/fork/${ht}/override`),setTransactionNote:ht=>d$8.post(`/api/v1/project/${projectStore.projectId}/fork/${ht.forkId}/transaction/${ht.transactionId}/note`,{body:{note:ht.note}}),deleteFork:ht=>d$8.delete(`/api/v1/project/${projectStore.projectId}/fork/${ht}`),updateFork:(ht,Et)=>d$8.put(`/api/v1/project/${projectStore.projectId}/fork/${ht}/name`,{body:{name:Et}}),addBalance:({forkId:ht,address:Et,balance:yt})=>d$8.post(`/api/v1/project/${projectStore.projectId}/fork/${ht}/address/${Et}/add-balance`,{body:{balance:yt}}),getTokens:({forkId:ht,page:Et=1,pageSize:yt=10,keyword:Ct})=>d$8.get(`/api/v1/project/${projectStore.projectId}/fork/${ht}/tokens`,{body:{page:Et,pageSize:yt,keyword:Ct}}),importToken:(ht,Et)=>d$8.post(`/api/v1/project/${projectStore.projectId}/fork/${ht}/token/import`,{body:Et}),getTokenAmount:(ht,Et)=>d$8.post(`/api/v1/project/${projectStore.projectId}/fork/${ht}/token/amount`,{body:Et}),getAddressAssets:({address:ht,forkId:Et,...yt})=>d$8(`/api/v1/project/${projectStore.projectId}/fork/${Et}/address/${ht}/assets`,{body:yt}),getForkContract:({forkId:ht,address:Et})=>d$8(`/api/v1/project/${projectStore.projectId}/fork/${ht}/contract/${Et}`),getAddressLabel:({forkId:ht,address:Et})=>d$8.get(`/api/v1/project/${projectStore.projectId}/fork/${ht}/address/${Et}/label`),customAddressLabel:({forkId:ht,address:Et,label:yt})=>d$8.post(`/api/v1/project/${projectStore.projectId}/fork/${ht}/address/${Et}/label`,{body:{label:yt},ignore:[null,void 0]}),getLatestBlockHeight:ht=>d$8.get("/api/v1/fork/latest-height",{body:{chainId:ht}}),resetForkRpc:ht=>d$8.put(`/api/v1/project/${projectStore.projectId}/fork/${ht}/reset-rpc`),getForkWhitelist:ht=>d$8.get(`/api/v1/project/${projectStore.projectId}/fork/${ht}/whitelist`),toggleForkSignatureSwitch:ht=>d$8.put(`/api/v1/project/${projectStore.projectId}/fork/${ht}/signature-check`),toggleForkWhitelistSwitch:ht=>d$8.put(`/api/v1/project/${projectStore.projectId}/fork/${ht}/whitelist-switch`),addForkWhitelist:({forkId:ht,...Et})=>d$8.post(`/api/v1/project/${projectStore.projectId}/fork/${ht}/whitelist`,{body:Et}),deleteForkWhitelist:(ht,Et)=>d$8.delete(`/api/v1/project/${projectStore.projectId}/fork/${ht}/whitelist`,{body:{id:Et}}),updateForkWhitelistLabel:({forkId:ht,...Et})=>d$8.put(`/api/v1/project/${projectStore.projectId}/fork/${ht}/whitelist-label`,{body:Et}),toggleScanExclusiveSwitch:ht=>d$8.put(`/api/v1/project/${projectStore.projectId}/fork/${ht}/scan-access`),zeroBaseFee:ht=>d$8.put(`/api/v1/project/${projectStore.projectId}/fork/${ht}/zero-base-fee`),maxCodeSize:ht=>d$8.put(`/api/v1/project/${projectStore.projectId}/fork/${ht}/max-code-size`),maxGasLimit:ht=>d$8.put(`/api/v1/project/${projectStore.projectId}/fork/${ht}/max-gas-limit`)};var dist$1=function ht(Et){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Ct=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},$t=void 0,At=void 0,Bt=void 0,Dt=[];return function(){var Mt=getWait(yt),Nt=new Date().getTime(),jt=!$t||Nt-$t>Mt;$t=Nt;for(var zt=arguments.length,Vt=Array(zt),Kt=0;Kt<zt;Kt++)Vt[Kt]=arguments[Kt];if(jt&&Ct.leading)return Ct.accumulate?Promise.resolve(Et.call(this,[Vt])).then(function(Qt){return Qt[0]}):Promise.resolve(Et.call.apply(Et,[this].concat(Vt)));if(At?clearTimeout(Bt):At=defer(),Dt.push(Vt),Bt=setTimeout(Ft.bind(this),Mt),Ct.accumulate){var Xt=Dt.length-1;return At.promise.then(function(Qt){return Qt[Xt]})}return At.promise};function Ft(){var kt=At;clearTimeout(Bt),Promise.resolve(Ct.accumulate?Et.call(this,Dt):Et.apply(this,Dt[Dt.length-1])).then(kt.resolve,kt.reject),Dt=[],At=null}};function getWait(ht){return typeof ht=="function"?ht():ht}function defer(){var ht={};return ht.promise=new Promise(function(Et,yt){ht.resolve=Et,ht.reject=yt}),ht}const debounce$2=getDefaultExportFromCjs$1(dist$1),blockApis={requestDemo:ht=>d$8.post("/api/v1/block/application",{body:ht}),createMonitor:ht=>d$8.post(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/monitor`,{body:ht}),updateMonitor:ht=>d$8.put(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/monitor/${ht.id}`,{body:ht}),createBlockNotification:ht=>d$8.post(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/notification`,{body:ht}),getNotificationAccessInfo:()=>d$8.get(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/notification/access-info`),verifyContractAddress:ht=>d$8.get("/api/v1/contract/is-valid",{body:ht}),createContract:ht=>d$8.post(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/contract`,{body:ht}),updateContract:(ht,Et)=>d$8.put(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/contract/${Et}`,{body:ht}),deleteContract:ht=>d$8.delete(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/contract/${ht}`),getBlockContractList:ht=>d$8.get(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/contract`,{body:ht}),getBlockContractDetail:ht=>d$8.get(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/contract/${ht}`),getBlockContractAlerts:(ht,Et,yt)=>d$8.get(`/api/v1/project/${projectStore.projectId}/block/${ht}/contract/${Et}/alert`,{body:yt}),getBlockDefenseList:ht=>d$8.get(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/defense`,{body:ht}),updateDefenseStatus:(ht,Et)=>d$8.post(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/defense/${ht}/update-enable`,{body:{enabled:Et}}),updateDefense:(ht,Et)=>d$8.put(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/defense/${ht}`,{body:Et}),deleteDefense:ht=>d$8.delete(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/defense/${ht}`),addPreSignTransactions:(ht,Et)=>d$8.post(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/defense/${Et}/add-txns`,{body:ht}),getNotificationList:()=>d$8.get(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/notification`),getBlockMonitorList:ht=>d$8.get(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/monitor`,{body:ht}),getBlockEventInfo:ht=>d$8.get(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/alert`,{body:ht}),getOpLog:ht=>d$8.get(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/op-log`,{body:ht}),createDefense:ht=>d$8.post(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/defense`,{body:ht}),getDefenseDetail:ht=>d$8.get(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/defense/${ht}`),getContractType:()=>d$8.get(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/contract-type`),getBlockId:()=>d$8.get(`/api/v1/project/${projectStore.projectId}/block`),getBlockMonitorDetail:ht=>d$8.get(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/monitor/${ht}`),deleteNotificationById:ht=>d$8.delete(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/notification/${ht}`),getAlertDetail:ht=>d$8.get(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/alert/${ht}`),deleteMonitorById:ht=>d$8.delete(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/monitor/${ht}`),uploadStorageLayout:(ht,Et)=>d$8.post(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/contract/${ht}/upload-storage`,{body:{storageLayout:Et}}),simulateRawTxn:ht=>d$8.post(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/defense/pre-raw`,{body:ht}),testNotification:ht=>d$8.post(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/notification/simulation`,{body:ht}),updateMonitorStatus:(ht,Et)=>d$8.post(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/monitor/${ht}/update-enable`,{body:{enabled:Et}}),getNonceByAddress:ht=>d$8.get("/api/v1/common/address/get-nonce",{body:ht}),getNonceByDefenseId:ht=>d$8.get(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/defense/${ht}/get-sender-nonce`),getBlockStatistics:()=>d$8.get(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/statistics`),uploadABI:(ht,Et)=>d$8.post(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/contract/${ht}/upload-abi`,{body:{abi:Et}}),removeHint:(ht,Et)=>d$8.post(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/contract/${ht}/remove-hint/${Et}`),getBlockContractVariables:(ht,Et)=>d$8.post(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/contract/${ht}/variables`,{body:{variables:Et}}),getEmailCaptcha:ht=>d$8.post(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/email/captcha`,{body:{email:ht}}),checkBlockExpression:ht=>d$8.post(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/monitor/check-expression`,{body:ht}),getBlockModules:ht=>d$8.get(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/modules`,{body:{chainId:ht}}),getBlockDelegateBalance:()=>d$8.get(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/delegate`),getBlockModuleDetail:(ht,Et)=>d$8.get(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/modules/${ht}`,{body:{source:Et}}),deleteBlockModule:(ht,Et)=>d$8.delete(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/modules/${ht}?hash=${Et}`),getEoASafes:(ht,Et)=>d$8.get(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/${ht}/safes`,{body:{chainId:Et}}),saveSafes:ht=>d$8.post(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/safes/save`,{body:{safes:ht}}),getSafeOwners:ht=>d$8.get(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/safes/owners`,{body:ht}),getContractABI:ht=>d$8.get(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/module-contracts`,{body:ht}),getModuleABI:(ht,Et,yt)=>d$8.get(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/modules/${ht}/abi`,{body:{safeAddress:Et,salt:yt}}),createModule:ht=>d$8.post(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/modules/create`,{body:ht}),updateModule:(ht,Et)=>d$8.post(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/modules/${Et}`,{body:ht}),getModuleStatistic:ht=>d$8.get(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/modules/${ht}/statistic`),saveModuleContractABI:ht=>d$8.post(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/module-contracts/save`,{body:ht}),updateModuleABI:ht=>d$8.post(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/module-contracts/update-abi`,{body:ht}),updateModuleContractLabels:ht=>d$8.post(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/module-contracts/update-labels`,{body:ht}),checkNameDuplicate:debounce$2((ht,Et)=>d$8.post(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/check-name`,{body:{name:ht,defenseId:Et}}),500),getWebsiteBlogs:()=>d$8.get("/api/v1/website-blogs"),getWebsiteDevelopers:()=>d$8.get("/api/v1/website-developers"),withdraw:ht=>d$8.post(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/withdraw`,{body:ht}),withdrawCaptcha:()=>d$8.post(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/withdraw/captcha`),executeCaptcha:()=>d$8.post(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/execute/captcha`),uploadContractABI:(ht,Et)=>d$8.post(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/contract/${ht}/upload-abi`,{body:Et}),getWithdrawVerifyExpiration:()=>d$8.get(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/withdraw/cache`),getDemoProjectData:()=>d$8.get(`/api/v1/project/${projectStore.projectId}/block-demo/data`),postDemoProjectData:ht=>d$8.post(`/api/v1/project/${projectStore.projectId}/block-demo/active`,{body:ht}),getDemoProjectTriggerList:ht=>d$8.get(`/api/v1/project/${projectStore.projectId}/block-demo/trigger`,{body:{forkId:ht}}),getDemoProjectTriggerDetail:ht=>d$8.get(`/api/v1/project/${projectStore.projectId}/block-demo/trigger-detail`,{body:{triggerId:ht}}),getDemoProjectAttackSourceList:ht=>d$8.get(`/api/v1/project/${projectStore.projectId}/block-demo/attack-source`,{body:{modeId:ht}}),finishDemoProject:()=>d$8.post(`/api/v1/project/${projectStore.projectId}/block-demo/finish`),queryContractVariable:ht=>d$8.post(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/contract/variables`,{body:ht}),getTestkitAvailableForks:()=>d$8.get(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/forks`),connectBlockAndFork:ht=>d$8.post(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/forks`,{body:{forkId:ht}}),updateBlockedForkRiskLevel:(ht,Et)=>d$8.post(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/forks/update-level`,{body:{id:ht,level:Et}}),disconnectBlockAndFork:ht=>d$8.delete(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/forks/${ht}`),getTestkitBlockAlerts:ht=>d$8.get(`/api/v1/project/${projectStore.projectId}/block/${projectStore.blockId}/fork-alerts`,{body:ht})},projectApis={createProject:ht=>d$8.post("/api/v1/project",{body:{name:ht}}),getProjectList:()=>d$8.get("/api/v1/projects"),getProjectInfo:()=>d$8.get(`/api/v1/project/${projectStore.projectId}/info`),deleteProject:ht=>d$8.delete(`/api/v1/project/${ht}`),getRoleList:()=>d$8.get("/api/v1/roles"),initiateInvitation:ht=>d$8.post(`/api/v1/project/${projectStore.projectId}/invitation`,{body:ht}),getInvitationInfo:ht=>d$8.get(`/api/v1/invitation/${ht}`),acceptInvitation:(ht,Et)=>d$8.post(`/api/v1/invitation/${ht}`,{body:{confirm:Et}}),getProjectMembers:()=>d$8.get(`/api/v1/project/${projectStore.projectId}/members`),updateMemberRole:ht=>d$8.put(`/api/v1/project/${projectStore.projectId}/member/${ht.id}/role`,{body:{roles:ht.roles}}),getProjectSettings:()=>d$8.get(`/api/v1/project/${projectStore.projectId}/settings`),updateProjectSettings:ht=>d$8.post(`/api/v1/project/${projectStore.projectId}/settings`,{body:ht}),getProjectStatus:()=>d$8.get(`/api/v1/project/${projectStore.projectId}/status`),deleteMember:ht=>d$8.delete(`/api/v1/project/${projectStore.projectId}/member/${ht}`),getProjectCapacity:ht=>d$8.get(`/api/v1/project/${projectStore.projectId}/capacity`,{body:{product:ht}}),getProjectPermissions:()=>d$8.get(`/api/v1/project/${projectStore.projectId}/permission`),exitProject:()=>d$8.put(`/api/v1/project/${projectStore.projectId}/exit`),getProjectsUsage:()=>d$8.get("/api/v1/projects/usage")},productApis={getProductList:()=>d$8.get("/api/v1/products"),getProductInfo:ht=>d$8.get(`/api/v1/product/${ht}`),getCurrentSubs:()=>d$8.get("/api/v1/subscribe"),getForkInvoiceList:ht=>d$8.get("/api/v1/chain-fork/subscribe/invoice",{body:ht}),renewSubscribe:ht=>d$8.post("/api/v1/chain-fork/product/renew-sub",{body:{subId:ht}}),cancelSubscribe:ht=>d$8.post("/api/v1/chain-fork/product/cancel-sub",{body:{subId:ht}}),getCurrentSubInfos:()=>d$8.get("/api/v1/chain-fork/subscribe/info"),checkoutFork:(ht,Et)=>d$8.post("/api/v1/chain-fork/subscribe/checkout",{body:{productId:ht,priceId:Et}}),getPaymentInfo:ht=>d$8.get("/api/v1/chain-fork/subscribe/payment-info",{body:ht}),checkCoupon:ht=>d$8.post("/api/v1/chain-fork/subscribe/checkout-promotion",{body:ht}),upgradeSubscribe:ht=>d$8.post("/api/v1/chain-fork/subscribe/upgrade",{body:ht}),getUpgradeSubInfo:ht=>d$8.post("/api/v1/chain-fork/subscribe/upgrade-info",{body:ht}),getBlockSubscriptionPrices:()=>d$8.get("/api/v1/block/custom-sub"),subscribeWithCustomBlock:ht=>d$8.post("/api/v1/block/custom-sub",{body:{ids:ht}}),updateBlockSubscription:ht=>d$8.put("/api/v1/block/custom-sub",{body:{ids:ht}}),getBlockPackages:()=>d$8.get("/api/v1/block/package"),checkoutBlockPackage:(ht,Et,yt)=>d$8.post("/api/v1/block/package/checkout",{body:{productId:ht,priceId:Et,quantity:yt}}),createBlockSku:(ht,Et)=>d$8.post("/api/v1/block/custom-sub/creat-sku",{body:{category:ht,callLimit:Et}}),getCryptoPaymentMethods:()=>d$8.get("/api/v1/subscribe/crypto"),getPaymentDetail:ht=>{const Et=new AbortController,yt=Et.signal;return{promise:d$8.post("/api/v1/subscribe/payment-detail",{body:ht,signal:yt}),cancel:()=>Et.abort()}},checkoutWithCreditCard:(ht,Et)=>d$8.post("/api/v1/subscribe/checkout",{body:{priceId:ht,couponId:Et}}),createCryptoOrder:ht=>d$8.post("/api/v1/subscribe/crypto/create-order",{body:ht}),getCryptoOrderDetail:ht=>d$8.get(`/api/v1/subscribe/crypto/order/${ht}`),upgradeWithCreditCard:(ht,Et,yt)=>d$8.post("/api/v1/subscribe/upgrade",{body:{currentPriceId:ht,targetPriceId:Et,couponId:yt}}),createUpgradeCryptoOrder:ht=>d$8.post("/api/v1/subscribe/crypto/upgrade",{body:ht}),confirmCryptoOrder:ht=>d$8.put(`/api/v1/subscribe/crypto/order/${ht}/confirm`),createBlockProduct:ht=>d$8.post("/api/v1/block/product",{body:{ids:ht}})},contractApis={getContractByAddress:(ht,Et,yt,Ct)=>d$8.post("/api/v1/con/fork/verify",{body:{address:yt,chainID:Et,callData:Ct,forkID:ht}}),getContractByABI:(ht,Et)=>d$8.post("/api/v1/con/simulation/decode",{body:{abi:ht,callData:Et}}),getContractABI:ht=>d$8.get("/api/v1/common/contract/get-abi",{body:ht}),getContractTokenHoldings:ht=>d$8.post("/api/v1/common/address/holds",{body:ht}),getPairInfo:ht=>d$8.get("/api/v1/common/contract/get-pair",{body:ht}),getContractPairs:ht=>d$8.get("/api/v1/common/contract/pairs",{body:{...ht,uniswapVersion:"uniswapV2"}})},explorerApis={getSearchResult:ht=>d$8.post("/api/v1/tx/search",{body:{txnHash:ht}}),handleSimulate:(ht,Et)=>{const yt=new AbortController,Ct=yt.signal;return{promise:ht?l$7.post("/api/v1/tx/prerun",{body:Et,signal:Ct}):l$7.post("/api/v1/tx/simulation",{body:Et,signal:Ct}),cancel:()=>yt.abort()}},getProfileData:(ht,Et)=>l$7.post(`/api/v1/${ht}/tx/profile`,{body:Et}),getBalanceChangesData:(ht,Et)=>l$7.post(`/api/v1/${ht}/tx/balance-change`,{body:Et}),getMainTraceData:(ht,Et)=>l$7.post(`/api/v1/${ht}/tx/trace`,{body:Et}),getDebugTraceData:(ht,Et)=>l$7.post(`/api/v1/${ht}/tx/debug-trace`,{body:Et}),getStateChanges:(ht,Et)=>d$8.post(`/api/v1/${ht}/tx/state-change`,{body:Et}),getSimulationContractData:(ht,Et,yt)=>d$8.post("/api/v1/con/simulation/verify",{body:{address:Et,chainID:ht,callData:yt}}),getSimulationContractByABI:(ht,Et="")=>d$8.post("/api/v1/con/simulation/decode",{body:{abi:ht,callData:Et}}),getLatestBlock:(ht=mainnet.id)=>d$8.post("/api/v1/tx/mainnet/latest-block-number",{body:{chainID:Number(ht)}}),getBalance:(ht,Et)=>d$8.post(`/api/v1/tx/${ht}/address-balance`,{body:Et}),getAttackEvent:ht=>d$8.post("/api/v1/attack/events",{body:ht}),getTxAddressLabel:(ht,Et)=>d$8.post(`/api/v1/${ht}/tx/address-label`,{body:Et}),getSolanaTrace:ht=>d$8.post("/api/v1/solana/tx/trace",{body:{txnSig:ht}}),getSolanaBalanceChanges:ht=>d$8.post("/api/v1/solana/tx/balance-change",{body:{txnSig:ht}}),getSolanaProfile:ht=>d$8.post("/api/v1/solana/tx/profile",{body:{txnSig:ht}}),getSolanaAddressLabel:ht=>d$8.post("/api/v1/solana/tx/address-label",{body:{txnSig:ht}})},commonApis={simulateTransaction:ht=>d$8.post("/api/v1/common/tx/create",{body:ht}),search:ht=>d$8.get("/api/v1/website-search",{body:ht}),queryTokenPrice:debounce$2(ht=>d$8.get("/api/v1/common/native-token-price",{body:{chainId:ht}}),500),queryTransferCommission:debounce$2(ht=>d$8.get("/api/v1/common/transfer-commission",{body:{chainId:ht}}),500)},auditApis={postAuditRequestForm:ht=>d$8.post("/api/v1/audit/apply",{body:ht})},statusApis={getServiceStatus:()=>d$8.get("/api/v1/service-status")},commonApi={...userApis,...forkApis,...projectApis,...productApis,...contractApis,...blockApis,...commonApis,...explorerApis,...auditApis,...statusApis},localKey="theme-mode",getStorage=()=>localStorage.getItem(localKey)||getThemeMode(),setStorage=ht=>{localStorage.removeItem(localKey),localStorage.setItem(localKey,ht)},getThemeMode=()=>window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark",ThemeContext=reactExports.createContext({mode:"",switchMode:()=>{}}),ThemeProvider=ht=>{const[Et,yt]=reactExports.useState("dark"),Ct=antdTheme.getDesignToken({token:{colorPrimary:"#2F8AF5",colorPrimaryBg:"#2F8AF5",colorLinkHover:"#69b1ff"},algorithm:antdTheme.darkAlgorithm});reactExports.useEffect(()=>{const Bt=()=>{const Ft=getThemeMode();$t(Ft)},Dt=window.matchMedia("(prefers-color-scheme: light)");return Dt.addEventListener("change",Bt),$t(getStorage()),()=>Dt.removeEventListener("change",Bt)},[]);const $t=Bt=>{const Dt=document.querySelector("body"),Ft=document.querySelector("html");Dt&&(Dt.removeAttribute("class"),Dt.classList.add(Bt),Ft.setAttribute("data-theme",Bt),setStorage(Bt),yt(Bt))},At={mode:Et,switchMode:$t};return jsxRuntimeExports.jsx(ThemeContext.Provider,{value:At,children:jsxRuntimeExports.jsx(ConfigProvider$1,{renderEmpty:()=>jsxRuntimeExports.jsx(Empty$1,{}),locale:{locale:"en-US",Modal:{okText:"Confirm",cancelText:"Cancel",justOkText:"Confirm"},Table:{filterConfirm:"ok",filterReset:"reset"}},theme:{algorithm:Et==="dark"?antdTheme.darkAlgorithm:antdTheme.defaultAlgorithm,token:{fontFamily:"var(--font-family)",colorPrimary:Ct.colorPrimary,fontSize:14,controlHeight:36},components:{Button:{controlHeightSM:26,paddingContentHorizontalSM:10,colorPrimary:Ct.colorPrimaryBg,colorLink:Ct.colorPrimaryBg,colorLinkHover:Ct.colorLinkHover},Tabs:{colorPrimary:Ct.colorPrimaryBg},Form:{marginLG:10},Table:{headerBorderRadius:0,colorBgContainer:"transparent"},Input:{paddingBlock:6,colorBorder:"var(--color-field-control-border)"},Select:{colorBorder:"var(--color-field-control-border)"},Collapse:{headerPadding:"20px 24px",contentPadding:24},Modal:{colorBgElevated:"var(--color-body)"},Drawer:{colorBgElevated:"var(--color-body)"},DatePicker:{colorBgElevated:"var(--color-body)"}}},children:jsxRuntimeExports.jsx(App$2,{children:ht.children})})})},Logo=({collapsed:ht,className:Et,style:yt})=>{const{mode:Ct}=reactExports.useContext(ThemeContext),$t=useNavigate();return jsxRuntimeExports.jsx("div",{className:cls("cursor-pointer",Et),style:yt,onClick:()=>$t("/"),children:Ct==="dark"?jsxRuntimeExports.jsx("img",{src:ht?BLOCKSEC_FAVICON_DARK:BLOCKSEC_LOGO_DARK,alt:"",className:"h-8"}):jsxRuntimeExports.jsx("img",{src:ht?BLOCKSEC_FAVICON_LIGHT:BLOCKSEC_LOGO_LIGHT,alt:"",className:"h-8"})})};if(!reactExports.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!makeObservable)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function defaultNoopBatch(ht){ht()}function observerBatching(ht){ht||(ht=defaultNoopBatch),configure({reactionScheduler:ht})}function printDebugValue(ht){return getDependencyTree(ht)}var REGISTRY_FINALIZE_AFTER=1e4,REGISTRY_SWEEP_INTERVAL=1e4,TimerBasedFinalizationRegistry=function(){function ht(Et){var yt=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:Et}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(Ct){Ct===void 0&&(Ct=REGISTRY_FINALIZE_AFTER),clearTimeout(yt.sweepTimeout),yt.sweepTimeout=void 0;var $t=Date.now();yt.registrations.forEach(function(At,Bt){$t-At.registeredAt>=Ct&&(yt.finalize(At.value),yt.registrations.delete(Bt))}),yt.registrations.size>0&&yt.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){yt.sweep(0)}})}return Object.defineProperty(ht.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(Et,yt,Ct){this.registrations.set(Ct,{value:yt,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(ht.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(Et){this.registrations.delete(Et)}}),Object.defineProperty(ht.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,REGISTRY_SWEEP_INTERVAL))}}),ht}(),UniversalFinalizationRegistry=typeof FinalizationRegistry<"u"?FinalizationRegistry:TimerBasedFinalizationRegistry,observerFinalizationRegistry=new UniversalFinalizationRegistry(function(ht){var Et;(Et=ht.reaction)===null||Et===void 0||Et.dispose(),ht.reaction=null}),__read$g=function(ht,Et){var yt=typeof Symbol=="function"&&ht[Symbol.iterator];if(!yt)return ht;var Ct=yt.call(ht),$t,At=[],Bt;try{for(;(Et===void 0||Et-- >0)&&!($t=Ct.next()).done;)At.push($t.value)}catch(Dt){Bt={error:Dt}}finally{try{$t&&!$t.done&&(yt=Ct.return)&&yt.call(Ct)}finally{if(Bt)throw Bt.error}}return At};function observerComponentNameFor(ht){return"observer".concat(ht)}var ObjectToBeRetainedByReact=function(){function ht(){}return ht}();function objectToBeRetainedByReactFactory(){return new ObjectToBeRetainedByReact}function useObserver(ht,Et){Et===void 0&&(Et="observed");var yt=__read$g(React$8.useState(objectToBeRetainedByReactFactory),1),Ct=yt[0],$t=__read$g(React$8.useState(),2),At=$t[1],Bt=function(){return At([])},Dt=React$8.useRef(null);Dt.current||(Dt.current={reaction:null,mounted:!1,changedBeforeMount:!1});var Ft=Dt.current;Ft.reaction||(Ft.reaction=new Reaction(observerComponentNameFor(Et),function(){Ft.mounted?Bt():Ft.changedBeforeMount=!0}),observerFinalizationRegistry.register(Ct,Ft,Ft)),React$8.useDebugValue(Ft.reaction,printDebugValue),React$8.useEffect(function(){return observerFinalizationRegistry.unregister(Ft),Ft.mounted=!0,Ft.reaction?Ft.changedBeforeMount&&(Ft.changedBeforeMount=!1,Bt()):(Ft.reaction=new Reaction(observerComponentNameFor(Et),function(){Bt()}),Bt()),function(){Ft.reaction.dispose(),Ft.reaction=null,Ft.mounted=!1,Ft.changedBeforeMount=!1}},[]);var kt,Mt;if(Ft.reaction.track(function(){try{kt=ht()}catch(Nt){Mt=Nt}}),Mt)throw Mt;return kt}var hasSymbol=typeof Symbol=="function"&&Symbol.for,ReactForwardRefSymbol=hasSymbol?Symbol.for("react.forward_ref"):typeof reactExports.forwardRef=="function"&&reactExports.forwardRef(function(ht){return null}).$$typeof,ReactMemoSymbol=hasSymbol?Symbol.for("react.memo"):typeof reactExports.memo=="function"&&reactExports.memo(function(ht){return null}).$$typeof;function observer$1(ht,Et){var yt;if(ReactMemoSymbol&&ht.$$typeof===ReactMemoSymbol)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.");var Ct=(yt=void 0)!==null&&yt!==void 0?yt:!1,$t=ht,At=ht.displayName||ht.name;if(ReactForwardRefSymbol&&ht.$$typeof===ReactForwardRefSymbol&&(Ct=!0,$t=ht.render,typeof $t!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var Bt=function(Dt,Ft){return useObserver(function(){return $t(Dt,Ft)},At)};return At!==""&&(Bt.displayName=At),ht.contextTypes&&(Bt.contextTypes=ht.contextTypes),Ct&&(Bt=reactExports.forwardRef(Bt)),Bt=reactExports.memo(Bt),copyStaticProperties(ht,Bt),Bt}var hoistBlackList={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function copyStaticProperties(ht,Et){Object.keys(ht).forEach(function(yt){hoistBlackList[yt]||Object.defineProperty(Et,yt,Object.getOwnPropertyDescriptor(ht,yt))})}function useLocalObservable(ht,Et){return reactExports.useState(function(){return observable(ht(),Et,{autoBind:!0})})[0]}var _a$2;observerBatching(reactDomExports.unstable_batchedUpdates);_a$2=observerFinalizationRegistry.finalizeAllImmediately;var symbolId=0;function createSymbol(ht){if(typeof Symbol=="function")return Symbol(ht);var Et="__$mobx-react "+ht+" ("+symbolId+")";return symbolId++,Et}var createdSymbols={};function newSymbol(ht){return createdSymbols[ht]||(createdSymbols[ht]=createSymbol(ht)),createdSymbols[ht]}function shallowEqual(ht,Et){if(is(ht,Et))return!0;if(typeof ht!="object"||ht===null||typeof Et!="object"||Et===null)return!1;var yt=Object.keys(ht),Ct=Object.keys(Et);if(yt.length!==Ct.length)return!1;for(var $t=0;$t<yt.length;$t++)if(!Object.hasOwnProperty.call(Et,yt[$t])||!is(ht[yt[$t]],Et[yt[$t]]))return!1;return!0}function is(ht,Et){return ht===Et?ht!==0||1/ht===1/Et:ht!==ht&&Et!==Et}function setHiddenProp(ht,Et,yt){Object.hasOwnProperty.call(ht,Et)?ht[Et]=yt:Object.defineProperty(ht,Et,{enumerable:!1,configurable:!0,writable:!0,value:yt})}var mobxMixins=newSymbol("patchMixins"),mobxPatchedDefinition=newSymbol("patchedDefinition");function getMixins(ht,Et){var yt=ht[mobxMixins]=ht[mobxMixins]||{},Ct=yt[Et]=yt[Et]||{};return Ct.locks=Ct.locks||0,Ct.methods=Ct.methods||[],Ct}function wrapper(ht,Et){for(var yt=this,Ct=arguments.length,$t=new Array(Ct>2?Ct-2:0),At=2;At<Ct;At++)$t[At-2]=arguments[At];Et.locks++;try{var Bt;return ht!=null&&(Bt=ht.apply(this,$t)),Bt}finally{Et.locks--,Et.locks===0&&Et.methods.forEach(function(Dt){Dt.apply(yt,$t)})}}function wrapFunction(ht,Et){var yt=function(){for(var $t=arguments.length,At=new Array($t),Bt=0;Bt<$t;Bt++)At[Bt]=arguments[Bt];wrapper.call.apply(wrapper,[this,ht,Et].concat(At))};return yt}function patch(ht,Et,yt){var Ct=getMixins(ht,Et);Ct.methods.indexOf(yt)<0&&Ct.methods.push(yt);var $t=Object.getOwnPropertyDescriptor(ht,Et);if(!($t&&$t[mobxPatchedDefinition])){var At=ht[Et],Bt=createDefinition(ht,Et,$t?$t.enumerable:void 0,Ct,At);Object.defineProperty(ht,Et,Bt)}}function createDefinition(ht,Et,yt,Ct,$t){var At,Bt=wrapFunction($t,Ct);return At={},At[mobxPatchedDefinition]=!0,At.get=function(){return Bt},At.set=function(Ft){if(this===ht)Bt=wrapFunction(Ft,Ct);else{var kt=createDefinition(this,Et,yt,Ct,Ft);Object.defineProperty(this,Et,kt)}},At.configurable=!0,At.enumerable=yt,At}var mobxAdminProperty=$mobx||"$mobx",mobxObserverProperty=newSymbol("isMobXReactObserver"),mobxIsUnmounted=newSymbol("isUnmounted"),skipRenderKey=newSymbol("skipRender"),isForcingUpdateKey=newSymbol("isForcingUpdate");function makeClassComponentObserver(ht){var Et=ht.prototype;if(ht[mobxObserverProperty]){var yt=getDisplayName(Et);console.warn("The provided component class ("+yt+`)
                has already been declared as an observer component.`)}else ht[mobxObserverProperty]=!0;if(Et.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(ht.__proto__!==reactExports.PureComponent){if(!Et.shouldComponentUpdate)Et.shouldComponentUpdate=observerSCU;else if(Et.shouldComponentUpdate!==observerSCU)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}makeObservableProp(Et,"props"),makeObservableProp(Et,"state"),ht.contextType&&makeObservableProp(Et,"context");var Ct=Et.render;if(typeof Ct!="function"){var $t=getDisplayName(Et);throw new Error("[mobx-react] class component ("+$t+") is missing `render` method.\n`observer` requires `render` being a function defined on prototype.\n`render = () => {}` or `render = function() {}` is not supported.")}return Et.render=function(){return this.render=createReactiveRender.call(this,Ct),this.render()},patch(Et,"componentDidMount",function(){this[mobxIsUnmounted]=!1,this.render[mobxAdminProperty]||reactExports.Component.prototype.forceUpdate.call(this)}),patch(Et,"componentWillUnmount",function(){var At=this.render[mobxAdminProperty];if(At)At.dispose(),this.render[mobxAdminProperty]=null;else{var Bt=getDisplayName(this);console.warn("The reactive render of an observer class component ("+Bt+`)
                was overridden after MobX attached. This may result in a memory leak if the
                overridden reactive render was not properly disposed.`)}this[mobxIsUnmounted]=!0}),ht}function getDisplayName(ht){return ht.displayName||ht.name||ht.constructor&&(ht.constructor.displayName||ht.constructor.name)||"<component>"}function createReactiveRender(ht){var Et=this;setHiddenProp(this,skipRenderKey,!1),setHiddenProp(this,isForcingUpdateKey,!1);var yt=getDisplayName(this),Ct=ht.bind(this),$t=!1,At=function(){var Ft=new Reaction(yt+".render()",function(){if(!$t&&($t=!0,Et[mobxIsUnmounted]!==!0)){var kt=!0;try{setHiddenProp(Et,isForcingUpdateKey,!0),Et[skipRenderKey]||reactExports.Component.prototype.forceUpdate.call(Et),kt=!1}finally{setHiddenProp(Et,isForcingUpdateKey,!1),kt&&(Ft.dispose(),Et.render[mobxAdminProperty]=null)}}});return Ft.reactComponent=Et,Ft};function Bt(){var Dt;$t=!1;var Ft=(Dt=Bt[mobxAdminProperty])!=null?Dt:Bt[mobxAdminProperty]=At(),kt=void 0,Mt=void 0;if(Ft.track(function(){try{Mt=allowStateChanges(!1,Ct)}catch(Nt){kt=Nt}}),kt)throw kt;return Mt}return Bt}function observerSCU(ht,Et){return this.state!==Et?!0:!shallowEqual(this.props,ht)}function makeObservableProp(ht,Et){var yt=newSymbol("reactProp_"+Et+"_valueHolder"),Ct=newSymbol("reactProp_"+Et+"_atomHolder");function $t(){return this[Ct]||setHiddenProp(this,Ct,createAtom("reactive "+Et)),this[Ct]}Object.defineProperty(ht,Et,{configurable:!0,enumerable:!0,get:function(){var Bt=!1;return allowStateReadsStart&&allowStateReadsEnd&&(Bt=allowStateReadsStart(!0)),$t.call(this).reportObserved(),allowStateReadsStart&&allowStateReadsEnd&&allowStateReadsEnd(Bt),this[yt]},set:function(Bt){!this[isForcingUpdateKey]&&!shallowEqual(this[yt],Bt)?(setHiddenProp(this,yt,Bt),setHiddenProp(this,skipRenderKey,!0),$t.call(this).reportChanged(),setHiddenProp(this,skipRenderKey,!1)):setHiddenProp(this,yt,Bt)}})}function observer(ht){return ht.isMobxInjector===!0&&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(reactExports.Component,ht)||Object.prototype.isPrototypeOf.call(reactExports.PureComponent,ht)?makeClassComponentObserver(ht):observer$1(ht)}if(!reactExports.Component)throw new Error("mobx-react requires React to be available");if(!observable)throw new Error("mobx-react requires mobx to be available");function xml$1(ht){return ht.replace(/&/g,"&amp;").replace(/'/g,"&apos;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function xml(ht){var Et,yt,Ct,$t,At,Bt,Dt;const Ft=(Et=ht.meta)===null||Et===void 0?void 0:Et.title,kt=(yt=ht.meta)===null||yt===void 0?void 0:yt.creator,Mt=(Ct=ht.meta)===null||Ct===void 0?void 0:Ct.source,Nt=(At=($t=ht.meta)===null||$t===void 0?void 0:$t.license)===null||At===void 0?void 0:At.url,jt=text$1(ht);return!Ft&&!kt&&!Mt&&!Nt&&!jt?"":'<metadata xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/"><rdf:RDF><rdf:Description>'+(Ft?`<dc:title>${xml$1(Ft)}</dc:title>`:"")+(kt?`<dc:creator>${xml$1(kt)}</dc:creator>`:"")+(Mt?`<dc:source xsi:type="dcterms:URI">${xml$1((Dt=(Bt=ht.meta)===null||Bt===void 0?void 0:Bt.source)!==null&&Dt!==void 0?Dt:"")}</dc:source>`:"")+(Nt?`<dcterms:license xsi:type="dcterms:URI">${xml$1(Nt)}</dcterms:license>`:"")+(jt?`<dc:rights>${xml$1(jt)}</dc:rights>`:"")+"</rdf:Description></rdf:RDF></metadata>"}function text$1(ht){var Et,yt,Ct,$t,At,Bt,Dt,Ft,kt,Mt,Nt,jt,zt,Vt,Kt;let Xt=!((Et=ht.meta)===null||Et===void 0)&&Et.title?`„${(yt=ht.meta)===null||yt===void 0?void 0:yt.title}”`:"Design",Qt=`„${($t=(Ct=ht.meta)===null||Ct===void 0?void 0:Ct.creator)!==null&&$t!==void 0?$t:"Unknown"}”`;!((At=ht.meta)===null||At===void 0)&&At.source&&(Xt+=` (${ht.meta.source})`);let Zt="";return((Dt=(Bt=ht.meta)===null||Bt===void 0?void 0:Bt.license)===null||Dt===void 0?void 0:Dt.name)!=="MIT"&&((Ft=ht.meta)===null||Ft===void 0?void 0:Ft.creator)!=="DiceBear"&&(!((kt=ht.meta)===null||kt===void 0)&&kt.title)&&(Zt+="Remix of "),Zt+=`${Xt} by ${Qt}`,!((Nt=(Mt=ht.meta)===null||Mt===void 0?void 0:Mt.license)===null||Nt===void 0)&&Nt.name&&(Zt+=`, licensed under „${(zt=(jt=ht.meta)===null||jt===void 0?void 0:jt.license)===null||zt===void 0?void 0:zt.name}”`,!((Kt=(Vt=ht.meta)===null||Vt===void 0?void 0:Vt.license)===null||Kt===void 0)&&Kt.url&&(Zt+=` (${ht.meta.license.url})`)),Zt}function exif(ht){var Et,yt,Ct,$t,At,Bt,Dt,Ft,kt;const Mt=text$1(ht);return{"IPTC:ObjectName":(Et=ht.meta)===null||Et===void 0?void 0:Et.title,"XMP-dc:Title":(yt=ht.meta)===null||yt===void 0?void 0:yt.title,"IPTC:CopyrightNotice":Mt,"XMP-dc:Rights":Mt,"IPTC:By-line":(Ct=ht.meta)===null||Ct===void 0?void 0:Ct.creator,"XMP-dc:Creator":($t=ht.meta)===null||$t===void 0?void 0:$t.creator,"IPTC:Credit":(At=ht.meta)===null||At===void 0?void 0:At.creator,"XMP-photoshop:Credit":(Bt=ht.meta)===null||Bt===void 0?void 0:Bt.creator,"XMP-plus:LicensorURL":(Dt=ht.meta)===null||Dt===void 0?void 0:Dt.source,"XMP-xmpRights:WebStatement":(kt=(Ft=ht.meta)===null||Ft===void 0?void 0:Ft.license)===null||kt===void 0?void 0:kt.url}}const MIN=-2147483648,MAX=2147483647;function xorshift(ht){return ht^=ht<<13,ht^=ht>>17,ht^=ht<<5,ht}function hashSeed(ht){let Et=0;for(let yt=0;yt<ht.length;yt++)Et=(Et<<5)-Et+ht.charCodeAt(yt)|0,Et=xorshift(Et);return Et}function create$2(ht=""){ht=ht.toString();let Et=hashSeed(ht)||1;const yt=()=>Et=xorshift(Et),Ct=($t,At)=>Math.floor((yt()-MIN)/(MAX-MIN)*(At+1-$t)+$t);return{seed:ht,next:yt,bool($t=50){return Ct(1,100)<=$t},integer($t,At){return Ct($t,At)},pick($t,At){var Bt;return $t.length===0?(yt(),At):(Bt=$t[Ct(0,$t.length-1)])!==null&&Bt!==void 0?Bt:At},shuffle($t){const At=create$2(yt().toString());return $t.sort(()=>At.integer(-1,1))},string($t,At="abcdefghijklmnopqrstuvwxyz1234567890"){const Bt=create$2(yt().toString());let Dt="";for(let Ft=0;Ft<$t;Ft++)Dt+=At[Bt.integer(0,At.length-1)];return Dt}}}function getViewBox(ht){let Et=ht.attributes.viewBox.split(" "),yt=parseInt(Et[0]),Ct=parseInt(Et[1]),$t=parseInt(Et[2]),At=parseInt(Et[3]);return{x:yt,y:Ct,width:$t,height:At}}function addBackground(ht,Et,yt,Ct,$t){let{width:At,height:Bt,x:Dt,y:Ft}=getViewBox(ht);const kt=`<rect fill="${Et}" width="${At}" height="${Bt}" x="${Dt}" y="${Ft}" />`;switch(Ct){case"solid":return kt+ht.body;case"gradientLinear":return`<rect fill="url(#backgroundLinear)" width="${At}" height="${Bt}" x="${Dt}" y="${Ft}" /><defs><linearGradient id="backgroundLinear" gradientTransform="rotate(${$t} 0.5 0.5)"><stop stop-color="${Et}"/><stop offset="1" stop-color="${yt}"/></linearGradient></defs>`+ht.body}}function addScale(ht,Et){let{width:yt,height:Ct,x:$t,y:At}=getViewBox(ht),Bt=Et?(Et-100)/100:0,Dt=(yt/2+$t)*Bt*-1,Ft=(Ct/2+At)*Bt*-1;return`<g transform="translate(${Dt} ${Ft}) scale(${Et/100})">${ht.body}</g>`}function addTranslate(ht,Et,yt){let Ct=getViewBox(ht),$t=(Ct.width+Ct.x*2)*((Et??0)/100),At=(Ct.height+Ct.y*2)*((yt??0)/100);return`<g transform="translate(${$t} ${At})">${ht.body}</g>`}function addRotate(ht,Et){let{width:yt,height:Ct,x:$t,y:At}=getViewBox(ht);return`<g transform="rotate(${Et}, ${yt/2+$t}, ${Ct/2+At})">${ht.body}</g>`}function addFlip(ht){let{width:Et,x:yt}=getViewBox(ht);return`<g transform="scale(-1 1) translate(${Et*-1-yt*2} 0)">${ht.body}</g>`}function addViewboxMask(ht,Et){let{width:yt,height:Ct,x:$t,y:At}=getViewBox(ht),Bt=Et?yt*Et/100:0,Dt=Et?Ct*Et/100:0;return`<mask id="viewboxMask"><rect width="${yt}" height="${Ct}" rx="${Bt}" ry="${Dt}" x="${$t}" y="${At}" fill="#fff" /></mask><g mask="url(#viewboxMask)">${ht.body}</g>`}function createAttrString(ht){const Et={xmlns:"http://www.w3.org/2000/svg",...ht.attributes};return Object.keys(Et).map(yt=>`${xml$1(yt)}="${xml$1(Et[yt])}"`).join(" ")}function randomizeIds(ht){const Et=create$2(Math.random().toString()),yt={};return ht.body.replace(/(id="|url\(#)([a-z0-9-_]+)([")])/gi,(Ct,$t,At,Bt)=>(yt[At]=yt[At]||Et.string(8),`${$t}${yt[At]}${Bt}`))}const schema$1={type:"object",$schema:"http://json-schema.org/draft-07/schema#",properties:{seed:{type:"string"},flip:{type:"boolean",default:!1},rotate:{type:"integer",minimum:0,maximum:360,default:0},scale:{type:"integer",minimum:0,maximum:200,default:100},radius:{type:"integer",minimum:0,maximum:50,default:0},size:{type:"integer",minimum:1},backgroundColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"}},backgroundType:{type:"array",items:{type:"string",enum:["solid","gradientLinear"]},default:["solid"]},backgroundRotation:{type:"array",items:{type:"integer",minimum:-360,maximum:360},default:[0,360]},translateX:{type:"integer",minimum:-100,maximum:100,default:0},translateY:{type:"integer",minimum:-100,maximum:100,default:0},clip:{type:"boolean",default:!0},randomizeIds:{type:"boolean",default:!1}}};function defaults$1(ht){var Et;let yt={},Ct=(Et=ht.properties)!==null&&Et!==void 0?Et:{};return Object.keys(Ct).forEach($t=>{let At=Ct[$t];typeof At=="object"&&At.default!==void 0&&(Array.isArray(At.default)?yt[$t]=[...At.default]:typeof At.default=="object"?yt[$t]={...At.default}:yt[$t]=At.default)}),yt}function merge$1(ht,Et){var yt;let Ct={...defaults$1(schema$1),...defaults$1((yt=ht.schema)!==null&&yt!==void 0?yt:{}),...Et};return JSON.parse(JSON.stringify(Ct))}function getMimeType(ht){switch(ht){case"svg":return"image/svg+xml";case"png":case"jpeg":return`image/${ht}`;default:throw new Error(`Unsupported format: ${ht}`)}}function ensureSize(ht,Et=512){let yt=Et;return ht=ht.replace(/<svg([^>]*)/,(Ct,$t)=>{const At=$t.match(/width="([^"]+)"/);return At&&(yt=parseInt(At[1])),$t.match(/width="([^"]+)"/)?$t=$t.replace(/width="([^"]+)"/,`width="${yt}"`):$t+=` width="${yt}"`,$t.match(/height="([^"]+)"/)?$t=$t.replace(/height="([^"]+)"/,`height="${yt}"`):$t+=` height="${yt}"`,`<svg${$t}`}),{svg:ht,size:yt}}let encoder;function getEncoder(){return encoder||(encoder=new TextEncoder),encoder}const toFormat=function(ht,Et,yt){return{toDataUri:()=>toDataUri(ht,Et,yt),toFile:Ct=>toFile(Ct,ht,Et,yt),toArrayBuffer:()=>toArrayBuffer(ht,Et,yt)}};async function toDataUri(ht,Et,yt){return Et==="svg"?`data:${getMimeType(Et)};utf8,${encodeURIComponent(ht)}`:(await toCanvas(ht,Et,yt)).toDataURL(getMimeType(Et))}async function toArrayBuffer(ht,Et,yt){if(Et==="svg")return getEncoder().encode(ht);const Ct=await toCanvas(ht,Et,yt);return await new Promise(($t,At)=>{Ct.toBlob(Bt=>{Bt?$t(Bt.arrayBuffer()):At(new Error("Could not create blob"))},getMimeType(Et))})}async function toFile(ht,Et,yt,Ct){const $t=document.createElement("a");$t.href=await toDataUri(Et,yt,Ct),$t.download=ht,$t.click(),$t.remove()}async function toCanvas(ht,Et,yt){yt&&console.warn("The `exif` option is not supported in the browser version of `@dicebear/converter`. \nPlease use the node version of `@dicebear/converter` to generate images with exif data.");let{svg:Ct,size:$t}=ensureSize(ht);const At=document.createElement("canvas");At.width=$t,At.height=$t;const Bt=At.getContext("2d");if(Bt===null)throw new Error("Could not get canvas context");Et==="jpeg"&&(Bt.fillStyle="white",Bt.fillRect(0,0,$t,$t));var Dt=document.createElement("img");return Dt.width=$t,Dt.height=$t,Dt.setAttribute("src",await toDataUri(Ct,"svg")),new Promise((Ft,kt)=>{Dt.onload=()=>{Bt.drawImage(Dt,0,0,$t,$t),Ft(At)},Dt.onerror=Mt=>kt(Mt)})}function convertColor$1(ht){return ht==="transparent"?ht:`#${ht}`}function getBackgroundColors(ht,Et){var yt;let Ct;Et.length<=2?(ht.next(),Ct=Et):Ct=ht.shuffle(Et),Ct.length===0&&(Ct=["transparent"]);const $t=Ct[0],At=(yt=Ct[1])!==null&&yt!==void 0?yt:Ct[0];return{primary:convertColor$1($t),secondary:convertColor$1(At)}}function createAvatar(ht,Et={}){var yt,Ct,$t,At,Bt;Et=merge$1(ht,Et);const Dt=create$2(Et.seed),Ft=ht.create({prng:Dt,options:Et}),{primary:kt,secondary:Mt}=getBackgroundColors(Dt,(yt=Et.backgroundColor)!==null&&yt!==void 0?yt:[]),Nt=Dt.pick((Ct=Et.backgroundType)!==null&&Ct!==void 0?Ct:[],"solid"),jt=Dt.integer(!(($t=Et.backgroundRotation)===null||$t===void 0)&&$t.length?Math.min(...Et.backgroundRotation):0,!((At=Et.backgroundRotation)===null||At===void 0)&&At.length?Math.max(...Et.backgroundRotation):0);Et.size&&(Ft.attributes.width=Et.size.toString(),Ft.attributes.height=Et.size.toString()),Et.scale!==void 0&&Et.scale!==100&&(Ft.body=addScale(Ft,Et.scale)),Et.flip&&(Ft.body=addFlip(Ft)),Et.rotate&&(Ft.body=addRotate(Ft,Et.rotate)),(Et.translateX||Et.translateY)&&(Ft.body=addTranslate(Ft,Et.translateX,Et.translateY)),kt!=="transparent"&&Mt!=="transparent"&&(Ft.body=addBackground(Ft,kt,Mt,Nt,jt)),(Et.radius||Et.clip)&&(Ft.body=addViewboxMask(Ft,(Bt=Et.radius)!==null&&Bt!==void 0?Bt:0)),Et.randomizeIds&&(Ft.body=randomizeIds(Ft));const zt=createAttrString(Ft),Vt=xml(ht),Kt=exif(ht),Xt=`<svg ${zt}>${Vt}${Ft.body}</svg>`;return{toString:()=>Xt,toJson:()=>{var Qt;return{svg:Xt,extra:{primaryBackgroundColor:kt,secondaryBackgroundColor:Mt,backgroundType:Nt,backgroundRotation:jt,...(Qt=Ft.extra)===null||Qt===void 0?void 0:Qt.call(Ft)}}},toDataUriSync:()=>`data:image/svg+xml;utf8,${encodeURIComponent(Xt)}`,...toFormat(Xt,"svg"),png:({includeExif:Qt=!1}={})=>toFormat(Xt,"png",Qt?Kt:void 0),jpeg:({includeExif:Qt=!1}={})=>toFormat(Xt,"jpeg",Qt?Kt:void 0)}}const row1={xooox:(ht,Et)=>`<path d="M1 0H0v1h1V0ZM5 0H4v1h1V0Z" fill="${xml$1(`${Et.row}`)}"/>`,xxoxx:(ht,Et)=>`<path d="M2 0H0v1h2V0ZM5 0H3v1h2V0Z" fill="${xml$1(`${Et.row}`)}"/>`,xoxox:(ht,Et)=>`<path d="M0 0h1v1H0V0ZM4 0h1v1H4V0ZM3 0H2v1h1V0Z" fill="${xml$1(`${Et.row}`)}"/>`,oxxxo:(ht,Et)=>`<path fill="${xml$1(`${Et.row}`)}" d="M1 0h3v1H1z"/>`,xxxxx:(ht,Et)=>`<path fill="${xml$1(`${Et.row}`)}" d="M0 0h5v1H0z"/>`,oxoxo:(ht,Et)=>`<path d="M2 0H1v1h1V0ZM4 0H3v1h1V0Z" fill="${xml$1(`${Et.row}`)}"/>`,ooxoo:(ht,Et)=>`<path fill="${xml$1(`${Et.row}`)}" d="M2 0h1v1H2z"/>`},row2={xooox:(ht,Et)=>`<path d="M1 1H0v1h1V1ZM5 1H4v1h1V1Z" fill="${xml$1(`${Et.row}`)}"/>`,xxoxx:(ht,Et)=>`<path d="M2 1H0v1h2V1ZM5 1H3v1h2V1Z" fill="${xml$1(`${Et.row}`)}"/>`,xoxox:(ht,Et)=>`<path d="M0 1h1v1H0V1ZM4 1h1v1H4V1ZM3 1H2v1h1V1Z" fill="${xml$1(`${Et.row}`)}"/>`,oxxxo:(ht,Et)=>`<path fill="${xml$1(`${Et.row}`)}" d="M1 1h3v1H1z"/>`,xxxxx:(ht,Et)=>`<path fill="${xml$1(`${Et.row}`)}" d="M0 1h5v1H0z"/>`,oxoxo:(ht,Et)=>`<path d="M2 1H1v1h1V1ZM4 1H3v1h1V1Z" fill="${xml$1(`${Et.row}`)}"/>`,ooxoo:(ht,Et)=>`<path fill="${xml$1(`${Et.row}`)}" d="M2 1h1v1H2z"/>`},row3={xooox:(ht,Et)=>`<path d="M1 2H0v1h1V2ZM5 2H4v1h1V2Z" fill="${xml$1(`${Et.row}`)}"/>`,xxoxx:(ht,Et)=>`<path d="M2 2H0v1h2V2ZM5 2H3v1h2V2Z" fill="${xml$1(`${Et.row}`)}"/>`,xoxox:(ht,Et)=>`<path d="M0 2h1v1H0V2ZM4 2h1v1H4V2ZM3 2H2v1h1V2Z" fill="${xml$1(`${Et.row}`)}"/>`,oxxxo:(ht,Et)=>`<path fill="${xml$1(`${Et.row}`)}" d="M1 2h3v1H1z"/>`,xxxxx:(ht,Et)=>`<path fill="${xml$1(`${Et.row}`)}" d="M0 2h5v1H0z"/>`,oxoxo:(ht,Et)=>`<path d="M2 2H1v1h1V2ZM4 2H3v1h1V2Z" fill="${xml$1(`${Et.row}`)}"/>`,ooxoo:(ht,Et)=>`<path fill="${xml$1(`${Et.row}`)}" d="M2 2h1v1H2z"/>`},row4={xooox:(ht,Et)=>`<path d="M1 3H0v1h1V3ZM5 3H4v1h1V3Z" fill="${xml$1(`${Et.row}`)}"/>`,xxoxx:(ht,Et)=>`<path d="M2 3H0v1h2V3ZM5 3H3v1h2V3Z" fill="${xml$1(`${Et.row}`)}"/>`,xoxox:(ht,Et)=>`<path d="M0 3h1v1H0V3ZM4 3h1v1H4V3ZM3 3H2v1h1V3Z" fill="${xml$1(`${Et.row}`)}"/>`,oxxxo:(ht,Et)=>`<path fill="${xml$1(`${Et.row}`)}" d="M1 3h3v1H1z"/>`,xxxxx:(ht,Et)=>`<path fill="${xml$1(`${Et.row}`)}" d="M0 3h5v1H0z"/>`,oxoxo:(ht,Et)=>`<path d="M2 3H1v1h1V3ZM4 3H3v1h1V3Z" fill="${xml$1(`${Et.row}`)}"/>`,ooxoo:(ht,Et)=>`<path fill="${xml$1(`${Et.row}`)}" d="M2 3h1v1H2z"/>`},row5={xooox:(ht,Et)=>`<path d="M1 4H0v1h1V4ZM5 4H4v1h1V4Z" fill="${xml$1(`${Et.row}`)}"/>`,xxoxx:(ht,Et)=>`<path d="M2 4H0v1h2V4ZM5 4H3v1h2V4Z" fill="${xml$1(`${Et.row}`)}"/>`,xoxox:(ht,Et)=>`<path d="M0 4h1v1H0V4ZM4 4h1v1H4V4ZM3 4H2v1h1V4Z" fill="${xml$1(`${Et.row}`)}"/>`,oxxxo:(ht,Et)=>`<path fill="${xml$1(`${Et.row}`)}" d="M1 4h3v1H1z"/>`,xxxxx:(ht,Et)=>`<path fill="${xml$1(`${Et.row}`)}" d="M0 4h5v1H0z"/>`,oxoxo:(ht,Et)=>`<path d="M2 4H1v1h1V4ZM4 4H3v1h1V4Z" fill="${xml$1(`${Et.row}`)}"/>`,ooxoo:(ht,Et)=>`<path fill="${xml$1(`${Et.row}`)}" d="M2 4h1v1H2z"/>`},components=Object.freeze(Object.defineProperty({__proto__:null,row1,row2,row3,row4,row5},Symbol.toStringTag,{value:"Module"}));function pickComponent({prng:ht,group:Et,values:yt=[]}){const Ct=components,$t=ht.pick(yt);if($t&&Ct[Et][$t])return{name:$t,value:Ct[Et][$t]}}function getComponents({prng:ht,options:Et}){const yt=pickComponent({prng:ht,group:"row1",values:Et.row1}),Ct=pickComponent({prng:ht,group:"row2",values:Et.row2}),$t=pickComponent({prng:ht,group:"row3",values:Et.row3}),At=pickComponent({prng:ht,group:"row4",values:Et.row4}),Bt=pickComponent({prng:ht,group:"row5",values:Et.row5});return{row1:yt,row2:Ct,row3:$t,row4:At,row5:Bt}}function convertColor(ht){return ht==="transparent"?ht:`#${ht}`}function getColors({prng:ht,options:Et}){var yt;return{row:convertColor(ht.pick((yt=Et.rowColor)!==null&&yt!==void 0?yt:[],"transparent"))}}const schema={$schema:"http://json-schema.org/draft-07/schema#",properties:{row1:{type:"array",items:{type:"string",enum:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},default:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},row2:{type:"array",items:{type:"string",enum:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},default:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},row3:{type:"array",items:{type:"string",enum:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},default:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},row4:{type:"array",items:{type:"string",enum:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},default:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},row5:{type:"array",items:{type:"string",enum:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},default:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},rowColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["e53935","ffb300","1e88e5","546e7a","6d4c41","00acc1","f4511e","5e35b1","43a047","757575","3949ab","039be5","7cb342","c0ca33","fb8c00","d81b60","8e24aa","00897b","fdd835"]}}},meta={title:"Identicon",creator:"DiceBear",source:"https://www.dicebear.com",homepage:"https://www.dicebear.com",license:{name:"CC0 1.0",url:"https://creativecommons.org/publicdomain/zero/1.0/"}},create$1=({prng:ht,options:Et})=>{var yt,Ct,$t,At,Bt,Dt,Ft,kt,Mt,Nt;const jt=getComponents({prng:ht,options:Et}),zt=getColors({prng:ht,options:Et});return{attributes:{viewBox:"0 0 5 5",fill:"none","shape-rendering":"crispEdges"},body:`${(Ct=(yt=jt.row1)===null||yt===void 0?void 0:yt.value(jt,zt))!==null&&Ct!==void 0?Ct:""}${(At=($t=jt.row2)===null||$t===void 0?void 0:$t.value(jt,zt))!==null&&At!==void 0?At:""}${(Dt=(Bt=jt.row3)===null||Bt===void 0?void 0:Bt.value(jt,zt))!==null&&Dt!==void 0?Dt:""}${(kt=(Ft=jt.row4)===null||Ft===void 0?void 0:Ft.value(jt,zt))!==null&&kt!==void 0?kt:""}${(Nt=(Mt=jt.row5)===null||Mt===void 0?void 0:Mt.value(jt,zt))!==null&&Nt!==void 0?Nt:""}`,extra:()=>({...Object.entries(jt).reduce((Vt,[Kt,Xt])=>(Vt[Kt]=Xt==null?void 0:Xt.name,Vt),{}),...Object.entries(zt).reduce((Vt,[Kt,Xt])=>(Vt[`${Kt}Color`]=Xt,Vt),{})})}},identicon=Object.freeze(Object.defineProperty({__proto__:null,create:create$1,meta,schema},Symbol.toStringTag,{value:"Module"}));/*! js-cookie v3.0.1 | MIT */function assign$5(ht){for(var Et=1;Et<arguments.length;Et++){var yt=arguments[Et];for(var Ct in yt)ht[Ct]=yt[Ct]}return ht}var defaultConverter={read:function(ht){return ht[0]==='"'&&(ht=ht.slice(1,-1)),ht.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(ht){return encodeURIComponent(ht).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function init(ht,Et){function yt($t,At,Bt){if(!(typeof document>"u")){Bt=assign$5({},Et,Bt),typeof Bt.expires=="number"&&(Bt.expires=new Date(Date.now()+Bt.expires*864e5)),Bt.expires&&(Bt.expires=Bt.expires.toUTCString()),$t=encodeURIComponent($t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var Dt="";for(var Ft in Bt)Bt[Ft]&&(Dt+="; "+Ft,Bt[Ft]!==!0&&(Dt+="="+Bt[Ft].split(";")[0]));return document.cookie=$t+"="+ht.write(At,$t)+Dt}}function Ct($t){if(!(typeof document>"u"||arguments.length&&!$t)){for(var At=document.cookie?document.cookie.split("; "):[],Bt={},Dt=0;Dt<At.length;Dt++){var Ft=At[Dt].split("="),kt=Ft.slice(1).join("=");try{var Mt=decodeURIComponent(Ft[0]);if(Bt[Mt]=ht.read(kt,Mt),$t===Mt)break}catch{}}return $t?Bt[$t]:Bt}}return Object.create({set:yt,get:Ct,remove:function($t,At){yt($t,"",assign$5({},At,{expires:-1}))},withAttributes:function($t){return init(this.converter,assign$5({},this.attributes,$t))},withConverter:function($t){return init(assign$5({},this.converter,$t),this.attributes)}},{attributes:{value:Object.freeze(Et)},converter:{value:Object.freeze(ht)}})}var api=init(defaultConverter,{path:"/"}),saveSvgAsPng$1={};(function(ht){(function(){var Et=ht||!1||this||window;Et.default=Et;var yt="http://www.w3.org/2000/xmlns/",Ct="http://www.w3.org/1999/xhtml",$t="http://www.w3.org/2000/svg",At='<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [<!ENTITY nbsp "&#160;">]>',Bt=/url\(["']?(.+?)["']?\)/,Dt={woff2:"font/woff2",woff:"font/woff",otf:"application/x-font-opentype",ttf:"application/x-font-ttf",eot:"application/vnd.ms-fontobject",sfnt:"application/font-sfnt",svg:"image/svg+xml"},Ft=function(Lt){return Lt instanceof HTMLElement||Lt instanceof SVGElement},kt=function(Lt){if(!Ft(Lt))throw new Error("an HTMLElement or SVGElement is required; got "+Lt)},Mt=function(Lt){return new Promise(function(Ht,Wt){Ft(Lt)?Ht(Lt):Wt(new Error("an HTMLElement or SVGElement is required; got "+Lt))})},Nt=function(Lt){return Lt&&Lt.lastIndexOf("http",0)===0&&Lt.lastIndexOf(window.location.host)===-1},jt=function(Lt){var Ht=Object.keys(Dt).filter(function(Wt){return Lt.indexOf("."+Wt)>0}).map(function(Wt){return Dt[Wt]});return Ht?Ht[0]:(console.error("Unknown font format for "+Lt+". Fonts may not be working correctly."),"application/octet-stream")},zt=function(Lt){for(var Ht="",Wt=new Uint8Array(Lt),Gt=0;Gt<Wt.byteLength;Gt++)Ht+=String.fromCharCode(Wt[Gt]);return window.btoa(Ht)},Vt=function(Lt,Ht,Wt){var Gt=Lt.viewBox&&Lt.viewBox.baseVal&&Lt.viewBox.baseVal[Wt]||Ht.getAttribute(Wt)!==null&&!Ht.getAttribute(Wt).match(/%$/)&&parseInt(Ht.getAttribute(Wt))||Lt.getBoundingClientRect()[Wt]||parseInt(Ht.style[Wt])||parseInt(window.getComputedStyle(Lt).getPropertyValue(Wt));return typeof Gt>"u"||Gt===null||isNaN(parseFloat(Gt))?0:Gt},Kt=function(Lt,Ht,Wt,Gt){if(Lt.tagName==="svg")return{width:Wt||Vt(Lt,Ht,"width"),height:Gt||Vt(Lt,Ht,"height")};if(Lt.getBBox){var Yt=Lt.getBBox(),er=Yt.x,lr=Yt.y,Jt=Yt.width,Ut=Yt.height;return{width:er+Jt,height:lr+Ut}}},Xt=function(Lt){return decodeURIComponent(encodeURIComponent(Lt).replace(/%([0-9A-F]{2})/g,function(Ht,Wt){var Gt=String.fromCharCode("0x"+Wt);return Gt==="%"?"%25":Gt}))},Qt=function(Lt){for(var Ht=window.atob(Lt.split(",")[1]),Wt=Lt.split(",")[0].split(":")[1].split(";")[0],Gt=new ArrayBuffer(Ht.length),Yt=new Uint8Array(Gt),er=0;er<Ht.length;er++)Yt[er]=Ht.charCodeAt(er);return new Blob([Gt],{type:Wt})},Zt=function(Lt,Ht){if(Ht)try{return Lt.querySelector(Ht)||Lt.parentNode&&Lt.parentNode.querySelector(Ht)}catch(Wt){console.warn('Invalid CSS selector "'+Ht+'"',Wt)}},dr=function(Lt,Ht){var Wt=Lt.cssText.match(Bt),Gt=Wt&&Wt[1]||"";if(!(!Gt||Gt.match(/^data:/)||Gt==="about:blank")){var Yt=Gt.startsWith("../")?Ht+"/../"+Gt:Gt.startsWith("./")?Ht+"/."+Gt:Gt;return{text:Lt.cssText,format:jt(Yt),url:Yt}}},cr=function(Lt){return Promise.all(Array.from(Lt.querySelectorAll("image")).map(function(Ht){var Wt=Ht.getAttributeNS("http://www.w3.org/1999/xlink","href")||Ht.getAttribute("href");return Wt?(Nt(Wt)&&(Wt+=(Wt.indexOf("?")===-1?"?":"&")+"t="+new Date().valueOf()),new Promise(function(Gt,Yt){var er=document.createElement("canvas"),lr=new Image;lr.crossOrigin="anonymous",lr.src=Wt,lr.onerror=function(){return Yt(new Error("Could not load "+Wt))},lr.onload=function(){er.width=lr.width,er.height=lr.height,er.getContext("2d").drawImage(lr,0,0),Ht.setAttributeNS("http://www.w3.org/1999/xlink","href",er.toDataURL("image/png")),Gt(!0)}})):Promise.resolve(null)}))},Er={},pr=function(Lt){return Promise.all(Lt.map(function(Ht){return new Promise(function(Wt,Gt){if(Er[Ht.url])return Wt(Er[Ht.url]);var Yt=new XMLHttpRequest;Yt.addEventListener("load",function(){var er=zt(Yt.response),lr=Ht.text.replace(Bt,'url("data:'+Ht.format+";base64,"+er+'")')+`
`;Er[Ht.url]=lr,Wt(lr)}),Yt.addEventListener("error",function(er){console.warn("Failed to load font from: "+Ht.url,er),Er[Ht.url]=null,Wt(null)}),Yt.addEventListener("abort",function(er){console.warn("Aborted loading font from: "+Ht.url,er),Wt(null)}),Yt.open("GET",Ht.url),Yt.responseType="arraybuffer",Yt.send()})})).then(function(Ht){return Ht.filter(function(Wt){return Wt}).join("")})},gr=null,vr=function(){return gr||(gr=Array.from(document.styleSheets).map(function(Lt){try{return{rules:Lt.cssRules,href:Lt.href}}catch(Ht){return console.warn("Stylesheet could not be loaded: "+Lt.href,Ht),{}}}))},yr=function(Lt,Ht){var Wt=Ht||{},Gt=Wt.selectorRemap,Yt=Wt.modifyStyle,er=Wt.modifyCss,lr=Wt.fonts,Jt=Wt.excludeUnusedCss,Ut=er||function($r,Tr){var Dr=Gt?Gt($r):$r,Ar=Yt?Yt(Tr):Tr;return Dr+"{"+Ar+`}
`},ir=[],Cr=typeof lr>"u",_r=lr||[];return vr().forEach(function($r){var Tr=$r.rules,Dr=$r.href;Tr&&Array.from(Tr).forEach(function(Ar){if(typeof Ar.style<"u")if(Zt(Lt,Ar.selectorText))ir.push(Ut(Ar.selectorText,Ar.style.cssText));else if(Cr&&Ar.cssText.match(/^@font-face/)){var Fr=dr(Ar,Dr);Fr&&_r.push(Fr)}else Jt||ir.push(Ar.cssText)})}),pr(_r).then(function($r){return ir.join(`
`)+$r})},xr=function(){if(!navigator.msSaveOrOpenBlob&&!("download"in document.createElement("a")))return{popup:window.open()}};Et.prepareSvg=function(rr,Lt,Ht){kt(rr);var Wt=Lt||{},Gt=Wt.left,Yt=Gt===void 0?0:Gt,er=Wt.top,lr=er===void 0?0:er,Jt=Wt.width,Ut=Wt.height,ir=Wt.scale,Cr=ir===void 0?1:ir,_r=Wt.responsive,$r=_r===void 0?!1:_r,Tr=Wt.excludeCss,Dr=Tr===void 0?!1:Tr;return cr(rr).then(function(){var Ar=rr.cloneNode(!0);Ar.style.backgroundColor=(Lt||{}).backgroundColor||rr.style.backgroundColor;var Fr=Kt(rr,Ar,Jt,Ut),Rr=Fr.width,wr=Fr.height;if(rr.tagName!=="svg")if(rr.getBBox){Ar.getAttribute("transform")!=null&&Ar.setAttribute("transform",Ar.getAttribute("transform").replace(/translate\(.*?\)/,""));var Sr=document.createElementNS("http://www.w3.org/2000/svg","svg");Sr.appendChild(Ar),Ar=Sr}else{console.error("Attempted to render non-SVG element",rr);return}if(Ar.setAttribute("version","1.1"),Ar.setAttribute("viewBox",[Yt,lr,Rr,wr].join(" ")),Ar.getAttribute("xmlns")||Ar.setAttributeNS(yt,"xmlns",$t),Ar.getAttribute("xmlns:xlink")||Ar.setAttributeNS(yt,"xmlns:xlink","http://www.w3.org/1999/xlink"),$r?(Ar.removeAttribute("width"),Ar.removeAttribute("height"),Ar.setAttribute("preserveAspectRatio","xMinYMin meet")):(Ar.setAttribute("width",Rr*Cr),Ar.setAttribute("height",wr*Cr)),Array.from(Ar.querySelectorAll("foreignObject > *")).forEach(function(Pr){Pr.setAttributeNS(yt,"xmlns",Pr.tagName==="svg"?$t:Ct)}),Dr){var Br=document.createElement("div");Br.appendChild(Ar);var Or=Br.innerHTML;if(typeof Ht=="function")Ht(Or,Rr,wr);else return{src:Or,width:Rr,height:wr}}else return yr(rr,Lt).then(function(Pr){var Nr=document.createElement("style");Nr.setAttribute("type","text/css"),Nr.innerHTML=`<![CDATA[
`+Pr+`
]]>`;var Lr=document.createElement("defs");Lr.appendChild(Nr),Ar.insertBefore(Lr,Ar.firstChild);var Wr=document.createElement("div");Wr.appendChild(Ar);var Ur=Wr.innerHTML.replace(/NS\d+:href/gi,'xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href');if(typeof Ht=="function")Ht(Ur,Rr,wr);else return{src:Ur,width:Rr,height:wr}})})},Et.svgAsDataUri=function(rr,Lt,Ht){return kt(rr),Et.prepareSvg(rr,Lt).then(function(Wt){var Gt=Wt.src,Yt=Wt.width,er=Wt.height,lr="data:image/svg+xml;base64,"+window.btoa(Xt(At+Gt));return typeof Ht=="function"&&Ht(lr,Yt,er),lr})},Et.svgAsPngUri=function(rr,Lt,Ht){kt(rr);var Wt=Lt||{},Gt=Wt.encoderType,Yt=Gt===void 0?"image/png":Gt,er=Wt.encoderOptions,lr=er===void 0?.8:er,Jt=Wt.canvg,Ut=function(Cr){var _r=Cr.src,$r=Cr.width,Tr=Cr.height,Dr=document.createElement("canvas"),Ar=Dr.getContext("2d"),Fr=window.devicePixelRatio||1;Dr.width=$r*Fr,Dr.height=Tr*Fr,Dr.style.width=Dr.width+"px",Dr.style.height=Dr.height+"px",Ar.setTransform(Fr,0,0,Fr,0,0),Jt?Jt(Dr,_r):Ar.drawImage(_r,0,0);var Rr=void 0;try{Rr=Dr.toDataURL(Yt,lr)}catch(wr){if(typeof SecurityError<"u"&&wr instanceof SecurityError||wr.name==="SecurityError"){console.error("Rendered SVG images cannot be downloaded in this browser.");return}else throw wr}return typeof Ht=="function"&&Ht(Rr,Dr.width,Dr.height),Promise.resolve(Rr)};return Jt?Et.prepareSvg(rr,Lt).then(Ut):Et.svgAsDataUri(rr,Lt).then(function(ir){return new Promise(function(Cr,_r){var $r=new Image;$r.onload=function(){return Cr(Ut({src:$r,width:$r.width,height:$r.height}))},$r.onerror=function(){_r(`There was an error loading the data URI as an image on the following SVG
`+window.atob(ir.slice(26))+`Open the following link to see browser's diagnosis
`+ir)},$r.src=ir})})},Et.download=function(rr,Lt,Ht){if(navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(Qt(Lt),rr);else{var Wt=document.createElement("a");if("download"in Wt){Wt.download=rr,Wt.style.display="none",document.body.appendChild(Wt);try{var Gt=Qt(Lt),Yt=URL.createObjectURL(Gt);Wt.href=Yt,Wt.onclick=function(){return requestAnimationFrame(function(){return URL.revokeObjectURL(Yt)})}}catch(er){console.error(er),console.warn("Error while getting object URL. Falling back to string URL."),Wt.href=Lt}Wt.click(),document.body.removeChild(Wt)}else Ht&&Ht.popup&&(Ht.popup.document.title=rr,Ht.popup.location.replace(Lt))}},Et.saveSvg=function(rr,Lt,Ht){var Wt=xr();return Mt(rr).then(function(Gt){return Et.svgAsDataUri(Gt,Ht||{})}).then(function(Gt){return Et.download(Lt,Gt,Wt)})},Et.saveSvgAsPng=function(rr,Lt,Ht){var Wt=xr();return Mt(rr).then(function(Gt){return Et.svgAsPngUri(Gt,Ht||{})}).then(function(Gt){return Et.download(Lt,Gt,Wt)})}})()})(saveSvgAsPng$1);var localforage$1={exports:{}};/*!
    localForage -- Offline Storage, Improved
    Version 1.10.0
    https://localforage.github.io/localForage
    (c) 2013-2017 Mozilla, Apache License 2.0
*/(function(ht,Et){(function(yt){ht.exports=yt()})(function(){return function yt(Ct,$t,At){function Bt(kt,Mt){if(!$t[kt]){if(!Ct[kt]){var Nt=typeof commonjsRequire=="function"&&commonjsRequire;if(!Mt&&Nt)return Nt(kt,!0);if(Dt)return Dt(kt,!0);var jt=new Error("Cannot find module '"+kt+"'");throw jt.code="MODULE_NOT_FOUND",jt}var zt=$t[kt]={exports:{}};Ct[kt][0].call(zt.exports,function(Vt){var Kt=Ct[kt][1][Vt];return Bt(Kt||Vt)},zt,zt.exports,yt,Ct,$t,At)}return $t[kt].exports}for(var Dt=typeof commonjsRequire=="function"&&commonjsRequire,Ft=0;Ft<At.length;Ft++)Bt(At[Ft]);return Bt}({1:[function(yt,Ct,$t){(function(At){var Bt=At.MutationObserver||At.WebKitMutationObserver,Dt;if(Bt){var Ft=0,kt=new Bt(Vt),Mt=At.document.createTextNode("");kt.observe(Mt,{characterData:!0}),Dt=function(){Mt.data=Ft=++Ft%2}}else if(!At.setImmediate&&typeof At.MessageChannel<"u"){var Nt=new At.MessageChannel;Nt.port1.onmessage=Vt,Dt=function(){Nt.port2.postMessage(0)}}else"document"in At&&"onreadystatechange"in At.document.createElement("script")?Dt=function(){var Xt=At.document.createElement("script");Xt.onreadystatechange=function(){Vt(),Xt.onreadystatechange=null,Xt.parentNode.removeChild(Xt),Xt=null},At.document.documentElement.appendChild(Xt)}:Dt=function(){setTimeout(Vt,0)};var jt,zt=[];function Vt(){jt=!0;for(var Xt,Qt,Zt=zt.length;Zt;){for(Qt=zt,zt=[],Xt=-1;++Xt<Zt;)Qt[Xt]();Zt=zt.length}jt=!1}Ct.exports=Kt;function Kt(Xt){zt.push(Xt)===1&&!jt&&Dt()}}).call(this,typeof commonjsGlobal<"u"?commonjsGlobal:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(yt,Ct,$t){var At=yt(1);function Bt(){}var Dt={},Ft=["REJECTED"],kt=["FULFILLED"],Mt=["PENDING"];Ct.exports=Nt;function Nt(Er){if(typeof Er!="function")throw new TypeError("resolver must be a function");this.state=Mt,this.queue=[],this.outcome=void 0,Er!==Bt&&Kt(this,Er)}Nt.prototype.catch=function(Er){return this.then(null,Er)},Nt.prototype.then=function(Er,pr){if(typeof Er!="function"&&this.state===kt||typeof pr!="function"&&this.state===Ft)return this;var gr=new this.constructor(Bt);if(this.state!==Mt){var vr=this.state===kt?Er:pr;zt(gr,vr,this.outcome)}else this.queue.push(new jt(gr,Er,pr));return gr};function jt(Er,pr,gr){this.promise=Er,typeof pr=="function"&&(this.onFulfilled=pr,this.callFulfilled=this.otherCallFulfilled),typeof gr=="function"&&(this.onRejected=gr,this.callRejected=this.otherCallRejected)}jt.prototype.callFulfilled=function(Er){Dt.resolve(this.promise,Er)},jt.prototype.otherCallFulfilled=function(Er){zt(this.promise,this.onFulfilled,Er)},jt.prototype.callRejected=function(Er){Dt.reject(this.promise,Er)},jt.prototype.otherCallRejected=function(Er){zt(this.promise,this.onRejected,Er)};function zt(Er,pr,gr){At(function(){var vr;try{vr=pr(gr)}catch(yr){return Dt.reject(Er,yr)}vr===Er?Dt.reject(Er,new TypeError("Cannot resolve promise with itself")):Dt.resolve(Er,vr)})}Dt.resolve=function(Er,pr){var gr=Xt(Vt,pr);if(gr.status==="error")return Dt.reject(Er,gr.value);var vr=gr.value;if(vr)Kt(Er,vr);else{Er.state=kt,Er.outcome=pr;for(var yr=-1,xr=Er.queue.length;++yr<xr;)Er.queue[yr].callFulfilled(pr)}return Er},Dt.reject=function(Er,pr){Er.state=Ft,Er.outcome=pr;for(var gr=-1,vr=Er.queue.length;++gr<vr;)Er.queue[gr].callRejected(pr);return Er};function Vt(Er){var pr=Er&&Er.then;if(Er&&(typeof Er=="object"||typeof Er=="function")&&typeof pr=="function")return function(){pr.apply(Er,arguments)}}function Kt(Er,pr){var gr=!1;function vr(Lt){gr||(gr=!0,Dt.reject(Er,Lt))}function yr(Lt){gr||(gr=!0,Dt.resolve(Er,Lt))}function xr(){pr(yr,vr)}var rr=Xt(xr);rr.status==="error"&&vr(rr.value)}function Xt(Er,pr){var gr={};try{gr.value=Er(pr),gr.status="success"}catch(vr){gr.status="error",gr.value=vr}return gr}Nt.resolve=Qt;function Qt(Er){return Er instanceof this?Er:Dt.resolve(new this(Bt),Er)}Nt.reject=Zt;function Zt(Er){var pr=new this(Bt);return Dt.reject(pr,Er)}Nt.all=dr;function dr(Er){var pr=this;if(Object.prototype.toString.call(Er)!=="[object Array]")return this.reject(new TypeError("must be an array"));var gr=Er.length,vr=!1;if(!gr)return this.resolve([]);for(var yr=new Array(gr),xr=0,rr=-1,Lt=new this(Bt);++rr<gr;)Ht(Er[rr],rr);return Lt;function Ht(Wt,Gt){pr.resolve(Wt).then(Yt,function(er){vr||(vr=!0,Dt.reject(Lt,er))});function Yt(er){yr[Gt]=er,++xr===gr&&!vr&&(vr=!0,Dt.resolve(Lt,yr))}}}Nt.race=cr;function cr(Er){var pr=this;if(Object.prototype.toString.call(Er)!=="[object Array]")return this.reject(new TypeError("must be an array"));var gr=Er.length,vr=!1;if(!gr)return this.resolve([]);for(var yr=-1,xr=new this(Bt);++yr<gr;)rr(Er[yr]);return xr;function rr(Lt){pr.resolve(Lt).then(function(Ht){vr||(vr=!0,Dt.resolve(xr,Ht))},function(Ht){vr||(vr=!0,Dt.reject(xr,Ht))})}}},{1:1}],3:[function(yt,Ct,$t){(function(At){typeof At.Promise!="function"&&(At.Promise=yt(2))}).call(this,typeof commonjsGlobal<"u"?commonjsGlobal:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(yt,Ct,$t){var At=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(rn){return typeof rn}:function(rn){return rn&&typeof Symbol=="function"&&rn.constructor===Symbol&&rn!==Symbol.prototype?"symbol":typeof rn};function Bt(rn,xn){if(!(rn instanceof xn))throw new TypeError("Cannot call a class as a function")}function Dt(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var Ft=Dt();function kt(){try{if(!Ft||!Ft.open)return!1;var rn=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),xn=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!rn||xn)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function Mt(rn,xn){rn=rn||[],xn=xn||{};try{return new Blob(rn,xn)}catch(vn){if(vn.name!=="TypeError")throw vn;for(var cn=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,Dn=new cn,Mn=0;Mn<rn.length;Mn+=1)Dn.append(rn[Mn]);return Dn.getBlob(xn.type)}}typeof Promise>"u"&&yt(3);var Nt=Promise;function jt(rn,xn){xn&&rn.then(function(cn){xn(null,cn)},function(cn){xn(cn)})}function zt(rn,xn,cn){typeof xn=="function"&&rn.then(xn),typeof cn=="function"&&rn.catch(cn)}function Vt(rn){return typeof rn!="string"&&(console.warn(rn+" used as a key, but it is not a string."),rn=String(rn)),rn}function Kt(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var Xt="local-forage-detect-blob-support",Qt=void 0,Zt={},dr=Object.prototype.toString,cr="readonly",Er="readwrite";function pr(rn){for(var xn=rn.length,cn=new ArrayBuffer(xn),Dn=new Uint8Array(cn),Mn=0;Mn<xn;Mn++)Dn[Mn]=rn.charCodeAt(Mn);return cn}function gr(rn){return new Nt(function(xn){var cn=rn.transaction(Xt,Er),Dn=Mt([""]);cn.objectStore(Xt).put(Dn,"key"),cn.onabort=function(Mn){Mn.preventDefault(),Mn.stopPropagation(),xn(!1)},cn.oncomplete=function(){var Mn=navigator.userAgent.match(/Chrome\/(\d+)/),vn=navigator.userAgent.match(/Edge\//);xn(vn||!Mn||parseInt(Mn[1],10)>=43)}}).catch(function(){return!1})}function vr(rn){return typeof Qt=="boolean"?Nt.resolve(Qt):gr(rn).then(function(xn){return Qt=xn,Qt})}function yr(rn){var xn=Zt[rn.name],cn={};cn.promise=new Nt(function(Dn,Mn){cn.resolve=Dn,cn.reject=Mn}),xn.deferredOperations.push(cn),xn.dbReady?xn.dbReady=xn.dbReady.then(function(){return cn.promise}):xn.dbReady=cn.promise}function xr(rn){var xn=Zt[rn.name],cn=xn.deferredOperations.pop();if(cn)return cn.resolve(),cn.promise}function rr(rn,xn){var cn=Zt[rn.name],Dn=cn.deferredOperations.pop();if(Dn)return Dn.reject(xn),Dn.promise}function Lt(rn,xn){return new Nt(function(cn,Dn){if(Zt[rn.name]=Zt[rn.name]||Cr(),rn.db)if(xn)yr(rn),rn.db.close();else return cn(rn.db);var Mn=[rn.name];xn&&Mn.push(rn.version);var vn=Ft.open.apply(Ft,Mn);xn&&(vn.onupgradeneeded=function(Ln){var zn=vn.result;try{zn.createObjectStore(rn.storeName),Ln.oldVersion<=1&&zn.createObjectStore(Xt)}catch(Hn){if(Hn.name==="ConstraintError")console.warn('The database "'+rn.name+'" has been upgraded from version '+Ln.oldVersion+" to version "+Ln.newVersion+', but the storage "'+rn.storeName+'" already exists.');else throw Hn}}),vn.onerror=function(Ln){Ln.preventDefault(),Dn(vn.error)},vn.onsuccess=function(){var Ln=vn.result;Ln.onversionchange=function(zn){zn.target.close()},cn(Ln),xr(rn)}})}function Ht(rn){return Lt(rn,!1)}function Wt(rn){return Lt(rn,!0)}function Gt(rn,xn){if(!rn.db)return!0;var cn=!rn.db.objectStoreNames.contains(rn.storeName),Dn=rn.version<rn.db.version,Mn=rn.version>rn.db.version;if(Dn&&(rn.version!==xn&&console.warn('The database "'+rn.name+`" can't be downgraded from version `+rn.db.version+" to version "+rn.version+"."),rn.version=rn.db.version),Mn||cn){if(cn){var vn=rn.db.version+1;vn>rn.version&&(rn.version=vn)}return!0}return!1}function Yt(rn){return new Nt(function(xn,cn){var Dn=new FileReader;Dn.onerror=cn,Dn.onloadend=function(Mn){var vn=btoa(Mn.target.result||"");xn({__local_forage_encoded_blob:!0,data:vn,type:rn.type})},Dn.readAsBinaryString(rn)})}function er(rn){var xn=pr(atob(rn.data));return Mt([xn],{type:rn.type})}function lr(rn){return rn&&rn.__local_forage_encoded_blob}function Jt(rn){var xn=this,cn=xn._initReady().then(function(){var Dn=Zt[xn._dbInfo.name];if(Dn&&Dn.dbReady)return Dn.dbReady});return zt(cn,rn,rn),cn}function Ut(rn){yr(rn);for(var xn=Zt[rn.name],cn=xn.forages,Dn=0;Dn<cn.length;Dn++){var Mn=cn[Dn];Mn._dbInfo.db&&(Mn._dbInfo.db.close(),Mn._dbInfo.db=null)}return rn.db=null,Ht(rn).then(function(vn){return rn.db=vn,Gt(rn)?Wt(rn):vn}).then(function(vn){rn.db=xn.db=vn;for(var Ln=0;Ln<cn.length;Ln++)cn[Ln]._dbInfo.db=vn}).catch(function(vn){throw rr(rn,vn),vn})}function ir(rn,xn,cn,Dn){Dn===void 0&&(Dn=1);try{var Mn=rn.db.transaction(rn.storeName,xn);cn(null,Mn)}catch(vn){if(Dn>0&&(!rn.db||vn.name==="InvalidStateError"||vn.name==="NotFoundError"))return Nt.resolve().then(function(){if(!rn.db||vn.name==="NotFoundError"&&!rn.db.objectStoreNames.contains(rn.storeName)&&rn.version<=rn.db.version)return rn.db&&(rn.version=rn.db.version+1),Wt(rn)}).then(function(){return Ut(rn).then(function(){ir(rn,xn,cn,Dn-1)})}).catch(cn);cn(vn)}}function Cr(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function _r(rn){var xn=this,cn={db:null};if(rn)for(var Dn in rn)cn[Dn]=rn[Dn];var Mn=Zt[cn.name];Mn||(Mn=Cr(),Zt[cn.name]=Mn),Mn.forages.push(xn),xn._initReady||(xn._initReady=xn.ready,xn.ready=Jt);var vn=[];function Ln(){return Nt.resolve()}for(var zn=0;zn<Mn.forages.length;zn++){var Hn=Mn.forages[zn];Hn!==xn&&vn.push(Hn._initReady().catch(Ln))}var Un=Mn.forages.slice(0);return Nt.all(vn).then(function(){return cn.db=Mn.db,Ht(cn)}).then(function(Kn){return cn.db=Kn,Gt(cn,xn._defaultConfig.version)?Wt(cn):Kn}).then(function(Kn){cn.db=Mn.db=Kn,xn._dbInfo=cn;for(var cu=0;cu<Un.length;cu++){var Cu=Un[cu];Cu!==xn&&(Cu._dbInfo.db=cn.db,Cu._dbInfo.version=cn.version)}})}function $r(rn,xn){var cn=this;rn=Vt(rn);var Dn=new Nt(function(Mn,vn){cn.ready().then(function(){ir(cn._dbInfo,cr,function(Ln,zn){if(Ln)return vn(Ln);try{var Hn=zn.objectStore(cn._dbInfo.storeName),Un=Hn.get(rn);Un.onsuccess=function(){var Kn=Un.result;Kn===void 0&&(Kn=null),lr(Kn)&&(Kn=er(Kn)),Mn(Kn)},Un.onerror=function(){vn(Un.error)}}catch(Kn){vn(Kn)}})}).catch(vn)});return jt(Dn,xn),Dn}function Tr(rn,xn){var cn=this,Dn=new Nt(function(Mn,vn){cn.ready().then(function(){ir(cn._dbInfo,cr,function(Ln,zn){if(Ln)return vn(Ln);try{var Hn=zn.objectStore(cn._dbInfo.storeName),Un=Hn.openCursor(),Kn=1;Un.onsuccess=function(){var cu=Un.result;if(cu){var Cu=cu.value;lr(Cu)&&(Cu=er(Cu));var Du=rn(Cu,cu.key,Kn++);Du!==void 0?Mn(Du):cu.continue()}else Mn()},Un.onerror=function(){vn(Un.error)}}catch(cu){vn(cu)}})}).catch(vn)});return jt(Dn,xn),Dn}function Dr(rn,xn,cn){var Dn=this;rn=Vt(rn);var Mn=new Nt(function(vn,Ln){var zn;Dn.ready().then(function(){return zn=Dn._dbInfo,dr.call(xn)==="[object Blob]"?vr(zn.db).then(function(Hn){return Hn?xn:Yt(xn)}):xn}).then(function(Hn){ir(Dn._dbInfo,Er,function(Un,Kn){if(Un)return Ln(Un);try{var cu=Kn.objectStore(Dn._dbInfo.storeName);Hn===null&&(Hn=void 0);var Cu=cu.put(Hn,rn);Kn.oncomplete=function(){Hn===void 0&&(Hn=null),vn(Hn)},Kn.onabort=Kn.onerror=function(){var Du=Cu.error?Cu.error:Cu.transaction.error;Ln(Du)}}catch(Du){Ln(Du)}})}).catch(Ln)});return jt(Mn,cn),Mn}function Ar(rn,xn){var cn=this;rn=Vt(rn);var Dn=new Nt(function(Mn,vn){cn.ready().then(function(){ir(cn._dbInfo,Er,function(Ln,zn){if(Ln)return vn(Ln);try{var Hn=zn.objectStore(cn._dbInfo.storeName),Un=Hn.delete(rn);zn.oncomplete=function(){Mn()},zn.onerror=function(){vn(Un.error)},zn.onabort=function(){var Kn=Un.error?Un.error:Un.transaction.error;vn(Kn)}}catch(Kn){vn(Kn)}})}).catch(vn)});return jt(Dn,xn),Dn}function Fr(rn){var xn=this,cn=new Nt(function(Dn,Mn){xn.ready().then(function(){ir(xn._dbInfo,Er,function(vn,Ln){if(vn)return Mn(vn);try{var zn=Ln.objectStore(xn._dbInfo.storeName),Hn=zn.clear();Ln.oncomplete=function(){Dn()},Ln.onabort=Ln.onerror=function(){var Un=Hn.error?Hn.error:Hn.transaction.error;Mn(Un)}}catch(Un){Mn(Un)}})}).catch(Mn)});return jt(cn,rn),cn}function Rr(rn){var xn=this,cn=new Nt(function(Dn,Mn){xn.ready().then(function(){ir(xn._dbInfo,cr,function(vn,Ln){if(vn)return Mn(vn);try{var zn=Ln.objectStore(xn._dbInfo.storeName),Hn=zn.count();Hn.onsuccess=function(){Dn(Hn.result)},Hn.onerror=function(){Mn(Hn.error)}}catch(Un){Mn(Un)}})}).catch(Mn)});return jt(cn,rn),cn}function wr(rn,xn){var cn=this,Dn=new Nt(function(Mn,vn){if(rn<0){Mn(null);return}cn.ready().then(function(){ir(cn._dbInfo,cr,function(Ln,zn){if(Ln)return vn(Ln);try{var Hn=zn.objectStore(cn._dbInfo.storeName),Un=!1,Kn=Hn.openKeyCursor();Kn.onsuccess=function(){var cu=Kn.result;if(!cu){Mn(null);return}rn===0||Un?Mn(cu.key):(Un=!0,cu.advance(rn))},Kn.onerror=function(){vn(Kn.error)}}catch(cu){vn(cu)}})}).catch(vn)});return jt(Dn,xn),Dn}function Sr(rn){var xn=this,cn=new Nt(function(Dn,Mn){xn.ready().then(function(){ir(xn._dbInfo,cr,function(vn,Ln){if(vn)return Mn(vn);try{var zn=Ln.objectStore(xn._dbInfo.storeName),Hn=zn.openKeyCursor(),Un=[];Hn.onsuccess=function(){var Kn=Hn.result;if(!Kn){Dn(Un);return}Un.push(Kn.key),Kn.continue()},Hn.onerror=function(){Mn(Hn.error)}}catch(Kn){Mn(Kn)}})}).catch(Mn)});return jt(cn,rn),cn}function Br(rn,xn){xn=Kt.apply(this,arguments);var cn=this.config();rn=typeof rn!="function"&&rn||{},rn.name||(rn.name=rn.name||cn.name,rn.storeName=rn.storeName||cn.storeName);var Dn=this,Mn;if(!rn.name)Mn=Nt.reject("Invalid arguments");else{var vn=rn.name===cn.name&&Dn._dbInfo.db,Ln=vn?Nt.resolve(Dn._dbInfo.db):Ht(rn).then(function(zn){var Hn=Zt[rn.name],Un=Hn.forages;Hn.db=zn;for(var Kn=0;Kn<Un.length;Kn++)Un[Kn]._dbInfo.db=zn;return zn});rn.storeName?Mn=Ln.then(function(zn){if(zn.objectStoreNames.contains(rn.storeName)){var Hn=zn.version+1;yr(rn);var Un=Zt[rn.name],Kn=Un.forages;zn.close();for(var cu=0;cu<Kn.length;cu++){var Cu=Kn[cu];Cu._dbInfo.db=null,Cu._dbInfo.version=Hn}var Du=new Nt(function(Fu,Ou){var Nu=Ft.open(rn.name,Hn);Nu.onerror=function(Lu){var ao=Nu.result;ao.close(),Ou(Lu)},Nu.onupgradeneeded=function(){var Lu=Nu.result;Lu.deleteObjectStore(rn.storeName)},Nu.onsuccess=function(){var Lu=Nu.result;Lu.close(),Fu(Lu)}});return Du.then(function(Fu){Un.db=Fu;for(var Ou=0;Ou<Kn.length;Ou++){var Nu=Kn[Ou];Nu._dbInfo.db=Fu,xr(Nu._dbInfo)}}).catch(function(Fu){throw(rr(rn,Fu)||Nt.resolve()).catch(function(){}),Fu})}}):Mn=Ln.then(function(zn){yr(rn);var Hn=Zt[rn.name],Un=Hn.forages;zn.close();for(var Kn=0;Kn<Un.length;Kn++){var cu=Un[Kn];cu._dbInfo.db=null}var Cu=new Nt(function(Du,Fu){var Ou=Ft.deleteDatabase(rn.name);Ou.onerror=function(){var Nu=Ou.result;Nu&&Nu.close(),Fu(Ou.error)},Ou.onblocked=function(){console.warn('dropInstance blocked for database "'+rn.name+'" until all open connections are closed')},Ou.onsuccess=function(){var Nu=Ou.result;Nu&&Nu.close(),Du(Nu)}});return Cu.then(function(Du){Hn.db=Du;for(var Fu=0;Fu<Un.length;Fu++){var Ou=Un[Fu];xr(Ou._dbInfo)}}).catch(function(Du){throw(rr(rn,Du)||Nt.resolve()).catch(function(){}),Du})})}return jt(Mn,xn),Mn}var Or={_driver:"asyncStorage",_initStorage:_r,_support:kt(),iterate:Tr,getItem:$r,setItem:Dr,removeItem:Ar,clear:Fr,length:Rr,key:wr,keys:Sr,dropInstance:Br};function Pr(){return typeof openDatabase=="function"}var Nr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Lr="~~local_forage_type~",Wr=/^~~local_forage_type~([^~]+)~/,Ur="__lfsc__:",jr=Ur.length,Kr="arbf",qr="blob",Zr="si08",dn="ui08",Xr="uic8",un="si16",Yr="si32",Gr="ur16",Jr="ui32",wn="fl32",kr="fl64",Mr=jr+Kr.length,Ir=Object.prototype.toString;function Hr(rn){var xn=rn.length*.75,cn=rn.length,Dn,Mn=0,vn,Ln,zn,Hn;rn[rn.length-1]==="="&&(xn--,rn[rn.length-2]==="="&&xn--);var Un=new ArrayBuffer(xn),Kn=new Uint8Array(Un);for(Dn=0;Dn<cn;Dn+=4)vn=Nr.indexOf(rn[Dn]),Ln=Nr.indexOf(rn[Dn+1]),zn=Nr.indexOf(rn[Dn+2]),Hn=Nr.indexOf(rn[Dn+3]),Kn[Mn++]=vn<<2|Ln>>4,Kn[Mn++]=(Ln&15)<<4|zn>>2,Kn[Mn++]=(zn&3)<<6|Hn&63;return Un}function Vr(rn){var xn=new Uint8Array(rn),cn="",Dn;for(Dn=0;Dn<xn.length;Dn+=3)cn+=Nr[xn[Dn]>>2],cn+=Nr[(xn[Dn]&3)<<4|xn[Dn+1]>>4],cn+=Nr[(xn[Dn+1]&15)<<2|xn[Dn+2]>>6],cn+=Nr[xn[Dn+2]&63];return xn.length%3===2?cn=cn.substring(0,cn.length-1)+"=":xn.length%3===1&&(cn=cn.substring(0,cn.length-2)+"=="),cn}function on(rn,xn){var cn="";if(rn&&(cn=Ir.call(rn)),rn&&(cn==="[object ArrayBuffer]"||rn.buffer&&Ir.call(rn.buffer)==="[object ArrayBuffer]")){var Dn,Mn=Ur;rn instanceof ArrayBuffer?(Dn=rn,Mn+=Kr):(Dn=rn.buffer,cn==="[object Int8Array]"?Mn+=Zr:cn==="[object Uint8Array]"?Mn+=dn:cn==="[object Uint8ClampedArray]"?Mn+=Xr:cn==="[object Int16Array]"?Mn+=un:cn==="[object Uint16Array]"?Mn+=Gr:cn==="[object Int32Array]"?Mn+=Yr:cn==="[object Uint32Array]"?Mn+=Jr:cn==="[object Float32Array]"?Mn+=wn:cn==="[object Float64Array]"?Mn+=kr:xn(new Error("Failed to get type for BinaryArray"))),xn(Mn+Vr(Dn))}else if(cn==="[object Blob]"){var vn=new FileReader;vn.onload=function(){var Ln=Lr+rn.type+"~"+Vr(this.result);xn(Ur+qr+Ln)},vn.readAsArrayBuffer(rn)}else try{xn(JSON.stringify(rn))}catch(Ln){console.error("Couldn't convert value into a JSON string: ",rn),xn(null,Ln)}}function Qr(rn){if(rn.substring(0,jr)!==Ur)return JSON.parse(rn);var xn=rn.substring(Mr),cn=rn.substring(jr,Mr),Dn;if(cn===qr&&Wr.test(xn)){var Mn=xn.match(Wr);Dn=Mn[1],xn=xn.substring(Mn[0].length)}var vn=Hr(xn);switch(cn){case Kr:return vn;case qr:return Mt([vn],{type:Dn});case Zr:return new Int8Array(vn);case dn:return new Uint8Array(vn);case Xr:return new Uint8ClampedArray(vn);case un:return new Int16Array(vn);case Gr:return new Uint16Array(vn);case Yr:return new Int32Array(vn);case Jr:return new Uint32Array(vn);case wn:return new Float32Array(vn);case kr:return new Float64Array(vn);default:throw new Error("Unkown type: "+cn)}}var hn={serialize:on,deserialize:Qr,stringToBuffer:Hr,bufferToString:Vr};function Wn(rn,xn,cn,Dn){rn.executeSql("CREATE TABLE IF NOT EXISTS "+xn.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],cn,Dn)}function _n(rn){var xn=this,cn={db:null};if(rn)for(var Dn in rn)cn[Dn]=typeof rn[Dn]!="string"?rn[Dn].toString():rn[Dn];var Mn=new Nt(function(vn,Ln){try{cn.db=openDatabase(cn.name,String(cn.version),cn.description,cn.size)}catch(zn){return Ln(zn)}cn.db.transaction(function(zn){Wn(zn,cn,function(){xn._dbInfo=cn,vn()},function(Hn,Un){Ln(Un)})},Ln)});return cn.serializer=hn,Mn}function An(rn,xn,cn,Dn,Mn,vn){rn.executeSql(cn,Dn,Mn,function(Ln,zn){zn.code===zn.SYNTAX_ERR?Ln.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[xn.storeName],function(Hn,Un){Un.rows.length?vn(Hn,zn):Wn(Hn,xn,function(){Hn.executeSql(cn,Dn,Mn,vn)},vn)},vn):vn(Ln,zn)},vn)}function Yn(rn,xn){var cn=this;rn=Vt(rn);var Dn=new Nt(function(Mn,vn){cn.ready().then(function(){var Ln=cn._dbInfo;Ln.db.transaction(function(zn){An(zn,Ln,"SELECT * FROM "+Ln.storeName+" WHERE key = ? LIMIT 1",[rn],function(Hn,Un){var Kn=Un.rows.length?Un.rows.item(0).value:null;Kn&&(Kn=Ln.serializer.deserialize(Kn)),Mn(Kn)},function(Hn,Un){vn(Un)})})}).catch(vn)});return jt(Dn,xn),Dn}function Tn(rn,xn){var cn=this,Dn=new Nt(function(Mn,vn){cn.ready().then(function(){var Ln=cn._dbInfo;Ln.db.transaction(function(zn){An(zn,Ln,"SELECT * FROM "+Ln.storeName,[],function(Hn,Un){for(var Kn=Un.rows,cu=Kn.length,Cu=0;Cu<cu;Cu++){var Du=Kn.item(Cu),Fu=Du.value;if(Fu&&(Fu=Ln.serializer.deserialize(Fu)),Fu=rn(Fu,Du.key,Cu+1),Fu!==void 0){Mn(Fu);return}}Mn()},function(Hn,Un){vn(Un)})})}).catch(vn)});return jt(Dn,xn),Dn}function Nn(rn,xn,cn,Dn){var Mn=this;rn=Vt(rn);var vn=new Nt(function(Ln,zn){Mn.ready().then(function(){xn===void 0&&(xn=null);var Hn=xn,Un=Mn._dbInfo;Un.serializer.serialize(xn,function(Kn,cu){cu?zn(cu):Un.db.transaction(function(Cu){An(Cu,Un,"INSERT OR REPLACE INTO "+Un.storeName+" (key, value) VALUES (?, ?)",[rn,Kn],function(){Ln(Hn)},function(Du,Fu){zn(Fu)})},function(Cu){if(Cu.code===Cu.QUOTA_ERR){if(Dn>0){Ln(Nn.apply(Mn,[rn,Hn,cn,Dn-1]));return}zn(Cu)}})})}).catch(zn)});return jt(vn,cn),vn}function Zn(rn,xn,cn){return Nn.apply(this,[rn,xn,cn,1])}function $n(rn,xn){var cn=this;rn=Vt(rn);var Dn=new Nt(function(Mn,vn){cn.ready().then(function(){var Ln=cn._dbInfo;Ln.db.transaction(function(zn){An(zn,Ln,"DELETE FROM "+Ln.storeName+" WHERE key = ?",[rn],function(){Mn()},function(Hn,Un){vn(Un)})})}).catch(vn)});return jt(Dn,xn),Dn}function Fn(rn){var xn=this,cn=new Nt(function(Dn,Mn){xn.ready().then(function(){var vn=xn._dbInfo;vn.db.transaction(function(Ln){An(Ln,vn,"DELETE FROM "+vn.storeName,[],function(){Dn()},function(zn,Hn){Mn(Hn)})})}).catch(Mn)});return jt(cn,rn),cn}function Gn(rn){var xn=this,cn=new Nt(function(Dn,Mn){xn.ready().then(function(){var vn=xn._dbInfo;vn.db.transaction(function(Ln){An(Ln,vn,"SELECT COUNT(key) as c FROM "+vn.storeName,[],function(zn,Hn){var Un=Hn.rows.item(0).c;Dn(Un)},function(zn,Hn){Mn(Hn)})})}).catch(Mn)});return jt(cn,rn),cn}function gn(rn,xn){var cn=this,Dn=new Nt(function(Mn,vn){cn.ready().then(function(){var Ln=cn._dbInfo;Ln.db.transaction(function(zn){An(zn,Ln,"SELECT key FROM "+Ln.storeName+" WHERE id = ? LIMIT 1",[rn+1],function(Hn,Un){var Kn=Un.rows.length?Un.rows.item(0).key:null;Mn(Kn)},function(Hn,Un){vn(Un)})})}).catch(vn)});return jt(Dn,xn),Dn}function Rn(rn){var xn=this,cn=new Nt(function(Dn,Mn){xn.ready().then(function(){var vn=xn._dbInfo;vn.db.transaction(function(Ln){An(Ln,vn,"SELECT key FROM "+vn.storeName,[],function(zn,Hn){for(var Un=[],Kn=0;Kn<Hn.rows.length;Kn++)Un.push(Hn.rows.item(Kn).key);Dn(Un)},function(zn,Hn){Mn(Hn)})})}).catch(Mn)});return jt(cn,rn),cn}function nu(rn){return new Nt(function(xn,cn){rn.transaction(function(Dn){Dn.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(Mn,vn){for(var Ln=[],zn=0;zn<vn.rows.length;zn++)Ln.push(vn.rows.item(zn).name);xn({db:rn,storeNames:Ln})},function(Mn,vn){cn(vn)})},function(Dn){cn(Dn)})})}function pn(rn,xn){xn=Kt.apply(this,arguments);var cn=this.config();rn=typeof rn!="function"&&rn||{},rn.name||(rn.name=rn.name||cn.name,rn.storeName=rn.storeName||cn.storeName);var Dn=this,Mn;return rn.name?Mn=new Nt(function(vn){var Ln;rn.name===cn.name?Ln=Dn._dbInfo.db:Ln=openDatabase(rn.name,"","",0),rn.storeName?vn({db:Ln,storeNames:[rn.storeName]}):vn(nu(Ln))}).then(function(vn){return new Nt(function(Ln,zn){vn.db.transaction(function(Hn){function Un(Du){return new Nt(function(Fu,Ou){Hn.executeSql("DROP TABLE IF EXISTS "+Du,[],function(){Fu()},function(Nu,Lu){Ou(Lu)})})}for(var Kn=[],cu=0,Cu=vn.storeNames.length;cu<Cu;cu++)Kn.push(Un(vn.storeNames[cu]));Nt.all(Kn).then(function(){Ln()}).catch(function(Du){zn(Du)})},function(Hn){zn(Hn)})})}):Mn=Nt.reject("Invalid arguments"),jt(Mn,xn),Mn}var yn={_driver:"webSQLStorage",_initStorage:_n,_support:Pr(),iterate:Tn,getItem:Yn,setItem:Zn,removeItem:$n,clear:Fn,length:Gn,key:gn,keys:Rn,dropInstance:pn};function jn(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function Cn(rn,xn){var cn=rn.name+"/";return rn.storeName!==xn.storeName&&(cn+=rn.storeName+"/"),cn}function On(){var rn="_localforage_support_test";try{return localStorage.setItem(rn,!0),localStorage.removeItem(rn),!1}catch{return!0}}function au(){return!On()||localStorage.length>0}function In(rn){var xn=this,cn={};if(rn)for(var Dn in rn)cn[Dn]=rn[Dn];return cn.keyPrefix=Cn(rn,xn._defaultConfig),au()?(xn._dbInfo=cn,cn.serializer=hn,Nt.resolve()):Nt.reject()}function Bn(rn){var xn=this,cn=xn.ready().then(function(){for(var Dn=xn._dbInfo.keyPrefix,Mn=localStorage.length-1;Mn>=0;Mn--){var vn=localStorage.key(Mn);vn.indexOf(Dn)===0&&localStorage.removeItem(vn)}});return jt(cn,rn),cn}function Vn(rn,xn){var cn=this;rn=Vt(rn);var Dn=cn.ready().then(function(){var Mn=cn._dbInfo,vn=localStorage.getItem(Mn.keyPrefix+rn);return vn&&(vn=Mn.serializer.deserialize(vn)),vn});return jt(Dn,xn),Dn}function En(rn,xn){var cn=this,Dn=cn.ready().then(function(){for(var Mn=cn._dbInfo,vn=Mn.keyPrefix,Ln=vn.length,zn=localStorage.length,Hn=1,Un=0;Un<zn;Un++){var Kn=localStorage.key(Un);if(Kn.indexOf(vn)===0){var cu=localStorage.getItem(Kn);if(cu&&(cu=Mn.serializer.deserialize(cu)),cu=rn(cu,Kn.substring(Ln),Hn++),cu!==void 0)return cu}}});return jt(Dn,xn),Dn}function Sn(rn,xn){var cn=this,Dn=cn.ready().then(function(){var Mn=cn._dbInfo,vn;try{vn=localStorage.key(rn)}catch{vn=null}return vn&&(vn=vn.substring(Mn.keyPrefix.length)),vn});return jt(Dn,xn),Dn}function Xn(rn){var xn=this,cn=xn.ready().then(function(){for(var Dn=xn._dbInfo,Mn=localStorage.length,vn=[],Ln=0;Ln<Mn;Ln++){var zn=localStorage.key(Ln);zn.indexOf(Dn.keyPrefix)===0&&vn.push(zn.substring(Dn.keyPrefix.length))}return vn});return jt(cn,rn),cn}function uu(rn){var xn=this,cn=xn.keys().then(function(Dn){return Dn.length});return jt(cn,rn),cn}function Eu(rn,xn){var cn=this;rn=Vt(rn);var Dn=cn.ready().then(function(){var Mn=cn._dbInfo;localStorage.removeItem(Mn.keyPrefix+rn)});return jt(Dn,xn),Dn}function pu(rn,xn,cn){var Dn=this;rn=Vt(rn);var Mn=Dn.ready().then(function(){xn===void 0&&(xn=null);var vn=xn;return new Nt(function(Ln,zn){var Hn=Dn._dbInfo;Hn.serializer.serialize(xn,function(Un,Kn){if(Kn)zn(Kn);else try{localStorage.setItem(Hn.keyPrefix+rn,Un),Ln(vn)}catch(cu){(cu.name==="QuotaExceededError"||cu.name==="NS_ERROR_DOM_QUOTA_REACHED")&&zn(cu),zn(cu)}})})});return jt(Mn,cn),Mn}function Qn(rn,xn){if(xn=Kt.apply(this,arguments),rn=typeof rn!="function"&&rn||{},!rn.name){var cn=this.config();rn.name=rn.name||cn.name,rn.storeName=rn.storeName||cn.storeName}var Dn=this,Mn;return rn.name?Mn=new Nt(function(vn){rn.storeName?vn(Cn(rn,Dn._defaultConfig)):vn(rn.name+"/")}).then(function(vn){for(var Ln=localStorage.length-1;Ln>=0;Ln--){var zn=localStorage.key(Ln);zn.indexOf(vn)===0&&localStorage.removeItem(zn)}}):Mn=Nt.reject("Invalid arguments"),jt(Mn,xn),Mn}var Jn={_driver:"localStorageWrapper",_initStorage:In,_support:jn(),iterate:En,getItem:Vn,setItem:pu,removeItem:Eu,clear:Bn,length:uu,key:Sn,keys:Xn,dropInstance:Qn},ou=function(xn,cn){return xn===cn||typeof xn=="number"&&typeof cn=="number"&&isNaN(xn)&&isNaN(cn)},mu=function(xn,cn){for(var Dn=xn.length,Mn=0;Mn<Dn;){if(ou(xn[Mn],cn))return!0;Mn++}return!1},xu=Array.isArray||function(rn){return Object.prototype.toString.call(rn)==="[object Array]"},_u={},$u={},Au={INDEXEDDB:Or,WEBSQL:yn,LOCALSTORAGE:Jn},Bu=[Au.INDEXEDDB._driver,Au.WEBSQL._driver,Au.LOCALSTORAGE._driver],Su=["dropInstance"],Ru=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(Su),lu={description:"",driver:Bu.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function du(rn,xn){rn[xn]=function(){var cn=arguments;return rn.ready().then(function(){return rn[xn].apply(rn,cn)})}}function fu(){for(var rn=1;rn<arguments.length;rn++){var xn=arguments[rn];if(xn)for(var cn in xn)xn.hasOwnProperty(cn)&&(xu(xn[cn])?arguments[0][cn]=xn[cn].slice():arguments[0][cn]=xn[cn])}return arguments[0]}var Tu=function(){function rn(xn){Bt(this,rn);for(var cn in Au)if(Au.hasOwnProperty(cn)){var Dn=Au[cn],Mn=Dn._driver;this[cn]=Mn,_u[Mn]||this.defineDriver(Dn)}this._defaultConfig=fu({},lu),this._config=fu({},this._defaultConfig,xn),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return rn.prototype.config=function(cn){if((typeof cn>"u"?"undefined":At(cn))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var Dn in cn){if(Dn==="storeName"&&(cn[Dn]=cn[Dn].replace(/\W/g,"_")),Dn==="version"&&typeof cn[Dn]!="number")return new Error("Database version must be a number.");this._config[Dn]=cn[Dn]}return"driver"in cn&&cn.driver?this.setDriver(this._config.driver):!0}else return typeof cn=="string"?this._config[cn]:this._config},rn.prototype.defineDriver=function(cn,Dn,Mn){var vn=new Nt(function(Ln,zn){try{var Hn=cn._driver,Un=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!cn._driver){zn(Un);return}for(var Kn=Ru.concat("_initStorage"),cu=0,Cu=Kn.length;cu<Cu;cu++){var Du=Kn[cu],Fu=!mu(Su,Du);if((Fu||cn[Du])&&typeof cn[Du]!="function"){zn(Un);return}}var Ou=function(){for(var ao=function(Vu){return function(){var Eo=new Error("Method "+Vu+" is not implemented by the current driver"),Qu=Nt.reject(Eo);return jt(Qu,arguments[arguments.length-1]),Qu}},bu=0,Iu=Su.length;bu<Iu;bu++){var Hu=Su[bu];cn[Hu]||(cn[Hu]=ao(Hu))}};Ou();var Nu=function(ao){_u[Hn]&&console.info("Redefining LocalForage driver: "+Hn),_u[Hn]=cn,$u[Hn]=ao,Ln()};"_support"in cn?cn._support&&typeof cn._support=="function"?cn._support().then(Nu,zn):Nu(!!cn._support):Nu(!0)}catch(Lu){zn(Lu)}});return zt(vn,Dn,Mn),vn},rn.prototype.driver=function(){return this._driver||null},rn.prototype.getDriver=function(cn,Dn,Mn){var vn=_u[cn]?Nt.resolve(_u[cn]):Nt.reject(new Error("Driver not found."));return zt(vn,Dn,Mn),vn},rn.prototype.getSerializer=function(cn){var Dn=Nt.resolve(hn);return zt(Dn,cn),Dn},rn.prototype.ready=function(cn){var Dn=this,Mn=Dn._driverSet.then(function(){return Dn._ready===null&&(Dn._ready=Dn._initDriver()),Dn._ready});return zt(Mn,cn,cn),Mn},rn.prototype.setDriver=function(cn,Dn,Mn){var vn=this;xu(cn)||(cn=[cn]);var Ln=this._getSupportedDrivers(cn);function zn(){vn._config.driver=vn.driver()}function Hn(cu){return vn._extend(cu),zn(),vn._ready=vn._initStorage(vn._config),vn._ready}function Un(cu){return function(){var Cu=0;function Du(){for(;Cu<cu.length;){var Fu=cu[Cu];return Cu++,vn._dbInfo=null,vn._ready=null,vn.getDriver(Fu).then(Hn).catch(Du)}zn();var Ou=new Error("No available storage method found.");return vn._driverSet=Nt.reject(Ou),vn._driverSet}return Du()}}var Kn=this._driverSet!==null?this._driverSet.catch(function(){return Nt.resolve()}):Nt.resolve();return this._driverSet=Kn.then(function(){var cu=Ln[0];return vn._dbInfo=null,vn._ready=null,vn.getDriver(cu).then(function(Cu){vn._driver=Cu._driver,zn(),vn._wrapLibraryMethodsWithReady(),vn._initDriver=Un(Ln)})}).catch(function(){zn();var cu=new Error("No available storage method found.");return vn._driverSet=Nt.reject(cu),vn._driverSet}),zt(this._driverSet,Dn,Mn),this._driverSet},rn.prototype.supports=function(cn){return!!$u[cn]},rn.prototype._extend=function(cn){fu(this,cn)},rn.prototype._getSupportedDrivers=function(cn){for(var Dn=[],Mn=0,vn=cn.length;Mn<vn;Mn++){var Ln=cn[Mn];this.supports(Ln)&&Dn.push(Ln)}return Dn},rn.prototype._wrapLibraryMethodsWithReady=function(){for(var cn=0,Dn=Ru.length;cn<Dn;cn++)du(this,Ru[cn])},rn.prototype.createInstance=function(cn){return new rn(cn)},rn}(),Zu=new Tu;Ct.exports=Zu},{3:3}]},{},[4])(4)})})(localforage$1);var localforageExports=localforage$1.exports;const localforage=getDefaultExportFromCjs$1(localforageExports);var getRandomAvatar=function ht(Et){return Et===void 0&&(Et={}),createAvatar(identicon,Et).toDataUriSync()};api.clear=function(){var ht=api.get();for(var Et in ht)ht.hasOwn(Et)&&api.remove(Et)};api.set;api.get;api.remove;api.clear;var saveSvgAsPng=function ht(Et,yt){yt===void 0&&(yt=Date.now().toString()),saveSvgAsPng$1.saveSvgAsPng(Et,yt)},saveAsSvg=function ht(Et,yt){yt===void 0&&(yt=Date.now().toString());var Ct=new XMLSerializer().serializeToString(Et),$t=new Blob([Ct],{type:"image/svg+xml;charset=utf-8"}),At=URL.createObjectURL($t),Bt=document.createElement("a");Bt.setAttribute("download",yt+".svg"),Bt.setAttribute("href",At),Bt.setAttribute("target","_blank"),Bt.click()},numFormatter=function ht(Et,yt){return yt===void 0&&(yt=","),Et.toString().replace(/\d+/,function(Ct){return Ct.replace(/(\d)(?=(\d{3})+$)/g,function($t){return $t+yt})})},uuid=function ht(){var Et=URL.createObjectURL(new Blob),yt=Et.toString();return URL.revokeObjectURL(Et),yt.substring(yt.lastIndexOf("/")+1)},LocalStorage=function(){function ht(){}return ht.setItem=function(yt,Ct){typeof window<"u"&&localStorage.setItem(yt,JSON.stringify(Ct))},ht.getItem=function(yt){if(typeof window>"u")return null;var Ct=localStorage.getItem(yt);if(typeof Ct!="string")return null;try{return JSON.parse(Ct)}catch{return Ct}},ht.removeItem=function(yt){typeof window<"u"&&localStorage.removeItem(yt)},ht}(),getSubStr=function ht(Et,yt){if(yt===void 0&&(yt=[8,8]),!Et)return"";if(yt.length<1||(yt.length===1&&yt.push(yt[0]),Et.length<=yt[0]+yt[1]))return Et;var Ct=Et.substr(0,yt[0]),$t=Et.substr(Et.length-yt[1],yt[1]);return Ct+"..."+$t},isObject$e=function ht(Et){return Et!==null&&typeof Et=="object"},__defProp$1=Object.defineProperty,__getOwnPropDesc$1=Object.getOwnPropertyDescriptor,__decorateClass$1=(ht,Et,yt,Ct)=>{for(var $t=__getOwnPropDesc$1(Et,yt),At=ht.length-1,Bt;At>=0;At--)(Bt=ht[At])&&($t=Bt(Et,yt,$t)||$t);return $t&&__defProp$1(Et,yt,$t),$t};class AccountStore{constructor(){this.accountInfo=null,this.status="idle",this.setAccountInfo=Et=>{this.accountInfo=Et,Et?(LocalStorage.setItem(USER_INFO,Et),LocalStorage.setItem(BLOCKSEC_TOKEN,Et.token)):(LocalStorage.removeItem(USER_INFO),LocalStorage.removeItem(BLOCKSEC_TOKEN))},this.setStatus=Et=>{this.status=Et},this.getAccountInfo=async()=>{this.setStatus("loading");const Et=LocalStorage.getItem(BLOCKSEC_TOKEN);if(Et){const{success:yt,data:Ct}=await commonApi.getAccountInfo();yt&&this.setAccountInfo({...Ct.user,token:Et})}else this.setAccountInfo(null);this.setStatus("completed")},makeAutoObservable(this)}get token(){var Et;return(Et=this.accountInfo)==null?void 0:Et.token}get authWays(){var Et;return(Et=this.accountInfo)!=null&&Et.authenticatorEnabled?[AuthWay.AUTHENTICATOR,AuthWay.EMAIL]:[AuthWay.EMAIL]}}__decorateClass$1([computed],AccountStore.prototype,"token");__decorateClass$1([computed],AccountStore.prototype,"authWays");const accountStore=new AccountStore,token="%[a-f0-9]{2}",singleMatcher=new RegExp("("+token+")|([^%]+?)","gi"),multiMatcher=new RegExp("("+token+")+","gi");function decodeComponents(ht,Et){try{return[decodeURIComponent(ht.join(""))]}catch{}if(ht.length===1)return ht;Et=Et||1;const yt=ht.slice(0,Et),Ct=ht.slice(Et);return Array.prototype.concat.call([],decodeComponents(yt),decodeComponents(Ct))}function decode$3(ht){try{return decodeURIComponent(ht)}catch{let Et=ht.match(singleMatcher)||[];for(let yt=1;yt<Et.length;yt++)ht=decodeComponents(Et,yt).join(""),Et=ht.match(singleMatcher)||[];return ht}}function customDecodeURIComponent(ht){const Et={"%FE%FF":"��","%FF%FE":"��"};let yt=multiMatcher.exec(ht);for(;yt;){try{Et[yt[0]]=decodeURIComponent(yt[0])}catch{const $t=decode$3(yt[0]);$t!==yt[0]&&(Et[yt[0]]=$t)}yt=multiMatcher.exec(ht)}Et["%C2"]="�";const Ct=Object.keys(Et);for(const $t of Ct)ht=ht.replace(new RegExp($t,"g"),Et[$t]);return ht}function decodeUriComponent(ht){if(typeof ht!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof ht+"`");try{return decodeURIComponent(ht)}catch{return customDecodeURIComponent(ht)}}function splitOnFirst(ht,Et){if(!(typeof ht=="string"&&typeof Et=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(ht===""||Et==="")return[];const yt=ht.indexOf(Et);return yt===-1?[]:[ht.slice(0,yt),ht.slice(yt+Et.length)]}function includeKeys(ht,Et){const yt={};if(Array.isArray(Et))for(const Ct of Et){const $t=Object.getOwnPropertyDescriptor(ht,Ct);$t!=null&&$t.enumerable&&Object.defineProperty(yt,Ct,$t)}else for(const Ct of Reflect.ownKeys(ht)){const $t=Object.getOwnPropertyDescriptor(ht,Ct);if($t.enumerable){const At=ht[Ct];Et(Ct,At,ht)&&Object.defineProperty(yt,Ct,$t)}}return yt}const isNullOrUndefined$3=ht=>ht==null,strictUriEncode=ht=>encodeURIComponent(ht).replace(/[!'()*]/g,Et=>`%${Et.charCodeAt(0).toString(16).toUpperCase()}`),encodeFragmentIdentifier=Symbol("encodeFragmentIdentifier");function encoderForArrayFormat(ht){switch(ht.arrayFormat){case"index":return Et=>(yt,Ct)=>{const $t=yt.length;return Ct===void 0||ht.skipNull&&Ct===null||ht.skipEmptyString&&Ct===""?yt:Ct===null?[...yt,[encode$2(Et,ht),"[",$t,"]"].join("")]:[...yt,[encode$2(Et,ht),"[",encode$2($t,ht),"]=",encode$2(Ct,ht)].join("")]};case"bracket":return Et=>(yt,Ct)=>Ct===void 0||ht.skipNull&&Ct===null||ht.skipEmptyString&&Ct===""?yt:Ct===null?[...yt,[encode$2(Et,ht),"[]"].join("")]:[...yt,[encode$2(Et,ht),"[]=",encode$2(Ct,ht)].join("")];case"colon-list-separator":return Et=>(yt,Ct)=>Ct===void 0||ht.skipNull&&Ct===null||ht.skipEmptyString&&Ct===""?yt:Ct===null?[...yt,[encode$2(Et,ht),":list="].join("")]:[...yt,[encode$2(Et,ht),":list=",encode$2(Ct,ht)].join("")];case"comma":case"separator":case"bracket-separator":{const Et=ht.arrayFormat==="bracket-separator"?"[]=":"=";return yt=>(Ct,$t)=>$t===void 0||ht.skipNull&&$t===null||ht.skipEmptyString&&$t===""?Ct:($t=$t===null?"":$t,Ct.length===0?[[encode$2(yt,ht),Et,encode$2($t,ht)].join("")]:[[Ct,encode$2($t,ht)].join(ht.arrayFormatSeparator)])}default:return Et=>(yt,Ct)=>Ct===void 0||ht.skipNull&&Ct===null||ht.skipEmptyString&&Ct===""?yt:Ct===null?[...yt,encode$2(Et,ht)]:[...yt,[encode$2(Et,ht),"=",encode$2(Ct,ht)].join("")]}}function parserForArrayFormat(ht){let Et;switch(ht.arrayFormat){case"index":return(yt,Ct,$t)=>{if(Et=/\[(\d*)]$/.exec(yt),yt=yt.replace(/\[\d*]$/,""),!Et){$t[yt]=Ct;return}$t[yt]===void 0&&($t[yt]={}),$t[yt][Et[1]]=Ct};case"bracket":return(yt,Ct,$t)=>{if(Et=/(\[])$/.exec(yt),yt=yt.replace(/\[]$/,""),!Et){$t[yt]=Ct;return}if($t[yt]===void 0){$t[yt]=[Ct];return}$t[yt]=[...$t[yt],Ct]};case"colon-list-separator":return(yt,Ct,$t)=>{if(Et=/(:list)$/.exec(yt),yt=yt.replace(/:list$/,""),!Et){$t[yt]=Ct;return}if($t[yt]===void 0){$t[yt]=[Ct];return}$t[yt]=[...$t[yt],Ct]};case"comma":case"separator":return(yt,Ct,$t)=>{const At=typeof Ct=="string"&&Ct.includes(ht.arrayFormatSeparator),Bt=typeof Ct=="string"&&!At&&decode$2(Ct,ht).includes(ht.arrayFormatSeparator);Ct=Bt?decode$2(Ct,ht):Ct;const Dt=At||Bt?Ct.split(ht.arrayFormatSeparator).map(Ft=>decode$2(Ft,ht)):Ct===null?Ct:decode$2(Ct,ht);$t[yt]=Dt};case"bracket-separator":return(yt,Ct,$t)=>{const At=/(\[])$/.test(yt);if(yt=yt.replace(/\[]$/,""),!At){$t[yt]=Ct&&decode$2(Ct,ht);return}const Bt=Ct===null?[]:Ct.split(ht.arrayFormatSeparator).map(Dt=>decode$2(Dt,ht));if($t[yt]===void 0){$t[yt]=Bt;return}$t[yt]=[...$t[yt],...Bt]};default:return(yt,Ct,$t)=>{if($t[yt]===void 0){$t[yt]=Ct;return}$t[yt]=[...[$t[yt]].flat(),Ct]}}}function validateArrayFormatSeparator(ht){if(typeof ht!="string"||ht.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function encode$2(ht,Et){return Et.encode?Et.strict?strictUriEncode(ht):encodeURIComponent(ht):ht}function decode$2(ht,Et){return Et.decode?decodeUriComponent(ht):ht}function keysSorter(ht){return Array.isArray(ht)?ht.sort():typeof ht=="object"?keysSorter(Object.keys(ht)).sort((Et,yt)=>Number(Et)-Number(yt)).map(Et=>ht[Et]):ht}function removeHash(ht){const Et=ht.indexOf("#");return Et!==-1&&(ht=ht.slice(0,Et)),ht}function getHash(ht){let Et="";const yt=ht.indexOf("#");return yt!==-1&&(Et=ht.slice(yt)),Et}function parseValue(ht,Et){return Et.parseNumbers&&!Number.isNaN(Number(ht))&&typeof ht=="string"&&ht.trim()!==""?ht=Number(ht):Et.parseBooleans&&ht!==null&&(ht.toLowerCase()==="true"||ht.toLowerCase()==="false")&&(ht=ht.toLowerCase()==="true"),ht}function extract(ht){ht=removeHash(ht);const Et=ht.indexOf("?");return Et===-1?"":ht.slice(Et+1)}function parse$2(ht,Et){Et={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...Et},validateArrayFormatSeparator(Et.arrayFormatSeparator);const yt=parserForArrayFormat(Et),Ct=Object.create(null);if(typeof ht!="string"||(ht=ht.trim().replace(/^[?#&]/,""),!ht))return Ct;for(const $t of ht.split("&")){if($t==="")continue;const At=Et.decode?$t.replace(/\+/g," "):$t;let[Bt,Dt]=splitOnFirst(At,"=");Bt===void 0&&(Bt=At),Dt=Dt===void 0?null:["comma","separator","bracket-separator"].includes(Et.arrayFormat)?Dt:decode$2(Dt,Et),yt(decode$2(Bt,Et),Dt,Ct)}for(const[$t,At]of Object.entries(Ct))if(typeof At=="object"&&At!==null)for(const[Bt,Dt]of Object.entries(At))At[Bt]=parseValue(Dt,Et);else Ct[$t]=parseValue(At,Et);return Et.sort===!1?Ct:(Et.sort===!0?Object.keys(Ct).sort():Object.keys(Ct).sort(Et.sort)).reduce(($t,At)=>{const Bt=Ct[At];return $t[At]=Bt&&typeof Bt=="object"&&!Array.isArray(Bt)?keysSorter(Bt):Bt,$t},Object.create(null))}function stringify$5(ht,Et){if(!ht)return"";Et={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...Et},validateArrayFormatSeparator(Et.arrayFormatSeparator);const yt=Bt=>Et.skipNull&&isNullOrUndefined$3(ht[Bt])||Et.skipEmptyString&&ht[Bt]==="",Ct=encoderForArrayFormat(Et),$t={};for(const[Bt,Dt]of Object.entries(ht))yt(Bt)||($t[Bt]=Dt);const At=Object.keys($t);return Et.sort!==!1&&At.sort(Et.sort),At.map(Bt=>{const Dt=ht[Bt];return Dt===void 0?"":Dt===null?encode$2(Bt,Et):Array.isArray(Dt)?Dt.length===0&&Et.arrayFormat==="bracket-separator"?encode$2(Bt,Et)+"[]":Dt.reduce(Ct(Bt),[]).join("&"):encode$2(Bt,Et)+"="+encode$2(Dt,Et)}).filter(Bt=>Bt.length>0).join("&")}function parseUrl(ht,Et){var $t;Et={decode:!0,...Et};let[yt,Ct]=splitOnFirst(ht,"#");return yt===void 0&&(yt=ht),{url:(($t=yt==null?void 0:yt.split("?"))==null?void 0:$t[0])??"",query:parse$2(extract(ht),Et),...Et&&Et.parseFragmentIdentifier&&Ct?{fragmentIdentifier:decode$2(Ct,Et)}:{}}}function stringifyUrl(ht,Et){Et={encode:!0,strict:!0,[encodeFragmentIdentifier]:!0,...Et};const yt=removeHash(ht.url).split("?")[0]||"",Ct=extract(ht.url),$t={...parse$2(Ct,{sort:!1}),...ht.query};let At=stringify$5($t,Et);At&&(At=`?${At}`);let Bt=getHash(ht.url);if(ht.fragmentIdentifier){const Dt=new URL(yt);Dt.hash=ht.fragmentIdentifier,Bt=Et[encodeFragmentIdentifier]?Dt.hash:`#${ht.fragmentIdentifier}`}return`${yt}${At}${Bt}`}function pick(ht,Et,yt){yt={parseFragmentIdentifier:!0,[encodeFragmentIdentifier]:!1,...yt};const{url:Ct,query:$t,fragmentIdentifier:At}=parseUrl(ht,yt);return stringifyUrl({url:Ct,query:includeKeys($t,Et),fragmentIdentifier:At},yt)}function exclude(ht,Et,yt){const Ct=Array.isArray(Et)?$t=>!Et.includes($t):($t,At)=>!Et($t,At);return pick(ht,Ct,yt)}const queryString=Object.freeze(Object.defineProperty({__proto__:null,exclude,extract,parse:parse$2,parseUrl,pick,stringify:stringify$5,stringifyUrl},Symbol.toStringTag,{value:"Module"})),removeQueryParam=(ht,Et)=>{const yt=queryString.parseUrl(ht);return delete yt.query[Et],queryString.stringifyUrl(yt,{skipEmptyString:!0})},withReferer=ht=>`${ht}?referer=${encodeURIComponent(removeQueryParam(window.location.href,"token"))}`,version$1="6.13.1";function checkType(ht,Et,yt){const Ct=Et.split("|").map(At=>At.trim());for(let At=0;At<Ct.length;At++)switch(Et){case"any":return;case"bigint":case"boolean":case"number":case"string":if(typeof ht===Et)return}const $t=new Error(`invalid value for type ${Et}`);throw $t.code="INVALID_ARGUMENT",$t.argument=`value.${yt}`,$t.value=ht,$t}async function resolveProperties(ht){const Et=Object.keys(ht);return(await Promise.all(Et.map(Ct=>Promise.resolve(ht[Ct])))).reduce((Ct,$t,At)=>(Ct[Et[At]]=$t,Ct),{})}function defineProperties$4(ht,Et,yt){for(let Ct in Et){let $t=Et[Ct];const At=yt?yt[Ct]:null;At&&checkType($t,At,Ct),Object.defineProperty(ht,Ct,{enumerable:!0,value:$t,writable:!1})}}function stringify$4(ht){if(ht==null)return"null";if(Array.isArray(ht))return"[ "+ht.map(stringify$4).join(", ")+" ]";if(ht instanceof Uint8Array){const Et="0123456789abcdef";let yt="0x";for(let Ct=0;Ct<ht.length;Ct++)yt+=Et[ht[Ct]>>4],yt+=Et[ht[Ct]&15];return yt}if(typeof ht=="object"&&typeof ht.toJSON=="function")return stringify$4(ht.toJSON());switch(typeof ht){case"boolean":case"symbol":return ht.toString();case"bigint":return BigInt(ht).toString();case"number":return ht.toString();case"string":return JSON.stringify(ht);case"object":{const Et=Object.keys(ht);return Et.sort(),"{ "+Et.map(yt=>`${stringify$4(yt)}: ${stringify$4(ht[yt])}`).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function isError(ht,Et){return ht&&ht.code===Et}function isCallException(ht){return isError(ht,"CALL_EXCEPTION")}function makeError(ht,Et,yt){let Ct=ht;{const At=[];if(yt){if("message"in yt||"code"in yt||"name"in yt)throw new Error(`value will overwrite populated values: ${stringify$4(yt)}`);for(const Bt in yt){if(Bt==="shortMessage")continue;const Dt=yt[Bt];At.push(Bt+"="+stringify$4(Dt))}}At.push(`code=${Et}`),At.push(`version=${version$1}`),At.length&&(ht+=" ("+At.join(", ")+")")}let $t;switch(Et){case"INVALID_ARGUMENT":$t=new TypeError(ht);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":$t=new RangeError(ht);break;default:$t=new Error(ht)}return defineProperties$4($t,{code:Et}),yt&&Object.assign($t,yt),$t.shortMessage==null&&defineProperties$4($t,{shortMessage:Ct}),$t}function assert(ht,Et,yt,Ct){if(!ht)throw makeError(Et,yt,Ct)}function assertArgument(ht,Et,yt,Ct){assert(ht,Et,"INVALID_ARGUMENT",{argument:yt,value:Ct})}function assertArgumentCount(ht,Et,yt){yt==null&&(yt=""),yt&&(yt=": "+yt),assert(ht>=Et,"missing arguemnt"+yt,"MISSING_ARGUMENT",{count:ht,expectedCount:Et}),assert(ht<=Et,"too many arguments"+yt,"UNEXPECTED_ARGUMENT",{count:ht,expectedCount:Et})}const _normalizeForms=["NFD","NFC","NFKD","NFKC"].reduce((ht,Et)=>{try{if("test".normalize(Et)!=="test")throw new Error("bad");if(Et==="NFD"&&"é".normalize("NFD")!=="é")throw new Error("broken");ht.push(Et)}catch{}return ht},[]);function assertNormalize(ht){assert(_normalizeForms.indexOf(ht)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:ht}})}function assertPrivate(ht,Et,yt){if(yt==null&&(yt=""),ht!==Et){let Ct=yt,$t="new";yt&&(Ct+=".",$t+=" "+yt),assert(!1,`private constructor; use ${Ct}from* methods`,"UNSUPPORTED_OPERATION",{operation:$t})}}function _getBytes(ht,Et,yt){if(ht instanceof Uint8Array)return yt?new Uint8Array(ht):ht;if(typeof ht=="string"&&ht.match(/^0x(?:[0-9a-f][0-9a-f])*$/i)){const Ct=new Uint8Array((ht.length-2)/2);let $t=2;for(let At=0;At<Ct.length;At++)Ct[At]=parseInt(ht.substring($t,$t+2),16),$t+=2;return Ct}assertArgument(!1,"invalid BytesLike value",Et||"value",ht)}function getBytes(ht,Et){return _getBytes(ht,Et,!1)}function getBytesCopy(ht,Et){return _getBytes(ht,Et,!0)}function isHexString(ht,Et){return!(typeof ht!="string"||!ht.match(/^0x[0-9A-Fa-f]*$/)||typeof Et=="number"&&ht.length!==2+2*Et||Et===!0&&ht.length%2!==0)}function isBytesLike(ht){return isHexString(ht,!0)||ht instanceof Uint8Array}const HexCharacters="0123456789abcdef";function hexlify(ht){const Et=getBytes(ht);let yt="0x";for(let Ct=0;Ct<Et.length;Ct++){const $t=Et[Ct];yt+=HexCharacters[($t&240)>>4]+HexCharacters[$t&15]}return yt}function concat$6(ht){return"0x"+ht.map(Et=>hexlify(Et).substring(2)).join("")}function dataLength(ht){return isHexString(ht,!0)?(ht.length-2)/2:getBytes(ht).length}function dataSlice(ht,Et,yt){const Ct=getBytes(ht);return yt!=null&&yt>Ct.length&&assert(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:Ct,length:Ct.length,offset:yt}),hexlify(Ct.slice(Et??0,yt??Ct.length))}function stripZerosLeft(ht){let Et=hexlify(ht).substring(2);for(;Et.startsWith("00");)Et=Et.substring(2);return"0x"+Et}function zeroPad(ht,Et,yt){const Ct=getBytes(ht);assert(Et>=Ct.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(Ct),length:Et,offset:Et+1});const $t=new Uint8Array(Et);return $t.fill(0),yt?$t.set(Ct,Et-Ct.length):$t.set(Ct,0),hexlify($t)}function zeroPadValue(ht,Et){return zeroPad(ht,Et,!0)}function zeroPadBytes(ht,Et){return zeroPad(ht,Et,!1)}const BN_0$3=BigInt(0),BN_1$2=BigInt(1),maxValue=9007199254740991;function fromTwos(ht,Et){const yt=getUint(ht,"value"),Ct=BigInt(getNumber(Et,"width"));if(assert(yt>>Ct===BN_0$3,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:ht}),yt>>Ct-BN_1$2){const $t=(BN_1$2<<Ct)-BN_1$2;return-((~yt&$t)+BN_1$2)}return yt}function toTwos(ht,Et){let yt=getBigInt(ht,"value");const Ct=BigInt(getNumber(Et,"width")),$t=BN_1$2<<Ct-BN_1$2;if(yt<BN_0$3){yt=-yt,assert(yt<=$t,"too low","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:ht});const At=(BN_1$2<<Ct)-BN_1$2;return(~yt&At)+BN_1$2}else assert(yt<$t,"too high","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:ht});return yt}function mask(ht,Et){const yt=getUint(ht,"value"),Ct=BigInt(getNumber(Et,"bits"));return yt&(BN_1$2<<Ct)-BN_1$2}function getBigInt(ht,Et){switch(typeof ht){case"bigint":return ht;case"number":return assertArgument(Number.isInteger(ht),"underflow",Et||"value",ht),assertArgument(ht>=-maxValue&&ht<=maxValue,"overflow",Et||"value",ht),BigInt(ht);case"string":try{if(ht==="")throw new Error("empty string");return ht[0]==="-"&&ht[1]!=="-"?-BigInt(ht.substring(1)):BigInt(ht)}catch(yt){assertArgument(!1,`invalid BigNumberish string: ${yt.message}`,Et||"value",ht)}}assertArgument(!1,"invalid BigNumberish value",Et||"value",ht)}function getUint(ht,Et){const yt=getBigInt(ht,Et);return assert(yt>=BN_0$3,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:ht}),yt}const Nibbles="0123456789abcdef";function toBigInt(ht){if(ht instanceof Uint8Array){let Et="0x0";for(const yt of ht)Et+=Nibbles[yt>>4],Et+=Nibbles[yt&15];return BigInt(Et)}return getBigInt(ht)}function getNumber(ht,Et){switch(typeof ht){case"bigint":return assertArgument(ht>=-maxValue&&ht<=maxValue,"overflow",Et||"value",ht),Number(ht);case"number":return assertArgument(Number.isInteger(ht),"underflow",Et||"value",ht),assertArgument(ht>=-maxValue&&ht<=maxValue,"overflow",Et||"value",ht),ht;case"string":try{if(ht==="")throw new Error("empty string");return getNumber(BigInt(ht),Et)}catch(yt){assertArgument(!1,`invalid numeric string: ${yt.message}`,Et||"value",ht)}}assertArgument(!1,"invalid numeric value",Et||"value",ht)}function toNumber(ht){return getNumber(toBigInt(ht))}function toBeHex(ht,Et){let Ct=getUint(ht,"value").toString(16);if(Et==null)Ct.length%2&&(Ct="0"+Ct);else{const $t=getNumber(Et,"width");for(assert($t*2>=Ct.length,`value exceeds width (${$t} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:ht});Ct.length<$t*2;)Ct="0"+Ct}return"0x"+Ct}function toBeArray(ht){const Et=getUint(ht,"value");if(Et===BN_0$3)return new Uint8Array([]);let yt=Et.toString(16);yt.length%2&&(yt="0"+yt);const Ct=new Uint8Array(yt.length/2);for(let $t=0;$t<Ct.length;$t++){const At=$t*2;Ct[$t]=parseInt(yt.substring(At,At+2),16)}return Ct}function toQuantity(ht){let Et=hexlify(isBytesLike(ht)?ht:toBeArray(ht)).substring(2);for(;Et.startsWith("0");)Et=Et.substring(1);return Et===""&&(Et="0"),"0x"+Et}function errorFunc(ht,Et,yt,Ct,$t){assertArgument(!1,`invalid codepoint at offset ${Et}; ${ht}`,"bytes",yt)}function ignoreFunc(ht,Et,yt,Ct,$t){if(ht==="BAD_PREFIX"||ht==="UNEXPECTED_CONTINUE"){let At=0;for(let Bt=Et+1;Bt<yt.length&&yt[Bt]>>6===2;Bt++)At++;return At}return ht==="OVERRUN"?yt.length-Et-1:0}function replaceFunc(ht,Et,yt,Ct,$t){return ht==="OVERLONG"?(assertArgument(typeof $t=="number","invalid bad code point for replacement","badCodepoint",$t),Ct.push($t),0):(Ct.push(65533),ignoreFunc(ht,Et,yt))}const Utf8ErrorFuncs=Object.freeze({error:errorFunc,ignore:ignoreFunc,replace:replaceFunc});function getUtf8CodePoints(ht,Et){Et==null&&(Et=Utf8ErrorFuncs.error);const yt=getBytes(ht,"bytes"),Ct=[];let $t=0;for(;$t<yt.length;){const At=yt[$t++];if(!(At>>7)){Ct.push(At);continue}let Bt=null,Dt=null;if((At&224)===192)Bt=1,Dt=127;else if((At&240)===224)Bt=2,Dt=2047;else if((At&248)===240)Bt=3,Dt=65535;else{(At&192)===128?$t+=Et("UNEXPECTED_CONTINUE",$t-1,yt,Ct):$t+=Et("BAD_PREFIX",$t-1,yt,Ct);continue}if($t-1+Bt>=yt.length){$t+=Et("OVERRUN",$t-1,yt,Ct);continue}let Ft=At&(1<<8-Bt-1)-1;for(let kt=0;kt<Bt;kt++){let Mt=yt[$t];if((Mt&192)!=128){$t+=Et("MISSING_CONTINUE",$t,yt,Ct),Ft=null;break}Ft=Ft<<6|Mt&63,$t++}if(Ft!==null){if(Ft>1114111){$t+=Et("OUT_OF_RANGE",$t-1-Bt,yt,Ct,Ft);continue}if(Ft>=55296&&Ft<=57343){$t+=Et("UTF16_SURROGATE",$t-1-Bt,yt,Ct,Ft);continue}if(Ft<=Dt){$t+=Et("OVERLONG",$t-1-Bt,yt,Ct,Ft);continue}Ct.push(Ft)}}return Ct}function toUtf8Bytes(ht,Et){assertArgument(typeof ht=="string","invalid string value","str",ht),Et!=null&&(assertNormalize(Et),ht=ht.normalize(Et));let yt=[];for(let Ct=0;Ct<ht.length;Ct++){const $t=ht.charCodeAt(Ct);if($t<128)yt.push($t);else if($t<2048)yt.push($t>>6|192),yt.push($t&63|128);else if(($t&64512)==55296){Ct++;const At=ht.charCodeAt(Ct);assertArgument(Ct<ht.length&&(At&64512)===56320,"invalid surrogate pair","str",ht);const Bt=65536+(($t&1023)<<10)+(At&1023);yt.push(Bt>>18|240),yt.push(Bt>>12&63|128),yt.push(Bt>>6&63|128),yt.push(Bt&63|128)}else yt.push($t>>12|224),yt.push($t>>6&63|128),yt.push($t&63|128)}return new Uint8Array(yt)}function _toUtf8String(ht){return ht.map(Et=>Et<=65535?String.fromCharCode(Et):(Et-=65536,String.fromCharCode((Et>>10&1023)+55296,(Et&1023)+56320))).join("")}function toUtf8String(ht,Et){return _toUtf8String(getUtf8CodePoints(ht,Et))}function toUtf8CodePoints(ht,Et){return getUtf8CodePoints(toUtf8Bytes(ht,Et))}const BN_N1=BigInt(-1),BN_0$2=BigInt(0),BN_1$1=BigInt(1),BN_5=BigInt(5),_guard$2={};let Zeros="0000";for(;Zeros.length<80;)Zeros+=Zeros;function getTens(ht){let Et=Zeros;for(;Et.length<ht;)Et+=Et;return BigInt("1"+Et.substring(0,ht))}function checkValue(ht,Et,yt){const Ct=BigInt(Et.width);if(Et.signed){const $t=BN_1$1<<Ct-BN_1$1;assert(yt==null||ht>=-$t&&ht<$t,"overflow","NUMERIC_FAULT",{operation:yt,fault:"overflow",value:ht}),ht>BN_0$2?ht=fromTwos(mask(ht,Ct),Ct):ht=-fromTwos(mask(-ht,Ct),Ct)}else{const $t=BN_1$1<<Ct;assert(yt==null||ht>=0&&ht<$t,"overflow","NUMERIC_FAULT",{operation:yt,fault:"overflow",value:ht}),ht=(ht%$t+$t)%$t&$t-BN_1$1}return ht}function getFormat(ht){typeof ht=="number"&&(ht=`fixed128x${ht}`);let Et=!0,yt=128,Ct=18;if(typeof ht=="string"){if(ht!=="fixed")if(ht==="ufixed")Et=!1;else{const At=ht.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);assertArgument(At,"invalid fixed format","format",ht),Et=At[1]!=="u",yt=parseInt(At[2]),Ct=parseInt(At[3])}}else if(ht){const At=ht,Bt=(Dt,Ft,kt)=>At[Dt]==null?kt:(assertArgument(typeof At[Dt]===Ft,"invalid fixed format ("+Dt+" not "+Ft+")","format."+Dt,At[Dt]),At[Dt]);Et=Bt("signed","boolean",Et),yt=Bt("width","number",yt),Ct=Bt("decimals","number",Ct)}assertArgument(yt%8===0,"invalid FixedNumber width (not byte aligned)","format.width",yt),assertArgument(Ct<=80,"invalid FixedNumber decimals (too large)","format.decimals",Ct);const $t=(Et?"":"u")+"fixed"+String(yt)+"x"+String(Ct);return{signed:Et,width:yt,decimals:Ct,name:$t}}function toString$b(ht,Et){let yt="";ht<BN_0$2&&(yt="-",ht*=BN_N1);let Ct=ht.toString();if(Et===0)return yt+Ct;for(;Ct.length<=Et;)Ct=Zeros+Ct;const $t=Ct.length-Et;for(Ct=Ct.substring(0,$t)+"."+Ct.substring($t);Ct[0]==="0"&&Ct[1]!==".";)Ct=Ct.substring(1);for(;Ct[Ct.length-1]==="0"&&Ct[Ct.length-2]!==".";)Ct=Ct.substring(0,Ct.length-1);return yt+Ct}var Io,qu,xo,Uu,Jo,Wo,zs,Hs,Us,Ws;const Xo=class Xo{constructor(Et,yt,Ct){Ku(this,Uu);wu(this,"format");Ku(this,Io);Ku(this,qu);Ku(this,xo);wu(this,"_value");assertPrivate(Et,_guard$2,"FixedNumber"),Wu(this,qu,yt),Wu(this,Io,Ct);const $t=toString$b(yt,Ct.decimals);defineProperties$4(this,{format:Ct.name,_value:$t}),Wu(this,xo,getTens(Ct.decimals))}get signed(){return qn(this,Io).signed}get width(){return qn(this,Io).width}get decimals(){return qn(this,Io).decimals}get value(){return qn(this,qu)}addUnsafe(Et){return Pu(this,Uu,zs).call(this,Et)}add(Et){return Pu(this,Uu,zs).call(this,Et,"add")}subUnsafe(Et){return Pu(this,Uu,Hs).call(this,Et)}sub(Et){return Pu(this,Uu,Hs).call(this,Et,"sub")}mulUnsafe(Et){return Pu(this,Uu,Us).call(this,Et)}mul(Et){return Pu(this,Uu,Us).call(this,Et,"mul")}mulSignal(Et){Pu(this,Uu,Jo).call(this,Et);const yt=qn(this,qu)*qn(Et,qu);return assert(yt%qn(this,xo)===BN_0$2,"precision lost during signalling mul","NUMERIC_FAULT",{operation:"mulSignal",fault:"underflow",value:this}),Pu(this,Uu,Wo).call(this,yt/qn(this,xo),"mulSignal")}divUnsafe(Et){return Pu(this,Uu,Ws).call(this,Et)}div(Et){return Pu(this,Uu,Ws).call(this,Et,"div")}divSignal(Et){assert(qn(Et,qu)!==BN_0$2,"division by zero","NUMERIC_FAULT",{operation:"div",fault:"divide-by-zero",value:this}),Pu(this,Uu,Jo).call(this,Et);const yt=qn(this,qu)*qn(this,xo);return assert(yt%qn(Et,qu)===BN_0$2,"precision lost during signalling div","NUMERIC_FAULT",{operation:"divSignal",fault:"underflow",value:this}),Pu(this,Uu,Wo).call(this,yt/qn(Et,qu),"divSignal")}cmp(Et){let yt=this.value,Ct=Et.value;const $t=this.decimals-Et.decimals;return $t>0?Ct*=getTens($t):$t<0&&(yt*=getTens(-$t)),yt<Ct?-1:yt>Ct?1:0}eq(Et){return this.cmp(Et)===0}lt(Et){return this.cmp(Et)<0}lte(Et){return this.cmp(Et)<=0}gt(Et){return this.cmp(Et)>0}gte(Et){return this.cmp(Et)>=0}floor(){let Et=qn(this,qu);return qn(this,qu)<BN_0$2&&(Et-=qn(this,xo)-BN_1$1),Et=qn(this,qu)/qn(this,xo)*qn(this,xo),Pu(this,Uu,Wo).call(this,Et,"floor")}ceiling(){let Et=qn(this,qu);return qn(this,qu)>BN_0$2&&(Et+=qn(this,xo)-BN_1$1),Et=qn(this,qu)/qn(this,xo)*qn(this,xo),Pu(this,Uu,Wo).call(this,Et,"ceiling")}round(Et){if(Et==null&&(Et=0),Et>=this.decimals)return this;const yt=this.decimals-Et,Ct=BN_5*getTens(yt-1);let $t=this.value+Ct;const At=getTens(yt);return $t=$t/At*At,checkValue($t,qn(this,Io),"round"),new Xo(_guard$2,$t,qn(this,Io))}isZero(){return qn(this,qu)===BN_0$2}isNegative(){return qn(this,qu)<BN_0$2}toString(){return this._value}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(Et){return Xo.fromString(this.toString(),Et)}static fromValue(Et,yt,Ct){const $t=yt==null?0:getNumber(yt),At=getFormat(Ct);let Bt=getBigInt(Et,"value");const Dt=$t-At.decimals;if(Dt>0){const Ft=getTens(Dt);assert(Bt%Ft===BN_0$2,"value loses precision for format","NUMERIC_FAULT",{operation:"fromValue",fault:"underflow",value:Et}),Bt/=Ft}else Dt<0&&(Bt*=getTens(-Dt));return checkValue(Bt,At,"fromValue"),new Xo(_guard$2,Bt,At)}static fromString(Et,yt){const Ct=Et.match(/^(-?)([0-9]*)\.?([0-9]*)$/);assertArgument(Ct&&Ct[2].length+Ct[3].length>0,"invalid FixedNumber string value","value",Et);const $t=getFormat(yt);let At=Ct[2]||"0",Bt=Ct[3]||"";for(;Bt.length<$t.decimals;)Bt+=Zeros;assert(Bt.substring($t.decimals).match(/^0*$/),"too many decimals for format","NUMERIC_FAULT",{operation:"fromString",fault:"underflow",value:Et}),Bt=Bt.substring(0,$t.decimals);const Dt=BigInt(Ct[1]+At+Bt);return checkValue(Dt,$t,"fromString"),new Xo(_guard$2,Dt,$t)}static fromBytes(Et,yt){let Ct=toBigInt(getBytes(Et,"value"));const $t=getFormat(yt);return $t.signed&&(Ct=fromTwos(Ct,$t.width)),checkValue(Ct,$t,"fromBytes"),new Xo(_guard$2,Ct,$t)}};Io=new WeakMap,qu=new WeakMap,xo=new WeakMap,Uu=new WeakSet,Jo=function(Et){assertArgument(this.format===Et.format,"incompatible format; use fixedNumber.toFormat","other",Et)},Wo=function(Et,yt){return Et=checkValue(Et,qn(this,Io),yt),new Xo(_guard$2,Et,qn(this,Io))},zs=function(Et,yt){return Pu(this,Uu,Jo).call(this,Et),Pu(this,Uu,Wo).call(this,qn(this,qu)+qn(Et,qu),yt)},Hs=function(Et,yt){return Pu(this,Uu,Jo).call(this,Et),Pu(this,Uu,Wo).call(this,qn(this,qu)-qn(Et,qu),yt)},Us=function(Et,yt){return Pu(this,Uu,Jo).call(this,Et),Pu(this,Uu,Wo).call(this,qn(this,qu)*qn(Et,qu)/qn(this,xo),yt)},Ws=function(Et,yt){return assert(qn(Et,qu)!==BN_0$2,"division by zero","NUMERIC_FAULT",{operation:"div",fault:"divide-by-zero",value:this}),Pu(this,Uu,Jo).call(this,Et),Pu(this,Uu,Wo).call(this,qn(this,qu)*qn(this,xo)/qn(Et,qu),yt)};let FixedNumber=Xo;const names=["wei","kwei","mwei","gwei","szabo","finney","ether"];function formatUnits(ht,Et){let yt=18;if(typeof Et=="string"){const Ct=names.indexOf(Et);assertArgument(Ct>=0,"invalid unit","unit",Et),yt=3*Ct}else Et!=null&&(yt=getNumber(Et,"unit"));return FixedNumber.fromValue(ht,yt,{decimals:yt,width:512}).toString()}function parseUnits(ht,Et){assertArgument(typeof ht=="string","value must be a string","value",ht);let yt=18;if(typeof Et=="string"){const Ct=names.indexOf(Et);assertArgument(Ct>=0,"invalid unit","unit",Et),yt=3*Ct}else Et!=null&&(yt=getNumber(Et,"unit"));return FixedNumber.fromString(ht,{decimals:yt,width:512}).value}function formatEther(ht){return formatUnits(ht,18)}function parseEther(ht){return parseUnits(ht,18)}const WordSize=32,Padding=new Uint8Array(WordSize),passProperties=["then"],_guard$1={},resultNames=new WeakMap;function getNames(ht){return resultNames.get(ht)}function setNames(ht,Et){resultNames.set(ht,Et)}function throwError(ht,Et){const yt=new Error(`deferred error during ABI decoding triggered accessing ${ht}`);throw yt.error=Et,yt}function toObject$a(ht,Et,yt){return ht.indexOf(null)>=0?Et.map((Ct,$t)=>Ct instanceof Result?toObject$a(getNames(Ct),Ct,yt):Ct):ht.reduce((Ct,$t,At)=>{let Bt=Et.getValue($t);return $t in Ct||(yt&&Bt instanceof Result&&(Bt=toObject$a(getNames(Bt),Bt,yt)),Ct[$t]=Bt),Ct},{})}var gs;const Es=class Es extends Array{constructor(...yt){const Ct=yt[0];let $t=yt[1],At=(yt[2]||[]).slice(),Bt=!0;Ct!==_guard$1&&($t=yt,At=[],Bt=!1);super($t.length);Ku(this,gs);$t.forEach((kt,Mt)=>{this[Mt]=kt});const Dt=At.reduce((kt,Mt)=>(typeof Mt=="string"&&kt.set(Mt,(kt.get(Mt)||0)+1),kt),new Map);if(setNames(this,Object.freeze($t.map((kt,Mt)=>{const Nt=At[Mt];return Nt!=null&&Dt.get(Nt)===1?Nt:null}))),Wu(this,gs,[]),qn(this,gs)==null&&qn(this,gs),!Bt)return;Object.freeze(this);const Ft=new Proxy(this,{get:(kt,Mt,Nt)=>{if(typeof Mt=="string"){if(Mt.match(/^[0-9]+$/)){const zt=getNumber(Mt,"%index");if(zt<0||zt>=this.length)throw new RangeError("out of result range");const Vt=kt[zt];return Vt instanceof Error&&throwError(`index ${zt}`,Vt),Vt}if(passProperties.indexOf(Mt)>=0)return Reflect.get(kt,Mt,Nt);const jt=kt[Mt];if(jt instanceof Function)return function(...zt){return jt.apply(this===Nt?kt:this,zt)};if(!(Mt in kt))return kt.getValue.apply(this===Nt?kt:this,[Mt])}return Reflect.get(kt,Mt,Nt)}});return setNames(Ft,getNames(this)),Ft}toArray(yt){const Ct=[];return this.forEach(($t,At)=>{$t instanceof Error&&throwError(`index ${At}`,$t),yt&&$t instanceof Es&&($t=$t.toArray(yt)),Ct.push($t)}),Ct}toObject(yt){const Ct=getNames(this);return Ct.reduce(($t,At,Bt)=>(assert(At!=null,`value at index ${Bt} unnamed`,"UNSUPPORTED_OPERATION",{operation:"toObject()"}),toObject$a(Ct,this,yt)),{})}slice(yt,Ct){yt==null&&(yt=0),yt<0&&(yt+=this.length,yt<0&&(yt=0)),Ct==null&&(Ct=this.length),Ct<0&&(Ct+=this.length,Ct<0&&(Ct=0)),Ct>this.length&&(Ct=this.length);const $t=getNames(this),At=[],Bt=[];for(let Dt=yt;Dt<Ct;Dt++)At.push(this[Dt]),Bt.push($t[Dt]);return new Es(_guard$1,At,Bt)}filter(yt,Ct){const $t=getNames(this),At=[],Bt=[];for(let Dt=0;Dt<this.length;Dt++){const Ft=this[Dt];Ft instanceof Error&&throwError(`index ${Dt}`,Ft),yt.call(Ct,Ft,Dt,this)&&(At.push(Ft),Bt.push($t[Dt]))}return new Es(_guard$1,At,Bt)}map(yt,Ct){const $t=[];for(let At=0;At<this.length;At++){const Bt=this[At];Bt instanceof Error&&throwError(`index ${At}`,Bt),$t.push(yt.call(Ct,Bt,At,this))}return $t}getValue(yt){const Ct=getNames(this).indexOf(yt);if(Ct===-1)return;const $t=this[Ct];return $t instanceof Error&&throwError(`property ${JSON.stringify(yt)}`,$t.error),$t}static fromItems(yt,Ct){return new Es(_guard$1,yt,Ct)}};gs=new WeakMap;let Result=Es;function checkResultErrors(ht){const Et=[],yt=function(Ct,$t){if(Array.isArray($t))for(let At in $t){const Bt=Ct.slice();Bt.push(At);try{yt(Bt,$t[At])}catch(Dt){Et.push({path:Bt,error:Dt})}}};return yt([],ht),Et}function getValue$1(ht){let Et=toBeArray(ht);return assert(Et.length<=WordSize,"value out-of-bounds","BUFFER_OVERRUN",{buffer:Et,length:WordSize,offset:Et.length}),Et.length!==WordSize&&(Et=getBytesCopy(concat$6([Padding.slice(Et.length%WordSize),Et]))),Et}class Coder{constructor(Et,yt,Ct,$t){wu(this,"name");wu(this,"type");wu(this,"localName");wu(this,"dynamic");defineProperties$4(this,{name:Et,type:yt,localName:Ct,dynamic:$t},{name:"string",type:"string",localName:"string",dynamic:"boolean"})}_throwError(Et,yt){assertArgument(!1,Et,this.localName,yt)}}var Ko,$a,vs,Bs;class Writer{constructor(){Ku(this,vs);Ku(this,Ko);Ku(this,$a);Wu(this,Ko,[]),Wu(this,$a,0)}get data(){return concat$6(qn(this,Ko))}get length(){return qn(this,$a)}appendWriter(Et){return Pu(this,vs,Bs).call(this,getBytesCopy(Et.data))}writeBytes(Et){let yt=getBytesCopy(Et);const Ct=yt.length%WordSize;return Ct&&(yt=getBytesCopy(concat$6([yt,Padding.slice(Ct)]))),Pu(this,vs,Bs).call(this,yt)}writeValue(Et){return Pu(this,vs,Bs).call(this,getValue$1(Et))}writeUpdatableValue(){const Et=qn(this,Ko).length;return qn(this,Ko).push(Padding),Wu(this,$a,qn(this,$a)+WordSize),yt=>{qn(this,Ko)[Et]=getValue$1(yt)}}}Ko=new WeakMap,$a=new WeakMap,vs=new WeakSet,Bs=function(Et){return qn(this,Ko).push(Et),Wu(this,$a,qn(this,$a)+Et.length),Et.length};var $o,Bo,rs,ns,Yo,ls,qs,Js;const Ks=class Ks{constructor(Et,yt,Ct){Ku(this,ls);wu(this,"allowLoose");Ku(this,$o);Ku(this,Bo);Ku(this,rs);Ku(this,ns);Ku(this,Yo);defineProperties$4(this,{allowLoose:!!yt}),Wu(this,$o,getBytesCopy(Et)),Wu(this,rs,0),Wu(this,ns,null),Wu(this,Yo,Ct??1024),Wu(this,Bo,0)}get data(){return hexlify(qn(this,$o))}get dataLength(){return qn(this,$o).length}get consumed(){return qn(this,Bo)}get bytes(){return new Uint8Array(qn(this,$o))}subReader(Et){const yt=new Ks(qn(this,$o).slice(qn(this,Bo)+Et),this.allowLoose,qn(this,Yo));return Wu(yt,ns,this),yt}readBytes(Et,yt){let Ct=Pu(this,ls,Js).call(this,0,Et,!!yt);return Pu(this,ls,qs).call(this,Et),Wu(this,Bo,qn(this,Bo)+Ct.length),Ct.slice(0,Et)}readValue(){return toBigInt(this.readBytes(WordSize))}readIndex(){return toNumber(this.readBytes(WordSize))}};$o=new WeakMap,Bo=new WeakMap,rs=new WeakMap,ns=new WeakMap,Yo=new WeakMap,ls=new WeakSet,qs=function(Et){var yt;if(qn(this,ns))return Pu(yt=qn(this,ns),ls,qs).call(yt,Et);Wu(this,rs,qn(this,rs)+Et),assert(qn(this,Yo)<1||qn(this,rs)<=qn(this,Yo)*this.dataLength,`compressed ABI data exceeds inflation ratio of ${qn(this,Yo)} ( see: https://github.com/ethers-io/ethers.js/issues/4537 )`,"BUFFER_OVERRUN",{buffer:getBytesCopy(qn(this,$o)),offset:qn(this,Bo),length:Et,info:{bytesRead:qn(this,rs),dataLength:this.dataLength}})},Js=function(Et,yt,Ct){let $t=Math.ceil(yt/WordSize)*WordSize;return qn(this,Bo)+$t>qn(this,$o).length&&(this.allowLoose&&Ct&&qn(this,Bo)+yt<=qn(this,$o).length?$t=yt:assert(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:getBytesCopy(qn(this,$o)),length:qn(this,$o).length,offset:qn(this,Bo)+$t})),qn(this,$o).slice(qn(this,Bo),qn(this,Bo)+$t)};let Reader=Ks;function number(ht){if(!Number.isSafeInteger(ht)||ht<0)throw new Error(`Wrong positive integer: ${ht}`)}function bytes(ht,...Et){if(!(ht instanceof Uint8Array))throw new Error("Expected Uint8Array");if(Et.length>0&&!Et.includes(ht.length))throw new Error(`Expected Uint8Array of length ${Et}, not of length=${ht.length}`)}function hash(ht){if(typeof ht!="function"||typeof ht.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");number(ht.outputLen),number(ht.blockLen)}function exists(ht,Et=!0){if(ht.destroyed)throw new Error("Hash instance has been destroyed");if(Et&&ht.finished)throw new Error("Hash#digest() has already been called")}function output(ht,Et){bytes(ht);const yt=Et.outputLen;if(ht.length<yt)throw new Error(`digestInto() expects output buffer of length at least ${yt}`)}/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const u8a=ht=>ht instanceof Uint8Array,u32=ht=>new Uint32Array(ht.buffer,ht.byteOffset,Math.floor(ht.byteLength/4)),createView=ht=>new DataView(ht.buffer,ht.byteOffset,ht.byteLength),rotr=(ht,Et)=>ht<<32-Et|ht>>>Et,isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!isLE)throw new Error("Non little-endian hardware is not supported");const nextTick=async()=>{};async function asyncLoop(ht,Et,yt){let Ct=Date.now();for(let $t=0;$t<ht;$t++){yt($t);const At=Date.now()-Ct;At>=0&&At<Et||(await nextTick(),Ct+=At)}}function utf8ToBytes(ht){if(typeof ht!="string")throw new Error(`utf8ToBytes expected string, got ${typeof ht}`);return new Uint8Array(new TextEncoder().encode(ht))}function toBytes(ht){if(typeof ht=="string"&&(ht=utf8ToBytes(ht)),!u8a(ht))throw new Error(`expected Uint8Array, got ${typeof ht}`);return ht}let Hash$1=class{clone(){return this._cloneInto()}};const toStr={}.toString;function checkOpts(ht,Et){if(Et!==void 0&&toStr.call(Et)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(ht,Et)}function wrapConstructor$1(ht){const Et=Ct=>ht().update(toBytes(Ct)).digest(),yt=ht();return Et.outputLen=yt.outputLen,Et.blockLen=yt.blockLen,Et.create=()=>ht(),Et}const U32_MASK64=BigInt(2**32-1),_32n=BigInt(32);function fromBig(ht,Et=!1){return Et?{h:Number(ht&U32_MASK64),l:Number(ht>>_32n&U32_MASK64)}:{h:Number(ht>>_32n&U32_MASK64)|0,l:Number(ht&U32_MASK64)|0}}function split$2(ht,Et=!1){let yt=new Uint32Array(ht.length),Ct=new Uint32Array(ht.length);for(let $t=0;$t<ht.length;$t++){const{h:At,l:Bt}=fromBig(ht[$t],Et);[yt[$t],Ct[$t]]=[At,Bt]}return[yt,Ct]}const toBig=(ht,Et)=>BigInt(ht>>>0)<<_32n|BigInt(Et>>>0),shrSH=(ht,Et,yt)=>ht>>>yt,shrSL=(ht,Et,yt)=>ht<<32-yt|Et>>>yt,rotrSH=(ht,Et,yt)=>ht>>>yt|Et<<32-yt,rotrSL=(ht,Et,yt)=>ht<<32-yt|Et>>>yt,rotrBH=(ht,Et,yt)=>ht<<64-yt|Et>>>yt-32,rotrBL=(ht,Et,yt)=>ht>>>yt-32|Et<<64-yt,rotr32H=(ht,Et)=>Et,rotr32L=(ht,Et)=>ht,rotlSH=(ht,Et,yt)=>ht<<yt|Et>>>32-yt,rotlSL=(ht,Et,yt)=>Et<<yt|ht>>>32-yt,rotlBH=(ht,Et,yt)=>Et<<yt-32|ht>>>64-yt,rotlBL=(ht,Et,yt)=>ht<<yt-32|Et>>>64-yt;function add(ht,Et,yt,Ct){const $t=(Et>>>0)+(Ct>>>0);return{h:ht+yt+($t/2**32|0)|0,l:$t|0}}const add3L=(ht,Et,yt)=>(ht>>>0)+(Et>>>0)+(yt>>>0),add3H=(ht,Et,yt,Ct)=>Et+yt+Ct+(ht/2**32|0)|0,add4L=(ht,Et,yt,Ct)=>(ht>>>0)+(Et>>>0)+(yt>>>0)+(Ct>>>0),add4H=(ht,Et,yt,Ct,$t)=>Et+yt+Ct+$t+(ht/2**32|0)|0,add5L=(ht,Et,yt,Ct,$t)=>(ht>>>0)+(Et>>>0)+(yt>>>0)+(Ct>>>0)+($t>>>0),add5H=(ht,Et,yt,Ct,$t,At)=>Et+yt+Ct+$t+At+(ht/2**32|0)|0,u64={fromBig,split:split$2,toBig,shrSH,shrSL,rotrSH,rotrSL,rotrBH,rotrBL,rotr32H,rotr32L,rotlSH,rotlSL,rotlBH,rotlBL,add,add3L,add3H,add4L,add4H,add5H,add5L},[SHA3_PI,SHA3_ROTL,_SHA3_IOTA]=[[],[],[]],_0n=BigInt(0),_1n=BigInt(1),_2n=BigInt(2),_7n=BigInt(7),_256n=BigInt(256),_0x71n=BigInt(113);for(let ht=0,Et=_1n,yt=1,Ct=0;ht<24;ht++){[yt,Ct]=[Ct,(2*yt+3*Ct)%5],SHA3_PI.push(2*(5*Ct+yt)),SHA3_ROTL.push((ht+1)*(ht+2)/2%64);let $t=_0n;for(let At=0;At<7;At++)Et=(Et<<_1n^(Et>>_7n)*_0x71n)%_256n,Et&_2n&&($t^=_1n<<(_1n<<BigInt(At))-_1n);_SHA3_IOTA.push($t)}const[SHA3_IOTA_H,SHA3_IOTA_L]=split$2(_SHA3_IOTA,!0),rotlH=(ht,Et,yt)=>yt>32?rotlBH(ht,Et,yt):rotlSH(ht,Et,yt),rotlL=(ht,Et,yt)=>yt>32?rotlBL(ht,Et,yt):rotlSL(ht,Et,yt);function keccakP(ht,Et=24){const yt=new Uint32Array(10);for(let Ct=24-Et;Ct<24;Ct++){for(let Bt=0;Bt<10;Bt++)yt[Bt]=ht[Bt]^ht[Bt+10]^ht[Bt+20]^ht[Bt+30]^ht[Bt+40];for(let Bt=0;Bt<10;Bt+=2){const Dt=(Bt+8)%10,Ft=(Bt+2)%10,kt=yt[Ft],Mt=yt[Ft+1],Nt=rotlH(kt,Mt,1)^yt[Dt],jt=rotlL(kt,Mt,1)^yt[Dt+1];for(let zt=0;zt<50;zt+=10)ht[Bt+zt]^=Nt,ht[Bt+zt+1]^=jt}let $t=ht[2],At=ht[3];for(let Bt=0;Bt<24;Bt++){const Dt=SHA3_ROTL[Bt],Ft=rotlH($t,At,Dt),kt=rotlL($t,At,Dt),Mt=SHA3_PI[Bt];$t=ht[Mt],At=ht[Mt+1],ht[Mt]=Ft,ht[Mt+1]=kt}for(let Bt=0;Bt<50;Bt+=10){for(let Dt=0;Dt<10;Dt++)yt[Dt]=ht[Bt+Dt];for(let Dt=0;Dt<10;Dt++)ht[Bt+Dt]^=~yt[(Dt+2)%10]&yt[(Dt+4)%10]}ht[0]^=SHA3_IOTA_H[Ct],ht[1]^=SHA3_IOTA_L[Ct]}yt.fill(0)}class Keccak extends Hash$1{constructor(Et,yt,Ct,$t=!1,At=24){if(super(),this.blockLen=Et,this.suffix=yt,this.outputLen=Ct,this.enableXOF=$t,this.rounds=At,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,number(Ct),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=u32(this.state)}keccak(){keccakP(this.state32,this.rounds),this.posOut=0,this.pos=0}update(Et){exists(this);const{blockLen:yt,state:Ct}=this;Et=toBytes(Et);const $t=Et.length;for(let At=0;At<$t;){const Bt=Math.min(yt-this.pos,$t-At);for(let Dt=0;Dt<Bt;Dt++)Ct[this.pos++]^=Et[At++];this.pos===yt&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:Et,suffix:yt,pos:Ct,blockLen:$t}=this;Et[Ct]^=yt,yt&128&&Ct===$t-1&&this.keccak(),Et[$t-1]^=128,this.keccak()}writeInto(Et){exists(this,!1),bytes(Et),this.finish();const yt=this.state,{blockLen:Ct}=this;for(let $t=0,At=Et.length;$t<At;){this.posOut>=Ct&&this.keccak();const Bt=Math.min(Ct-this.posOut,At-$t);Et.set(yt.subarray(this.posOut,this.posOut+Bt),$t),this.posOut+=Bt,$t+=Bt}return Et}xofInto(Et){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(Et)}xof(Et){return number(Et),this.xofInto(new Uint8Array(Et))}digestInto(Et){if(output(Et,this),this.finished)throw new Error("digest() was already called");return this.writeInto(Et),this.destroy(),Et}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(Et){const{blockLen:yt,suffix:Ct,outputLen:$t,rounds:At,enableXOF:Bt}=this;return Et||(Et=new Keccak(yt,Ct,$t,Bt,At)),Et.state32.set(this.state32),Et.pos=this.pos,Et.posOut=this.posOut,Et.finished=this.finished,Et.rounds=At,Et.suffix=Ct,Et.outputLen=$t,Et.enableXOF=Bt,Et.destroyed=this.destroyed,Et}}const gen=(ht,Et,yt)=>wrapConstructor$1(()=>new Keccak(Et,ht,yt)),keccak_256=gen(1,136,256/8);let locked=!1;const _keccak256=function(ht){return keccak_256(ht)};let __keccak256=_keccak256;function keccak256(ht){const Et=getBytes(ht,"data");return hexlify(__keccak256(Et))}keccak256._=_keccak256;keccak256.lock=function(){locked=!0};keccak256.register=function(ht){if(locked)throw new TypeError("keccak256 is locked");__keccak256=ht};Object.freeze(keccak256);const BN_0$1=BigInt(0),BN_36=BigInt(36);function getChecksumAddress(ht){ht=ht.toLowerCase();const Et=ht.substring(2).split(""),yt=new Uint8Array(40);for(let $t=0;$t<40;$t++)yt[$t]=Et[$t].charCodeAt(0);const Ct=getBytes(keccak256(yt));for(let $t=0;$t<40;$t+=2)Ct[$t>>1]>>4>=8&&(Et[$t]=Et[$t].toUpperCase()),(Ct[$t>>1]&15)>=8&&(Et[$t+1]=Et[$t+1].toUpperCase());return"0x"+Et.join("")}const ibanLookup={};for(let ht=0;ht<10;ht++)ibanLookup[String(ht)]=String(ht);for(let ht=0;ht<26;ht++)ibanLookup[String.fromCharCode(65+ht)]=String(10+ht);const safeDigits=15;function ibanChecksum(ht){ht=ht.toUpperCase(),ht=ht.substring(4)+ht.substring(0,2)+"00";let Et=ht.split("").map(Ct=>ibanLookup[Ct]).join("");for(;Et.length>=safeDigits;){let Ct=Et.substring(0,safeDigits);Et=parseInt(Ct,10)%97+Et.substring(Ct.length)}let yt=String(98-parseInt(Et,10)%97);for(;yt.length<2;)yt="0"+yt;return yt}const Base36=function(){const ht={};for(let Et=0;Et<36;Et++){const yt="0123456789abcdefghijklmnopqrstuvwxyz"[Et];ht[yt]=BigInt(Et)}return ht}();function fromBase36(ht){ht=ht.toLowerCase();let Et=BN_0$1;for(let yt=0;yt<ht.length;yt++)Et=Et*BN_36+Base36[ht[yt]];return Et}function getAddress(ht){if(assertArgument(typeof ht=="string","invalid address","address",ht),ht.match(/^(0x)?[0-9a-fA-F]{40}$/)){ht.startsWith("0x")||(ht="0x"+ht);const Et=getChecksumAddress(ht);return assertArgument(!ht.match(/([A-F].*[a-f])|([a-f].*[A-F])/)||Et===ht,"bad address checksum","address",ht),Et}if(ht.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){assertArgument(ht.substring(2,4)===ibanChecksum(ht),"bad icap checksum","address",ht);let Et=fromBase36(ht.substring(4)).toString(16);for(;Et.length<40;)Et="0"+Et;return getChecksumAddress("0x"+Et)}assertArgument(!1,"invalid address","address",ht)}function getIcapAddress(ht){let Et=BigInt(getAddress(ht)).toString(36).toUpperCase();for(;Et.length<30;)Et="0"+Et;return"XE"+ibanChecksum("XE00"+Et)+Et}function isAddressable(ht){return ht&&typeof ht.getAddress=="function"}function isAddress(ht){try{return getAddress(ht),!0}catch{}return!1}async function checkAddress(ht,Et){const yt=await Et;return(yt==null||yt==="0x0000000000000000000000000000000000000000")&&(assert(typeof ht!="string","unconfigured name","UNCONFIGURED_NAME",{value:ht}),assertArgument(!1,"invalid AddressLike value; did not resolve to a value address","target",ht)),getAddress(yt)}function resolveAddress(ht,Et){if(typeof ht=="string")return ht.match(/^0x[0-9a-f]{40}$/i)?getAddress(ht):(assert(Et!=null,"ENS resolution requires a provider","UNSUPPORTED_OPERATION",{operation:"resolveName"}),checkAddress(ht,Et.resolveName(ht)));if(isAddressable(ht))return checkAddress(ht,ht.getAddress());if(ht&&typeof ht.then=="function")return checkAddress(ht,ht);assertArgument(!1,"unsupported addressable value","target",ht)}const _gaurd={};function n$5(ht,Et){let yt=!1;return Et<0&&(yt=!0,Et*=-1),new Typed(_gaurd,`${yt?"":"u"}int${Et}`,ht,{signed:yt,width:Et})}function b$6(ht,Et){return new Typed(_gaurd,`bytes${Et||""}`,ht,{size:Et})}const _typedSymbol=Symbol.for("_ethers_typed");var us;const Vo=class Vo{constructor(Et,yt,Ct,$t){wu(this,"type");wu(this,"value");Ku(this,us);wu(this,"_typedSymbol");$t==null&&($t=null),assertPrivate(_gaurd,Et,"Typed"),defineProperties$4(this,{_typedSymbol,type:yt,value:Ct}),Wu(this,us,$t),this.format()}format(){if(this.type==="array")throw new Error("");if(this.type==="dynamicArray")throw new Error("");return this.type==="tuple"?`tuple(${this.value.map(Et=>Et.format()).join(",")})`:this.type}defaultValue(){return 0}minValue(){return 0}maxValue(){return 0}isBigInt(){return!!this.type.match(/^u?int[0-9]+$/)}isData(){return this.type.startsWith("bytes")}isString(){return this.type==="string"}get tupleName(){if(this.type!=="tuple")throw TypeError("not a tuple");return qn(this,us)}get arrayLength(){if(this.type!=="array")throw TypeError("not an array");return qn(this,us)===!0?-1:qn(this,us)===!1?this.value.length:null}static from(Et,yt){return new Vo(_gaurd,Et,yt)}static uint8(Et){return n$5(Et,8)}static uint16(Et){return n$5(Et,16)}static uint24(Et){return n$5(Et,24)}static uint32(Et){return n$5(Et,32)}static uint40(Et){return n$5(Et,40)}static uint48(Et){return n$5(Et,48)}static uint56(Et){return n$5(Et,56)}static uint64(Et){return n$5(Et,64)}static uint72(Et){return n$5(Et,72)}static uint80(Et){return n$5(Et,80)}static uint88(Et){return n$5(Et,88)}static uint96(Et){return n$5(Et,96)}static uint104(Et){return n$5(Et,104)}static uint112(Et){return n$5(Et,112)}static uint120(Et){return n$5(Et,120)}static uint128(Et){return n$5(Et,128)}static uint136(Et){return n$5(Et,136)}static uint144(Et){return n$5(Et,144)}static uint152(Et){return n$5(Et,152)}static uint160(Et){return n$5(Et,160)}static uint168(Et){return n$5(Et,168)}static uint176(Et){return n$5(Et,176)}static uint184(Et){return n$5(Et,184)}static uint192(Et){return n$5(Et,192)}static uint200(Et){return n$5(Et,200)}static uint208(Et){return n$5(Et,208)}static uint216(Et){return n$5(Et,216)}static uint224(Et){return n$5(Et,224)}static uint232(Et){return n$5(Et,232)}static uint240(Et){return n$5(Et,240)}static uint248(Et){return n$5(Et,248)}static uint256(Et){return n$5(Et,256)}static uint(Et){return n$5(Et,256)}static int8(Et){return n$5(Et,-8)}static int16(Et){return n$5(Et,-16)}static int24(Et){return n$5(Et,-24)}static int32(Et){return n$5(Et,-32)}static int40(Et){return n$5(Et,-40)}static int48(Et){return n$5(Et,-48)}static int56(Et){return n$5(Et,-56)}static int64(Et){return n$5(Et,-64)}static int72(Et){return n$5(Et,-72)}static int80(Et){return n$5(Et,-80)}static int88(Et){return n$5(Et,-88)}static int96(Et){return n$5(Et,-96)}static int104(Et){return n$5(Et,-104)}static int112(Et){return n$5(Et,-112)}static int120(Et){return n$5(Et,-120)}static int128(Et){return n$5(Et,-128)}static int136(Et){return n$5(Et,-136)}static int144(Et){return n$5(Et,-144)}static int152(Et){return n$5(Et,-152)}static int160(Et){return n$5(Et,-160)}static int168(Et){return n$5(Et,-168)}static int176(Et){return n$5(Et,-176)}static int184(Et){return n$5(Et,-184)}static int192(Et){return n$5(Et,-192)}static int200(Et){return n$5(Et,-200)}static int208(Et){return n$5(Et,-208)}static int216(Et){return n$5(Et,-216)}static int224(Et){return n$5(Et,-224)}static int232(Et){return n$5(Et,-232)}static int240(Et){return n$5(Et,-240)}static int248(Et){return n$5(Et,-248)}static int256(Et){return n$5(Et,-256)}static int(Et){return n$5(Et,-256)}static bytes1(Et){return b$6(Et,1)}static bytes2(Et){return b$6(Et,2)}static bytes3(Et){return b$6(Et,3)}static bytes4(Et){return b$6(Et,4)}static bytes5(Et){return b$6(Et,5)}static bytes6(Et){return b$6(Et,6)}static bytes7(Et){return b$6(Et,7)}static bytes8(Et){return b$6(Et,8)}static bytes9(Et){return b$6(Et,9)}static bytes10(Et){return b$6(Et,10)}static bytes11(Et){return b$6(Et,11)}static bytes12(Et){return b$6(Et,12)}static bytes13(Et){return b$6(Et,13)}static bytes14(Et){return b$6(Et,14)}static bytes15(Et){return b$6(Et,15)}static bytes16(Et){return b$6(Et,16)}static bytes17(Et){return b$6(Et,17)}static bytes18(Et){return b$6(Et,18)}static bytes19(Et){return b$6(Et,19)}static bytes20(Et){return b$6(Et,20)}static bytes21(Et){return b$6(Et,21)}static bytes22(Et){return b$6(Et,22)}static bytes23(Et){return b$6(Et,23)}static bytes24(Et){return b$6(Et,24)}static bytes25(Et){return b$6(Et,25)}static bytes26(Et){return b$6(Et,26)}static bytes27(Et){return b$6(Et,27)}static bytes28(Et){return b$6(Et,28)}static bytes29(Et){return b$6(Et,29)}static bytes30(Et){return b$6(Et,30)}static bytes31(Et){return b$6(Et,31)}static bytes32(Et){return b$6(Et,32)}static address(Et){return new Vo(_gaurd,"address",Et)}static bool(Et){return new Vo(_gaurd,"bool",!!Et)}static bytes(Et){return new Vo(_gaurd,"bytes",Et)}static string(Et){return new Vo(_gaurd,"string",Et)}static array(Et,yt){throw new Error("not implemented yet")}static tuple(Et,yt){throw new Error("not implemented yet")}static overrides(Et){return new Vo(_gaurd,"overrides",Object.assign({},Et))}static isTyped(Et){return Et&&typeof Et=="object"&&"_typedSymbol"in Et&&Et._typedSymbol===_typedSymbol}static dereference(Et,yt){if(Vo.isTyped(Et)){if(Et.type!==yt)throw new Error(`invalid type: expecetd ${yt}, got ${Et.type}`);return Et.value}return Et}};us=new WeakMap;let Typed=Vo;class AddressCoder extends Coder{constructor(Et){super("address","address",Et,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(Et,yt){let Ct=Typed.dereference(yt,"string");try{Ct=getAddress(Ct)}catch($t){return this._throwError($t.message,yt)}return Et.writeValue(Ct)}decode(Et){return getAddress(toBeHex(Et.readValue(),20))}}class AnonymousCoder extends Coder{constructor(yt){super(yt.name,yt.type,"_",yt.dynamic);wu(this,"coder");this.coder=yt}defaultValue(){return this.coder.defaultValue()}encode(yt,Ct){return this.coder.encode(yt,Ct)}decode(yt){return this.coder.decode(yt)}}function pack(ht,Et,yt){let Ct=[];if(Array.isArray(yt))Ct=yt;else if(yt&&typeof yt=="object"){let Ft={};Ct=Et.map(kt=>{const Mt=kt.localName;return assert(Mt,"cannot encode object for signature with missing names","INVALID_ARGUMENT",{argument:"values",info:{coder:kt},value:yt}),assert(!Ft[Mt],"cannot encode object for signature with duplicate names","INVALID_ARGUMENT",{argument:"values",info:{coder:kt},value:yt}),Ft[Mt]=!0,yt[Mt]})}else assertArgument(!1,"invalid tuple value","tuple",yt);assertArgument(Et.length===Ct.length,"types/value length mismatch","tuple",yt);let $t=new Writer,At=new Writer,Bt=[];Et.forEach((Ft,kt)=>{let Mt=Ct[kt];if(Ft.dynamic){let Nt=At.length;Ft.encode(At,Mt);let jt=$t.writeUpdatableValue();Bt.push(zt=>{jt(zt+Nt)})}else Ft.encode($t,Mt)}),Bt.forEach(Ft=>{Ft($t.length)});let Dt=ht.appendWriter($t);return Dt+=ht.appendWriter(At),Dt}function unpack(ht,Et){let yt=[],Ct=[],$t=ht.subReader(0);return Et.forEach(At=>{let Bt=null;if(At.dynamic){let Dt=ht.readIndex(),Ft=$t.subReader(Dt);try{Bt=At.decode(Ft)}catch(kt){if(isError(kt,"BUFFER_OVERRUN"))throw kt;Bt=kt,Bt.baseType=At.name,Bt.name=At.localName,Bt.type=At.type}}else try{Bt=At.decode(ht)}catch(Dt){if(isError(Dt,"BUFFER_OVERRUN"))throw Dt;Bt=Dt,Bt.baseType=At.name,Bt.name=At.localName,Bt.type=At.type}if(Bt==null)throw new Error("investigate");yt.push(Bt),Ct.push(At.localName||null)}),Result.fromItems(yt,Ct)}class ArrayCoder extends Coder{constructor(yt,Ct,$t){const At=yt.type+"["+(Ct>=0?Ct:"")+"]",Bt=Ct===-1||yt.dynamic;super("array",At,$t,Bt);wu(this,"coder");wu(this,"length");defineProperties$4(this,{coder:yt,length:Ct})}defaultValue(){const yt=this.coder.defaultValue(),Ct=[];for(let $t=0;$t<this.length;$t++)Ct.push(yt);return Ct}encode(yt,Ct){const $t=Typed.dereference(Ct,"array");Array.isArray($t)||this._throwError("expected array value",$t);let At=this.length;At===-1&&(At=$t.length,yt.writeValue($t.length)),assertArgumentCount($t.length,At,"coder array"+(this.localName?" "+this.localName:""));let Bt=[];for(let Dt=0;Dt<$t.length;Dt++)Bt.push(this.coder);return pack(yt,Bt,$t)}decode(yt){let Ct=this.length;Ct===-1&&(Ct=yt.readIndex(),assert(Ct*WordSize<=yt.dataLength,"insufficient data length","BUFFER_OVERRUN",{buffer:yt.bytes,offset:Ct*WordSize,length:yt.dataLength}));let $t=[];for(let At=0;At<Ct;At++)$t.push(new AnonymousCoder(this.coder));return unpack(yt,$t)}}class BooleanCoder extends Coder{constructor(Et){super("bool","bool",Et,!1)}defaultValue(){return!1}encode(Et,yt){const Ct=Typed.dereference(yt,"bool");return Et.writeValue(Ct?1:0)}decode(Et){return!!Et.readValue()}}class DynamicBytesCoder extends Coder{constructor(Et,yt){super(Et,Et,yt,!0)}defaultValue(){return"0x"}encode(Et,yt){yt=getBytesCopy(yt);let Ct=Et.writeValue(yt.length);return Ct+=Et.writeBytes(yt),Ct}decode(Et){return Et.readBytes(Et.readIndex(),!0)}}class BytesCoder extends DynamicBytesCoder{constructor(Et){super("bytes",Et)}decode(Et){return hexlify(super.decode(Et))}}class FixedBytesCoder extends Coder{constructor(yt,Ct){let $t="bytes"+String(yt);super($t,$t,Ct,!1);wu(this,"size");defineProperties$4(this,{size:yt},{size:"number"})}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+this.size*2)}encode(yt,Ct){let $t=getBytesCopy(Typed.dereference(Ct,this.type));return $t.length!==this.size&&this._throwError("incorrect data length",Ct),yt.writeBytes($t)}decode(yt){return hexlify(yt.readBytes(this.size))}}const Empty$2=new Uint8Array([]);class NullCoder extends Coder{constructor(Et){super("null","",Et,!1)}defaultValue(){return null}encode(Et,yt){return yt!=null&&this._throwError("not null",yt),Et.writeBytes(Empty$2)}decode(Et){return Et.readBytes(0),null}}const BN_0=BigInt(0),BN_1=BigInt(1),BN_MAX_UINT256=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");class NumberCoder extends Coder{constructor(yt,Ct,$t){const At=(Ct?"int":"uint")+yt*8;super(At,At,$t,!1);wu(this,"size");wu(this,"signed");defineProperties$4(this,{size:yt,signed:Ct},{size:"number",signed:"boolean"})}defaultValue(){return 0}encode(yt,Ct){let $t=getBigInt(Typed.dereference(Ct,this.type)),At=mask(BN_MAX_UINT256,WordSize*8);if(this.signed){let Bt=mask(At,this.size*8-1);($t>Bt||$t<-(Bt+BN_1))&&this._throwError("value out-of-bounds",Ct),$t=toTwos($t,8*WordSize)}else($t<BN_0||$t>mask(At,this.size*8))&&this._throwError("value out-of-bounds",Ct);return yt.writeValue($t)}decode(yt){let Ct=mask(yt.readValue(),this.size*8);return this.signed&&(Ct=fromTwos(Ct,this.size*8)),Ct}}class StringCoder extends DynamicBytesCoder{constructor(Et){super("string",Et)}defaultValue(){return""}encode(Et,yt){return super.encode(Et,toUtf8Bytes(Typed.dereference(yt,"string")))}decode(Et){return toUtf8String(super.decode(Et))}}class TupleCoder extends Coder{constructor(yt,Ct){let $t=!1;const At=[];yt.forEach(Dt=>{Dt.dynamic&&($t=!0),At.push(Dt.type)});const Bt="tuple("+At.join(",")+")";super("tuple",Bt,Ct,$t);wu(this,"coders");defineProperties$4(this,{coders:Object.freeze(yt.slice())})}defaultValue(){const yt=[];this.coders.forEach($t=>{yt.push($t.defaultValue())});const Ct=this.coders.reduce(($t,At)=>{const Bt=At.localName;return Bt&&($t[Bt]||($t[Bt]=0),$t[Bt]++),$t},{});return this.coders.forEach(($t,At)=>{let Bt=$t.localName;!Bt||Ct[Bt]!==1||(Bt==="length"&&(Bt="_length"),yt[Bt]==null&&(yt[Bt]=yt[At]))}),Object.freeze(yt)}encode(yt,Ct){const $t=Typed.dereference(Ct,"tuple");return pack(yt,this.coders,$t)}decode(yt){return unpack(yt,this.coders)}}function id$2(ht){return keccak256(toUtf8Bytes(ht))}function setify(ht){const Et=new Set;return ht.forEach(yt=>Et.add(yt)),Object.freeze(Et)}const _kwVisibDeploy="external public payable override",KwVisibDeploy=setify(_kwVisibDeploy.split(" ")),_kwVisib="constant external internal payable private public pure view override",KwVisib=setify(_kwVisib.split(" ")),_kwTypes="constructor error event fallback function receive struct",KwTypes=setify(_kwTypes.split(" ")),_kwModifiers="calldata memory storage payable indexed",KwModifiers=setify(_kwModifiers.split(" ")),_kwOther="tuple returns",_keywords=[_kwTypes,_kwModifiers,_kwOther,_kwVisib].join(" "),Keywords=setify(_keywords.split(" ")),SimpleTokens={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},regexWhitespacePrefix=new RegExp("^(\\s*)"),regexNumberPrefix=new RegExp("^([0-9]+)"),regexIdPrefix=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),regexId=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),regexType=new RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$");var po,Po,$s,Vs;const Ns=class Ns{constructor(Et){Ku(this,$s);Ku(this,po);Ku(this,Po);Wu(this,po,0),Wu(this,Po,Et.slice())}get offset(){return qn(this,po)}get length(){return qn(this,Po).length-qn(this,po)}clone(){return new Ns(qn(this,Po))}reset(){Wu(this,po,0)}popKeyword(Et){const yt=this.peek();if(yt.type!=="KEYWORD"||!Et.has(yt.text))throw new Error(`expected keyword ${yt.text}`);return this.pop().text}popType(Et){if(this.peek().type!==Et){const yt=this.peek();throw new Error(`expected ${Et}; got ${yt.type} ${JSON.stringify(yt.text)}`)}return this.pop().text}popParen(){const Et=this.peek();if(Et.type!=="OPEN_PAREN")throw new Error("bad start");const yt=Pu(this,$s,Vs).call(this,qn(this,po)+1,Et.match+1);return Wu(this,po,Et.match+1),yt}popParams(){const Et=this.peek();if(Et.type!=="OPEN_PAREN")throw new Error("bad start");const yt=[];for(;qn(this,po)<Et.match-1;){const Ct=this.peek().linkNext;yt.push(Pu(this,$s,Vs).call(this,qn(this,po)+1,Ct)),Wu(this,po,Ct)}return Wu(this,po,Et.match+1),yt}peek(){if(qn(this,po)>=qn(this,Po).length)throw new Error("out-of-bounds");return qn(this,Po)[qn(this,po)]}peekKeyword(Et){const yt=this.peekType("KEYWORD");return yt!=null&&Et.has(yt)?yt:null}peekType(Et){if(this.length===0)return null;const yt=this.peek();return yt.type===Et?yt.text:null}pop(){const Et=this.peek();return Zs(this,po)._++,Et}toString(){const Et=[];for(let yt=qn(this,po);yt<qn(this,Po).length;yt++){const Ct=qn(this,Po)[yt];Et.push(`${Ct.type}:${Ct.text}`)}return`<TokenString ${Et.join(" ")}>`}};po=new WeakMap,Po=new WeakMap,$s=new WeakSet,Vs=function(Et=0,yt=0){return new Ns(qn(this,Po).slice(Et,yt).map(Ct=>Object.freeze(Object.assign({},Ct,{match:Ct.match-Et,linkBack:Ct.linkBack-Et,linkNext:Ct.linkNext-Et}))))};let TokenString=Ns;function lex(ht){const Et=[],yt=Bt=>{const Dt=At<ht.length?JSON.stringify(ht[At]):"$EOI";throw new Error(`invalid token ${Dt} at ${At}: ${Bt}`)};let Ct=[],$t=[],At=0;for(;At<ht.length;){let Bt=ht.substring(At),Dt=Bt.match(regexWhitespacePrefix);Dt&&(At+=Dt[1].length,Bt=ht.substring(At));const Ft={depth:Ct.length,linkBack:-1,linkNext:-1,match:-1,type:"",text:"",offset:At,value:-1};Et.push(Ft);let kt=SimpleTokens[Bt[0]]||"";if(kt){if(Ft.type=kt,Ft.text=Bt[0],At++,kt==="OPEN_PAREN")Ct.push(Et.length-1),$t.push(Et.length-1);else if(kt=="CLOSE_PAREN")Ct.length===0&&yt("no matching open bracket"),Ft.match=Ct.pop(),Et[Ft.match].match=Et.length-1,Ft.depth--,Ft.linkBack=$t.pop(),Et[Ft.linkBack].linkNext=Et.length-1;else if(kt==="COMMA")Ft.linkBack=$t.pop(),Et[Ft.linkBack].linkNext=Et.length-1,$t.push(Et.length-1);else if(kt==="OPEN_BRACKET")Ft.type="BRACKET";else if(kt==="CLOSE_BRACKET"){let Mt=Et.pop().text;if(Et.length>0&&Et[Et.length-1].type==="NUMBER"){const Nt=Et.pop().text;Mt=Nt+Mt,Et[Et.length-1].value=getNumber(Nt)}if(Et.length===0||Et[Et.length-1].type!=="BRACKET")throw new Error("missing opening bracket");Et[Et.length-1].text+=Mt}continue}if(Dt=Bt.match(regexIdPrefix),Dt){if(Ft.text=Dt[1],At+=Ft.text.length,Keywords.has(Ft.text)){Ft.type="KEYWORD";continue}if(Ft.text.match(regexType)){Ft.type="TYPE";continue}Ft.type="ID";continue}if(Dt=Bt.match(regexNumberPrefix),Dt){Ft.text=Dt[1],Ft.type="NUMBER",At+=Ft.text.length;continue}throw new Error(`unexpected token ${JSON.stringify(Bt[0])} at position ${At}`)}return new TokenString(Et.map(Bt=>Object.freeze(Bt)))}function allowSingle(ht,Et){let yt=[];for(const Ct in Et.keys())ht.has(Ct)&&yt.push(Ct);if(yt.length>1)throw new Error(`conflicting types: ${yt.join(", ")}`)}function consumeName(ht,Et){if(Et.peekKeyword(KwTypes)){const yt=Et.pop().text;if(yt!==ht)throw new Error(`expected ${ht}, got ${yt}`)}return Et.popType("ID")}function consumeKeywords(ht,Et){const yt=new Set;for(;;){const Ct=ht.peekType("KEYWORD");if(Ct==null||Et&&!Et.has(Ct))break;if(ht.pop(),yt.has(Ct))throw new Error(`duplicate keywords: ${JSON.stringify(Ct)}`);yt.add(Ct)}return Object.freeze(yt)}function consumeMutability(ht){let Et=consumeKeywords(ht,KwVisib);return allowSingle(Et,setify("constant payable nonpayable".split(" "))),allowSingle(Et,setify("pure view payable nonpayable".split(" "))),Et.has("view")?"view":Et.has("pure")?"pure":Et.has("payable")?"payable":Et.has("nonpayable")?"nonpayable":Et.has("constant")?"view":"nonpayable"}function consumeParams(ht,Et){return ht.popParams().map(yt=>ParamType.from(yt,Et))}function consumeGas(ht){if(ht.peekType("AT")){if(ht.pop(),ht.peekType("NUMBER"))return getBigInt(ht.pop().text);throw new Error("invalid gas")}return null}function consumeEoi(ht){if(ht.length)throw new Error(`unexpected tokens at offset ${ht.offset}: ${ht.toString()}`)}const regexArrayType=new RegExp(/^(.*)\[([0-9]*)\]$/);function verifyBasicType(ht){const Et=ht.match(regexType);if(assertArgument(Et,"invalid type","type",ht),ht==="uint")return"uint256";if(ht==="int")return"int256";if(Et[2]){const yt=parseInt(Et[2]);assertArgument(yt!==0&&yt<=32,"invalid bytes length","type",ht)}else if(Et[3]){const yt=parseInt(Et[3]);assertArgument(yt!==0&&yt<=256&&yt%8===0,"invalid numeric width","type",ht)}return ht}const _guard={},internal$1=Symbol.for("_ethers_internal"),ParamTypeInternal="_ParamTypeInternal",ErrorFragmentInternal="_ErrorInternal",EventFragmentInternal="_EventInternal",ConstructorFragmentInternal="_ConstructorInternal",FallbackFragmentInternal="_FallbackInternal",FunctionFragmentInternal="_FunctionInternal",StructFragmentInternal="_StructInternal";var ys,Ts;const Ro=class Ro{constructor(Et,yt,Ct,$t,At,Bt,Dt,Ft){Ku(this,ys);wu(this,"name");wu(this,"type");wu(this,"baseType");wu(this,"indexed");wu(this,"components");wu(this,"arrayLength");wu(this,"arrayChildren");if(assertPrivate(Et,_guard,"ParamType"),Object.defineProperty(this,internal$1,{value:ParamTypeInternal}),Bt&&(Bt=Object.freeze(Bt.slice())),$t==="array"){if(Dt==null||Ft==null)throw new Error("")}else if(Dt!=null||Ft!=null)throw new Error("");if($t==="tuple"){if(Bt==null)throw new Error("")}else if(Bt!=null)throw new Error("");defineProperties$4(this,{name:yt,type:Ct,baseType:$t,indexed:At,components:Bt,arrayLength:Dt,arrayChildren:Ft})}format(Et){if(Et==null&&(Et="sighash"),Et==="json"){const Ct=this.name||"";if(this.isArray()){const At=JSON.parse(this.arrayChildren.format("json"));return At.name=Ct,At.type+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`,JSON.stringify(At)}const $t={type:this.baseType==="tuple"?"tuple":this.type,name:Ct};return typeof this.indexed=="boolean"&&($t.indexed=this.indexed),this.isTuple()&&($t.components=this.components.map(At=>JSON.parse(At.format(Et)))),JSON.stringify($t)}let yt="";return this.isArray()?(yt+=this.arrayChildren.format(Et),yt+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`):this.isTuple()?yt+="("+this.components.map(Ct=>Ct.format(Et)).join(Et==="full"?", ":",")+")":yt+=this.type,Et!=="sighash"&&(this.indexed===!0&&(yt+=" indexed"),Et==="full"&&this.name&&(yt+=" "+this.name)),yt}isArray(){return this.baseType==="array"}isTuple(){return this.baseType==="tuple"}isIndexable(){return this.indexed!=null}walk(Et,yt){if(this.isArray()){if(!Array.isArray(Et))throw new Error("invalid array value");if(this.arrayLength!==-1&&Et.length!==this.arrayLength)throw new Error("array is wrong length");const Ct=this;return Et.map($t=>Ct.arrayChildren.walk($t,yt))}if(this.isTuple()){if(!Array.isArray(Et))throw new Error("invalid tuple value");if(Et.length!==this.components.length)throw new Error("array is wrong length");const Ct=this;return Et.map(($t,At)=>Ct.components[At].walk($t,yt))}return yt(this.type,Et)}async walkAsync(Et,yt){const Ct=[],$t=[Et];return Pu(this,ys,Ts).call(this,Ct,Et,yt,At=>{$t[0]=At}),Ct.length&&await Promise.all(Ct),$t[0]}static from(Et,yt){if(Ro.isParamType(Et))return Et;if(typeof Et=="string")try{return Ro.from(lex(Et),yt)}catch{assertArgument(!1,"invalid param type","obj",Et)}else if(Et instanceof TokenString){let Dt="",Ft="",kt=null;consumeKeywords(Et,setify(["tuple"])).has("tuple")||Et.peekType("OPEN_PAREN")?(Ft="tuple",kt=Et.popParams().map(Kt=>Ro.from(Kt)),Dt=`tuple(${kt.map(Kt=>Kt.format()).join(",")})`):(Dt=verifyBasicType(Et.popType("TYPE")),Ft=Dt);let Mt=null,Nt=null;for(;Et.length&&Et.peekType("BRACKET");){const Kt=Et.pop();Mt=new Ro(_guard,"",Dt,Ft,null,kt,Nt,Mt),Nt=Kt.value,Dt+=Kt.text,Ft="array",kt=null}let jt=null;if(consumeKeywords(Et,KwModifiers).has("indexed")){if(!yt)throw new Error("");jt=!0}const Vt=Et.peekType("ID")?Et.pop().text:"";if(Et.length)throw new Error("leftover tokens");return new Ro(_guard,Vt,Dt,Ft,jt,kt,Nt,Mt)}const Ct=Et.name;assertArgument(!Ct||typeof Ct=="string"&&Ct.match(regexId),"invalid name","obj.name",Ct);let $t=Et.indexed;$t!=null&&(assertArgument(yt,"parameter cannot be indexed","obj.indexed",Et.indexed),$t=!!$t);let At=Et.type,Bt=At.match(regexArrayType);if(Bt){const Dt=parseInt(Bt[2]||"-1"),Ft=Ro.from({type:Bt[1],components:Et.components});return new Ro(_guard,Ct||"",At,"array",$t,null,Dt,Ft)}if(At==="tuple"||At.startsWith("tuple(")||At.startsWith("(")){const Dt=Et.components!=null?Et.components.map(kt=>Ro.from(kt)):null;return new Ro(_guard,Ct||"",At,"tuple",$t,Dt,null,null)}return At=verifyBasicType(Et.type),new Ro(_guard,Ct||"",At,At,$t,null,null,null)}static isParamType(Et){return Et&&Et[internal$1]===ParamTypeInternal}};ys=new WeakSet,Ts=function(Et,yt,Ct,$t){if(this.isArray()){if(!Array.isArray(yt))throw new Error("invalid array value");if(this.arrayLength!==-1&&yt.length!==this.arrayLength)throw new Error("array is wrong length");const Bt=this.arrayChildren,Dt=yt.slice();Dt.forEach((Ft,kt)=>{var Mt;Pu(Mt=Bt,ys,Ts).call(Mt,Et,Ft,Ct,Nt=>{Dt[kt]=Nt})}),$t(Dt);return}if(this.isTuple()){const Bt=this.components;let Dt;if(Array.isArray(yt))Dt=yt.slice();else{if(yt==null||typeof yt!="object")throw new Error("invalid tuple value");Dt=Bt.map(Ft=>{if(!Ft.name)throw new Error("cannot use object value with unnamed components");if(!(Ft.name in yt))throw new Error(`missing value for component ${Ft.name}`);return yt[Ft.name]})}if(Dt.length!==this.components.length)throw new Error("array is wrong length");Dt.forEach((Ft,kt)=>{var Mt;Pu(Mt=Bt[kt],ys,Ts).call(Mt,Et,Ft,Ct,Nt=>{Dt[kt]=Nt})}),$t(Dt);return}const At=Ct(this.type,yt);At.then?Et.push(async function(){$t(await At)}()):$t(At)};let ParamType=Ro;class Fragment{constructor(Et,yt,Ct){wu(this,"type");wu(this,"inputs");assertPrivate(Et,_guard,"Fragment"),Ct=Object.freeze(Ct.slice()),defineProperties$4(this,{type:yt,inputs:Ct})}static from(Et){if(typeof Et=="string"){try{Fragment.from(JSON.parse(Et))}catch{}return Fragment.from(lex(Et))}if(Et instanceof TokenString)switch(Et.peekKeyword(KwTypes)){case"constructor":return ConstructorFragment.from(Et);case"error":return ErrorFragment.from(Et);case"event":return EventFragment.from(Et);case"fallback":case"receive":return FallbackFragment.from(Et);case"function":return FunctionFragment.from(Et);case"struct":return StructFragment.from(Et)}else if(typeof Et=="object"){switch(Et.type){case"constructor":return ConstructorFragment.from(Et);case"error":return ErrorFragment.from(Et);case"event":return EventFragment.from(Et);case"fallback":case"receive":return FallbackFragment.from(Et);case"function":return FunctionFragment.from(Et);case"struct":return StructFragment.from(Et)}assert(!1,`unsupported type: ${Et.type}`,"UNSUPPORTED_OPERATION",{operation:"Fragment.from"})}assertArgument(!1,"unsupported frgament object","obj",Et)}static isConstructor(Et){return ConstructorFragment.isFragment(Et)}static isError(Et){return ErrorFragment.isFragment(Et)}static isEvent(Et){return EventFragment.isFragment(Et)}static isFunction(Et){return FunctionFragment.isFragment(Et)}static isStruct(Et){return StructFragment.isFragment(Et)}}class NamedFragment extends Fragment{constructor(yt,Ct,$t,At){super(yt,Ct,At);wu(this,"name");assertArgument(typeof $t=="string"&&$t.match(regexId),"invalid identifier","name",$t),At=Object.freeze(At.slice()),defineProperties$4(this,{name:$t})}}function joinParams(ht,Et){return"("+Et.map(yt=>yt.format(ht)).join(ht==="full"?", ":",")+")"}class ErrorFragment extends NamedFragment{constructor(Et,yt,Ct){super(Et,"error",yt,Ct),Object.defineProperty(this,internal$1,{value:ErrorFragmentInternal})}get selector(){return id$2(this.format("sighash")).substring(0,10)}format(Et){if(Et==null&&(Et="sighash"),Et==="json")return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(Ct=>JSON.parse(Ct.format(Et)))});const yt=[];return Et!=="sighash"&&yt.push("error"),yt.push(this.name+joinParams(Et,this.inputs)),yt.join(" ")}static from(Et){if(ErrorFragment.isFragment(Et))return Et;if(typeof Et=="string")return ErrorFragment.from(lex(Et));if(Et instanceof TokenString){const yt=consumeName("error",Et),Ct=consumeParams(Et);return consumeEoi(Et),new ErrorFragment(_guard,yt,Ct)}return new ErrorFragment(_guard,Et.name,Et.inputs?Et.inputs.map(ParamType.from):[])}static isFragment(Et){return Et&&Et[internal$1]===ErrorFragmentInternal}}class EventFragment extends NamedFragment{constructor(yt,Ct,$t,At){super(yt,"event",Ct,$t);wu(this,"anonymous");Object.defineProperty(this,internal$1,{value:EventFragmentInternal}),defineProperties$4(this,{anonymous:At})}get topicHash(){return id$2(this.format("sighash"))}format(yt){if(yt==null&&(yt="sighash"),yt==="json")return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map($t=>JSON.parse($t.format(yt)))});const Ct=[];return yt!=="sighash"&&Ct.push("event"),Ct.push(this.name+joinParams(yt,this.inputs)),yt!=="sighash"&&this.anonymous&&Ct.push("anonymous"),Ct.join(" ")}static getTopicHash(yt,Ct){return Ct=(Ct||[]).map(At=>ParamType.from(At)),new EventFragment(_guard,yt,Ct,!1).topicHash}static from(yt){if(EventFragment.isFragment(yt))return yt;if(typeof yt=="string")try{return EventFragment.from(lex(yt))}catch{assertArgument(!1,"invalid event fragment","obj",yt)}else if(yt instanceof TokenString){const Ct=consumeName("event",yt),$t=consumeParams(yt,!0),At=!!consumeKeywords(yt,setify(["anonymous"])).has("anonymous");return consumeEoi(yt),new EventFragment(_guard,Ct,$t,At)}return new EventFragment(_guard,yt.name,yt.inputs?yt.inputs.map(Ct=>ParamType.from(Ct,!0)):[],!!yt.anonymous)}static isFragment(yt){return yt&&yt[internal$1]===EventFragmentInternal}}class ConstructorFragment extends Fragment{constructor(yt,Ct,$t,At,Bt){super(yt,Ct,$t);wu(this,"payable");wu(this,"gas");Object.defineProperty(this,internal$1,{value:ConstructorFragmentInternal}),defineProperties$4(this,{payable:At,gas:Bt})}format(yt){if(assert(yt!=null&&yt!=="sighash","cannot format a constructor for sighash","UNSUPPORTED_OPERATION",{operation:"format(sighash)"}),yt==="json")return JSON.stringify({type:"constructor",stateMutability:this.payable?"payable":"undefined",payable:this.payable,gas:this.gas!=null?this.gas:void 0,inputs:this.inputs.map($t=>JSON.parse($t.format(yt)))});const Ct=[`constructor${joinParams(yt,this.inputs)}`];return this.payable&&Ct.push("payable"),this.gas!=null&&Ct.push(`@${this.gas.toString()}`),Ct.join(" ")}static from(yt){if(ConstructorFragment.isFragment(yt))return yt;if(typeof yt=="string")try{return ConstructorFragment.from(lex(yt))}catch{assertArgument(!1,"invalid constuctor fragment","obj",yt)}else if(yt instanceof TokenString){consumeKeywords(yt,setify(["constructor"]));const Ct=consumeParams(yt),$t=!!consumeKeywords(yt,KwVisibDeploy).has("payable"),At=consumeGas(yt);return consumeEoi(yt),new ConstructorFragment(_guard,"constructor",Ct,$t,At)}return new ConstructorFragment(_guard,"constructor",yt.inputs?yt.inputs.map(ParamType.from):[],!!yt.payable,yt.gas!=null?yt.gas:null)}static isFragment(yt){return yt&&yt[internal$1]===ConstructorFragmentInternal}}class FallbackFragment extends Fragment{constructor(yt,Ct,$t){super(yt,"fallback",Ct);wu(this,"payable");Object.defineProperty(this,internal$1,{value:FallbackFragmentInternal}),defineProperties$4(this,{payable:$t})}format(yt){const Ct=this.inputs.length===0?"receive":"fallback";if(yt==="json"){const $t=this.payable?"payable":"nonpayable";return JSON.stringify({type:Ct,stateMutability:$t})}return`${Ct}()${this.payable?" payable":""}`}static from(yt){if(FallbackFragment.isFragment(yt))return yt;if(typeof yt=="string")try{return FallbackFragment.from(lex(yt))}catch{assertArgument(!1,"invalid fallback fragment","obj",yt)}else if(yt instanceof TokenString){const Ct=yt.toString(),$t=yt.peekKeyword(setify(["fallback","receive"]));if(assertArgument($t,"type must be fallback or receive","obj",Ct),yt.popKeyword(setify(["fallback","receive"]))==="receive"){const Ft=consumeParams(yt);return assertArgument(Ft.length===0,"receive cannot have arguments","obj.inputs",Ft),consumeKeywords(yt,setify(["payable"])),consumeEoi(yt),new FallbackFragment(_guard,[],!0)}let Bt=consumeParams(yt);Bt.length?assertArgument(Bt.length===1&&Bt[0].type==="bytes","invalid fallback inputs","obj.inputs",Bt.map(Ft=>Ft.format("minimal")).join(", ")):Bt=[ParamType.from("bytes")];const Dt=consumeMutability(yt);if(assertArgument(Dt==="nonpayable"||Dt==="payable","fallback cannot be constants","obj.stateMutability",Dt),consumeKeywords(yt,setify(["returns"])).has("returns")){const Ft=consumeParams(yt);assertArgument(Ft.length===1&&Ft[0].type==="bytes","invalid fallback outputs","obj.outputs",Ft.map(kt=>kt.format("minimal")).join(", "))}return consumeEoi(yt),new FallbackFragment(_guard,Bt,Dt==="payable")}if(yt.type==="receive")return new FallbackFragment(_guard,[],!0);if(yt.type==="fallback"){const Ct=[ParamType.from("bytes")],$t=yt.stateMutability==="payable";return new FallbackFragment(_guard,Ct,$t)}assertArgument(!1,"invalid fallback description","obj",yt)}static isFragment(yt){return yt&&yt[internal$1]===FallbackFragmentInternal}}class FunctionFragment extends NamedFragment{constructor(yt,Ct,$t,At,Bt,Dt){super(yt,"function",Ct,At);wu(this,"constant");wu(this,"outputs");wu(this,"stateMutability");wu(this,"payable");wu(this,"gas");Object.defineProperty(this,internal$1,{value:FunctionFragmentInternal}),Bt=Object.freeze(Bt.slice()),defineProperties$4(this,{constant:$t==="view"||$t==="pure",gas:Dt,outputs:Bt,payable:$t==="payable",stateMutability:$t})}get selector(){return id$2(this.format("sighash")).substring(0,10)}format(yt){if(yt==null&&(yt="sighash"),yt==="json")return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas!=null?this.gas:void 0,inputs:this.inputs.map($t=>JSON.parse($t.format(yt))),outputs:this.outputs.map($t=>JSON.parse($t.format(yt)))});const Ct=[];return yt!=="sighash"&&Ct.push("function"),Ct.push(this.name+joinParams(yt,this.inputs)),yt!=="sighash"&&(this.stateMutability!=="nonpayable"&&Ct.push(this.stateMutability),this.outputs&&this.outputs.length&&(Ct.push("returns"),Ct.push(joinParams(yt,this.outputs))),this.gas!=null&&Ct.push(`@${this.gas.toString()}`)),Ct.join(" ")}static getSelector(yt,Ct){return Ct=(Ct||[]).map(At=>ParamType.from(At)),new FunctionFragment(_guard,yt,"view",Ct,[],null).selector}static from(yt){if(FunctionFragment.isFragment(yt))return yt;if(typeof yt=="string")try{return FunctionFragment.from(lex(yt))}catch{assertArgument(!1,"invalid function fragment","obj",yt)}else if(yt instanceof TokenString){const $t=consumeName("function",yt),At=consumeParams(yt),Bt=consumeMutability(yt);let Dt=[];consumeKeywords(yt,setify(["returns"])).has("returns")&&(Dt=consumeParams(yt));const Ft=consumeGas(yt);return consumeEoi(yt),new FunctionFragment(_guard,$t,Bt,At,Dt,Ft)}let Ct=yt.stateMutability;return Ct==null&&(Ct="payable",typeof yt.constant=="boolean"?(Ct="view",yt.constant||(Ct="payable",typeof yt.payable=="boolean"&&!yt.payable&&(Ct="nonpayable"))):typeof yt.payable=="boolean"&&!yt.payable&&(Ct="nonpayable")),new FunctionFragment(_guard,yt.name,Ct,yt.inputs?yt.inputs.map(ParamType.from):[],yt.outputs?yt.outputs.map(ParamType.from):[],yt.gas!=null?yt.gas:null)}static isFragment(yt){return yt&&yt[internal$1]===FunctionFragmentInternal}}class StructFragment extends NamedFragment{constructor(Et,yt,Ct){super(Et,"struct",yt,Ct),Object.defineProperty(this,internal$1,{value:StructFragmentInternal})}format(){throw new Error("@TODO")}static from(Et){if(typeof Et=="string")try{return StructFragment.from(lex(Et))}catch{assertArgument(!1,"invalid struct fragment","obj",Et)}else if(Et instanceof TokenString){const yt=consumeName("struct",Et),Ct=consumeParams(Et);return consumeEoi(Et),new StructFragment(_guard,yt,Ct)}return new StructFragment(_guard,Et.name,Et.inputs?Et.inputs.map(ParamType.from):[])}static isFragment(Et){return Et&&Et[internal$1]===StructFragmentInternal}}const PanicReasons$1=new Map;PanicReasons$1.set(0,"GENERIC_PANIC");PanicReasons$1.set(1,"ASSERT_FALSE");PanicReasons$1.set(17,"OVERFLOW");PanicReasons$1.set(18,"DIVIDE_BY_ZERO");PanicReasons$1.set(33,"ENUM_RANGE_ERROR");PanicReasons$1.set(34,"BAD_STORAGE_DATA");PanicReasons$1.set(49,"STACK_UNDERFLOW");PanicReasons$1.set(50,"ARRAY_RANGE_ERROR");PanicReasons$1.set(65,"OUT_OF_MEMORY");PanicReasons$1.set(81,"UNINITIALIZED_FUNCTION_CALL");const paramTypeBytes=new RegExp(/^bytes([0-9]*)$/),paramTypeNumber=new RegExp(/^(u?int)([0-9]*)$/);let defaultCoder=null,defaultMaxInflation=1024;function getBuiltinCallException(ht,Et,yt,Ct){let $t="missing revert data",At=null;const Bt=null;let Dt=null;if(yt){$t="execution reverted";const kt=getBytes(yt);if(yt=hexlify(yt),kt.length===0)$t+=" (no data present; likely require(false) occurred",At="require(false)";else if(kt.length%32!==4)$t+=" (could not decode reason; invalid data length)";else if(hexlify(kt.slice(0,4))==="0x08c379a0")try{At=Ct.decode(["string"],kt.slice(4))[0],Dt={signature:"Error(string)",name:"Error",args:[At]},$t+=`: ${JSON.stringify(At)}`}catch{$t+=" (could not decode reason; invalid string data)"}else if(hexlify(kt.slice(0,4))==="0x4e487b71")try{const Mt=Number(Ct.decode(["uint256"],kt.slice(4))[0]);Dt={signature:"Panic(uint256)",name:"Panic",args:[Mt]},At=`Panic due to ${PanicReasons$1.get(Mt)||"UNKNOWN"}(${Mt})`,$t+=`: ${At}`}catch{$t+=" (could not decode panic code)"}else $t+=" (unknown custom error)"}const Ft={to:Et.to?getAddress(Et.to):null,data:Et.data||"0x"};return Et.from&&(Ft.from=getAddress(Et.from)),makeError($t,"CALL_EXCEPTION",{action:ht,data:yt,reason:At,transaction:Ft,invocation:Bt,revert:Dt})}var Zo,hs;const Ls=class Ls{constructor(){Ku(this,Zo)}getDefaultValue(Et){const yt=Et.map($t=>Pu(this,Zo,hs).call(this,ParamType.from($t)));return new TupleCoder(yt,"_").defaultValue()}encode(Et,yt){assertArgumentCount(yt.length,Et.length,"types/values length mismatch");const Ct=Et.map(Bt=>Pu(this,Zo,hs).call(this,ParamType.from(Bt))),$t=new TupleCoder(Ct,"_"),At=new Writer;return $t.encode(At,yt),At.data}decode(Et,yt,Ct){const $t=Et.map(Bt=>Pu(this,Zo,hs).call(this,ParamType.from(Bt)));return new TupleCoder($t,"_").decode(new Reader(yt,Ct,defaultMaxInflation))}static _setDefaultMaxInflation(Et){assertArgument(typeof Et=="number"&&Number.isInteger(Et),"invalid defaultMaxInflation factor","value",Et),defaultMaxInflation=Et}static defaultAbiCoder(){return defaultCoder==null&&(defaultCoder=new Ls),defaultCoder}static getBuiltinCallException(Et,yt,Ct){return getBuiltinCallException(Et,yt,Ct,Ls.defaultAbiCoder())}};Zo=new WeakSet,hs=function(Et){if(Et.isArray())return new ArrayCoder(Pu(this,Zo,hs).call(this,Et.arrayChildren),Et.arrayLength,Et.name);if(Et.isTuple())return new TupleCoder(Et.components.map(Ct=>Pu(this,Zo,hs).call(this,Ct)),Et.name);switch(Et.baseType){case"address":return new AddressCoder(Et.name);case"bool":return new BooleanCoder(Et.name);case"string":return new StringCoder(Et.name);case"bytes":return new BytesCoder(Et.name);case"":return new NullCoder(Et.name)}let yt=Et.type.match(paramTypeNumber);if(yt){let Ct=parseInt(yt[2]||"256");return assertArgument(Ct!==0&&Ct<=256&&Ct%8===0,"invalid "+yt[1]+" bit length","param",Et),new NumberCoder(Ct/8,yt[1]==="int",Et.name)}if(yt=Et.type.match(paramTypeBytes),yt){let Ct=parseInt(yt[1]);return assertArgument(Ct!==0&&Ct<=32,"invalid bytes length","param",Et),new FixedBytesCoder(Ct,Et.name)}assertArgument(!1,"invalid type","type",Et.type)};let AbiCoder=Ls;class LogDescription{constructor(Et,yt,Ct){wu(this,"fragment");wu(this,"name");wu(this,"signature");wu(this,"topic");wu(this,"args");const $t=Et.name,At=Et.format();defineProperties$4(this,{fragment:Et,name:$t,signature:At,topic:yt,args:Ct})}}class TransactionDescription{constructor(Et,yt,Ct,$t){wu(this,"fragment");wu(this,"name");wu(this,"args");wu(this,"signature");wu(this,"selector");wu(this,"value");const At=Et.name,Bt=Et.format();defineProperties$4(this,{fragment:Et,name:At,args:Ct,signature:Bt,selector:yt,value:$t})}}class ErrorDescription{constructor(Et,yt,Ct){wu(this,"fragment");wu(this,"name");wu(this,"args");wu(this,"signature");wu(this,"selector");const $t=Et.name,At=Et.format();defineProperties$4(this,{fragment:Et,name:$t,args:Ct,signature:At,selector:yt})}}class Indexed{constructor(Et){wu(this,"hash");wu(this,"_isIndexed");defineProperties$4(this,{hash:Et,_isIndexed:!0})}static isIndexed(Et){return!!(Et&&Et._isIndexed)}}const PanicReasons={0:"generic panic",1:"assert(false)",17:"arithmetic overflow",18:"division or modulo by zero",33:"enum overflow",34:"invalid encoded storage byte array accessed",49:"out-of-bounds array access; popping on an empty array",50:"out-of-bounds access of an array or bytesN",65:"out of memory",81:"uninitialized function"},BuiltinErrors={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:ht=>`reverted with reason string ${JSON.stringify(ht)}`},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"],reason:ht=>{let Et="unknown panic code";return ht>=0&&ht<=255&&PanicReasons[ht.toString()]&&(Et=PanicReasons[ht.toString()]),`reverted with panic code 0x${ht.toString(16)} (${Et})`}}};var Lo,jo,zo,Co,Ho,Ds,Fs;const xa=class xa{constructor(Et){Ku(this,Ho);wu(this,"fragments");wu(this,"deploy");wu(this,"fallback");wu(this,"receive");Ku(this,Lo);Ku(this,jo);Ku(this,zo);Ku(this,Co);let yt=[];typeof Et=="string"?yt=JSON.parse(Et):yt=Et,Wu(this,zo,new Map),Wu(this,Lo,new Map),Wu(this,jo,new Map);const Ct=[];for(const Bt of yt)try{Ct.push(Fragment.from(Bt))}catch(Dt){console.log(`[Warning] Invalid Fragment ${JSON.stringify(Bt)}:`,Dt.message)}defineProperties$4(this,{fragments:Object.freeze(Ct)});let $t=null,At=!1;Wu(this,Co,this.getAbiCoder()),this.fragments.forEach((Bt,Dt)=>{let Ft;switch(Bt.type){case"constructor":if(this.deploy){console.log("duplicate definition - constructor");return}defineProperties$4(this,{deploy:Bt});return;case"fallback":Bt.inputs.length===0?At=!0:(assertArgument(!$t||Bt.payable!==$t.payable,"conflicting fallback fragments",`fragments[${Dt}]`,Bt),$t=Bt,At=$t.payable);return;case"function":Ft=qn(this,zo);break;case"event":Ft=qn(this,jo);break;case"error":Ft=qn(this,Lo);break;default:return}const kt=Bt.format();Ft.has(kt)||Ft.set(kt,Bt)}),this.deploy||defineProperties$4(this,{deploy:ConstructorFragment.from("constructor()")}),defineProperties$4(this,{fallback:$t,receive:At})}format(Et){const yt=Et?"minimal":"full";return this.fragments.map($t=>$t.format(yt))}formatJson(){const Et=this.fragments.map(yt=>yt.format("json"));return JSON.stringify(Et.map(yt=>JSON.parse(yt)))}getAbiCoder(){return AbiCoder.defaultAbiCoder()}getFunctionName(Et){const yt=Pu(this,Ho,Ds).call(this,Et,null,!1);return assertArgument(yt,"no matching function","key",Et),yt.name}hasFunction(Et){return!!Pu(this,Ho,Ds).call(this,Et,null,!1)}getFunction(Et,yt){return Pu(this,Ho,Ds).call(this,Et,yt||null,!0)}forEachFunction(Et){const yt=Array.from(qn(this,zo).keys());yt.sort((Ct,$t)=>Ct.localeCompare($t));for(let Ct=0;Ct<yt.length;Ct++){const $t=yt[Ct];Et(qn(this,zo).get($t),Ct)}}getEventName(Et){const yt=Pu(this,Ho,Fs).call(this,Et,null,!1);return assertArgument(yt,"no matching event","key",Et),yt.name}hasEvent(Et){return!!Pu(this,Ho,Fs).call(this,Et,null,!1)}getEvent(Et,yt){return Pu(this,Ho,Fs).call(this,Et,yt||null,!0)}forEachEvent(Et){const yt=Array.from(qn(this,jo).keys());yt.sort((Ct,$t)=>Ct.localeCompare($t));for(let Ct=0;Ct<yt.length;Ct++){const $t=yt[Ct];Et(qn(this,jo).get($t),Ct)}}getError(Et,yt){if(isHexString(Et)){const $t=Et.toLowerCase();if(BuiltinErrors[$t])return ErrorFragment.from(BuiltinErrors[$t].signature);for(const At of qn(this,Lo).values())if($t===At.selector)return At;return null}if(Et.indexOf("(")===-1){const $t=[];for(const[At,Bt]of qn(this,Lo))At.split("(")[0]===Et&&$t.push(Bt);if($t.length===0)return Et==="Error"?ErrorFragment.from("error Error(string)"):Et==="Panic"?ErrorFragment.from("error Panic(uint256)"):null;if($t.length>1){const At=$t.map(Bt=>JSON.stringify(Bt.format())).join(", ");assertArgument(!1,`ambiguous error description (i.e. ${At})`,"name",Et)}return $t[0]}if(Et=ErrorFragment.from(Et).format(),Et==="Error(string)")return ErrorFragment.from("error Error(string)");if(Et==="Panic(uint256)")return ErrorFragment.from("error Panic(uint256)");const Ct=qn(this,Lo).get(Et);return Ct||null}forEachError(Et){const yt=Array.from(qn(this,Lo).keys());yt.sort((Ct,$t)=>Ct.localeCompare($t));for(let Ct=0;Ct<yt.length;Ct++){const $t=yt[Ct];Et(qn(this,Lo).get($t),Ct)}}_decodeParams(Et,yt){return qn(this,Co).decode(Et,yt)}_encodeParams(Et,yt){return qn(this,Co).encode(Et,yt)}encodeDeploy(Et){return this._encodeParams(this.deploy.inputs,Et||[])}decodeErrorResult(Et,yt){if(typeof Et=="string"){const Ct=this.getError(Et);assertArgument(Ct,"unknown error","fragment",Et),Et=Ct}return assertArgument(dataSlice(yt,0,4)===Et.selector,`data signature does not match error ${Et.name}.`,"data",yt),this._decodeParams(Et.inputs,dataSlice(yt,4))}encodeErrorResult(Et,yt){if(typeof Et=="string"){const Ct=this.getError(Et);assertArgument(Ct,"unknown error","fragment",Et),Et=Ct}return concat$6([Et.selector,this._encodeParams(Et.inputs,yt||[])])}decodeFunctionData(Et,yt){if(typeof Et=="string"){const Ct=this.getFunction(Et);assertArgument(Ct,"unknown function","fragment",Et),Et=Ct}return assertArgument(dataSlice(yt,0,4)===Et.selector,`data signature does not match function ${Et.name}.`,"data",yt),this._decodeParams(Et.inputs,dataSlice(yt,4))}encodeFunctionData(Et,yt){if(typeof Et=="string"){const Ct=this.getFunction(Et);assertArgument(Ct,"unknown function","fragment",Et),Et=Ct}return concat$6([Et.selector,this._encodeParams(Et.inputs,yt||[])])}decodeFunctionResult(Et,yt){if(typeof Et=="string"){const At=this.getFunction(Et);assertArgument(At,"unknown function","fragment",Et),Et=At}let Ct="invalid length for result data";const $t=getBytesCopy(yt);if($t.length%32===0)try{return qn(this,Co).decode(Et.outputs,$t)}catch{Ct="could not decode result data"}assert(!1,Ct,"BAD_DATA",{value:hexlify($t),info:{method:Et.name,signature:Et.format()}})}makeError(Et,yt){const Ct=getBytes(Et,"data"),$t=AbiCoder.getBuiltinCallException("call",yt,Ct);if($t.message.startsWith("execution reverted (unknown custom error)")){const Dt=hexlify(Ct.slice(0,4)),Ft=this.getError(Dt);if(Ft)try{const kt=qn(this,Co).decode(Ft.inputs,Ct.slice(4));$t.revert={name:Ft.name,signature:Ft.format(),args:kt},$t.reason=$t.revert.signature,$t.message=`execution reverted: ${$t.reason}`}catch{$t.message="execution reverted (coult not decode custom error)"}}const Bt=this.parseTransaction(yt);return Bt&&($t.invocation={method:Bt.name,signature:Bt.signature,args:Bt.args}),$t}encodeFunctionResult(Et,yt){if(typeof Et=="string"){const Ct=this.getFunction(Et);assertArgument(Ct,"unknown function","fragment",Et),Et=Ct}return hexlify(qn(this,Co).encode(Et.outputs,yt||[]))}encodeFilterTopics(Et,yt){if(typeof Et=="string"){const At=this.getEvent(Et);assertArgument(At,"unknown event","eventFragment",Et),Et=At}assert(yt.length<=Et.inputs.length,`too many arguments for ${Et.format()}`,"UNEXPECTED_ARGUMENT",{count:yt.length,expectedCount:Et.inputs.length});const Ct=[];Et.anonymous||Ct.push(Et.topicHash);const $t=(At,Bt)=>At.type==="string"?id$2(Bt):At.type==="bytes"?keccak256(hexlify(Bt)):(At.type==="bool"&&typeof Bt=="boolean"?Bt=Bt?"0x01":"0x00":At.type.match(/^u?int/)?Bt=toBeHex(Bt):At.type.match(/^bytes/)?Bt=zeroPadBytes(Bt,32):At.type==="address"&&qn(this,Co).encode(["address"],[Bt]),zeroPadValue(hexlify(Bt),32));for(yt.forEach((At,Bt)=>{const Dt=Et.inputs[Bt];if(!Dt.indexed){assertArgument(At==null,"cannot filter non-indexed parameters; must be null","contract."+Dt.name,At);return}At==null?Ct.push(null):Dt.baseType==="array"||Dt.baseType==="tuple"?assertArgument(!1,"filtering with tuples or arrays not supported","contract."+Dt.name,At):Array.isArray(At)?Ct.push(At.map(Ft=>$t(Dt,Ft))):Ct.push($t(Dt,At))});Ct.length&&Ct[Ct.length-1]===null;)Ct.pop();return Ct}encodeEventLog(Et,yt){if(typeof Et=="string"){const Bt=this.getEvent(Et);assertArgument(Bt,"unknown event","eventFragment",Et),Et=Bt}const Ct=[],$t=[],At=[];return Et.anonymous||Ct.push(Et.topicHash),assertArgument(yt.length===Et.inputs.length,"event arguments/values mismatch","values",yt),Et.inputs.forEach((Bt,Dt)=>{const Ft=yt[Dt];if(Bt.indexed)if(Bt.type==="string")Ct.push(id$2(Ft));else if(Bt.type==="bytes")Ct.push(keccak256(Ft));else{if(Bt.baseType==="tuple"||Bt.baseType==="array")throw new Error("not implemented");Ct.push(qn(this,Co).encode([Bt.type],[Ft]))}else $t.push(Bt),At.push(Ft)}),{data:qn(this,Co).encode($t,At),topics:Ct}}decodeEventLog(Et,yt,Ct){if(typeof Et=="string"){const zt=this.getEvent(Et);assertArgument(zt,"unknown event","eventFragment",Et),Et=zt}if(Ct!=null&&!Et.anonymous){const zt=Et.topicHash;assertArgument(isHexString(Ct[0],32)&&Ct[0].toLowerCase()===zt,"fragment/topic mismatch","topics[0]",Ct[0]),Ct=Ct.slice(1)}const $t=[],At=[],Bt=[];Et.inputs.forEach((zt,Vt)=>{zt.indexed?zt.type==="string"||zt.type==="bytes"||zt.baseType==="tuple"||zt.baseType==="array"?($t.push(ParamType.from({type:"bytes32",name:zt.name})),Bt.push(!0)):($t.push(zt),Bt.push(!1)):(At.push(zt),Bt.push(!1))});const Dt=Ct!=null?qn(this,Co).decode($t,concat$6(Ct)):null,Ft=qn(this,Co).decode(At,yt,!0),kt=[],Mt=[];let Nt=0,jt=0;return Et.inputs.forEach((zt,Vt)=>{let Kt=null;if(zt.indexed)if(Dt==null)Kt=new Indexed(null);else if(Bt[Vt])Kt=new Indexed(Dt[jt++]);else try{Kt=Dt[jt++]}catch(Xt){Kt=Xt}else try{Kt=Ft[Nt++]}catch(Xt){Kt=Xt}kt.push(Kt),Mt.push(zt.name||null)}),Result.fromItems(kt,Mt)}parseTransaction(Et){const yt=getBytes(Et.data,"tx.data"),Ct=getBigInt(Et.value!=null?Et.value:0,"tx.value"),$t=this.getFunction(hexlify(yt.slice(0,4)));if(!$t)return null;const At=qn(this,Co).decode($t.inputs,yt.slice(4));return new TransactionDescription($t,$t.selector,At,Ct)}parseCallResult(Et){throw new Error("@TODO")}parseLog(Et){const yt=this.getEvent(Et.topics[0]);return!yt||yt.anonymous?null:new LogDescription(yt,yt.topicHash,this.decodeEventLog(yt,Et.data,Et.topics))}parseError(Et){const yt=hexlify(Et),Ct=this.getError(dataSlice(yt,0,4));if(!Ct)return null;const $t=qn(this,Co).decode(Ct.inputs,dataSlice(yt,4));return new ErrorDescription(Ct,Ct.selector,$t)}static from(Et){return Et instanceof xa?Et:typeof Et=="string"?new xa(JSON.parse(Et)):typeof Et.formatJson=="function"?new xa(Et.formatJson()):typeof Et.format=="function"?new xa(Et.format("json")):new xa(Et)}};Lo=new WeakMap,jo=new WeakMap,zo=new WeakMap,Co=new WeakMap,Ho=new WeakSet,Ds=function(Et,yt,Ct){if(isHexString(Et)){const At=Et.toLowerCase();for(const Bt of qn(this,zo).values())if(At===Bt.selector)return Bt;return null}if(Et.indexOf("(")===-1){const At=[];for(const[Bt,Dt]of qn(this,zo))Bt.split("(")[0]===Et&&At.push(Dt);if(yt){const Bt=yt.length>0?yt[yt.length-1]:null;let Dt=yt.length,Ft=!0;Typed.isTyped(Bt)&&Bt.type==="overrides"&&(Ft=!1,Dt--);for(let kt=At.length-1;kt>=0;kt--){const Mt=At[kt].inputs.length;Mt!==Dt&&(!Ft||Mt!==Dt-1)&&At.splice(kt,1)}for(let kt=At.length-1;kt>=0;kt--){const Mt=At[kt].inputs;for(let Nt=0;Nt<yt.length;Nt++)if(Typed.isTyped(yt[Nt])){if(Nt>=Mt.length){if(yt[Nt].type==="overrides")continue;At.splice(kt,1);break}if(yt[Nt].type!==Mt[Nt].baseType){At.splice(kt,1);break}}}}if(At.length===1&&yt&&yt.length!==At[0].inputs.length){const Bt=yt[yt.length-1];(Bt==null||Array.isArray(Bt)||typeof Bt!="object")&&At.splice(0,1)}if(At.length===0)return null;if(At.length>1&&Ct){const Bt=At.map(Dt=>JSON.stringify(Dt.format())).join(", ");assertArgument(!1,`ambiguous function description (i.e. matches ${Bt})`,"key",Et)}return At[0]}const $t=qn(this,zo).get(FunctionFragment.from(Et).format());return $t||null},Fs=function(Et,yt,Ct){if(isHexString(Et)){const At=Et.toLowerCase();for(const Bt of qn(this,jo).values())if(At===Bt.topicHash)return Bt;return null}if(Et.indexOf("(")===-1){const At=[];for(const[Bt,Dt]of qn(this,jo))Bt.split("(")[0]===Et&&At.push(Dt);if(yt){for(let Bt=At.length-1;Bt>=0;Bt--)At[Bt].inputs.length<yt.length&&At.splice(Bt,1);for(let Bt=At.length-1;Bt>=0;Bt--){const Dt=At[Bt].inputs;for(let Ft=0;Ft<yt.length;Ft++)if(Typed.isTyped(yt[Ft])&&yt[Ft].type!==Dt[Ft].baseType){At.splice(Bt,1);break}}}if(At.length===0)return null;if(At.length>1&&Ct){const Bt=At.map(Dt=>JSON.stringify(Dt.format())).join(", ");assertArgument(!1,`ambiguous event description (i.e. matches ${Bt})`,"key",Et)}return At[0]}const $t=qn(this,jo).get(EventFragment.from(Et).format());return $t||null};let Interface=xa;const toChecksumAddress=ht=>getAddress(ht),isUnauthorized=ht=>[CODE_STATUS.UNAUTHORIZED,CODE_STATUS.TOKEN_INVALID].includes(ht),eventBus=new eventsExports.EventEmitter;var DP=20,RM=1,MAX_DP=1e6,MAX_POWER=1e6,NE=-7,PE=21,STRICT=!1,NAME="[big.js] ",INVALID=NAME+"Invalid ",INVALID_DP=INVALID+"decimal places",INVALID_RM=INVALID+"rounding mode",DIV_BY_ZERO=NAME+"Division by zero",P$2={},UNDEFINED=void 0,NUMERIC=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function _Big_(){function ht(Et){var yt=this;if(!(yt instanceof ht))return Et===UNDEFINED?_Big_():new ht(Et);if(Et instanceof ht)yt.s=Et.s,yt.e=Et.e,yt.c=Et.c.slice();else{if(typeof Et!="string"){if(ht.strict===!0&&typeof Et!="bigint")throw TypeError(INVALID+"value");Et=Et===0&&1/Et<0?"-0":String(Et)}parse$1(yt,Et)}yt.constructor=ht}return ht.prototype=P$2,ht.DP=DP,ht.RM=RM,ht.NE=NE,ht.PE=PE,ht.strict=STRICT,ht.roundDown=0,ht.roundHalfUp=1,ht.roundHalfEven=2,ht.roundUp=3,ht}function parse$1(ht,Et){var yt,Ct,$t;if(!NUMERIC.test(Et))throw Error(INVALID+"number");for(ht.s=Et.charAt(0)=="-"?(Et=Et.slice(1),-1):1,(yt=Et.indexOf("."))>-1&&(Et=Et.replace(".","")),(Ct=Et.search(/e/i))>0?(yt<0&&(yt=Ct),yt+=+Et.slice(Ct+1),Et=Et.substring(0,Ct)):yt<0&&(yt=Et.length),$t=Et.length,Ct=0;Ct<$t&&Et.charAt(Ct)=="0";)++Ct;if(Ct==$t)ht.c=[ht.e=0];else{for(;$t>0&&Et.charAt(--$t)=="0";);for(ht.e=yt-Ct-1,ht.c=[],yt=0;Ct<=$t;)ht.c[yt++]=+Et.charAt(Ct++)}return ht}function round(ht,Et,yt,Ct){var $t=ht.c;if(yt===UNDEFINED&&(yt=ht.constructor.RM),yt!==0&&yt!==1&&yt!==2&&yt!==3)throw Error(INVALID_RM);if(Et<1)Ct=yt===3&&(Ct||!!$t[0])||Et===0&&(yt===1&&$t[0]>=5||yt===2&&($t[0]>5||$t[0]===5&&(Ct||$t[1]!==UNDEFINED))),$t.length=1,Ct?(ht.e=ht.e-Et+1,$t[0]=1):$t[0]=ht.e=0;else if(Et<$t.length){if(Ct=yt===1&&$t[Et]>=5||yt===2&&($t[Et]>5||$t[Et]===5&&(Ct||$t[Et+1]!==UNDEFINED||$t[Et-1]&1))||yt===3&&(Ct||!!$t[0]),$t.length=Et,Ct){for(;++$t[--Et]>9;)if($t[Et]=0,Et===0){++ht.e,$t.unshift(1);break}}for(Et=$t.length;!$t[--Et];)$t.pop()}return ht}function stringify$3(ht,Et,yt){var Ct=ht.e,$t=ht.c.join(""),At=$t.length;if(Et)$t=$t.charAt(0)+(At>1?"."+$t.slice(1):"")+(Ct<0?"e":"e+")+Ct;else if(Ct<0){for(;++Ct;)$t="0"+$t;$t="0."+$t}else if(Ct>0)if(++Ct>At)for(Ct-=At;Ct--;)$t+="0";else Ct<At&&($t=$t.slice(0,Ct)+"."+$t.slice(Ct));else At>1&&($t=$t.charAt(0)+"."+$t.slice(1));return ht.s<0&&yt?"-"+$t:$t}P$2.abs=function(){var ht=new this.constructor(this);return ht.s=1,ht};P$2.cmp=function(ht){var Et,yt=this,Ct=yt.c,$t=(ht=new yt.constructor(ht)).c,At=yt.s,Bt=ht.s,Dt=yt.e,Ft=ht.e;if(!Ct[0]||!$t[0])return Ct[0]?At:$t[0]?-Bt:0;if(At!=Bt)return At;if(Et=At<0,Dt!=Ft)return Dt>Ft^Et?1:-1;for(Bt=(Dt=Ct.length)<(Ft=$t.length)?Dt:Ft,At=-1;++At<Bt;)if(Ct[At]!=$t[At])return Ct[At]>$t[At]^Et?1:-1;return Dt==Ft?0:Dt>Ft^Et?1:-1};P$2.div=function(ht){var Et=this,yt=Et.constructor,Ct=Et.c,$t=(ht=new yt(ht)).c,At=Et.s==ht.s?1:-1,Bt=yt.DP;if(Bt!==~~Bt||Bt<0||Bt>MAX_DP)throw Error(INVALID_DP);if(!$t[0])throw Error(DIV_BY_ZERO);if(!Ct[0])return ht.s=At,ht.c=[ht.e=0],ht;var Dt,Ft,kt,Mt,Nt,jt=$t.slice(),zt=Dt=$t.length,Vt=Ct.length,Kt=Ct.slice(0,Dt),Xt=Kt.length,Qt=ht,Zt=Qt.c=[],dr=0,cr=Bt+(Qt.e=Et.e-ht.e)+1;for(Qt.s=At,At=cr<0?0:cr,jt.unshift(0);Xt++<Dt;)Kt.push(0);do{for(kt=0;kt<10;kt++){if(Dt!=(Xt=Kt.length))Mt=Dt>Xt?1:-1;else for(Nt=-1,Mt=0;++Nt<Dt;)if($t[Nt]!=Kt[Nt]){Mt=$t[Nt]>Kt[Nt]?1:-1;break}if(Mt<0){for(Ft=Xt==Dt?$t:jt;Xt;){if(Kt[--Xt]<Ft[Xt]){for(Nt=Xt;Nt&&!Kt[--Nt];)Kt[Nt]=9;--Kt[Nt],Kt[Xt]+=10}Kt[Xt]-=Ft[Xt]}for(;!Kt[0];)Kt.shift()}else break}Zt[dr++]=Mt?kt:++kt,Kt[0]&&Mt?Kt[Xt]=Ct[zt]||0:Kt=[Ct[zt]]}while((zt++<Vt||Kt[0]!==UNDEFINED)&&At--);return!Zt[0]&&dr!=1&&(Zt.shift(),Qt.e--,cr--),dr>cr&&round(Qt,cr,yt.RM,Kt[0]!==UNDEFINED),Qt};P$2.eq=function(ht){return this.cmp(ht)===0};P$2.gt=function(ht){return this.cmp(ht)>0};P$2.gte=function(ht){return this.cmp(ht)>-1};P$2.lt=function(ht){return this.cmp(ht)<0};P$2.lte=function(ht){return this.cmp(ht)<1};P$2.minus=P$2.sub=function(ht){var Et,yt,Ct,$t,At=this,Bt=At.constructor,Dt=At.s,Ft=(ht=new Bt(ht)).s;if(Dt!=Ft)return ht.s=-Ft,At.plus(ht);var kt=At.c.slice(),Mt=At.e,Nt=ht.c,jt=ht.e;if(!kt[0]||!Nt[0])return Nt[0]?ht.s=-Ft:kt[0]?ht=new Bt(At):ht.s=1,ht;if(Dt=Mt-jt){for(($t=Dt<0)?(Dt=-Dt,Ct=kt):(jt=Mt,Ct=Nt),Ct.reverse(),Ft=Dt;Ft--;)Ct.push(0);Ct.reverse()}else for(yt=(($t=kt.length<Nt.length)?kt:Nt).length,Dt=Ft=0;Ft<yt;Ft++)if(kt[Ft]!=Nt[Ft]){$t=kt[Ft]<Nt[Ft];break}if($t&&(Ct=kt,kt=Nt,Nt=Ct,ht.s=-ht.s),(Ft=(yt=Nt.length)-(Et=kt.length))>0)for(;Ft--;)kt[Et++]=0;for(Ft=Et;yt>Dt;){if(kt[--yt]<Nt[yt]){for(Et=yt;Et&&!kt[--Et];)kt[Et]=9;--kt[Et],kt[yt]+=10}kt[yt]-=Nt[yt]}for(;kt[--Ft]===0;)kt.pop();for(;kt[0]===0;)kt.shift(),--jt;return kt[0]||(ht.s=1,kt=[jt=0]),ht.c=kt,ht.e=jt,ht};P$2.mod=function(ht){var Et,yt=this,Ct=yt.constructor,$t=yt.s,At=(ht=new Ct(ht)).s;if(!ht.c[0])throw Error(DIV_BY_ZERO);return yt.s=ht.s=1,Et=ht.cmp(yt)==1,yt.s=$t,ht.s=At,Et?new Ct(yt):($t=Ct.DP,At=Ct.RM,Ct.DP=Ct.RM=0,yt=yt.div(ht),Ct.DP=$t,Ct.RM=At,this.minus(yt.times(ht)))};P$2.neg=function(){var ht=new this.constructor(this);return ht.s=-ht.s,ht};P$2.plus=P$2.add=function(ht){var Et,yt,Ct,$t=this,At=$t.constructor;if(ht=new At(ht),$t.s!=ht.s)return ht.s=-ht.s,$t.minus(ht);var Bt=$t.e,Dt=$t.c,Ft=ht.e,kt=ht.c;if(!Dt[0]||!kt[0])return kt[0]||(Dt[0]?ht=new At($t):ht.s=$t.s),ht;if(Dt=Dt.slice(),Et=Bt-Ft){for(Et>0?(Ft=Bt,Ct=kt):(Et=-Et,Ct=Dt),Ct.reverse();Et--;)Ct.push(0);Ct.reverse()}for(Dt.length-kt.length<0&&(Ct=kt,kt=Dt,Dt=Ct),Et=kt.length,yt=0;Et;Dt[Et]%=10)yt=(Dt[--Et]=Dt[Et]+kt[Et]+yt)/10|0;for(yt&&(Dt.unshift(yt),++Ft),Et=Dt.length;Dt[--Et]===0;)Dt.pop();return ht.c=Dt,ht.e=Ft,ht};P$2.pow=function(ht){var Et=this,yt=new Et.constructor("1"),Ct=yt,$t=ht<0;if(ht!==~~ht||ht<-MAX_POWER||ht>MAX_POWER)throw Error(INVALID+"exponent");for($t&&(ht=-ht);ht&1&&(Ct=Ct.times(Et)),ht>>=1,!!ht;)Et=Et.times(Et);return $t?yt.div(Ct):Ct};P$2.prec=function(ht,Et){if(ht!==~~ht||ht<1||ht>MAX_DP)throw Error(INVALID+"precision");return round(new this.constructor(this),ht,Et)};P$2.round=function(ht,Et){if(ht===UNDEFINED)ht=0;else if(ht!==~~ht||ht<-MAX_DP||ht>MAX_DP)throw Error(INVALID_DP);return round(new this.constructor(this),ht+this.e+1,Et)};P$2.sqrt=function(){var ht,Et,yt,Ct=this,$t=Ct.constructor,At=Ct.s,Bt=Ct.e,Dt=new $t("0.5");if(!Ct.c[0])return new $t(Ct);if(At<0)throw Error(NAME+"No square root");At=Math.sqrt(Ct+""),At===0||At===1/0?(Et=Ct.c.join(""),Et.length+Bt&1||(Et+="0"),At=Math.sqrt(Et),Bt=((Bt+1)/2|0)-(Bt<0||Bt&1),ht=new $t((At==1/0?"5e":(At=At.toExponential()).slice(0,At.indexOf("e")+1))+Bt)):ht=new $t(At+""),Bt=ht.e+($t.DP+=4);do yt=ht,ht=Dt.times(yt.plus(Ct.div(yt)));while(yt.c.slice(0,Bt).join("")!==ht.c.slice(0,Bt).join(""));return round(ht,($t.DP-=4)+ht.e+1,$t.RM)};P$2.times=P$2.mul=function(ht){var Et,yt=this,Ct=yt.constructor,$t=yt.c,At=(ht=new Ct(ht)).c,Bt=$t.length,Dt=At.length,Ft=yt.e,kt=ht.e;if(ht.s=yt.s==ht.s?1:-1,!$t[0]||!At[0])return ht.c=[ht.e=0],ht;for(ht.e=Ft+kt,Bt<Dt&&(Et=$t,$t=At,At=Et,kt=Bt,Bt=Dt,Dt=kt),Et=new Array(kt=Bt+Dt);kt--;)Et[kt]=0;for(Ft=Dt;Ft--;){for(Dt=0,kt=Bt+Ft;kt>Ft;)Dt=Et[kt]+At[Ft]*$t[kt-Ft-1]+Dt,Et[kt--]=Dt%10,Dt=Dt/10|0;Et[kt]=Dt}for(Dt?++ht.e:Et.shift(),Ft=Et.length;!Et[--Ft];)Et.pop();return ht.c=Et,ht};P$2.toExponential=function(ht,Et){var yt=this,Ct=yt.c[0];if(ht!==UNDEFINED){if(ht!==~~ht||ht<0||ht>MAX_DP)throw Error(INVALID_DP);for(yt=round(new yt.constructor(yt),++ht,Et);yt.c.length<ht;)yt.c.push(0)}return stringify$3(yt,!0,!!Ct)};P$2.toFixed=function(ht,Et){var yt=this,Ct=yt.c[0];if(ht!==UNDEFINED){if(ht!==~~ht||ht<0||ht>MAX_DP)throw Error(INVALID_DP);for(yt=round(new yt.constructor(yt),ht+yt.e+1,Et),ht=ht+yt.e+1;yt.c.length<ht;)yt.c.push(0)}return stringify$3(yt,!1,!!Ct)};P$2[Symbol.for("nodejs.util.inspect.custom")]=P$2.toJSON=P$2.toString=function(){var ht=this,Et=ht.constructor;return stringify$3(ht,ht.e<=Et.NE||ht.e>=Et.PE,!!ht.c[0])};P$2.toNumber=function(){var ht=Number(stringify$3(this,!0,!0));if(this.constructor.strict===!0&&!this.eq(ht.toString()))throw Error(NAME+"Imprecise conversion");return ht};P$2.toPrecision=function(ht,Et){var yt=this,Ct=yt.constructor,$t=yt.c[0];if(ht!==UNDEFINED){if(ht!==~~ht||ht<1||ht>MAX_DP)throw Error(INVALID+"precision");for(yt=round(new Ct(yt),ht,Et);yt.c.length<ht;)yt.c.push(0)}return stringify$3(yt,ht<=yt.e||yt.e<=Ct.NE||yt.e>=Ct.PE,!!$t)};P$2.valueOf=function(){var ht=this,Et=ht.constructor;if(Et.strict===!0)throw Error(NAME+"valueOf disallowed");return stringify$3(ht,ht.e<=Et.NE||ht.e>=Et.PE,!0)};var Big=_Big_();const getRoleName=(ht=[])=>ht.includes(Roles.PROJECT_OWNER)?"Owner":"Member",lazyWithRetry=ht=>reactExports.lazy(async()=>{const Et=JSON.parse(window.localStorage.getItem("page-has-been-force-refreshed")||"false");try{const yt=await ht();return window.localStorage.setItem("page-has-been-force-refreshed","false"),yt}catch(yt){if(!Et)return window.localStorage.setItem("page-has-been-force-refreshed","true"),window.location.reload();throw yt}}),flattenMenu=ht=>{let Et=[];return ht.forEach(yt=>{if(yt.children&&yt.children.length>0){const Ct=flattenMenu(yt.children);Et=[...Et,...Ct]}else Et.push(yt)}),Et},profileInfo="_profileInfo_txf5z_1",img="_img_txf5z_5",dropdown$1="_dropdown_txf5z_11",styles$m={profileInfo,img,dropdown:dropdown$1},ProfileInfo=({bordered:ht,collapsed:Et,className:yt})=>{const{accountInfo:Ct}=accountStore,[$t,At]=reactExports.useState(!1),Bt=useNavigate(),Dt=async Nt=>{Nt.stopPropagation(),At(!0),await commonApi.logout(),At(!1),Bt("/"),accountStore.setAccountInfo(null)},Ft=Nt=>`0x${Nt.split("").map(Vt=>Vt.charCodeAt(0)).map(Vt=>`0${Vt.toString(16)}`).join("").substring(0,40)}`,kt=reactExports.useMemo(()=>Ct||LocalStorage.getItem(USER_INFO),[Ct]),Mt=[{key:`${ACCOUNT_DOMAIN}/account`,label:jsxRuntimeExports.jsx("div",{className:"flex items-center",onClick:()=>window.open(`${ACCOUNT_DOMAIN}/account`),children:"Account Setting"})},{key:"/account",label:jsxRuntimeExports.jsx("div",{className:"flex items-center",onClick:()=>Bt("/account"),children:"API"})},{key:"/subscribe",label:jsxRuntimeExports.jsx("div",{className:"flex items-center",onClick:()=>Bt("/subscribe"),children:"Subscription"})},{key:"/billing",label:jsxRuntimeExports.jsx("div",{className:"flex items-center",onClick:()=>Bt("/billing"),children:"Billing"})},{key:"/usage",label:jsxRuntimeExports.jsx("div",{className:"flex items-center",onClick:()=>Bt("/usage"),children:"Usage"})},{key:"signOut",label:jsxRuntimeExports.jsx(Button$1,{className:"h-fit w-full justify-start border-none !bg-transparent p-0",type:"text",loading:$t,onClick:Dt,children:"Sign Out"})}];return jsxRuntimeExports.jsx("div",{className:cls(styles$m.profileInfo,yt),children:kt?jsxRuntimeExports.jsx(ConfigProvider$1,{theme:{components:{Dropdown:{fontSize:14}}},children:jsxRuntimeExports.jsx(Dropdown,{overlayClassName:styles$m.dropdown,menu:{items:Mt},placement:"topRight",children:jsxRuntimeExports.jsxs("div",{className:cls("flex w-full cursor-pointer items-center justify-between py-1",{"rounded-md px-3 py-1.5 ring-1 ring-gray-200 dark:bg-gray-800 dark:ring-white/10":ht},{"!justify-center":Et}),children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center",children:[jsxRuntimeExports.jsx(BlockieIdenticon,{address:Ft(kt.email),diameter:24,borderRadius:6}),!Et&&jsxRuntimeExports.jsx("span",{className:"ml-4 truncate text-default",children:kt.name||kt.email})]}),!Et&&jsxRuntimeExports.jsx(Iconfont,{type:"icon-more",className:"rotate-90 text-secondary"})]})})}):jsxRuntimeExports.jsx(Button$1,{type:"primary",onClick:()=>{window.location.href=withReferer(`${ACCOUNT_DOMAIN}/login`)},children:"Sign in"})})},ProfileInfo$1=observer(ProfileInfo);function Iconfont(ht){const{color:Et,size:yt=16,className:Ct,type:$t,style:At,ml:Bt,mr:Dt,onClick:Ft,...kt}=ht,Mt={color:Et,fontSize:`${yt}px`,marginLeft:`${Bt}px`,marginRight:`${Dt}px`,...At};return jsxRuntimeExports.jsx("i",{style:Mt,className:cls($t,"iconfont",Ct),onClick:Ft,...kt})}const ThemeSwitcher=()=>{const{mode:ht,switchMode:Et}=reactExports.useContext(ThemeContext),[yt,Ct]=reactExports.useState(!1);return reactExports.useEffect(()=>{Ct(!0)},[]),yt?jsxRuntimeExports.jsxs("button",{className:"group relative size-9 shrink-0 appearance-none overflow-hidden rounded-md bg-transparent  ring-1 ring-gray-200 transition-colors duration-150 ease-in-out dark:ring-white/10",onClick:()=>Et(ht==="dark"?"light":"dark"),children:[jsxRuntimeExports.jsx("div",{className:"absolute top-10 flex size-full shrink-0 translate-y-0 cursor-pointer items-center justify-center transition-transform duration-200 ease-in-out dark:-translate-y-10",children:jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[jsxRuntimeExports.jsx("g",{clipPath:"url(#clip0_351_13427)",children:jsxRuntimeExports.jsx("path",{d:"M8.66667 0.666667V2C8.66667 2.17681 8.59643 2.34638 8.4714 2.4714C8.34638 2.59643 8.17681 2.66667 8 2.66667C7.82319 2.66667 7.65362 2.59643 7.5286 2.4714C7.40357 2.34638 7.33333 2.17681 7.33333 2V0.666667C7.33333 0.489856 7.40357 0.320286 7.5286 0.195262C7.65362 0.0702379 7.82319 0 8 0C8.17681 0 8.34638 0.0702379 8.4714 0.195262C8.59643 0.320286 8.66667 0.489856 8.66667 0.666667ZM8 13.3333C7.82319 13.3333 7.65362 13.4036 7.5286 13.5286C7.40357 13.6536 7.33333 13.8232 7.33333 14V15.3333C7.33333 15.5101 7.40357 15.6797 7.5286 15.8047C7.65362 15.9298 7.82319 16 8 16C8.17681 16 8.34638 15.9298 8.4714 15.8047C8.59643 15.6797 8.66667 15.5101 8.66667 15.3333V14C8.66667 13.8232 8.59643 13.6536 8.4714 13.5286C8.34638 13.4036 8.17681 13.3333 8 13.3333ZM2.34317 2.34317C2.28126 2.40507 2.23215 2.47857 2.19864 2.55945C2.16514 2.64034 2.14789 2.72703 2.14789 2.81458C2.14789 2.90213 2.16514 2.98883 2.19864 3.06971C2.23215 3.1506 2.28126 3.22409 2.34317 3.286L3.286 4.22883C3.41103 4.35386 3.5806 4.4241 3.75742 4.4241C3.93423 4.4241 4.10381 4.35386 4.22883 4.22883C4.35386 4.10381 4.4241 3.93423 4.4241 3.75742C4.4241 3.5806 4.35386 3.41103 4.22883 3.286L3.286 2.34317C3.22409 2.28126 3.1506 2.23215 3.06971 2.19864C2.98883 2.16514 2.90213 2.14789 2.81458 2.14789C2.72703 2.14789 2.64034 2.16514 2.55945 2.19864C2.47857 2.23215 2.40507 2.28126 2.34317 2.34317ZM11.7712 11.7712C11.6462 11.8962 11.576 12.0657 11.576 12.2425C11.576 12.4193 11.6462 12.5888 11.7712 12.7138V12.714L12.714 13.6568C12.839 13.7819 13.0086 13.8521 13.1854 13.8521C13.3622 13.8521 13.5318 13.7819 13.6568 13.6568C13.7819 13.5318 13.8521 13.3622 13.8521 13.1854C13.8521 13.0086 13.7819 12.839 13.6568 12.714L12.714 11.7712C12.6521 11.7092 12.5786 11.6601 12.4977 11.6266C12.4168 11.5931 12.3301 11.5758 12.2426 11.5758C12.155 11.5758 12.0683 11.5931 11.9874 11.6266C11.9066 11.6601 11.8331 11.7092 11.7712 11.7712ZM0 8C0 8.17681 0.0702379 8.34638 0.195262 8.4714C0.320286 8.59643 0.489856 8.66667 0.666667 8.66667H2C2.17681 8.66667 2.34638 8.59643 2.4714 8.4714C2.59643 8.34638 2.66667 8.17681 2.66667 8C2.66667 7.82319 2.59643 7.65362 2.4714 7.5286C2.34638 7.40357 2.17681 7.33333 2 7.33333H0.666667C0.489856 7.33333 0.320286 7.40357 0.195262 7.5286C0.0702379 7.65362 0 7.82319 0 8ZM13.3333 8C13.3333 8.17681 13.4036 8.34638 13.5286 8.4714C13.6536 8.59643 13.8232 8.66667 14 8.66667H15.3333C15.5101 8.66667 15.6797 8.59643 15.8047 8.4714C15.9298 8.34638 16 8.17681 16 8C16 7.82319 15.9298 7.65362 15.8047 7.5286C15.6797 7.40357 15.5101 7.33333 15.3333 7.33333H14C13.8232 7.33333 13.6536 7.40357 13.5286 7.5286C13.4036 7.65362 13.3333 7.82319 13.3333 8ZM2.34317 13.6568C2.40507 13.7187 2.47857 13.7679 2.55945 13.8014C2.64034 13.8349 2.72703 13.8521 2.81458 13.8521C2.90213 13.8521 2.98883 13.8349 3.06971 13.8014C3.1506 13.7679 3.22409 13.7187 3.286 13.6568L4.22867 12.714C4.35139 12.5885 4.41968 12.4197 4.41871 12.2442C4.41775 12.0687 4.3476 11.9006 4.2235 11.7765C4.0994 11.6524 3.93136 11.5822 3.75585 11.5812C3.58033 11.5802 3.4115 11.6485 3.286 11.7712L2.34317 12.714C2.28126 12.7759 2.23215 12.8494 2.19864 12.9303C2.16514 13.0112 2.14789 13.0979 2.14789 13.1854C2.14789 13.273 2.16514 13.3597 2.19864 13.4405C2.23215 13.5214 2.28126 13.5949 2.34317 13.6568ZM11.7712 4.22883C11.8962 4.35381 12.0657 4.42402 12.2425 4.42402C12.4193 4.42402 12.5888 4.35381 12.7138 4.22883H12.714L13.6568 3.286C13.7187 3.22409 13.7678 3.1506 13.8014 3.06971C13.8349 2.98883 13.8521 2.90213 13.8521 2.81458C13.8521 2.72703 13.8349 2.64034 13.8014 2.55945C13.7678 2.47857 13.7187 2.40507 13.6568 2.34317C13.5949 2.28126 13.5214 2.23215 13.4405 2.19865C13.3597 2.16514 13.273 2.1479 13.1854 2.1479C13.0979 2.1479 13.0112 2.16514 12.9303 2.19865C12.8494 2.23215 12.7759 2.28126 12.714 2.34317L11.7712 3.286C11.7092 3.3479 11.6601 3.42139 11.6266 3.50227C11.5931 3.58316 11.5758 3.66986 11.5758 3.75742C11.5758 3.84497 11.5931 3.93167 11.6266 4.01256C11.6601 4.09345 11.7092 4.16694 11.7712 4.22883ZM12 8C12 10.2092 10.2092 12 8 12C5.79083 12 4 10.2092 4 8C4 5.79083 5.79083 4 8 4C10.2092 4 12 5.79083 12 8ZM10.6667 8C10.6667 6.52717 9.47283 5.33333 8 5.33333C6.52717 5.33333 5.33333 6.52717 5.33333 8C5.33333 9.47283 6.52717 10.6667 8 10.6667C9.47283 10.6667 10.6667 9.47283 10.6667 8Z",fill:"#2F8AF5"})}),jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsx("clipPath",{id:"clip0_351_13427",children:jsxRuntimeExports.jsx("rect",{width:"16",height:"16",fill:"white"})})})]})}),jsxRuntimeExports.jsx("div",{className:"absolute top-10 flex size-full shrink-0 -translate-y-10 cursor-pointer items-center justify-center transition-transform duration-200 ease-in-out dark:translate-y-0",children:jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:jsxRuntimeExports.jsx("path",{d:"M14.5013 10.0014C13.7088 10.3317 12.8586 10.5012 12 10.5001C8.41 10.5001 5.5 7.59011 5.5 4.00011C5.5 3.11345 5.67733 2.26878 5.99867 1.49878C4.81431 1.99285 3.80265 2.82635 3.09108 3.89428C2.37952 4.96222 1.99989 6.21683 2 7.50011C2 11.0901 4.91 14.0001 8.5 14.0001C9.78328 14.0002 11.0379 13.6206 12.1058 12.909C13.1738 12.1975 14.0073 11.1858 14.5013 10.0014Z",stroke:"#2F8AF5",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}):null},removeTokenFromUrl=ht=>{const Et=new URL(ht);return Et.searchParams.delete("token"),Et.toString()},handleRemoveToken=()=>{const ht=window.location.href,Et=removeTokenFromUrl(ht);window.history.replaceState({},"",Et)},saveQueryParamToStorage=(ht,Et)=>{let Ct=queryString.parse(window.location.search)[ht]??"";Ct&&(Ct=decodeURIComponent(Ct),LocalStorage.setItem(Et,Ct),handleRemoveToken())},useAuth=()=>{var Dt;const{accountInfo:ht}=accountStore,{permissions:Et,currentProject:yt}=projectStore;saveQueryParamToStorage("token",BLOCKSEC_TOKEN);const Ct=LocalStorage.getItem(BLOCKSEC_TOKEN),$t=async()=>(await accountStore.getAccountInfo(),accountStore.accountInfo),At=Ft=>Ft.some(kt=>Et==null?void 0:Et.map(Mt=>Mt.name).includes(kt)),Bt=!!((Dt=yt==null?void 0:yt.role)!=null&&Dt.includes(Roles.PROJECT_OWNER));return{isLogin:!!Ct,getAccountInfoAsync:$t,accountInfo:ht,hasPermission:At,isProjectOwner:Bt}},useResponsive=()=>{const[ht,Et]=reactExports.useState({isMobile:!1,isTablet:!1,isLaptop:!1,isDesktop:!1});reactExports.useEffect(()=>(yt(),$t(),()=>{At()}),[]);const yt=()=>{const Bt=window.innerWidth<=640,Dt=window.innerWidth>=640&&window.innerWidth<=1024,Ft=window.innerWidth>=1024&&window.innerWidth<=1536,kt=window.innerWidth>1536;Et({isMobile:Bt,isTablet:Dt,isLaptop:Ft,isDesktop:kt})},Ct=debounce$3(yt,500),$t=()=>{window.addEventListener("resize",Ct,!1)},At=()=>{window.removeEventListener("resize",Ct,!1)};return ht},Auth=({verify:ht,interceptor:Et,permissions:yt=[],children:Ct,trigger:$t="router"})=>{var Xt;const{isLogin:At}=useAuth(),[Bt,Dt]=reactExports.useState(!1),[Ft,kt]=reactExports.useState(!1),[Mt,Nt]=reactExports.useState("fork"),[jt,zt]=reactExports.useState(!1),Vt=()=>{window.location.href=withReferer(`${ACCOUNT_DOMAIN}/login`)};if(At||$t==="router"&&Vt(),yt.length){const Qt=(Xt=projectStore.permissions)==null?void 0:Xt.map(dr=>dr.name);if(!intersection(Qt,yt).length)return null}const Kt=React$8.Children.map(Ct,Qt=>React$8.cloneElement(Qt,{...Qt.props,loading:Qt.props.loading??(Bt?1:0),onClick:async(...Zt)=>{var dr,cr,Er,pr,gr,vr,yr,xr,rr,Lt,Ht,Wt,Gt,Yt;if(Et!=null&&Et.type){Dt(!0);let er=await projectStore.getProjectCapacity(["fork","project","team","txn"].includes(Et.type)?ProductType.FORK:ProductType.BLOCK);if(er={...er,...er.block},Dt(!1),Et.type==="txn"){if(((er==null?void 0:er.txnMonthCount)??0)>=((er==null?void 0:er.txnMonthCapacity)??1))return kt(!0),Nt("txnMonth"),(dr=Et.callback)==null?void 0:dr.call(Et,!1,"txnMonth");if((cr=Et.callback)==null||cr.call(Et,!0,"txnMonth"),((er==null?void 0:er.txnDayCount)??0)>=((er==null?void 0:er.txnDayCapacity)??1))return kt(!0),Nt("txnDay"),(Er=Et.callback)==null?void 0:Er.call(Et,!1,"txnDay");(pr=Et.callback)==null||pr.call(Et,!0,"txnDay")}else if(Et.type==="module"){if(!er.useModule)return kt(!0),Nt(Et.type),(gr=Et.callback)==null?void 0:gr.call(Et,!1,"module");(vr=Et.callback)==null||vr.call(Et,!0,"module")}else if(Et.type==="webhook"){if(!er.useWebhook)return kt(!0),Nt(Et.type),(yr=Et.callback)==null?void 0:yr.call(Et,!1,"webhook");(xr=Et.callback)==null||xr.call(Et,!0,"module")}else{if((er==null?void 0:er[`${Et.type}Count`])>=(er==null?void 0:er[`${Et.type}Capacity`]))return kt(!0),Nt(Et.type),(rr=Et.callback)==null?void 0:rr.call(Et,!1,Et.type);(Lt=Et.callback)==null||Lt.call(Et,!0,Et.type)}}if(ht!=null&&ht.type){if(ht.type===VerifyType.WITHDRAW){Dt(!0);const{data:er={expiration:0}}=await commonApi.getWithdrawVerifyExpiration();Dt(!1),er.expiration>Date.now()?(Ht=ht.callback)==null||Ht.call(ht,!0,ht.type):zt(!0)}else if(ht.type===VerifyType.EXECUTE){const er=LocalStorage.getItem(VERIFY_EXPIRE_TIME);er&&er>Date.now()?(Wt=ht.callback)==null||Wt.call(ht,!0,ht.type):zt(!0)}}$t==="click"&&!At?Vt():(Yt=(Gt=Qt.props).onClick)==null||Yt.call(Gt,...Zt)}}));return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[Kt,(Et==null?void 0:Et.type)&&jsxRuntimeExports.jsx(ModalDetectCapacity$1,{type:Mt,visible:Ft,onClose:()=>kt(!1)}),(ht==null?void 0:ht.type)&&jsxRuntimeExports.jsx(ModalVerification$1,{type:ht.type,visible:jt,onClose:()=>zt(!1),onSuccess:(Qt,Zt)=>{var dr;ht.type===VerifyType.EXECUTE&&LocalStorage.setItem(VERIFY_EXPIRE_TIME,Date.now()+5*60*1e3),(dr=ht.callback)==null||dr.call(ht,!0,Zt,Qt)}})]})},Auth$1=observer(Auth),container$9="_container_13ulx_1",styles$l={container:container$9},ModalContactUs=({visible:ht,onClose:Et})=>jsxRuntimeExports.jsx(BscModal,{width:530,title:"Contact Us",footer:null,maskClosable:!1,onCancel:Et,open:ht,children:jsxRuntimeExports.jsx("div",{className:styles$l.container,children:jsxRuntimeExports.jsxs("ul",{children:[jsxRuntimeExports.jsxs("li",{children:[jsxRuntimeExports.jsx("div",{children:"Join the Telegram Group:"}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("img",{src:"https://assets.blocksec.com/image/1680531226604-2.png",alt:""}),jsxRuntimeExports.jsx("a",{href:"https://t.me/BlockSecTeam",target:"_blank",rel:"noreferrer",children:"@BlockSecTeam"})]})]}),jsxRuntimeExports.jsxs("li",{children:[jsxRuntimeExports.jsx("div",{children:"DM us on X:"}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("img",{src:"https://assets.blocksec.com/image/1712111754986-2.png",alt:""}),jsxRuntimeExports.jsx("a",{href:"https://twitter.com/blocksecteam",target:"_blank",rel:"noreferrer",children:"@BlockSecTeam"})]})]}),jsxRuntimeExports.jsxs("li",{children:[jsxRuntimeExports.jsx("div",{children:"Email us:"}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("a",{href:"mailto:contact@blocksec.com",target:"_blank",rel:"noreferrer",children:"contact@blocksec.com"})})]})]})})}),bscModal="_bscModal_10us8_1",styles$k={bscModal},BscModal=({open:ht,title:Et,onCancel:yt,width:Ct=424,className:$t,children:At,onEnterPress:Bt,...Dt})=>{const{mode:Ft}=reactExports.useContext(ThemeContext);return reactExports.useEffect(()=>{const kt=Mt=>{Mt.key==="Enter"&&(Bt==null||Bt(Mt))};return Bt&&(ht?window.addEventListener("keydown",kt):window.removeEventListener("keydown",kt)),()=>{Bt&&window.removeEventListener("keydown",kt)}},[Bt,ht]),jsxRuntimeExports.jsx(Modal,{open:ht,closable:!0,centered:!0,width:Ct,title:Et,onCancel:yt,className:cls(styles$k.bscModal,styles$k[Ft],$t),styles:{mask:{backdropFilter:"blur(2px)"}},...Dt,children:At})};var lib$3={},Scrollbars={},raf$1={exports:{}},performanceNow={exports:{}};(function(){var ht,Et,yt,Ct,$t,At;typeof performance<"u"&&performance!==null&&performance.now?performanceNow.exports=function(){return performance.now()}:typeof process$1$1<"u"&&process$1$1!==null&&process$1$1.hrtime?(performanceNow.exports=function(){return(ht()-$t)/1e6},Et=process$1$1.hrtime,ht=function(){var Bt;return Bt=Et(),Bt[0]*1e9+Bt[1]},Ct=ht(),At=process$1$1.uptime()*1e9,$t=Ct-At):Date.now?(performanceNow.exports=function(){return Date.now()-yt},yt=Date.now()):(performanceNow.exports=function(){return new Date().getTime()-yt},yt=new Date().getTime())}).call(commonjsGlobal);var performanceNowExports=performanceNow.exports,now=performanceNowExports,root$2=typeof window>"u"?commonjsGlobal:window,vendors=["moz","webkit"],suffix="AnimationFrame",raf=root$2["request"+suffix],caf=root$2["cancel"+suffix]||root$2["cancelRequest"+suffix];for(var i$6=0;!raf&&i$6<vendors.length;i$6++)raf=root$2[vendors[i$6]+"Request"+suffix],caf=root$2[vendors[i$6]+"Cancel"+suffix]||root$2[vendors[i$6]+"CancelRequest"+suffix];if(!raf||!caf){var last=0,id$1=0,queue=[],frameDuration=1e3/60;raf=function(ht){if(queue.length===0){var Et=now(),yt=Math.max(0,frameDuration-(Et-last));last=yt+Et,setTimeout(function(){var Ct=queue.slice(0);queue.length=0;for(var $t=0;$t<Ct.length;$t++)if(!Ct[$t].cancelled)try{Ct[$t].callback(last)}catch(At){setTimeout(function(){throw At},0)}},Math.round(yt))}return queue.push({handle:++id$1,callback:ht,cancelled:!1}),id$1},caf=function(ht){for(var Et=0;Et<queue.length;Et++)queue[Et].handle===ht&&(queue[Et].cancelled=!0)}}raf$1.exports=function(ht){return raf.call(root$2,ht)};raf$1.exports.cancel=function(){caf.apply(root$2,arguments)};raf$1.exports.polyfill=function(ht){ht||(ht=root$2),ht.requestAnimationFrame=raf,ht.cancelAnimationFrame=caf};var rafExports=raf$1.exports,domCss={exports:{}},div=null,prefixes=["Webkit","Moz","O","ms"],prefixStyle=function ht(Et){div||(div=document.createElement("div"));var yt=div.style;if(Et in yt)return Et;for(var Ct=Et.charAt(0).toUpperCase()+Et.slice(1),$t=prefixes.length;$t>=0;$t--){var At=prefixes[$t]+Ct;if(At in yt)return At}return!1},toNoCase_1=toNoCase,hasSpace=/\s/,hasSeparator=/(_|-|\.|:)/,hasCamel=/([a-z][A-Z]|[A-Z][a-z])/;function toNoCase(ht){return hasSpace.test(ht)?ht.toLowerCase():hasSeparator.test(ht)?(unseparate(ht)||ht).toLowerCase():hasCamel.test(ht)?uncamelize(ht).toLowerCase():ht.toLowerCase()}var separatorSplitter=/[\W_]+(.|$)/g;function unseparate(ht){return ht.replace(separatorSplitter,function(Et,yt){return yt?" "+yt:""})}var camelSplitter=/(.)([A-Z]+)/g;function uncamelize(ht){return ht.replace(camelSplitter,function(Et,yt,Ct){return yt+" "+Ct.toLowerCase().split("").join(" ")})}var clean=toNoCase_1,toSpaceCase_1=toSpaceCase;function toSpaceCase(ht){return clean(ht).replace(/[\W_]+(.|$)/g,function(Et,yt){return yt?" "+yt:""}).trim()}var space=toSpaceCase_1,toCamelCase_1=toCamelCase$1;function toCamelCase$1(ht){return space(ht).replace(/\s(\w)/g,function(Et,yt){return yt.toUpperCase()})}var IS_UNITLESS={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0},addPxToStyle$1=function(ht,Et){return typeof Et=="number"&&!IS_UNITLESS[ht]?Et+"px":Et},prefix=prefixStyle,toCamelCase=toCamelCase_1,cache={float:"cssFloat"},addPxToStyle=addPxToStyle$1;function style(ht,Et,yt){var Ct=cache[Et];if(typeof Ct>"u"&&(Ct=detect(Et)),Ct){if(yt===void 0)return ht.style[Ct];ht.style[Ct]=addPxToStyle(Ct,yt)}}function each(ht,Et){for(var yt in Et)Et.hasOwnProperty(yt)&&style(ht,yt,Et[yt])}function detect(ht){var Et=toCamelCase(ht),yt=prefix(Et);return cache[Et]=cache[ht]=cache[yt]=yt,yt}function set$1(){arguments.length===2?typeof arguments[1]=="string"?arguments[0].style.cssText=arguments[1]:each(arguments[0],arguments[1]):style(arguments[0],arguments[1],arguments[2])}domCss.exports=set$1;domCss.exports.set=set$1;domCss.exports.get=function(ht,Et){return Array.isArray(Et)?Et.reduce(function(yt,Ct){return yt[Ct]=style(ht,Ct||""),yt},{}):style(ht,Et||"")};var domCssExports=domCss.exports,propTypes={exports:{}},ReactPropTypesSecret$1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ReactPropTypesSecret_1=ReactPropTypesSecret$1,ReactPropTypesSecret=ReactPropTypesSecret_1;function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction;var factoryWithThrowingShims=function(){function ht(Ct,$t,At,Bt,Dt,Ft){if(Ft!==ReactPropTypesSecret){var kt=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw kt.name="Invariant Violation",kt}}ht.isRequired=ht;function Et(){return ht}var yt={array:ht,bigint:ht,bool:ht,func:ht,number:ht,object:ht,string:ht,symbol:ht,any:ht,arrayOf:Et,element:ht,elementType:ht,instanceOf:Et,node:ht,objectOf:Et,oneOf:Et,oneOfType:Et,shape:Et,exact:Et,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return yt.PropTypes=yt,yt};propTypes.exports=factoryWithThrowingShims();var propTypesExports=propTypes.exports;const PropTypes$3=getDefaultExportFromCjs$1(propTypesExports);var isString$2={};(function(ht){Object.defineProperty(ht,"__esModule",{value:!0}),ht.default=Et;function Et(yt){return typeof yt=="string"}})(isString$2);var getScrollbarWidth={};(function(ht){Object.defineProperty(ht,"__esModule",{value:!0}),ht.default=At;var Et=domCssExports,yt=Ct(Et);function Ct(Bt){return Bt&&Bt.__esModule?Bt:{default:Bt}}var $t=!1;function At(){if($t!==!1)return $t;if(typeof document<"u"){var Bt=document.createElement("div");(0,yt.default)(Bt,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(Bt),$t=Bt.offsetWidth-Bt.clientWidth,document.body.removeChild(Bt)}else $t=0;return $t||0}})(getScrollbarWidth);var returnFalse={};(function(ht){Object.defineProperty(ht,"__esModule",{value:!0}),ht.default=Et;function Et(){return!1}})(returnFalse);var getInnerWidth={};(function(ht){Object.defineProperty(ht,"__esModule",{value:!0}),ht.default=Et;function Et(yt){var Ct=yt.clientWidth,$t=getComputedStyle(yt),At=$t.paddingLeft,Bt=$t.paddingRight;return Ct-parseFloat(At)-parseFloat(Bt)}})(getInnerWidth);var getInnerHeight={};(function(ht){Object.defineProperty(ht,"__esModule",{value:!0}),ht.default=Et;function Et(yt){var Ct=yt.clientHeight,$t=getComputedStyle(yt),At=$t.paddingTop,Bt=$t.paddingBottom;return Ct-parseFloat(At)-parseFloat(Bt)}})(getInnerHeight);var styles$j={};Object.defineProperty(styles$j,"__esModule",{value:!0});styles$j.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"};styles$j.containerStyleAutoHeight={height:"auto"};styles$j.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"};styles$j.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0};styles$j.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0};styles$j.trackHorizontalStyleDefault={position:"absolute",height:6};styles$j.trackVerticalStyleDefault={position:"absolute",width:6};styles$j.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"};styles$j.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"};styles$j.disableSelectStyle={userSelect:"none"};styles$j.disableSelectStyleReset={userSelect:""};var defaultRenderElements={};Object.defineProperty(defaultRenderElements,"__esModule",{value:!0});var _extends$3=Object.assign||function(ht){for(var Et=1;Et<arguments.length;Et++){var yt=arguments[Et];for(var Ct in yt)Object.prototype.hasOwnProperty.call(yt,Ct)&&(ht[Ct]=yt[Ct])}return ht};defaultRenderElements.renderViewDefault=renderViewDefault;defaultRenderElements.renderTrackHorizontalDefault=renderTrackHorizontalDefault;defaultRenderElements.renderTrackVerticalDefault=renderTrackVerticalDefault;defaultRenderElements.renderThumbHorizontalDefault=renderThumbHorizontalDefault;defaultRenderElements.renderThumbVerticalDefault=renderThumbVerticalDefault;var _react=reactExports,_react2=_interopRequireDefault(_react);function _interopRequireDefault(ht){return ht&&ht.__esModule?ht:{default:ht}}function _objectWithoutProperties(ht,Et){var yt={};for(var Ct in ht)Et.indexOf(Ct)>=0||Object.prototype.hasOwnProperty.call(ht,Ct)&&(yt[Ct]=ht[Ct]);return yt}function renderViewDefault(ht){return _react2.default.createElement("div",ht)}function renderTrackHorizontalDefault(ht){var Et=ht.style,yt=_objectWithoutProperties(ht,["style"]),Ct=_extends$3({},Et,{right:2,bottom:2,left:2,borderRadius:3});return _react2.default.createElement("div",_extends$3({style:Ct},yt))}function renderTrackVerticalDefault(ht){var Et=ht.style,yt=_objectWithoutProperties(ht,["style"]),Ct=_extends$3({},Et,{right:2,bottom:2,top:2,borderRadius:3});return _react2.default.createElement("div",_extends$3({style:Ct},yt))}function renderThumbHorizontalDefault(ht){var Et=ht.style,yt=_objectWithoutProperties(ht,["style"]),Ct=_extends$3({},Et,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return _react2.default.createElement("div",_extends$3({style:Ct},yt))}function renderThumbVerticalDefault(ht){var Et=ht.style,yt=_objectWithoutProperties(ht,["style"]),Ct=_extends$3({},Et,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return _react2.default.createElement("div",_extends$3({style:Ct},yt))}(function(ht){Object.defineProperty(ht,"__esModule",{value:!0});var Et=Object.assign||function(Lt){for(var Ht=1;Ht<arguments.length;Ht++){var Wt=arguments[Ht];for(var Gt in Wt)Object.prototype.hasOwnProperty.call(Wt,Gt)&&(Lt[Gt]=Wt[Gt])}return Lt},yt=function(){function Lt(Ht,Wt){for(var Gt=0;Gt<Wt.length;Gt++){var Yt=Wt[Gt];Yt.enumerable=Yt.enumerable||!1,Yt.configurable=!0,"value"in Yt&&(Yt.writable=!0),Object.defineProperty(Ht,Yt.key,Yt)}}return function(Ht,Wt,Gt){return Wt&&Lt(Ht.prototype,Wt),Gt&&Lt(Ht,Gt),Ht}}(),Ct=rafExports,$t=pr(Ct),At=domCssExports,Bt=pr(At),Dt=reactExports,Ft=propTypesExports,kt=pr(Ft),Mt=isString$2,Nt=pr(Mt),jt=getScrollbarWidth,zt=pr(jt),Vt=returnFalse,Kt=pr(Vt),Xt=getInnerWidth,Qt=pr(Xt),Zt=getInnerHeight,dr=pr(Zt),cr=styles$j,Er=defaultRenderElements;function pr(Lt){return Lt&&Lt.__esModule?Lt:{default:Lt}}function gr(Lt,Ht){var Wt={};for(var Gt in Lt)Ht.indexOf(Gt)>=0||Object.prototype.hasOwnProperty.call(Lt,Gt)&&(Wt[Gt]=Lt[Gt]);return Wt}function vr(Lt,Ht){if(!(Lt instanceof Ht))throw new TypeError("Cannot call a class as a function")}function yr(Lt,Ht){if(!Lt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ht&&(typeof Ht=="object"||typeof Ht=="function")?Ht:Lt}function xr(Lt,Ht){if(typeof Ht!="function"&&Ht!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Ht);Lt.prototype=Object.create(Ht&&Ht.prototype,{constructor:{value:Lt,enumerable:!1,writable:!0,configurable:!0}}),Ht&&(Object.setPrototypeOf?Object.setPrototypeOf(Lt,Ht):Lt.__proto__=Ht)}var rr=function(Lt){xr(Ht,Lt);function Ht(Wt){var Gt;vr(this,Ht);for(var Yt=arguments.length,er=Array(Yt>1?Yt-1:0),lr=1;lr<Yt;lr++)er[lr-1]=arguments[lr];var Jt=yr(this,(Gt=Ht.__proto__||Object.getPrototypeOf(Ht)).call.apply(Gt,[this,Wt].concat(er)));return Jt.getScrollLeft=Jt.getScrollLeft.bind(Jt),Jt.getScrollTop=Jt.getScrollTop.bind(Jt),Jt.getScrollWidth=Jt.getScrollWidth.bind(Jt),Jt.getScrollHeight=Jt.getScrollHeight.bind(Jt),Jt.getClientWidth=Jt.getClientWidth.bind(Jt),Jt.getClientHeight=Jt.getClientHeight.bind(Jt),Jt.getValues=Jt.getValues.bind(Jt),Jt.getThumbHorizontalWidth=Jt.getThumbHorizontalWidth.bind(Jt),Jt.getThumbVerticalHeight=Jt.getThumbVerticalHeight.bind(Jt),Jt.getScrollLeftForOffset=Jt.getScrollLeftForOffset.bind(Jt),Jt.getScrollTopForOffset=Jt.getScrollTopForOffset.bind(Jt),Jt.scrollLeft=Jt.scrollLeft.bind(Jt),Jt.scrollTop=Jt.scrollTop.bind(Jt),Jt.scrollToLeft=Jt.scrollToLeft.bind(Jt),Jt.scrollToTop=Jt.scrollToTop.bind(Jt),Jt.scrollToRight=Jt.scrollToRight.bind(Jt),Jt.scrollToBottom=Jt.scrollToBottom.bind(Jt),Jt.handleTrackMouseEnter=Jt.handleTrackMouseEnter.bind(Jt),Jt.handleTrackMouseLeave=Jt.handleTrackMouseLeave.bind(Jt),Jt.handleHorizontalTrackMouseDown=Jt.handleHorizontalTrackMouseDown.bind(Jt),Jt.handleVerticalTrackMouseDown=Jt.handleVerticalTrackMouseDown.bind(Jt),Jt.handleHorizontalThumbMouseDown=Jt.handleHorizontalThumbMouseDown.bind(Jt),Jt.handleVerticalThumbMouseDown=Jt.handleVerticalThumbMouseDown.bind(Jt),Jt.handleWindowResize=Jt.handleWindowResize.bind(Jt),Jt.handleScroll=Jt.handleScroll.bind(Jt),Jt.handleDrag=Jt.handleDrag.bind(Jt),Jt.handleDragEnd=Jt.handleDragEnd.bind(Jt),Jt.state={didMountUniversal:!1},Jt}return yt(Ht,[{key:"componentDidMount",value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:"componentDidMountUniversal",value:function(){var Gt=this.props.universal;Gt&&this.setState({didMountUniversal:!0})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"componentWillUnmount",value:function(){this.removeListeners(),(0,Ct.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)}},{key:"getScrollLeft",value:function(){return this.view?this.view.scrollLeft:0}},{key:"getScrollTop",value:function(){return this.view?this.view.scrollTop:0}},{key:"getScrollWidth",value:function(){return this.view?this.view.scrollWidth:0}},{key:"getScrollHeight",value:function(){return this.view?this.view.scrollHeight:0}},{key:"getClientWidth",value:function(){return this.view?this.view.clientWidth:0}},{key:"getClientHeight",value:function(){return this.view?this.view.clientHeight:0}},{key:"getValues",value:function(){var Gt=this.view||{},Yt=Gt.scrollLeft,er=Yt===void 0?0:Yt,lr=Gt.scrollTop,Jt=lr===void 0?0:lr,Ut=Gt.scrollWidth,ir=Ut===void 0?0:Ut,Cr=Gt.scrollHeight,_r=Cr===void 0?0:Cr,$r=Gt.clientWidth,Tr=$r===void 0?0:$r,Dr=Gt.clientHeight,Ar=Dr===void 0?0:Dr;return{left:er/(ir-Tr)||0,top:Jt/(_r-Ar)||0,scrollLeft:er,scrollTop:Jt,scrollWidth:ir,scrollHeight:_r,clientWidth:Tr,clientHeight:Ar}}},{key:"getThumbHorizontalWidth",value:function(){var Gt=this.props,Yt=Gt.thumbSize,er=Gt.thumbMinSize,lr=this.view,Jt=lr.scrollWidth,Ut=lr.clientWidth,ir=(0,Qt.default)(this.trackHorizontal),Cr=Math.ceil(Ut/Jt*ir);return ir===Cr?0:Yt||Math.max(Cr,er)}},{key:"getThumbVerticalHeight",value:function(){var Gt=this.props,Yt=Gt.thumbSize,er=Gt.thumbMinSize,lr=this.view,Jt=lr.scrollHeight,Ut=lr.clientHeight,ir=(0,dr.default)(this.trackVertical),Cr=Math.ceil(Ut/Jt*ir);return ir===Cr?0:Yt||Math.max(Cr,er)}},{key:"getScrollLeftForOffset",value:function(Gt){var Yt=this.view,er=Yt.scrollWidth,lr=Yt.clientWidth,Jt=(0,Qt.default)(this.trackHorizontal),Ut=this.getThumbHorizontalWidth();return Gt/(Jt-Ut)*(er-lr)}},{key:"getScrollTopForOffset",value:function(Gt){var Yt=this.view,er=Yt.scrollHeight,lr=Yt.clientHeight,Jt=(0,dr.default)(this.trackVertical),Ut=this.getThumbVerticalHeight();return Gt/(Jt-Ut)*(er-lr)}},{key:"scrollLeft",value:function(){var Gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollLeft=Gt)}},{key:"scrollTop",value:function(){var Gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollTop=Gt)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if(!(typeof document>"u"||!this.view)){var Gt=this.view,Yt=this.trackHorizontal,er=this.trackVertical,lr=this.thumbHorizontal,Jt=this.thumbVertical;Gt.addEventListener("scroll",this.handleScroll),(0,zt.default)()&&(Yt.addEventListener("mouseenter",this.handleTrackMouseEnter),Yt.addEventListener("mouseleave",this.handleTrackMouseLeave),Yt.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),er.addEventListener("mouseenter",this.handleTrackMouseEnter),er.addEventListener("mouseleave",this.handleTrackMouseLeave),er.addEventListener("mousedown",this.handleVerticalTrackMouseDown),lr.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),Jt.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if(!(typeof document>"u"||!this.view)){var Gt=this.view,Yt=this.trackHorizontal,er=this.trackVertical,lr=this.thumbHorizontal,Jt=this.thumbVertical;Gt.removeEventListener("scroll",this.handleScroll),(0,zt.default)()&&(Yt.removeEventListener("mouseenter",this.handleTrackMouseEnter),Yt.removeEventListener("mouseleave",this.handleTrackMouseLeave),Yt.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),er.removeEventListener("mouseenter",this.handleTrackMouseEnter),er.removeEventListener("mouseleave",this.handleTrackMouseLeave),er.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),lr.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),Jt.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(Gt){var Yt=this,er=this.props,lr=er.onScroll,Jt=er.onScrollFrame;lr&&lr(Gt),this.update(function(Ut){var ir=Ut.scrollLeft,Cr=Ut.scrollTop;Yt.viewScrollLeft=ir,Yt.viewScrollTop=Cr,Jt&&Jt(Ut)}),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var Gt=this.props.onScrollStart;Gt&&Gt(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){var Gt=this.props.autoHide;Gt&&this.showTracks()}},{key:"handleScrollStop",value:function(){var Gt=this.props.onScrollStop;Gt&&Gt(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){var Gt=this.props.autoHide;Gt&&this.hideTracks()}},{key:"handleWindowResize",value:function(){this.update()}},{key:"handleHorizontalTrackMouseDown",value:function(Gt){Gt.preventDefault();var Yt=Gt.target,er=Gt.clientX,lr=Yt.getBoundingClientRect(),Jt=lr.left,Ut=this.getThumbHorizontalWidth(),ir=Math.abs(Jt-er)-Ut/2;this.view.scrollLeft=this.getScrollLeftForOffset(ir)}},{key:"handleVerticalTrackMouseDown",value:function(Gt){Gt.preventDefault();var Yt=Gt.target,er=Gt.clientY,lr=Yt.getBoundingClientRect(),Jt=lr.top,Ut=this.getThumbVerticalHeight(),ir=Math.abs(Jt-er)-Ut/2;this.view.scrollTop=this.getScrollTopForOffset(ir)}},{key:"handleHorizontalThumbMouseDown",value:function(Gt){Gt.preventDefault(),this.handleDragStart(Gt);var Yt=Gt.target,er=Gt.clientX,lr=Yt.offsetWidth,Jt=Yt.getBoundingClientRect(),Ut=Jt.left;this.prevPageX=lr-(er-Ut)}},{key:"handleVerticalThumbMouseDown",value:function(Gt){Gt.preventDefault(),this.handleDragStart(Gt);var Yt=Gt.target,er=Gt.clientY,lr=Yt.offsetHeight,Jt=Yt.getBoundingClientRect(),Ut=Jt.top;this.prevPageY=lr-(er-Ut)}},{key:"setupDragging",value:function(){(0,Bt.default)(document.body,cr.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=Kt.default}},{key:"teardownDragging",value:function(){(0,Bt.default)(document.body,cr.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(Gt){this.dragging=!0,Gt.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(Gt){if(this.prevPageX){var Yt=Gt.clientX,er=this.trackHorizontal.getBoundingClientRect(),lr=er.left,Jt=this.getThumbHorizontalWidth(),Ut=Jt-this.prevPageX,ir=-lr+Yt-Ut;this.view.scrollLeft=this.getScrollLeftForOffset(ir)}if(this.prevPageY){var Cr=Gt.clientY,_r=this.trackVertical.getBoundingClientRect(),$r=_r.top,Tr=this.getThumbVerticalHeight(),Dr=Tr-this.prevPageY,Ar=-$r+Cr-Dr;this.view.scrollTop=this.getScrollTopForOffset(Ar)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){var Gt=this.props.autoHide;Gt&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){var Gt=this.props.autoHide;Gt&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){var Gt=this.props.autoHide;Gt&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,Bt.default)(this.trackHorizontal,{opacity:1}),(0,Bt.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var Gt=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var Yt=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout(function(){(0,Bt.default)(Gt.trackHorizontal,{opacity:0}),(0,Bt.default)(Gt.trackVertical,{opacity:0})},Yt)}}},{key:"detectScrolling",value:function(){var Gt=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval(function(){Gt.lastViewScrollLeft===Gt.viewScrollLeft&&Gt.lastViewScrollTop===Gt.viewScrollTop&&(clearInterval(Gt.detectScrollingInterval),Gt.scrolling=!1,Gt.handleScrollStop()),Gt.lastViewScrollLeft=Gt.viewScrollLeft,Gt.lastViewScrollTop=Gt.viewScrollTop},100))}},{key:"raf",value:function(Gt){var Yt=this;this.requestFrame&&$t.default.cancel(this.requestFrame),this.requestFrame=(0,$t.default)(function(){Yt.requestFrame=void 0,Gt()})}},{key:"update",value:function(Gt){var Yt=this;this.raf(function(){return Yt._update(Gt)})}},{key:"_update",value:function(Gt){var Yt=this.props,er=Yt.onUpdate,lr=Yt.hideTracksWhenNotNeeded,Jt=this.getValues();if((0,zt.default)()){var Ut=Jt.scrollLeft,ir=Jt.clientWidth,Cr=Jt.scrollWidth,_r=(0,Qt.default)(this.trackHorizontal),$r=this.getThumbHorizontalWidth(),Tr=Ut/(Cr-ir)*(_r-$r),Dr={width:$r,transform:"translateX("+Tr+"px)"},Ar=Jt.scrollTop,Fr=Jt.clientHeight,Rr=Jt.scrollHeight,wr=(0,dr.default)(this.trackVertical),Sr=this.getThumbVerticalHeight(),Br=Ar/(Rr-Fr)*(wr-Sr),Or={height:Sr,transform:"translateY("+Br+"px)"};if(lr){var Pr={visibility:Cr>ir?"visible":"hidden"},Nr={visibility:Rr>Fr?"visible":"hidden"};(0,Bt.default)(this.trackHorizontal,Pr),(0,Bt.default)(this.trackVertical,Nr)}(0,Bt.default)(this.thumbHorizontal,Dr),(0,Bt.default)(this.thumbVertical,Or)}er&&er(Jt),typeof Gt=="function"&&Gt(Jt)}},{key:"render",value:function(){var Gt=this,Yt=(0,zt.default)(),er=this.props;er.onScroll,er.onScrollFrame,er.onScrollStart,er.onScrollStop,er.onUpdate;var lr=er.renderView,Jt=er.renderTrackHorizontal,Ut=er.renderTrackVertical,ir=er.renderThumbHorizontal,Cr=er.renderThumbVertical,_r=er.tagName;er.hideTracksWhenNotNeeded;var $r=er.autoHide;er.autoHideTimeout;var Tr=er.autoHideDuration;er.thumbSize,er.thumbMinSize;var Dr=er.universal,Ar=er.autoHeight,Fr=er.autoHeightMin,Rr=er.autoHeightMax,wr=er.style,Sr=er.children,Br=gr(er,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),Or=this.state.didMountUniversal,Pr=Et({},cr.containerStyleDefault,Ar&&Et({},cr.containerStyleAutoHeight,{minHeight:Fr,maxHeight:Rr}),wr),Nr=Et({},cr.viewStyleDefault,{marginRight:Yt?-Yt:0,marginBottom:Yt?-Yt:0},Ar&&Et({},cr.viewStyleAutoHeight,{minHeight:(0,Nt.default)(Fr)?"calc("+Fr+" + "+Yt+"px)":Fr+Yt,maxHeight:(0,Nt.default)(Rr)?"calc("+Rr+" + "+Yt+"px)":Rr+Yt}),Ar&&Dr&&!Or&&{minHeight:Fr,maxHeight:Rr},Dr&&!Or&&cr.viewStyleUniversalInitial),Lr={transition:"opacity "+Tr+"ms",opacity:0},Wr=Et({},cr.trackHorizontalStyleDefault,$r&&Lr,(!Yt||Dr&&!Or)&&{display:"none"}),Ur=Et({},cr.trackVerticalStyleDefault,$r&&Lr,(!Yt||Dr&&!Or)&&{display:"none"});return(0,Dt.createElement)(_r,Et({},Br,{style:Pr,ref:function(Kr){Gt.container=Kr}}),[(0,Dt.cloneElement)(lr({style:Nr}),{key:"view",ref:function(Kr){Gt.view=Kr}},Sr),(0,Dt.cloneElement)(Jt({style:Wr}),{key:"trackHorizontal",ref:function(Kr){Gt.trackHorizontal=Kr}},(0,Dt.cloneElement)(ir({style:cr.thumbHorizontalStyleDefault}),{ref:function(Kr){Gt.thumbHorizontal=Kr}})),(0,Dt.cloneElement)(Ut({style:Ur}),{key:"trackVertical",ref:function(Kr){Gt.trackVertical=Kr}},(0,Dt.cloneElement)(Cr({style:cr.thumbVerticalStyleDefault}),{ref:function(Kr){Gt.thumbVertical=Kr}}))])}}]),Ht}(Dt.Component);ht.default=rr,rr.propTypes={onScroll:kt.default.func,onScrollFrame:kt.default.func,onScrollStart:kt.default.func,onScrollStop:kt.default.func,onUpdate:kt.default.func,renderView:kt.default.func,renderTrackHorizontal:kt.default.func,renderTrackVertical:kt.default.func,renderThumbHorizontal:kt.default.func,renderThumbVertical:kt.default.func,tagName:kt.default.string,thumbSize:kt.default.number,thumbMinSize:kt.default.number,hideTracksWhenNotNeeded:kt.default.bool,autoHide:kt.default.bool,autoHideTimeout:kt.default.number,autoHideDuration:kt.default.number,autoHeight:kt.default.bool,autoHeightMin:kt.default.oneOfType([kt.default.number,kt.default.string]),autoHeightMax:kt.default.oneOfType([kt.default.number,kt.default.string]),universal:kt.default.bool,style:kt.default.object,children:kt.default.node},rr.defaultProps={renderView:Er.renderViewDefault,renderTrackHorizontal:Er.renderTrackHorizontalDefault,renderTrackVertical:Er.renderTrackVerticalDefault,renderThumbHorizontal:Er.renderThumbHorizontalDefault,renderThumbVertical:Er.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}})(Scrollbars);(function(ht){Object.defineProperty(ht,"__esModule",{value:!0}),ht.Scrollbars=void 0;var Et=Scrollbars,yt=Ct(Et);function Ct($t){return $t&&$t.__esModule?$t:{default:$t}}ht.default=yt.default,ht.Scrollbars=yt.default})(lib$3);const container$8="_container_17118_1",title$3="_title_17118_9",antd="_antd_17118_12",content="_content_17118_26",styles$i={container:container$8,default:"_default_17118_6",title:title$3,antd,content},Card=reactExports.forwardRef((ht,Et)=>{const{theme:yt="default",loading:Ct,scroll:$t,suppressAutoHide:At,title:Bt,children:Dt,style:Ft={},contentStyle:kt={},className:Mt,contentClass:Nt,titleStyle:jt={},tittleClass:zt,onClick:Vt}=ht,Kt=reactExports.useRef(null),{mode:Xt}=reactExports.useContext(ThemeContext);reactExports.useImperativeHandle(Et,()=>{var dr;return{contentHeight:((dr=Kt==null?void 0:Kt.current)==null?void 0:dr.getClientHeight())??0}});const Qt={padding:"12px 20px",fontSize:"15px",...jt},Zt={padding:"12px 20px",...typeof Ct=="boolean"&&Ct?{}:kt};return jsxRuntimeExports.jsxs("div",{className:cls(styles$i.container,styles$i[yt],Mt),style:Ft,onClick:Vt,children:[Bt&&jsxRuntimeExports.jsx("div",{className:cls(styles$i.title,zt),style:Qt,children:Bt}),$t?jsxRuntimeExports.jsx(lib$3.Scrollbars,{ref:Kt,as:"div",skin:Xt==="dark"?"dark":"light",autoHide:At,className:styles$i.content,style:Zt,children:typeof Ct=="boolean"&&Ct?jsxRuntimeExports.jsx(Skeleton,{active:!0}):Dt}):jsxRuntimeExports.jsx("div",{className:cls(styles$i.content,Nt),style:Zt,children:typeof Ct=="boolean"&&Ct?jsxRuntimeExports.jsx(Skeleton,{active:!0}):Dt})]})}),copyButton$1="_copyButton_1srdf_1",hoverShowIcon="_hoverShowIcon_1srdf_5",iconContainer="_iconContainer_1srdf_5",copied="_copied_1srdf_22",iconCopy="_iconCopy_1srdf_22",iconSuccess="_iconSuccess_1srdf_25",styles$h={copyButton:copyButton$1,hoverShowIcon,iconContainer,copied,iconCopy,iconSuccess},CopyButton=({text:ht="",size:Et=16,color:yt="#87898C",ml:Ct=6,mr:$t,className:At,style:Bt={},placement:Dt="right",hover:Ft,children:kt})=>{const[Mt,Nt]=reactExports.useState(!1),jt=Qt=>{copy$1(Qt),Nt(!0),setTimeout(()=>{Nt(!1)},2e3)},zt=Qt=>{if(Qt.stopPropagation(),Qt.preventDefault(),typeof ht=="function"){const Zt=ht();Zt instanceof Promise?Zt.then(dr=>{jt(dr)}):jt(Zt)}else jt(ht)},Vt=!kt,Kt={minWidth:`${Et}px`,maxWidth:`${Et}px`,minHeight:`${Et}px`,maxHeight:`${Et}px`,marginLeft:`${Ct}px`,marginRight:`${$t}px`,...Vt?Bt:{}},Xt={display:Vt?"contents":"inline-flex",...Bt};return jsxRuntimeExports.jsxs("div",{className:cls(styles$h.copyButton,{[styles$h.hoverShowIcon]:!Vt&&Ft},At),style:Xt,children:[Dt==="right"&&kt,jsxRuntimeExports.jsxs("div",{className:cls(styles$h.iconContainer,Vt&&At,{[styles$h.copied]:Mt}),style:Kt,children:[jsxRuntimeExports.jsx(Iconfont,{className:styles$h.iconCopy,type:"icon-copy",color:yt,size:Et,onClick:zt}),jsxRuntimeExports.jsx(Iconfont,{className:styles$h.iconSuccess,type:"icon-right",size:Et})]}),Dt==="left"&&kt]})},Symbol$4=({network:ht,size:Et=46,ml:yt=0,mr:Ct=0,className:$t})=>{let At={};Et&&(At={width:Et,height:Et,marginLeft:yt,marginRight:Ct});let Bt="";return ht&&(Bt=typeof ht=="number"?NetworkUtils.getSymbolByChainId(ht):NetworkUtils.getSymbolBySimpleName(ht)),Bt=Bt||getRandomAvatar(),jsxRuntimeExports.jsx("img",{src:Bt,alt:"",style:At,className:$t,loading:"lazy"})};var _globalThis$2=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global$g=="object"?global$g:{},VERSION$2="1.9.0",re=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function _makeCompatibilityCheck(ht){var Et=new Set([ht]),yt=new Set,Ct=ht.match(re);if(!Ct)return function(){return!1};var $t={major:+Ct[1],minor:+Ct[2],patch:+Ct[3],prerelease:Ct[4]};if($t.prerelease!=null)return function(Ft){return Ft===ht};function At(Dt){return yt.add(Dt),!1}function Bt(Dt){return Et.add(Dt),!0}return function(Ft){if(Et.has(Ft))return!0;if(yt.has(Ft))return!1;var kt=Ft.match(re);if(!kt)return At(Ft);var Mt={major:+kt[1],minor:+kt[2],patch:+kt[3],prerelease:kt[4]};return Mt.prerelease!=null||$t.major!==Mt.major?At(Ft):$t.major===0?$t.minor===Mt.minor&&$t.patch<=Mt.patch?Bt(Ft):At(Ft):$t.minor<=Mt.minor?Bt(Ft):At(Ft)}}var isCompatible=_makeCompatibilityCheck(VERSION$2),major=VERSION$2.split(".")[0],GLOBAL_OPENTELEMETRY_API_KEY=Symbol.for("opentelemetry.js.api."+major),_global$1=_globalThis$2;function registerGlobal(ht,Et,yt,Ct){var $t;Ct===void 0&&(Ct=!1);var At=_global$1[GLOBAL_OPENTELEMETRY_API_KEY]=($t=_global$1[GLOBAL_OPENTELEMETRY_API_KEY])!==null&&$t!==void 0?$t:{version:VERSION$2};if(!Ct&&At[ht]){var Bt=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+ht);return yt.error(Bt.stack||Bt.message),!1}if(At.version!==VERSION$2){var Bt=new Error("@opentelemetry/api: Registration of version v"+At.version+" for "+ht+" does not match previously registered API v"+VERSION$2);return yt.error(Bt.stack||Bt.message),!1}return At[ht]=Et,yt.debug("@opentelemetry/api: Registered a global for "+ht+" v"+VERSION$2+"."),!0}function getGlobal(ht){var Et,yt,Ct=(Et=_global$1[GLOBAL_OPENTELEMETRY_API_KEY])===null||Et===void 0?void 0:Et.version;if(!(!Ct||!isCompatible(Ct)))return(yt=_global$1[GLOBAL_OPENTELEMETRY_API_KEY])===null||yt===void 0?void 0:yt[ht]}function unregisterGlobal(ht,Et){Et.debug("@opentelemetry/api: Unregistering a global for "+ht+" v"+VERSION$2+".");var yt=_global$1[GLOBAL_OPENTELEMETRY_API_KEY];yt&&delete yt[ht]}var __read$f=function(ht,Et){var yt=typeof Symbol=="function"&&ht[Symbol.iterator];if(!yt)return ht;var Ct=yt.call(ht),$t,At=[],Bt;try{for(;(Et===void 0||Et-- >0)&&!($t=Ct.next()).done;)At.push($t.value)}catch(Dt){Bt={error:Dt}}finally{try{$t&&!$t.done&&(yt=Ct.return)&&yt.call(Ct)}finally{if(Bt)throw Bt.error}}return At},__spreadArray$7=function(ht,Et,yt){if(yt||arguments.length===2)for(var Ct=0,$t=Et.length,At;Ct<$t;Ct++)(At||!(Ct in Et))&&(At||(At=Array.prototype.slice.call(Et,0,Ct)),At[Ct]=Et[Ct]);return ht.concat(At||Array.prototype.slice.call(Et))},DiagComponentLogger=function(){function ht(Et){this._namespace=Et.namespace||"DiagComponentLogger"}return ht.prototype.debug=function(){for(var Et=[],yt=0;yt<arguments.length;yt++)Et[yt]=arguments[yt];return logProxy("debug",this._namespace,Et)},ht.prototype.error=function(){for(var Et=[],yt=0;yt<arguments.length;yt++)Et[yt]=arguments[yt];return logProxy("error",this._namespace,Et)},ht.prototype.info=function(){for(var Et=[],yt=0;yt<arguments.length;yt++)Et[yt]=arguments[yt];return logProxy("info",this._namespace,Et)},ht.prototype.warn=function(){for(var Et=[],yt=0;yt<arguments.length;yt++)Et[yt]=arguments[yt];return logProxy("warn",this._namespace,Et)},ht.prototype.verbose=function(){for(var Et=[],yt=0;yt<arguments.length;yt++)Et[yt]=arguments[yt];return logProxy("verbose",this._namespace,Et)},ht}();function logProxy(ht,Et,yt){var Ct=getGlobal("diag");if(Ct)return yt.unshift(Et),Ct[ht].apply(Ct,__spreadArray$7([],__read$f(yt),!1))}var DiagLogLevel;(function(ht){ht[ht.NONE=0]="NONE",ht[ht.ERROR=30]="ERROR",ht[ht.WARN=50]="WARN",ht[ht.INFO=60]="INFO",ht[ht.DEBUG=70]="DEBUG",ht[ht.VERBOSE=80]="VERBOSE",ht[ht.ALL=9999]="ALL"})(DiagLogLevel||(DiagLogLevel={}));function createLogLevelDiagLogger(ht,Et){ht<DiagLogLevel.NONE?ht=DiagLogLevel.NONE:ht>DiagLogLevel.ALL&&(ht=DiagLogLevel.ALL),Et=Et||{};function yt(Ct,$t){var At=Et[Ct];return typeof At=="function"&&ht>=$t?At.bind(Et):function(){}}return{error:yt("error",DiagLogLevel.ERROR),warn:yt("warn",DiagLogLevel.WARN),info:yt("info",DiagLogLevel.INFO),debug:yt("debug",DiagLogLevel.DEBUG),verbose:yt("verbose",DiagLogLevel.VERBOSE)}}var __read$e=function(ht,Et){var yt=typeof Symbol=="function"&&ht[Symbol.iterator];if(!yt)return ht;var Ct=yt.call(ht),$t,At=[],Bt;try{for(;(Et===void 0||Et-- >0)&&!($t=Ct.next()).done;)At.push($t.value)}catch(Dt){Bt={error:Dt}}finally{try{$t&&!$t.done&&(yt=Ct.return)&&yt.call(Ct)}finally{if(Bt)throw Bt.error}}return At},__spreadArray$6=function(ht,Et,yt){if(yt||arguments.length===2)for(var Ct=0,$t=Et.length,At;Ct<$t;Ct++)(At||!(Ct in Et))&&(At||(At=Array.prototype.slice.call(Et,0,Ct)),At[Ct]=Et[Ct]);return ht.concat(At||Array.prototype.slice.call(Et))},API_NAME$4="diag",DiagAPI=function(){function ht(){function Et($t){return function(){for(var At=[],Bt=0;Bt<arguments.length;Bt++)At[Bt]=arguments[Bt];var Dt=getGlobal("diag");if(Dt)return Dt[$t].apply(Dt,__spreadArray$6([],__read$e(At),!1))}}var yt=this,Ct=function($t,At){var Bt,Dt,Ft;if(At===void 0&&(At={logLevel:DiagLogLevel.INFO}),$t===yt){var kt=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return yt.error((Bt=kt.stack)!==null&&Bt!==void 0?Bt:kt.message),!1}typeof At=="number"&&(At={logLevel:At});var Mt=getGlobal("diag"),Nt=createLogLevelDiagLogger((Dt=At.logLevel)!==null&&Dt!==void 0?Dt:DiagLogLevel.INFO,$t);if(Mt&&!At.suppressOverrideMessage){var jt=(Ft=new Error().stack)!==null&&Ft!==void 0?Ft:"<failed to generate stacktrace>";Mt.warn("Current logger will be overwritten from "+jt),Nt.warn("Current logger will overwrite one already registered from "+jt)}return registerGlobal("diag",Nt,yt,!0)};yt.setLogger=Ct,yt.disable=function(){unregisterGlobal(API_NAME$4,yt)},yt.createComponentLogger=function($t){return new DiagComponentLogger($t)},yt.verbose=Et("verbose"),yt.debug=Et("debug"),yt.info=Et("info"),yt.warn=Et("warn"),yt.error=Et("error")}return ht.instance=function(){return this._instance||(this._instance=new ht),this._instance},ht}(),__read$d=function(ht,Et){var yt=typeof Symbol=="function"&&ht[Symbol.iterator];if(!yt)return ht;var Ct=yt.call(ht),$t,At=[],Bt;try{for(;(Et===void 0||Et-- >0)&&!($t=Ct.next()).done;)At.push($t.value)}catch(Dt){Bt={error:Dt}}finally{try{$t&&!$t.done&&(yt=Ct.return)&&yt.call(Ct)}finally{if(Bt)throw Bt.error}}return At},__values$5=function(ht){var Et=typeof Symbol=="function"&&Symbol.iterator,yt=Et&&ht[Et],Ct=0;if(yt)return yt.call(ht);if(ht&&typeof ht.length=="number")return{next:function(){return ht&&Ct>=ht.length&&(ht=void 0),{value:ht&&ht[Ct++],done:!ht}}};throw new TypeError(Et?"Object is not iterable.":"Symbol.iterator is not defined.")},BaggageImpl=function(){function ht(Et){this._entries=Et?new Map(Et):new Map}return ht.prototype.getEntry=function(Et){var yt=this._entries.get(Et);if(yt)return Object.assign({},yt)},ht.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(Et){var yt=__read$d(Et,2),Ct=yt[0],$t=yt[1];return[Ct,$t]})},ht.prototype.setEntry=function(Et,yt){var Ct=new ht(this._entries);return Ct._entries.set(Et,yt),Ct},ht.prototype.removeEntry=function(Et){var yt=new ht(this._entries);return yt._entries.delete(Et),yt},ht.prototype.removeEntries=function(){for(var Et,yt,Ct=[],$t=0;$t<arguments.length;$t++)Ct[$t]=arguments[$t];var At=new ht(this._entries);try{for(var Bt=__values$5(Ct),Dt=Bt.next();!Dt.done;Dt=Bt.next()){var Ft=Dt.value;At._entries.delete(Ft)}}catch(kt){Et={error:kt}}finally{try{Dt&&!Dt.done&&(yt=Bt.return)&&yt.call(Bt)}finally{if(Et)throw Et.error}}return At},ht.prototype.clear=function(){return new ht},ht}(),baggageEntryMetadataSymbol=Symbol("BaggageEntryMetadata"),diag$1=DiagAPI.instance();function createBaggage(ht){return ht===void 0&&(ht={}),new BaggageImpl(new Map(Object.entries(ht)))}function baggageEntryMetadataFromString(ht){return typeof ht!="string"&&(diag$1.error("Cannot create baggage metadata from unknown type: "+typeof ht),ht=""),{__TYPE__:baggageEntryMetadataSymbol,toString:function(){return ht}}}function createContextKey(ht){return Symbol.for(ht)}var BaseContext=function(){function ht(Et){var yt=this;yt._currentContext=Et?new Map(Et):new Map,yt.getValue=function(Ct){return yt._currentContext.get(Ct)},yt.setValue=function(Ct,$t){var At=new ht(yt._currentContext);return At._currentContext.set(Ct,$t),At},yt.deleteValue=function(Ct){var $t=new ht(yt._currentContext);return $t._currentContext.delete(Ct),$t}}return ht}(),ROOT_CONTEXT=new BaseContext,__extends$8=function(){var ht=function(Et,yt){return ht=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ct,$t){Ct.__proto__=$t}||function(Ct,$t){for(var At in $t)Object.prototype.hasOwnProperty.call($t,At)&&(Ct[At]=$t[At])},ht(Et,yt)};return function(Et,yt){if(typeof yt!="function"&&yt!==null)throw new TypeError("Class extends value "+String(yt)+" is not a constructor or null");ht(Et,yt);function Ct(){this.constructor=Et}Et.prototype=yt===null?Object.create(yt):(Ct.prototype=yt.prototype,new Ct)}}(),NoopMeter=function(){function ht(){}return ht.prototype.createGauge=function(Et,yt){return NOOP_GAUGE_METRIC},ht.prototype.createHistogram=function(Et,yt){return NOOP_HISTOGRAM_METRIC},ht.prototype.createCounter=function(Et,yt){return NOOP_COUNTER_METRIC},ht.prototype.createUpDownCounter=function(Et,yt){return NOOP_UP_DOWN_COUNTER_METRIC},ht.prototype.createObservableGauge=function(Et,yt){return NOOP_OBSERVABLE_GAUGE_METRIC},ht.prototype.createObservableCounter=function(Et,yt){return NOOP_OBSERVABLE_COUNTER_METRIC},ht.prototype.createObservableUpDownCounter=function(Et,yt){return NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC},ht.prototype.addBatchObservableCallback=function(Et,yt){},ht.prototype.removeBatchObservableCallback=function(Et){},ht}(),NoopMetric=function(){function ht(){}return ht}(),NoopCounterMetric=function(ht){__extends$8(Et,ht);function Et(){return ht!==null&&ht.apply(this,arguments)||this}return Et.prototype.add=function(yt,Ct){},Et}(NoopMetric),NoopUpDownCounterMetric=function(ht){__extends$8(Et,ht);function Et(){return ht!==null&&ht.apply(this,arguments)||this}return Et.prototype.add=function(yt,Ct){},Et}(NoopMetric),NoopGaugeMetric=function(ht){__extends$8(Et,ht);function Et(){return ht!==null&&ht.apply(this,arguments)||this}return Et.prototype.record=function(yt,Ct){},Et}(NoopMetric),NoopHistogramMetric=function(ht){__extends$8(Et,ht);function Et(){return ht!==null&&ht.apply(this,arguments)||this}return Et.prototype.record=function(yt,Ct){},Et}(NoopMetric),NoopObservableMetric=function(){function ht(){}return ht.prototype.addCallback=function(Et){},ht.prototype.removeCallback=function(Et){},ht}(),NoopObservableCounterMetric=function(ht){__extends$8(Et,ht);function Et(){return ht!==null&&ht.apply(this,arguments)||this}return Et}(NoopObservableMetric),NoopObservableGaugeMetric=function(ht){__extends$8(Et,ht);function Et(){return ht!==null&&ht.apply(this,arguments)||this}return Et}(NoopObservableMetric),NoopObservableUpDownCounterMetric=function(ht){__extends$8(Et,ht);function Et(){return ht!==null&&ht.apply(this,arguments)||this}return Et}(NoopObservableMetric),NOOP_METER=new NoopMeter,NOOP_COUNTER_METRIC=new NoopCounterMetric,NOOP_GAUGE_METRIC=new NoopGaugeMetric,NOOP_HISTOGRAM_METRIC=new NoopHistogramMetric,NOOP_UP_DOWN_COUNTER_METRIC=new NoopUpDownCounterMetric,NOOP_OBSERVABLE_COUNTER_METRIC=new NoopObservableCounterMetric,NOOP_OBSERVABLE_GAUGE_METRIC=new NoopObservableGaugeMetric,NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=new NoopObservableUpDownCounterMetric,defaultTextMapGetter={get:function(ht,Et){if(ht!=null)return ht[Et]},keys:function(ht){return ht==null?[]:Object.keys(ht)}},defaultTextMapSetter={set:function(ht,Et,yt){ht!=null&&(ht[Et]=yt)}},__read$c=function(ht,Et){var yt=typeof Symbol=="function"&&ht[Symbol.iterator];if(!yt)return ht;var Ct=yt.call(ht),$t,At=[],Bt;try{for(;(Et===void 0||Et-- >0)&&!($t=Ct.next()).done;)At.push($t.value)}catch(Dt){Bt={error:Dt}}finally{try{$t&&!$t.done&&(yt=Ct.return)&&yt.call(Ct)}finally{if(Bt)throw Bt.error}}return At},__spreadArray$5=function(ht,Et,yt){if(yt||arguments.length===2)for(var Ct=0,$t=Et.length,At;Ct<$t;Ct++)(At||!(Ct in Et))&&(At||(At=Array.prototype.slice.call(Et,0,Ct)),At[Ct]=Et[Ct]);return ht.concat(At||Array.prototype.slice.call(Et))},NoopContextManager=function(){function ht(){}return ht.prototype.active=function(){return ROOT_CONTEXT},ht.prototype.with=function(Et,yt,Ct){for(var $t=[],At=3;At<arguments.length;At++)$t[At-3]=arguments[At];return yt.call.apply(yt,__spreadArray$5([Ct],__read$c($t),!1))},ht.prototype.bind=function(Et,yt){return yt},ht.prototype.enable=function(){return this},ht.prototype.disable=function(){return this},ht}(),__read$b=function(ht,Et){var yt=typeof Symbol=="function"&&ht[Symbol.iterator];if(!yt)return ht;var Ct=yt.call(ht),$t,At=[],Bt;try{for(;(Et===void 0||Et-- >0)&&!($t=Ct.next()).done;)At.push($t.value)}catch(Dt){Bt={error:Dt}}finally{try{$t&&!$t.done&&(yt=Ct.return)&&yt.call(Ct)}finally{if(Bt)throw Bt.error}}return At},__spreadArray$4=function(ht,Et,yt){if(yt||arguments.length===2)for(var Ct=0,$t=Et.length,At;Ct<$t;Ct++)(At||!(Ct in Et))&&(At||(At=Array.prototype.slice.call(Et,0,Ct)),At[Ct]=Et[Ct]);return ht.concat(At||Array.prototype.slice.call(Et))},API_NAME$3="context",NOOP_CONTEXT_MANAGER=new NoopContextManager,ContextAPI=function(){function ht(){}return ht.getInstance=function(){return this._instance||(this._instance=new ht),this._instance},ht.prototype.setGlobalContextManager=function(Et){return registerGlobal(API_NAME$3,Et,DiagAPI.instance())},ht.prototype.active=function(){return this._getContextManager().active()},ht.prototype.with=function(Et,yt,Ct){for(var $t,At=[],Bt=3;Bt<arguments.length;Bt++)At[Bt-3]=arguments[Bt];return($t=this._getContextManager()).with.apply($t,__spreadArray$4([Et,yt,Ct],__read$b(At),!1))},ht.prototype.bind=function(Et,yt){return this._getContextManager().bind(Et,yt)},ht.prototype._getContextManager=function(){return getGlobal(API_NAME$3)||NOOP_CONTEXT_MANAGER},ht.prototype.disable=function(){this._getContextManager().disable(),unregisterGlobal(API_NAME$3,DiagAPI.instance())},ht}(),TraceFlags;(function(ht){ht[ht.NONE=0]="NONE",ht[ht.SAMPLED=1]="SAMPLED"})(TraceFlags||(TraceFlags={}));var INVALID_SPANID="0000000000000000",INVALID_TRACEID="00000000000000000000000000000000",INVALID_SPAN_CONTEXT={traceId:INVALID_TRACEID,spanId:INVALID_SPANID,traceFlags:TraceFlags.NONE},NonRecordingSpan=function(){function ht(Et){Et===void 0&&(Et=INVALID_SPAN_CONTEXT),this._spanContext=Et}return ht.prototype.spanContext=function(){return this._spanContext},ht.prototype.setAttribute=function(Et,yt){return this},ht.prototype.setAttributes=function(Et){return this},ht.prototype.addEvent=function(Et,yt){return this},ht.prototype.addLink=function(Et){return this},ht.prototype.addLinks=function(Et){return this},ht.prototype.setStatus=function(Et){return this},ht.prototype.updateName=function(Et){return this},ht.prototype.end=function(Et){},ht.prototype.isRecording=function(){return!1},ht.prototype.recordException=function(Et,yt){},ht}(),SPAN_KEY=createContextKey("OpenTelemetry Context Key SPAN");function getSpan(ht){return ht.getValue(SPAN_KEY)||void 0}function getActiveSpan(){return getSpan(ContextAPI.getInstance().active())}function setSpan(ht,Et){return ht.setValue(SPAN_KEY,Et)}function deleteSpan(ht){return ht.deleteValue(SPAN_KEY)}function setSpanContext(ht,Et){return setSpan(ht,new NonRecordingSpan(Et))}function getSpanContext(ht){var Et;return(Et=getSpan(ht))===null||Et===void 0?void 0:Et.spanContext()}var VALID_TRACEID_REGEX=/^([0-9a-f]{32})$/i,VALID_SPANID_REGEX=/^[0-9a-f]{16}$/i;function isValidTraceId(ht){return VALID_TRACEID_REGEX.test(ht)&&ht!==INVALID_TRACEID}function isValidSpanId(ht){return VALID_SPANID_REGEX.test(ht)&&ht!==INVALID_SPANID}function isSpanContextValid(ht){return isValidTraceId(ht.traceId)&&isValidSpanId(ht.spanId)}function wrapSpanContext(ht){return new NonRecordingSpan(ht)}var contextApi=ContextAPI.getInstance(),NoopTracer=function(){function ht(){}return ht.prototype.startSpan=function(Et,yt,Ct){Ct===void 0&&(Ct=contextApi.active());var $t=!!(yt!=null&&yt.root);if($t)return new NonRecordingSpan;var At=Ct&&getSpanContext(Ct);return isSpanContext(At)&&isSpanContextValid(At)?new NonRecordingSpan(At):new NonRecordingSpan},ht.prototype.startActiveSpan=function(Et,yt,Ct,$t){var At,Bt,Dt;if(!(arguments.length<2)){arguments.length===2?Dt=yt:arguments.length===3?(At=yt,Dt=Ct):(At=yt,Bt=Ct,Dt=$t);var Ft=Bt??contextApi.active(),kt=this.startSpan(Et,At,Ft),Mt=setSpan(Ft,kt);return contextApi.with(Mt,Dt,void 0,kt)}},ht}();function isSpanContext(ht){return typeof ht=="object"&&typeof ht.spanId=="string"&&typeof ht.traceId=="string"&&typeof ht.traceFlags=="number"}var NOOP_TRACER=new NoopTracer,ProxyTracer=function(){function ht(Et,yt,Ct,$t){this._provider=Et,this.name=yt,this.version=Ct,this.options=$t}return ht.prototype.startSpan=function(Et,yt,Ct){return this._getTracer().startSpan(Et,yt,Ct)},ht.prototype.startActiveSpan=function(Et,yt,Ct,$t){var At=this._getTracer();return Reflect.apply(At.startActiveSpan,At,arguments)},ht.prototype._getTracer=function(){if(this._delegate)return this._delegate;var Et=this._provider.getDelegateTracer(this.name,this.version,this.options);return Et?(this._delegate=Et,this._delegate):NOOP_TRACER},ht}(),NoopTracerProvider=function(){function ht(){}return ht.prototype.getTracer=function(Et,yt,Ct){return new NoopTracer},ht}(),NOOP_TRACER_PROVIDER=new NoopTracerProvider,ProxyTracerProvider=function(){function ht(){}return ht.prototype.getTracer=function(Et,yt,Ct){var $t;return($t=this.getDelegateTracer(Et,yt,Ct))!==null&&$t!==void 0?$t:new ProxyTracer(this,Et,yt,Ct)},ht.prototype.getDelegate=function(){var Et;return(Et=this._delegate)!==null&&Et!==void 0?Et:NOOP_TRACER_PROVIDER},ht.prototype.setDelegate=function(Et){this._delegate=Et},ht.prototype.getDelegateTracer=function(Et,yt,Ct){var $t;return($t=this._delegate)===null||$t===void 0?void 0:$t.getTracer(Et,yt,Ct)},ht}(),SamplingDecision$1;(function(ht){ht[ht.NOT_RECORD=0]="NOT_RECORD",ht[ht.RECORD=1]="RECORD",ht[ht.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(SamplingDecision$1||(SamplingDecision$1={}));var SpanKind;(function(ht){ht[ht.INTERNAL=0]="INTERNAL",ht[ht.SERVER=1]="SERVER",ht[ht.CLIENT=2]="CLIENT",ht[ht.PRODUCER=3]="PRODUCER",ht[ht.CONSUMER=4]="CONSUMER"})(SpanKind||(SpanKind={}));var SpanStatusCode;(function(ht){ht[ht.UNSET=0]="UNSET",ht[ht.OK=1]="OK",ht[ht.ERROR=2]="ERROR"})(SpanStatusCode||(SpanStatusCode={}));var context=ContextAPI.getInstance(),diag=DiagAPI.instance(),NoopMeterProvider=function(){function ht(){}return ht.prototype.getMeter=function(Et,yt,Ct){return NOOP_METER},ht}(),NOOP_METER_PROVIDER=new NoopMeterProvider,API_NAME$2="metrics",MetricsAPI=function(){function ht(){}return ht.getInstance=function(){return this._instance||(this._instance=new ht),this._instance},ht.prototype.setGlobalMeterProvider=function(Et){return registerGlobal(API_NAME$2,Et,DiagAPI.instance())},ht.prototype.getMeterProvider=function(){return getGlobal(API_NAME$2)||NOOP_METER_PROVIDER},ht.prototype.getMeter=function(Et,yt,Ct){return this.getMeterProvider().getMeter(Et,yt,Ct)},ht.prototype.disable=function(){unregisterGlobal(API_NAME$2,DiagAPI.instance())},ht}(),metrics=MetricsAPI.getInstance(),NoopTextMapPropagator=function(){function ht(){}return ht.prototype.inject=function(Et,yt){},ht.prototype.extract=function(Et,yt){return Et},ht.prototype.fields=function(){return[]},ht}(),BAGGAGE_KEY=createContextKey("OpenTelemetry Baggage Key");function getBaggage(ht){return ht.getValue(BAGGAGE_KEY)||void 0}function getActiveBaggage(){return getBaggage(ContextAPI.getInstance().active())}function setBaggage(ht,Et){return ht.setValue(BAGGAGE_KEY,Et)}function deleteBaggage(ht){return ht.deleteValue(BAGGAGE_KEY)}var API_NAME$1="propagation",NOOP_TEXT_MAP_PROPAGATOR=new NoopTextMapPropagator,PropagationAPI=function(){function ht(){this.createBaggage=createBaggage,this.getBaggage=getBaggage,this.getActiveBaggage=getActiveBaggage,this.setBaggage=setBaggage,this.deleteBaggage=deleteBaggage}return ht.getInstance=function(){return this._instance||(this._instance=new ht),this._instance},ht.prototype.setGlobalPropagator=function(Et){return registerGlobal(API_NAME$1,Et,DiagAPI.instance())},ht.prototype.inject=function(Et,yt,Ct){return Ct===void 0&&(Ct=defaultTextMapSetter),this._getGlobalPropagator().inject(Et,yt,Ct)},ht.prototype.extract=function(Et,yt,Ct){return Ct===void 0&&(Ct=defaultTextMapGetter),this._getGlobalPropagator().extract(Et,yt,Ct)},ht.prototype.fields=function(){return this._getGlobalPropagator().fields()},ht.prototype.disable=function(){unregisterGlobal(API_NAME$1,DiagAPI.instance())},ht.prototype._getGlobalPropagator=function(){return getGlobal(API_NAME$1)||NOOP_TEXT_MAP_PROPAGATOR},ht}(),propagation=PropagationAPI.getInstance(),API_NAME="trace",TraceAPI=function(){function ht(){this._proxyTracerProvider=new ProxyTracerProvider,this.wrapSpanContext=wrapSpanContext,this.isSpanContextValid=isSpanContextValid,this.deleteSpan=deleteSpan,this.getSpan=getSpan,this.getActiveSpan=getActiveSpan,this.getSpanContext=getSpanContext,this.setSpan=setSpan,this.setSpanContext=setSpanContext}return ht.getInstance=function(){return this._instance||(this._instance=new ht),this._instance},ht.prototype.setGlobalTracerProvider=function(Et){var yt=registerGlobal(API_NAME,this._proxyTracerProvider,DiagAPI.instance());return yt&&this._proxyTracerProvider.setDelegate(Et),yt},ht.prototype.getTracerProvider=function(){return getGlobal(API_NAME)||this._proxyTracerProvider},ht.prototype.getTracer=function(Et,yt){return this.getTracerProvider().getTracer(Et,yt)},ht.prototype.disable=function(){unregisterGlobal(API_NAME,DiagAPI.instance()),this._proxyTracerProvider=new ProxyTracerProvider},ht}(),trace$1=TraceAPI.getInstance();const opentelemetry={context,diag,metrics,propagation,trace:trace$1};var SUPPRESS_TRACING_KEY=createContextKey("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function suppressTracing(ht){return ht.setValue(SUPPRESS_TRACING_KEY,!0)}function isTracingSuppressed(ht){return ht.getValue(SUPPRESS_TRACING_KEY)===!0}var BAGGAGE_KEY_PAIR_SEPARATOR$1="=",BAGGAGE_PROPERTIES_SEPARATOR$1=";",BAGGAGE_ITEMS_SEPARATOR$1=",",BAGGAGE_HEADER="baggage",BAGGAGE_MAX_NAME_VALUE_PAIRS=180,BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096,BAGGAGE_MAX_TOTAL_LENGTH=8192,__read$a=function(ht,Et){var yt=typeof Symbol=="function"&&ht[Symbol.iterator];if(!yt)return ht;var Ct=yt.call(ht),$t,At=[],Bt;try{for(;(Et===void 0||Et-- >0)&&!($t=Ct.next()).done;)At.push($t.value)}catch(Dt){Bt={error:Dt}}finally{try{$t&&!$t.done&&(yt=Ct.return)&&yt.call(Ct)}finally{if(Bt)throw Bt.error}}return At};function serializeKeyPairs(ht){return ht.reduce(function(Et,yt){var Ct=""+Et+(Et!==""?BAGGAGE_ITEMS_SEPARATOR$1:"")+yt;return Ct.length>BAGGAGE_MAX_TOTAL_LENGTH?Et:Ct},"")}function getKeyPairs(ht){return ht.getAllEntries().map(function(Et){var yt=__read$a(Et,2),Ct=yt[0],$t=yt[1],At=encodeURIComponent(Ct)+"="+encodeURIComponent($t.value);return $t.metadata!==void 0&&(At+=BAGGAGE_PROPERTIES_SEPARATOR$1+$t.metadata.toString()),At})}function parsePairKeyValue$1(ht){var Et=ht.split(BAGGAGE_PROPERTIES_SEPARATOR$1);if(!(Et.length<=0)){var yt=Et.shift();if(yt){var Ct=yt.indexOf(BAGGAGE_KEY_PAIR_SEPARATOR$1);if(!(Ct<=0)){var $t=decodeURIComponent(yt.substring(0,Ct).trim()),At=decodeURIComponent(yt.substring(Ct+1).trim()),Bt;return Et.length>0&&(Bt=baggageEntryMetadataFromString(Et.join(BAGGAGE_PROPERTIES_SEPARATOR$1))),{key:$t,value:At,metadata:Bt}}}}}var W3CBaggagePropagator=function(){function ht(){}return ht.prototype.inject=function(Et,yt,Ct){var $t=propagation.getBaggage(Et);if(!(!$t||isTracingSuppressed(Et))){var At=getKeyPairs($t).filter(function(Dt){return Dt.length<=BAGGAGE_MAX_PER_NAME_VALUE_PAIRS}).slice(0,BAGGAGE_MAX_NAME_VALUE_PAIRS),Bt=serializeKeyPairs(At);Bt.length>0&&Ct.set(yt,BAGGAGE_HEADER,Bt)}},ht.prototype.extract=function(Et,yt,Ct){var $t=Ct.get(yt,BAGGAGE_HEADER),At=Array.isArray($t)?$t.join(BAGGAGE_ITEMS_SEPARATOR$1):$t;if(!At)return Et;var Bt={};if(At.length===0)return Et;var Dt=At.split(BAGGAGE_ITEMS_SEPARATOR$1);return Dt.forEach(function(Ft){var kt=parsePairKeyValue$1(Ft);if(kt){var Mt={value:kt.value};kt.metadata&&(Mt.metadata=kt.metadata),Bt[kt.key]=Mt}}),Object.entries(Bt).length===0?Et:propagation.setBaggage(Et,propagation.createBaggage(Bt))},ht.prototype.fields=function(){return[BAGGAGE_HEADER]},ht}(),__values$4=function(ht){var Et=typeof Symbol=="function"&&Symbol.iterator,yt=Et&&ht[Et],Ct=0;if(yt)return yt.call(ht);if(ht&&typeof ht.length=="number")return{next:function(){return ht&&Ct>=ht.length&&(ht=void 0),{value:ht&&ht[Ct++],done:!ht}}};throw new TypeError(Et?"Object is not iterable.":"Symbol.iterator is not defined.")},__read$9=function(ht,Et){var yt=typeof Symbol=="function"&&ht[Symbol.iterator];if(!yt)return ht;var Ct=yt.call(ht),$t,At=[],Bt;try{for(;(Et===void 0||Et-- >0)&&!($t=Ct.next()).done;)At.push($t.value)}catch(Dt){Bt={error:Dt}}finally{try{$t&&!$t.done&&(yt=Ct.return)&&yt.call(Ct)}finally{if(Bt)throw Bt.error}}return At};function sanitizeAttributes(ht){var Et,yt,Ct={};if(typeof ht!="object"||ht==null)return Ct;try{for(var $t=__values$4(Object.entries(ht)),At=$t.next();!At.done;At=$t.next()){var Bt=__read$9(At.value,2),Dt=Bt[0],Ft=Bt[1];if(!isAttributeKey(Dt)){diag.warn("Invalid attribute key: "+Dt);continue}if(!isAttributeValue(Ft)){diag.warn("Invalid attribute value set for key: "+Dt);continue}Array.isArray(Ft)?Ct[Dt]=Ft.slice():Ct[Dt]=Ft}}catch(kt){Et={error:kt}}finally{try{At&&!At.done&&(yt=$t.return)&&yt.call($t)}finally{if(Et)throw Et.error}}return Ct}function isAttributeKey(ht){return typeof ht=="string"&&ht.length>0}function isAttributeValue(ht){return ht==null?!0:Array.isArray(ht)?isHomogeneousAttributeValueArray(ht):isValidPrimitiveAttributeValue(ht)}function isHomogeneousAttributeValueArray(ht){var Et,yt,Ct;try{for(var $t=__values$4(ht),At=$t.next();!At.done;At=$t.next()){var Bt=At.value;if(Bt!=null){if(!Ct){if(isValidPrimitiveAttributeValue(Bt)){Ct=typeof Bt;continue}return!1}if(typeof Bt!==Ct)return!1}}}catch(Dt){Et={error:Dt}}finally{try{At&&!At.done&&(yt=$t.return)&&yt.call($t)}finally{if(Et)throw Et.error}}return!0}function isValidPrimitiveAttributeValue(ht){switch(typeof ht){case"number":case"boolean":case"string":return!0}return!1}function loggingErrorHandler(){return function(ht){diag.error(stringifyException(ht))}}function stringifyException(ht){return typeof ht=="string"?ht:JSON.stringify(flattenException(ht))}function flattenException(ht){for(var Et={},yt=ht;yt!==null;)Object.getOwnPropertyNames(yt).forEach(function(Ct){if(!Et[Ct]){var $t=yt[Ct];$t&&(Et[Ct]=String($t))}}),yt=Object.getPrototypeOf(yt);return Et}var delegateHandler=loggingErrorHandler();function globalErrorHandler(ht){try{delegateHandler(ht)}catch{}}var TracesSamplerValues$1;(function(ht){ht.AlwaysOff="always_off",ht.AlwaysOn="always_on",ht.ParentBasedAlwaysOff="parentbased_always_off",ht.ParentBasedAlwaysOn="parentbased_always_on",ht.ParentBasedTraceIdRatio="parentbased_traceidratio",ht.TraceIdRatio="traceidratio"})(TracesSamplerValues$1||(TracesSamplerValues$1={}));var DEFAULT_LIST_SEPARATOR$1=",",ENVIRONMENT_BOOLEAN_KEYS$1=["OTEL_SDK_DISABLED"];function isEnvVarABoolean$1(ht){return ENVIRONMENT_BOOLEAN_KEYS$1.indexOf(ht)>-1}var ENVIRONMENT_NUMBERS_KEYS$1=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function isEnvVarANumber$1(ht){return ENVIRONMENT_NUMBERS_KEYS$1.indexOf(ht)>-1}var ENVIRONMENT_LISTS_KEYS$1=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function isEnvVarAList$1(ht){return ENVIRONMENT_LISTS_KEYS$1.indexOf(ht)>-1}var DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT$1=1/0,DEFAULT_ATTRIBUTE_COUNT_LIMIT$1=128,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT$1=128,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT$1=128,DEFAULT_ENVIRONMENT$1={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:DiagLogLevel.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT$1,OTEL_ATTRIBUTE_COUNT_LIMIT:DEFAULT_ATTRIBUTE_COUNT_LIMIT$1,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT$1,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:DEFAULT_ATTRIBUTE_COUNT_LIMIT$1,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT$1,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:DEFAULT_ATTRIBUTE_COUNT_LIMIT$1,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT$1,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT$1,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:TracesSamplerValues$1.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative"};function parseBoolean$1(ht,Et,yt){if(!(typeof yt[ht]>"u")){var Ct=String(yt[ht]);Et[ht]=Ct.toLowerCase()==="true"}}function parseNumber$1(ht,Et,yt,Ct,$t){if(Ct===void 0&&(Ct=-1/0),$t===void 0&&($t=1/0),typeof yt[ht]<"u"){var At=Number(yt[ht]);isNaN(At)||(At<Ct?Et[ht]=Ct:At>$t?Et[ht]=$t:Et[ht]=At)}}function parseStringList$1(ht,Et,yt,Ct){Ct===void 0&&(Ct=DEFAULT_LIST_SEPARATOR$1);var $t=yt[ht];typeof $t=="string"&&(Et[ht]=$t.split(Ct).map(function(At){return At.trim()}))}var logLevelMap$1={ALL:DiagLogLevel.ALL,VERBOSE:DiagLogLevel.VERBOSE,DEBUG:DiagLogLevel.DEBUG,INFO:DiagLogLevel.INFO,WARN:DiagLogLevel.WARN,ERROR:DiagLogLevel.ERROR,NONE:DiagLogLevel.NONE};function setLogLevelFromEnv$1(ht,Et,yt){var Ct=yt[ht];if(typeof Ct=="string"){var $t=logLevelMap$1[Ct.toUpperCase()];$t!=null&&(Et[ht]=$t)}}function parseEnvironment$1(ht){var Et={};for(var yt in DEFAULT_ENVIRONMENT$1){var Ct=yt;switch(Ct){case"OTEL_LOG_LEVEL":setLogLevelFromEnv$1(Ct,Et,ht);break;default:if(isEnvVarABoolean$1(Ct))parseBoolean$1(Ct,Et,ht);else if(isEnvVarANumber$1(Ct))parseNumber$1(Ct,Et,ht);else if(isEnvVarAList$1(Ct))parseStringList$1(Ct,Et,ht);else{var $t=ht[Ct];typeof $t<"u"&&$t!==null&&(Et[Ct]=String($t))}}}return Et}var _globalThis$1=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global$g=="object"?global$g:{};function getEnv$1(){var ht=parseEnvironment$1(_globalThis$1);return Object.assign({},DEFAULT_ENVIRONMENT$1,ht)}function getEnvWithoutDefaults(){return parseEnvironment$1(_globalThis$1)}var otperformance=performance,TMP_EXCEPTION_TYPE="exception.type",TMP_EXCEPTION_MESSAGE="exception.message",TMP_EXCEPTION_STACKTRACE="exception.stacktrace",SEMATTRS_EXCEPTION_TYPE=TMP_EXCEPTION_TYPE,SEMATTRS_EXCEPTION_MESSAGE=TMP_EXCEPTION_MESSAGE,SEMATTRS_EXCEPTION_STACKTRACE=TMP_EXCEPTION_STACKTRACE;function unrefTimer(ht){}var NANOSECOND_DIGITS$1=9,NANOSECOND_DIGITS_IN_MILLIS=6,MILLISECONDS_TO_NANOSECONDS=Math.pow(10,NANOSECOND_DIGITS_IN_MILLIS),SECOND_TO_NANOSECONDS$1=Math.pow(10,NANOSECOND_DIGITS$1);function millisToHrTime(ht){var Et=ht/1e3,yt=Math.trunc(Et),Ct=Math.round(ht%1e3*MILLISECONDS_TO_NANOSECONDS);return[yt,Ct]}function getTimeOrigin(){var ht=otperformance.timeOrigin;if(typeof ht!="number"){var Et=otperformance;ht=Et.timing&&Et.timing.fetchStart}return ht}function hrTime(ht){var Et=millisToHrTime(getTimeOrigin()),yt=millisToHrTime(typeof ht=="number"?ht:otperformance.now());return addHrTimes(Et,yt)}function hrTimeDuration(ht,Et){var yt=Et[0]-ht[0],Ct=Et[1]-ht[1];return Ct<0&&(yt-=1,Ct+=SECOND_TO_NANOSECONDS$1),[yt,Ct]}function isTimeInputHrTime(ht){return Array.isArray(ht)&&ht.length===2&&typeof ht[0]=="number"&&typeof ht[1]=="number"}function isTimeInput(ht){return isTimeInputHrTime(ht)||typeof ht=="number"||ht instanceof Date}function addHrTimes(ht,Et){var yt=[ht[0]+Et[0],ht[1]+Et[1]];return yt[1]>=SECOND_TO_NANOSECONDS$1&&(yt[1]-=SECOND_TO_NANOSECONDS$1,yt[0]+=1),yt}var ExportResultCode$1;(function(ht){ht[ht.SUCCESS=0]="SUCCESS",ht[ht.FAILED=1]="FAILED"})(ExportResultCode$1||(ExportResultCode$1={}));var __values$3=function(ht){var Et=typeof Symbol=="function"&&Symbol.iterator,yt=Et&&ht[Et],Ct=0;if(yt)return yt.call(ht);if(ht&&typeof ht.length=="number")return{next:function(){return ht&&Ct>=ht.length&&(ht=void 0),{value:ht&&ht[Ct++],done:!ht}}};throw new TypeError(Et?"Object is not iterable.":"Symbol.iterator is not defined.")},CompositePropagator=function(){function ht(Et){Et===void 0&&(Et={});var yt;this._propagators=(yt=Et.propagators)!==null&&yt!==void 0?yt:[],this._fields=Array.from(new Set(this._propagators.map(function(Ct){return typeof Ct.fields=="function"?Ct.fields():[]}).reduce(function(Ct,$t){return Ct.concat($t)},[])))}return ht.prototype.inject=function(Et,yt,Ct){var $t,At;try{for(var Bt=__values$3(this._propagators),Dt=Bt.next();!Dt.done;Dt=Bt.next()){var Ft=Dt.value;try{Ft.inject(Et,yt,Ct)}catch(kt){diag.warn("Failed to inject with "+Ft.constructor.name+". Err: "+kt.message)}}}catch(kt){$t={error:kt}}finally{try{Dt&&!Dt.done&&(At=Bt.return)&&At.call(Bt)}finally{if($t)throw $t.error}}},ht.prototype.extract=function(Et,yt,Ct){return this._propagators.reduce(function($t,At){try{return At.extract($t,yt,Ct)}catch(Bt){diag.warn("Failed to inject with "+At.constructor.name+". Err: "+Bt.message)}return $t},Et)},ht.prototype.fields=function(){return this._fields.slice()},ht}(),VALID_KEY_CHAR_RANGE="[_0-9a-z-*/]",VALID_KEY="[a-z]"+VALID_KEY_CHAR_RANGE+"{0,255}",VALID_VENDOR_KEY="[a-z0-9]"+VALID_KEY_CHAR_RANGE+"{0,240}@[a-z]"+VALID_KEY_CHAR_RANGE+"{0,13}",VALID_KEY_REGEX=new RegExp("^(?:"+VALID_KEY+"|"+VALID_VENDOR_KEY+")$"),VALID_VALUE_BASE_REGEX=/^[ -~]{0,255}[!-~]$/,INVALID_VALUE_COMMA_EQUAL_REGEX=/,|=/;function validateKey(ht){return VALID_KEY_REGEX.test(ht)}function validateValue(ht){return VALID_VALUE_BASE_REGEX.test(ht)&&!INVALID_VALUE_COMMA_EQUAL_REGEX.test(ht)}var MAX_TRACE_STATE_ITEMS=32,MAX_TRACE_STATE_LEN=512,LIST_MEMBERS_SEPARATOR=",",LIST_MEMBER_KEY_VALUE_SPLITTER="=",TraceState=function(){function ht(Et){this._internalState=new Map,Et&&this._parse(Et)}return ht.prototype.set=function(Et,yt){var Ct=this._clone();return Ct._internalState.has(Et)&&Ct._internalState.delete(Et),Ct._internalState.set(Et,yt),Ct},ht.prototype.unset=function(Et){var yt=this._clone();return yt._internalState.delete(Et),yt},ht.prototype.get=function(Et){return this._internalState.get(Et)},ht.prototype.serialize=function(){var Et=this;return this._keys().reduce(function(yt,Ct){return yt.push(Ct+LIST_MEMBER_KEY_VALUE_SPLITTER+Et.get(Ct)),yt},[]).join(LIST_MEMBERS_SEPARATOR)},ht.prototype._parse=function(Et){Et.length>MAX_TRACE_STATE_LEN||(this._internalState=Et.split(LIST_MEMBERS_SEPARATOR).reverse().reduce(function(yt,Ct){var $t=Ct.trim(),At=$t.indexOf(LIST_MEMBER_KEY_VALUE_SPLITTER);if(At!==-1){var Bt=$t.slice(0,At),Dt=$t.slice(At+1,Ct.length);validateKey(Bt)&&validateValue(Dt)&&yt.set(Bt,Dt)}return yt},new Map),this._internalState.size>MAX_TRACE_STATE_ITEMS&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,MAX_TRACE_STATE_ITEMS))))},ht.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},ht.prototype._clone=function(){var Et=new ht;return Et._internalState=new Map(this._internalState),Et},ht}(),TRACE_PARENT_HEADER="traceparent",TRACE_STATE_HEADER="tracestate",VERSION$1="00",VERSION_PART="(?!ff)[\\da-f]{2}",TRACE_ID_PART="(?![0]{32})[\\da-f]{32}",PARENT_ID_PART="(?![0]{16})[\\da-f]{16}",FLAGS_PART="[\\da-f]{2}",TRACE_PARENT_REGEX=new RegExp("^\\s?("+VERSION_PART+")-("+TRACE_ID_PART+")-("+PARENT_ID_PART+")-("+FLAGS_PART+")(-.*)?\\s?$");function parseTraceParent(ht){var Et=TRACE_PARENT_REGEX.exec(ht);return!Et||Et[1]==="00"&&Et[5]?null:{traceId:Et[2],spanId:Et[3],traceFlags:parseInt(Et[4],16)}}var W3CTraceContextPropagator=function(){function ht(){}return ht.prototype.inject=function(Et,yt,Ct){var $t=trace$1.getSpanContext(Et);if(!(!$t||isTracingSuppressed(Et)||!isSpanContextValid($t))){var At=VERSION$1+"-"+$t.traceId+"-"+$t.spanId+"-0"+Number($t.traceFlags||TraceFlags.NONE).toString(16);Ct.set(yt,TRACE_PARENT_HEADER,At),$t.traceState&&Ct.set(yt,TRACE_STATE_HEADER,$t.traceState.serialize())}},ht.prototype.extract=function(Et,yt,Ct){var $t=Ct.get(yt,TRACE_PARENT_HEADER);if(!$t)return Et;var At=Array.isArray($t)?$t[0]:$t;if(typeof At!="string")return Et;var Bt=parseTraceParent(At);if(!Bt)return Et;Bt.isRemote=!0;var Dt=Ct.get(yt,TRACE_STATE_HEADER);if(Dt){var Ft=Array.isArray(Dt)?Dt.join(","):Dt;Bt.traceState=new TraceState(typeof Ft=="string"?Ft:void 0)}return trace$1.setSpanContext(Et,Bt)},ht.prototype.fields=function(){return[TRACE_PARENT_HEADER,TRACE_STATE_HEADER]},ht}(),objectTag="[object Object]",nullTag="[object Null]",undefinedTag="[object Undefined]",funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString,objectCtorString=funcToString$1.call(Object),getPrototype=overArg(Object.getPrototypeOf,Object),objectProto$1=Object.prototype,hasOwnProperty$3=objectProto$1.hasOwnProperty,symToStringTag=Symbol?Symbol.toStringTag:void 0,nativeObjectToString=objectProto$1.toString;function overArg(ht,Et){return function(yt){return ht(Et(yt))}}function isPlainObject(ht){if(!isObjectLike$1(ht)||baseGetTag(ht)!==objectTag)return!1;var Et=getPrototype(ht);if(Et===null)return!0;var yt=hasOwnProperty$3.call(Et,"constructor")&&Et.constructor;return typeof yt=="function"&&yt instanceof yt&&funcToString$1.call(yt)===objectCtorString}function isObjectLike$1(ht){return ht!=null&&typeof ht=="object"}function baseGetTag(ht){return ht==null?ht===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(ht)?getRawTag(ht):objectToString$2(ht)}function getRawTag(ht){var Et=hasOwnProperty$3.call(ht,symToStringTag),yt=ht[symToStringTag],Ct=!1;try{ht[symToStringTag]=void 0,Ct=!0}catch{}var $t=nativeObjectToString.call(ht);return Ct&&(Et?ht[symToStringTag]=yt:delete ht[symToStringTag]),$t}function objectToString$2(ht){return nativeObjectToString.call(ht)}var MAX_LEVEL=20;function merge(){for(var ht=[],Et=0;Et<arguments.length;Et++)ht[Et]=arguments[Et];for(var yt=ht.shift(),Ct=new WeakMap;ht.length>0;)yt=mergeTwoObjects(yt,ht.shift(),0,Ct);return yt}function takeValue(ht){return isArray$6(ht)?ht.slice():ht}function mergeTwoObjects(ht,Et,yt,Ct){yt===void 0&&(yt=0);var $t;if(!(yt>MAX_LEVEL)){if(yt++,isPrimitive(ht)||isPrimitive(Et)||isFunction$4(Et))$t=takeValue(Et);else if(isArray$6(ht)){if($t=ht.slice(),isArray$6(Et))for(var At=0,Bt=Et.length;At<Bt;At++)$t.push(takeValue(Et[At]));else if(isObject$d(Et))for(var Dt=Object.keys(Et),At=0,Bt=Dt.length;At<Bt;At++){var Ft=Dt[At];$t[Ft]=takeValue(Et[Ft])}}else if(isObject$d(ht))if(isObject$d(Et)){if(!shouldMerge(ht,Et))return Et;$t=Object.assign({},ht);for(var Dt=Object.keys(Et),At=0,Bt=Dt.length;At<Bt;At++){var Ft=Dt[At],kt=Et[Ft];if(isPrimitive(kt))typeof kt>"u"?delete $t[Ft]:$t[Ft]=kt;else{var Mt=$t[Ft],Nt=kt;if(wasObjectReferenced(ht,Ft,Ct)||wasObjectReferenced(Et,Ft,Ct))delete $t[Ft];else{if(isObject$d(Mt)&&isObject$d(Nt)){var jt=Ct.get(Mt)||[],zt=Ct.get(Nt)||[];jt.push({obj:ht,key:Ft}),zt.push({obj:Et,key:Ft}),Ct.set(Mt,jt),Ct.set(Nt,zt)}$t[Ft]=mergeTwoObjects($t[Ft],kt,yt,Ct)}}}}else $t=Et;return $t}}function wasObjectReferenced(ht,Et,yt){for(var Ct=yt.get(ht[Et])||[],$t=0,At=Ct.length;$t<At;$t++){var Bt=Ct[$t];if(Bt.key===Et&&Bt.obj===ht)return!0}return!1}function isArray$6(ht){return Array.isArray(ht)}function isFunction$4(ht){return typeof ht=="function"}function isObject$d(ht){return!isPrimitive(ht)&&!isArray$6(ht)&&!isFunction$4(ht)&&typeof ht=="object"}function isPrimitive(ht){return typeof ht=="string"||typeof ht=="number"||typeof ht=="boolean"||typeof ht>"u"||ht instanceof Date||ht instanceof RegExp||ht===null}function shouldMerge(ht,Et){return!(!isPlainObject(ht)||!isPlainObject(Et))}var Deferred$1=function(){function ht(){var Et=this;this._promise=new Promise(function(yt,Ct){Et._resolve=yt,Et._reject=Ct})}return Object.defineProperty(ht.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),ht.prototype.resolve=function(Et){this._resolve(Et)},ht.prototype.reject=function(Et){this._reject(Et)},ht}(),__read$8=function(ht,Et){var yt=typeof Symbol=="function"&&ht[Symbol.iterator];if(!yt)return ht;var Ct=yt.call(ht),$t,At=[],Bt;try{for(;(Et===void 0||Et-- >0)&&!($t=Ct.next()).done;)At.push($t.value)}catch(Dt){Bt={error:Dt}}finally{try{$t&&!$t.done&&(yt=Ct.return)&&yt.call(Ct)}finally{if(Bt)throw Bt.error}}return At},__spreadArray$3=function(ht,Et,yt){if(yt||arguments.length===2)for(var Ct=0,$t=Et.length,At;Ct<$t;Ct++)(At||!(Ct in Et))&&(At||(At=Array.prototype.slice.call(Et,0,Ct)),At[Ct]=Et[Ct]);return ht.concat(At||Array.prototype.slice.call(Et))},BindOnceFuture$1=function(){function ht(Et,yt){this._callback=Et,this._that=yt,this._isCalled=!1,this._deferred=new Deferred$1}return Object.defineProperty(ht.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(ht.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),ht.prototype.call=function(){for(var Et,yt=this,Ct=[],$t=0;$t<arguments.length;$t++)Ct[$t]=arguments[$t];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((Et=this._callback).call.apply(Et,__spreadArray$3([this._that],__read$8(Ct),!1))).then(function(At){return yt._deferred.resolve(At)},function(At){return yt._deferred.reject(At)})}catch(At){this._deferred.reject(At)}}return this._deferred.promise},ht}();function _export$1(ht,Et){return new Promise(function(yt){context.with(suppressTracing(context.active()),function(){ht.export(Et,function(Ct){yt(Ct)})})})}var internal={_export:_export$1},ExceptionEventName="exception",__values$2=function(ht){var Et=typeof Symbol=="function"&&Symbol.iterator,yt=Et&&ht[Et],Ct=0;if(yt)return yt.call(ht);if(ht&&typeof ht.length=="number")return{next:function(){return ht&&Ct>=ht.length&&(ht=void 0),{value:ht&&ht[Ct++],done:!ht}}};throw new TypeError(Et?"Object is not iterable.":"Symbol.iterator is not defined.")},__read$7=function(ht,Et){var yt=typeof Symbol=="function"&&ht[Symbol.iterator];if(!yt)return ht;var Ct=yt.call(ht),$t,At=[],Bt;try{for(;(Et===void 0||Et-- >0)&&!($t=Ct.next()).done;)At.push($t.value)}catch(Dt){Bt={error:Dt}}finally{try{$t&&!$t.done&&(yt=Ct.return)&&yt.call(Ct)}finally{if(Bt)throw Bt.error}}return At},__spreadArray$2=function(ht,Et,yt){if(yt||arguments.length===2)for(var Ct=0,$t=Et.length,At;Ct<$t;Ct++)(At||!(Ct in Et))&&(At||(At=Array.prototype.slice.call(Et,0,Ct)),At[Ct]=Et[Ct]);return ht.concat(At||Array.prototype.slice.call(Et))},Span=function(){function ht(Et,yt,Ct,$t,At,Bt,Dt,Ft,kt,Mt){Dt===void 0&&(Dt=[]),this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:SpanStatusCode.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=Ct,this._spanContext=$t,this.parentSpanId=Bt,this.kind=At,this.links=Dt;var Nt=Date.now();this._performanceStartTime=otperformance.now(),this._performanceOffset=Nt-(this._performanceStartTime+getTimeOrigin()),this._startTimeProvided=Ft!=null,this.startTime=this._getTime(Ft??Nt),this.resource=Et.resource,this.instrumentationLibrary=Et.instrumentationLibrary,this._spanLimits=Et.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,Mt!=null&&this.setAttributes(Mt),this._spanProcessor=Et.getActiveSpanProcessor(),this._spanProcessor.onStart(this,yt)}return ht.prototype.spanContext=function(){return this._spanContext},ht.prototype.setAttribute=function(Et,yt){return yt==null||this._isSpanEnded()?this:Et.length===0?(diag.warn("Invalid attribute key: "+Et),this):isAttributeValue(yt)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,Et)?(this._droppedAttributesCount++,this):(this.attributes[Et]=this._truncateToSize(yt),this):(diag.warn("Invalid attribute value set for key: "+Et),this)},ht.prototype.setAttributes=function(Et){var yt,Ct;try{for(var $t=__values$2(Object.entries(Et)),At=$t.next();!At.done;At=$t.next()){var Bt=__read$7(At.value,2),Dt=Bt[0],Ft=Bt[1];this.setAttribute(Dt,Ft)}}catch(kt){yt={error:kt}}finally{try{At&&!At.done&&(Ct=$t.return)&&Ct.call($t)}finally{if(yt)throw yt.error}}return this},ht.prototype.addEvent=function(Et,yt,Ct){if(this._isSpanEnded())return this;if(this._spanLimits.eventCountLimit===0)return diag.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(this._droppedEventsCount===0&&diag.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),isTimeInput(yt)&&(isTimeInput(Ct)||(Ct=yt),yt=void 0);var $t=sanitizeAttributes(yt);return this.events.push({name:Et,attributes:$t,time:this._getTime(Ct),droppedAttributesCount:0}),this},ht.prototype.addLink=function(Et){return this.links.push(Et),this},ht.prototype.addLinks=function(Et){var yt;return(yt=this.links).push.apply(yt,__spreadArray$2([],__read$7(Et),!1)),this},ht.prototype.setStatus=function(Et){return this._isSpanEnded()?this:(this.status=Et,this)},ht.prototype.updateName=function(Et){return this._isSpanEnded()?this:(this.name=Et,this)},ht.prototype.end=function(Et){if(this._isSpanEnded()){diag.error(this.name+" "+this._spanContext.traceId+"-"+this._spanContext.spanId+" - You can only call end() on a span once.");return}this._ended=!0,this.endTime=this._getTime(Et),this._duration=hrTimeDuration(this.startTime,this.endTime),this._duration[0]<0&&(diag.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&diag.warn("Dropped "+this._droppedEventsCount+" events because eventCountLimit reached"),this._spanProcessor.onEnd(this)},ht.prototype._getTime=function(Et){if(typeof Et=="number"&&Et<otperformance.now())return hrTime(Et+this._performanceOffset);if(typeof Et=="number")return millisToHrTime(Et);if(Et instanceof Date)return millisToHrTime(Et.getTime());if(isTimeInputHrTime(Et))return Et;if(this._startTimeProvided)return millisToHrTime(Date.now());var yt=otperformance.now()-this._performanceStartTime;return addHrTimes(this.startTime,millisToHrTime(yt))},ht.prototype.isRecording=function(){return this._ended===!1},ht.prototype.recordException=function(Et,yt){var Ct={};typeof Et=="string"?Ct[SEMATTRS_EXCEPTION_MESSAGE]=Et:Et&&(Et.code?Ct[SEMATTRS_EXCEPTION_TYPE]=Et.code.toString():Et.name&&(Ct[SEMATTRS_EXCEPTION_TYPE]=Et.name),Et.message&&(Ct[SEMATTRS_EXCEPTION_MESSAGE]=Et.message),Et.stack&&(Ct[SEMATTRS_EXCEPTION_STACKTRACE]=Et.stack)),Ct[SEMATTRS_EXCEPTION_TYPE]||Ct[SEMATTRS_EXCEPTION_MESSAGE]?this.addEvent(ExceptionEventName,Ct,yt):diag.warn("Failed to record an exception "+Et)},Object.defineProperty(ht.prototype,"duration",{get:function(){return this._duration},enumerable:!1,configurable:!0}),Object.defineProperty(ht.prototype,"ended",{get:function(){return this._ended},enumerable:!1,configurable:!0}),Object.defineProperty(ht.prototype,"droppedAttributesCount",{get:function(){return this._droppedAttributesCount},enumerable:!1,configurable:!0}),Object.defineProperty(ht.prototype,"droppedEventsCount",{get:function(){return this._droppedEventsCount},enumerable:!1,configurable:!0}),Object.defineProperty(ht.prototype,"droppedLinksCount",{get:function(){return this._droppedLinksCount},enumerable:!1,configurable:!0}),ht.prototype._isSpanEnded=function(){return this._ended&&diag.warn("Can not execute the operation on ended Span {traceId: "+this._spanContext.traceId+", spanId: "+this._spanContext.spanId+"}"),this._ended},ht.prototype._truncateToLimitUtil=function(Et,yt){return Et.length<=yt?Et:Et.substr(0,yt)},ht.prototype._truncateToSize=function(Et){var yt=this,Ct=this._attributeValueLengthLimit;return Ct<=0?(diag.warn("Attribute value limit must be positive, got "+Ct),Et):typeof Et=="string"?this._truncateToLimitUtil(Et,Ct):Array.isArray(Et)?Et.map(function($t){return typeof $t=="string"?yt._truncateToLimitUtil($t,Ct):$t}):Et},ht}(),SamplingDecision;(function(ht){ht[ht.NOT_RECORD=0]="NOT_RECORD",ht[ht.RECORD=1]="RECORD",ht[ht.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(SamplingDecision||(SamplingDecision={}));var AlwaysOffSampler=function(){function ht(){}return ht.prototype.shouldSample=function(){return{decision:SamplingDecision.NOT_RECORD}},ht.prototype.toString=function(){return"AlwaysOffSampler"},ht}(),AlwaysOnSampler=function(){function ht(){}return ht.prototype.shouldSample=function(){return{decision:SamplingDecision.RECORD_AND_SAMPLED}},ht.prototype.toString=function(){return"AlwaysOnSampler"},ht}(),ParentBasedSampler=function(){function ht(Et){var yt,Ct,$t,At;this._root=Et.root,this._root||(globalErrorHandler(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new AlwaysOnSampler),this._remoteParentSampled=(yt=Et.remoteParentSampled)!==null&&yt!==void 0?yt:new AlwaysOnSampler,this._remoteParentNotSampled=(Ct=Et.remoteParentNotSampled)!==null&&Ct!==void 0?Ct:new AlwaysOffSampler,this._localParentSampled=($t=Et.localParentSampled)!==null&&$t!==void 0?$t:new AlwaysOnSampler,this._localParentNotSampled=(At=Et.localParentNotSampled)!==null&&At!==void 0?At:new AlwaysOffSampler}return ht.prototype.shouldSample=function(Et,yt,Ct,$t,At,Bt){var Dt=trace$1.getSpanContext(Et);return!Dt||!isSpanContextValid(Dt)?this._root.shouldSample(Et,yt,Ct,$t,At,Bt):Dt.isRemote?Dt.traceFlags&TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(Et,yt,Ct,$t,At,Bt):this._remoteParentNotSampled.shouldSample(Et,yt,Ct,$t,At,Bt):Dt.traceFlags&TraceFlags.SAMPLED?this._localParentSampled.shouldSample(Et,yt,Ct,$t,At,Bt):this._localParentNotSampled.shouldSample(Et,yt,Ct,$t,At,Bt)},ht.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},ht}(),TraceIdRatioBasedSampler=function(){function ht(Et){Et===void 0&&(Et=0),this._ratio=Et,this._ratio=this._normalize(Et),this._upperBound=Math.floor(this._ratio*4294967295)}return ht.prototype.shouldSample=function(Et,yt){return{decision:isValidTraceId(yt)&&this._accumulate(yt)<this._upperBound?SamplingDecision.RECORD_AND_SAMPLED:SamplingDecision.NOT_RECORD}},ht.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},ht.prototype._normalize=function(Et){return typeof Et!="number"||isNaN(Et)?0:Et>=1?1:Et<=0?0:Et},ht.prototype._accumulate=function(Et){for(var yt=0,Ct=0;Ct<Et.length/8;Ct++){var $t=Ct*8,At=parseInt(Et.slice($t,$t+8),16);yt=(yt^At)>>>0}return yt},ht}(),env=getEnv$1(),FALLBACK_OTEL_TRACES_SAMPLER=TracesSamplerValues$1.AlwaysOn,DEFAULT_RATIO=1;function loadDefaultConfig(){return{sampler:buildSamplerFromEnv(env),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:getEnv$1().OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:getEnv$1().OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:getEnv$1().OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:getEnv$1().OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:getEnv$1().OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:getEnv$1().OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:getEnv$1().OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:getEnv$1().OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}}}function buildSamplerFromEnv(ht){switch(ht===void 0&&(ht=getEnv$1()),ht.OTEL_TRACES_SAMPLER){case TracesSamplerValues$1.AlwaysOn:return new AlwaysOnSampler;case TracesSamplerValues$1.AlwaysOff:return new AlwaysOffSampler;case TracesSamplerValues$1.ParentBasedAlwaysOn:return new ParentBasedSampler({root:new AlwaysOnSampler});case TracesSamplerValues$1.ParentBasedAlwaysOff:return new ParentBasedSampler({root:new AlwaysOffSampler});case TracesSamplerValues$1.TraceIdRatio:return new TraceIdRatioBasedSampler(getSamplerProbabilityFromEnv(ht));case TracesSamplerValues$1.ParentBasedTraceIdRatio:return new ParentBasedSampler({root:new TraceIdRatioBasedSampler(getSamplerProbabilityFromEnv(ht))});default:return diag.error('OTEL_TRACES_SAMPLER value "'+ht.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+FALLBACK_OTEL_TRACES_SAMPLER+'".'),new AlwaysOnSampler}}function getSamplerProbabilityFromEnv(ht){if(ht.OTEL_TRACES_SAMPLER_ARG===void 0||ht.OTEL_TRACES_SAMPLER_ARG==="")return diag.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to "+DEFAULT_RATIO+"."),DEFAULT_RATIO;var Et=Number(ht.OTEL_TRACES_SAMPLER_ARG);return isNaN(Et)?(diag.error("OTEL_TRACES_SAMPLER_ARG="+ht.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invalid, defaulting to "+DEFAULT_RATIO+"."),DEFAULT_RATIO):Et<0||Et>1?(diag.error("OTEL_TRACES_SAMPLER_ARG="+ht.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to "+DEFAULT_RATIO+"."),DEFAULT_RATIO):Et}function mergeConfig(ht){var Et={sampler:buildSamplerFromEnv()},yt=loadDefaultConfig(),Ct=Object.assign({},yt,Et,ht);return Ct.generalLimits=Object.assign({},yt.generalLimits,ht.generalLimits||{}),Ct.spanLimits=Object.assign({},yt.spanLimits,ht.spanLimits||{}),Ct}function reconfigureLimits(ht){var Et,yt,Ct,$t,At,Bt,Dt,Ft,kt,Mt,Nt,jt,zt=Object.assign({},ht.spanLimits),Vt=getEnvWithoutDefaults();return zt.attributeCountLimit=(Bt=(At=($t=(yt=(Et=ht.spanLimits)===null||Et===void 0?void 0:Et.attributeCountLimit)!==null&&yt!==void 0?yt:(Ct=ht.generalLimits)===null||Ct===void 0?void 0:Ct.attributeCountLimit)!==null&&$t!==void 0?$t:Vt.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)!==null&&At!==void 0?At:Vt.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&Bt!==void 0?Bt:DEFAULT_ATTRIBUTE_COUNT_LIMIT$1,zt.attributeValueLengthLimit=(jt=(Nt=(Mt=(Ft=(Dt=ht.spanLimits)===null||Dt===void 0?void 0:Dt.attributeValueLengthLimit)!==null&&Ft!==void 0?Ft:(kt=ht.generalLimits)===null||kt===void 0?void 0:kt.attributeValueLengthLimit)!==null&&Mt!==void 0?Mt:Vt.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&Nt!==void 0?Nt:Vt.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&jt!==void 0?jt:DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT$1,Object.assign({},ht,{spanLimits:zt})}var BatchSpanProcessorBase=function(){function ht(Et,yt){this._exporter=Et,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;var Ct=getEnv$1();this._maxExportBatchSize=typeof(yt==null?void 0:yt.maxExportBatchSize)=="number"?yt.maxExportBatchSize:Ct.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=typeof(yt==null?void 0:yt.maxQueueSize)=="number"?yt.maxQueueSize:Ct.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=typeof(yt==null?void 0:yt.scheduledDelayMillis)=="number"?yt.scheduledDelayMillis:Ct.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis=typeof(yt==null?void 0:yt.exportTimeoutMillis)=="number"?yt.exportTimeoutMillis:Ct.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new BindOnceFuture$1(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(diag.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return ht.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},ht.prototype.onStart=function(Et,yt){},ht.prototype.onEnd=function(Et){this._shutdownOnce.isCalled||Et.spanContext().traceFlags&TraceFlags.SAMPLED&&this._addToBuffer(Et)},ht.prototype.shutdown=function(){return this._shutdownOnce.call()},ht.prototype._shutdown=function(){var Et=this;return Promise.resolve().then(function(){return Et.onShutdown()}).then(function(){return Et._flushAll()}).then(function(){return Et._exporter.shutdown()})},ht.prototype._addToBuffer=function(Et){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&diag.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(diag.warn("Dropped "+this._droppedSpansCount+" spans because maxQueueSize reached"),this._droppedSpansCount=0),this._finishedSpans.push(Et),this._maybeStartTimer()},ht.prototype._flushAll=function(){var Et=this;return new Promise(function(yt,Ct){for(var $t=[],At=Math.ceil(Et._finishedSpans.length/Et._maxExportBatchSize),Bt=0,Dt=At;Bt<Dt;Bt++)$t.push(Et._flushOneBatch());Promise.all($t).then(function(){yt()}).catch(Ct)})},ht.prototype._flushOneBatch=function(){var Et=this;return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise(function(yt,Ct){var $t=setTimeout(function(){Ct(new Error("Timeout"))},Et._exportTimeoutMillis);context.with(suppressTracing(context.active()),function(){var At;Et._finishedSpans.length<=Et._maxExportBatchSize?(At=Et._finishedSpans,Et._finishedSpans=[]):At=Et._finishedSpans.splice(0,Et._maxExportBatchSize);for(var Bt=function(){return Et._exporter.export(At,function(Nt){var jt;clearTimeout($t),Nt.code===ExportResultCode$1.SUCCESS?yt():Ct((jt=Nt.error)!==null&&jt!==void 0?jt:new Error("BatchSpanProcessor: span export failed"))})},Dt=null,Ft=0,kt=At.length;Ft<kt;Ft++){var Mt=At[Ft];Mt.resource.asyncAttributesPending&&Mt.resource.waitForAsyncAttributes&&(Dt??(Dt=[]),Dt.push(Mt.resource.waitForAsyncAttributes()))}Dt===null?Bt():Promise.all(Dt).then(Bt,function(Nt){globalErrorHandler(Nt),Ct(Nt)})})})},ht.prototype._maybeStartTimer=function(){var Et=this;if(!this._isExporting){var yt=function(){Et._isExporting=!0,Et._flushOneBatch().finally(function(){Et._isExporting=!1,Et._finishedSpans.length>0&&(Et._clearTimer(),Et._maybeStartTimer())}).catch(function(Ct){Et._isExporting=!1,globalErrorHandler(Ct)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return yt();this._timer===void 0&&(this._timer=setTimeout(function(){return yt()},this._scheduledDelayMillis),this._timer,void 0)}},ht.prototype._clearTimer=function(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)},ht}(),__extends$7=function(){var ht=function(Et,yt){return ht=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ct,$t){Ct.__proto__=$t}||function(Ct,$t){for(var At in $t)Object.prototype.hasOwnProperty.call($t,At)&&(Ct[At]=$t[At])},ht(Et,yt)};return function(Et,yt){if(typeof yt!="function"&&yt!==null)throw new TypeError("Class extends value "+String(yt)+" is not a constructor or null");ht(Et,yt);function Ct(){this.constructor=Et}Et.prototype=yt===null?Object.create(yt):(Ct.prototype=yt.prototype,new Ct)}}(),BatchSpanProcessor=function(ht){__extends$7(Et,ht);function Et(yt,Ct){var $t=ht.call(this,yt,Ct)||this;return $t.onInit(Ct),$t}return Et.prototype.onInit=function(yt){var Ct=this;(yt==null?void 0:yt.disableAutoFlushOnDocumentHide)!==!0&&typeof document<"u"&&(this._visibilityChangeListener=function(){document.visibilityState==="hidden"&&Ct.forceFlush()},this._pageHideListener=function(){Ct.forceFlush()},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))},Et.prototype.onShutdown=function(){typeof document<"u"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))},Et}(BatchSpanProcessorBase),SPAN_ID_BYTES=8,TRACE_ID_BYTES=16,RandomIdGenerator=function(){function ht(){this.generateTraceId=getIdGenerator(TRACE_ID_BYTES),this.generateSpanId=getIdGenerator(SPAN_ID_BYTES)}return ht}(),SHARED_CHAR_CODES_ARRAY=Array(32);function getIdGenerator(ht){return function(){for(var yt=0;yt<ht*2;yt++)SHARED_CHAR_CODES_ARRAY[yt]=Math.floor(Math.random()*16)+48,SHARED_CHAR_CODES_ARRAY[yt]>=58&&(SHARED_CHAR_CODES_ARRAY[yt]+=39);return String.fromCharCode.apply(null,SHARED_CHAR_CODES_ARRAY.slice(0,ht*2))}}var Tracer=function(){function ht(Et,yt,Ct){this._tracerProvider=Ct;var $t=mergeConfig(yt);this._sampler=$t.sampler,this._generalLimits=$t.generalLimits,this._spanLimits=$t.spanLimits,this._idGenerator=yt.idGenerator||new RandomIdGenerator,this.resource=Ct.resource,this.instrumentationLibrary=Et}return ht.prototype.startSpan=function(Et,yt,Ct){var $t,At,Bt;yt===void 0&&(yt={}),Ct===void 0&&(Ct=context.active()),yt.root&&(Ct=trace$1.deleteSpan(Ct));var Dt=trace$1.getSpan(Ct);if(isTracingSuppressed(Ct)){diag.debug("Instrumentation suppressed, returning Noop Span");var Ft=trace$1.wrapSpanContext(INVALID_SPAN_CONTEXT);return Ft}var kt=Dt==null?void 0:Dt.spanContext(),Mt=this._idGenerator.generateSpanId(),Nt,jt,zt;!kt||!trace$1.isSpanContextValid(kt)?Nt=this._idGenerator.generateTraceId():(Nt=kt.traceId,jt=kt.traceState,zt=kt.spanId);var Vt=($t=yt.kind)!==null&&$t!==void 0?$t:SpanKind.INTERNAL,Kt=((At=yt.links)!==null&&At!==void 0?At:[]).map(function(pr){return{context:pr.context,attributes:sanitizeAttributes(pr.attributes)}}),Xt=sanitizeAttributes(yt.attributes),Qt=this._sampler.shouldSample(Ct,Nt,Et,Vt,Xt,Kt);jt=(Bt=Qt.traceState)!==null&&Bt!==void 0?Bt:jt;var Zt=Qt.decision===SamplingDecision$1.RECORD_AND_SAMPLED?TraceFlags.SAMPLED:TraceFlags.NONE,dr={traceId:Nt,spanId:Mt,traceFlags:Zt,traceState:jt};if(Qt.decision===SamplingDecision$1.NOT_RECORD){diag.debug("Recording is off, propagating context in a non-recording span");var Ft=trace$1.wrapSpanContext(dr);return Ft}var cr=sanitizeAttributes(Object.assign(Xt,Qt.attributes)),Er=new Span(this,Ct,Et,dr,Vt,zt,Kt,yt.startTime,void 0,cr);return Er},ht.prototype.startActiveSpan=function(Et,yt,Ct,$t){var At,Bt,Dt;if(!(arguments.length<2)){arguments.length===2?Dt=yt:arguments.length===3?(At=yt,Dt=Ct):(At=yt,Bt=Ct,Dt=$t);var Ft=Bt??context.active(),kt=this.startSpan(Et,At,Ft),Mt=trace$1.setSpan(Ft,kt);return context.with(Mt,Dt,void 0,kt)}},ht.prototype.getGeneralLimits=function(){return this._generalLimits},ht.prototype.getSpanLimits=function(){return this._spanLimits},ht.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},ht}(),TMP_PROCESS_RUNTIME_NAME="process.runtime.name",TMP_SERVICE_NAME="service.name",TMP_TELEMETRY_SDK_NAME="telemetry.sdk.name",TMP_TELEMETRY_SDK_LANGUAGE="telemetry.sdk.language",TMP_TELEMETRY_SDK_VERSION="telemetry.sdk.version",SEMRESATTRS_PROCESS_RUNTIME_NAME=TMP_PROCESS_RUNTIME_NAME,SEMRESATTRS_SERVICE_NAME=TMP_SERVICE_NAME,SEMRESATTRS_TELEMETRY_SDK_NAME=TMP_TELEMETRY_SDK_NAME,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE=TMP_TELEMETRY_SDK_LANGUAGE,SEMRESATTRS_TELEMETRY_SDK_VERSION=TMP_TELEMETRY_SDK_VERSION,TMP_TELEMETRYSDKLANGUAGEVALUES_WEBJS="webjs",TELEMETRYSDKLANGUAGEVALUES_WEBJS=TMP_TELEMETRYSDKLANGUAGEVALUES_WEBJS,VERSION="1.25.1",_a$1,SDK_INFO=(_a$1={},_a$1[SEMRESATTRS_TELEMETRY_SDK_NAME]="opentelemetry",_a$1[SEMRESATTRS_PROCESS_RUNTIME_NAME]="browser",_a$1[SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]=TELEMETRYSDKLANGUAGEVALUES_WEBJS,_a$1[SEMRESATTRS_TELEMETRY_SDK_VERSION]=VERSION,_a$1);function defaultServiceName(){return"unknown_service"}var __assign$3=function(){return __assign$3=Object.assign||function(ht){for(var Et,yt=1,Ct=arguments.length;yt<Ct;yt++){Et=arguments[yt];for(var $t in Et)Object.prototype.hasOwnProperty.call(Et,$t)&&(ht[$t]=Et[$t])}return ht},__assign$3.apply(this,arguments)},__awaiter$1=function(ht,Et,yt,Ct){function $t(At){return At instanceof yt?At:new yt(function(Bt){Bt(At)})}return new(yt||(yt=Promise))(function(At,Bt){function Dt(Mt){try{kt(Ct.next(Mt))}catch(Nt){Bt(Nt)}}function Ft(Mt){try{kt(Ct.throw(Mt))}catch(Nt){Bt(Nt)}}function kt(Mt){Mt.done?At(Mt.value):$t(Mt.value).then(Dt,Ft)}kt((Ct=Ct.apply(ht,Et||[])).next())})},__generator$1=function(ht,Et){var yt={label:0,sent:function(){if(At[0]&1)throw At[1];return At[1]},trys:[],ops:[]},Ct,$t,At,Bt;return Bt={next:Dt(0),throw:Dt(1),return:Dt(2)},typeof Symbol=="function"&&(Bt[Symbol.iterator]=function(){return this}),Bt;function Dt(kt){return function(Mt){return Ft([kt,Mt])}}function Ft(kt){if(Ct)throw new TypeError("Generator is already executing.");for(;yt;)try{if(Ct=1,$t&&(At=kt[0]&2?$t.return:kt[0]?$t.throw||((At=$t.return)&&At.call($t),0):$t.next)&&!(At=At.call($t,kt[1])).done)return At;switch($t=0,At&&(kt=[kt[0]&2,At.value]),kt[0]){case 0:case 1:At=kt;break;case 4:return yt.label++,{value:kt[1],done:!1};case 5:yt.label++,$t=kt[1],kt=[0];continue;case 7:kt=yt.ops.pop(),yt.trys.pop();continue;default:if(At=yt.trys,!(At=At.length>0&&At[At.length-1])&&(kt[0]===6||kt[0]===2)){yt=0;continue}if(kt[0]===3&&(!At||kt[1]>At[0]&&kt[1]<At[3])){yt.label=kt[1];break}if(kt[0]===6&&yt.label<At[1]){yt.label=At[1],At=kt;break}if(At&&yt.label<At[2]){yt.label=At[2],yt.ops.push(kt);break}At[2]&&yt.ops.pop(),yt.trys.pop();continue}kt=Et.call(ht,yt)}catch(Mt){kt=[6,Mt],$t=0}finally{Ct=At=0}if(kt[0]&5)throw kt[1];return{value:kt[0]?kt[1]:void 0,done:!0}}},__read$6=function(ht,Et){var yt=typeof Symbol=="function"&&ht[Symbol.iterator];if(!yt)return ht;var Ct=yt.call(ht),$t,At=[],Bt;try{for(;(Et===void 0||Et-- >0)&&!($t=Ct.next()).done;)At.push($t.value)}catch(Dt){Bt={error:Dt}}finally{try{$t&&!$t.done&&(yt=Ct.return)&&yt.call(Ct)}finally{if(Bt)throw Bt.error}}return At},Resource=function(){function ht(Et,yt){var Ct=this,$t;this._attributes=Et,this.asyncAttributesPending=yt!=null,this._syncAttributes=($t=this._attributes)!==null&&$t!==void 0?$t:{},this._asyncAttributesPromise=yt==null?void 0:yt.then(function(At){return Ct._attributes=Object.assign({},Ct._attributes,At),Ct.asyncAttributesPending=!1,At},function(At){return diag.debug("a resource's async attributes promise rejected: %s",At),Ct.asyncAttributesPending=!1,{}})}return ht.empty=function(){return ht.EMPTY},ht.default=function(){var Et;return new ht((Et={},Et[SEMRESATTRS_SERVICE_NAME]=defaultServiceName(),Et[SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]=SDK_INFO[SEMRESATTRS_TELEMETRY_SDK_LANGUAGE],Et[SEMRESATTRS_TELEMETRY_SDK_NAME]=SDK_INFO[SEMRESATTRS_TELEMETRY_SDK_NAME],Et[SEMRESATTRS_TELEMETRY_SDK_VERSION]=SDK_INFO[SEMRESATTRS_TELEMETRY_SDK_VERSION],Et))},Object.defineProperty(ht.prototype,"attributes",{get:function(){var Et;return this.asyncAttributesPending&&diag.error("Accessing resource attributes before async attributes settled"),(Et=this._attributes)!==null&&Et!==void 0?Et:{}},enumerable:!1,configurable:!0}),ht.prototype.waitForAsyncAttributes=function(){return __awaiter$1(this,void 0,void 0,function(){return __generator$1(this,function(Et){switch(Et.label){case 0:return this.asyncAttributesPending?[4,this._asyncAttributesPromise]:[3,2];case 1:Et.sent(),Et.label=2;case 2:return[2]}})})},ht.prototype.merge=function(Et){var yt=this,Ct;if(!Et)return this;var $t=__assign$3(__assign$3({},this._syncAttributes),(Ct=Et._syncAttributes)!==null&&Ct!==void 0?Ct:Et.attributes);if(!this._asyncAttributesPromise&&!Et._asyncAttributesPromise)return new ht($t);var At=Promise.all([this._asyncAttributesPromise,Et._asyncAttributesPromise]).then(function(Bt){var Dt,Ft=__read$6(Bt,2),kt=Ft[0],Mt=Ft[1];return __assign$3(__assign$3(__assign$3(__assign$3({},yt._syncAttributes),kt),(Dt=Et._syncAttributes)!==null&&Dt!==void 0?Dt:Et.attributes),Mt)});return new ht($t,At)},ht.EMPTY=new ht({}),ht}(),__values$1=function(ht){var Et=typeof Symbol=="function"&&Symbol.iterator,yt=Et&&ht[Et],Ct=0;if(yt)return yt.call(ht);if(ht&&typeof ht.length=="number")return{next:function(){return ht&&Ct>=ht.length&&(ht=void 0),{value:ht&&ht[Ct++],done:!ht}}};throw new TypeError(Et?"Object is not iterable.":"Symbol.iterator is not defined.")},MultiSpanProcessor=function(){function ht(Et){this._spanProcessors=Et}return ht.prototype.forceFlush=function(){var Et,yt,Ct=[];try{for(var $t=__values$1(this._spanProcessors),At=$t.next();!At.done;At=$t.next()){var Bt=At.value;Ct.push(Bt.forceFlush())}}catch(Dt){Et={error:Dt}}finally{try{At&&!At.done&&(yt=$t.return)&&yt.call($t)}finally{if(Et)throw Et.error}}return new Promise(function(Dt){Promise.all(Ct).then(function(){Dt()}).catch(function(Ft){globalErrorHandler(Ft||new Error("MultiSpanProcessor: forceFlush failed")),Dt()})})},ht.prototype.onStart=function(Et,yt){var Ct,$t;try{for(var At=__values$1(this._spanProcessors),Bt=At.next();!Bt.done;Bt=At.next()){var Dt=Bt.value;Dt.onStart(Et,yt)}}catch(Ft){Ct={error:Ft}}finally{try{Bt&&!Bt.done&&($t=At.return)&&$t.call(At)}finally{if(Ct)throw Ct.error}}},ht.prototype.onEnd=function(Et){var yt,Ct;try{for(var $t=__values$1(this._spanProcessors),At=$t.next();!At.done;At=$t.next()){var Bt=At.value;Bt.onEnd(Et)}}catch(Dt){yt={error:Dt}}finally{try{At&&!At.done&&(Ct=$t.return)&&Ct.call($t)}finally{if(yt)throw yt.error}}},ht.prototype.shutdown=function(){var Et,yt,Ct=[];try{for(var $t=__values$1(this._spanProcessors),At=$t.next();!At.done;At=$t.next()){var Bt=At.value;Ct.push(Bt.shutdown())}}catch(Dt){Et={error:Dt}}finally{try{At&&!At.done&&(yt=$t.return)&&yt.call($t)}finally{if(Et)throw Et.error}}return new Promise(function(Dt,Ft){Promise.all(Ct).then(function(){Dt()},Ft)})},ht}(),NoopSpanProcessor=function(){function ht(){}return ht.prototype.onStart=function(Et,yt){},ht.prototype.onEnd=function(Et){},ht.prototype.shutdown=function(){return Promise.resolve()},ht.prototype.forceFlush=function(){return Promise.resolve()},ht}(),ForceFlushState;(function(ht){ht[ht.resolved=0]="resolved",ht[ht.timeout=1]="timeout",ht[ht.error=2]="error",ht[ht.unresolved=3]="unresolved"})(ForceFlushState||(ForceFlushState={}));var BasicTracerProvider=function(){function ht(Et){Et===void 0&&(Et={});var yt;this._registeredSpanProcessors=[],this._tracers=new Map;var Ct=merge({},loadDefaultConfig(),reconfigureLimits(Et));this.resource=(yt=Ct.resource)!==null&&yt!==void 0?yt:Resource.empty(),this.resource=Resource.default().merge(this.resource),this._config=Object.assign({},Ct,{resource:this.resource});var $t=this._buildExporterFromEnv();if($t!==void 0){var At=new BatchSpanProcessor($t);this.activeSpanProcessor=At}else this.activeSpanProcessor=new NoopSpanProcessor}return ht.prototype.getTracer=function(Et,yt,Ct){var $t=Et+"@"+(yt||"")+":"+((Ct==null?void 0:Ct.schemaUrl)||"");return this._tracers.has($t)||this._tracers.set($t,new Tracer({name:Et,version:yt,schemaUrl:Ct==null?void 0:Ct.schemaUrl},this._config,this)),this._tracers.get($t)},ht.prototype.addSpanProcessor=function(Et){this._registeredSpanProcessors.length===0&&this.activeSpanProcessor.shutdown().catch(function(yt){return diag.error("Error while trying to shutdown current span processor",yt)}),this._registeredSpanProcessors.push(Et),this.activeSpanProcessor=new MultiSpanProcessor(this._registeredSpanProcessors)},ht.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},ht.prototype.register=function(Et){Et===void 0&&(Et={}),trace$1.setGlobalTracerProvider(this),Et.propagator===void 0&&(Et.propagator=this._buildPropagatorFromEnv()),Et.contextManager&&context.setGlobalContextManager(Et.contextManager),Et.propagator&&propagation.setGlobalPropagator(Et.propagator)},ht.prototype.forceFlush=function(){var Et=this._config.forceFlushTimeoutMillis,yt=this._registeredSpanProcessors.map(function(Ct){return new Promise(function($t){var At,Bt=setTimeout(function(){$t(new Error("Span processor did not completed within timeout period of "+Et+" ms")),At=ForceFlushState.timeout},Et);Ct.forceFlush().then(function(){clearTimeout(Bt),At!==ForceFlushState.timeout&&(At=ForceFlushState.resolved,$t(At))}).catch(function(Dt){clearTimeout(Bt),At=ForceFlushState.error,$t(Dt)})})});return new Promise(function(Ct,$t){Promise.all(yt).then(function(At){var Bt=At.filter(function(Dt){return Dt!==ForceFlushState.resolved});Bt.length>0?$t(Bt):Ct()}).catch(function(At){return $t([At])})})},ht.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},ht.prototype._getPropagator=function(Et){var yt;return(yt=this.constructor._registeredPropagators.get(Et))===null||yt===void 0?void 0:yt()},ht.prototype._getSpanExporter=function(Et){var yt;return(yt=this.constructor._registeredExporters.get(Et))===null||yt===void 0?void 0:yt()},ht.prototype._buildPropagatorFromEnv=function(){var Et=this,yt=Array.from(new Set(getEnv$1().OTEL_PROPAGATORS)),Ct=yt.map(function(At){var Bt=Et._getPropagator(At);return Bt||diag.warn('Propagator "'+At+'" requested through environment variable is unavailable.'),Bt}),$t=Ct.reduce(function(At,Bt){return Bt&&At.push(Bt),At},[]);if($t.length!==0)return yt.length===1?$t[0]:new CompositePropagator({propagators:$t})},ht.prototype._buildExporterFromEnv=function(){var Et=getEnv$1().OTEL_TRACES_EXPORTER;if(!(Et==="none"||Et==="")){var yt=this._getSpanExporter(Et);return yt||diag.error('Exporter "'+Et+'" requested through environment variable is unavailable.'),yt}},ht._registeredPropagators=new Map([["tracecontext",function(){return new W3CTraceContextPropagator}],["baggage",function(){return new W3CBaggagePropagator}]]),ht._registeredExporters=new Map,ht}(),__awaiter=function(ht,Et,yt,Ct){function $t(At){return At instanceof yt?At:new yt(function(Bt){Bt(At)})}return new(yt||(yt=Promise))(function(At,Bt){function Dt(Mt){try{kt(Ct.next(Mt))}catch(Nt){Bt(Nt)}}function Ft(Mt){try{kt(Ct.throw(Mt))}catch(Nt){Bt(Nt)}}function kt(Mt){Mt.done?At(Mt.value):$t(Mt.value).then(Dt,Ft)}kt((Ct=Ct.apply(ht,Et||[])).next())})},__generator=function(ht,Et){var yt={label:0,sent:function(){if(At[0]&1)throw At[1];return At[1]},trys:[],ops:[]},Ct,$t,At,Bt;return Bt={next:Dt(0),throw:Dt(1),return:Dt(2)},typeof Symbol=="function"&&(Bt[Symbol.iterator]=function(){return this}),Bt;function Dt(kt){return function(Mt){return Ft([kt,Mt])}}function Ft(kt){if(Ct)throw new TypeError("Generator is already executing.");for(;yt;)try{if(Ct=1,$t&&(At=kt[0]&2?$t.return:kt[0]?$t.throw||((At=$t.return)&&At.call($t),0):$t.next)&&!(At=At.call($t,kt[1])).done)return At;switch($t=0,At&&(kt=[kt[0]&2,At.value]),kt[0]){case 0:case 1:At=kt;break;case 4:return yt.label++,{value:kt[1],done:!1};case 5:yt.label++,$t=kt[1],kt=[0];continue;case 7:kt=yt.ops.pop(),yt.trys.pop();continue;default:if(At=yt.trys,!(At=At.length>0&&At[At.length-1])&&(kt[0]===6||kt[0]===2)){yt=0;continue}if(kt[0]===3&&(!At||kt[1]>At[0]&&kt[1]<At[3])){yt.label=kt[1];break}if(kt[0]===6&&yt.label<At[1]){yt.label=At[1],At=kt;break}if(At&&yt.label<At[2]){yt.label=At[2],yt.ops.push(kt);break}At[2]&&yt.ops.pop(),yt.trys.pop();continue}kt=Et.call(ht,yt)}catch(Mt){kt=[6,Mt],$t=0}finally{Ct=At=0}if(kt[0]&5)throw kt[1];return{value:kt[0]?kt[1]:void 0,done:!0}}},SimpleSpanProcessor=function(){function ht(Et){this._exporter=Et,this._shutdownOnce=new BindOnceFuture$1(this._shutdown,this),this._unresolvedExports=new Set}return ht.prototype.forceFlush=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(Et){switch(Et.label){case 0:return[4,Promise.all(Array.from(this._unresolvedExports))];case 1:return Et.sent(),this._exporter.forceFlush?[4,this._exporter.forceFlush()]:[3,3];case 2:Et.sent(),Et.label=3;case 3:return[2]}})})},ht.prototype.onStart=function(Et,yt){},ht.prototype.onEnd=function(Et){var yt=this,Ct,$t;if(!this._shutdownOnce.isCalled&&Et.spanContext().traceFlags&TraceFlags.SAMPLED){var At=function(){return internal._export(yt._exporter,[Et]).then(function(Dt){var Ft;Dt.code!==ExportResultCode$1.SUCCESS&&globalErrorHandler((Ft=Dt.error)!==null&&Ft!==void 0?Ft:new Error("SimpleSpanProcessor: span export failed (status "+Dt+")"))}).catch(function(Dt){globalErrorHandler(Dt)})};if(Et.resource.asyncAttributesPending){var Bt=($t=(Ct=Et.resource).waitForAsyncAttributes)===null||$t===void 0?void 0:$t.call(Ct).then(function(){return Bt!=null&&yt._unresolvedExports.delete(Bt),At()},function(Dt){return globalErrorHandler(Dt)});Bt!=null&&this._unresolvedExports.add(Bt)}else At()}},ht.prototype.shutdown=function(){return this._shutdownOnce.call()},ht.prototype._shutdown=function(){return this._exporter.shutdown()},ht}(),__read$5=function(ht,Et){var yt=typeof Symbol=="function"&&ht[Symbol.iterator];if(!yt)return ht;var Ct=yt.call(ht),$t,At=[],Bt;try{for(;(Et===void 0||Et-- >0)&&!($t=Ct.next()).done;)At.push($t.value)}catch(Dt){Bt={error:Dt}}finally{try{$t&&!$t.done&&(yt=Ct.return)&&yt.call(Ct)}finally{if(Bt)throw Bt.error}}return At},__spreadArray$1=function(ht,Et,yt){if(yt||arguments.length===2)for(var Ct=0,$t=Et.length,At;Ct<$t;Ct++)(At||!(Ct in Et))&&(At||(At=Array.prototype.slice.call(Et,0,Ct)),At[Ct]=Et[Ct]);return ht.concat(At||Array.prototype.slice.call(Et))},StackContextManager=function(){function ht(){this._enabled=!1,this._currentContext=ROOT_CONTEXT}return ht.prototype._bindFunction=function(Et,yt){Et===void 0&&(Et=ROOT_CONTEXT);var Ct=this,$t=function(){for(var At=this,Bt=[],Dt=0;Dt<arguments.length;Dt++)Bt[Dt]=arguments[Dt];return Ct.with(Et,function(){return yt.apply(At,Bt)})};return Object.defineProperty($t,"length",{enumerable:!1,configurable:!0,writable:!1,value:yt.length}),$t},ht.prototype.active=function(){return this._currentContext},ht.prototype.bind=function(Et,yt){return Et===void 0&&(Et=this.active()),typeof yt=="function"?this._bindFunction(Et,yt):yt},ht.prototype.disable=function(){return this._currentContext=ROOT_CONTEXT,this._enabled=!1,this},ht.prototype.enable=function(){return this._enabled?this:(this._enabled=!0,this._currentContext=ROOT_CONTEXT,this)},ht.prototype.with=function(Et,yt,Ct){for(var $t=[],At=3;At<arguments.length;At++)$t[At-3]=arguments[At];var Bt=this._currentContext;this._currentContext=Et||ROOT_CONTEXT;try{return yt.call.apply(yt,__spreadArray$1([Ct],__read$5($t),!1))}finally{this._currentContext=Bt}},ht}(),__extends$6=function(){var ht=function(Et,yt){return ht=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ct,$t){Ct.__proto__=$t}||function(Ct,$t){for(var At in $t)Object.prototype.hasOwnProperty.call($t,At)&&(Ct[At]=$t[At])},ht(Et,yt)};return function(Et,yt){if(typeof yt!="function"&&yt!==null)throw new TypeError("Class extends value "+String(yt)+" is not a constructor or null");ht(Et,yt);function Ct(){this.constructor=Et}Et.prototype=yt===null?Object.create(yt):(Ct.prototype=yt.prototype,new Ct)}}(),WebTracerProvider=function(ht){__extends$6(Et,ht);function Et(yt){yt===void 0&&(yt={});var Ct=ht.call(this,yt)||this;if(yt.contextManager)throw"contextManager should be defined in register method not in constructor";if(yt.propagator)throw"propagator should be defined in register method not in constructor";return Ct}return Et.prototype.register=function(yt){yt===void 0&&(yt={}),yt.contextManager===void 0&&(yt.contextManager=new StackContextManager),yt.contextManager&&yt.contextManager.enable(),ht.prototype.register.call(this,yt)},Et}(BasicTracerProvider);function isListenerObject(ht){return ht===void 0&&(ht={}),typeof ht.addEventListener=="function"&&typeof ht.removeEventListener=="function"}var ZONE_CONTEXT_KEY="OT_ZONE_CONTEXT",ZoneContextManager=function(){function ht(){this._enabled=!1,this._zoneCounter=0}return ht.prototype._activeContextFromZone=function(Et){return Et&&Et.get(ZONE_CONTEXT_KEY)||ROOT_CONTEXT},ht.prototype._bindFunction=function(Et,yt){var Ct=this,$t=function(){for(var At=this,Bt=[],Dt=0;Dt<arguments.length;Dt++)Bt[Dt]=arguments[Dt];return Ct.with(Et,function(){return yt.apply(At,Bt)})};return Object.defineProperty($t,"length",{enumerable:!1,configurable:!0,writable:!1,value:yt.length}),$t},ht.prototype._bindListener=function(Et,yt){var Ct=yt;return Ct.__ot_listeners!==void 0||(Ct.__ot_listeners={},typeof Ct.addEventListener=="function"&&(Ct.addEventListener=this._patchAddEventListener(Ct,Ct.addEventListener,Et)),typeof Ct.removeEventListener=="function"&&(Ct.removeEventListener=this._patchRemoveEventListener(Ct,Ct.removeEventListener))),yt},ht.prototype._createZoneName=function(){this._zoneCounter++;var Et=Math.random();return this._zoneCounter+"-"+Et},ht.prototype._createZone=function(Et,yt){var Ct;return Zone.current.fork({name:Et,properties:(Ct={},Ct[ZONE_CONTEXT_KEY]=yt,Ct)})},ht.prototype._getActiveZone=function(){return Zone.current},ht.prototype._patchAddEventListener=function(Et,yt,Ct){var $t=this;return function(At,Bt,Dt){Et.__ot_listeners===void 0&&(Et.__ot_listeners={});var Ft=Et.__ot_listeners[At];Ft===void 0&&(Ft=new WeakMap,Et.__ot_listeners[At]=Ft);var kt=$t.bind(Ct,Bt);return Ft.set(Bt,kt),yt.call(this,At,kt,Dt)}},ht.prototype._patchRemoveEventListener=function(Et,yt){return function(Ct,$t){if(Et.__ot_listeners===void 0||Et.__ot_listeners[Ct]===void 0)return yt.call(this,Ct,$t);var At=Et.__ot_listeners[Ct],Bt=At.get($t);return At.delete($t),yt.call(this,Ct,Bt||$t)}},ht.prototype.active=function(){if(!this._enabled)return ROOT_CONTEXT;var Et=this._getActiveZone(),yt=this._activeContextFromZone(Et);return yt||ROOT_CONTEXT},ht.prototype.bind=function(Et,yt){return Et===void 0&&(Et=this.active()),typeof yt=="function"?this._bindFunction(Et,yt):(isListenerObject(yt)&&this._bindListener(Et,yt),yt)},ht.prototype.disable=function(){return this._enabled=!1,this},ht.prototype.enable=function(){return this._enabled=!0,this},ht.prototype.with=function(Et,yt,Ct){for(var $t=[],At=3;At<arguments.length;At++)$t[At-3]=arguments[At];var Bt=this._createZoneName(),Dt=this._createZone(Bt,Et);return Dt.run(yt,Ct,$t)},ht}();/**
 * @license Angular v<unknown>
 * (c) 2010-2024 Google LLC. https://angular.io/
 * License: MIT
 */const global$f=globalThis;function __symbol__(ht){return(global$f.__Zone_symbol_prefix||"__zone_symbol__")+ht}function initZone(){const ht=global$f.performance;function Et(er){ht&&ht.mark&&ht.mark(er)}function yt(er,lr){ht&&ht.measure&&ht.measure(er,lr)}Et("Zone");const Yt=class Yt{static assertZonePatched(){if(global$f.Promise!==xr.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let lr=Yt.current;for(;lr.parent;)lr=lr.parent;return lr}static get current(){return Lt.zone}static get currentTask(){return Ht}static __load_patch(lr,Jt,Ut=!1){if(xr.hasOwnProperty(lr)){const ir=global$f[__symbol__("forceDuplicateZoneCheck")]===!0;if(!Ut&&ir)throw Error("Already loaded patch: "+lr)}else if(!global$f["__Zone_disable_"+lr]){const ir="Zone:"+lr;Et(ir),xr[lr]=Jt(global$f,Yt,rr),yt(ir,ir)}}get parent(){return this._parent}get name(){return this._name}constructor(lr,Jt){this._parent=lr,this._name=Jt?Jt.name||"unnamed":"<root>",this._properties=Jt&&Jt.properties||{},this._zoneDelegate=new At(this,this._parent&&this._parent._zoneDelegate,Jt)}get(lr){const Jt=this.getZoneWith(lr);if(Jt)return Jt._properties[lr]}getZoneWith(lr){let Jt=this;for(;Jt;){if(Jt._properties.hasOwnProperty(lr))return Jt;Jt=Jt._parent}return null}fork(lr){if(!lr)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,lr)}wrap(lr,Jt){if(typeof lr!="function")throw new Error("Expecting function got: "+lr);const Ut=this._zoneDelegate.intercept(this,lr,Jt),ir=this;return function(){return ir.runGuarded(Ut,this,arguments,Jt)}}run(lr,Jt,Ut,ir){Lt={parent:Lt,zone:this};try{return this._zoneDelegate.invoke(this,lr,Jt,Ut,ir)}finally{Lt=Lt.parent}}runGuarded(lr,Jt=null,Ut,ir){Lt={parent:Lt,zone:this};try{try{return this._zoneDelegate.invoke(this,lr,Jt,Ut,ir)}catch(Cr){if(this._zoneDelegate.handleError(this,Cr))throw Cr}}finally{Lt=Lt.parent}}runTask(lr,Jt,Ut){if(lr.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(lr.zone||Xt).name+"; Execution: "+this.name+")");const ir=lr,{type:Cr,data:{isPeriodic:_r=!1,isRefreshable:$r=!1}={}}=lr;if(lr.state===Qt&&(Cr===yr||Cr===vr))return;const Tr=lr.state!=cr;Tr&&ir._transitionTo(cr,dr);const Dr=Ht;Ht=ir,Lt={parent:Lt,zone:this};try{Cr==vr&&lr.data&&!_r&&!$r&&(lr.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,ir,Jt,Ut)}catch(Ar){if(this._zoneDelegate.handleError(this,Ar))throw Ar}}finally{const Ar=lr.state;if(Ar!==Qt&&Ar!==pr)if(Cr==yr||_r||$r&&Ar===Zt)Tr&&ir._transitionTo(dr,cr,Zt);else{const Fr=ir._zoneDelegates;this._updateTaskCount(ir,-1),Tr&&ir._transitionTo(Qt,cr,Qt),$r&&(ir._zoneDelegates=Fr)}Lt=Lt.parent,Ht=Dr}}scheduleTask(lr){if(lr.zone&&lr.zone!==this){let Ut=this;for(;Ut;){if(Ut===lr.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${lr.zone.name}`);Ut=Ut.parent}}lr._transitionTo(Zt,Qt);const Jt=[];lr._zoneDelegates=Jt,lr._zone=this;try{lr=this._zoneDelegate.scheduleTask(this,lr)}catch(Ut){throw lr._transitionTo(pr,Zt,Qt),this._zoneDelegate.handleError(this,Ut),Ut}return lr._zoneDelegates===Jt&&this._updateTaskCount(lr,1),lr.state==Zt&&lr._transitionTo(dr,Zt),lr}scheduleMicroTask(lr,Jt,Ut,ir){return this.scheduleTask(new Bt(gr,lr,Jt,Ut,ir,void 0))}scheduleMacroTask(lr,Jt,Ut,ir,Cr){return this.scheduleTask(new Bt(vr,lr,Jt,Ut,ir,Cr))}scheduleEventTask(lr,Jt,Ut,ir,Cr){return this.scheduleTask(new Bt(yr,lr,Jt,Ut,ir,Cr))}cancelTask(lr){if(lr.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(lr.zone||Xt).name+"; Execution: "+this.name+")");if(!(lr.state!==dr&&lr.state!==cr)){lr._transitionTo(Er,dr,cr);try{this._zoneDelegate.cancelTask(this,lr)}catch(Jt){throw lr._transitionTo(pr,Er),this._zoneDelegate.handleError(this,Jt),Jt}return this._updateTaskCount(lr,-1),lr._transitionTo(Qt,Er),lr.runCount=-1,lr}}_updateTaskCount(lr,Jt){const Ut=lr._zoneDelegates;Jt==-1&&(lr._zoneDelegates=null);for(let ir=0;ir<Ut.length;ir++)Ut[ir]._updateTaskCount(lr.type,Jt)}};Yt.__symbol__=__symbol__;let Ct=Yt;const $t={name:"",onHasTask:(er,lr,Jt,Ut)=>er.hasTask(Jt,Ut),onScheduleTask:(er,lr,Jt,Ut)=>er.scheduleTask(Jt,Ut),onInvokeTask:(er,lr,Jt,Ut,ir,Cr)=>er.invokeTask(Jt,Ut,ir,Cr),onCancelTask:(er,lr,Jt,Ut)=>er.cancelTask(Jt,Ut)};class At{get zone(){return this._zone}constructor(lr,Jt,Ut){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=lr,this._parentDelegate=Jt,this._forkZS=Ut&&(Ut&&Ut.onFork?Ut:Jt._forkZS),this._forkDlgt=Ut&&(Ut.onFork?Jt:Jt._forkDlgt),this._forkCurrZone=Ut&&(Ut.onFork?this._zone:Jt._forkCurrZone),this._interceptZS=Ut&&(Ut.onIntercept?Ut:Jt._interceptZS),this._interceptDlgt=Ut&&(Ut.onIntercept?Jt:Jt._interceptDlgt),this._interceptCurrZone=Ut&&(Ut.onIntercept?this._zone:Jt._interceptCurrZone),this._invokeZS=Ut&&(Ut.onInvoke?Ut:Jt._invokeZS),this._invokeDlgt=Ut&&(Ut.onInvoke?Jt:Jt._invokeDlgt),this._invokeCurrZone=Ut&&(Ut.onInvoke?this._zone:Jt._invokeCurrZone),this._handleErrorZS=Ut&&(Ut.onHandleError?Ut:Jt._handleErrorZS),this._handleErrorDlgt=Ut&&(Ut.onHandleError?Jt:Jt._handleErrorDlgt),this._handleErrorCurrZone=Ut&&(Ut.onHandleError?this._zone:Jt._handleErrorCurrZone),this._scheduleTaskZS=Ut&&(Ut.onScheduleTask?Ut:Jt._scheduleTaskZS),this._scheduleTaskDlgt=Ut&&(Ut.onScheduleTask?Jt:Jt._scheduleTaskDlgt),this._scheduleTaskCurrZone=Ut&&(Ut.onScheduleTask?this._zone:Jt._scheduleTaskCurrZone),this._invokeTaskZS=Ut&&(Ut.onInvokeTask?Ut:Jt._invokeTaskZS),this._invokeTaskDlgt=Ut&&(Ut.onInvokeTask?Jt:Jt._invokeTaskDlgt),this._invokeTaskCurrZone=Ut&&(Ut.onInvokeTask?this._zone:Jt._invokeTaskCurrZone),this._cancelTaskZS=Ut&&(Ut.onCancelTask?Ut:Jt._cancelTaskZS),this._cancelTaskDlgt=Ut&&(Ut.onCancelTask?Jt:Jt._cancelTaskDlgt),this._cancelTaskCurrZone=Ut&&(Ut.onCancelTask?this._zone:Jt._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const ir=Ut&&Ut.onHasTask,Cr=Jt&&Jt._hasTaskZS;(ir||Cr)&&(this._hasTaskZS=ir?Ut:$t,this._hasTaskDlgt=Jt,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,Ut.onScheduleTask||(this._scheduleTaskZS=$t,this._scheduleTaskDlgt=Jt,this._scheduleTaskCurrZone=this._zone),Ut.onInvokeTask||(this._invokeTaskZS=$t,this._invokeTaskDlgt=Jt,this._invokeTaskCurrZone=this._zone),Ut.onCancelTask||(this._cancelTaskZS=$t,this._cancelTaskDlgt=Jt,this._cancelTaskCurrZone=this._zone))}fork(lr,Jt){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,lr,Jt):new Ct(lr,Jt)}intercept(lr,Jt,Ut){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,lr,Jt,Ut):Jt}invoke(lr,Jt,Ut,ir,Cr){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,lr,Jt,Ut,ir,Cr):Jt.apply(Ut,ir)}handleError(lr,Jt){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,lr,Jt):!0}scheduleTask(lr,Jt){let Ut=Jt;if(this._scheduleTaskZS)this._hasTaskZS&&Ut._zoneDelegates.push(this._hasTaskDlgtOwner),Ut=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,lr,Jt),Ut||(Ut=Jt);else if(Jt.scheduleFn)Jt.scheduleFn(Jt);else if(Jt.type==gr)Vt(Jt);else throw new Error("Task is missing scheduleFn.");return Ut}invokeTask(lr,Jt,Ut,ir){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,lr,Jt,Ut,ir):Jt.callback.apply(Ut,ir)}cancelTask(lr,Jt){let Ut;if(this._cancelTaskZS)Ut=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,lr,Jt);else{if(!Jt.cancelFn)throw Error("Task is not cancelable");Ut=Jt.cancelFn(Jt)}return Ut}hasTask(lr,Jt){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,lr,Jt)}catch(Ut){this.handleError(lr,Ut)}}_updateTaskCount(lr,Jt){const Ut=this._taskCounts,ir=Ut[lr],Cr=Ut[lr]=ir+Jt;if(Cr<0)throw new Error("More tasks executed then were scheduled.");if(ir==0||Cr==0){const _r={microTask:Ut.microTask>0,macroTask:Ut.macroTask>0,eventTask:Ut.eventTask>0,change:lr};this.hasTask(this._zone,_r)}}}class Bt{constructor(lr,Jt,Ut,ir,Cr,_r){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=lr,this.source=Jt,this.data=ir,this.scheduleFn=Cr,this.cancelFn=_r,!Ut)throw new Error("callback is not defined");this.callback=Ut;const $r=this;lr===yr&&ir&&ir.useG?this.invoke=Bt.invokeTask:this.invoke=function(){return Bt.invokeTask.call(global$f,$r,this,arguments)}}static invokeTask(lr,Jt,Ut){lr||(lr=this),Wt++;try{return lr.runCount++,lr.zone.runTask(lr,Jt,Ut)}finally{Wt==1&&Kt(),Wt--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(Qt,Zt)}_transitionTo(lr,Jt,Ut){if(this._state===Jt||this._state===Ut)this._state=lr,lr==Qt&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${lr}', expecting state '${Jt}'${Ut?" or '"+Ut+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const Dt=__symbol__("setTimeout"),Ft=__symbol__("Promise"),kt=__symbol__("then");let Mt=[],Nt=!1,jt;function zt(er){if(jt||global$f[Ft]&&(jt=global$f[Ft].resolve(0)),jt){let lr=jt[kt];lr||(lr=jt.then),lr.call(jt,er)}else global$f[Dt](er,0)}function Vt(er){Wt===0&&Mt.length===0&&zt(Kt),er&&Mt.push(er)}function Kt(){if(!Nt){for(Nt=!0;Mt.length;){const er=Mt;Mt=[];for(let lr=0;lr<er.length;lr++){const Jt=er[lr];try{Jt.zone.runTask(Jt,null,null)}catch(Ut){rr.onUnhandledError(Ut)}}}rr.microtaskDrainDone(),Nt=!1}}const Xt={name:"NO ZONE"},Qt="notScheduled",Zt="scheduling",dr="scheduled",cr="running",Er="canceling",pr="unknown",gr="microTask",vr="macroTask",yr="eventTask",xr={},rr={symbol:__symbol__,currentZoneFrame:()=>Lt,onUnhandledError:Gt,microtaskDrainDone:Gt,scheduleMicroTask:Vt,showUncaughtError:()=>!Ct[__symbol__("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:Gt,patchMethod:()=>Gt,bindArguments:()=>[],patchThen:()=>Gt,patchMacroTask:()=>Gt,patchEventPrototype:()=>Gt,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>Gt,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>Gt,wrapWithCurrentZone:()=>Gt,filterProperties:()=>[],attachOriginToPatched:()=>Gt,_redefineProperty:()=>Gt,patchCallbacks:()=>Gt,nativeScheduleMicroTask:zt};let Lt={parent:null,zone:new Ct(null,null)},Ht=null,Wt=0;function Gt(){}return yt("Zone","Zone"),Ct}function loadZone(){const ht=globalThis,Et=ht[__symbol__("forceDuplicateZoneCheck")]===!0;if(ht.Zone&&(Et||typeof ht.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return ht.Zone??(ht.Zone=initZone()),ht.Zone}const ObjectGetOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ObjectDefineProperty=Object.defineProperty,ObjectGetPrototypeOf=Object.getPrototypeOf,ObjectCreate=Object.create,ArraySlice=Array.prototype.slice,ADD_EVENT_LISTENER_STR="addEventListener",REMOVE_EVENT_LISTENER_STR="removeEventListener",ZONE_SYMBOL_ADD_EVENT_LISTENER=__symbol__(ADD_EVENT_LISTENER_STR),ZONE_SYMBOL_REMOVE_EVENT_LISTENER=__symbol__(REMOVE_EVENT_LISTENER_STR),TRUE_STR="true",FALSE_STR="false",ZONE_SYMBOL_PREFIX=__symbol__("");function wrapWithCurrentZone(ht,Et){return Zone.current.wrap(ht,Et)}function scheduleMacroTaskWithCurrentZone(ht,Et,yt,Ct,$t){return Zone.current.scheduleMacroTask(ht,Et,yt,Ct,$t)}const zoneSymbol=__symbol__,isWindowExists=typeof window<"u",internalWindow=isWindowExists?window:void 0,_global=isWindowExists&&internalWindow||globalThis,REMOVE_ATTRIBUTE="removeAttribute";function bindArguments(ht,Et){for(let yt=ht.length-1;yt>=0;yt--)typeof ht[yt]=="function"&&(ht[yt]=wrapWithCurrentZone(ht[yt],Et+"_"+yt));return ht}function patchPrototype(ht,Et){const yt=ht.constructor.name;for(let Ct=0;Ct<Et.length;Ct++){const $t=Et[Ct],At=ht[$t];if(At){const Bt=ObjectGetOwnPropertyDescriptor(ht,$t);if(!isPropertyWritable(Bt))continue;ht[$t]=(Dt=>{const Ft=function(){return Dt.apply(this,bindArguments(arguments,yt+"."+$t))};return attachOriginToPatched(Ft,Dt),Ft})(At)}}}function isPropertyWritable(ht){return ht?ht.writable===!1?!1:!(typeof ht.get=="function"&&typeof ht.set>"u"):!0}const isWebWorker=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,isNode=!("nw"in _global)&&typeof _global.process<"u"&&_global.process.toString()==="[object process]",isBrowser$1=!isNode&&!isWebWorker&&!!(isWindowExists&&internalWindow.HTMLElement),isMix=typeof _global.process<"u"&&_global.process.toString()==="[object process]"&&!isWebWorker&&!!(isWindowExists&&internalWindow.HTMLElement),zoneSymbolEventNames$1={},enableBeforeunloadSymbol=zoneSymbol("enable_beforeunload"),wrapFn=function(ht){if(ht=ht||_global.event,!ht)return;let Et=zoneSymbolEventNames$1[ht.type];Et||(Et=zoneSymbolEventNames$1[ht.type]=zoneSymbol("ON_PROPERTY"+ht.type));const yt=this||ht.target||_global,Ct=yt[Et];let $t;if(isBrowser$1&&yt===internalWindow&&ht.type==="error"){const At=ht;$t=Ct&&Ct.call(this,At.message,At.filename,At.lineno,At.colno,At.error),$t===!0&&ht.preventDefault()}else $t=Ct&&Ct.apply(this,arguments),ht.type==="beforeunload"&&_global[enableBeforeunloadSymbol]&&typeof $t=="string"?ht.returnValue=$t:$t!=null&&!$t&&ht.preventDefault();return $t};function patchProperty(ht,Et,yt){let Ct=ObjectGetOwnPropertyDescriptor(ht,Et);if(!Ct&&yt&&ObjectGetOwnPropertyDescriptor(yt,Et)&&(Ct={enumerable:!0,configurable:!0}),!Ct||!Ct.configurable)return;const $t=zoneSymbol("on"+Et+"patched");if(ht.hasOwnProperty($t)&&ht[$t])return;delete Ct.writable,delete Ct.value;const At=Ct.get,Bt=Ct.set,Dt=Et.slice(2);let Ft=zoneSymbolEventNames$1[Dt];Ft||(Ft=zoneSymbolEventNames$1[Dt]=zoneSymbol("ON_PROPERTY"+Dt)),Ct.set=function(kt){let Mt=this;if(!Mt&&ht===_global&&(Mt=_global),!Mt)return;typeof Mt[Ft]=="function"&&Mt.removeEventListener(Dt,wrapFn),Bt&&Bt.call(Mt,null),Mt[Ft]=kt,typeof kt=="function"&&Mt.addEventListener(Dt,wrapFn,!1)},Ct.get=function(){let kt=this;if(!kt&&ht===_global&&(kt=_global),!kt)return null;const Mt=kt[Ft];if(Mt)return Mt;if(At){let Nt=At.call(this);if(Nt)return Ct.set.call(this,Nt),typeof kt[REMOVE_ATTRIBUTE]=="function"&&kt.removeAttribute(Et),Nt}return null},ObjectDefineProperty(ht,Et,Ct),ht[$t]=!0}function patchOnProperties(ht,Et,yt){if(Et)for(let Ct=0;Ct<Et.length;Ct++)patchProperty(ht,"on"+Et[Ct],yt);else{const Ct=[];for(const $t in ht)$t.slice(0,2)=="on"&&Ct.push($t);for(let $t=0;$t<Ct.length;$t++)patchProperty(ht,Ct[$t],yt)}}const originalInstanceKey=zoneSymbol("originalInstance");function patchClass(ht){const Et=_global[ht];if(!Et)return;_global[zoneSymbol(ht)]=Et,_global[ht]=function(){const $t=bindArguments(arguments,ht);switch($t.length){case 0:this[originalInstanceKey]=new Et;break;case 1:this[originalInstanceKey]=new Et($t[0]);break;case 2:this[originalInstanceKey]=new Et($t[0],$t[1]);break;case 3:this[originalInstanceKey]=new Et($t[0],$t[1],$t[2]);break;case 4:this[originalInstanceKey]=new Et($t[0],$t[1],$t[2],$t[3]);break;default:throw new Error("Arg list too long.")}},attachOriginToPatched(_global[ht],Et);const yt=new Et(function(){});let Ct;for(Ct in yt)ht==="XMLHttpRequest"&&Ct==="responseBlob"||function($t){typeof yt[$t]=="function"?_global[ht].prototype[$t]=function(){return this[originalInstanceKey][$t].apply(this[originalInstanceKey],arguments)}:ObjectDefineProperty(_global[ht].prototype,$t,{set:function(At){typeof At=="function"?(this[originalInstanceKey][$t]=wrapWithCurrentZone(At,ht+"."+$t),attachOriginToPatched(this[originalInstanceKey][$t],At)):this[originalInstanceKey][$t]=At},get:function(){return this[originalInstanceKey][$t]}})}(Ct);for(Ct in Et)Ct!=="prototype"&&Et.hasOwnProperty(Ct)&&(_global[ht][Ct]=Et[Ct])}function patchMethod(ht,Et,yt){let Ct=ht;for(;Ct&&!Ct.hasOwnProperty(Et);)Ct=ObjectGetPrototypeOf(Ct);!Ct&&ht[Et]&&(Ct=ht);const $t=zoneSymbol(Et);let At=null;if(Ct&&(!(At=Ct[$t])||!Ct.hasOwnProperty($t))){At=Ct[$t]=Ct[Et];const Bt=Ct&&ObjectGetOwnPropertyDescriptor(Ct,Et);if(isPropertyWritable(Bt)){const Dt=yt(At,$t,Et);Ct[Et]=function(){return Dt(this,arguments)},attachOriginToPatched(Ct[Et],At)}}return At}function patchMacroTask(ht,Et,yt){let Ct=null;function $t(At){const Bt=At.data;return Bt.args[Bt.cbIdx]=function(){At.invoke.apply(this,arguments)},Ct.apply(Bt.target,Bt.args),At}Ct=patchMethod(ht,Et,At=>function(Bt,Dt){const Ft=yt(Bt,Dt);return Ft.cbIdx>=0&&typeof Dt[Ft.cbIdx]=="function"?scheduleMacroTaskWithCurrentZone(Ft.name,Dt[Ft.cbIdx],Ft,$t):At.apply(Bt,Dt)})}function attachOriginToPatched(ht,Et){ht[zoneSymbol("OriginalDelegate")]=Et}let isDetectedIEOrEdge=!1,ieOrEdge=!1;function isIE(){try{const ht=internalWindow.navigator.userAgent;if(ht.indexOf("MSIE ")!==-1||ht.indexOf("Trident/")!==-1)return!0}catch{}return!1}function isIEOrEdge(){if(isDetectedIEOrEdge)return ieOrEdge;isDetectedIEOrEdge=!0;try{const ht=internalWindow.navigator.userAgent;(ht.indexOf("MSIE ")!==-1||ht.indexOf("Trident/")!==-1||ht.indexOf("Edge/")!==-1)&&(ieOrEdge=!0)}catch{}return ieOrEdge}function isFunction$3(ht){return typeof ht=="function"}function isNumber$2(ht){return typeof ht=="number"}let passiveSupported=!1;if(typeof window<"u")try{const ht=Object.defineProperty({},"passive",{get:function(){passiveSupported=!0}});window.addEventListener("test",ht,ht),window.removeEventListener("test",ht,ht)}catch{passiveSupported=!1}const OPTIMIZED_ZONE_EVENT_TASK_DATA={useG:!0},zoneSymbolEventNames={},globalSources={},EVENT_NAME_SYMBOL_REGX=new RegExp("^"+ZONE_SYMBOL_PREFIX+"(\\w+)(true|false)$"),IMMEDIATE_PROPAGATION_SYMBOL=zoneSymbol("propagationStopped");function prepareEventNames(ht,Et){const yt=(Et?Et(ht):ht)+FALSE_STR,Ct=(Et?Et(ht):ht)+TRUE_STR,$t=ZONE_SYMBOL_PREFIX+yt,At=ZONE_SYMBOL_PREFIX+Ct;zoneSymbolEventNames[ht]={},zoneSymbolEventNames[ht][FALSE_STR]=$t,zoneSymbolEventNames[ht][TRUE_STR]=At}function patchEventTarget(ht,Et,yt,Ct){const $t=Ct&&Ct.add||ADD_EVENT_LISTENER_STR,At=Ct&&Ct.rm||REMOVE_EVENT_LISTENER_STR,Bt=Ct&&Ct.listeners||"eventListeners",Dt=Ct&&Ct.rmAll||"removeAllListeners",Ft=zoneSymbol($t),kt="."+$t+":",Mt="prependListener",Nt="."+Mt+":",jt=function(Zt,dr,cr){if(Zt.isRemoved)return;const Er=Zt.callback;typeof Er=="object"&&Er.handleEvent&&(Zt.callback=vr=>Er.handleEvent(vr),Zt.originalDelegate=Er);let pr;try{Zt.invoke(Zt,dr,[cr])}catch(vr){pr=vr}const gr=Zt.options;if(gr&&typeof gr=="object"&&gr.once){const vr=Zt.originalDelegate?Zt.originalDelegate:Zt.callback;dr[At].call(dr,cr.type,vr,gr)}return pr};function zt(Zt,dr,cr){if(dr=dr||ht.event,!dr)return;const Er=Zt||dr.target||ht,pr=Er[zoneSymbolEventNames[dr.type][cr?TRUE_STR:FALSE_STR]];if(pr){const gr=[];if(pr.length===1){const vr=jt(pr[0],Er,dr);vr&&gr.push(vr)}else{const vr=pr.slice();for(let yr=0;yr<vr.length&&!(dr&&dr[IMMEDIATE_PROPAGATION_SYMBOL]===!0);yr++){const xr=jt(vr[yr],Er,dr);xr&&gr.push(xr)}}if(gr.length===1)throw gr[0];for(let vr=0;vr<gr.length;vr++){const yr=gr[vr];Et.nativeScheduleMicroTask(()=>{throw yr})}}}const Vt=function(Zt){return zt(this,Zt,!1)},Kt=function(Zt){return zt(this,Zt,!0)};function Xt(Zt,dr){if(!Zt)return!1;let cr=!0;dr&&dr.useG!==void 0&&(cr=dr.useG);const Er=dr&&dr.vh;let pr=!0;dr&&dr.chkDup!==void 0&&(pr=dr.chkDup);let gr=!1;dr&&dr.rt!==void 0&&(gr=dr.rt);let vr=Zt;for(;vr&&!vr.hasOwnProperty($t);)vr=ObjectGetPrototypeOf(vr);if(!vr&&Zt[$t]&&(vr=Zt),!vr||vr[Ft])return!1;const yr=dr&&dr.eventNameToString,xr={},rr=vr[Ft]=vr[$t],Lt=vr[zoneSymbol(At)]=vr[At],Ht=vr[zoneSymbol(Bt)]=vr[Bt],Wt=vr[zoneSymbol(Dt)]=vr[Dt];let Gt;dr&&dr.prepend&&(Gt=vr[zoneSymbol(dr.prepend)]=vr[dr.prepend]);function Yt(wr,Sr){return!passiveSupported&&typeof wr=="object"&&wr?!!wr.capture:!passiveSupported||!Sr?wr:typeof wr=="boolean"?{capture:wr,passive:!0}:wr?typeof wr=="object"&&wr.passive!==!1?{...wr,passive:!0}:wr:{passive:!0}}const er=function(wr){if(!xr.isExisting)return rr.call(xr.target,xr.eventName,xr.capture?Kt:Vt,xr.options)},lr=function(wr){if(!wr.isRemoved){const Sr=zoneSymbolEventNames[wr.eventName];let Br;Sr&&(Br=Sr[wr.capture?TRUE_STR:FALSE_STR]);const Or=Br&&wr.target[Br];if(Or){for(let Pr=0;Pr<Or.length;Pr++)if(Or[Pr]===wr){Or.splice(Pr,1),wr.isRemoved=!0,wr.removeAbortListener&&(wr.removeAbortListener(),wr.removeAbortListener=null),Or.length===0&&(wr.allRemoved=!0,wr.target[Br]=null);break}}}if(wr.allRemoved)return Lt.call(wr.target,wr.eventName,wr.capture?Kt:Vt,wr.options)},Jt=function(wr){return rr.call(xr.target,xr.eventName,wr.invoke,xr.options)},Ut=function(wr){return Gt.call(xr.target,xr.eventName,wr.invoke,xr.options)},ir=function(wr){return Lt.call(wr.target,wr.eventName,wr.invoke,wr.options)},Cr=cr?er:Jt,_r=cr?lr:ir,$r=function(wr,Sr){const Br=typeof Sr;return Br==="function"&&wr.callback===Sr||Br==="object"&&wr.originalDelegate===Sr},Tr=dr&&dr.diff?dr.diff:$r,Dr=Zone[zoneSymbol("UNPATCHED_EVENTS")],Ar=ht[zoneSymbol("PASSIVE_EVENTS")];function Fr(wr){if(typeof wr=="object"&&wr!==null){const Sr={...wr};return wr.signal&&(Sr.signal=wr.signal),Sr}return wr}const Rr=function(wr,Sr,Br,Or,Pr=!1,Nr=!1){return function(){const Lr=this||ht;let Wr=arguments[0];dr&&dr.transferEventName&&(Wr=dr.transferEventName(Wr));let Ur=arguments[1];if(!Ur)return wr.apply(this,arguments);if(isNode&&Wr==="uncaughtException")return wr.apply(this,arguments);let jr=!1;if(typeof Ur!="function"){if(!Ur.handleEvent)return wr.apply(this,arguments);jr=!0}if(Er&&!Er(wr,Ur,Lr,arguments))return;const Kr=passiveSupported&&!!Ar&&Ar.indexOf(Wr)!==-1,qr=Fr(Yt(arguments[2],Kr)),Zr=qr==null?void 0:qr.signal;if(Zr!=null&&Zr.aborted)return;if(Dr){for(let on=0;on<Dr.length;on++)if(Wr===Dr[on])return Kr?wr.call(Lr,Wr,Ur,qr):wr.apply(this,arguments)}const dn=qr?typeof qr=="boolean"?!0:qr.capture:!1,Xr=qr&&typeof qr=="object"?qr.once:!1,un=Zone.current;let Yr=zoneSymbolEventNames[Wr];Yr||(prepareEventNames(Wr,yr),Yr=zoneSymbolEventNames[Wr]);const Gr=Yr[dn?TRUE_STR:FALSE_STR];let Jr=Lr[Gr],wn=!1;if(Jr){if(wn=!0,pr){for(let on=0;on<Jr.length;on++)if(Tr(Jr[on],Ur))return}}else Jr=Lr[Gr]=[];let kr;const Mr=Lr.constructor.name,Ir=globalSources[Mr];Ir&&(kr=Ir[Wr]),kr||(kr=Mr+Sr+(yr?yr(Wr):Wr)),xr.options=qr,Xr&&(xr.options.once=!1),xr.target=Lr,xr.capture=dn,xr.eventName=Wr,xr.isExisting=wn;const Hr=cr?OPTIMIZED_ZONE_EVENT_TASK_DATA:void 0;Hr&&(Hr.taskData=xr),Zr&&(xr.options.signal=void 0);const Vr=un.scheduleEventTask(kr,Ur,Hr,Br,Or);if(Zr){xr.options.signal=Zr;const on=()=>Vr.zone.cancelTask(Vr);wr.call(Zr,"abort",on,{once:!0}),Vr.removeAbortListener=()=>Zr.removeEventListener("abort",on)}if(xr.target=null,Hr&&(Hr.taskData=null),Xr&&(xr.options.once=!0),!passiveSupported&&typeof Vr.options=="boolean"||(Vr.options=qr),Vr.target=Lr,Vr.capture=dn,Vr.eventName=Wr,jr&&(Vr.originalDelegate=Ur),Nr?Jr.unshift(Vr):Jr.push(Vr),Pr)return Lr}};return vr[$t]=Rr(rr,kt,Cr,_r,gr),Gt&&(vr[Mt]=Rr(Gt,Nt,Ut,_r,gr,!0)),vr[At]=function(){const wr=this||ht;let Sr=arguments[0];dr&&dr.transferEventName&&(Sr=dr.transferEventName(Sr));const Br=arguments[2],Or=Br?typeof Br=="boolean"?!0:Br.capture:!1,Pr=arguments[1];if(!Pr)return Lt.apply(this,arguments);if(Er&&!Er(Lt,Pr,wr,arguments))return;const Nr=zoneSymbolEventNames[Sr];let Lr;Nr&&(Lr=Nr[Or?TRUE_STR:FALSE_STR]);const Wr=Lr&&wr[Lr];if(Wr)for(let Ur=0;Ur<Wr.length;Ur++){const jr=Wr[Ur];if(Tr(jr,Pr)){if(Wr.splice(Ur,1),jr.isRemoved=!0,Wr.length===0&&(jr.allRemoved=!0,wr[Lr]=null,!Or&&typeof Sr=="string")){const Kr=ZONE_SYMBOL_PREFIX+"ON_PROPERTY"+Sr;wr[Kr]=null}return jr.zone.cancelTask(jr),gr?wr:void 0}}return Lt.apply(this,arguments)},vr[Bt]=function(){const wr=this||ht;let Sr=arguments[0];dr&&dr.transferEventName&&(Sr=dr.transferEventName(Sr));const Br=[],Or=findEventTasks(wr,yr?yr(Sr):Sr);for(let Pr=0;Pr<Or.length;Pr++){const Nr=Or[Pr];let Lr=Nr.originalDelegate?Nr.originalDelegate:Nr.callback;Br.push(Lr)}return Br},vr[Dt]=function(){const wr=this||ht;let Sr=arguments[0];if(Sr){dr&&dr.transferEventName&&(Sr=dr.transferEventName(Sr));const Br=zoneSymbolEventNames[Sr];if(Br){const Or=Br[FALSE_STR],Pr=Br[TRUE_STR],Nr=wr[Or],Lr=wr[Pr];if(Nr){const Wr=Nr.slice();for(let Ur=0;Ur<Wr.length;Ur++){const jr=Wr[Ur];let Kr=jr.originalDelegate?jr.originalDelegate:jr.callback;this[At].call(this,Sr,Kr,jr.options)}}if(Lr){const Wr=Lr.slice();for(let Ur=0;Ur<Wr.length;Ur++){const jr=Wr[Ur];let Kr=jr.originalDelegate?jr.originalDelegate:jr.callback;this[At].call(this,Sr,Kr,jr.options)}}}}else{const Br=Object.keys(wr);for(let Or=0;Or<Br.length;Or++){const Pr=Br[Or],Nr=EVENT_NAME_SYMBOL_REGX.exec(Pr);let Lr=Nr&&Nr[1];Lr&&Lr!=="removeListener"&&this[Dt].call(this,Lr)}this[Dt].call(this,"removeListener")}if(gr)return this},attachOriginToPatched(vr[$t],rr),attachOriginToPatched(vr[At],Lt),Wt&&attachOriginToPatched(vr[Dt],Wt),Ht&&attachOriginToPatched(vr[Bt],Ht),!0}let Qt=[];for(let Zt=0;Zt<yt.length;Zt++)Qt[Zt]=Xt(yt[Zt],Ct);return Qt}function findEventTasks(ht,Et){if(!Et){const At=[];for(let Bt in ht){const Dt=EVENT_NAME_SYMBOL_REGX.exec(Bt);let Ft=Dt&&Dt[1];if(Ft&&(!Et||Ft===Et)){const kt=ht[Bt];if(kt)for(let Mt=0;Mt<kt.length;Mt++)At.push(kt[Mt])}}return At}let yt=zoneSymbolEventNames[Et];yt||(prepareEventNames(Et),yt=zoneSymbolEventNames[Et]);const Ct=ht[yt[FALSE_STR]],$t=ht[yt[TRUE_STR]];return Ct?$t?Ct.concat($t):Ct.slice():$t?$t.slice():[]}function patchEventPrototype(ht,Et){const yt=ht.Event;yt&&yt.prototype&&Et.patchMethod(yt.prototype,"stopImmediatePropagation",Ct=>function($t,At){$t[IMMEDIATE_PROPAGATION_SYMBOL]=!0,Ct&&Ct.apply($t,At)})}function patchQueueMicrotask(ht,Et){Et.patchMethod(ht,"queueMicrotask",yt=>function(Ct,$t){Zone.current.scheduleMicroTask("queueMicrotask",$t[0])})}const taskSymbol=zoneSymbol("zoneTask");function patchTimer(ht,Et,yt,Ct){let $t=null,At=null;Et+=Ct,yt+=Ct;const Bt={};function Dt(kt){const Mt=kt.data;Mt.args[0]=function(){return kt.invoke.apply(this,arguments)};const Nt=$t.apply(ht,Mt.args);return isNumber$2(Nt)?Mt.handleId=Nt:(Mt.handle=Nt,Mt.isRefreshable=isFunction$3(Nt.refresh)),kt}function Ft(kt){const{handle:Mt,handleId:Nt}=kt.data;return At.call(ht,Mt??Nt)}$t=patchMethod(ht,Et,kt=>function(Mt,Nt){if(isFunction$3(Nt[0])){const jt={isRefreshable:!1,isPeriodic:Ct==="Interval",delay:Ct==="Timeout"||Ct==="Interval"?Nt[1]||0:void 0,args:Nt},zt=Nt[0];Nt[0]=function(){try{return zt.apply(this,arguments)}finally{const{handle:cr,handleId:Er,isPeriodic:pr,isRefreshable:gr}=jt;!pr&&!gr&&(Er?delete Bt[Er]:cr&&(cr[taskSymbol]=null))}};const Vt=scheduleMacroTaskWithCurrentZone(Et,Nt[0],jt,Dt,Ft);if(!Vt)return Vt;const{handleId:Kt,handle:Xt,isRefreshable:Qt,isPeriodic:Zt}=Vt.data;if(Kt)Bt[Kt]=Vt;else if(Xt&&(Xt[taskSymbol]=Vt,Qt&&!Zt)){const dr=Xt.refresh;Xt.refresh=function(){const{zone:cr,state:Er}=Vt;return Er==="notScheduled"?(Vt._state="scheduled",cr._updateTaskCount(Vt,1)):Er==="running"&&(Vt._state="scheduling"),dr.call(this)}}return Xt??Kt??Vt}else return kt.apply(ht,Nt)}),At=patchMethod(ht,yt,kt=>function(Mt,Nt){const jt=Nt[0];let zt;isNumber$2(jt)?(zt=Bt[jt],delete Bt[jt]):(zt=jt==null?void 0:jt[taskSymbol],zt?jt[taskSymbol]=null:zt=jt),zt!=null&&zt.type?zt.cancelFn&&zt.zone.cancelTask(zt):kt.apply(ht,Nt)})}function patchCustomElements(ht,Et){const{isBrowser:yt,isMix:Ct}=Et.getGlobalObjects();if(!yt&&!Ct||!ht.customElements||!("customElements"in ht))return;const $t=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];Et.patchCallbacks(Et,ht.customElements,"customElements","define",$t)}function eventTargetPatch(ht,Et){if(Zone[Et.symbol("patchEventTarget")])return;const{eventNames:yt,zoneSymbolEventNames:Ct,TRUE_STR:$t,FALSE_STR:At,ZONE_SYMBOL_PREFIX:Bt}=Et.getGlobalObjects();for(let Ft=0;Ft<yt.length;Ft++){const kt=yt[Ft],Mt=kt+At,Nt=kt+$t,jt=Bt+Mt,zt=Bt+Nt;Ct[kt]={},Ct[kt][At]=jt,Ct[kt][$t]=zt}const Dt=ht.EventTarget;if(!(!Dt||!Dt.prototype))return Et.patchEventTarget(ht,Et,[Dt&&Dt.prototype]),!0}function patchEvent(ht,Et){Et.patchEventPrototype(ht,Et)}function filterProperties(ht,Et,yt){if(!yt||yt.length===0)return Et;const Ct=yt.filter(At=>At.target===ht);if(!Ct||Ct.length===0)return Et;const $t=Ct[0].ignoreProperties;return Et.filter(At=>$t.indexOf(At)===-1)}function patchFilteredProperties(ht,Et,yt,Ct){if(!ht)return;const $t=filterProperties(ht,Et,yt);patchOnProperties(ht,$t,Ct)}function getOnEventNames(ht){return Object.getOwnPropertyNames(ht).filter(Et=>Et.startsWith("on")&&Et.length>2).map(Et=>Et.substring(2))}function propertyDescriptorPatch(ht,Et){if(isNode&&!isMix||Zone[ht.symbol("patchEvents")])return;const yt=Et.__Zone_ignore_on_properties;let Ct=[];if(isBrowser$1){const $t=window;Ct=Ct.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const At=isIE()?[{target:$t,ignoreProperties:["error"]}]:[];patchFilteredProperties($t,getOnEventNames($t),yt&&yt.concat(At),ObjectGetPrototypeOf($t))}Ct=Ct.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let $t=0;$t<Ct.length;$t++){const At=Et[Ct[$t]];At&&At.prototype&&patchFilteredProperties(At.prototype,getOnEventNames(At.prototype),yt)}}function patchBrowser(ht){ht.__load_patch("legacy",Et=>{const yt=Et[ht.__symbol__("legacyPatch")];yt&&yt()}),ht.__load_patch("timers",Et=>{const yt="set",Ct="clear";patchTimer(Et,yt,Ct,"Timeout"),patchTimer(Et,yt,Ct,"Interval"),patchTimer(Et,yt,Ct,"Immediate")}),ht.__load_patch("requestAnimationFrame",Et=>{patchTimer(Et,"request","cancel","AnimationFrame"),patchTimer(Et,"mozRequest","mozCancel","AnimationFrame"),patchTimer(Et,"webkitRequest","webkitCancel","AnimationFrame")}),ht.__load_patch("blocking",(Et,yt)=>{const Ct=["alert","prompt","confirm"];for(let $t=0;$t<Ct.length;$t++){const At=Ct[$t];patchMethod(Et,At,(Bt,Dt,Ft)=>function(kt,Mt){return yt.current.run(Bt,Et,Mt,Ft)})}}),ht.__load_patch("EventTarget",(Et,yt,Ct)=>{patchEvent(Et,Ct),eventTargetPatch(Et,Ct);const $t=Et.XMLHttpRequestEventTarget;$t&&$t.prototype&&Ct.patchEventTarget(Et,Ct,[$t.prototype])}),ht.__load_patch("MutationObserver",(Et,yt,Ct)=>{patchClass("MutationObserver"),patchClass("WebKitMutationObserver")}),ht.__load_patch("IntersectionObserver",(Et,yt,Ct)=>{patchClass("IntersectionObserver")}),ht.__load_patch("FileReader",(Et,yt,Ct)=>{patchClass("FileReader")}),ht.__load_patch("on_property",(Et,yt,Ct)=>{propertyDescriptorPatch(Ct,Et)}),ht.__load_patch("customElements",(Et,yt,Ct)=>{patchCustomElements(Et,Ct)}),ht.__load_patch("XHR",(Et,yt)=>{kt(Et);const Ct=zoneSymbol("xhrTask"),$t=zoneSymbol("xhrSync"),At=zoneSymbol("xhrListener"),Bt=zoneSymbol("xhrScheduled"),Dt=zoneSymbol("xhrURL"),Ft=zoneSymbol("xhrErrorBeforeScheduled");function kt(Mt){const Nt=Mt.XMLHttpRequest;if(!Nt)return;const jt=Nt.prototype;function zt(rr){return rr[Ct]}let Vt=jt[ZONE_SYMBOL_ADD_EVENT_LISTENER],Kt=jt[ZONE_SYMBOL_REMOVE_EVENT_LISTENER];if(!Vt){const rr=Mt.XMLHttpRequestEventTarget;if(rr){const Lt=rr.prototype;Vt=Lt[ZONE_SYMBOL_ADD_EVENT_LISTENER],Kt=Lt[ZONE_SYMBOL_REMOVE_EVENT_LISTENER]}}const Xt="readystatechange",Qt="scheduled";function Zt(rr){const Lt=rr.data,Ht=Lt.target;Ht[Bt]=!1,Ht[Ft]=!1;const Wt=Ht[At];Vt||(Vt=Ht[ZONE_SYMBOL_ADD_EVENT_LISTENER],Kt=Ht[ZONE_SYMBOL_REMOVE_EVENT_LISTENER]),Wt&&Kt.call(Ht,Xt,Wt);const Gt=Ht[At]=()=>{if(Ht.readyState===Ht.DONE)if(!Lt.aborted&&Ht[Bt]&&rr.state===Qt){const er=Ht[yt.__symbol__("loadfalse")];if(Ht.status!==0&&er&&er.length>0){const lr=rr.invoke;rr.invoke=function(){const Jt=Ht[yt.__symbol__("loadfalse")];for(let Ut=0;Ut<Jt.length;Ut++)Jt[Ut]===rr&&Jt.splice(Ut,1);!Lt.aborted&&rr.state===Qt&&lr.call(rr)},er.push(rr)}else rr.invoke()}else!Lt.aborted&&Ht[Bt]===!1&&(Ht[Ft]=!0)};return Vt.call(Ht,Xt,Gt),Ht[Ct]||(Ht[Ct]=rr),yr.apply(Ht,Lt.args),Ht[Bt]=!0,rr}function dr(){}function cr(rr){const Lt=rr.data;return Lt.aborted=!0,xr.apply(Lt.target,Lt.args)}const Er=patchMethod(jt,"open",()=>function(rr,Lt){return rr[$t]=Lt[2]==!1,rr[Dt]=Lt[1],Er.apply(rr,Lt)}),pr="XMLHttpRequest.send",gr=zoneSymbol("fetchTaskAborting"),vr=zoneSymbol("fetchTaskScheduling"),yr=patchMethod(jt,"send",()=>function(rr,Lt){if(yt.current[vr]===!0||rr[$t])return yr.apply(rr,Lt);{const Ht={target:rr,url:rr[Dt],isPeriodic:!1,args:Lt,aborted:!1},Wt=scheduleMacroTaskWithCurrentZone(pr,dr,Ht,Zt,cr);rr&&rr[Ft]===!0&&!Ht.aborted&&Wt.state===Qt&&Wt.invoke()}}),xr=patchMethod(jt,"abort",()=>function(rr,Lt){const Ht=zt(rr);if(Ht&&typeof Ht.type=="string"){if(Ht.cancelFn==null||Ht.data&&Ht.data.aborted)return;Ht.zone.cancelTask(Ht)}else if(yt.current[gr]===!0)return xr.apply(rr,Lt)})}}),ht.__load_patch("geolocation",Et=>{Et.navigator&&Et.navigator.geolocation&&patchPrototype(Et.navigator.geolocation,["getCurrentPosition","watchPosition"])}),ht.__load_patch("PromiseRejectionEvent",(Et,yt)=>{function Ct($t){return function(At){findEventTasks(Et,$t).forEach(Dt=>{const Ft=Et.PromiseRejectionEvent;if(Ft){const kt=new Ft($t,{promise:At.promise,reason:At.rejection});Dt.invoke(kt)}})}}Et.PromiseRejectionEvent&&(yt[zoneSymbol("unhandledPromiseRejectionHandler")]=Ct("unhandledrejection"),yt[zoneSymbol("rejectionHandledHandler")]=Ct("rejectionhandled"))}),ht.__load_patch("queueMicrotask",(Et,yt,Ct)=>{patchQueueMicrotask(Et,Ct)})}function patchPromise(ht){ht.__load_patch("ZoneAwarePromise",(Et,yt,Ct)=>{const $t=Object.getOwnPropertyDescriptor,At=Object.defineProperty;function Bt(Fr){if(Fr&&Fr.toString===Object.prototype.toString){const Rr=Fr.constructor&&Fr.constructor.name;return(Rr||"")+": "+JSON.stringify(Fr)}return Fr?Fr.toString():Object.prototype.toString.call(Fr)}const Dt=Ct.symbol,Ft=[],kt=Et[Dt("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,Mt=Dt("Promise"),Nt=Dt("then"),jt="__creationTrace__";Ct.onUnhandledError=Fr=>{if(Ct.showUncaughtError()){const Rr=Fr&&Fr.rejection;Rr?console.error("Unhandled Promise rejection:",Rr instanceof Error?Rr.message:Rr,"; Zone:",Fr.zone.name,"; Task:",Fr.task&&Fr.task.source,"; Value:",Rr,Rr instanceof Error?Rr.stack:void 0):console.error(Fr)}},Ct.microtaskDrainDone=()=>{for(;Ft.length;){const Fr=Ft.shift();try{Fr.zone.runGuarded(()=>{throw Fr.throwOriginal?Fr.rejection:Fr})}catch(Rr){Vt(Rr)}}};const zt=Dt("unhandledPromiseRejectionHandler");function Vt(Fr){Ct.onUnhandledError(Fr);try{const Rr=yt[zt];typeof Rr=="function"&&Rr.call(this,Fr)}catch{}}function Kt(Fr){return Fr&&Fr.then}function Xt(Fr){return Fr}function Qt(Fr){return _r.reject(Fr)}const Zt=Dt("state"),dr=Dt("value"),cr=Dt("finally"),Er=Dt("parentPromiseValue"),pr=Dt("parentPromiseState"),gr="Promise.then",vr=null,yr=!0,xr=!1,rr=0;function Lt(Fr,Rr){return wr=>{try{Yt(Fr,Rr,wr)}catch(Sr){Yt(Fr,!1,Sr)}}}const Ht=function(){let Fr=!1;return function(wr){return function(){Fr||(Fr=!0,wr.apply(null,arguments))}}},Wt="Promise resolved with itself",Gt=Dt("currentTaskTrace");function Yt(Fr,Rr,wr){const Sr=Ht();if(Fr===wr)throw new TypeError(Wt);if(Fr[Zt]===vr){let Br=null;try{(typeof wr=="object"||typeof wr=="function")&&(Br=wr&&wr.then)}catch(Or){return Sr(()=>{Yt(Fr,!1,Or)})(),Fr}if(Rr!==xr&&wr instanceof _r&&wr.hasOwnProperty(Zt)&&wr.hasOwnProperty(dr)&&wr[Zt]!==vr)lr(wr),Yt(Fr,wr[Zt],wr[dr]);else if(Rr!==xr&&typeof Br=="function")try{Br.call(wr,Sr(Lt(Fr,Rr)),Sr(Lt(Fr,!1)))}catch(Or){Sr(()=>{Yt(Fr,!1,Or)})()}else{Fr[Zt]=Rr;const Or=Fr[dr];if(Fr[dr]=wr,Fr[cr]===cr&&Rr===yr&&(Fr[Zt]=Fr[pr],Fr[dr]=Fr[Er]),Rr===xr&&wr instanceof Error){const Pr=yt.currentTask&&yt.currentTask.data&&yt.currentTask.data[jt];Pr&&At(wr,Gt,{configurable:!0,enumerable:!1,writable:!0,value:Pr})}for(let Pr=0;Pr<Or.length;)Jt(Fr,Or[Pr++],Or[Pr++],Or[Pr++],Or[Pr++]);if(Or.length==0&&Rr==xr){Fr[Zt]=rr;let Pr=wr;try{throw new Error("Uncaught (in promise): "+Bt(wr)+(wr&&wr.stack?`
`+wr.stack:""))}catch(Nr){Pr=Nr}kt&&(Pr.throwOriginal=!0),Pr.rejection=wr,Pr.promise=Fr,Pr.zone=yt.current,Pr.task=yt.currentTask,Ft.push(Pr),Ct.scheduleMicroTask()}}}return Fr}const er=Dt("rejectionHandledHandler");function lr(Fr){if(Fr[Zt]===rr){try{const Rr=yt[er];Rr&&typeof Rr=="function"&&Rr.call(this,{rejection:Fr[dr],promise:Fr})}catch{}Fr[Zt]=xr;for(let Rr=0;Rr<Ft.length;Rr++)Fr===Ft[Rr].promise&&Ft.splice(Rr,1)}}function Jt(Fr,Rr,wr,Sr,Br){lr(Fr);const Or=Fr[Zt],Pr=Or?typeof Sr=="function"?Sr:Xt:typeof Br=="function"?Br:Qt;Rr.scheduleMicroTask(gr,()=>{try{const Nr=Fr[dr],Lr=!!wr&&cr===wr[cr];Lr&&(wr[Er]=Nr,wr[pr]=Or);const Wr=Rr.run(Pr,void 0,Lr&&Pr!==Qt&&Pr!==Xt?[]:[Nr]);Yt(wr,!0,Wr)}catch(Nr){Yt(wr,!1,Nr)}},wr)}const Ut="function ZoneAwarePromise() { [native code] }",ir=function(){},Cr=Et.AggregateError;class _r{static toString(){return Ut}static resolve(Rr){return Rr instanceof _r?Rr:Yt(new this(null),yr,Rr)}static reject(Rr){return Yt(new this(null),xr,Rr)}static withResolvers(){const Rr={};return Rr.promise=new _r((wr,Sr)=>{Rr.resolve=wr,Rr.reject=Sr}),Rr}static any(Rr){if(!Rr||typeof Rr[Symbol.iterator]!="function")return Promise.reject(new Cr([],"All promises were rejected"));const wr=[];let Sr=0;try{for(let Pr of Rr)Sr++,wr.push(_r.resolve(Pr))}catch{return Promise.reject(new Cr([],"All promises were rejected"))}if(Sr===0)return Promise.reject(new Cr([],"All promises were rejected"));let Br=!1;const Or=[];return new _r((Pr,Nr)=>{for(let Lr=0;Lr<wr.length;Lr++)wr[Lr].then(Wr=>{Br||(Br=!0,Pr(Wr))},Wr=>{Or.push(Wr),Sr--,Sr===0&&(Br=!0,Nr(new Cr(Or,"All promises were rejected")))})})}static race(Rr){let wr,Sr,Br=new this((Nr,Lr)=>{wr=Nr,Sr=Lr});function Or(Nr){wr(Nr)}function Pr(Nr){Sr(Nr)}for(let Nr of Rr)Kt(Nr)||(Nr=this.resolve(Nr)),Nr.then(Or,Pr);return Br}static all(Rr){return _r.allWithCallback(Rr)}static allSettled(Rr){return(this&&this.prototype instanceof _r?this:_r).allWithCallback(Rr,{thenCallback:Sr=>({status:"fulfilled",value:Sr}),errorCallback:Sr=>({status:"rejected",reason:Sr})})}static allWithCallback(Rr,wr){let Sr,Br,Or=new this((Wr,Ur)=>{Sr=Wr,Br=Ur}),Pr=2,Nr=0;const Lr=[];for(let Wr of Rr){Kt(Wr)||(Wr=this.resolve(Wr));const Ur=Nr;try{Wr.then(jr=>{Lr[Ur]=wr?wr.thenCallback(jr):jr,Pr--,Pr===0&&Sr(Lr)},jr=>{wr?(Lr[Ur]=wr.errorCallback(jr),Pr--,Pr===0&&Sr(Lr)):Br(jr)})}catch(jr){Br(jr)}Pr++,Nr++}return Pr-=2,Pr===0&&Sr(Lr),Or}constructor(Rr){const wr=this;if(!(wr instanceof _r))throw new Error("Must be an instanceof Promise.");wr[Zt]=vr,wr[dr]=[];try{const Sr=Ht();Rr&&Rr(Sr(Lt(wr,yr)),Sr(Lt(wr,xr)))}catch(Sr){Yt(wr,!1,Sr)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return _r}then(Rr,wr){var Pr;let Sr=(Pr=this.constructor)==null?void 0:Pr[Symbol.species];(!Sr||typeof Sr!="function")&&(Sr=this.constructor||_r);const Br=new Sr(ir),Or=yt.current;return this[Zt]==vr?this[dr].push(Or,Br,Rr,wr):Jt(this,Or,Br,Rr,wr),Br}catch(Rr){return this.then(null,Rr)}finally(Rr){var Or;let wr=(Or=this.constructor)==null?void 0:Or[Symbol.species];(!wr||typeof wr!="function")&&(wr=_r);const Sr=new wr(ir);Sr[cr]=cr;const Br=yt.current;return this[Zt]==vr?this[dr].push(Br,Sr,Rr,Rr):Jt(this,Br,Sr,Rr,Rr),Sr}}_r.resolve=_r.resolve,_r.reject=_r.reject,_r.race=_r.race,_r.all=_r.all;const $r=Et[Mt]=Et.Promise;Et.Promise=_r;const Tr=Dt("thenPatched");function Dr(Fr){const Rr=Fr.prototype,wr=$t(Rr,"then");if(wr&&(wr.writable===!1||!wr.configurable))return;const Sr=Rr.then;Rr[Nt]=Sr,Fr.prototype.then=function(Br,Or){return new _r((Nr,Lr)=>{Sr.call(this,Nr,Lr)}).then(Br,Or)},Fr[Tr]=!0}Ct.patchThen=Dr;function Ar(Fr){return function(Rr,wr){let Sr=Fr.apply(Rr,wr);if(Sr instanceof _r)return Sr;let Br=Sr.constructor;return Br[Tr]||Dr(Br),Sr}}return $r&&(Dr($r),patchMethod(Et,"fetch",Fr=>Ar(Fr))),Promise[yt.__symbol__("uncaughtPromiseErrors")]=Ft,_r})}function patchToString(ht){ht.__load_patch("toString",Et=>{const yt=Function.prototype.toString,Ct=zoneSymbol("OriginalDelegate"),$t=zoneSymbol("Promise"),At=zoneSymbol("Error"),Bt=function(){if(typeof this=="function"){const Mt=this[Ct];if(Mt)return typeof Mt=="function"?yt.call(Mt):Object.prototype.toString.call(Mt);if(this===Promise){const Nt=Et[$t];if(Nt)return yt.call(Nt)}if(this===Error){const Nt=Et[At];if(Nt)return yt.call(Nt)}}return yt.call(this)};Bt[Ct]=yt,Function.prototype.toString=Bt;const Dt=Object.prototype.toString,Ft="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?Ft:Dt.call(this)}})}function patchCallbacks(ht,Et,yt,Ct,$t){const At=Zone.__symbol__(Ct);if(Et[At])return;const Bt=Et[At]=Et[Ct];Et[Ct]=function(Dt,Ft,kt){return Ft&&Ft.prototype&&$t.forEach(function(Mt){const Nt=`${yt}.${Ct}::`+Mt,jt=Ft.prototype;try{if(jt.hasOwnProperty(Mt)){const zt=ht.ObjectGetOwnPropertyDescriptor(jt,Mt);zt&&zt.value?(zt.value=ht.wrapWithCurrentZone(zt.value,Nt),ht._redefineProperty(Ft.prototype,Mt,zt)):jt[Mt]&&(jt[Mt]=ht.wrapWithCurrentZone(jt[Mt],Nt))}else jt[Mt]&&(jt[Mt]=ht.wrapWithCurrentZone(jt[Mt],Nt))}catch{}}),Bt.call(Et,Dt,Ft,kt)},ht.attachOriginToPatched(Et[Ct],Bt)}function patchUtil(ht){ht.__load_patch("util",(Et,yt,Ct)=>{const $t=getOnEventNames(Et);Ct.patchOnProperties=patchOnProperties,Ct.patchMethod=patchMethod,Ct.bindArguments=bindArguments,Ct.patchMacroTask=patchMacroTask;const At=yt.__symbol__("BLACK_LISTED_EVENTS"),Bt=yt.__symbol__("UNPATCHED_EVENTS");Et[Bt]&&(Et[At]=Et[Bt]),Et[At]&&(yt[At]=yt[Bt]=Et[At]),Ct.patchEventPrototype=patchEventPrototype,Ct.patchEventTarget=patchEventTarget,Ct.isIEOrEdge=isIEOrEdge,Ct.ObjectDefineProperty=ObjectDefineProperty,Ct.ObjectGetOwnPropertyDescriptor=ObjectGetOwnPropertyDescriptor,Ct.ObjectCreate=ObjectCreate,Ct.ArraySlice=ArraySlice,Ct.patchClass=patchClass,Ct.wrapWithCurrentZone=wrapWithCurrentZone,Ct.filterProperties=filterProperties,Ct.attachOriginToPatched=attachOriginToPatched,Ct._redefineProperty=Object.defineProperty,Ct.patchCallbacks=patchCallbacks,Ct.getGlobalObjects=()=>({globalSources,zoneSymbolEventNames,eventNames:$t,isBrowser:isBrowser$1,isMix,isNode,TRUE_STR,FALSE_STR,ZONE_SYMBOL_PREFIX,ADD_EVENT_LISTENER_STR,REMOVE_EVENT_LISTENER_STR})})}function patchCommon(ht){patchPromise(ht),patchToString(ht),patchUtil(ht)}const Zone$1=loadZone();patchCommon(Zone$1);patchBrowser(Zone$1);function parseInstrumentationOptions(ht){ht===void 0&&(ht=[]);for(var Et=[],yt=0,Ct=ht.length;yt<Ct;yt++){var $t=ht[yt];if(Array.isArray($t)){var At=parseInstrumentationOptions($t);Et=Et.concat(At.instrumentations)}else typeof $t=="function"?Et.push(new $t):$t.instrumentationName&&Et.push($t)}return{instrumentations:Et}}function enableInstrumentations(ht,Et,yt){for(var Ct=0,$t=ht.length;Ct<$t;Ct++){var At=ht[Ct];Et&&At.setTracerProvider(Et),yt&&At.setMeterProvider(yt),At.getConfig().enabled||At.enable()}}function disableInstrumentations(ht){ht.forEach(function(Et){return Et.disable()})}function registerInstrumentations(ht){var Et=parseInstrumentationOptions(ht.instrumentations).instrumentations,yt=ht.tracerProvider||trace$1.getTracerProvider(),Ct=ht.meterProvider||metrics.getMeterProvider();return enableInstrumentations(Et,yt,Ct),function(){disableInstrumentations(Et)}}var BAGGAGE_KEY_PAIR_SEPARATOR="=",BAGGAGE_PROPERTIES_SEPARATOR=";",BAGGAGE_ITEMS_SEPARATOR=",";function parsePairKeyValue(ht){var Et=ht.split(BAGGAGE_PROPERTIES_SEPARATOR);if(!(Et.length<=0)){var yt=Et.shift();if(yt){var Ct=yt.indexOf(BAGGAGE_KEY_PAIR_SEPARATOR);if(!(Ct<=0)){var $t=decodeURIComponent(yt.substring(0,Ct).trim()),At=decodeURIComponent(yt.substring(Ct+1).trim()),Bt;return Et.length>0&&(Bt=baggageEntryMetadataFromString(Et.join(BAGGAGE_PROPERTIES_SEPARATOR))),{key:$t,value:At,metadata:Bt}}}}}function parseKeyPairsIntoRecord(ht){return typeof ht!="string"||ht.length===0?{}:ht.split(BAGGAGE_ITEMS_SEPARATOR).map(function(Et){return parsePairKeyValue(Et)}).filter(function(Et){return Et!==void 0&&Et.value.length>0}).reduce(function(Et,yt){return Et[yt.key]=yt.value,Et},{})}var TracesSamplerValues;(function(ht){ht.AlwaysOff="always_off",ht.AlwaysOn="always_on",ht.ParentBasedAlwaysOff="parentbased_always_off",ht.ParentBasedAlwaysOn="parentbased_always_on",ht.ParentBasedTraceIdRatio="parentbased_traceidratio",ht.TraceIdRatio="traceidratio"})(TracesSamplerValues||(TracesSamplerValues={}));var _globalThis=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global$g=="object"?global$g:{},DEFAULT_LIST_SEPARATOR=",",ENVIRONMENT_BOOLEAN_KEYS=["OTEL_SDK_DISABLED"];function isEnvVarABoolean(ht){return ENVIRONMENT_BOOLEAN_KEYS.indexOf(ht)>-1}var ENVIRONMENT_NUMBERS_KEYS=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function isEnvVarANumber(ht){return ENVIRONMENT_NUMBERS_KEYS.indexOf(ht)>-1}var ENVIRONMENT_LISTS_KEYS=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function isEnvVarAList(ht){return ENVIRONMENT_LISTS_KEYS.indexOf(ht)>-1}var DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=1/0,DEFAULT_ATTRIBUTE_COUNT_LIMIT=128,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=128,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=128,DEFAULT_ENVIRONMENT={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:DiagLogLevel.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_ATTRIBUTE_COUNT_LIMIT:DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:TracesSamplerValues.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative"};function parseBoolean(ht,Et,yt){if(!(typeof yt[ht]>"u")){var Ct=String(yt[ht]);Et[ht]=Ct.toLowerCase()==="true"}}function parseNumber(ht,Et,yt,Ct,$t){if(Ct===void 0&&(Ct=-1/0),$t===void 0&&($t=1/0),typeof yt[ht]<"u"){var At=Number(yt[ht]);isNaN(At)||(At<Ct?Et[ht]=Ct:At>$t?Et[ht]=$t:Et[ht]=At)}}function parseStringList(ht,Et,yt,Ct){Ct===void 0&&(Ct=DEFAULT_LIST_SEPARATOR);var $t=yt[ht];typeof $t=="string"&&(Et[ht]=$t.split(Ct).map(function(At){return At.trim()}))}var logLevelMap={ALL:DiagLogLevel.ALL,VERBOSE:DiagLogLevel.VERBOSE,DEBUG:DiagLogLevel.DEBUG,INFO:DiagLogLevel.INFO,WARN:DiagLogLevel.WARN,ERROR:DiagLogLevel.ERROR,NONE:DiagLogLevel.NONE};function setLogLevelFromEnv(ht,Et,yt){var Ct=yt[ht];if(typeof Ct=="string"){var $t=logLevelMap[Ct.toUpperCase()];$t!=null&&(Et[ht]=$t)}}function parseEnvironment(ht){var Et={};for(var yt in DEFAULT_ENVIRONMENT){var Ct=yt;switch(Ct){case"OTEL_LOG_LEVEL":setLogLevelFromEnv(Ct,Et,ht);break;default:if(isEnvVarABoolean(Ct))parseBoolean(Ct,Et,ht);else if(isEnvVarANumber(Ct))parseNumber(Ct,Et,ht);else if(isEnvVarAList(Ct))parseStringList(Ct,Et,ht);else{var $t=ht[Ct];typeof $t<"u"&&$t!==null&&(Et[Ct]=String($t))}}}return Et}function getEnv(){var ht=parseEnvironment(_globalThis);return Object.assign({},DEFAULT_ENVIRONMENT,ht)}function intValue(ht){return ht>=48&&ht<=57?ht-48:ht>=97&&ht<=102?ht-87:ht-55}function hexToBinary(ht){for(var Et=new Uint8Array(ht.length/2),yt=0,Ct=0;Ct<ht.length;Ct+=2){var $t=intValue(ht.charCodeAt(Ct)),At=intValue(ht.charCodeAt(Ct+1));Et[yt++]=$t<<4|At}return Et}var SemanticAttributes={AWS_LAMBDA_INVOKED_ARN:"aws.lambda.invoked_arn",DB_SYSTEM:"db.system",DB_CONNECTION_STRING:"db.connection_string",DB_USER:"db.user",DB_JDBC_DRIVER_CLASSNAME:"db.jdbc.driver_classname",DB_NAME:"db.name",DB_STATEMENT:"db.statement",DB_OPERATION:"db.operation",DB_MSSQL_INSTANCE_NAME:"db.mssql.instance_name",DB_CASSANDRA_KEYSPACE:"db.cassandra.keyspace",DB_CASSANDRA_PAGE_SIZE:"db.cassandra.page_size",DB_CASSANDRA_CONSISTENCY_LEVEL:"db.cassandra.consistency_level",DB_CASSANDRA_TABLE:"db.cassandra.table",DB_CASSANDRA_IDEMPOTENCE:"db.cassandra.idempotence",DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:"db.cassandra.speculative_execution_count",DB_CASSANDRA_COORDINATOR_ID:"db.cassandra.coordinator.id",DB_CASSANDRA_COORDINATOR_DC:"db.cassandra.coordinator.dc",DB_HBASE_NAMESPACE:"db.hbase.namespace",DB_REDIS_DATABASE_INDEX:"db.redis.database_index",DB_MONGODB_COLLECTION:"db.mongodb.collection",DB_SQL_TABLE:"db.sql.table",EXCEPTION_TYPE:"exception.type",EXCEPTION_MESSAGE:"exception.message",EXCEPTION_STACKTRACE:"exception.stacktrace",EXCEPTION_ESCAPED:"exception.escaped",FAAS_TRIGGER:"faas.trigger",FAAS_EXECUTION:"faas.execution",FAAS_DOCUMENT_COLLECTION:"faas.document.collection",FAAS_DOCUMENT_OPERATION:"faas.document.operation",FAAS_DOCUMENT_TIME:"faas.document.time",FAAS_DOCUMENT_NAME:"faas.document.name",FAAS_TIME:"faas.time",FAAS_CRON:"faas.cron",FAAS_COLDSTART:"faas.coldstart",FAAS_INVOKED_NAME:"faas.invoked_name",FAAS_INVOKED_PROVIDER:"faas.invoked_provider",FAAS_INVOKED_REGION:"faas.invoked_region",NET_TRANSPORT:"net.transport",NET_PEER_IP:"net.peer.ip",NET_PEER_PORT:"net.peer.port",NET_PEER_NAME:"net.peer.name",NET_HOST_IP:"net.host.ip",NET_HOST_PORT:"net.host.port",NET_HOST_NAME:"net.host.name",NET_HOST_CONNECTION_TYPE:"net.host.connection.type",NET_HOST_CONNECTION_SUBTYPE:"net.host.connection.subtype",NET_HOST_CARRIER_NAME:"net.host.carrier.name",NET_HOST_CARRIER_MCC:"net.host.carrier.mcc",NET_HOST_CARRIER_MNC:"net.host.carrier.mnc",NET_HOST_CARRIER_ICC:"net.host.carrier.icc",PEER_SERVICE:"peer.service",ENDUSER_ID:"enduser.id",ENDUSER_ROLE:"enduser.role",ENDUSER_SCOPE:"enduser.scope",THREAD_ID:"thread.id",THREAD_NAME:"thread.name",CODE_FUNCTION:"code.function",CODE_NAMESPACE:"code.namespace",CODE_FILEPATH:"code.filepath",CODE_LINENO:"code.lineno",HTTP_METHOD:"http.method",HTTP_URL:"http.url",HTTP_TARGET:"http.target",HTTP_HOST:"http.host",HTTP_SCHEME:"http.scheme",HTTP_STATUS_CODE:"http.status_code",HTTP_FLAVOR:"http.flavor",HTTP_USER_AGENT:"http.user_agent",HTTP_REQUEST_CONTENT_LENGTH:"http.request_content_length",HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:"http.request_content_length_uncompressed",HTTP_RESPONSE_CONTENT_LENGTH:"http.response_content_length",HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:"http.response_content_length_uncompressed",HTTP_SERVER_NAME:"http.server_name",HTTP_ROUTE:"http.route",HTTP_CLIENT_IP:"http.client_ip",AWS_DYNAMODB_TABLE_NAMES:"aws.dynamodb.table_names",AWS_DYNAMODB_CONSUMED_CAPACITY:"aws.dynamodb.consumed_capacity",AWS_DYNAMODB_ITEM_COLLECTION_METRICS:"aws.dynamodb.item_collection_metrics",AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:"aws.dynamodb.provisioned_read_capacity",AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:"aws.dynamodb.provisioned_write_capacity",AWS_DYNAMODB_CONSISTENT_READ:"aws.dynamodb.consistent_read",AWS_DYNAMODB_PROJECTION:"aws.dynamodb.projection",AWS_DYNAMODB_LIMIT:"aws.dynamodb.limit",AWS_DYNAMODB_ATTRIBUTES_TO_GET:"aws.dynamodb.attributes_to_get",AWS_DYNAMODB_INDEX_NAME:"aws.dynamodb.index_name",AWS_DYNAMODB_SELECT:"aws.dynamodb.select",AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:"aws.dynamodb.global_secondary_indexes",AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:"aws.dynamodb.local_secondary_indexes",AWS_DYNAMODB_EXCLUSIVE_START_TABLE:"aws.dynamodb.exclusive_start_table",AWS_DYNAMODB_TABLE_COUNT:"aws.dynamodb.table_count",AWS_DYNAMODB_SCAN_FORWARD:"aws.dynamodb.scan_forward",AWS_DYNAMODB_SEGMENT:"aws.dynamodb.segment",AWS_DYNAMODB_TOTAL_SEGMENTS:"aws.dynamodb.total_segments",AWS_DYNAMODB_COUNT:"aws.dynamodb.count",AWS_DYNAMODB_SCANNED_COUNT:"aws.dynamodb.scanned_count",AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:"aws.dynamodb.attribute_definitions",AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:"aws.dynamodb.global_secondary_index_updates",MESSAGING_SYSTEM:"messaging.system",MESSAGING_DESTINATION:"messaging.destination",MESSAGING_DESTINATION_KIND:"messaging.destination_kind",MESSAGING_TEMP_DESTINATION:"messaging.temp_destination",MESSAGING_PROTOCOL:"messaging.protocol",MESSAGING_PROTOCOL_VERSION:"messaging.protocol_version",MESSAGING_URL:"messaging.url",MESSAGING_MESSAGE_ID:"messaging.message_id",MESSAGING_CONVERSATION_ID:"messaging.conversation_id",MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:"messaging.message_payload_size_bytes",MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:"messaging.message_payload_compressed_size_bytes",MESSAGING_OPERATION:"messaging.operation",MESSAGING_CONSUMER_ID:"messaging.consumer_id",MESSAGING_RABBITMQ_ROUTING_KEY:"messaging.rabbitmq.routing_key",MESSAGING_KAFKA_MESSAGE_KEY:"messaging.kafka.message_key",MESSAGING_KAFKA_CONSUMER_GROUP:"messaging.kafka.consumer_group",MESSAGING_KAFKA_CLIENT_ID:"messaging.kafka.client_id",MESSAGING_KAFKA_PARTITION:"messaging.kafka.partition",MESSAGING_KAFKA_TOMBSTONE:"messaging.kafka.tombstone",RPC_SYSTEM:"rpc.system",RPC_SERVICE:"rpc.service",RPC_METHOD:"rpc.method",RPC_GRPC_STATUS_CODE:"rpc.grpc.status_code",RPC_JSONRPC_VERSION:"rpc.jsonrpc.version",RPC_JSONRPC_REQUEST_ID:"rpc.jsonrpc.request_id",RPC_JSONRPC_ERROR_CODE:"rpc.jsonrpc.error_code",RPC_JSONRPC_ERROR_MESSAGE:"rpc.jsonrpc.error_message",MESSAGE_TYPE:"message.type",MESSAGE_ID:"message.id",MESSAGE_COMPRESSED_SIZE:"message.compressed_size",MESSAGE_UNCOMPRESSED_SIZE:"message.uncompressed_size"},SemanticResourceAttributes={CLOUD_PROVIDER:"cloud.provider",CLOUD_ACCOUNT_ID:"cloud.account.id",CLOUD_REGION:"cloud.region",CLOUD_AVAILABILITY_ZONE:"cloud.availability_zone",CLOUD_PLATFORM:"cloud.platform",AWS_ECS_CONTAINER_ARN:"aws.ecs.container.arn",AWS_ECS_CLUSTER_ARN:"aws.ecs.cluster.arn",AWS_ECS_LAUNCHTYPE:"aws.ecs.launchtype",AWS_ECS_TASK_ARN:"aws.ecs.task.arn",AWS_ECS_TASK_FAMILY:"aws.ecs.task.family",AWS_ECS_TASK_REVISION:"aws.ecs.task.revision",AWS_EKS_CLUSTER_ARN:"aws.eks.cluster.arn",AWS_LOG_GROUP_NAMES:"aws.log.group.names",AWS_LOG_GROUP_ARNS:"aws.log.group.arns",AWS_LOG_STREAM_NAMES:"aws.log.stream.names",AWS_LOG_STREAM_ARNS:"aws.log.stream.arns",CONTAINER_NAME:"container.name",CONTAINER_ID:"container.id",CONTAINER_RUNTIME:"container.runtime",CONTAINER_IMAGE_NAME:"container.image.name",CONTAINER_IMAGE_TAG:"container.image.tag",DEPLOYMENT_ENVIRONMENT:"deployment.environment",DEVICE_ID:"device.id",DEVICE_MODEL_IDENTIFIER:"device.model.identifier",DEVICE_MODEL_NAME:"device.model.name",FAAS_NAME:"faas.name",FAAS_ID:"faas.id",FAAS_VERSION:"faas.version",FAAS_INSTANCE:"faas.instance",FAAS_MAX_MEMORY:"faas.max_memory",HOST_ID:"host.id",HOST_NAME:"host.name",HOST_TYPE:"host.type",HOST_ARCH:"host.arch",HOST_IMAGE_NAME:"host.image.name",HOST_IMAGE_ID:"host.image.id",HOST_IMAGE_VERSION:"host.image.version",K8S_CLUSTER_NAME:"k8s.cluster.name",K8S_NODE_NAME:"k8s.node.name",K8S_NODE_UID:"k8s.node.uid",K8S_NAMESPACE_NAME:"k8s.namespace.name",K8S_POD_UID:"k8s.pod.uid",K8S_POD_NAME:"k8s.pod.name",K8S_CONTAINER_NAME:"k8s.container.name",K8S_REPLICASET_UID:"k8s.replicaset.uid",K8S_REPLICASET_NAME:"k8s.replicaset.name",K8S_DEPLOYMENT_UID:"k8s.deployment.uid",K8S_DEPLOYMENT_NAME:"k8s.deployment.name",K8S_STATEFULSET_UID:"k8s.statefulset.uid",K8S_STATEFULSET_NAME:"k8s.statefulset.name",K8S_DAEMONSET_UID:"k8s.daemonset.uid",K8S_DAEMONSET_NAME:"k8s.daemonset.name",K8S_JOB_UID:"k8s.job.uid",K8S_JOB_NAME:"k8s.job.name",K8S_CRONJOB_UID:"k8s.cronjob.uid",K8S_CRONJOB_NAME:"k8s.cronjob.name",OS_TYPE:"os.type",OS_DESCRIPTION:"os.description",OS_NAME:"os.name",OS_VERSION:"os.version",PROCESS_PID:"process.pid",PROCESS_EXECUTABLE_NAME:"process.executable.name",PROCESS_EXECUTABLE_PATH:"process.executable.path",PROCESS_COMMAND:"process.command",PROCESS_COMMAND_LINE:"process.command_line",PROCESS_COMMAND_ARGS:"process.command_args",PROCESS_OWNER:"process.owner",PROCESS_RUNTIME_NAME:"process.runtime.name",PROCESS_RUNTIME_VERSION:"process.runtime.version",PROCESS_RUNTIME_DESCRIPTION:"process.runtime.description",SERVICE_NAME:"service.name",SERVICE_NAMESPACE:"service.namespace",SERVICE_INSTANCE_ID:"service.instance.id",SERVICE_VERSION:"service.version",TELEMETRY_SDK_NAME:"telemetry.sdk.name",TELEMETRY_SDK_LANGUAGE:"telemetry.sdk.language",TELEMETRY_SDK_VERSION:"telemetry.sdk.version",TELEMETRY_AUTO_VERSION:"telemetry.auto.version",WEBENGINE_NAME:"webengine.name",WEBENGINE_VERSION:"webengine.version",WEBENGINE_DESCRIPTION:"webengine.description"},NANOSECOND_DIGITS=9,SECOND_TO_NANOSECONDS=Math.pow(10,NANOSECOND_DIGITS);function hrTimeToNanoseconds(ht){return ht[0]*SECOND_TO_NANOSECONDS+ht[1]}var ExportResultCode;(function(ht){ht[ht.SUCCESS=0]="SUCCESS",ht[ht.FAILED=1]="FAILED"})(ExportResultCode||(ExportResultCode={}));var Deferred=function(){function ht(){var Et=this;this._promise=new Promise(function(yt,Ct){Et._resolve=yt,Et._reject=Ct})}return Object.defineProperty(ht.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),ht.prototype.resolve=function(Et){this._resolve(Et)},ht.prototype.reject=function(Et){this._reject(Et)},ht}(),__read$4=function(ht,Et){var yt=typeof Symbol=="function"&&ht[Symbol.iterator];if(!yt)return ht;var Ct=yt.call(ht),$t,At=[],Bt;try{for(;(Et===void 0||Et-- >0)&&!($t=Ct.next()).done;)At.push($t.value)}catch(Dt){Bt={error:Dt}}finally{try{$t&&!$t.done&&(yt=Ct.return)&&yt.call(Ct)}finally{if(Bt)throw Bt.error}}return At},__spreadArray=function(ht,Et,yt){if(yt||arguments.length===2)for(var Ct=0,$t=Et.length,At;Ct<$t;Ct++)(At||!(Ct in Et))&&(At||(At=Array.prototype.slice.call(Et,0,Ct)),At[Ct]=Et[Ct]);return ht.concat(At||Array.prototype.slice.call(Et))},BindOnceFuture=function(){function ht(Et,yt){this._callback=Et,this._that=yt,this._isCalled=!1,this._deferred=new Deferred}return Object.defineProperty(ht.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(ht.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),ht.prototype.call=function(){for(var Et,yt=this,Ct=[],$t=0;$t<arguments.length;$t++)Ct[$t]=arguments[$t];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((Et=this._callback).call.apply(Et,__spreadArray([this._that],__read$4(Ct),!1))).then(function(At){return yt._deferred.resolve(At)},function(At){return yt._deferred.reject(At)})}catch(At){this._deferred.reject(At)}}return this._deferred.promise},ht}(),__read$3=function(ht,Et){var yt=typeof Symbol=="function"&&ht[Symbol.iterator];if(!yt)return ht;var Ct=yt.call(ht),$t,At=[],Bt;try{for(;(Et===void 0||Et-- >0)&&!($t=Ct.next()).done;)At.push($t.value)}catch(Dt){Bt={error:Dt}}finally{try{$t&&!$t.done&&(yt=Ct.return)&&yt.call(Ct)}finally{if(Bt)throw Bt.error}}return At},DEFAULT_TRACE_TIMEOUT=1e4,DEFAULT_EXPORT_MAX_ATTEMPTS=5,DEFAULT_EXPORT_INITIAL_BACKOFF=1e3,DEFAULT_EXPORT_MAX_BACKOFF=5e3,DEFAULT_EXPORT_BACKOFF_MULTIPLIER=1.5;function parseHeaders(ht){ht===void 0&&(ht={});var Et={};return Object.entries(ht).forEach(function(yt){var Ct=__read$3(yt,2),$t=Ct[0],At=Ct[1];typeof At<"u"?Et[$t]=String(At):diag.warn('Header "'+$t+'" has wrong value and will be ignored')}),Et}function appendResourcePathToUrl(ht,Et){return ht.endsWith("/")||(ht=ht+"/"),ht+Et}function appendRootPathToUrlIfNeeded(ht){try{var Et=new URL(ht);return Et.pathname===""&&(Et.pathname=Et.pathname+"/"),Et.toString()}catch{return diag.warn("Could not parse export URL: '"+ht+"'"),ht}}function configureExporterTimeout(ht){return typeof ht=="number"?ht<=0?invalidTimeout(ht,DEFAULT_TRACE_TIMEOUT):ht:getExporterTimeoutFromEnv()}function getExporterTimeoutFromEnv(){var ht,Et=Number((ht=getEnv().OTEL_EXPORTER_OTLP_TRACES_TIMEOUT)!==null&&ht!==void 0?ht:getEnv().OTEL_EXPORTER_OTLP_TIMEOUT);return Et<=0?invalidTimeout(Et,DEFAULT_TRACE_TIMEOUT):Et}function invalidTimeout(ht,Et){return diag.warn("Timeout must be greater than 0",ht),Et}function isExportRetryable(ht){var Et=[429,502,503,504];return Et.includes(ht)}function parseRetryAfterToMills(ht){if(ht==null)return-1;var Et=Number.parseInt(ht,10);if(Number.isInteger(Et))return Et>0?Et*1e3:-1;var yt=new Date(ht).getTime()-Date.now();return yt>=0?yt:0}var OTLPExporterBase=function(){function ht(Et){Et===void 0&&(Et={}),this._sendingPromises=[],this.url=this.getDefaultUrl(Et),typeof Et.hostname=="string"&&(this.hostname=Et.hostname),this.shutdown=this.shutdown.bind(this),this._shutdownOnce=new BindOnceFuture(this._shutdown,this),this._concurrencyLimit=typeof Et.concurrencyLimit=="number"?Et.concurrencyLimit:30,this.timeoutMillis=configureExporterTimeout(Et.timeoutMillis),this.onInit(Et)}return ht.prototype.export=function(Et,yt){if(this._shutdownOnce.isCalled){yt({code:ExportResultCode.FAILED,error:new Error("Exporter has been shutdown")});return}if(this._sendingPromises.length>=this._concurrencyLimit){yt({code:ExportResultCode.FAILED,error:new Error("Concurrent export limit reached")});return}this._export(Et).then(function(){yt({code:ExportResultCode.SUCCESS})}).catch(function(Ct){yt({code:ExportResultCode.FAILED,error:Ct})})},ht.prototype._export=function(Et){var yt=this;return new Promise(function(Ct,$t){try{diag.debug("items to be sent",Et),yt.send(Et,Ct,$t)}catch(At){$t(At)}})},ht.prototype.shutdown=function(){return this._shutdownOnce.call()},ht.prototype.forceFlush=function(){return Promise.all(this._sendingPromises).then(function(){})},ht.prototype._shutdown=function(){return diag.debug("shutdown started"),this.onShutdown(),this.forceFlush()},ht}(),__extends$5=function(){var ht=function(Et,yt){return ht=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ct,$t){Ct.__proto__=$t}||function(Ct,$t){for(var At in $t)Object.prototype.hasOwnProperty.call($t,At)&&(Ct[At]=$t[At])},ht(Et,yt)};return function(Et,yt){if(typeof yt!="function"&&yt!==null)throw new TypeError("Class extends value "+String(yt)+" is not a constructor or null");ht(Et,yt);function Ct(){this.constructor=Et}Et.prototype=yt===null?Object.create(yt):(Ct.prototype=yt.prototype,new Ct)}}(),OTLPExporterError=function(ht){__extends$5(Et,ht);function Et(yt,Ct,$t){var At=ht.call(this,yt)||this;return At.name="OTLPExporterError",At.data=$t,At.code=Ct,At}return Et}(Error),__assign$2=function(){return __assign$2=Object.assign||function(ht){for(var Et,yt=1,Ct=arguments.length;yt<Ct;yt++){Et=arguments[yt];for(var $t in Et)Object.prototype.hasOwnProperty.call(Et,$t)&&(ht[$t]=Et[$t])}return ht},__assign$2.apply(this,arguments)},__read$2=function(ht,Et){var yt=typeof Symbol=="function"&&ht[Symbol.iterator];if(!yt)return ht;var Ct=yt.call(ht),$t,At=[],Bt;try{for(;(Et===void 0||Et-- >0)&&!($t=Ct.next()).done;)At.push($t.value)}catch(Dt){Bt={error:Dt}}finally{try{$t&&!$t.done&&(yt=Ct.return)&&yt.call(Ct)}finally{if(Bt)throw Bt.error}}return At};function sendWithBeacon(ht,Et,yt,Ct,$t){if(navigator.sendBeacon(Et,new Blob([ht],yt)))diag.debug("sendBeacon - can send",ht),Ct();else{var At=new OTLPExporterError("sendBeacon - cannot send "+ht);$t(At)}}function sendWithXhr(ht,Et,yt,Ct,$t,At){var Bt,Dt,Ft=!1,kt=setTimeout(function(){if(clearTimeout(Bt),Ft=!0,Dt.readyState===XMLHttpRequest.DONE){var Nt=new OTLPExporterError("Request Timeout");At(Nt)}else Dt.abort()},Ct),Mt=function(Nt,jt){Nt===void 0&&(Nt=DEFAULT_EXPORT_MAX_ATTEMPTS),jt===void 0&&(jt=DEFAULT_EXPORT_INITIAL_BACKOFF),Dt=new XMLHttpRequest,Dt.open("POST",Et);var zt={Accept:"application/json","Content-Type":"application/json"};Object.entries(__assign$2(__assign$2({},zt),yt)).forEach(function(Vt){var Kt=__read$2(Vt,2),Xt=Kt[0],Qt=Kt[1];Dt.setRequestHeader(Xt,Qt)}),Dt.send(ht),Dt.onreadystatechange=function(){if(Dt.readyState===XMLHttpRequest.DONE&&Ft===!1)if(Dt.status>=200&&Dt.status<=299)diag.debug("xhr success",ht),$t(),clearTimeout(kt),clearTimeout(Bt);else if(Dt.status&&isExportRetryable(Dt.status)&&Nt>0){var Vt=void 0;jt=DEFAULT_EXPORT_BACKOFF_MULTIPLIER*jt,Dt.getResponseHeader("Retry-After")?Vt=parseRetryAfterToMills(Dt.getResponseHeader("Retry-After")):Vt=Math.round(Math.random()*(DEFAULT_EXPORT_MAX_BACKOFF-jt)+jt),Bt=setTimeout(function(){Mt(Nt-1,jt)},Vt)}else{var Kt=new OTLPExporterError("Failed to export with XHR (status: "+Dt.status+")",Dt.status);At(Kt),clearTimeout(kt),clearTimeout(Bt)}},Dt.onabort=function(){if(Ft){var Vt=new OTLPExporterError("Request Timeout");At(Vt)}clearTimeout(kt),clearTimeout(Bt)},Dt.onerror=function(){if(Ft){var Vt=new OTLPExporterError("Request Timeout");At(Vt)}clearTimeout(kt),clearTimeout(Bt)}};Mt()}var __extends$4=function(){var ht=function(Et,yt){return ht=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ct,$t){Ct.__proto__=$t}||function(Ct,$t){for(var At in $t)Object.prototype.hasOwnProperty.call($t,At)&&(Ct[At]=$t[At])},ht(Et,yt)};return function(Et,yt){if(typeof yt!="function"&&yt!==null)throw new TypeError("Class extends value "+String(yt)+" is not a constructor or null");ht(Et,yt);function Ct(){this.constructor=Et}Et.prototype=yt===null?Object.create(yt):(Ct.prototype=yt.prototype,new Ct)}}(),OTLPExporterBrowserBase=function(ht){__extends$4(Et,ht);function Et(yt){yt===void 0&&(yt={});var Ct=ht.call(this,yt)||this;return Ct._useXHR=!1,Ct._useXHR=!!yt.headers||typeof navigator.sendBeacon!="function",Ct._useXHR?Ct._headers=Object.assign({},parseHeaders(yt.headers),parseKeyPairsIntoRecord(getEnv().OTEL_EXPORTER_OTLP_HEADERS)):Ct._headers={},Ct}return Et.prototype.onInit=function(){_globalThis.addEventListener("unload",this.shutdown)},Et.prototype.onShutdown=function(){_globalThis.removeEventListener("unload",this.shutdown)},Et.prototype.send=function(yt,Ct,$t){var At=this;if(this._shutdownOnce.isCalled){diag.debug("Shutdown already started. Cannot send objects");return}var Bt=this.convert(yt),Dt=JSON.stringify(Bt),Ft=new Promise(function(Mt,Nt){At._useXHR?sendWithXhr(Dt,At.url,At._headers,At.timeoutMillis,Mt,Nt):sendWithBeacon(Dt,At.url,{type:"application/json"},Mt,Nt)}).then(Ct,$t);this._sendingPromises.push(Ft);var kt=function(){var Mt=At._sendingPromises.indexOf(Ft);At._sendingPromises.splice(Mt,1)};Ft.then(kt,kt)},Et}(OTLPExporterBase),NANOSECONDS=BigInt(1e9);function hrTimeToNanos(ht){return BigInt(ht[0])*NANOSECONDS+BigInt(ht[1])}function toLongBits(ht){var Et=Number(BigInt.asUintN(32,ht)),yt=Number(BigInt.asUintN(32,ht>>BigInt(32)));return{low:Et,high:yt}}function encodeAsLongBits(ht){var Et=hrTimeToNanos(ht);return toLongBits(Et)}function encodeAsString(ht){var Et=hrTimeToNanos(ht);return Et.toString()}var encodeTimestamp=typeof BigInt<"u"?encodeAsString:hrTimeToNanoseconds;function identity(ht){return ht}function optionalHexToBinary(ht){if(ht!==void 0)return hexToBinary(ht)}var DEFAULT_ENCODER={encodeHrTime:encodeAsLongBits,encodeSpanContext:hexToBinary,encodeOptionalSpanContext:optionalHexToBinary};function getOtlpEncoder(ht){var Et,yt;if(ht===void 0)return DEFAULT_ENCODER;var Ct=(Et=ht.useLongBits)!==null&&Et!==void 0?Et:!0,$t=(yt=ht.useHex)!==null&&yt!==void 0?yt:!1;return{encodeHrTime:Ct?encodeAsLongBits:encodeTimestamp,encodeSpanContext:$t?identity:hexToBinary,encodeOptionalSpanContext:$t?identity:optionalHexToBinary}}var __read$1=function(ht,Et){var yt=typeof Symbol=="function"&&ht[Symbol.iterator];if(!yt)return ht;var Ct=yt.call(ht),$t,At=[],Bt;try{for(;(Et===void 0||Et-- >0)&&!($t=Ct.next()).done;)At.push($t.value)}catch(Dt){Bt={error:Dt}}finally{try{$t&&!$t.done&&(yt=Ct.return)&&yt.call(Ct)}finally{if(Bt)throw Bt.error}}return At};function toAttributes(ht){return Object.keys(ht).map(function(Et){return toKeyValue(Et,ht[Et])})}function toKeyValue(ht,Et){return{key:ht,value:toAnyValue(Et)}}function toAnyValue(ht){var Et=typeof ht;return Et==="string"?{stringValue:ht}:Et==="number"?Number.isInteger(ht)?{intValue:ht}:{doubleValue:ht}:Et==="boolean"?{boolValue:ht}:ht instanceof Uint8Array?{bytesValue:ht}:Array.isArray(ht)?{arrayValue:{values:ht.map(toAnyValue)}}:Et==="object"&&ht!=null?{kvlistValue:{values:Object.entries(ht).map(function(yt){var Ct=__read$1(yt,2),$t=Ct[0],At=Ct[1];return toKeyValue($t,At)})}}:{}}function sdkSpanToOtlpSpan(ht,Et){var yt,Ct=ht.spanContext(),$t=ht.status;return{traceId:Et.encodeSpanContext(Ct.traceId),spanId:Et.encodeSpanContext(Ct.spanId),parentSpanId:Et.encodeOptionalSpanContext(ht.parentSpanId),traceState:(yt=Ct.traceState)===null||yt===void 0?void 0:yt.serialize(),name:ht.name,kind:ht.kind==null?0:ht.kind+1,startTimeUnixNano:Et.encodeHrTime(ht.startTime),endTimeUnixNano:Et.encodeHrTime(ht.endTime),attributes:toAttributes(ht.attributes),droppedAttributesCount:ht.droppedAttributesCount,events:ht.events.map(function(At){return toOtlpSpanEvent(At,Et)}),droppedEventsCount:ht.droppedEventsCount,status:{code:$t.code,message:$t.message},links:ht.links.map(function(At){return toOtlpLink(At,Et)}),droppedLinksCount:ht.droppedLinksCount}}function toOtlpLink(ht,Et){var yt;return{attributes:ht.attributes?toAttributes(ht.attributes):[],spanId:Et.encodeSpanContext(ht.context.spanId),traceId:Et.encodeSpanContext(ht.context.traceId),traceState:(yt=ht.context.traceState)===null||yt===void 0?void 0:yt.serialize(),droppedAttributesCount:ht.droppedAttributesCount||0}}function toOtlpSpanEvent(ht,Et){return{attributes:ht.attributes?toAttributes(ht.attributes):[],name:ht.name,timeUnixNano:Et.encodeHrTime(ht.time),droppedAttributesCount:ht.droppedAttributesCount||0}}var __values=function(ht){var Et=typeof Symbol=="function"&&Symbol.iterator,yt=Et&&ht[Et],Ct=0;if(yt)return yt.call(ht);if(ht&&typeof ht.length=="number")return{next:function(){return ht&&Ct>=ht.length&&(ht=void 0),{value:ht&&ht[Ct++],done:!ht}}};throw new TypeError(Et?"Object is not iterable.":"Symbol.iterator is not defined.")},__read=function(ht,Et){var yt=typeof Symbol=="function"&&ht[Symbol.iterator];if(!yt)return ht;var Ct=yt.call(ht),$t,At=[],Bt;try{for(;(Et===void 0||Et-- >0)&&!($t=Ct.next()).done;)At.push($t.value)}catch(Dt){Bt={error:Dt}}finally{try{$t&&!$t.done&&(yt=Ct.return)&&yt.call(Ct)}finally{if(Bt)throw Bt.error}}return At};function createExportTraceServiceRequest(ht,Et){var yt=getOtlpEncoder(Et);return{resourceSpans:spanRecordsToResourceSpans(ht,yt)}}function createResourceMap(ht){var Et,yt,Ct=new Map;try{for(var $t=__values(ht),At=$t.next();!At.done;At=$t.next()){var Bt=At.value,Dt=Ct.get(Bt.resource);Dt||(Dt=new Map,Ct.set(Bt.resource,Dt));var Ft=Bt.instrumentationLibrary.name+"@"+(Bt.instrumentationLibrary.version||"")+":"+(Bt.instrumentationLibrary.schemaUrl||""),kt=Dt.get(Ft);kt||(kt=[],Dt.set(Ft,kt)),kt.push(Bt)}}catch(Mt){Et={error:Mt}}finally{try{At&&!At.done&&(yt=$t.return)&&yt.call($t)}finally{if(Et)throw Et.error}}return Ct}function spanRecordsToResourceSpans(ht,Et){for(var yt=createResourceMap(ht),Ct=[],$t=yt.entries(),At=$t.next();!At.done;){for(var Bt=__read(At.value,2),Dt=Bt[0],Ft=Bt[1],kt=[],Mt=Ft.values(),Nt=Mt.next();!Nt.done;){var jt=Nt.value;if(jt.length>0){var zt=jt[0].instrumentationLibrary,Vt=zt.name,Kt=zt.version,Xt=zt.schemaUrl,Qt=jt.map(function(dr){return sdkSpanToOtlpSpan(dr,Et)});kt.push({scope:{name:Vt,version:Kt},spans:Qt,schemaUrl:Xt})}Nt=Mt.next()}var Zt={resource:{attributes:toAttributes(Dt.attributes),droppedAttributesCount:0},scopeSpans:kt,schemaUrl:void 0};Ct.push(Zt),At=$t.next()}return Ct}var __extends$3=function(){var ht=function(Et,yt){return ht=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ct,$t){Ct.__proto__=$t}||function(Ct,$t){for(var At in $t)Object.prototype.hasOwnProperty.call($t,At)&&(Ct[At]=$t[At])},ht(Et,yt)};return function(Et,yt){if(typeof yt!="function"&&yt!==null)throw new TypeError("Class extends value "+String(yt)+" is not a constructor or null");ht(Et,yt);function Ct(){this.constructor=Et}Et.prototype=yt===null?Object.create(yt):(Ct.prototype=yt.prototype,new Ct)}}(),DEFAULT_COLLECTOR_RESOURCE_PATH="v1/traces",DEFAULT_COLLECTOR_URL="http://localhost:4318/"+DEFAULT_COLLECTOR_RESOURCE_PATH,OTLPTraceExporter=function(ht){__extends$3(Et,ht);function Et(yt){yt===void 0&&(yt={});var Ct=ht.call(this,yt)||this;return Ct._headers=Object.assign(Ct._headers,parseKeyPairsIntoRecord(getEnv().OTEL_EXPORTER_OTLP_TRACES_HEADERS)),Ct}return Et.prototype.convert=function(yt){return createExportTraceServiceRequest(yt,{useHex:!0,useLongBits:!1})},Et.prototype.getDefaultUrl=function(yt){return typeof yt.url=="string"?yt.url:getEnv().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT.length>0?appendRootPathToUrlIfNeeded(getEnv().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT):getEnv().OTEL_EXPORTER_OTLP_ENDPOINT.length>0?appendResourcePathToUrl(getEnv().OTEL_EXPORTER_OTLP_ENDPOINT,DEFAULT_COLLECTOR_RESOURCE_PATH):DEFAULT_COLLECTOR_URL},Et}(OTLPExporterBrowserBase);const collectorOptions={url:"https://telemetry.blocksec.com/api/v1/otlp/traces",concurrencyLimit:10},provider=new WebTracerProvider({resource:new Resource({[SemanticResourceAttributes.SERVICE_NAME]:"dashboard",[SemanticResourceAttributes.SERVICE_VERSION]:"0.1.0"})}),exporter=new OTLPTraceExporter(collectorOptions);provider.addSpanProcessor(new SimpleSpanProcessor(exporter));provider.register({contextManager:new ZoneContextManager});registerInstrumentations({instrumentations:[]});const tracer=opentelemetry.trace.getTracer("instrumentation-scope-name","instrumentation-scope-version");function trace(ht,Et={events:[],attrs:[]}){return tracer.startActiveSpan("production",yt=>{var Ct,$t;yt.setStatus({code:SpanStatusCode.ERROR,message:ht}),yt.setAttribute(SemanticAttributes.MESSAGING_URL,window.location.pathname),(Ct=Et.attrs)==null||Ct.forEach(({key:At,value:Bt})=>{yt.setAttribute(At,Bt)}),($t=Et.events)==null||$t.forEach(({name:At,message:Bt})=>{yt.addEvent(At,{message:Bt},new Date)}),yt.end()})}const contextValue={trace,tracer},TraceContext=reactExports.createContext(contextValue);function TraceProvider({children:ht}){return jsxRuntimeExports.jsx(TraceContext.Provider,{value:contextValue,children:ht})}const errorBoundary="_errorBoundary_15jeo_1",title$2="_title_15jeo_11",subTitle="_subTitle_15jeo_17",styles$g={errorBoundary,title:title$2,subTitle},Gs=class Gs extends reactExports.PureComponent{constructor(Et){super(Et),this.state={hasError:!1}}componentDidCatch(Et,yt){console.log(Et,yt),!/t.on is not a function | MetaMask provider must be present in order to use this method/.test(Et.message)&&this.setState({hasError:!0},()=>{var $t;($t=this.context)==null||$t.trace("Error Boundary",{events:[{name:Et.message,message:yt.componentStack}]})})}render(){return this.state.hasError?this.props.message??jsxRuntimeExports.jsxs("div",{className:styles$g.errorBoundary,children:[jsxRuntimeExports.jsx("img",{src:"https://assets.blocksec.com/image/1664247732928-2.png",alt:""}),jsxRuntimeExports.jsx("div",{className:styles$g.title,children:"Oops... An Error Occurred!"}),jsxRuntimeExports.jsxs("div",{className:styles$g.subTitle,children:["Report this issue to us (X:",jsxRuntimeExports.jsx("a",{href:"https://twitter.com/blocksecteam",target:"_blank",rel:"noopener noreferrer",children:" BlockSecTeam"}),") if it still does not work."]})]}):this.props.children}};Gs.contextType=TraceContext;let ErrorBound=Gs;const container$7="_container_1qdtk_1",labelIcon="_labelIcon_1qdtk_10",labelText="_labelText_1qdtk_13",input="_input_1qdtk_20",styles$f={container:container$7,labelIcon,labelText,input},EditableInput=({className:ht,maxWidth:Et=160,defaultValue:yt,empty:Ct,color:$t,onConfirm:At})=>{const[Bt,Dt]=reactExports.useState(!1),[Ft,kt]=reactExports.useState(""),Mt=()=>{Dt(!0)},Nt=()=>{if(!Ft.trim()||Ft===yt)return Dt(!0);At(Ft),Dt(!1)},jt=()=>{Dt(!1),kt(yt??"")};return reactExports.useEffect(()=>{yt&&kt(yt)},[yt]),!yt&&Ct&&!Bt?jsxRuntimeExports.jsx("div",{onClick:()=>Dt(!0),style:{width:"fit-content"},children:Ct}):jsxRuntimeExports.jsxs("div",{className:cls(styles$f.container,ht),style:{color:$t},children:[Bt?jsxRuntimeExports.jsx(Input,{className:styles$f.input,maxLength:30,size:"small",value:Ft,onPressEnter:()=>{Nt()},onChange:zt=>{kt(zt.target.value)}}):jsxRuntimeExports.jsx("div",{className:cls(styles$f.labelText),style:{maxWidth:`${Et}px`},title:Ft,children:Ft}),Bt?jsxRuntimeExports.jsxs(Space,{children:[jsxRuntimeExports.jsx("span",{children:jsxRuntimeExports.jsx(Iconfont,{onClick:Nt,className:cls(styles$f.labelIcon),type:"icon-check",color:"#1c9a4b",size:14})}),jsxRuntimeExports.jsx(Iconfont,{onClick:jt,className:cls(styles$f.labelIcon),type:"icon-close-outlined",color:"#f64e30",size:14})]}):jsxRuntimeExports.jsx(Iconfont,{onClick:Mt,className:cls(styles$f.labelIcon),type:"icon-rename",size:14})]})},EditableInput$1=observer(EditableInput),table$3="_table_13u9s_1",method$5="_method_13u9s_4",styles$e={table:table$3,method:method$5},getColumns=({forkId:ht,chainId:Et,address:yt,refresh:Ct})=>{var Bt;const $t=!isNil(Et)&&NetworkUtils.getSimpleNameByChainId(Et,!0),At=!isNil(Et)&&((Bt=NetworkUtils.getNativeCurrencyByChainId(Et))==null?void 0:Bt.symbol);return[{title:"Txn Hash",dataIndex:"txnHash",key:"txnHash",render:(Dt,{txnHash:Ft,status:kt,id:Mt,note:Nt})=>jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center",children:[!kt&&jsxRuntimeExports.jsx(Iconfont,{type:"icon-info",color:"#f5365c",mr:4}),jsxRuntimeExports.jsx(CopyButton,{text:Ft,hover:!0,children:jsxRuntimeExports.jsx(Tooltip,{title:Ft,children:jsxRuntimeExports.jsx(Link,{to:`${DOMAIN}/explorer/tx/${$t}/${Ft}?event=fork&forkId=${ht}`,target:"_blank",style:{maxWidth:140,display:"inline-block"},className:"truncate font-medium text-inherit hover:underline",children:jsxRuntimeExports.jsx("code",{children:Ft})})})})]}),jsxRuntimeExports.jsx(EditableInput$1,{color:"#9CA3AF",empty:jsxRuntimeExports.jsx("span",{style:{color:"#9CA3AF"},className:"cursor-pointer",children:"+ Add Note"}),defaultValue:Nt,onConfirm:async jt=>{const{success:zt,msg:Vt}=await commonApi.setTransactionNote({forkId:ht,transactionId:Mt,note:jt});zt?Ct==null||Ct():B.error(Vt)}})]})},{title:"Method",dataIndex:"method",key:"method",render:(Dt,Ft)=>jsxRuntimeExports.jsx(Tooltip,{title:(Ft==null?void 0:Ft.signature)??Dt,children:jsxRuntimeExports.jsx("span",{className:styles$e.method,children:(Ft==null?void 0:Ft.signature)??Dt})})},{title:"Block",dataIndex:"block",key:"block"},{title:"Sent (UTC)",dataIndex:"sent",key:"sent"},{title:"From",dataIndex:"from",key:"from",width:200,render:(Dt,Ft)=>jsxRuntimeExports.jsx("div",{className:"flex items-center",children:jsxRuntimeExports.jsx(CopyButton,{text:Dt,hover:!0,children:jsxRuntimeExports.jsx(Tooltip,{title:Dt,children:yt===Dt.toLowerCase()?jsxRuntimeExports.jsx("span",{children:(Ft==null?void 0:Ft.fromLabel)??jsxRuntimeExports.jsx("code",{children:getSubStr(Dt,[8])})}):jsxRuntimeExports.jsx(Link,{to:`/fork/${ht}/address/${Dt.toLowerCase()}`,className:"font-medium text-default hover:underline",children:(Ft==null?void 0:Ft.fromLabel)??jsxRuntimeExports.jsx("code",{children:getSubStr(Dt,[8])})})})})})},{title:"To",dataIndex:"to",key:"to",width:200,render:(Dt,Ft)=>jsxRuntimeExports.jsxs("div",{className:"flex items-center",children:[Ft.toIsContract&&jsxRuntimeExports.jsx(Tooltip,{title:"Contract",children:jsxRuntimeExports.jsx(Iconfont,{type:"icon-order",mr:2})}),jsxRuntimeExports.jsx(CopyButton,{text:Dt,hover:!0,children:jsxRuntimeExports.jsx(Tooltip,{title:Dt,children:yt===Dt.toLowerCase()?jsxRuntimeExports.jsx("span",{children:(Ft==null?void 0:Ft.toLabel)??jsxRuntimeExports.jsx("code",{children:getSubStr(Dt,[6])})}):jsxRuntimeExports.jsx(Link,{to:`/fork/${ht}/address/${Dt.toLowerCase()}`,className:"font-medium text-default hover:underline",children:(Ft==null?void 0:Ft.toLabel)??jsxRuntimeExports.jsx("code",{children:getSubStr(Dt,[6])})})})})]})},{title:`Value (${At})`,dataIndex:"value",key:"value",render:Dt=>Dt&&numFormatter(formatEther(Dt))},{title:`Txn Fee (${At})`,dataIndex:"txnFee",key:"txnFee",render:Dt=>Dt&&numFormatter(formatEther(Dt))}]};let Store$6=class{constructor(){this.txns=[],this.page=1,this.pageSize=10,this.loading=!0,this.total=0,this.setLoading=Et=>{this.loading=Et},this.getTransactionList=async(Et,yt)=>{this.setLoading(!0);const{success:Ct,data:$t}=await commonApi.getChainForkTxnList({forkId:Et,address:yt,page:this.page,pageSize:this.pageSize});this.setLoading(!1),Ct&&runInAction(()=>{this.total=$t.count,this.txns=$t.list.map(At=>({...At,from:toChecksumAddress(At.from),to:toChecksumAddress(At.to)}))})},this.setPagination=Et=>{this.page=Et.page,this.pageSize=Et.pageSize},makeAutoObservable(this)}};const TransactionTable=(ht,Et)=>{const{forkId:yt,chainId:Ct,address:$t,className:At,style:Bt}=ht,Dt=useLocalObservable(()=>new Store$6),{page:Ft,pageSize:kt,loading:Mt,txns:Nt,total:jt,getTransactionList:zt,setPagination:Vt}=Dt;return reactExports.useEffect(()=>{yt&&zt(yt,$t)},[yt,$t,Ft,kt]),reactExports.useImperativeHandle(Et,()=>({refresh(){yt&&zt(yt,$t)}})),jsxRuntimeExports.jsx(ForwardTable,{loading:Mt,bordered:!1,dataSource:Nt,columns:getColumns({address:$t,forkId:yt,chainId:Ct,refresh:()=>zt(yt,$t)}),scroll:{x:1150},pagination:jt>10?{total:jt,position:["bottomRight"],showSizeChanger:!0,defaultPageSize:10,onChange:(Kt,Xt)=>Vt({page:Kt,pageSize:Xt})}:!1,rowKey:"txnHash",className:cls(styles$e.table,At),style:Bt})},TransactionTable$1=observer(reactExports.forwardRef(TransactionTable));let Store$5=class{constructor(){this.loading=!1,this.tag="#4DC3E2",this.resetTag=()=>{this.tag="#4DC3E2"},this.setLoading=Et=>{this.loading=Et},this.setTag=Et=>{this.tag=Et},this.handleCreate=async(Et,yt)=>{this.setLoading(!0);const{success:Ct,msg:$t}=await commonApi.createSnapshot(Et,{name:yt,tag:this.tag});return this.setLoading(!1),new Promise((At,Bt)=>{Ct?At(!0):(B.error($t),Bt())})},makeAutoObservable(this)}};const container$6="_container_4r0lu_1",value="_value_4r0lu_7",tag="_tag_4r0lu_11",selected_dark="_selected_dark_4r0lu_20",selected_light="_selected_light_4r0lu_23",styles$d={container:container$6,value,tag,selected_dark,selected_light},COLORS=["#4DC3E2","#6495ED","#58A3E4","#936FDB","#8478E3","#AD76E3","#6083E3","#CC3434","#DB7093","#F06C71","#EE906F","#DF8C22","#EBB46E","#E9D46B","#FFEB80","#CCDF6B","#9ACD32","#8FBC8B","#A5DF6C","#55975F","#2ED56B","#27BEC8"],ModalCreateFork=({visible:ht,onClose:Et,onSuccess:yt,currentChainFork:Ct})=>{const{mode:$t}=reactExports.useContext(ThemeContext),At=useLocalObservable(()=>new Store$5),{loading:Bt,tag:Dt,setLoading:Ft,resetTag:kt,handleCreate:Mt,setTag:Nt}=At,[jt]=Form.useForm(),zt=()=>{Et(),Ft(!1)},Vt=debounce$3(()=>{jt.validateFields().then(Kt=>{Mt(Ct.id,Kt.name).then(()=>{yt==null||yt(),Et()})})},300);return reactExports.useEffect(()=>{ht&&(jt.resetFields(),kt())},[ht]),jsxRuntimeExports.jsx(BscModal,{width:530,title:"Snapshot",okText:"Create Snapshot",onOk:Vt,confirmLoading:Bt,maskClosable:!1,onCancel:zt,open:ht,children:jsxRuntimeExports.jsx("div",{className:styles$d.container,children:jsxRuntimeExports.jsxs(Form,{className:styles$d.form,form:jt,layout:"vertical",labelAlign:"left",disabled:Bt,children:[jsxRuntimeExports.jsx(Form.Item,{label:"Fork:",children:jsxRuntimeExports.jsx("div",{className:styles$d.value,children:Ct==null?void 0:Ct.name})}),jsxRuntimeExports.jsx(Form.Item,{rules:[{required:!0,max:14}],name:"name",label:"Snapshot Name:",children:jsxRuntimeExports.jsx(Input,{})}),jsxRuntimeExports.jsx(Form.Item,{label:"Tag:",children:jsxRuntimeExports.jsx("div",{className:styles$d.value,children:COLORS.map(Kt=>jsxRuntimeExports.jsx("div",{className:cls(styles$d.tag,{[styles$d[`selected_${$t}`]]:Dt===Kt}),style:{backgroundColor:Kt},onClick:()=>Nt(Kt)},Kt))})})]})})})},ModalCreateSnapshot=observer(ModalCreateFork);var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__decorateClass=(ht,Et,yt,Ct)=>{for(var $t=__getOwnPropDesc(Et,yt),At=ht.length-1,Bt;At>=0;At--)(Bt=ht[At])&&($t=Bt(Et,yt,$t)||$t);return $t&&__defProp(Et,yt,$t),$t};const ForkContext=reactExports.createContext(null),useForkContext=()=>{const ht=reactExports.useContext(ForkContext);return ht||new Store$4};let Store$4=class{constructor(){this.currentChainFork=null,this.chainForkList=[],this.getChainForkInfo=async Et=>{const{data:yt,success:Ct,msg:$t}=await commonApi.getChainForkInfo(Et);Ct?runInAction(()=>{this.currentChainFork={...yt,baseFee:formatUnits(yt.baseFee,"gwei")}}):B.error($t)},this.getChainForkList=async()=>{const{success:Et,data:yt}=await commonApi.getChainForkList();Et&&runInAction(()=>{this.chainForkList=yt})},makeAutoObservable(this)}get forkId(){var Et;return(Et=this.currentChainFork)==null?void 0:Et.id}get rpcId(){var Et;return(Et=this.currentChainFork)==null?void 0:Et.rpc}get chainId(){var Et;return(Et=this.currentChainFork)==null?void 0:Et.chainId}};__decorateClass([computed],Store$4.prototype,"forkId");__decorateClass([computed],Store$4.prototype,"rpcId");__decorateClass([computed],Store$4.prototype,"chainId");var jsonBigint={exports:{}},stringify$2={exports:{}};(function(ht){var Et=bignumberExports,yt=ht.exports;(function(){var Ct=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,$t,At,Bt={"\b":"\\b","	":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},Dt;function Ft(Mt){return Ct.lastIndex=0,Ct.test(Mt)?'"'+Mt.replace(Ct,function(Nt){var jt=Bt[Nt];return typeof jt=="string"?jt:"\\u"+("0000"+Nt.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+Mt+'"'}function kt(Mt,Nt){var jt,zt,Vt,Kt,Xt=$t,Qt,Zt=Nt[Mt],dr=Zt!=null&&(Zt instanceof Et||Et.isBigNumber(Zt));switch(Zt&&typeof Zt=="object"&&typeof Zt.toJSON=="function"&&(Zt=Zt.toJSON(Mt)),typeof Dt=="function"&&(Zt=Dt.call(Nt,Mt,Zt)),typeof Zt){case"string":return dr?Zt:Ft(Zt);case"number":return isFinite(Zt)?String(Zt):"null";case"boolean":case"null":case"bigint":return String(Zt);case"object":if(!Zt)return"null";if($t+=At,Qt=[],Object.prototype.toString.apply(Zt)==="[object Array]"){for(Kt=Zt.length,jt=0;jt<Kt;jt+=1)Qt[jt]=kt(jt,Zt)||"null";return Vt=Qt.length===0?"[]":$t?`[
`+$t+Qt.join(`,
`+$t)+`
`+Xt+"]":"["+Qt.join(",")+"]",$t=Xt,Vt}if(Dt&&typeof Dt=="object")for(Kt=Dt.length,jt=0;jt<Kt;jt+=1)typeof Dt[jt]=="string"&&(zt=Dt[jt],Vt=kt(zt,Zt),Vt&&Qt.push(Ft(zt)+($t?": ":":")+Vt));else Object.keys(Zt).forEach(function(cr){var Er=kt(cr,Zt);Er&&Qt.push(Ft(cr)+($t?": ":":")+Er)});return Vt=Qt.length===0?"{}":$t?`{
`+$t+Qt.join(`,
`+$t)+`
`+Xt+"}":"{"+Qt.join(",")+"}",$t=Xt,Vt}}typeof yt.stringify!="function"&&(yt.stringify=function(Mt,Nt,jt){var zt;if($t="",At="",typeof jt=="number")for(zt=0;zt<jt;zt+=1)At+=" ";else typeof jt=="string"&&(At=jt);if(Dt=Nt,Nt&&typeof Nt!="function"&&(typeof Nt!="object"||typeof Nt.length!="number"))throw new Error("JSON.stringify");return kt("",{"":Mt})})})()})(stringify$2);var stringifyExports=stringify$2.exports,BigNumber=null;const suspectProtoRx=/(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/,suspectConstructorRx=/(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)/;var json_parse$1=function(ht){var Et={strict:!1,storeAsString:!1,alwaysParseAsBig:!1,useNativeBigInt:!1,protoAction:"error",constructorAction:"error"};if(ht!=null){if(ht.strict===!0&&(Et.strict=!0),ht.storeAsString===!0&&(Et.storeAsString=!0),Et.alwaysParseAsBig=ht.alwaysParseAsBig===!0?ht.alwaysParseAsBig:!1,Et.useNativeBigInt=ht.useNativeBigInt===!0?ht.useNativeBigInt:!1,typeof ht.constructorAction<"u")if(ht.constructorAction==="error"||ht.constructorAction==="ignore"||ht.constructorAction==="preserve")Et.constructorAction=ht.constructorAction;else throw new Error(`Incorrect value for constructorAction option, must be "error", "ignore" or undefined but passed ${ht.constructorAction}`);if(typeof ht.protoAction<"u")if(ht.protoAction==="error"||ht.protoAction==="ignore"||ht.protoAction==="preserve")Et.protoAction=ht.protoAction;else throw new Error(`Incorrect value for protoAction option, must be "error", "ignore" or undefined but passed ${ht.protoAction}`)}var yt,Ct,$t={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
`,r:"\r",t:"	"},At,Bt=function(Kt){throw{name:"SyntaxError",message:Kt,at:yt,text:At}},Dt=function(Kt){return Kt&&Kt!==Ct&&Bt("Expected '"+Kt+"' instead of '"+Ct+"'"),Ct=At.charAt(yt),yt+=1,Ct},Ft=function(){var Kt,Xt="";for(Ct==="-"&&(Xt="-",Dt("-"));Ct>="0"&&Ct<="9";)Xt+=Ct,Dt();if(Ct===".")for(Xt+=".";Dt()&&Ct>="0"&&Ct<="9";)Xt+=Ct;if(Ct==="e"||Ct==="E")for(Xt+=Ct,Dt(),(Ct==="-"||Ct==="+")&&(Xt+=Ct,Dt());Ct>="0"&&Ct<="9";)Xt+=Ct,Dt();if(Kt=+Xt,!isFinite(Kt))Bt("Bad number");else return BigNumber==null&&(BigNumber=bignumberExports),Xt.length>15?Et.storeAsString?Xt:Et.useNativeBigInt?BigInt(Xt):new BigNumber(Xt):Et.alwaysParseAsBig?Et.useNativeBigInt?BigInt(Kt):new BigNumber(Kt):Kt},kt=function(){var Kt,Xt,Qt="",Zt;if(Ct==='"')for(var dr=yt;Dt();){if(Ct==='"')return yt-1>dr&&(Qt+=At.substring(dr,yt-1)),Dt(),Qt;if(Ct==="\\"){if(yt-1>dr&&(Qt+=At.substring(dr,yt-1)),Dt(),Ct==="u"){for(Zt=0,Xt=0;Xt<4&&(Kt=parseInt(Dt(),16),!!isFinite(Kt));Xt+=1)Zt=Zt*16+Kt;Qt+=String.fromCharCode(Zt)}else if(typeof $t[Ct]=="string")Qt+=$t[Ct];else break;dr=yt}}Bt("Bad string")},Mt=function(){for(;Ct&&Ct<=" ";)Dt()},Nt=function(){switch(Ct){case"t":return Dt("t"),Dt("r"),Dt("u"),Dt("e"),!0;case"f":return Dt("f"),Dt("a"),Dt("l"),Dt("s"),Dt("e"),!1;case"n":return Dt("n"),Dt("u"),Dt("l"),Dt("l"),null}Bt("Unexpected '"+Ct+"'")},jt,zt=function(){var Kt=[];if(Ct==="["){if(Dt("["),Mt(),Ct==="]")return Dt("]"),Kt;for(;Ct;){if(Kt.push(jt()),Mt(),Ct==="]")return Dt("]"),Kt;Dt(","),Mt()}}Bt("Bad array")},Vt=function(){var Kt,Xt=Object.create(null);if(Ct==="{"){if(Dt("{"),Mt(),Ct==="}")return Dt("}"),Xt;for(;Ct;){if(Kt=kt(),Mt(),Dt(":"),Et.strict===!0&&Object.hasOwnProperty.call(Xt,Kt)&&Bt('Duplicate key "'+Kt+'"'),suspectProtoRx.test(Kt)===!0?Et.protoAction==="error"?Bt("Object contains forbidden prototype property"):Et.protoAction==="ignore"?jt():Xt[Kt]=jt():suspectConstructorRx.test(Kt)===!0?Et.constructorAction==="error"?Bt("Object contains forbidden constructor property"):Et.constructorAction==="ignore"?jt():Xt[Kt]=jt():Xt[Kt]=jt(),Mt(),Ct==="}")return Dt("}"),Xt;Dt(","),Mt()}}Bt("Bad object")};return jt=function(){switch(Mt(),Ct){case"{":return Vt();case"[":return zt();case'"':return kt();case"-":return Ft();default:return Ct>="0"&&Ct<="9"?Ft():Nt()}},function(Kt,Xt){var Qt;return At=Kt+"",yt=0,Ct=" ",Qt=jt(),Mt(),Ct&&Bt("Syntax error"),typeof Xt=="function"?function Zt(dr,cr){var Er,pr=dr[cr];return pr&&typeof pr=="object"&&Object.keys(pr).forEach(function(gr){Er=Zt(pr,gr),Er!==void 0?pr[gr]=Er:delete pr[gr]}),Xt.call(dr,cr,pr)}({"":Qt},""):Qt}},parse=json_parse$1,json_stringify=stringifyExports.stringify,json_parse=parse;jsonBigint.exports=function(ht){return{parse:json_parse(ht),stringify:json_stringify}};jsonBigint.exports.parse=json_parse();jsonBigint.exports.stringify=json_stringify;var jsonBigintExports=jsonBigint.exports;const BigIntJSON=getDefaultExportFromCjs$1(jsonBigintExports),FUNC_SPLIT="__blocksec__";let Store$3=class{constructor(){this.loading=!1,this.unit=NetworkMap.ETHEREUM.unit,this.chainId=NetworkMap.ETHEREUM.chainId,this.initialValues={useABI:!1},this.contractData={methodsOptions:[],methods:[],abi:{proxyABI:"",implementationABI:""}},this.loadingABI=!1,this.form=null,this.setLoadingABI=Et=>{this.loadingABI=Et},this.setForm=Et=>{this.form=Et},this.setLoading=Et=>{this.loading=Et},this.onNetworkChange=Et=>{this.unit=NetworkUtils.getUnitByChainId(Et),this.chainId=Et},this.setInitialValues=Et=>{this.initialValues=Et},this.onSend=async(Et,yt)=>{this.setLoading(!0);const{success:Ct,msg:$t,data:At}=await commonApi.sendForkTxn(Et,yt);return this.setLoading(!1),new Promise((Bt,Dt)=>{Ct?Bt(At):(Dt(),B.error($t))})},this.resetContract=()=>{var Et;this.contractData={methodsOptions:[],methods:[],abi:{proxyABI:"",implementationABI:""}},(Et=this.form)==null||Et.resetFields(["function"])},this.getContractByAddress=async()=>{var Ct,$t,At;this.setLoadingABI(!0);const{success:Et,data:yt}=await commonApi.getContractByAddress((Ct=this.form)==null?void 0:Ct.getFieldValue("forkId"),this.chainId,($t=this.form)==null?void 0:$t.getFieldValue("receiver"),(At=this.form)==null?void 0:At.getFieldValue("inputData"));Et?this.updateFormFields(yt):this.resetContract(),this.setLoadingABI(!1)},this.getContractByABI=()=>new Promise((Et,yt)=>{var At,Bt;this.setLoadingABI(!0);const Ct=(At=this.form)==null?void 0:At.getFieldValue("localABI"),$t=(Bt=this.form)==null?void 0:Bt.getFieldValue("inputData");commonApi.getContractByABI(Ct,$t).then(Dt=>{const{data:Ft,success:kt}=Dt;kt?(this.updateFormFields(Ft),Et(Ft)):yt()}).catch(()=>{yt()}).finally(()=>{this.setLoadingABI(!1)})}),this.contractDataFormat=Et=>{var Bt,Dt,Ft,kt;const yt=[{label:"WRITE",options:[]},{label:"READ",options:[]}];let Ct={proxyABI:"",implementationABI:((Bt=Et==null?void 0:Et.implementation)==null?void 0:Bt.abi)??""},$t=(Dt=Et==null?void 0:Et.implementation)==null?void 0:Dt.methods;const At=[];return Et.isProxy&&($t=$t.concat((((Ft=Et==null?void 0:Et.proxy)==null?void 0:Ft.methods)??[]).map(Mt=>({...Mt,isProxy:!0}))),Ct={...Ct,proxyABI:((kt=Et==null?void 0:Et.proxy)==null?void 0:kt.abi)??""}),$t!=null&&$t.length?($t==null||$t.forEach(Mt=>{const{constant:Nt,signature:jt,isProxy:zt}=Mt,Vt=Nt?1:0;At.push({...Mt,label:jt,value:zt?`proxy${FUNC_SPLIT}${jt}`:`implementation${FUNC_SPLIT}${jt}`}),yt[Vt].options.push({...Mt,label:jt,value:zt?`proxy${FUNC_SPLIT}${jt}`:`implementation${FUNC_SPLIT}${jt}`})}),{methods:At,methodsOptions:yt,abi:Ct}):{methods:At,methodsOptions:[],abi:Ct}},this.updateFormFields=Et=>{var Dt,Ft,kt,Mt,Nt;const{methods:yt,methodsOptions:Ct,abi:$t}=this.contractDataFormat(Et);if(this.contractData={methods:yt,methodsOptions:Ct,abi:$t},!Et.unpacked){(Dt=this.form)==null||Dt.resetFields(["parameters","function"]);return}const At=yt.find(jt=>{var zt,Vt;return jt.value===`${Et!=null&&Et.proxyMatch?`proxy${FUNC_SPLIT}${(zt=Et==null?void 0:Et.unpackedCallData)==null?void 0:zt.signature}`:`implementation${FUNC_SPLIT}${(Vt=Et==null?void 0:Et.unpackedCallData)==null?void 0:Vt.signature}`}`}),Bt={};At==null||At.argumentsIn.forEach((jt,zt)=>{var Kt,Xt;const Vt=(Xt=(Kt=Et==null?void 0:Et.unpackedCallData)==null?void 0:Kt.params)==null?void 0:Xt[zt];Bt[`${At.value}_${jt.name}`]=isObject$e(Vt)?JSON.stringify(Vt):Vt}),(Mt=this.form)==null||Mt.setFieldValue("function",`${Et!=null&&Et.proxyMatch?`proxy${FUNC_SPLIT}${(Ft=Et==null?void 0:Et.unpackedCallData)==null?void 0:Ft.signature}`:`implementation${FUNC_SPLIT}${(kt=Et==null?void 0:Et.unpackedCallData)==null?void 0:kt.signature}`}`),(Nt=this.form)==null||Nt.setFieldValue("parameters",Bt)},this.getInputData=()=>{var Bt;const Et=this.form.getFieldValue("function"),[yt,Ct]=Et.split(FUNC_SPLIT),$t=(Bt=this.form)==null?void 0:Bt.getFieldValue("parameters"),At={};Object.keys($t??{}).forEach(Dt=>{try{At[Dt]=BigIntJSON({storeAsString:!0}).parse($t[Dt])}catch{At[Dt]=$t[Dt]}});try{let Dt=this.contractData.abi.implementationABI;yt==="proxy"&&(Dt=this.contractData.abi.proxyABI);const Ft=new Interface(Dt),kt=this.contractData.methods.find(Nt=>Nt.value===Et),Mt=kt==null?void 0:kt.argumentsIn.map(Nt=>At[`${Et}_${Nt.name}`]);return console.log(Mt,"===encodeParameters==="),Ft.encodeFunctionData(Ct,Mt)}catch(Dt){return console.log(Dt),B.error("encode function data error"),""}},makeAutoObservable(this)}};const container$5="_container_19vc0_1",form$2="_form_19vc0_6",help="_help_19vc0_16",copyCallDataBtn="_copyCallDataBtn_19vc0_20",sendBtn="_sendBtn_19vc0_26",drawerContainer="_drawerContainer_19vc0_31",styles$c={container:container$5,form:form$2,help,copyCallDataBtn,sendBtn,drawerContainer},{TextArea}=Input,DrawerSendTransaction=({visible:ht,onClose:Et,onSuccess:yt})=>{const Ct=useLocalObservable(()=>new Store$3),{contractData:$t,loadingABI:At,unit:Bt,loading:Dt,initialValues:Ft,setInitialValues:kt,onSend:Mt,onNetworkChange:Nt,getContractByAddress:jt,getContractByABI:zt,setForm:Vt,resetContract:Kt,getInputData:Xt}=Ct,{forkId:Qt,chainId:Zt,chainForkList:dr}=useForkContext(),[cr]=Form.useForm(),Er=Form.useWatch("forkId",cr),pr=reactExports.useMemo(()=>{var xr;const yr=(xr=dr.find(rr=>rr.id===Er))==null?void 0:xr.chainId;return FORK_SUPPORTED_NETWORKS.find(rr=>rr.value===yr)??FORK_SUPPORTED_NETWORKS[0]},[Er,dr]),gr=debounce$3(()=>{cr.validateFields().then(yr=>{const xr={sender:yr.sender,forkId:yr.forkId,inputData:yr.inputData||"0x",value:yr.value||"0",gasLimit:yr.gasLimit||pr.defaultGasLimit,gasPrice:yr.gasPrice||pr.defaultGasPrice,receiver:yr.receiver||""};if(yr.useABI&&yr.function){const rr=Xt();if(!rr)return;xr.inputData=rr}Mt(yr.forkId,xr).then(()=>{Et(),yt==null||yt()})})},500),vr=debounce$3((yr,xr)=>{Object.keys(yr).includes("forkId")&&xr.receiver&&jt(),Object.keys(yr).includes("receiver")&&jt(),Object.keys(yr).includes("inputData")&&xr.receiver&&jt(),Object.keys(yr).includes("localABI")&&zt().catch(()=>{Kt()}),Object.keys(yr).includes("useABI")&&cr.validateFields(["inputData"]),Object.keys(yr).includes("function")&&cr.resetFields(["parameters"])},300);return reactExports.useEffect(()=>{cr.resetFields()},[ht]),reactExports.useEffect(()=>{Qt&&kt({...Ft,forkId:Qt}),isNil(Zt)||Nt(Zt)},[Qt,Zt]),reactExports.useEffect(()=>{cr&&Vt(cr)},[cr]),jsxRuntimeExports.jsx(Drawer,{maskClosable:!0,rootClassName:styles$c.drawerContainer,title:"Send Transaction",destroyOnClose:!0,styles:{footer:{display:"flex",justifyContent:"center"}},footer:jsxRuntimeExports.jsx(Button$1,{type:"primary",className:styles$c.sendBtn,loading:Dt,onClick:gr,children:"Send"}),onClose:Et,open:ht,children:jsxRuntimeExports.jsx("div",{className:styles$c.container,children:jsxRuntimeExports.jsxs(Form,{className:styles$c.form,form:cr,layout:"vertical",labelAlign:"left",initialValues:Ft,disabled:Dt,onValuesChange:vr,children:[jsxRuntimeExports.jsx(Form.Item,{name:"forkId",label:"Fork",rules:[{required:!0}],children:jsxRuntimeExports.jsx(Select,{onChange:yr=>Nt(dr.find(xr=>xr.id===yr).chainId),children:dr.map(yr=>jsxRuntimeExports.jsx(Select.Option,{value:yr.id,children:jsxRuntimeExports.jsxs("div",{className:"flex items-center text-xs",children:[jsxRuntimeExports.jsx(Symbol$4,{network:NetworkUtils.getSimpleNameByChainId(yr.chainId),mr:4,size:14}),yr.name]})},yr.id))})}),jsxRuntimeExports.jsx(Form.Item,{name:"sender",label:"Sender",rules:[{required:!0,message:"Please enter Sender"},{pattern:PATTERN_ADDRESS,message:"Please enter a valid Sender"}],children:jsxRuntimeExports.jsx(Input,{})}),jsxRuntimeExports.jsx(Form.Item,{name:"receiver",label:"Receiver",rules:[{pattern:PATTERN_ADDRESS,message:"Please enter a valid Receiver"}],children:jsxRuntimeExports.jsx(Input,{})}),jsxRuntimeExports.jsx(Form.Item,{noStyle:!0,shouldUpdate:!0,children:({getFieldValue:yr,getFieldError:xr})=>{var Gt;const rr=xr("receiver"),Lt=yr("receiver"),Ht=yr("useABI")??!1,Wt=()=>jsxRuntimeExports.jsx(Form.Item,{name:"useABI",style:{marginBottom:6},children:jsxRuntimeExports.jsx(Radio.Group,{options:[{label:"rawdata",value:!1},{label:"ABI",value:!0,disabled:!Lt||!!rr.length}]})});return Ht?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Form.Item,{label:jsxRuntimeExports.jsx("span",{className:styles$c.labelIcon,children:"Function"}),children:[jsxRuntimeExports.jsxs("div",{className:"flex justify-between",children:[Wt(),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Form.Item,{name:"useLocalABI",noStyle:!0,valuePropName:"checked",children:jsxRuntimeExports.jsx(Switch,{size:"small",onChange:Yt=>{Yt?Kt():jt()}})}),jsxRuntimeExports.jsx("span",{style:{paddingLeft:5},children:"Use Local ABI"})]})]}),jsxRuntimeExports.jsx(Form.Item,{noStyle:!0,dependencies:["useLocalABI"],children:({getFieldValue:Yt})=>Yt("useLocalABI")?jsxRuntimeExports.jsx(Form.Item,{name:"localABI",preserve:!1,rules:[{validator:async(lr,Jt)=>{try{JSON.parse(Jt)}catch{throw new Error("Parse error: invalid json")}}}],children:jsxRuntimeExports.jsx(TextArea,{})}):null}),jsxRuntimeExports.jsx(Form.Item,{name:"function",children:jsxRuntimeExports.jsx(Select,{allowClear:!0,loading:At,getPopupContainer:Yt=>Yt,notFoundContent:jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:'Contract unverified. Open "Use Local ABI" option if you have the ABI'}),optionLabelProp:"name",options:$t.methodsOptions,placeholder:(Gt=$t==null?void 0:$t.methodsOptions)!=null&&Gt.length?"Please select a function":'Contract unverified. Open "Use Local ABI" option if you have the ABI'})})]}),jsxRuntimeExports.jsx(Form.Item,{dependencies:["function"],noStyle:!0,children:({getFieldValue:Yt})=>{const er=Yt("function"),lr=$t.methods.find(Jt=>Jt.value===er);return lr?jsxRuntimeExports.jsxs("div",{children:[lr==null?void 0:lr.argumentsIn.map((Jt,Ut)=>jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between",style:{marginLeft:30},children:[jsxRuntimeExports.jsxs("span",{className:styles$c.help,style:{paddingBottom:10,paddingLeft:0,width:140,whiteSpace:"pre-wrap",display:"inline-flex",alignItems:"center"},children:[Jt.name,jsxRuntimeExports.jsx(Tooltip,{title:Jt.type,children:jsxRuntimeExports.jsx(Iconfont,{className:"ml-1",type:"icon-tips"})})]}),jsxRuntimeExports.jsx(Form.Item,{rules:[{required:!0,message:`${Jt.name??"field"} is required`}],tooltip:Jt.type,name:["parameters",`${er}_${Jt.name}`],className:"!mb-2 flex-1",children:jsxRuntimeExports.jsx(TextArea,{placeholder:Jt.type,autoSize:{minRows:1,maxRows:4}})}),jsxRuntimeExports.jsx("div",{style:{display:"inline-flex",alignItems:"center",paddingLeft:2,paddingBottom:8},children:jsxRuntimeExports.jsx(CopyButton,{text:()=>cr.getFieldValue(["parameters",`${er}_${Jt.name}`])})})]},Ut)),jsxRuntimeExports.jsx(CopyButton,{ml:4,className:styles$c.copyCallDataBtn,text:()=>new Promise((Jt,Ut)=>{cr.validateFields(lr==null?void 0:lr.argumentsIn.map(ir=>["parameters",`${er}_${ir.name}`])).then(()=>{Jt(Xt())}).catch(ir=>{Ut(ir)})}),children:"Copy Calldata"})]}):null}})]}):jsxRuntimeExports.jsxs(Form.Item,{label:"Calldata",children:[Wt(),jsxRuntimeExports.jsx(Form.Item,{name:"inputData",rules:[{pattern:PATTERN_INPUT_DATA,message:"Please enter a valid Input Data"}],children:jsxRuntimeExports.jsx(TextArea,{placeholder:"Default is 0x",style:{height:120},className:cls({})})})]})}}),jsxRuntimeExports.jsx(Form.Item,{name:"value",label:"Value",getValueFromEvent:yr=>{const{value:xr}=yr.target;return xr.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,"")},children:jsxRuntimeExports.jsx(Input,{suffix:Bt,placeholder:"Default is 0"})}),jsxRuntimeExports.jsx(Form.Item,{name:"gasLimit",label:"Gas Limit",dependencies:["forkId"],getValueFromEvent:yr=>{const{value:xr}=yr.target;return xr.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,"")},children:jsxRuntimeExports.jsx(Input,{placeholder:`Default is ${numFormatter(pr.defaultGasLimit)}`})}),jsxRuntimeExports.jsx(Form.Item,{name:"gasPrice",label:"Gas Price",dependencies:["forkId"],getValueFromEvent:yr=>{const{value:xr}=yr.target;return xr.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,"")},children:jsxRuntimeExports.jsx(Input,{suffix:"Gwei",placeholder:`Default is ${numFormatter(pr.defaultGasPrice)}`})})]})})})},DrawerSendTransaction$1=observer(DrawerSendTransaction),container$4="_container_1dejb_1",form$1="_form_1dejb_7",styles$b={container:container$4,form:form$1},ModalCreateProject=({capacity:ht,visible:Et,onClose:yt,onSuccess:Ct})=>{const[$t,At]=reactExports.useState(!1),[Bt]=Form.useForm(),Dt=debounce$3(async()=>{At(!0),Bt.validateFields().then(async Ft=>{const{success:kt,msg:Mt,data:Nt}=await commonApi.createProject(Ft.name);kt?(Ct==null||Ct(Nt.id),yt()):B.error(Mt)}).finally(()=>{At(!1)})},300);return reactExports.useEffect(()=>{Et&&Bt.resetFields()},[Et]),jsxRuntimeExports.jsx(BscModal,{width:530,title:"Create Project",onOk:Dt,confirmLoading:$t,maskClosable:!1,onCancel:yt,open:Et,children:jsxRuntimeExports.jsx("div",{className:styles$b.container,children:jsxRuntimeExports.jsxs(Form,{className:styles$b.form,form:Bt,initialValues:{chainId:NetworkMap.ETHEREUM.chainId,protection:!1},layout:"vertical",labelAlign:"left",disabled:$t,children:[jsxRuntimeExports.jsx(Form.Item,{rules:[{required:!0}],name:"name",label:"Project Name:",children:jsxRuntimeExports.jsx(Input,{placeholder:"Name"})}),jsxRuntimeExports.jsx(Form.Item,{className:"relative",label:jsxRuntimeExports.jsx("div",{className:"flex w-full items-center justify-between",children:"Project Capacity:"}),children:jsxRuntimeExports.jsx("div",{className:"flex items-center justify-between",children:jsxRuntimeExports.jsxs("span",{children:[(ht==null?void 0:ht.projectCount)??0," /"," ",(ht==null?void 0:ht.projectCapacity)??20]})})})]})})})},ModalCreateProject$1=observer(ModalCreateProject),ModalDetectCapacity=({type:ht,visible:Et,onClose:yt})=>{const Ct=useNavigate(),{currentProject:$t}=projectStore,{isProjectOwner:At}=useAuth(),Bt=()=>{switch(ht){case"fork":return At?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:"Fork Quantity Limit reached. Upgrade your plan to continue creating forks."}):`You've reached Fork Quantity Limit. Please contact owner(${$t==null?void 0:$t.owner.email}) to Upgrade Plan or Buy Pack to continue use.`;case"project":return At?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:"Project Quantity Limit reached. Upgrade your plan to continue creating projects."}):`You've reached Project Quantity Limit. Please contact owner(${$t==null?void 0:$t.owner.email}) to Upgrade Plan or Buy Pack to continue use.`;case"team":return At?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:"Collaborator Quantity Limit reached. Upgrade your plan to continue inviting collaborators."}):`You've reached Collaborator Quantity Limit. Please contact owner(${$t==null?void 0:$t.owner.email}) to Upgrade Plan or Buy Pack to continue use.`;case"txnDay":case"txnMonth":return At?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:"Sent Transaction Limit reached. Upgrade your plan to continue sending transactions."}):`You've reached Sent Transaction Limit. Please contact owner(${$t==null?void 0:$t.owner.email}) to Upgrade Plan or Buy Pack to continue use.`;case"action":return At?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:"Action Quantity Limit reached. Upgrade your plan to continue creating actions."}):`You've reached Action Quantity Limit. Please contact owner(${$t==null?void 0:$t.owner.email}) to Upgrade Plan or Buy Pack to continue use.`;case"monitor":return At?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:"Monitor Quantity Limit reached. Upgrade your plan to continue creating actions."}):`You've reached Monitor Quantity Limit. Please contact owner(${$t==null?void 0:$t.owner.email}) to Upgrade Plan or Buy Pack to continue use.`;case"module":case"webhook":return At?"Your current plan no longer includes this capability. Upgrade your plan to unlock this capability now.":`Your current plan no longer includes this capability. Please contact owner(${$t==null?void 0:$t.owner.email}) to Upgrade Plan to unlock this capability now.`}},Dt=()=>ht==="module"?"/subscribe/block/customize?purchase=multi_signature":ht==="webhook"?"/subscribe/block/customize?purchase=webhook":["action","monitor"].includes(ht)?"/subscribe/block/customize":"/subscribe";return jsxRuntimeExports.jsx(BscModal,{title:"Upgrade Needed",maskClosable:!1,okText:"Upgrade Now",cancelText:At?"Cancel":"Got it",onOk:()=>Ct(Dt()),onCancel:yt,open:Et,okButtonProps:{style:{display:At?"inline-block":"none"}},children:jsxRuntimeExports.jsx("p",{children:Bt()})})},ModalDetectCapacity$1=observer(ModalDetectCapacity);var isMobile$2={exports:{}};isMobile$2.exports=isMobile;isMobile$2.exports.isMobile=isMobile;isMobile$2.exports.default=isMobile;const mobileRE=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,notMobileRE=/CrOS/,tabletRE=/android|ipad|playbook|silk/i;function isMobile(ht){ht||(ht={});let Et=ht.ua;if(!Et&&typeof navigator<"u"&&(Et=navigator.userAgent),Et&&Et.headers&&typeof Et.headers["user-agent"]=="string"&&(Et=Et.headers["user-agent"]),typeof Et!="string")return!1;let yt=mobileRE.test(Et)&&!notMobileRE.test(Et)||!!ht.tablet&&tabletRE.test(Et);return!yt&&ht.tablet&&ht.featureDetect&&navigator&&navigator.maxTouchPoints>1&&Et.indexOf("Macintosh")!==-1&&Et.indexOf("Safari")!==-1&&(yt=!0),yt}var isMobileExports=isMobile$2.exports;const isMobile$1=getDefaultExportFromCjs$1(isMobileExports);var lib$2={},ace$4={},ace$3={exports:{}};(function(ht,Et){(function(){var yt="ace",Ct=function(){return this}();!Ct&&typeof window<"u"&&(Ct=window);var $t=function(Mt,Nt,jt){if(typeof Mt!="string"){$t.original?$t.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(jt=Nt),$t.modules[Mt]||($t.payloads[Mt]=jt,$t.modules[Mt]=null)};$t.modules={},$t.payloads={};var At=function(Mt,Nt,jt){if(typeof Nt=="string"){var zt=Ft(Mt,Nt);if(zt!=null)return jt&&jt(),zt}else if(Object.prototype.toString.call(Nt)==="[object Array]"){for(var Vt=[],Kt=0,Xt=Nt.length;Kt<Xt;++Kt){var Qt=Ft(Mt,Nt[Kt]);if(Qt==null&&Bt.original)return;Vt.push(Qt)}return jt&&jt.apply(null,Vt)||!0}},Bt=function(Mt,Nt){var jt=At("",Mt,Nt);return jt==null&&Bt.original?Bt.original.apply(this,arguments):jt},Dt=function(Mt,Nt){if(Nt.indexOf("!")!==-1){var jt=Nt.split("!");return Dt(Mt,jt[0])+"!"+Dt(Mt,jt[1])}if(Nt.charAt(0)=="."){var zt=Mt.split("/").slice(0,-1).join("/");for(Nt=zt+"/"+Nt;Nt.indexOf(".")!==-1&&Vt!=Nt;){var Vt=Nt;Nt=Nt.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return Nt},Ft=function(Mt,Nt){Nt=Dt(Mt,Nt);var jt=$t.modules[Nt];if(!jt){if(jt=$t.payloads[Nt],typeof jt=="function"){var zt={},Vt={id:Nt,uri:"",exports:zt,packaged:!0},Kt=function(Qt,Zt){return At(Nt,Qt,Zt)},Xt=jt(Kt,zt,Vt);zt=Xt||Vt.exports,$t.modules[Nt]=zt,delete $t.payloads[Nt]}jt=$t.modules[Nt]=zt||jt}return jt};function kt(Mt){var Nt=Ct;Ct[Mt]||(Ct[Mt]={}),Nt=Ct[Mt],(!Nt.define||!Nt.define.packaged)&&($t.original=Nt.define,Nt.define=$t,Nt.define.packaged=!0),(!Nt.require||!Nt.require.packaged)&&(Bt.original=Nt.require,Nt.require=Bt,Nt.require.packaged=!0)}kt(yt)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(yt,Ct,$t){function At(Bt,Dt,Ft){Object.defineProperty(Bt,Dt,{value:Ft,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||At(String.prototype,"startsWith",function(Bt,Dt){return Dt=Dt||0,this.lastIndexOf(Bt,Dt)===Dt}),String.prototype.endsWith||At(String.prototype,"endsWith",function(Bt,Dt){var Ft=this;(Dt===void 0||Dt>Ft.length)&&(Dt=Ft.length),Dt-=Bt.length;var kt=Ft.indexOf(Bt,Dt);return kt!==-1&&kt===Dt}),String.prototype.repeat||At(String.prototype,"repeat",function(Bt){for(var Dt="",Ft=this;Bt>0;)Bt&1&&(Dt+=Ft),(Bt>>=1)&&(Ft+=Ft);return Dt}),String.prototype.includes||At(String.prototype,"includes",function(Bt,Dt){return this.indexOf(Bt,Dt)!=-1}),Object.assign||(Object.assign=function(Bt){if(Bt==null)throw new TypeError("Cannot convert undefined or null to object");for(var Dt=Object(Bt),Ft=1;Ft<arguments.length;Ft++){var kt=arguments[Ft];kt!=null&&Object.keys(kt).forEach(function(Mt){Dt[Mt]=kt[Mt]})}return Dt}),Object.values||(Object.values=function(Bt){return Object.keys(Bt).map(function(Dt){return Bt[Dt]})}),Array.prototype.find||At(Array.prototype,"find",function(Bt){for(var Dt=this.length,Ft=arguments[1],kt=0;kt<Dt;kt++){var Mt=this[kt];if(Bt.call(Ft,Mt,kt,this))return Mt}}),Array.prototype.findIndex||At(Array.prototype,"findIndex",function(Bt){for(var Dt=this.length,Ft=arguments[1],kt=0;kt<Dt;kt++){var Mt=this[kt];if(Bt.call(Ft,Mt,kt,this))return kt}}),Array.prototype.includes||At(Array.prototype,"includes",function(Bt,Dt){return this.indexOf(Bt,Dt)!=-1}),Array.prototype.fill||At(Array.prototype,"fill",function(Bt){for(var Dt=this,Ft=Dt.length>>>0,kt=arguments[1],Mt=kt>>0,Nt=Mt<0?Math.max(Ft+Mt,0):Math.min(Mt,Ft),jt=arguments[2],zt=jt===void 0?Ft:jt>>0,Vt=zt<0?Math.max(Ft+zt,0):Math.min(zt,Ft);Nt<Vt;)Dt[Nt]=Bt,Nt++;return Dt}),Array.of||At(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(yt,Ct,$t){yt("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(yt,Ct,$t){Ct.deepCopy=function At(Bt){if(typeof Bt!="object"||!Bt)return Bt;var Dt;if(Array.isArray(Bt)){Dt=[];for(var Ft=0;Ft<Bt.length;Ft++)Dt[Ft]=At(Bt[Ft]);return Dt}if(Object.prototype.toString.call(Bt)!=="[object Object]")return Bt;Dt={};for(var Ft in Bt)Dt[Ft]=At(Bt[Ft]);return Dt}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(yt,Ct,$t){Ct.last=function(Dt){return Dt[Dt.length-1]},Ct.stringReverse=function(Dt){return Dt.split("").reverse().join("")},Ct.stringRepeat=function(Dt,Ft){for(var kt="";Ft>0;)Ft&1&&(kt+=Dt),(Ft>>=1)&&(Dt+=Dt);return kt};var At=/^\s\s*/,Bt=/\s\s*$/;Ct.stringTrimLeft=function(Dt){return Dt.replace(At,"")},Ct.stringTrimRight=function(Dt){return Dt.replace(Bt,"")},Ct.copyObject=function(Dt){var Ft={};for(var kt in Dt)Ft[kt]=Dt[kt];return Ft},Ct.copyArray=function(Dt){for(var Ft=[],kt=0,Mt=Dt.length;kt<Mt;kt++)Dt[kt]&&typeof Dt[kt]=="object"?Ft[kt]=this.copyObject(Dt[kt]):Ft[kt]=Dt[kt];return Ft},Ct.deepCopy=yt("./deep_copy").deepCopy,Ct.arrayToMap=function(Dt){for(var Ft={},kt=0;kt<Dt.length;kt++)Ft[Dt[kt]]=1;return Ft},Ct.createMap=function(Dt){var Ft=Object.create(null);for(var kt in Dt)Ft[kt]=Dt[kt];return Ft},Ct.arrayRemove=function(Dt,Ft){for(var kt=0;kt<=Dt.length;kt++)Ft===Dt[kt]&&Dt.splice(kt,1)},Ct.escapeRegExp=function(Dt){return Dt.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},Ct.escapeHTML=function(Dt){return(""+Dt).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},Ct.getMatchOffsets=function(Dt,Ft){var kt=[];return Dt.replace(Ft,function(Mt){kt.push({offset:arguments[arguments.length-2],length:Mt.length})}),kt},Ct.deferredCall=function(Dt){var Ft=null,kt=function(){Ft=null,Dt()},Mt=function(Nt){return Mt.cancel(),Ft=setTimeout(kt,Nt||0),Mt};return Mt.schedule=Mt,Mt.call=function(){return this.cancel(),Dt(),Mt},Mt.cancel=function(){return clearTimeout(Ft),Ft=null,Mt},Mt.isPending=function(){return Ft},Mt},Ct.delayedCall=function(Dt,Ft){var kt=null,Mt=function(){kt=null,Dt()},Nt=function(jt){kt==null&&(kt=setTimeout(Mt,jt||Ft))};return Nt.delay=function(jt){kt&&clearTimeout(kt),kt=setTimeout(Mt,jt||Ft)},Nt.schedule=Nt,Nt.call=function(){this.cancel(),Dt()},Nt.cancel=function(){kt&&clearTimeout(kt),kt=null},Nt.isPending=function(){return kt},Nt},Ct.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},Ct.skipEmptyMatch=function(Dt,Ft,kt){return kt&&Dt.codePointAt(Ft)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(yt,Ct,$t){Ct.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},Ct.getOS=function(){return Ct.isMac?Ct.OS.MAC:Ct.isLinux?Ct.OS.LINUX:Ct.OS.WINDOWS};var At=typeof navigator=="object"?navigator:{},Bt=(/mac|win|linux/i.exec(At.platform)||["other"])[0].toLowerCase(),Dt=At.userAgent||"",Ft=At.appName||"";Ct.isWin=Bt=="win",Ct.isMac=Bt=="mac",Ct.isLinux=Bt=="linux",Ct.isIE=Ft=="Microsoft Internet Explorer"||Ft.indexOf("MSAppHost")>=0?parseFloat((Dt.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((Dt.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),Ct.isOldIE=Ct.isIE&&Ct.isIE<9,Ct.isGecko=Ct.isMozilla=Dt.match(/ Gecko\/\d+/),Ct.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",Ct.isWebKit=parseFloat(Dt.split("WebKit/")[1])||void 0,Ct.isChrome=parseFloat(Dt.split(" Chrome/")[1])||void 0,Ct.isSafari=parseFloat(Dt.split(" Safari/")[1])&&!Ct.isChrome||void 0,Ct.isEdge=parseFloat(Dt.split(" Edge/")[1])||void 0,Ct.isAIR=Dt.indexOf("AdobeAIR")>=0,Ct.isAndroid=Dt.indexOf("Android")>=0,Ct.isChromeOS=Dt.indexOf(" CrOS ")>=0,Ct.isIOS=/iPad|iPhone|iPod/.test(Dt)&&!window.MSStream,Ct.isIOS&&(Ct.isMac=!0),Ct.isMobile=Ct.isIOS||Ct.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(yt,Ct,$t){var At=yt("./useragent"),Bt="http://www.w3.org/1999/xhtml";Ct.buildDom=function jt(zt,Vt,Kt){if(typeof zt=="string"&&zt){var Xt=document.createTextNode(zt);return Vt&&Vt.appendChild(Xt),Xt}if(!Array.isArray(zt))return zt&&zt.appendChild&&Vt&&Vt.appendChild(zt),zt;if(typeof zt[0]!="string"||!zt[0]){for(var Qt=[],Zt=0;Zt<zt.length;Zt++){var dr=jt(zt[Zt],Vt,Kt);dr&&Qt.push(dr)}return Qt}var cr=document.createElement(zt[0]),Er=zt[1],pr=1;Er&&typeof Er=="object"&&!Array.isArray(Er)&&(pr=2);for(var Zt=pr;Zt<zt.length;Zt++)jt(zt[Zt],cr,Kt);return pr==2&&Object.keys(Er).forEach(function(gr){var vr=Er[gr];gr==="class"?cr.className=Array.isArray(vr)?vr.join(" "):vr:typeof vr=="function"||gr=="value"||gr[0]=="$"?cr[gr]=vr:gr==="ref"?Kt&&(Kt[vr]=cr):gr==="style"?typeof vr=="string"&&(cr.style.cssText=vr):vr!=null&&cr.setAttribute(gr,vr)}),Vt&&Vt.appendChild(cr),cr},Ct.getDocumentHead=function(jt){return jt||(jt=document),jt.head||jt.getElementsByTagName("head")[0]||jt.documentElement},Ct.createElement=function(jt,zt){return document.createElementNS?document.createElementNS(zt||Bt,jt):document.createElement(jt)},Ct.removeChildren=function(jt){jt.innerHTML=""},Ct.createTextNode=function(jt,zt){var Vt=zt?zt.ownerDocument:document;return Vt.createTextNode(jt)},Ct.createFragment=function(jt){var zt=jt?jt.ownerDocument:document;return zt.createDocumentFragment()},Ct.hasCssClass=function(jt,zt){var Vt=(jt.className+"").split(/\s+/g);return Vt.indexOf(zt)!==-1},Ct.addCssClass=function(jt,zt){Ct.hasCssClass(jt,zt)||(jt.className+=" "+zt)},Ct.removeCssClass=function(jt,zt){for(var Vt=jt.className.split(/\s+/g);;){var Kt=Vt.indexOf(zt);if(Kt==-1)break;Vt.splice(Kt,1)}jt.className=Vt.join(" ")},Ct.toggleCssClass=function(jt,zt){for(var Vt=jt.className.split(/\s+/g),Kt=!0;;){var Xt=Vt.indexOf(zt);if(Xt==-1)break;Kt=!1,Vt.splice(Xt,1)}return Kt&&Vt.push(zt),jt.className=Vt.join(" "),Kt},Ct.setCssClass=function(jt,zt,Vt){Vt?Ct.addCssClass(jt,zt):Ct.removeCssClass(jt,zt)},Ct.hasCssString=function(jt,zt){var Vt=0,Kt;if(zt=zt||document,Kt=zt.querySelectorAll("style")){for(;Vt<Kt.length;)if(Kt[Vt++].id===jt)return!0}},Ct.removeElementById=function(jt,zt){zt=zt||document,zt.getElementById(jt)&&zt.getElementById(jt).remove()};var Dt,Ft=[];Ct.useStrictCSP=function(jt){Dt=jt,jt==!1?kt():Ft||(Ft=[])};function kt(){var jt=Ft;Ft=null,jt&&jt.forEach(function(zt){Mt(zt[0],zt[1])})}function Mt(jt,zt,Vt){if(!(typeof document>"u")){if(Ft){if(Vt)kt();else if(Vt===!1)return Ft.push([jt,zt])}if(!Dt){var Kt=Vt;!Vt||!Vt.getRootNode?Kt=document:(Kt=Vt.getRootNode(),(!Kt||Kt==Vt)&&(Kt=document));var Xt=Kt.ownerDocument||Kt;if(zt&&Ct.hasCssString(zt,Kt))return null;zt&&(jt+=`
/*# sourceURL=ace/css/`+zt+" */");var Qt=Ct.createElement("style");Qt.appendChild(Xt.createTextNode(jt)),zt&&(Qt.id=zt),Kt==Xt&&(Kt=Ct.getDocumentHead(Xt)),Kt.insertBefore(Qt,Kt.firstChild)}}}if(Ct.importCssString=Mt,Ct.importCssStylsheet=function(jt,zt){Ct.buildDom(["link",{rel:"stylesheet",href:jt}],Ct.getDocumentHead(zt))},Ct.scrollbarWidth=function(jt){var zt=Ct.createElement("ace_inner");zt.style.width="100%",zt.style.minWidth="0px",zt.style.height="200px",zt.style.display="block";var Vt=Ct.createElement("ace_outer"),Kt=Vt.style;Kt.position="absolute",Kt.left="-10000px",Kt.overflow="hidden",Kt.width="200px",Kt.minWidth="0px",Kt.height="150px",Kt.display="block",Vt.appendChild(zt);var Xt=jt&&jt.documentElement||document&&document.documentElement;if(!Xt)return 0;Xt.appendChild(Vt);var Qt=zt.offsetWidth;Kt.overflow="scroll";var Zt=zt.offsetWidth;return Qt===Zt&&(Zt=Vt.clientWidth),Xt.removeChild(Vt),Qt-Zt},Ct.computedStyle=function(jt,zt){return window.getComputedStyle(jt,"")||{}},Ct.setStyle=function(jt,zt,Vt){jt[zt]!==Vt&&(jt[zt]=Vt)},Ct.HAS_CSS_ANIMATION=!1,Ct.HAS_CSS_TRANSFORMS=!1,Ct.HI_DPI=At.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,At.isChromeOS&&(Ct.HI_DPI=!1),typeof document<"u"){var Nt=document.createElement("div");Ct.HI_DPI&&Nt.style.transform!==void 0&&(Ct.HAS_CSS_TRANSFORMS=!0),!At.isEdge&&typeof Nt.style.animationName<"u"&&(Ct.HAS_CSS_ANIMATION=!0),Nt=null}Ct.HAS_CSS_TRANSFORMS?Ct.translate=function(jt,zt,Vt){jt.style.transform="translate("+Math.round(zt)+"px, "+Math.round(Vt)+"px)"}:Ct.translate=function(jt,zt,Vt){jt.style.top=Math.round(Vt)+"px",jt.style.left=Math.round(zt)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(yt,Ct,$t){/*
* based on code from:
*
* @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
* Available via the MIT or new BSD license.
* see: http://github.com/jrburke/requirejs for details
*/var At=yt("./dom");Ct.get=function(Bt,Dt){var Ft=new XMLHttpRequest;Ft.open("GET",Bt,!0),Ft.onreadystatechange=function(){Ft.readyState===4&&Dt(Ft.responseText)},Ft.send(null)},Ct.loadScript=function(Bt,Dt){var Ft=At.getDocumentHead(),kt=document.createElement("script");kt.src=Bt,Ft.appendChild(kt),kt.onload=kt.onreadystatechange=function(Mt,Nt){(Nt||!kt.readyState||kt.readyState=="loaded"||kt.readyState=="complete")&&(kt=kt.onload=kt.onreadystatechange=null,Nt||Dt())}},Ct.qualifyURL=function(Bt){var Dt=document.createElement("a");return Dt.href=Bt,Dt.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(yt,Ct,$t){Ct.inherits=function(At,Bt){At.super_=Bt,At.prototype=Object.create(Bt.prototype,{constructor:{value:At,enumerable:!1,writable:!0,configurable:!0}})},Ct.mixin=function(At,Bt){for(var Dt in Bt)At[Dt]=Bt[Dt];return At},Ct.implement=function(At,Bt){Ct.mixin(At,Bt)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(yt,Ct,$t){var At={},Bt=function(){this.propagationStopped=!0},Dt=function(){this.defaultPrevented=!0};At._emit=At._dispatchEvent=function(Ft,kt){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var Mt=this._eventRegistry[Ft]||[],Nt=this._defaultHandlers[Ft];if(!(!Mt.length&&!Nt)){(typeof kt!="object"||!kt)&&(kt={}),kt.type||(kt.type=Ft),kt.stopPropagation||(kt.stopPropagation=Bt),kt.preventDefault||(kt.preventDefault=Dt),Mt=Mt.slice();for(var jt=0;jt<Mt.length&&(Mt[jt](kt,this),!kt.propagationStopped);jt++);if(Nt&&!kt.defaultPrevented)return Nt(kt,this)}},At._signal=function(Ft,kt){var Mt=(this._eventRegistry||{})[Ft];if(Mt){Mt=Mt.slice();for(var Nt=0;Nt<Mt.length;Nt++)Mt[Nt](kt,this)}},At.once=function(Ft,kt){var Mt=this;if(this.on(Ft,function Nt(){Mt.off(Ft,Nt),kt.apply(null,arguments)}),!kt)return new Promise(function(Nt){kt=Nt})},At.setDefaultHandler=function(Ft,kt){var Mt=this._defaultHandlers;if(Mt||(Mt=this._defaultHandlers={_disabled_:{}}),Mt[Ft]){var Nt=Mt[Ft],jt=Mt._disabled_[Ft];jt||(Mt._disabled_[Ft]=jt=[]),jt.push(Nt);var zt=jt.indexOf(kt);zt!=-1&&jt.splice(zt,1)}Mt[Ft]=kt},At.removeDefaultHandler=function(Ft,kt){var Mt=this._defaultHandlers;if(Mt){var Nt=Mt._disabled_[Ft];if(Mt[Ft]==kt)Nt&&this.setDefaultHandler(Ft,Nt.pop());else if(Nt){var jt=Nt.indexOf(kt);jt!=-1&&Nt.splice(jt,1)}}},At.on=At.addEventListener=function(Ft,kt,Mt){this._eventRegistry=this._eventRegistry||{};var Nt=this._eventRegistry[Ft];return Nt||(Nt=this._eventRegistry[Ft]=[]),Nt.indexOf(kt)==-1&&Nt[Mt?"unshift":"push"](kt),kt},At.off=At.removeListener=At.removeEventListener=function(Ft,kt){this._eventRegistry=this._eventRegistry||{};var Mt=this._eventRegistry[Ft];if(Mt){var Nt=Mt.indexOf(kt);Nt!==-1&&Mt.splice(Nt,1)}},At.removeAllListeners=function(Ft){Ft||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[Ft]=void 0),this._defaultHandlers&&(this._defaultHandlers[Ft]=void 0)},Ct.EventEmitter=At}),ace.define("ace/lib/report_error",["require","exports","module"],function(yt,Ct,$t){Ct.reportError=function(Bt,Dt){var Ft=new Error(Bt);Ft.data=Dt,typeof console=="object"&&console.error&&console.error(Ft),setTimeout(function(){throw Ft})}}),ace.define("ace/lib/default_english_messages",["require","exports","module"],function(yt,Ct,$t){var At={"autocomplete.popup.aria-roledescription":"Autocomplete suggestions","autocomplete.popup.aria-label":"Autocomplete suggestions","autocomplete.popup.item.aria-roledescription":"item","autocomplete.loading":"Loading...","editor.scroller.aria-roledescription":"editor","editor.scroller.aria-label":"Editor content, press Enter to start editing, press Escape to exit","editor.gutter.aria-roledescription":"editor","editor.gutter.aria-label":"Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit","error-marker.good-state":"Looks good!","prompt.recently-used":"Recently used","prompt.other-commands":"Other commands","prompt.no-matching-commands":"No matching commands","search-box.find.placeholder":"Search for","search-box.find-all.text":"All","search-box.replace.placeholder":"Replace with","search-box.replace-next.text":"Replace","search-box.replace-all.text":"All","search-box.toggle-replace.title":"Toggle Replace mode","search-box.toggle-regexp.title":"RegExp Search","search-box.toggle-case.title":"CaseSensitive Search","search-box.toggle-whole-word.title":"Whole Word Search","search-box.toggle-in-selection.title":"Search In Selection","search-box.search-counter":"$0 of $1","text-input.aria-roledescription":"editor","text-input.aria-label":"Cursor at row $0","gutter.code-folding.range.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.closed.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.open.aria-label":"Toggle code folding, row $0","gutter.code-folding.closed.title":"Unfold code","gutter.code-folding.open.title":"Fold code","gutter.annotation.aria-label.error":"Error, read annotations row $0","gutter.annotation.aria-label.warning":"Warning, read annotations row $0","gutter.annotation.aria-label.info":"Info, read annotations row $0","inline-fold.closed.title":"Unfold code","gutter-tooltip.aria-label.error.singular":"error","gutter-tooltip.aria-label.error.plural":"errors","gutter-tooltip.aria-label.warning.singular":"warning","gutter-tooltip.aria-label.warning.plural":"warnings","gutter-tooltip.aria-label.info.singular":"information message","gutter-tooltip.aria-label.info.plural":"information messages"};Ct.defaultEnglishMessages=At}),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/report_error","ace/lib/default_english_messages"],function(yt,Ct,$t){"no use strict";var At=yt("./oop"),Bt=yt("./event_emitter").EventEmitter,Dt=yt("./report_error").reportError,Ft=yt("./default_english_messages").defaultEnglishMessages,kt={setOptions:function(Vt){Object.keys(Vt).forEach(function(Kt){this.setOption(Kt,Vt[Kt])},this)},getOptions:function(Vt){var Kt={};if(Vt)Array.isArray(Vt)||(Kt=Vt,Vt=Object.keys(Kt));else{var Xt=this.$options;Vt=Object.keys(Xt).filter(function(Qt){return!Xt[Qt].hidden})}return Vt.forEach(function(Qt){Kt[Qt]=this.getOption(Qt)},this),Kt},setOption:function(Vt,Kt){if(this["$"+Vt]!==Kt){var Xt=this.$options[Vt];if(!Xt)return Mt('misspelled option "'+Vt+'"');if(Xt.forwardTo)return this[Xt.forwardTo]&&this[Xt.forwardTo].setOption(Vt,Kt);Xt.handlesSet||(this["$"+Vt]=Kt),Xt&&Xt.set&&Xt.set.call(this,Kt)}},getOption:function(Vt){var Kt=this.$options[Vt];return Kt?Kt.forwardTo?this[Kt.forwardTo]&&this[Kt.forwardTo].getOption(Vt):Kt&&Kt.get?Kt.get.call(this):this["$"+Vt]:Mt('misspelled option "'+Vt+'"')}};function Mt(Vt){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}var Nt,jt,zt=function(){function Vt(){this.$defaultOptions={},Nt=Ft,jt="dollarSigns"}return Vt.prototype.defineOptions=function(Kt,Xt,Qt){return Kt.$options||(this.$defaultOptions[Xt]=Kt.$options={}),Object.keys(Qt).forEach(function(Zt){var dr=Qt[Zt];typeof dr=="string"&&(dr={forwardTo:dr}),dr.name||(dr.name=Zt),Kt.$options[dr.name]=dr,"initialValue"in dr&&(Kt["$"+dr.name]=dr.initialValue)}),At.implement(Kt,kt),this},Vt.prototype.resetOptions=function(Kt){Object.keys(Kt.$options).forEach(function(Xt){var Qt=Kt.$options[Xt];"value"in Qt&&Kt.setOption(Xt,Qt.value)})},Vt.prototype.setDefaultValue=function(Kt,Xt,Qt){if(!Kt){for(Kt in this.$defaultOptions)if(this.$defaultOptions[Kt][Xt])break;if(!this.$defaultOptions[Kt][Xt])return!1}var Zt=this.$defaultOptions[Kt]||(this.$defaultOptions[Kt]={});Zt[Xt]&&(Zt.forwardTo?this.setDefaultValue(Zt.forwardTo,Xt,Qt):Zt[Xt].value=Qt)},Vt.prototype.setDefaultValues=function(Kt,Xt){Object.keys(Xt).forEach(function(Qt){this.setDefaultValue(Kt,Qt,Xt[Qt])},this)},Vt.prototype.setMessages=function(Kt,Xt){Nt=Kt,Xt&&Xt.placeholders&&(jt=Xt.placeholders)},Vt.prototype.nls=function(Kt,Xt,Qt){Nt[Kt]||(Mt("No message found for the key '"+Kt+"' in the provided messages, trying to find a translation for the default string '"+Xt+"'."),Nt[Xt]||Mt("No message found for the default string '"+Xt+"' in the provided messages. Falling back to the default English message."));var Zt=Nt[Kt]||Nt[Xt]||Xt;return Qt&&(jt==="dollarSigns"&&(Zt=Zt.replace(/\$(\$|[\d]+)/g,function(dr,cr){return cr=="$"?"$":Qt[cr]})),jt==="curlyBrackets"&&(Zt=Zt.replace(/\{([^\}]+)\}/g,function(dr,cr){return Qt[cr]}))),Zt},Vt}();zt.prototype.warn=Mt,zt.prototype.reportError=Dt,At.implement(zt.prototype,Bt),Ct.AppConfig=zt}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(yt,Ct,$t){$t.exports=`.ace-tm .ace_gutter {
  background: #f0f0f0;
  color: #333;
}

.ace-tm .ace_print-margin {
  width: 1px;
  background: #e8e8e8;
}

.ace-tm .ace_fold {
    background-color: #6B72E6;
}

.ace-tm {
  background-color: #FFFFFF;
  color: black;
}

.ace-tm .ace_cursor {
  color: black;
}
        
.ace-tm .ace_invisible {
  color: rgb(191, 191, 191);
}

.ace-tm .ace_storage,
.ace-tm .ace_keyword {
  color: blue;
}

.ace-tm .ace_constant {
  color: rgb(197, 6, 11);
}

.ace-tm .ace_constant.ace_buildin {
  color: rgb(88, 72, 246);
}

.ace-tm .ace_constant.ace_language {
  color: rgb(88, 92, 246);
}

.ace-tm .ace_constant.ace_library {
  color: rgb(6, 150, 14);
}

.ace-tm .ace_invalid {
  background-color: rgba(255, 0, 0, 0.1);
  color: red;
}

.ace-tm .ace_support.ace_function {
  color: rgb(60, 76, 114);
}

.ace-tm .ace_support.ace_constant {
  color: rgb(6, 150, 14);
}

.ace-tm .ace_support.ace_type,
.ace-tm .ace_support.ace_class {
  color: rgb(109, 121, 222);
}

.ace-tm .ace_keyword.ace_operator {
  color: rgb(104, 118, 135);
}

.ace-tm .ace_string {
  color: rgb(3, 106, 7);
}

.ace-tm .ace_comment {
  color: rgb(76, 136, 107);
}

.ace-tm .ace_comment.ace_doc {
  color: rgb(0, 102, 255);
}

.ace-tm .ace_comment.ace_doc.ace_tag {
  color: rgb(128, 159, 191);
}

.ace-tm .ace_constant.ace_numeric {
  color: rgb(0, 0, 205);
}

.ace-tm .ace_variable {
  color: rgb(49, 132, 149);
}

.ace-tm .ace_xml-pe {
  color: rgb(104, 104, 91);
}

.ace-tm .ace_entity.ace_name.ace_function {
  color: #0000A2;
}


.ace-tm .ace_heading {
  color: rgb(12, 7, 255);
}

.ace-tm .ace_list {
  color:rgb(185, 6, 144);
}

.ace-tm .ace_meta.ace_tag {
  color:rgb(0, 22, 142);
}

.ace-tm .ace_string.ace_regex {
  color: rgb(255, 0, 0)
}

.ace-tm .ace_marker-layer .ace_selection {
  background: rgb(181, 213, 255);
}
.ace-tm.ace_multiselect .ace_selection.ace_start {
  box-shadow: 0 0 3px 0px white;
}
.ace-tm .ace_marker-layer .ace_step {
  background: rgb(252, 255, 0);
}

.ace-tm .ace_marker-layer .ace_stack {
  background: rgb(164, 229, 101);
}

.ace-tm .ace_marker-layer .ace_bracket {
  margin: -1px 0 0 -1px;
  border: 1px solid rgb(192, 192, 192);
}

.ace-tm .ace_marker-layer .ace_active-line {
  background: rgba(0, 0, 0, 0.07);
}

.ace-tm .ace_gutter-active-line {
    background-color : #dcdcdc;
}

.ace-tm .ace_marker-layer .ace_selected-word {
  background: rgb(250, 250, 255);
  border: 1px solid rgb(200, 200, 250);
}

.ace-tm .ace_indent-guide {
  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
}

.ace-tm .ace_indent-guide-active {
  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
}
`}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(yt,Ct,$t){Ct.isDark=!1,Ct.cssClass="ace-tm",Ct.cssText=yt("./textmate-css"),Ct.$id="ace/theme/textmate";var At=yt("../lib/dom");At.importCssString(Ct.cssText,Ct.cssClass,!1)}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(yt,Ct,$t){"no use strict";var At=yt("./lib/lang"),Bt=yt("./lib/net"),Dt=yt("./lib/dom"),Ft=yt("./lib/app_config").AppConfig;$t.exports=Ct=new Ft;var kt={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};Ct.get=function(zt){if(!kt.hasOwnProperty(zt))throw new Error("Unknown config key: "+zt);return kt[zt]},Ct.set=function(zt,Vt){if(kt.hasOwnProperty(zt))kt[zt]=Vt;else if(this.setDefaultValue("",zt,Vt)==!1)throw new Error("Unknown config key: "+zt);zt=="useStrictCSP"&&Dt.useStrictCSP(Vt)},Ct.all=function(){return At.copyObject(kt)},Ct.$modes={},Ct.moduleUrl=function(zt,Vt){if(kt.$moduleUrls[zt])return kt.$moduleUrls[zt];var Kt=zt.split("/");Vt=Vt||Kt[Kt.length-2]||"";var Xt=Vt=="snippets"?"/":"-",Qt=Kt[Kt.length-1];if(Vt=="worker"&&Xt=="-"){var Zt=new RegExp("^"+Vt+"[\\-_]|[\\-_]"+Vt+"$","g");Qt=Qt.replace(Zt,"")}(!Qt||Qt==Vt)&&Kt.length>1&&(Qt=Kt[Kt.length-2]);var dr=kt[Vt+"Path"];return dr==null?dr=kt.basePath:Xt=="/"&&(Vt=Xt=""),dr&&dr.slice(-1)!="/"&&(dr+="/"),dr+Vt+Xt+Qt+this.get("suffix")},Ct.setModuleUrl=function(zt,Vt){return kt.$moduleUrls[zt]=Vt};var Mt=function(zt,Vt){if(zt==="ace/theme/textmate"||zt==="./theme/textmate")return Vt(null,yt("./theme/textmate"));if(Nt)return Nt(zt,Vt);console.error("loader is not configured")},Nt;Ct.setLoader=function(zt){Nt=zt},Ct.dynamicModules=Object.create(null),Ct.$loading={},Ct.$loaded={},Ct.loadModule=function(zt,Vt){var Kt;if(Array.isArray(zt))var Xt=zt[0],Qt=zt[1];else if(typeof zt=="string")var Qt=zt;var Zt=function(dr){if(dr&&!Ct.$loading[Qt])return Vt&&Vt(dr);if(Ct.$loading[Qt]||(Ct.$loading[Qt]=[]),Ct.$loading[Qt].push(Vt),!(Ct.$loading[Qt].length>1)){var cr=function(){Mt(Qt,function(Er,pr){pr&&(Ct.$loaded[Qt]=pr),Ct._emit("load.module",{name:Qt,module:pr});var gr=Ct.$loading[Qt];Ct.$loading[Qt]=null,gr.forEach(function(vr){vr&&vr(pr)})})};if(!Ct.get("packaged"))return cr();Bt.loadScript(Ct.moduleUrl(Qt,Xt),cr),jt()}};if(Ct.dynamicModules[Qt])Ct.dynamicModules[Qt]().then(function(dr){dr.default?Zt(dr.default):Zt(dr)});else{try{Kt=this.$require(Qt)}catch{}Zt(Kt||Ct.$loaded[Qt])}},Ct.$require=function(zt){if(typeof $t.require=="function"){var Vt="require";return $t[Vt](zt)}},Ct.setModuleLoader=function(zt,Vt){Ct.dynamicModules[zt]=Vt};var jt=function(){!kt.basePath&&!kt.workerPath&&!kt.modePath&&!kt.themePath&&!Object.keys(kt.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),jt=function(){})};Ct.version="1.35.3"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(yt,Ct,$t){yt("./lib/fixoldbrowsers");var At=yt("./config");At.setLoader(function(kt,Mt){yt([kt],function(Nt){Mt(null,Nt)})});var Bt=function(){return this||typeof window<"u"&&window}();$t.exports=function(kt){At.init=Dt,At.$require=yt,kt.require=yt},Dt(!0);function Dt(kt){if(!(!Bt||!Bt.document)){At.set("packaged",kt||yt.packaged||$t.packaged||Bt.define&&(void 0).packaged);var Mt={},Nt="",jt=document.currentScript||document._currentScript,zt=jt&&jt.ownerDocument||document;jt&&jt.src&&(Nt=jt.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var Vt=zt.getElementsByTagName("script"),Kt=0;Kt<Vt.length;Kt++){var Xt=Vt[Kt],Qt=Xt.src||Xt.getAttribute("src");if(Qt){for(var Zt=Xt.attributes,dr=0,cr=Zt.length;dr<cr;dr++){var Er=Zt[dr];Er.name.indexOf("data-ace-")===0&&(Mt[Ft(Er.name.replace(/^data-ace-/,""))]=Er.value)}var pr=Qt.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);pr&&(Nt=pr[1])}}Nt&&(Mt.base=Mt.base||Nt,Mt.packaged=!0),Mt.basePath=Mt.base,Mt.workerPath=Mt.workerPath||Mt.base,Mt.modePath=Mt.modePath||Mt.base,Mt.themePath=Mt.themePath||Mt.base,delete Mt.base;for(var gr in Mt)typeof Mt[gr]<"u"&&At.set(gr,Mt[gr])}}function Ft(kt){return kt.replace(/-(.)/g,function(Mt,Nt){return Nt.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(yt,Ct,$t){var At=function(){function Bt(Dt,Ft,kt,Mt){this.start={row:Dt,column:Ft},this.end={row:kt,column:Mt}}return Bt.prototype.isEqual=function(Dt){return this.start.row===Dt.start.row&&this.end.row===Dt.end.row&&this.start.column===Dt.start.column&&this.end.column===Dt.end.column},Bt.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},Bt.prototype.contains=function(Dt,Ft){return this.compare(Dt,Ft)==0},Bt.prototype.compareRange=function(Dt){var Ft,kt=Dt.end,Mt=Dt.start;return Ft=this.compare(kt.row,kt.column),Ft==1?(Ft=this.compare(Mt.row,Mt.column),Ft==1?2:Ft==0?1:0):Ft==-1?-2:(Ft=this.compare(Mt.row,Mt.column),Ft==-1?-1:Ft==1?42:0)},Bt.prototype.comparePoint=function(Dt){return this.compare(Dt.row,Dt.column)},Bt.prototype.containsRange=function(Dt){return this.comparePoint(Dt.start)==0&&this.comparePoint(Dt.end)==0},Bt.prototype.intersects=function(Dt){var Ft=this.compareRange(Dt);return Ft==-1||Ft==0||Ft==1},Bt.prototype.isEnd=function(Dt,Ft){return this.end.row==Dt&&this.end.column==Ft},Bt.prototype.isStart=function(Dt,Ft){return this.start.row==Dt&&this.start.column==Ft},Bt.prototype.setStart=function(Dt,Ft){typeof Dt=="object"?(this.start.column=Dt.column,this.start.row=Dt.row):(this.start.row=Dt,this.start.column=Ft)},Bt.prototype.setEnd=function(Dt,Ft){typeof Dt=="object"?(this.end.column=Dt.column,this.end.row=Dt.row):(this.end.row=Dt,this.end.column=Ft)},Bt.prototype.inside=function(Dt,Ft){return this.compare(Dt,Ft)==0?!(this.isEnd(Dt,Ft)||this.isStart(Dt,Ft)):!1},Bt.prototype.insideStart=function(Dt,Ft){return this.compare(Dt,Ft)==0?!this.isEnd(Dt,Ft):!1},Bt.prototype.insideEnd=function(Dt,Ft){return this.compare(Dt,Ft)==0?!this.isStart(Dt,Ft):!1},Bt.prototype.compare=function(Dt,Ft){return!this.isMultiLine()&&Dt===this.start.row?Ft<this.start.column?-1:Ft>this.end.column?1:0:Dt<this.start.row?-1:Dt>this.end.row?1:this.start.row===Dt?Ft>=this.start.column?0:-1:this.end.row===Dt?Ft<=this.end.column?0:1:0},Bt.prototype.compareStart=function(Dt,Ft){return this.start.row==Dt&&this.start.column==Ft?-1:this.compare(Dt,Ft)},Bt.prototype.compareEnd=function(Dt,Ft){return this.end.row==Dt&&this.end.column==Ft?1:this.compare(Dt,Ft)},Bt.prototype.compareInside=function(Dt,Ft){return this.end.row==Dt&&this.end.column==Ft?1:this.start.row==Dt&&this.start.column==Ft?-1:this.compare(Dt,Ft)},Bt.prototype.clipRows=function(Dt,Ft){if(this.end.row>Ft)var kt={row:Ft+1,column:0};else if(this.end.row<Dt)var kt={row:Dt,column:0};if(this.start.row>Ft)var Mt={row:Ft+1,column:0};else if(this.start.row<Dt)var Mt={row:Dt,column:0};return Bt.fromPoints(Mt||this.start,kt||this.end)},Bt.prototype.extend=function(Dt,Ft){var kt=this.compare(Dt,Ft);if(kt==0)return this;if(kt==-1)var Mt={row:Dt,column:Ft};else var Nt={row:Dt,column:Ft};return Bt.fromPoints(Mt||this.start,Nt||this.end)},Bt.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},Bt.prototype.isMultiLine=function(){return this.start.row!==this.end.row},Bt.prototype.clone=function(){return Bt.fromPoints(this.start,this.end)},Bt.prototype.collapseRows=function(){return this.end.column==0?new Bt(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new Bt(this.start.row,0,this.end.row,0)},Bt.prototype.toScreenRange=function(Dt){var Ft=Dt.documentToScreenPosition(this.start),kt=Dt.documentToScreenPosition(this.end);return new Bt(Ft.row,Ft.column,kt.row,kt.column)},Bt.prototype.moveBy=function(Dt,Ft){this.start.row+=Dt,this.start.column+=Ft,this.end.row+=Dt,this.end.column+=Ft},Bt}();At.fromPoints=function(Bt,Dt){return new At(Bt.row,Bt.column,Dt.row,Dt.column)},At.comparePoints=function(Bt,Dt){return Bt.row-Dt.row||Bt.column-Dt.column},Ct.Range=At}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(yt,Ct,$t){for(var At=yt("./oop"),Bt={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete","-13":"NumpadEnter",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",59:";",61:"=",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}},Dt={Command:224,Backspace:8,Tab:9,Return:13,Enter:13,Pause:19,Escape:27,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Delete:46,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Backquote:192,Minus:189,Equal:187,BracketLeft:219,Backslash:220,BracketRight:221,Semicolon:186,Quote:222,Comma:188,Period:190,Slash:191,Space:32,NumpadAdd:107,NumpadDecimal:110,NumpadSubtract:109,NumpadDivide:111,NumpadMultiply:106},Ft=0;Ft<10;Ft++)Dt["Digit"+Ft]=48+Ft,Dt["Numpad"+Ft]=96+Ft,Bt.PRINTABLE_KEYS[48+Ft]=""+Ft,Bt.FUNCTION_KEYS[96+Ft]="Numpad"+Ft;for(var Ft=65;Ft<91;Ft++){var kt=String.fromCharCode(Ft+32);Dt["Key"+kt.toUpperCase()]=Ft,Bt.PRINTABLE_KEYS[Ft]=kt}for(var Ft=1;Ft<13;Ft++)Dt["F"+Ft]=111+Ft,Bt.FUNCTION_KEYS[111+Ft]="F"+Ft;var Mt={Shift:16,Control:17,Alt:18,Meta:224};for(var Nt in Mt)Dt[Nt]=Dt[Nt+"Left"]=Dt[Nt+"Right"]=Mt[Nt];Ct.$codeToKeyCode=Dt,Bt.PRINTABLE_KEYS[173]="-";for(var jt in Bt.FUNCTION_KEYS){var zt=Bt.FUNCTION_KEYS[jt].toLowerCase();Bt[zt]=parseInt(jt,10)}for(var jt in Bt.PRINTABLE_KEYS){var zt=Bt.PRINTABLE_KEYS[jt].toLowerCase();Bt[zt]=parseInt(jt,10)}At.mixin(Bt,Bt.MODIFIER_KEYS),At.mixin(Bt,Bt.PRINTABLE_KEYS),At.mixin(Bt,Bt.FUNCTION_KEYS),Bt.enter=Bt.return,Bt.escape=Bt.esc,Bt.del=Bt.delete,function(){for(var Vt=["cmd","ctrl","alt","shift"],Kt=Math.pow(2,Vt.length);Kt--;)Bt.KEY_MODS[Kt]=Vt.filter(function(Xt){return Kt&Bt.KEY_MODS[Xt]}).join("-")+"-"}(),Bt.KEY_MODS[0]="",Bt.KEY_MODS[-1]="input-",At.mixin(Ct,Bt),Ct.default=Ct,Ct.keyCodeToString=function(Vt){var Kt=Bt[Vt];return typeof Kt!="string"&&(Kt=String.fromCharCode(Vt)),Kt.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(yt,Ct,$t){var At=yt("./keys"),Bt=yt("./useragent"),Dt=null,Ft=0,kt;function Mt(){kt=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return kt={passive:!1},!0}})}catch{}}function Nt(){return kt==null&&Mt(),kt}function jt(dr,cr,Er){this.elem=dr,this.type=cr,this.callback=Er}jt.prototype.destroy=function(){Vt(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var zt=Ct.addListener=function(dr,cr,Er,pr){dr.addEventListener(cr,Er,Nt()),pr&&pr.$toDestroy.push(new jt(dr,cr,Er))},Vt=Ct.removeListener=function(dr,cr,Er){dr.removeEventListener(cr,Er,Nt())};Ct.stopEvent=function(dr){return Ct.stopPropagation(dr),Ct.preventDefault(dr),!1},Ct.stopPropagation=function(dr){dr.stopPropagation&&dr.stopPropagation()},Ct.preventDefault=function(dr){dr.preventDefault&&dr.preventDefault()},Ct.getButton=function(dr){return dr.type=="dblclick"?0:dr.type=="contextmenu"||Bt.isMac&&dr.ctrlKey&&!dr.altKey&&!dr.shiftKey?2:dr.button},Ct.capture=function(dr,cr,Er){var pr=dr&&dr.ownerDocument||document;function gr(vr){cr&&cr(vr),Er&&Er(vr),Vt(pr,"mousemove",cr),Vt(pr,"mouseup",gr),Vt(pr,"dragstart",gr)}return zt(pr,"mousemove",cr),zt(pr,"mouseup",gr),zt(pr,"dragstart",gr),gr},Ct.addMouseWheelListener=function(dr,cr,Er){zt(dr,"wheel",function(pr){var gr=.15,vr=pr.deltaX||0,yr=pr.deltaY||0;switch(pr.deltaMode){case pr.DOM_DELTA_PIXEL:pr.wheelX=vr*gr,pr.wheelY=yr*gr;break;case pr.DOM_DELTA_LINE:var xr=15;pr.wheelX=vr*xr,pr.wheelY=yr*xr;break;case pr.DOM_DELTA_PAGE:var rr=150;pr.wheelX=vr*rr,pr.wheelY=yr*rr;break}cr(pr)},Er)},Ct.addMultiMouseDownListener=function(dr,cr,Er,pr,gr){var vr=0,yr,xr,rr,Lt={2:"dblclick",3:"tripleclick",4:"quadclick"};function Ht(Wt){if(Ct.getButton(Wt)!==0?vr=0:Wt.detail>1?(vr++,vr>4&&(vr=1)):vr=1,Bt.isIE){var Gt=Math.abs(Wt.clientX-yr)>5||Math.abs(Wt.clientY-xr)>5;(!rr||Gt)&&(vr=1),rr&&clearTimeout(rr),rr=setTimeout(function(){rr=null},cr[vr-1]||600),vr==1&&(yr=Wt.clientX,xr=Wt.clientY)}if(Wt._clicks=vr,Er[pr]("mousedown",Wt),vr>4)vr=0;else if(vr>1)return Er[pr](Lt[vr],Wt)}Array.isArray(dr)||(dr=[dr]),dr.forEach(function(Wt){zt(Wt,"mousedown",Ht,gr)})};function Kt(dr){return 0|(dr.ctrlKey?1:0)|(dr.altKey?2:0)|(dr.shiftKey?4:0)|(dr.metaKey?8:0)}Ct.getModifierString=function(dr){return At.KEY_MODS[Kt(dr)]};function Xt(dr,cr,Er){var pr=Kt(cr);if(!Er&&cr.code&&(Er=At.$codeToKeyCode[cr.code]||Er),!Bt.isMac&&Dt){if(cr.getModifierState&&(cr.getModifierState("OS")||cr.getModifierState("Win"))&&(pr|=8),Dt.altGr)if((3&pr)!=3)Dt.altGr=0;else return;if(Er===18||Er===17){var gr=cr.location;if(Er===17&&gr===1)Dt[Er]==1&&(Ft=cr.timeStamp);else if(Er===18&&pr===3&&gr===2){var vr=cr.timeStamp-Ft;vr<50&&(Dt.altGr=!0)}}}if(Er in At.MODIFIER_KEYS&&(Er=-1),!(!pr&&Er===13&&cr.location===3&&(dr(cr,pr,-Er),cr.defaultPrevented))){if(Bt.isChromeOS&&pr&8){if(dr(cr,pr,Er),cr.defaultPrevented)return;pr&=-9}return!pr&&!(Er in At.FUNCTION_KEYS)&&!(Er in At.PRINTABLE_KEYS)?!1:dr(cr,pr,Er)}}Ct.addCommandKeyListener=function(dr,cr,Er){var pr=null;zt(dr,"keydown",function(gr){Dt[gr.keyCode]=(Dt[gr.keyCode]||0)+1;var vr=Xt(cr,gr,gr.keyCode);return pr=gr.defaultPrevented,vr},Er),zt(dr,"keypress",function(gr){pr&&(gr.ctrlKey||gr.altKey||gr.shiftKey||gr.metaKey)&&(Ct.stopEvent(gr),pr=null)},Er),zt(dr,"keyup",function(gr){Dt[gr.keyCode]=null},Er),Dt||(Qt(),zt(window,"focus",Qt))};function Qt(){Dt=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!Bt.isOldIE){var Zt=1;Ct.nextTick=function(dr,cr){cr=cr||window;var Er="zero-timeout-message-"+Zt++,pr=function(gr){gr.data==Er&&(Ct.stopPropagation(gr),Vt(cr,"message",pr),dr())};zt(cr,"message",pr),cr.postMessage(Er,"*")}}Ct.$idleBlocked=!1,Ct.onIdle=function(dr,cr){return setTimeout(function Er(){Ct.$idleBlocked?setTimeout(Er,100):dr()},cr)},Ct.$idleBlockId=null,Ct.blockIdle=function(dr){Ct.$idleBlockId&&clearTimeout(Ct.$idleBlockId),Ct.$idleBlocked=!0,Ct.$idleBlockId=setTimeout(function(){Ct.$idleBlocked=!1},dr||100)},Ct.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),Ct.nextFrame?Ct.nextFrame=Ct.nextFrame.bind(window):Ct.nextFrame=function(dr){setTimeout(dr,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(yt,Ct,$t){var At;$t.exports={lineMode:!1,pasteCancelled:function(){return At&&At>Date.now()-50?!0:At=!1},cancel:function(){At=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(yt,Ct,$t){var At=yt("../lib/event"),Bt=yt("../config").nls,Dt=yt("../lib/useragent"),Ft=yt("../lib/dom"),kt=yt("../lib/lang"),Mt=yt("../clipboard"),Nt=Dt.isChrome<18,jt=Dt.isIE,zt=Dt.isChrome>63,Vt=400,Kt=yt("../lib/keys"),Xt=Kt.KEY_MODS,Qt=Dt.isIOS,Zt=Qt?/\s/:/\n/,dr=Dt.isMobile,cr;cr=function(Er,pr){var gr=Ft.createElement("textarea");gr.className="ace_text-input",gr.setAttribute("wrap","off"),gr.setAttribute("autocorrect","off"),gr.setAttribute("autocapitalize","off"),gr.setAttribute("spellcheck","false"),gr.style.opacity="0",Er.insertBefore(gr,Er.firstChild);var vr=!1,yr=!1,xr=!1,rr=!1,Lt="";dr||(gr.style.fontSize="1px");var Ht=!1,Wt=!1,Gt="",Yt=0,er=0,lr=0,Jt=Number.MAX_SAFE_INTEGER,Ut=Number.MIN_SAFE_INTEGER,ir=0;try{var Cr=document.activeElement===gr}catch{}this.setNumberOfExtraLines=function(Yr){if(Jt=Number.MAX_SAFE_INTEGER,Ut=Number.MIN_SAFE_INTEGER,Yr<0){ir=0;return}ir=Yr},this.setAriaOptions=function(Yr){if(Yr.activeDescendant?(gr.setAttribute("aria-haspopup","true"),gr.setAttribute("aria-autocomplete",Yr.inline?"both":"list"),gr.setAttribute("aria-activedescendant",Yr.activeDescendant)):(gr.setAttribute("aria-haspopup","false"),gr.setAttribute("aria-autocomplete","both"),gr.removeAttribute("aria-activedescendant")),Yr.role&&gr.setAttribute("role",Yr.role),Yr.setLabel){gr.setAttribute("aria-roledescription",Bt("text-input.aria-roledescription","editor"));var Gr="";if(pr.$textInputAriaLabel&&(Gr+="".concat(pr.$textInputAriaLabel,", ")),pr.session){var Jr=pr.session.selection.cursor.row;Gr+=Bt("text-input.aria-label","Cursor at row $0",[Jr+1])}gr.setAttribute("aria-label",Gr)}},this.setAriaOptions({role:"textbox"}),At.addListener(gr,"blur",function(Yr){Wt||(pr.onBlur(Yr),Cr=!1)},pr),At.addListener(gr,"focus",function(Yr){if(!Wt){if(Cr=!0,Dt.isEdge)try{if(!document.hasFocus())return}catch{}pr.onFocus(Yr),Dt.isEdge?setTimeout($r):$r()}},pr),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:pr.renderer.enableKeyboardAccessibility}),Lt||zt||this.$focusScroll=="browser")return gr.focus({preventScroll:!0});var Yr=gr.style.top;gr.style.position="fixed",gr.style.top="0px";try{var Gr=gr.getBoundingClientRect().top!=0}catch{return}var Jr=[];if(Gr)for(var wn=gr.parentElement;wn&&wn.nodeType==1;)Jr.push(wn),wn.setAttribute("ace_nocontext","true"),!wn.parentElement&&wn.getRootNode?wn=wn.getRootNode().host:wn=wn.parentElement;gr.focus({preventScroll:!0}),Gr&&Jr.forEach(function(kr){kr.removeAttribute("ace_nocontext")}),setTimeout(function(){gr.style.position="",gr.style.top=="0px"&&(gr.style.top=Yr)},0)},this.blur=function(){gr.blur()},this.isFocused=function(){return Cr},pr.on("beforeEndOperation",function(){var Yr=pr.curOp,Gr=Yr&&Yr.command&&Yr.command.name;if(Gr!="insertstring"){var Jr=Gr&&(Yr.docChanged||Yr.selectionChanged);xr&&Jr&&(Gt=gr.value="",Ur()),$r()}});var _r=function(Yr,Gr){for(var Jr=Gr,wn=1;wn<=Yr-Jt&&wn<2*ir+1;wn++)Jr+=pr.session.getLine(Yr-wn).length+1;return Jr},$r=Qt?function(Yr){if(!(!Cr||vr&&!Yr||rr)){Yr||(Yr="");var Gr=`
 ab`+Yr+`cde fg
`;Gr!=gr.value&&(gr.value=Gt=Gr);var Jr=4,wn=4+(Yr.length||(pr.selection.isEmpty()?0:1));(Yt!=Jr||er!=wn)&&gr.setSelectionRange(Jr,wn),Yt=Jr,er=wn}}:function(){if(!(xr||rr)&&!(!Cr&&!Fr)){xr=!0;var Yr=0,Gr=0,Jr="";if(pr.session){var wn=pr.selection,kr=wn.getRange(),Mr=wn.cursor.row;Mr===Ut+1?(Jt=Ut+1,Ut=Jt+2*ir):Mr===Jt-1?(Ut=Jt-1,Jt=Ut-2*ir):(Mr<Jt-1||Mr>Ut+1)&&(Jt=Mr>ir?Mr-ir:0,Ut=Mr>ir?Mr+ir:2*ir);for(var Ir=[],Hr=Jt;Hr<=Ut;Hr++)Ir.push(pr.session.getLine(Hr));if(Jr=Ir.join(`
`),Yr=_r(kr.start.row,kr.start.column),Gr=_r(kr.end.row,kr.end.column),kr.start.row<Jt){var Vr=pr.session.getLine(Jt-1);Yr=kr.start.row<Jt-1?0:Yr,Gr+=Vr.length+1,Jr=Vr+`
`+Jr}else if(kr.end.row>Ut){var on=pr.session.getLine(Ut+1);Gr=kr.end.row>Ut+1?on.length:kr.end.column,Gr+=Jr.length+1,Jr=Jr+`
`+on}else dr&&Mr>0&&(Jr=`
`+Jr,Gr+=1,Yr+=1);Jr.length>Vt&&(Yr<Vt&&Gr<Vt?Jr=Jr.slice(0,Vt):(Jr=`
`,Yr==Gr?Yr=Gr=0:(Yr=0,Gr=1)));var Qr=Jr+`

`;Qr!=Gt&&(gr.value=Gt=Qr,Yt=er=Qr.length)}if(Fr&&(Yt=gr.selectionStart,er=gr.selectionEnd),er!=Gr||Yt!=Yr||gr.selectionEnd!=er)try{gr.setSelectionRange(Yr,Gr),Yt=Yr,er=Gr}catch{}xr=!1}};this.resetSelection=$r,Cr&&pr.onFocus();var Tr=function(Yr){return Yr.selectionStart===0&&Yr.selectionEnd>=Gt.length&&Yr.value===Gt&&Gt&&Yr.selectionEnd!==er},Dr=function(Yr){xr||(vr?vr=!1:Tr(gr)?(pr.selectAll(),$r()):dr&&gr.selectionStart!=Yt&&$r())},Ar=null;this.setInputHandler=function(Yr){Ar=Yr},this.getInputHandler=function(){return Ar};var Fr=!1,Rr=function(Yr,Gr){if(Fr&&(Fr=!1),yr)return $r(),Yr&&pr.onPaste(Yr),yr=!1,"";for(var Jr=gr.selectionStart,wn=gr.selectionEnd,kr=Yt,Mr=Gt.length-er,Ir=Yr,Hr=Yr.length-Jr,Vr=Yr.length-wn,on=0;kr>0&&Gt[on]==Yr[on];)on++,kr--;for(Ir=Ir.slice(on),on=1;Mr>0&&Gt.length-on>Yt-1&&Gt[Gt.length-on]==Yr[Yr.length-on];)on++,Mr--;Hr-=on-1,Vr-=on-1;var Qr=Ir.length-on+1;if(Qr<0&&(kr=-Qr,Qr=0),Ir=Ir.slice(0,Qr),!Gr&&!Ir&&!Hr&&!kr&&!Mr&&!Vr)return"";rr=!0;var hn=!1;return Dt.isAndroid&&Ir==". "&&(Ir="  ",hn=!0),Ir&&!kr&&!Mr&&!Hr&&!Vr||Ht?pr.onTextInput(Ir):pr.onTextInput(Ir,{extendLeft:kr,extendRight:Mr,restoreStart:Hr,restoreEnd:Vr}),rr=!1,Gt=Yr,Yt=Jr,er=wn,lr=Vr,hn?`
`:Ir},wr=function(Yr){if(xr)return Wr();if(Yr&&Yr.inputType){if(Yr.inputType=="historyUndo")return pr.execCommand("undo");if(Yr.inputType=="historyRedo")return pr.execCommand("redo")}var Gr=gr.value,Jr=Rr(Gr,!0);(Gr.length>Vt+100||Zt.test(Jr)||dr&&Yt<1&&Yt==er)&&$r()},Sr=function(Yr,Gr,Jr){var wn=Yr.clipboardData||window.clipboardData;if(!(!wn||Nt)){var kr=jt||Jr?"Text":"text/plain";try{return Gr?wn.setData(kr,Gr)!==!1:wn.getData(kr)}catch(Mr){if(!Jr)return Sr(Mr,Gr,!0)}}},Br=function(Yr,Gr){var Jr=pr.getCopyText();if(!Jr)return At.preventDefault(Yr);Sr(Yr,Jr)?(Qt&&($r(Jr),vr=Jr,setTimeout(function(){vr=!1},10)),Gr?pr.onCut():pr.onCopy(),At.preventDefault(Yr)):(vr=!0,gr.value=Jr,gr.select(),setTimeout(function(){vr=!1,$r(),Gr?pr.onCut():pr.onCopy()}))},Or=function(Yr){Br(Yr,!0)},Pr=function(Yr){Br(Yr,!1)},Nr=function(Yr){var Gr=Sr(Yr);Mt.pasteCancelled()||(typeof Gr=="string"?(Gr&&pr.onPaste(Gr,Yr),Dt.isIE&&setTimeout($r),At.preventDefault(Yr)):(gr.value="",yr=!0))};At.addCommandKeyListener(gr,function(Yr,Gr,Jr){if(!xr)return pr.onCommandKey(Yr,Gr,Jr)},pr),At.addListener(gr,"select",Dr,pr),At.addListener(gr,"input",wr,pr),At.addListener(gr,"cut",Or,pr),At.addListener(gr,"copy",Pr,pr),At.addListener(gr,"paste",Nr,pr),(!("oncut"in gr)||!("oncopy"in gr)||!("onpaste"in gr))&&At.addListener(Er,"keydown",function(Yr){if(!(Dt.isMac&&!Yr.metaKey||!Yr.ctrlKey))switch(Yr.keyCode){case 67:Pr(Yr);break;case 86:Nr(Yr);break;case 88:Or(Yr);break}},pr);var Lr=function(Yr){if(!(xr||!pr.onCompositionStart||pr.$readOnly)&&(xr={},!Ht)){Yr.data&&(xr.useTextareaForIME=!1),setTimeout(Wr,0),pr._signal("compositionStart"),pr.on("mousedown",jr);var Gr=pr.getSelectionRange();Gr.end.row=Gr.start.row,Gr.end.column=Gr.start.column,xr.markerRange=Gr,xr.selectionStart=Yt,pr.onCompositionStart(xr),xr.useTextareaForIME?(Gt=gr.value="",Yt=0,er=0):(gr.msGetInputContext&&(xr.context=gr.msGetInputContext()),gr.getInputContext&&(xr.context=gr.getInputContext()))}},Wr=function(){if(!(!xr||!pr.onCompositionUpdate||pr.$readOnly)){if(Ht)return jr();if(xr.useTextareaForIME)pr.onCompositionUpdate(gr.value);else{var Yr=gr.value;Rr(Yr),xr.markerRange&&(xr.context&&(xr.markerRange.start.column=xr.selectionStart=xr.context.compositionStartOffset),xr.markerRange.end.column=xr.markerRange.start.column+er-xr.selectionStart+lr)}}},Ur=function(Yr){!pr.onCompositionEnd||pr.$readOnly||(xr=!1,pr.onCompositionEnd(),pr.off("mousedown",jr),Yr&&wr())};function jr(){Wt=!0,gr.blur(),gr.focus(),Wt=!1}var Kr=kt.delayedCall(Wr,50).schedule.bind(null,null);function qr(Yr){Yr.keyCode==27&&gr.value.length<gr.selectionStart&&(xr||(Gt=gr.value),Yt=er=-1,$r()),Kr()}At.addListener(gr,"compositionstart",Lr,pr),At.addListener(gr,"compositionupdate",Wr,pr),At.addListener(gr,"keyup",qr,pr),At.addListener(gr,"keydown",Kr,pr),At.addListener(gr,"compositionend",Ur,pr),this.getElement=function(){return gr},this.setCommandMode=function(Yr){Ht=Yr,gr.readOnly=!1},this.setReadOnly=function(Yr){Ht||(gr.readOnly=Yr)},this.setCopyWithEmptySelection=function(Yr){},this.onContextMenu=function(Yr){Fr=!0,$r(),pr._emit("nativecontextmenu",{target:pr,domEvent:Yr}),this.moveToMouse(Yr,!0)},this.moveToMouse=function(Yr,Gr){Lt||(Lt=gr.style.cssText),gr.style.cssText=(Gr?"z-index:100000;":"")+(Dt.isIE?"opacity:0.1;":"")+"text-indent: -"+(Yt+er)*pr.renderer.characterWidth*.5+"px;";var Jr=pr.container.getBoundingClientRect(),wn=Ft.computedStyle(pr.container),kr=Jr.top+(parseInt(wn.borderTopWidth)||0),Mr=Jr.left+(parseInt(Jr.borderLeftWidth)||0),Ir=Jr.bottom-kr-gr.clientHeight-2,Hr=function(Vr){Ft.translate(gr,Vr.clientX-Mr-2,Math.min(Vr.clientY-kr-2,Ir))};Hr(Yr),Yr.type=="mousedown"&&(pr.renderer.$isMousePressed=!0,clearTimeout(Zr),Dt.isWin&&At.capture(pr.container,Hr,dn))},this.onContextMenuClose=dn;var Zr;function dn(){clearTimeout(Zr),Zr=setTimeout(function(){Lt&&(gr.style.cssText=Lt,Lt=""),pr.renderer.$isMousePressed=!1,pr.renderer.$keepTextAreaAtCursor&&pr.renderer.$moveTextAreaToCursor()},0)}var Xr=function(Yr){pr.textInput.onContextMenu(Yr),dn()};At.addListener(gr,"mouseup",Xr,pr),At.addListener(gr,"mousedown",function(Yr){Yr.preventDefault(),dn()},pr),At.addListener(pr.renderer.scroller,"contextmenu",Xr,pr),At.addListener(gr,"contextmenu",Xr,pr),Qt&&un(Er,pr,gr);function un(Yr,Gr,Jr){var wn=null,kr=!1;Jr.addEventListener("keydown",function(Ir){wn&&clearTimeout(wn),kr=!0},!0),Jr.addEventListener("keyup",function(Ir){wn=setTimeout(function(){kr=!1},100)},!0);var Mr=function(Ir){if(document.activeElement===Jr&&!(kr||xr||Gr.$mouseHandler.isMousePressed)&&!vr){var Hr=Jr.selectionStart,Vr=Jr.selectionEnd,on=null,Qr=0;if(Hr==0?on=Kt.up:Hr==1?on=Kt.home:Vr>er&&Gt[Vr]==`
`?on=Kt.end:Hr<Yt&&Gt[Hr-1]==" "?(on=Kt.left,Qr=Xt.option):Hr<Yt||Hr==Yt&&er!=Yt&&Hr==Vr?on=Kt.left:Vr>er&&Gt.slice(0,Vr).split(`
`).length>2?on=Kt.down:Vr>er&&Gt[Vr-1]==" "?(on=Kt.right,Qr=Xt.option):(Vr>er||Vr==er&&er!=Yt&&Hr==Vr)&&(on=Kt.right),Hr!==Vr&&(Qr|=Xt.shift),on){var hn=Gr.onCommandKey({},Qr,on);if(!hn&&Gr.commands){on=Kt.keyCodeToString(on);var Wn=Gr.commands.findKeyCommand(Qr,on);Wn&&Gr.execCommand(Wn)}Yt=Hr,er=Vr,$r("")}}};document.addEventListener("selectionchange",Mr),Gr.on("destroy",function(){document.removeEventListener("selectionchange",Mr)})}this.destroy=function(){gr.parentElement&&gr.parentElement.removeChild(gr)}},Ct.TextInput=cr,Ct.$setUserAgentForTests=function(Er,pr){dr=Er,Qt=pr}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(yt,Ct,$t){var At=yt("../lib/useragent"),Bt=0,Dt=550,Ft=function(){function Nt(jt){jt.$clickSelection=null;var zt=jt.editor;zt.setDefaultHandler("mousedown",this.onMouseDown.bind(jt)),zt.setDefaultHandler("dblclick",this.onDoubleClick.bind(jt)),zt.setDefaultHandler("tripleclick",this.onTripleClick.bind(jt)),zt.setDefaultHandler("quadclick",this.onQuadClick.bind(jt)),zt.setDefaultHandler("mousewheel",this.onMouseWheel.bind(jt));var Vt=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];Vt.forEach(function(Kt){jt[Kt]=this[Kt]},this),jt.selectByLines=this.extendSelectionBy.bind(jt,"getLineRange"),jt.selectByWords=this.extendSelectionBy.bind(jt,"getWordRange")}return Nt.prototype.onMouseDown=function(jt){var zt=jt.inSelection(),Vt=jt.getDocumentPosition();this.mousedownEvent=jt;var Kt=this.editor,Xt=jt.getButton();if(Xt!==0){var Qt=Kt.getSelectionRange(),Zt=Qt.isEmpty();(Zt||Xt==1)&&Kt.selection.moveToPosition(Vt),Xt==2&&(Kt.textInput.onContextMenu(jt.domEvent),At.isMozilla||jt.preventDefault());return}if(this.mousedownEvent.time=Date.now(),zt&&!Kt.isFocused()&&(Kt.focus(),this.$focusTimeout&&!this.$clickSelection&&!Kt.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(jt);return}return this.captureMouse(jt),this.startSelect(Vt,jt.domEvent._clicks>1),jt.preventDefault()},Nt.prototype.startSelect=function(jt,zt){jt=jt||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var Vt=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?Vt.selection.selectToPosition(jt):zt||Vt.selection.moveToPosition(jt),zt||this.select(),Vt.setStyle("ace_selecting"),this.setState("select"))},Nt.prototype.select=function(){var jt,zt=this.editor,Vt=zt.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var Kt=this.$clickSelection.comparePoint(Vt);if(Kt==-1)jt=this.$clickSelection.end;else if(Kt==1)jt=this.$clickSelection.start;else{var Xt=Mt(this.$clickSelection,Vt);Vt=Xt.cursor,jt=Xt.anchor}zt.selection.setSelectionAnchor(jt.row,jt.column)}zt.selection.selectToPosition(Vt),zt.renderer.scrollCursorIntoView()},Nt.prototype.extendSelectionBy=function(jt){var zt,Vt=this.editor,Kt=Vt.renderer.screenToTextCoordinates(this.x,this.y),Xt=Vt.selection[jt](Kt.row,Kt.column);if(this.$clickSelection){var Qt=this.$clickSelection.comparePoint(Xt.start),Zt=this.$clickSelection.comparePoint(Xt.end);if(Qt==-1&&Zt<=0)zt=this.$clickSelection.end,(Xt.end.row!=Kt.row||Xt.end.column!=Kt.column)&&(Kt=Xt.start);else if(Zt==1&&Qt>=0)zt=this.$clickSelection.start,(Xt.start.row!=Kt.row||Xt.start.column!=Kt.column)&&(Kt=Xt.end);else if(Qt==-1&&Zt==1)Kt=Xt.end,zt=Xt.start;else{var dr=Mt(this.$clickSelection,Kt);Kt=dr.cursor,zt=dr.anchor}Vt.selection.setSelectionAnchor(zt.row,zt.column)}Vt.selection.selectToPosition(Kt),Vt.renderer.scrollCursorIntoView()},Nt.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},Nt.prototype.focusWait=function(){var jt=kt(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),zt=Date.now();(jt>Bt||zt-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},Nt.prototype.onDoubleClick=function(jt){var zt=jt.getDocumentPosition(),Vt=this.editor,Kt=Vt.session,Xt=Kt.getBracketRange(zt);Xt?(Xt.isEmpty()&&(Xt.start.column--,Xt.end.column++),this.setState("select")):(Xt=Vt.selection.getWordRange(zt.row,zt.column),this.setState("selectByWords")),this.$clickSelection=Xt,this.select()},Nt.prototype.onTripleClick=function(jt){var zt=jt.getDocumentPosition(),Vt=this.editor;this.setState("selectByLines");var Kt=Vt.getSelectionRange();Kt.isMultiLine()&&Kt.contains(zt.row,zt.column)?(this.$clickSelection=Vt.selection.getLineRange(Kt.start.row),this.$clickSelection.end=Vt.selection.getLineRange(Kt.end.row).end):this.$clickSelection=Vt.selection.getLineRange(zt.row),this.select()},Nt.prototype.onQuadClick=function(jt){var zt=this.editor;zt.selectAll(),this.$clickSelection=zt.getSelectionRange(),this.setState("selectAll")},Nt.prototype.onMouseWheel=function(jt){if(!jt.getAccelKey()){jt.getShiftKey()&&jt.wheelY&&!jt.wheelX&&(jt.wheelX=jt.wheelY,jt.wheelY=0);var zt=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var Vt=this.$lastScroll,Kt=jt.domEvent.timeStamp,Xt=Kt-Vt.t,Qt=Xt?jt.wheelX/Xt:Vt.vx,Zt=Xt?jt.wheelY/Xt:Vt.vy;Xt<Dt&&(Qt=(Qt+Vt.vx)/2,Zt=(Zt+Vt.vy)/2);var dr=Math.abs(Qt/Zt),cr=!1;if(dr>=1&&zt.renderer.isScrollableBy(jt.wheelX*jt.speed,0)&&(cr=!0),dr<=1&&zt.renderer.isScrollableBy(0,jt.wheelY*jt.speed)&&(cr=!0),cr)Vt.allowed=Kt;else if(Kt-Vt.allowed<Dt){var Er=Math.abs(Qt)<=1.5*Math.abs(Vt.vx)&&Math.abs(Zt)<=1.5*Math.abs(Vt.vy);Er?(cr=!0,Vt.allowed=Kt):Vt.allowed=0}if(Vt.t=Kt,Vt.vx=Qt,Vt.vy=Zt,cr)return zt.renderer.scrollBy(jt.wheelX*jt.speed,jt.wheelY*jt.speed),jt.stop()}},Nt}();Ft.prototype.selectEnd=Ft.prototype.selectByLinesEnd,Ft.prototype.selectAllEnd=Ft.prototype.selectByLinesEnd,Ft.prototype.selectByWordsEnd=Ft.prototype.selectByLinesEnd,Ct.DefaultHandlers=Ft;function kt(Nt,jt,zt,Vt){return Math.sqrt(Math.pow(zt-Nt,2)+Math.pow(Vt-jt,2))}function Mt(Nt,jt){if(Nt.start.row==Nt.end.row)var zt=2*jt.column-Nt.start.column-Nt.end.column;else if(Nt.start.row==Nt.end.row-1&&!Nt.start.column&&!Nt.end.column)var zt=jt.column-4;else var zt=2*jt.row-Nt.start.row-Nt.end.row;return zt<0?{cursor:Nt.start,anchor:Nt.end}:{cursor:Nt.end,anchor:Nt.start}}}),ace.define("ace/lib/scroll",["require","exports","module"],function(yt,Ct,$t){Ct.preventParentScroll=function(Bt){Bt.stopPropagation();var Dt=Bt.currentTarget,Ft=Dt.scrollHeight>Dt.clientHeight;Ft||Bt.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(yt,Ct,$t){var At=this&&this.__extends||function(){var Kt=function(Xt,Qt){return Kt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Zt,dr){Zt.__proto__=dr}||function(Zt,dr){for(var cr in dr)Object.prototype.hasOwnProperty.call(dr,cr)&&(Zt[cr]=dr[cr])},Kt(Xt,Qt)};return function(Xt,Qt){if(typeof Qt!="function"&&Qt!==null)throw new TypeError("Class extends value "+String(Qt)+" is not a constructor or null");Kt(Xt,Qt);function Zt(){this.constructor=Xt}Xt.prototype=Qt===null?Object.create(Qt):(Zt.prototype=Qt.prototype,new Zt)}}(),Bt=this&&this.__values||function(Kt){var Xt=typeof Symbol=="function"&&Symbol.iterator,Qt=Xt&&Kt[Xt],Zt=0;if(Qt)return Qt.call(Kt);if(Kt&&typeof Kt.length=="number")return{next:function(){return Kt&&Zt>=Kt.length&&(Kt=void 0),{value:Kt&&Kt[Zt++],done:!Kt}}};throw new TypeError(Xt?"Object is not iterable.":"Symbol.iterator is not defined.")},Dt=yt("./lib/dom");yt("./lib/event");var Ft=yt("./range").Range,kt=yt("./lib/scroll").preventParentScroll,Mt="ace_tooltip",Nt=function(){function Kt(Xt){this.isOpen=!1,this.$element=null,this.$parentNode=Xt}return Kt.prototype.$init=function(){return this.$element=Dt.createElement("div"),this.$element.className=Mt,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},Kt.prototype.getElement=function(){return this.$element||this.$init()},Kt.prototype.setText=function(Xt){this.getElement().textContent=Xt},Kt.prototype.setHtml=function(Xt){this.getElement().innerHTML=Xt},Kt.prototype.setPosition=function(Xt,Qt){this.getElement().style.left=Xt+"px",this.getElement().style.top=Qt+"px"},Kt.prototype.setClassName=function(Xt){Dt.addCssClass(this.getElement(),Xt)},Kt.prototype.setTheme=function(Xt){this.$element.className=Mt+" "+(Xt.isDark?"ace_dark ":"")+(Xt.cssClass||"")},Kt.prototype.show=function(Xt,Qt,Zt){Xt!=null&&this.setText(Xt),Qt!=null&&Zt!=null&&this.setPosition(Qt,Zt),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},Kt.prototype.hide=function(Xt){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=Mt,this.isOpen=!1)},Kt.prototype.getHeight=function(){return this.getElement().offsetHeight},Kt.prototype.getWidth=function(){return this.getElement().offsetWidth},Kt.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},Kt}(),jt=function(){function Kt(){this.popups=[]}return Kt.prototype.addPopup=function(Xt){this.popups.push(Xt),this.updatePopups()},Kt.prototype.removePopup=function(Xt){var Qt=this.popups.indexOf(Xt);Qt!==-1&&(this.popups.splice(Qt,1),this.updatePopups())},Kt.prototype.updatePopups=function(){var Xt,Qt,Zt,dr;this.popups.sort(function(Lt,Ht){return Ht.priority-Lt.priority});var cr=[];try{for(var Er=Bt(this.popups),pr=Er.next();!pr.done;pr=Er.next()){var gr=pr.value,vr=!0;try{for(var yr=(Zt=void 0,Bt(cr)),xr=yr.next();!xr.done;xr=yr.next()){var rr=xr.value;if(this.doPopupsOverlap(rr,gr)){vr=!1;break}}}catch(Lt){Zt={error:Lt}}finally{try{xr&&!xr.done&&(dr=yr.return)&&dr.call(yr)}finally{if(Zt)throw Zt.error}}vr?cr.push(gr):gr.hide()}}catch(Lt){Xt={error:Lt}}finally{try{pr&&!pr.done&&(Qt=Er.return)&&Qt.call(Er)}finally{if(Xt)throw Xt.error}}},Kt.prototype.doPopupsOverlap=function(Xt,Qt){var Zt=Xt.getElement().getBoundingClientRect(),dr=Qt.getElement().getBoundingClientRect();return Zt.left<dr.right&&Zt.right>dr.left&&Zt.top<dr.bottom&&Zt.bottom>dr.top},Kt}(),zt=new jt;Ct.popupManager=zt,Ct.Tooltip=Nt;var Vt=function(Kt){At(Xt,Kt);function Xt(Qt){Qt===void 0&&(Qt=document.body);var Zt=Kt.call(this,Qt)||this;Zt.timeout=void 0,Zt.lastT=0,Zt.idleTime=350,Zt.lastEvent=void 0,Zt.onMouseOut=Zt.onMouseOut.bind(Zt),Zt.onMouseMove=Zt.onMouseMove.bind(Zt),Zt.waitForHover=Zt.waitForHover.bind(Zt),Zt.hide=Zt.hide.bind(Zt);var dr=Zt.getElement();return dr.style.whiteSpace="pre-wrap",dr.style.pointerEvents="auto",dr.addEventListener("mouseout",Zt.onMouseOut),dr.tabIndex=-1,dr.addEventListener("blur",(function(){dr.contains(document.activeElement)||this.hide()}).bind(Zt)),dr.addEventListener("wheel",kt),Zt}return Xt.prototype.addToEditor=function(Qt){Qt.on("mousemove",this.onMouseMove),Qt.on("mousedown",this.hide),Qt.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},Xt.prototype.removeFromEditor=function(Qt){Qt.off("mousemove",this.onMouseMove),Qt.off("mousedown",this.hide),Qt.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},Xt.prototype.onMouseMove=function(Qt,Zt){this.lastEvent=Qt,this.lastT=Date.now();var dr=Zt.$mouseHandler.isMousePressed;if(this.isOpen){var cr=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(cr.row,cr.column)||dr||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||dr||(this.lastEvent=Qt,this.timeout=setTimeout(this.waitForHover,this.idleTime))},Xt.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var Qt=Date.now()-this.lastT;if(this.idleTime-Qt>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-Qt);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},Xt.prototype.isOutsideOfText=function(Qt){var Zt=Qt.editor,dr=Qt.getDocumentPosition(),cr=Zt.session.getLine(dr.row);if(dr.column==cr.length){var Er=Zt.renderer.pixelToScreenCoordinates(Qt.clientX,Qt.clientY),pr=Zt.session.documentToScreenPosition(dr.row,dr.column);if(pr.column!=Er.column||pr.row!=Er.row)return!0}return!1},Xt.prototype.setDataProvider=function(Qt){this.$gatherData=Qt},Xt.prototype.showForRange=function(Qt,Zt,dr,cr){var Er=10;if(!(cr&&cr!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var pr=Qt.renderer;this.isOpen||(zt.addPopup(this),this.$registerCloseEvents(),this.setTheme(pr.theme)),this.isOpen=!0,this.addMarker(Zt,Qt.session),this.range=Ft.fromPoints(Zt.start,Zt.end);var gr=pr.textToScreenCoordinates(Zt.start.row,Zt.start.column),vr=pr.scroller.getBoundingClientRect();gr.pageX<vr.left&&(gr.pageX=vr.left);var yr=this.getElement();yr.innerHTML="",yr.appendChild(dr),yr.style.maxHeight="",yr.style.display="block";var xr=yr.clientHeight,rr=yr.clientWidth,Lt=window.innerHeight-gr.pageY-pr.lineHeight,Ht=!0;gr.pageY-xr<0&&gr.pageY<Lt&&(Ht=!1),yr.style.maxHeight=(Ht?gr.pageY:Lt)-Er+"px",yr.style.top=Ht?"":gr.pageY+pr.lineHeight+"px",yr.style.bottom=Ht?window.innerHeight-gr.pageY+"px":"",yr.style.left=Math.min(gr.pageX,window.innerWidth-rr-Er)+"px"}},Xt.prototype.addMarker=function(Qt,Zt){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=Zt,this.marker=Zt&&Zt.addMarker(Qt,"ace_highlight-marker","text")},Xt.prototype.hide=function(Qt){!Qt&&document.activeElement==this.getElement()||Qt&&Qt.target&&(Qt.type!="keydown"||Qt.ctrlKey||Qt.metaKey)&&this.$element.contains(Qt.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,zt.removePopup(this)))},Xt.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},Xt.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},Xt.prototype.onMouseOut=function(Qt){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!Qt.relatedTarget||this.getElement().contains(Qt.relatedTarget)||Qt&&Qt.currentTarget.contains(Qt.relatedTarget)||Qt.relatedTarget.classList.contains("ace_content")||this.hide())},Xt}(Nt);Ct.HoverTooltip=Vt}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config","ace/lib/lang"],function(yt,Ct,$t){var At=this&&this.__extends||function(){var zt=function(Vt,Kt){return zt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Xt,Qt){Xt.__proto__=Qt}||function(Xt,Qt){for(var Zt in Qt)Object.prototype.hasOwnProperty.call(Qt,Zt)&&(Xt[Zt]=Qt[Zt])},zt(Vt,Kt)};return function(Vt,Kt){if(typeof Kt!="function"&&Kt!==null)throw new TypeError("Class extends value "+String(Kt)+" is not a constructor or null");zt(Vt,Kt);function Xt(){this.constructor=Vt}Vt.prototype=Kt===null?Object.create(Kt):(Xt.prototype=Kt.prototype,new Xt)}}(),Bt=this&&this.__values||function(zt){var Vt=typeof Symbol=="function"&&Symbol.iterator,Kt=Vt&&zt[Vt],Xt=0;if(Kt)return Kt.call(zt);if(zt&&typeof zt.length=="number")return{next:function(){return zt&&Xt>=zt.length&&(zt=void 0),{value:zt&&zt[Xt++],done:!zt}}};throw new TypeError(Vt?"Object is not iterable.":"Symbol.iterator is not defined.")},Dt=yt("../lib/dom"),Ft=yt("../lib/event"),kt=yt("../tooltip").Tooltip,Mt=yt("../config").nls;yt("../lib/lang");function Nt(zt){var Vt=zt.editor,Kt=Vt.renderer.$gutterLayer,Xt=new jt(Vt);zt.editor.setDefaultHandler("guttermousedown",function(pr){if(!(!Vt.isFocused()||pr.getButton()!=0)){var gr=Kt.getRegion(pr);if(gr!="foldWidgets"){var vr=pr.getDocumentPosition().row,yr=Vt.session.selection;if(pr.getShiftKey())yr.selectTo(vr,0);else{if(pr.domEvent.detail==2)return Vt.selectAll(),pr.preventDefault();zt.$clickSelection=Vt.selection.getLineRange(vr)}return zt.setState("selectByLines"),zt.captureMouse(pr),pr.preventDefault()}}});var Qt,Zt;function dr(){var pr=Zt.getDocumentPosition().row,gr=Vt.session.getLength();if(pr==gr){var vr=Vt.renderer.pixelToScreenCoordinates(0,Zt.y).row,yr=Zt.$pos;if(vr>Vt.session.documentToScreenRow(yr.row,yr.column))return cr()}if(Xt.showTooltip(pr),!!Xt.isOpen)if(Vt.on("mousewheel",cr),zt.$tooltipFollowsMouse)Er(Zt);else{var xr=Zt.getGutterRow(),rr=Kt.$lines.get(xr);if(rr){var Lt=rr.element.querySelector(".ace_gutter_annotation"),Ht=Lt.getBoundingClientRect(),Wt=Xt.getElement().style;Wt.left=Ht.right+"px",Wt.top=Ht.bottom+"px"}else Er(Zt)}}function cr(){Qt&&(Qt=clearTimeout(Qt)),Xt.isOpen&&(Xt.hideTooltip(),Vt.off("mousewheel",cr))}function Er(pr){Xt.setPosition(pr.x,pr.y)}zt.editor.setDefaultHandler("guttermousemove",function(pr){var gr=pr.domEvent.target||pr.domEvent.srcElement;if(Dt.hasCssClass(gr,"ace_fold-widget"))return cr();Xt.isOpen&&zt.$tooltipFollowsMouse&&Er(pr),Zt=pr,!Qt&&(Qt=setTimeout(function(){Qt=null,Zt&&!zt.isMousePressed?dr():cr()},50))}),Ft.addListener(Vt.renderer.$gutter,"mouseout",function(pr){Zt=null,!(!Xt.isOpen||Qt)&&(Qt=setTimeout(function(){Qt=null,cr()},50))},Vt),Vt.on("changeSession",cr),Vt.on("input",cr)}Ct.GutterHandler=Nt;var jt=function(zt){At(Vt,zt);function Vt(Kt){var Xt=zt.call(this,Kt.container)||this;return Xt.editor=Kt,Xt}return Vt.prototype.setPosition=function(Kt,Xt){var Qt=window.innerWidth||document.documentElement.clientWidth,Zt=window.innerHeight||document.documentElement.clientHeight,dr=this.getWidth(),cr=this.getHeight();Kt+=15,Xt+=15,Kt+dr>Qt&&(Kt-=Kt+dr-Qt),Xt+cr>Zt&&(Xt-=20+cr),kt.prototype.setPosition.call(this,Kt,Xt)},Object.defineProperty(Vt,"annotationLabels",{get:function(){return{error:{singular:Mt("gutter-tooltip.aria-label.error.singular","error"),plural:Mt("gutter-tooltip.aria-label.error.plural","errors")},warning:{singular:Mt("gutter-tooltip.aria-label.warning.singular","warning"),plural:Mt("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:Mt("gutter-tooltip.aria-label.info.singular","information message"),plural:Mt("gutter-tooltip.aria-label.info.plural","information messages")}}},enumerable:!1,configurable:!0}),Vt.prototype.showTooltip=function(Kt){var Xt,Qt=this.editor.renderer.$gutterLayer,Zt=Qt.$annotations[Kt],dr;Zt?dr={displayText:Array.from(Zt.displayText),type:Array.from(Zt.type)}:dr={displayText:[],type:[]};var cr=Qt.session.getFoldLine(Kt);if(cr&&Qt.$showFoldedAnnotations){for(var Er={error:[],warning:[],info:[]},pr,gr=Kt+1;gr<=cr.end.row;gr++)if(Qt.$annotations[gr])for(var vr=0;vr<Qt.$annotations[gr].text.length;vr++){var yr=Qt.$annotations[gr].type[vr];if(Er[yr].push(Qt.$annotations[gr].text[vr]),yr==="error"){pr="error_fold";continue}if(yr==="warning"){pr="warning_fold";continue}}if(pr==="error_fold"||pr==="warning_fold"){var xr="".concat(Vt.annotationsToSummaryString(Er)," in folded code.");dr.displayText.push(xr),dr.type.push(pr)}}if(dr.displayText.length===0)return this.hide();for(var rr={error:[],warning:[],info:[]},Lt=Qt.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",gr=0;gr<dr.displayText.length;gr++){var Ht=Dt.createElement("span"),Wt=Dt.createElement("span");(Xt=Wt.classList).add.apply(Xt,["ace_".concat(dr.type[gr]),Lt]),Wt.setAttribute("aria-label","".concat(Vt.annotationLabels[dr.type[gr].replace("_fold","")].singular)),Wt.setAttribute("role","img"),Wt.appendChild(Dt.createTextNode(" ")),Ht.appendChild(Wt),Ht.appendChild(Dt.createTextNode(dr.displayText[gr])),Ht.appendChild(Dt.createElement("br")),rr[dr.type[gr].replace("_fold","")].push(Ht)}var Gt=this.getElement();Dt.removeChildren(Gt),rr.error.forEach(function(Yt){return Gt.appendChild(Yt)}),rr.warning.forEach(function(Yt){return Gt.appendChild(Yt)}),rr.info.forEach(function(Yt){return Gt.appendChild(Yt)}),Gt.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.editor._signal("showGutterTooltip",this)},Vt.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},Vt.annotationsToSummaryString=function(Kt){var Xt,Qt,Zt=[],dr=["error","warning","info"];try{for(var cr=Bt(dr),Er=cr.next();!Er.done;Er=cr.next()){var pr=Er.value;if(Kt[pr].length){var gr=Kt[pr].length===1?Vt.annotationLabels[pr].singular:Vt.annotationLabels[pr].plural;Zt.push("".concat(Kt[pr].length," ").concat(gr))}}}catch(vr){Xt={error:vr}}finally{try{Er&&!Er.done&&(Qt=cr.return)&&Qt.call(cr)}finally{if(Xt)throw Xt.error}}return Zt.join(", ")},Vt}(kt);Ct.GutterTooltip=jt}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(yt,Ct,$t){var At=yt("../lib/event"),Bt=yt("../lib/useragent"),Dt=function(){function Ft(kt,Mt){this.speed,this.wheelX,this.wheelY,this.domEvent=kt,this.editor=Mt,this.x=this.clientX=kt.clientX,this.y=this.clientY=kt.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return Ft.prototype.stopPropagation=function(){At.stopPropagation(this.domEvent),this.propagationStopped=!0},Ft.prototype.preventDefault=function(){At.preventDefault(this.domEvent),this.defaultPrevented=!0},Ft.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},Ft.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},Ft.prototype.getGutterRow=function(){var kt=this.getDocumentPosition().row,Mt=this.editor.session.documentToScreenRow(kt,0),Nt=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return Mt-Nt},Ft.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var kt=this.editor,Mt=kt.getSelectionRange();if(Mt.isEmpty())this.$inSelection=!1;else{var Nt=this.getDocumentPosition();this.$inSelection=Mt.contains(Nt.row,Nt.column)}return this.$inSelection},Ft.prototype.getButton=function(){return At.getButton(this.domEvent)},Ft.prototype.getShiftKey=function(){return this.domEvent.shiftKey},Ft.prototype.getAccelKey=function(){return Bt.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},Ft}();Ct.MouseEvent=Dt}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(yt,Ct,$t){var At=yt("../lib/dom"),Bt=yt("../lib/event"),Dt=yt("../lib/useragent"),Ft=200,kt=200,Mt=5;function Nt(zt){var Vt=zt.editor,Kt=At.createElement("div");Kt.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",Kt.textContent=" ";var Xt=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];Xt.forEach(function(_r){zt[_r]=this[_r]},this),Vt.on("mousedown",this.onMouseDown.bind(zt));var Qt=Vt.container,Zt,dr,cr,Er,pr,gr,vr=0,yr,xr,rr,Lt,Ht;this.onDragStart=function(_r){if(this.cancelDrag||!Qt.draggable){var $r=this;return setTimeout(function(){$r.startSelect(),$r.captureMouse(_r)},0),_r.preventDefault()}pr=Vt.getSelectionRange();var Tr=_r.dataTransfer;Tr.effectAllowed=Vt.getReadOnly()?"copy":"copyMove",Vt.container.appendChild(Kt),Tr.setDragImage&&Tr.setDragImage(Kt,0,0),setTimeout(function(){Vt.container.removeChild(Kt)}),Tr.clearData(),Tr.setData("Text",Vt.session.getTextRange()),xr=!0,this.setState("drag")},this.onDragEnd=function(_r){if(Qt.draggable=!1,xr=!1,this.setState(null),!Vt.getReadOnly()){var $r=_r.dataTransfer.dropEffect;!yr&&$r=="move"&&Vt.session.remove(Vt.getSelectionRange()),Vt.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(_r){if(!(Vt.getReadOnly()||!ir(_r.dataTransfer)))return dr=_r.clientX,cr=_r.clientY,Zt||er(),vr++,_r.dataTransfer.dropEffect=yr=Cr(_r),Bt.preventDefault(_r)},this.onDragOver=function(_r){if(!(Vt.getReadOnly()||!ir(_r.dataTransfer)))return dr=_r.clientX,cr=_r.clientY,Zt||(er(),vr++),Jt!==null&&(Jt=null),_r.dataTransfer.dropEffect=yr=Cr(_r),Bt.preventDefault(_r)},this.onDragLeave=function(_r){if(vr--,vr<=0&&Zt)return lr(),yr=null,Bt.preventDefault(_r)},this.onDrop=function(_r){if(gr){var $r=_r.dataTransfer;if(xr)switch(yr){case"move":pr.contains(gr.row,gr.column)?pr={start:gr,end:gr}:pr=Vt.moveText(pr,gr);break;case"copy":pr=Vt.moveText(pr,gr,!0);break}else{var Tr=$r.getData("Text");pr={start:gr,end:Vt.session.insert(gr,Tr)},Vt.focus(),yr=null}return lr(),Bt.preventDefault(_r)}},Bt.addListener(Qt,"dragstart",this.onDragStart.bind(zt),Vt),Bt.addListener(Qt,"dragend",this.onDragEnd.bind(zt),Vt),Bt.addListener(Qt,"dragenter",this.onDragEnter.bind(zt),Vt),Bt.addListener(Qt,"dragover",this.onDragOver.bind(zt),Vt),Bt.addListener(Qt,"dragleave",this.onDragLeave.bind(zt),Vt),Bt.addListener(Qt,"drop",this.onDrop.bind(zt),Vt);function Wt(_r,$r){var Tr=Date.now(),Dr=!$r||_r.row!=$r.row,Ar=!$r||_r.column!=$r.column;if(!Lt||Dr||Ar)Vt.moveCursorToPosition(_r),Lt=Tr,Ht={x:dr,y:cr};else{var Fr=jt(Ht.x,Ht.y,dr,cr);Fr>Mt?Lt=null:Tr-Lt>=kt&&(Vt.renderer.scrollCursorIntoView(),Lt=null)}}function Gt(_r,$r){var Tr=Date.now(),Dr=Vt.renderer.layerConfig.lineHeight,Ar=Vt.renderer.layerConfig.characterWidth,Fr=Vt.renderer.scroller.getBoundingClientRect(),Rr={x:{left:dr-Fr.left,right:Fr.right-dr},y:{top:cr-Fr.top,bottom:Fr.bottom-cr}},wr=Math.min(Rr.x.left,Rr.x.right),Sr=Math.min(Rr.y.top,Rr.y.bottom),Br={row:_r.row,column:_r.column};wr/Ar<=2&&(Br.column+=Rr.x.left<Rr.x.right?-3:2),Sr/Dr<=1&&(Br.row+=Rr.y.top<Rr.y.bottom?-1:1);var Or=_r.row!=Br.row,Pr=_r.column!=Br.column,Nr=!$r||_r.row!=$r.row;Or||Pr&&!Nr?rr?Tr-rr>=Ft&&Vt.renderer.scrollCursorIntoView(Br):rr=Tr:rr=null}function Yt(){var _r=gr;gr=Vt.renderer.screenToTextCoordinates(dr,cr),Wt(gr,_r),Gt(gr,_r)}function er(){pr=Vt.selection.toOrientedRange(),Zt=Vt.session.addMarker(pr,"ace_selection",Vt.getSelectionStyle()),Vt.clearSelection(),Vt.isFocused()&&Vt.renderer.$cursorLayer.setBlinking(!1),clearInterval(Er),Yt(),Er=setInterval(Yt,20),vr=0,Bt.addListener(document,"mousemove",Ut)}function lr(){clearInterval(Er),Vt.session.removeMarker(Zt),Zt=null,Vt.selection.fromOrientedRange(pr),Vt.isFocused()&&!xr&&Vt.$resetCursorStyle(),pr=null,gr=null,vr=0,rr=null,Lt=null,Bt.removeListener(document,"mousemove",Ut)}var Jt=null;function Ut(){Jt==null&&(Jt=setTimeout(function(){Jt!=null&&Zt&&lr()},20))}function ir(_r){var $r=_r.types;return!$r||Array.prototype.some.call($r,function(Tr){return Tr=="text/plain"||Tr=="Text"})}function Cr(_r){var $r=["copy","copymove","all","uninitialized"],Tr=["move","copymove","linkmove","all","uninitialized"],Dr=Dt.isMac?_r.altKey:_r.ctrlKey,Ar="uninitialized";try{Ar=_r.dataTransfer.effectAllowed.toLowerCase()}catch{}var Fr="none";return Dr&&$r.indexOf(Ar)>=0?Fr="copy":Tr.indexOf(Ar)>=0?Fr="move":$r.indexOf(Ar)>=0&&(Fr="copy"),Fr}}(function(){this.dragWait=function(){var zt=Date.now()-this.mousedownEvent.time;zt>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var zt=this.editor.container;zt.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(zt){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var zt=this.editor,Vt=zt.container;Vt.draggable=!0,zt.renderer.$cursorLayer.setBlinking(!1),zt.setStyle("ace_dragging");var Kt=Dt.isWin?"default":"move";zt.renderer.setCursorStyle(Kt),this.setState("dragReady")},this.onMouseDrag=function(zt){var Vt=this.editor.container;if(Dt.isIE&&this.state=="dragReady"){var Kt=jt(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);Kt>3&&Vt.dragDrop()}if(this.state==="dragWait"){var Kt=jt(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);Kt>0&&(Vt.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(zt){if(this.$dragEnabled){this.mousedownEvent=zt;var Vt=this.editor,Kt=zt.inSelection(),Xt=zt.getButton(),Qt=zt.domEvent.detail||1;if(Qt===1&&Xt===0&&Kt){if(zt.editor.inMultiSelectMode&&(zt.getAccelKey()||zt.getShiftKey()))return;this.mousedownEvent.time=Date.now();var Zt=zt.domEvent.target||zt.domEvent.srcElement;if("unselectable"in Zt&&(Zt.unselectable="on"),Vt.getDragDelay()){if(Dt.isWebKit){this.cancelDrag=!0;var dr=Vt.container;dr.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(zt,this.onMouseDrag.bind(this)),zt.defaultPrevented=!0}}}}).call(Nt.prototype);function jt(zt,Vt,Kt,Xt){return Math.sqrt(Math.pow(Kt-zt,2)+Math.pow(Xt-Vt,2))}Ct.DragdropHandler=Nt}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(yt,Ct,$t){var At=yt("./mouse_event").MouseEvent,Bt=yt("../lib/event"),Dt=yt("../lib/dom");Ct.addTouchListeners=function(Ft,kt){var Mt="scroll",Nt,jt,zt,Vt,Kt,Xt,Qt=0,Zt,dr=0,cr=0,Er=0,pr,gr;function vr(){var Wt=window.navigator&&window.navigator.clipboard,Gt=!1,Yt=function(){var Jt=kt.getCopyText(),Ut=kt.session.getUndoManager().hasUndo();gr.replaceChild(Dt.buildDom(Gt?["span",!Jt&&er("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],Jt&&er("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],Jt&&er("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],Wt&&er("paste")&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],Ut&&er("undo")&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],er("find")&&["span",{class:"ace_mobile-button",action:"find"},"Find"],er("openCommandPalette")&&["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),gr.firstChild)},er=function(Jt){return kt.commands.canExecute(Jt,kt)},lr=function(Jt){var Ut=Jt.target.getAttribute("action");if(Ut=="more"||!Gt)return Gt=!Gt,Yt();Ut=="paste"?Wt.readText().then(function(ir){kt.execCommand(Ut,ir)}):Ut&&((Ut=="cut"||Ut=="copy")&&(Wt?Wt.writeText(kt.getCopyText()):document.execCommand("copy")),kt.execCommand(Ut)),gr.firstChild.style.display="none",Gt=!1,Ut!="openCommandPalette"&&kt.focus()};gr=Dt.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(Jt){Mt="menu",Jt.stopPropagation(),Jt.preventDefault(),kt.textInput.focus()},ontouchend:function(Jt){Jt.stopPropagation(),Jt.preventDefault(),lr(Jt)},onclick:lr},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],kt.container)}function yr(){if(!kt.getOption("enableMobileMenu")){gr&&xr();return}gr||vr();var Wt=kt.selection.cursor,Gt=kt.renderer.textToScreenCoordinates(Wt.row,Wt.column),Yt=kt.renderer.textToScreenCoordinates(0,0).pageX,er=kt.renderer.scrollLeft,lr=kt.container.getBoundingClientRect();gr.style.top=Gt.pageY-lr.top-3+"px",Gt.pageX-lr.left<lr.width-70?(gr.style.left="",gr.style.right="10px"):(gr.style.right="",gr.style.left=Yt+er-lr.left+"px"),gr.style.display="",gr.firstChild.style.display="none",kt.on("input",xr)}function xr(Wt){gr&&(gr.style.display="none"),kt.off("input",xr)}function rr(){Kt=null,clearTimeout(Kt);var Wt=kt.selection.getRange(),Gt=Wt.contains(Zt.row,Zt.column);(Wt.isEmpty()||!Gt)&&(kt.selection.moveToPosition(Zt),kt.selection.selectWord()),Mt="wait",yr()}function Lt(){Kt=null,clearTimeout(Kt),kt.selection.moveToPosition(Zt);var Wt=dr>=2?kt.selection.getLineRange(Zt.row):kt.session.getBracketRange(Zt);Wt&&!Wt.isEmpty()?kt.selection.setRange(Wt):kt.selection.selectWord(),Mt="wait"}Bt.addListener(Ft,"contextmenu",function(Wt){if(pr){var Gt=kt.textInput.getElement();Gt.focus()}},kt),Bt.addListener(Ft,"touchstart",function(Wt){var Gt=Wt.touches;if(Kt||Gt.length>1){clearTimeout(Kt),Kt=null,zt=-1,Mt="zoom";return}pr=kt.$mouseHandler.isMousePressed=!0;var Yt=kt.renderer.layerConfig.lineHeight,er=kt.renderer.layerConfig.lineHeight,lr=Wt.timeStamp;Vt=lr;var Jt=Gt[0],Ut=Jt.clientX,ir=Jt.clientY;Math.abs(Nt-Ut)+Math.abs(jt-ir)>Yt&&(zt=-1),Nt=Wt.clientX=Ut,jt=Wt.clientY=ir,cr=Er=0;var Cr=new At(Wt,kt);if(Zt=Cr.getDocumentPosition(),lr-zt<500&&Gt.length==1&&!Qt)dr++,Wt.preventDefault(),Wt.button=0,Lt();else{dr=0;var _r=kt.selection.cursor,$r=kt.selection.isEmpty()?_r:kt.selection.anchor,Tr=kt.renderer.$cursorLayer.getPixelPosition(_r,!0),Dr=kt.renderer.$cursorLayer.getPixelPosition($r,!0),Ar=kt.renderer.scroller.getBoundingClientRect(),Fr=kt.renderer.layerConfig.offset,Rr=kt.renderer.scrollLeft,wr=function(Or,Pr){return Or=Or/er,Pr=Pr/Yt-.75,Or*Or+Pr*Pr};if(Wt.clientX<Ar.left){Mt="zoom";return}var Sr=wr(Wt.clientX-Ar.left-Tr.left+Rr,Wt.clientY-Ar.top-Tr.top+Fr),Br=wr(Wt.clientX-Ar.left-Dr.left+Rr,Wt.clientY-Ar.top-Dr.top+Fr);Sr<3.5&&Br<3.5&&(Mt=Sr>Br?"cursor":"anchor"),Br<3.5?Mt="anchor":Sr<3.5?Mt="cursor":Mt="scroll",Kt=setTimeout(rr,450)}zt=lr},kt),Bt.addListener(Ft,"touchend",function(Wt){pr=kt.$mouseHandler.isMousePressed=!1,Xt&&clearInterval(Xt),Mt=="zoom"?(Mt="",Qt=0):Kt?(kt.selection.moveToPosition(Zt),Qt=0,yr()):Mt=="scroll"?(Ht(),xr()):yr(),clearTimeout(Kt),Kt=null},kt),Bt.addListener(Ft,"touchmove",function(Wt){Kt&&(clearTimeout(Kt),Kt=null);var Gt=Wt.touches;if(!(Gt.length>1||Mt=="zoom")){var Yt=Gt[0],er=Nt-Yt.clientX,lr=jt-Yt.clientY;if(Mt=="wait")if(er*er+lr*lr>4)Mt="cursor";else return Wt.preventDefault();Nt=Yt.clientX,jt=Yt.clientY,Wt.clientX=Yt.clientX,Wt.clientY=Yt.clientY;var Jt=Wt.timeStamp,Ut=Jt-Vt;if(Vt=Jt,Mt=="scroll"){var ir=new At(Wt,kt);ir.speed=1,ir.wheelX=er,ir.wheelY=lr,10*Math.abs(er)<Math.abs(lr)&&(er=0),10*Math.abs(lr)<Math.abs(er)&&(lr=0),Ut!=0&&(cr=er/Ut,Er=lr/Ut),kt._emit("mousewheel",ir),ir.propagationStopped||(cr=Er=0)}else{var Cr=new At(Wt,kt),_r=Cr.getDocumentPosition();Mt=="cursor"?kt.selection.moveCursorToPosition(_r):Mt=="anchor"&&kt.selection.setSelectionAnchor(_r.row,_r.column),kt.renderer.scrollCursorIntoView(_r),Wt.preventDefault()}}},kt);function Ht(){Qt+=60,Xt=setInterval(function(){Qt--<=0&&(clearInterval(Xt),Xt=null),Math.abs(cr)<.01&&(cr=0),Math.abs(Er)<.01&&(Er=0),Qt<20&&(cr=.9*cr),Qt<20&&(Er=.9*Er);var Wt=kt.session.getScrollTop();kt.renderer.scrollBy(10*cr,10*Er),Wt==kt.session.getScrollTop()&&(Qt=0)},10)}}}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(yt,Ct,$t){var At=yt("../lib/event"),Bt=yt("../lib/useragent"),Dt=yt("./default_handlers").DefaultHandlers,Ft=yt("./default_gutter_handler").GutterHandler,kt=yt("./mouse_event").MouseEvent,Mt=yt("./dragdrop_handler").DragdropHandler,Nt=yt("./touch_handler").addTouchListeners,jt=yt("../config"),zt=function(){function Vt(Kt){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var Xt=this;this.editor=Kt,new Dt(this),new Ft(this),new Mt(this);var Qt=function(cr){var Er=!document.hasFocus||!document.hasFocus()||!Kt.isFocused()&&document.activeElement==(Kt.textInput&&Kt.textInput.getElement());Er&&window.focus(),Kt.focus(),setTimeout(function(){Kt.isFocused()||Kt.focus()})},Zt=Kt.renderer.getMouseEventTarget();At.addListener(Zt,"click",this.onMouseEvent.bind(this,"click"),Kt),At.addListener(Zt,"mousemove",this.onMouseMove.bind(this,"mousemove"),Kt),At.addMultiMouseDownListener([Zt,Kt.renderer.scrollBarV&&Kt.renderer.scrollBarV.inner,Kt.renderer.scrollBarH&&Kt.renderer.scrollBarH.inner,Kt.textInput&&Kt.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",Kt),At.addMouseWheelListener(Kt.container,this.onMouseWheel.bind(this,"mousewheel"),Kt),Nt(Kt.container,Kt);var dr=Kt.renderer.$gutter;At.addListener(dr,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),Kt),At.addListener(dr,"click",this.onMouseEvent.bind(this,"gutterclick"),Kt),At.addListener(dr,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),Kt),At.addListener(dr,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),Kt),At.addListener(Zt,"mousedown",Qt,Kt),At.addListener(dr,"mousedown",Qt,Kt),Bt.isIE&&Kt.renderer.scrollBarV&&(At.addListener(Kt.renderer.scrollBarV.element,"mousedown",Qt,Kt),At.addListener(Kt.renderer.scrollBarH.element,"mousedown",Qt,Kt)),Kt.on("mousemove",function(cr){if(!(Xt.state||Xt.$dragDelay||!Xt.$dragEnabled)){var Er=Kt.renderer.screenToTextCoordinates(cr.x,cr.y),pr=Kt.session.selection.getRange(),gr=Kt.renderer;!pr.isEmpty()&&pr.insideStart(Er.row,Er.column)?gr.setCursorStyle("default"):gr.setCursorStyle("")}},Kt)}return Vt.prototype.onMouseEvent=function(Kt,Xt){this.editor.session&&this.editor._emit(Kt,new kt(Xt,this.editor))},Vt.prototype.onMouseMove=function(Kt,Xt){var Qt=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!Qt||!Qt.length||this.editor._emit(Kt,new kt(Xt,this.editor))},Vt.prototype.onMouseWheel=function(Kt,Xt){var Qt=new kt(Xt,this.editor);Qt.speed=this.$scrollSpeed*2,Qt.wheelX=Xt.wheelX,Qt.wheelY=Xt.wheelY,this.editor._emit(Kt,Qt)},Vt.prototype.setState=function(Kt){this.state=Kt},Vt.prototype.captureMouse=function(Kt,Xt){this.x=Kt.x,this.y=Kt.y,this.isMousePressed=!0;var Qt=this.editor,Zt=this.editor.renderer;Zt.$isMousePressed=!0;var dr=this,cr=function(yr){if(yr){if(Bt.isWebKit&&!yr.which&&dr.releaseMouse)return dr.releaseMouse();dr.x=yr.clientX,dr.y=yr.clientY,Xt&&Xt(yr),dr.mouseEvent=new kt(yr,dr.editor),dr.$mouseMoved=!0}},Er=function(yr){Qt.off("beforeEndOperation",gr),clearInterval(vr),Qt.session&&pr(),dr[dr.state+"End"]&&dr[dr.state+"End"](yr),dr.state="",dr.isMousePressed=Zt.$isMousePressed=!1,Zt.$keepTextAreaAtCursor&&Zt.$moveTextAreaToCursor(),dr.$onCaptureMouseMove=dr.releaseMouse=null,yr&&dr.onMouseEvent("mouseup",yr),Qt.endOperation()},pr=function(){dr[dr.state]&&dr[dr.state](),dr.$mouseMoved=!1};if(Bt.isOldIE&&Kt.domEvent.type=="dblclick")return setTimeout(function(){Er(Kt)});var gr=function(yr){dr.releaseMouse&&Qt.curOp.command.name&&Qt.curOp.selectionChanged&&(dr[dr.state+"End"]&&dr[dr.state+"End"](),dr.state="",dr.releaseMouse())};Qt.on("beforeEndOperation",gr),Qt.startOperation({command:{name:"mouse"}}),dr.$onCaptureMouseMove=cr,dr.releaseMouse=At.capture(this.editor.container,cr,Er);var vr=setInterval(pr,20)},Vt.prototype.cancelContextMenu=function(){var Kt=(function(Xt){Xt&&Xt.domEvent&&Xt.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",Kt),Xt&&Xt.domEvent&&At.stopEvent(Xt.domEvent))}).bind(this);setTimeout(Kt,10),this.editor.on("nativecontextmenu",Kt)},Vt.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},Vt}();zt.prototype.releaseMouse=null,jt.defineOptions(zt.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:Bt.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),Ct.MouseHandler=zt}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(yt,Ct,$t){var At=yt("../lib/dom"),Bt=function(){function Dt(Ft){Ft.on("click",function(kt){var Mt=kt.getDocumentPosition(),Nt=Ft.session,jt=Nt.getFoldAt(Mt.row,Mt.column,1);jt&&(kt.getAccelKey()?Nt.removeFold(jt):Nt.expandFold(jt),kt.stop());var zt=kt.domEvent&&kt.domEvent.target;zt&&At.hasCssClass(zt,"ace_inline_button")&&At.hasCssClass(zt,"ace_toggle_wrap")&&(Nt.setOption("wrap",!Nt.getUseWrapMode()),Ft.renderer.scrollCursorIntoView())}),Ft.on("gutterclick",function(kt){var Mt=Ft.renderer.$gutterLayer.getRegion(kt);if(Mt=="foldWidgets"){var Nt=kt.getDocumentPosition().row,jt=Ft.session;jt.foldWidgets&&jt.foldWidgets[Nt]&&Ft.session.onFoldWidgetClick(Nt,kt),Ft.isFocused()||Ft.focus(),kt.stop()}}),Ft.on("gutterdblclick",function(kt){var Mt=Ft.renderer.$gutterLayer.getRegion(kt);if(Mt=="foldWidgets"){var Nt=kt.getDocumentPosition().row,jt=Ft.session,zt=jt.getParentFoldRangeData(Nt,!0),Vt=zt.range||zt.firstRange;if(Vt){Nt=Vt.start.row;var Kt=jt.getFoldAt(Nt,jt.getLine(Nt).length,1);Kt?jt.removeFold(Kt):(jt.addFold("...",Vt),Ft.renderer.scrollCursorIntoView({row:Vt.start.row,column:0}))}kt.stop()}})}return Dt}();Ct.FoldHandler=Bt}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(yt,Ct,$t){var At=yt("../lib/keys"),Bt=yt("../lib/event"),Dt=function(){function Ft(kt){this.$editor=kt,this.$data={editor:kt},this.$handlers=[],this.setDefaultHandler(kt.commands)}return Ft.prototype.setDefaultHandler=function(kt){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=kt,this.addKeyboardHandler(kt,0)},Ft.prototype.setKeyboardHandler=function(kt){var Mt=this.$handlers;if(Mt[Mt.length-1]!=kt){for(;Mt[Mt.length-1]&&Mt[Mt.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(Mt[Mt.length-1]);this.addKeyboardHandler(kt,1)}},Ft.prototype.addKeyboardHandler=function(kt,Mt){if(kt){typeof kt=="function"&&!kt.handleKeyboard&&(kt.handleKeyboard=kt);var Nt=this.$handlers.indexOf(kt);Nt!=-1&&this.$handlers.splice(Nt,1),Mt==null?this.$handlers.push(kt):this.$handlers.splice(Mt,0,kt),Nt==-1&&kt.attach&&kt.attach(this.$editor)}},Ft.prototype.removeKeyboardHandler=function(kt){var Mt=this.$handlers.indexOf(kt);return Mt==-1?!1:(this.$handlers.splice(Mt,1),kt.detach&&kt.detach(this.$editor),!0)},Ft.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},Ft.prototype.getStatusText=function(){var kt=this.$data,Mt=kt.editor;return this.$handlers.map(function(Nt){return Nt.getStatusText&&Nt.getStatusText(Mt,kt)||""}).filter(Boolean).join(" ")},Ft.prototype.$callKeyboardHandlers=function(kt,Mt,Nt,jt){for(var zt,Vt=!1,Kt=this.$editor.commands,Xt=this.$handlers.length;Xt--&&(zt=this.$handlers[Xt].handleKeyboard(this.$data,kt,Mt,Nt,jt),!(!(!zt||!zt.command)&&(zt.command=="null"?Vt=!0:Vt=Kt.exec(zt.command,this.$editor,zt.args,jt),Vt&&jt&&kt!=-1&&zt.passEvent!=!0&&zt.command.passEvent!=!0&&Bt.stopEvent(jt),Vt))););return!Vt&&kt==-1&&(zt={command:"insertstring"},Vt=Kt.exec("insertstring",this.$editor,Mt)),Vt&&this.$editor._signal&&this.$editor._signal("keyboardActivity",zt),Vt},Ft.prototype.onCommandKey=function(kt,Mt,Nt){var jt=At.keyCodeToString(Nt);return this.$callKeyboardHandlers(Mt,jt,Nt,kt)},Ft.prototype.onTextInput=function(kt){return this.$callKeyboardHandlers(-1,kt)},Ft}();Ct.KeyBinding=Dt}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(yt,Ct,$t){var At=0,Bt=0,Dt=!1,Ft=!1,kt=!1,Mt=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],Nt=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],jt=0,zt=1,Vt=0,Kt=1,Xt=2,Qt=3,Zt=4,dr=5,cr=6,Er=7,pr=8,gr=9,vr=10,yr=11,xr=12,rr=13,Lt=14,Ht=15,Wt=16,Gt=17,Yt=18,er=[Yt,Yt,Yt,Yt,Yt,Yt,Yt,Yt,Yt,cr,dr,cr,pr,dr,Yt,Yt,Yt,Yt,Yt,Yt,Yt,Yt,Yt,Yt,Yt,Yt,Yt,Yt,dr,dr,dr,cr,pr,Zt,Zt,yr,yr,yr,Zt,Zt,Zt,Zt,Zt,vr,gr,vr,gr,gr,Xt,Xt,Xt,Xt,Xt,Xt,Xt,Xt,Xt,Xt,gr,Zt,Zt,Zt,Zt,Zt,Zt,Vt,Vt,Vt,Vt,Vt,Vt,Vt,Vt,Vt,Vt,Vt,Vt,Vt,Vt,Vt,Vt,Vt,Vt,Vt,Vt,Vt,Vt,Vt,Vt,Vt,Vt,Zt,Zt,Zt,Zt,Zt,Zt,Vt,Vt,Vt,Vt,Vt,Vt,Vt,Vt,Vt,Vt,Vt,Vt,Vt,Vt,Vt,Vt,Vt,Vt,Vt,Vt,Vt,Vt,Vt,Vt,Vt,Vt,Zt,Zt,Zt,Zt,Yt,Yt,Yt,Yt,Yt,Yt,dr,Yt,Yt,Yt,Yt,Yt,Yt,Yt,Yt,Yt,Yt,Yt,Yt,Yt,Yt,Yt,Yt,Yt,Yt,Yt,Yt,Yt,Yt,Yt,Yt,Yt,Yt,gr,Zt,yr,yr,yr,yr,Zt,Zt,Zt,Zt,Vt,Zt,Zt,Yt,Zt,Zt,yr,yr,Xt,Xt,Zt,Vt,Zt,Zt,Zt,Xt,Vt,Zt,Zt,Zt,Zt,Zt],lr=[pr,pr,pr,pr,pr,pr,pr,pr,pr,pr,pr,Yt,Yt,Yt,Vt,Kt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,pr,dr,rr,Lt,Ht,Wt,Gt,gr,yr,yr,yr,yr,yr,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,gr,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,pr];function Jt(_r,$r,Tr,Dr){var Ar=At?Nt:Mt,Fr=null,Rr=null,wr=null,Sr=0,Br=null,Or=null,Pr=-1,Nr=null,Lr=null,Wr=[];if(!Dr)for(Nr=0,Dr=[];Nr<Tr;Nr++)Dr[Nr]=Cr(_r[Nr]);for(Bt=At,Dt=!1,Ft=!1,kt=!1,Lr=0;Lr<Tr;Lr++){if(Fr=Sr,Wr[Lr]=Rr=ir(_r,Dr,Wr,Lr),Sr=Ar[Fr][Rr],Br=Sr&240,Sr&=15,$r[Lr]=wr=Ar[Sr][5],Br>0)if(Br==16){for(Nr=Pr;Nr<Lr;Nr++)$r[Nr]=1;Pr=-1}else Pr=-1;if(Or=Ar[Sr][6],Or)Pr==-1&&(Pr=Lr);else if(Pr>-1){for(Nr=Pr;Nr<Lr;Nr++)$r[Nr]=wr;Pr=-1}Dr[Lr]==dr&&($r[Lr]=0),Bt|=wr}if(kt){for(Nr=0;Nr<Tr;Nr++)if(Dr[Nr]==cr){$r[Nr]=At;for(var Ur=Nr-1;Ur>=0&&Dr[Ur]==pr;Ur--)$r[Ur]=At}}}function Ut(_r,$r,Tr){if(!(Bt<_r)){if(_r==1&&At==zt&&!Ft){Tr.reverse();return}for(var Dr=Tr.length,Ar=0,Fr,Rr,wr,Sr;Ar<Dr;){if($r[Ar]>=_r){for(Fr=Ar+1;Fr<Dr&&$r[Fr]>=_r;)Fr++;for(Rr=Ar,wr=Fr-1;Rr<wr;Rr++,wr--)Sr=Tr[Rr],Tr[Rr]=Tr[wr],Tr[wr]=Sr;Ar=Fr}Ar++}}}function ir(_r,$r,Tr,Dr){var Ar=$r[Dr],Fr,Rr,wr,Sr;switch(Ar){case Vt:case Kt:Dt=!1;case Zt:case Qt:return Ar;case Xt:return Dt?Qt:Xt;case Er:return Dt=!0,Kt;case pr:return Zt;case gr:return Dr<1||Dr+1>=$r.length||(Fr=Tr[Dr-1])!=Xt&&Fr!=Qt||(Rr=$r[Dr+1])!=Xt&&Rr!=Qt?Zt:(Dt&&(Rr=Qt),Rr==Fr?Rr:Zt);case vr:return Fr=Dr>0?Tr[Dr-1]:dr,Fr==Xt&&Dr+1<$r.length&&$r[Dr+1]==Xt?Xt:Zt;case yr:if(Dr>0&&Tr[Dr-1]==Xt)return Xt;if(Dt)return Zt;for(Sr=Dr+1,wr=$r.length;Sr<wr&&$r[Sr]==yr;)Sr++;return Sr<wr&&$r[Sr]==Xt?Xt:Zt;case xr:for(wr=$r.length,Sr=Dr+1;Sr<wr&&$r[Sr]==xr;)Sr++;if(Sr<wr){var Br=_r[Dr],Or=Br>=1425&&Br<=2303||Br==64286;if(Fr=$r[Sr],Or&&(Fr==Kt||Fr==Er))return Kt}return Dr<1||(Fr=$r[Dr-1])==dr?Zt:Tr[Dr-1];case dr:return Dt=!1,Ft=!0,At;case cr:return kt=!0,Zt;case rr:case Lt:case Wt:case Gt:case Ht:Dt=!1;case Yt:return Zt}}function Cr(_r){var $r=_r.charCodeAt(0),Tr=$r>>8;return Tr==0?$r>191?Vt:er[$r]:Tr==5?/[\u0591-\u05f4]/.test(_r)?Kt:Vt:Tr==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(_r)?xr:/[\u0660-\u0669\u066b-\u066c]/.test(_r)?Qt:$r==1642?yr:/[\u06f0-\u06f9]/.test(_r)?Xt:Er:Tr==32&&$r<=8287?lr[$r&255]:Tr==254&&$r>=65136?Er:Zt}Ct.L=Vt,Ct.R=Kt,Ct.EN=Xt,Ct.ON_R=3,Ct.AN=4,Ct.R_H=5,Ct.B=6,Ct.RLE=7,Ct.DOT="·",Ct.doBidiReorder=function(_r,$r,Tr){if(_r.length<2)return{};var Dr=_r.split(""),Ar=new Array(Dr.length),Fr=new Array(Dr.length),Rr=[];At=Tr?zt:jt,Jt(Dr,Rr,Dr.length,$r);for(var wr=0;wr<Ar.length;Ar[wr]=wr,wr++);Ut(2,Rr,Ar),Ut(1,Rr,Ar);for(var wr=0;wr<Ar.length-1;wr++)$r[wr]===Qt?Rr[wr]=Ct.AN:Rr[wr]===Kt&&($r[wr]>Er&&$r[wr]<rr||$r[wr]===Zt||$r[wr]===Yt)?Rr[wr]=Ct.ON_R:wr>0&&Dr[wr-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(Dr[wr])&&(Rr[wr-1]=Rr[wr]=Ct.R_H,wr++);Dr[Dr.length-1]===Ct.DOT&&(Rr[Dr.length-1]=Ct.B),Dr[0]==="‫"&&(Rr[0]=Ct.RLE);for(var wr=0;wr<Ar.length;wr++)Fr[wr]=Rr[Ar[wr]];return{logicalFromVisual:Ar,bidiLevels:Fr}},Ct.hasBidiCharacters=function(_r,$r){for(var Tr=!1,Dr=0;Dr<_r.length;Dr++)$r[Dr]=Cr(_r.charAt(Dr)),!Tr&&($r[Dr]==Kt||$r[Dr]==Er||$r[Dr]==Qt)&&(Tr=!0);return Tr},Ct.getVisualFromLogicalIdx=function(_r,$r){for(var Tr=0;Tr<$r.logicalFromVisual.length;Tr++)if($r.logicalFromVisual[Tr]==_r)return Tr;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(yt,Ct,$t){var At=yt("./lib/bidiutil"),Bt=yt("./lib/lang"),Dt=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,Ft=function(){function kt(Mt){this.session=Mt,this.bidiMap={},this.currentRow=null,this.bidiUtil=At,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="‫",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=Dt.test(Mt.getValue())}return kt.prototype.isBidiRow=function(Mt,Nt,jt){return this.seenBidi?(Mt!==this.currentRow&&(this.currentRow=Mt,this.updateRowLine(Nt,jt),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},kt.prototype.onChange=function(Mt){this.seenBidi?this.currentRow=null:Mt.action=="insert"&&Dt.test(Mt.lines.join(`
`))&&(this.seenBidi=!0,this.currentRow=null)},kt.prototype.getDocumentRow=function(){var Mt=0,Nt=this.session.$screenRowCache;if(Nt.length){var jt=this.session.$getRowCacheIndex(Nt,this.currentRow);jt>=0&&(Mt=this.session.$docRowCache[jt])}return Mt},kt.prototype.getSplitIndex=function(){var Mt=0,Nt=this.session.$screenRowCache;if(Nt.length)for(var jt,zt=this.session.$getRowCacheIndex(Nt,this.currentRow);this.currentRow-Mt>0&&(jt=this.session.$getRowCacheIndex(Nt,this.currentRow-Mt-1),jt===zt);)zt=jt,Mt++;else Mt=this.currentRow;return Mt},kt.prototype.updateRowLine=function(Mt,Nt){Mt===void 0&&(Mt=this.getDocumentRow());var jt=Mt===this.session.getLength()-1,zt=jt?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(Mt),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var Vt=this.session.$wrapData[Mt];Vt&&(Nt===void 0&&(Nt=this.getSplitIndex()),Nt>0&&Vt.length?(this.wrapIndent=Vt.indent,this.wrapOffset=this.wrapIndent*this.charWidths[At.L],this.line=Nt<Vt.length?this.line.substring(Vt[Nt-1],Vt[Nt]):this.line.substring(Vt[Vt.length-1])):this.line=this.line.substring(0,Vt[Nt]),Nt==Vt.length&&(this.line+=this.showInvisibles?zt:At.DOT))}else this.line+=this.showInvisibles?zt:At.DOT;var Kt=this.session,Xt=0,Qt;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(Zt,dr){return Zt==="	"||Kt.isFullWidth(Zt.charCodeAt(0))?(Qt=Zt==="	"?Kt.getScreenTabSize(dr+Xt):2,Xt+=Qt-1,Bt.stringRepeat(At.DOT,Qt)):Zt}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==At.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},kt.prototype.updateBidiMap=function(){var Mt=[];At.hasBidiCharacters(this.line,Mt)||this.isRtlDir?this.bidiMap=At.doBidiReorder(this.line,Mt,this.isRtlDir):this.bidiMap={}},kt.prototype.markAsDirty=function(){this.currentRow=null},kt.prototype.updateCharacterWidths=function(Mt){if(this.characterWidth!==Mt.$characterSize.width){this.fontMetrics=Mt;var Nt=this.characterWidth=Mt.$characterSize.width,jt=Mt.$measureCharWidth("ה");this.charWidths[At.L]=this.charWidths[At.EN]=this.charWidths[At.ON_R]=Nt,this.charWidths[At.R]=this.charWidths[At.AN]=jt,this.charWidths[At.R_H]=jt*.45,this.charWidths[At.B]=this.charWidths[At.RLE]=0,this.currentRow=null}},kt.prototype.setShowInvisibles=function(Mt){this.showInvisibles=Mt,this.currentRow=null},kt.prototype.setEolChar=function(Mt){this.EOL=Mt},kt.prototype.setContentWidth=function(Mt){this.contentWidth=Mt},kt.prototype.isRtlLine=function(Mt){return this.$isRtl?!0:Mt!=null?this.session.getLine(Mt).charAt(0)==this.RLE:this.isRtlDir},kt.prototype.setRtlDirection=function(Mt,Nt){for(var jt=Mt.getCursorPosition(),zt=Mt.selection.getSelectionAnchor().row;zt<=jt.row;zt++)!Nt&&Mt.session.getLine(zt).charAt(0)===Mt.session.$bidiHandler.RLE?Mt.session.doc.removeInLine(zt,0,1):Nt&&Mt.session.getLine(zt).charAt(0)!==Mt.session.$bidiHandler.RLE&&Mt.session.doc.insert({column:0,row:zt},Mt.session.$bidiHandler.RLE)},kt.prototype.getPosLeft=function(Mt){Mt-=this.wrapIndent;var Nt=this.line.charAt(0)===this.RLE?1:0,jt=Mt>Nt?this.session.getOverwrite()?Mt:Mt-1:Nt,zt=At.getVisualFromLogicalIdx(jt,this.bidiMap),Vt=this.bidiMap.bidiLevels,Kt=0;!this.session.getOverwrite()&&Mt<=Nt&&Vt[zt]%2!==0&&zt++;for(var Xt=0;Xt<zt;Xt++)Kt+=this.charWidths[Vt[Xt]];return!this.session.getOverwrite()&&Mt>Nt&&Vt[zt]%2===0&&(Kt+=this.charWidths[Vt[zt]]),this.wrapIndent&&(Kt+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(Kt+=this.rtlLineOffset),Kt},kt.prototype.getSelections=function(Mt,Nt){var jt=this.bidiMap,zt=jt.bidiLevels,Vt,Kt=[],Xt=0,Qt=Math.min(Mt,Nt)-this.wrapIndent,Zt=Math.max(Mt,Nt)-this.wrapIndent,dr=!1,cr=!1,Er=0;this.wrapIndent&&(Xt+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var pr,gr=0;gr<zt.length;gr++)pr=jt.logicalFromVisual[gr],Vt=zt[gr],dr=pr>=Qt&&pr<Zt,dr&&!cr?Er=Xt:!dr&&cr&&Kt.push({left:Er,width:Xt-Er}),Xt+=this.charWidths[Vt],cr=dr;if(dr&&gr===zt.length&&Kt.push({left:Er,width:Xt-Er}),this.isRtlDir)for(var vr=0;vr<Kt.length;vr++)Kt[vr].left+=this.rtlLineOffset;return Kt},kt.prototype.offsetToCol=function(jt){this.isRtlDir&&(jt-=this.rtlLineOffset);var Nt=0,jt=Math.max(jt,0),zt=0,Vt=0,Kt=this.bidiMap.bidiLevels,Xt=this.charWidths[Kt[Vt]];for(this.wrapIndent&&(jt-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);jt>zt+Xt/2;){if(zt+=Xt,Vt===Kt.length-1){Xt=0;break}Xt=this.charWidths[Kt[++Vt]]}return Vt>0&&Kt[Vt-1]%2!==0&&Kt[Vt]%2===0?(jt<zt&&Vt--,Nt=this.bidiMap.logicalFromVisual[Vt]):Vt>0&&Kt[Vt-1]%2===0&&Kt[Vt]%2!==0?Nt=1+(jt>zt?this.bidiMap.logicalFromVisual[Vt]:this.bidiMap.logicalFromVisual[Vt-1]):this.isRtlDir&&Vt===Kt.length-1&&Xt===0&&Kt[Vt-1]%2===0||!this.isRtlDir&&Vt===0&&Kt[Vt]%2!==0?Nt=1+this.bidiMap.logicalFromVisual[Vt]:(Vt>0&&Kt[Vt-1]%2!==0&&Xt!==0&&Vt--,Nt=this.bidiMap.logicalFromVisual[Vt]),Nt===0&&this.isRtlDir&&Nt++,Nt+this.wrapIndent},kt}();Ct.BidiHandler=Ft}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(yt,Ct,$t){var At=yt("./lib/oop"),Bt=yt("./lib/lang"),Dt=yt("./lib/event_emitter").EventEmitter,Ft=yt("./range").Range,kt=function(){function Mt(Nt){this.session=Nt,this.doc=Nt.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var jt=this;this.cursor.on("change",function(zt){jt.$cursorChanged=!0,jt.$silent||jt._emit("changeCursor"),!jt.$isEmpty&&!jt.$silent&&jt._emit("changeSelection"),!jt.$keepDesiredColumnOnChange&&zt.old.column!=zt.value.column&&(jt.$desiredColumn=null)}),this.anchor.on("change",function(){jt.$anchorChanged=!0,!jt.$isEmpty&&!jt.$silent&&jt._emit("changeSelection")})}return Mt.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},Mt.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},Mt.prototype.getCursor=function(){return this.lead.getPosition()},Mt.prototype.setAnchor=function(Nt,jt){this.$isEmpty=!1,this.anchor.setPosition(Nt,jt)},Mt.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},Mt.prototype.getSelectionLead=function(){return this.lead.getPosition()},Mt.prototype.isBackwards=function(){var Nt=this.anchor,jt=this.lead;return Nt.row>jt.row||Nt.row==jt.row&&Nt.column>jt.column},Mt.prototype.getRange=function(){var Nt=this.anchor,jt=this.lead;return this.$isEmpty?Ft.fromPoints(jt,jt):this.isBackwards()?Ft.fromPoints(jt,Nt):Ft.fromPoints(Nt,jt)},Mt.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},Mt.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},Mt.prototype.setRange=function(Nt,jt){var zt=jt?Nt.end:Nt.start,Vt=jt?Nt.start:Nt.end;this.$setSelection(zt.row,zt.column,Vt.row,Vt.column)},Mt.prototype.$setSelection=function(Nt,jt,zt,Vt){if(!this.$silent){var Kt=this.$isEmpty,Xt=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(Nt,jt),this.cursor.setPosition(zt,Vt),this.$isEmpty=!Ft.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||Kt!=this.$isEmpty||Xt)&&this._emit("changeSelection")}},Mt.prototype.$moveSelection=function(Nt){var jt=this.lead;this.$isEmpty&&this.setSelectionAnchor(jt.row,jt.column),Nt.call(this)},Mt.prototype.selectTo=function(Nt,jt){this.$moveSelection(function(){this.moveCursorTo(Nt,jt)})},Mt.prototype.selectToPosition=function(Nt){this.$moveSelection(function(){this.moveCursorToPosition(Nt)})},Mt.prototype.moveTo=function(Nt,jt){this.clearSelection(),this.moveCursorTo(Nt,jt)},Mt.prototype.moveToPosition=function(Nt){this.clearSelection(),this.moveCursorToPosition(Nt)},Mt.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},Mt.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},Mt.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},Mt.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},Mt.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},Mt.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},Mt.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},Mt.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},Mt.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},Mt.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},Mt.prototype.getWordRange=function(Nt,jt){if(typeof jt>"u"){var zt=Nt||this.lead;Nt=zt.row,jt=zt.column}return this.session.getWordRange(Nt,jt)},Mt.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},Mt.prototype.selectAWord=function(){var Nt=this.getCursor(),jt=this.session.getAWordRange(Nt.row,Nt.column);this.setSelectionRange(jt)},Mt.prototype.getLineRange=function(Nt,jt){var zt=typeof Nt=="number"?Nt:this.lead.row,Vt,Kt=this.session.getFoldLine(zt);return Kt?(zt=Kt.start.row,Vt=Kt.end.row):Vt=zt,jt===!0?new Ft(zt,0,Vt,this.session.getLine(Vt).length):new Ft(zt,0,Vt+1,0)},Mt.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},Mt.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},Mt.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},Mt.prototype.wouldMoveIntoSoftTab=function(Nt,jt,zt){var Vt=Nt.column,Kt=Nt.column+jt;return zt<0&&(Vt=Nt.column-jt,Kt=Nt.column),this.session.isTabStop(Nt)&&this.doc.getLine(Nt.row).slice(Vt,Kt).split(" ").length-1==jt},Mt.prototype.moveCursorLeft=function(){var Nt=this.lead.getPosition(),jt;if(jt=this.session.getFoldAt(Nt.row,Nt.column,-1))this.moveCursorTo(jt.start.row,jt.start.column);else if(Nt.column===0)Nt.row>0&&this.moveCursorTo(Nt.row-1,this.doc.getLine(Nt.row-1).length);else{var zt=this.session.getTabSize();this.wouldMoveIntoSoftTab(Nt,zt,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-zt):this.moveCursorBy(0,-1)}},Mt.prototype.moveCursorRight=function(){var Nt=this.lead.getPosition(),jt;if(jt=this.session.getFoldAt(Nt.row,Nt.column,1))this.moveCursorTo(jt.end.row,jt.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var zt=this.session.getTabSize(),Nt=this.lead;this.wouldMoveIntoSoftTab(Nt,zt,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,zt):this.moveCursorBy(0,1)}},Mt.prototype.moveCursorLineStart=function(){var Nt=this.lead.row,jt=this.lead.column,zt=this.session.documentToScreenRow(Nt,jt),Vt=this.session.screenToDocumentPosition(zt,0),Kt=this.session.getDisplayLine(Nt,null,Vt.row,Vt.column),Xt=Kt.match(/^\s*/);Xt[0].length!=jt&&!this.session.$useEmacsStyleLineStart&&(Vt.column+=Xt[0].length),this.moveCursorToPosition(Vt)},Mt.prototype.moveCursorLineEnd=function(){var Nt=this.lead,jt=this.session.getDocumentLastRowColumnPosition(Nt.row,Nt.column);if(this.lead.column==jt.column){var zt=this.session.getLine(jt.row);if(jt.column==zt.length){var Vt=zt.search(/\s+$/);Vt>0&&(jt.column=Vt)}}this.moveCursorTo(jt.row,jt.column)},Mt.prototype.moveCursorFileEnd=function(){var Nt=this.doc.getLength()-1,jt=this.doc.getLine(Nt).length;this.moveCursorTo(Nt,jt)},Mt.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},Mt.prototype.moveCursorLongWordRight=function(){var Nt=this.lead.row,jt=this.lead.column,zt=this.doc.getLine(Nt),Vt=zt.substring(jt);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var Kt=this.session.getFoldAt(Nt,jt,1);if(Kt){this.moveCursorTo(Kt.end.row,Kt.end.column);return}if(this.session.nonTokenRe.exec(Vt)&&(jt+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,Vt=zt.substring(jt)),jt>=zt.length){this.moveCursorTo(Nt,zt.length),this.moveCursorRight(),Nt<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(Vt)&&(jt+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(Nt,jt)},Mt.prototype.moveCursorLongWordLeft=function(){var Nt=this.lead.row,jt=this.lead.column,zt;if(zt=this.session.getFoldAt(Nt,jt,-1)){this.moveCursorTo(zt.start.row,zt.start.column);return}var Vt=this.session.getFoldStringAt(Nt,jt,-1);Vt==null&&(Vt=this.doc.getLine(Nt).substring(0,jt));var Kt=Bt.stringReverse(Vt);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(Kt)&&(jt-=this.session.nonTokenRe.lastIndex,Kt=Kt.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),jt<=0){this.moveCursorTo(Nt,0),this.moveCursorLeft(),Nt>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(Kt)&&(jt-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(Nt,jt)},Mt.prototype.$shortWordEndIndex=function(Nt){var jt=0,zt,Vt=/\s/,Kt=this.session.tokenRe;if(Kt.lastIndex=0,this.session.tokenRe.exec(Nt))jt=this.session.tokenRe.lastIndex;else{for(;(zt=Nt[jt])&&Vt.test(zt);)jt++;if(jt<1){for(Kt.lastIndex=0;(zt=Nt[jt])&&!Kt.test(zt);)if(Kt.lastIndex=0,jt++,Vt.test(zt))if(jt>2){jt--;break}else{for(;(zt=Nt[jt])&&Vt.test(zt);)jt++;if(jt>2)break}}}return Kt.lastIndex=0,jt},Mt.prototype.moveCursorShortWordRight=function(){var Nt=this.lead.row,jt=this.lead.column,zt=this.doc.getLine(Nt),Vt=zt.substring(jt),Kt=this.session.getFoldAt(Nt,jt,1);if(Kt)return this.moveCursorTo(Kt.end.row,Kt.end.column);if(jt==zt.length){var Xt=this.doc.getLength();do Nt++,Vt=this.doc.getLine(Nt);while(Nt<Xt&&/^\s*$/.test(Vt));/^\s+/.test(Vt)||(Vt=""),jt=0}var Qt=this.$shortWordEndIndex(Vt);this.moveCursorTo(Nt,jt+Qt)},Mt.prototype.moveCursorShortWordLeft=function(){var Nt=this.lead.row,jt=this.lead.column,zt;if(zt=this.session.getFoldAt(Nt,jt,-1))return this.moveCursorTo(zt.start.row,zt.start.column);var Vt=this.session.getLine(Nt).substring(0,jt);if(jt===0){do Nt--,Vt=this.doc.getLine(Nt);while(Nt>0&&/^\s*$/.test(Vt));jt=Vt.length,/\s+$/.test(Vt)||(Vt="")}var Kt=Bt.stringReverse(Vt),Xt=this.$shortWordEndIndex(Kt);return this.moveCursorTo(Nt,jt-Xt)},Mt.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},Mt.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},Mt.prototype.moveCursorBy=function(Nt,jt){var zt=this.session.documentToScreenPosition(this.lead.row,this.lead.column),Vt;if(jt===0&&(Nt!==0&&(this.session.$bidiHandler.isBidiRow(zt.row,this.lead.row)?(Vt=this.session.$bidiHandler.getPosLeft(zt.column),zt.column=Math.round(Vt/this.session.$bidiHandler.charWidths[0])):Vt=zt.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?zt.column=this.$desiredColumn:this.$desiredColumn=zt.column),Nt!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var Kt=this.session.lineWidgets[this.lead.row];Nt<0?Nt-=Kt.rowsAbove||0:Nt>0&&(Nt+=Kt.rowCount-(Kt.rowsAbove||0))}var Xt=this.session.screenToDocumentPosition(zt.row+Nt,zt.column,Vt);Nt!==0&&jt===0&&Xt.row===this.lead.row&&(Xt.column,this.lead.column),this.moveCursorTo(Xt.row,Xt.column+jt,jt===0)},Mt.prototype.moveCursorToPosition=function(Nt){this.moveCursorTo(Nt.row,Nt.column)},Mt.prototype.moveCursorTo=function(Nt,jt,zt){var Vt=this.session.getFoldAt(Nt,jt,1);Vt&&(Nt=Vt.start.row,jt=Vt.start.column),this.$keepDesiredColumnOnChange=!0;var Kt=this.session.getLine(Nt);/[\uDC00-\uDFFF]/.test(Kt.charAt(jt))&&Kt.charAt(jt-1)&&(this.lead.row==Nt&&this.lead.column==jt+1?jt=jt-1:jt=jt+1),this.lead.setPosition(Nt,jt),this.$keepDesiredColumnOnChange=!1,zt||(this.$desiredColumn=null)},Mt.prototype.moveCursorToScreen=function(Nt,jt,zt){var Vt=this.session.screenToDocumentPosition(Nt,jt);this.moveCursorTo(Vt.row,Vt.column,zt)},Mt.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},Mt.prototype.fromOrientedRange=function(Nt){this.setSelectionRange(Nt,Nt.cursor==Nt.start),this.$desiredColumn=Nt.desiredColumn||this.$desiredColumn},Mt.prototype.toOrientedRange=function(Nt){var jt=this.getRange();return Nt?(Nt.start.column=jt.start.column,Nt.start.row=jt.start.row,Nt.end.column=jt.end.column,Nt.end.row=jt.end.row):Nt=jt,Nt.cursor=this.isBackwards()?Nt.start:Nt.end,Nt.desiredColumn=this.$desiredColumn,Nt},Mt.prototype.getRangeOfMovements=function(Nt){var jt=this.getCursor();try{Nt(this);var zt=this.getCursor();return Ft.fromPoints(jt,zt)}catch{return Ft.fromPoints(jt,jt)}finally{this.moveCursorToPosition(jt)}},Mt.prototype.toJSON=function(){if(this.rangeCount)var Nt=this.ranges.map(function(jt){var zt=jt.clone();return zt.isBackwards=jt.cursor==jt.start,zt});else{var Nt=this.getRange();Nt.isBackwards=this.isBackwards()}return Nt},Mt.prototype.fromJSON=function(Nt){if(Nt.start==null)if(this.rangeList&&Nt.length>1){this.toSingleRange(Nt[0]);for(var jt=Nt.length;jt--;){var zt=Ft.fromPoints(Nt[jt].start,Nt[jt].end);Nt[jt].isBackwards&&(zt.cursor=zt.start),this.addRange(zt,!0)}return}else Nt=Nt[0];this.rangeList&&this.toSingleRange(Nt),this.setSelectionRange(Nt,Nt.isBackwards)},Mt.prototype.isEqual=function(Nt){if((Nt.length||this.rangeCount)&&Nt.length!=this.rangeCount)return!1;if(!Nt.length||!this.ranges)return this.getRange().isEqual(Nt);for(var jt=this.ranges.length;jt--;)if(!this.ranges[jt].isEqual(Nt[jt]))return!1;return!0},Mt}();kt.prototype.setSelectionAnchor=kt.prototype.setAnchor,kt.prototype.getSelectionAnchor=kt.prototype.getAnchor,kt.prototype.setSelectionRange=kt.prototype.setRange,At.implement(kt.prototype,Dt),Ct.Selection=kt}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(yt,Ct,$t){var At=yt("./lib/report_error").reportError,Bt=2e3,Dt=function(){function Ft(kt){this.splitRegex,this.states=kt,this.regExps={},this.matchMappings={};for(var Mt in this.states){for(var Nt=this.states[Mt],jt=[],zt=0,Vt=this.matchMappings[Mt]={defaultToken:"text"},Kt="g",Xt=[],Qt=0;Qt<Nt.length;Qt++){var Zt=Nt[Qt];if(Zt.defaultToken&&(Vt.defaultToken=Zt.defaultToken),Zt.caseInsensitive&&Kt.indexOf("i")===-1&&(Kt+="i"),Zt.unicode&&Kt.indexOf("u")===-1&&(Kt+="u"),Zt.regex!=null){Zt.regex instanceof RegExp&&(Zt.regex=Zt.regex.toString().slice(1,-1));var dr=Zt.regex,cr=new RegExp("(?:("+dr+")|(.))").exec("a").length-2;Array.isArray(Zt.token)?Zt.token.length==1||cr==1?Zt.token=Zt.token[0]:cr-1!=Zt.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:Zt,groupCount:cr-1}),Zt.token=Zt.token[0]):(Zt.tokenArray=Zt.token,Zt.token=null,Zt.onMatch=this.$arrayTokens):typeof Zt.token=="function"&&!Zt.onMatch&&(cr>1?Zt.onMatch=this.$applyToken:Zt.onMatch=Zt.token),cr>1&&(/\\\d/.test(Zt.regex)?dr=Zt.regex.replace(/\\([0-9]+)/g,function(Er,pr){return"\\"+(parseInt(pr,10)+zt+1)}):(cr=1,dr=this.removeCapturingGroups(Zt.regex)),!Zt.splitRegex&&typeof Zt.token!="string"&&Xt.push(Zt)),Vt[zt]=Qt,zt+=cr,jt.push(dr),Zt.onMatch||(Zt.onMatch=null)}}jt.length||(Vt[0]=0,jt.push("$")),Xt.forEach(function(Er){Er.splitRegex=this.createSplitterRegexp(Er.regex,Kt)},this),this.regExps[Mt]=new RegExp("("+jt.join(")|(")+")|($)",Kt)}}return Ft.prototype.$setMaxTokenCount=function(kt){Bt=kt|0},Ft.prototype.$applyToken=function(kt){var Mt=this.splitRegex.exec(kt).slice(1),Nt=this.token.apply(this,Mt);if(typeof Nt=="string")return[{type:Nt,value:kt}];for(var jt=[],zt=0,Vt=Nt.length;zt<Vt;zt++)Mt[zt]&&(jt[jt.length]={type:Nt[zt],value:Mt[zt]});return jt},Ft.prototype.$arrayTokens=function(kt){if(!kt)return[];var Mt=this.splitRegex.exec(kt);if(!Mt)return"text";for(var Nt=[],jt=this.tokenArray,zt=0,Vt=jt.length;zt<Vt;zt++)Mt[zt+1]&&(Nt[Nt.length]={type:jt[zt],value:Mt[zt+1]});return Nt},Ft.prototype.removeCapturingGroups=function(kt){var Mt=kt.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(Nt,jt){return jt?"(?:":Nt});return Mt},Ft.prototype.createSplitterRegexp=function(kt,Mt){if(kt.indexOf("(?=")!=-1){var Nt=0,jt=!1,zt={};kt.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(Vt,Kt,Xt,Qt,Zt,dr){return jt?jt=Zt!="]":Zt?jt=!0:Qt?(Nt==zt.stack&&(zt.end=dr+1,zt.stack=-1),Nt--):Xt&&(Nt++,Xt.length!=1&&(zt.stack=Nt,zt.start=dr)),Vt}),zt.end!=null&&/^\)*$/.test(kt.substr(zt.end))&&(kt=kt.substring(0,zt.start)+kt.substr(zt.end))}return kt.charAt(0)!="^"&&(kt="^"+kt),kt.charAt(kt.length-1)!="$"&&(kt+="$"),new RegExp(kt,(Mt||"").replace("g",""))},Ft.prototype.getLineTokens=function(kt,Mt){if(Mt&&typeof Mt!="string"){var Nt=Mt.slice(0);Mt=Nt[0],Mt==="#tmp"&&(Nt.shift(),Mt=Nt.shift())}else var Nt=[];var jt=Mt||"start",zt=this.states[jt];zt||(jt="start",zt=this.states[jt]);var Vt=this.matchMappings[jt],Kt=this.regExps[jt];Kt.lastIndex=0;for(var Xt,Qt=[],Zt=0,dr=0,cr={type:null,value:""};Xt=Kt.exec(kt);){var Er=Vt.defaultToken,pr=null,gr=Xt[0],vr=Kt.lastIndex;if(vr-gr.length>Zt){var yr=kt.substring(Zt,vr-gr.length);cr.type==Er?cr.value+=yr:(cr.type&&Qt.push(cr),cr={type:Er,value:yr})}for(var xr=0;xr<Xt.length-2;xr++)if(Xt[xr+1]!==void 0){pr=zt[Vt[xr]],pr.onMatch?Er=pr.onMatch(gr,jt,Nt,kt):Er=pr.token,pr.next&&(typeof pr.next=="string"?jt=pr.next:jt=pr.next(jt,Nt),zt=this.states[jt],zt||(this.reportError("state doesn't exist",jt),jt="start",zt=this.states[jt]),Vt=this.matchMappings[jt],Zt=vr,Kt=this.regExps[jt],Kt.lastIndex=vr),pr.consumeLineEnd&&(Zt=vr);break}if(gr){if(typeof Er=="string")(!pr||pr.merge!==!1)&&cr.type===Er?cr.value+=gr:(cr.type&&Qt.push(cr),cr={type:Er,value:gr});else if(Er){cr.type&&Qt.push(cr),cr={type:null,value:""};for(var xr=0;xr<Er.length;xr++)Qt.push(Er[xr])}}if(Zt==kt.length)break;if(Zt=vr,dr++>Bt){for(dr>2*kt.length&&this.reportError("infinite loop with in ace tokenizer",{startState:Mt,line:kt});Zt<kt.length;)cr.type&&Qt.push(cr),cr={value:kt.substring(Zt,Zt+=500),type:"overflow"};jt="start",Nt=[];break}}return cr.type&&Qt.push(cr),Nt.length>1&&Nt[0]!==jt&&Nt.unshift("#tmp",jt),{tokens:Qt,state:Nt.length?Nt:jt}},Ft}();Dt.prototype.reportError=At,Ct.Tokenizer=Dt}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(yt,Ct,$t){var At=yt("../lib/deep_copy").deepCopy,Bt;Bt=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(kt,Mt){if(!Mt){for(var Nt in kt)this.$rules[Nt]=kt[Nt];return}for(var Nt in kt){for(var jt=kt[Nt],zt=0;zt<jt.length;zt++){var Vt=jt[zt];(Vt.next||Vt.onMatch)&&(typeof Vt.next=="string"&&Vt.next.indexOf(Mt)!==0&&(Vt.next=Mt+Vt.next),Vt.nextState&&Vt.nextState.indexOf(Mt)!==0&&(Vt.nextState=Mt+Vt.nextState))}this.$rules[Mt+Nt]=jt}},this.getRules=function(){return this.$rules},this.embedRules=function(kt,Mt,Nt,jt,zt){var Vt=typeof kt=="function"?new kt().getRules():kt;if(jt)for(var Kt=0;Kt<jt.length;Kt++)jt[Kt]=Mt+jt[Kt];else{jt=[];for(var Xt in Vt)jt.push(Mt+Xt)}if(this.addRules(Vt,Mt),Nt)for(var Qt=Array.prototype[zt?"push":"unshift"],Kt=0;Kt<jt.length;Kt++)Qt.apply(this.$rules[jt[Kt]],At(Nt));this.$embeds||(this.$embeds=[]),this.$embeds.push(Mt)},this.getEmbeds=function(){return this.$embeds};var Dt=function(kt,Mt){return(kt!="start"||Mt.length)&&Mt.unshift(this.nextState,kt),this.nextState},Ft=function(kt,Mt){return Mt.shift(),Mt.shift()||"start"};this.normalizeRules=function(){var kt=0,Mt=this.$rules;function Nt(jt){var zt=Mt[jt];zt.processed=!0;for(var Vt=0;Vt<zt.length;Vt++){var Kt=zt[Vt],Xt=null;Array.isArray(Kt)&&(Xt=Kt,Kt={}),!Kt.regex&&Kt.start&&(Kt.regex=Kt.start,Kt.next||(Kt.next=[]),Kt.next.push({defaultToken:Kt.token},{token:Kt.token+".end",regex:Kt.end||Kt.start,next:"pop"}),Kt.token=Kt.token+".start",Kt.push=!0);var Qt=Kt.next||Kt.push;if(Qt&&Array.isArray(Qt)){var Zt=Kt.stateName;Zt||(Zt=Kt.token,typeof Zt!="string"&&(Zt=Zt[0]||""),Mt[Zt]&&(Zt+=kt++)),Mt[Zt]=Qt,Kt.next=Zt,Nt(Zt)}else Qt=="pop"&&(Kt.next=Ft);if(Kt.push&&(Kt.nextState=Kt.next||Kt.push,Kt.next=Dt,delete Kt.push),Kt.rules)for(var dr in Kt.rules)Mt[dr]?Mt[dr].push&&Mt[dr].push.apply(Mt[dr],Kt.rules[dr]):Mt[dr]=Kt.rules[dr];var cr=typeof Kt=="string"?Kt:Kt.include;if(cr&&(cr==="$self"&&(cr="start"),Array.isArray(cr)?Xt=cr.map(function(pr){return Mt[pr]}):Xt=Mt[cr]),Xt){var Er=[Vt,1].concat(Xt);Kt.noEscape&&(Er=Er.filter(function(pr){return!pr.next})),zt.splice.apply(zt,Er),Vt--}Kt.keywordMap&&(Kt.token=this.createKeywordMapper(Kt.keywordMap,Kt.defaultToken||"text",Kt.caseInsensitive),delete Kt.defaultToken)}}Object.keys(Mt).forEach(Nt,this)},this.createKeywordMapper=function(kt,Mt,Nt,jt){var zt=Object.create(null);return this.$keywordList=[],Object.keys(kt).forEach(function(Vt){for(var Kt=kt[Vt],Xt=Kt.split(jt||"|"),Qt=Xt.length;Qt--;){var Zt=Xt[Qt];this.$keywordList.push(Zt),Nt&&(Zt=Zt.toLowerCase()),zt[Zt]=Vt}},this),kt=null,Nt?function(Vt){return zt[Vt.toLowerCase()]||Mt}:function(Vt){return zt[Vt]||Mt}},this.getKeywords=function(){return this.$keywords}}).call(Bt.prototype),Ct.TextHighlightRules=Bt}),ace.define("ace/mode/behaviour",["require","exports","module"],function(yt,Ct,$t){var At;At=function(){this.$behaviours={}},(function(){this.add=function(Bt,Dt,Ft){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[Bt]:this.$behaviours[Bt]={}}this.$behaviours[Bt][Dt]=Ft},this.addBehaviours=function(Bt){for(var Dt in Bt)for(var Ft in Bt[Dt])this.add(Dt,Ft,Bt[Dt][Ft])},this.remove=function(Bt){this.$behaviours&&this.$behaviours[Bt]&&delete this.$behaviours[Bt]},this.inherit=function(Bt,Dt){if(typeof Bt=="function")var Ft=new Bt().getBehaviours(Dt);else var Ft=Bt.getBehaviours(Dt);this.addBehaviours(Ft)},this.getBehaviours=function(Bt){if(Bt){for(var Dt={},Ft=0;Ft<Bt.length;Ft++)this.$behaviours[Bt[Ft]]&&(Dt[Bt[Ft]]=this.$behaviours[Bt[Ft]]);return Dt}else return this.$behaviours}}).call(At.prototype),Ct.Behaviour=At}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(yt,Ct,$t){var At=yt("./range").Range,Bt=function(){function Dt(Ft,kt,Mt){this.$session=Ft,this.$row=kt,this.$rowTokens=Ft.getTokens(kt);var Nt=Ft.getTokenAt(kt,Mt);this.$tokenIndex=Nt?Nt.index:-1}return Dt.prototype.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},Dt.prototype.stepForward=function(){this.$tokenIndex+=1;for(var Ft;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,Ft||(Ft=this.$session.getLength()),this.$row>=Ft)return this.$row=Ft-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},Dt.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},Dt.prototype.getCurrentTokenRow=function(){return this.$row},Dt.prototype.getCurrentTokenColumn=function(){var Ft=this.$rowTokens,kt=this.$tokenIndex,Mt=Ft[kt].start;if(Mt!==void 0)return Mt;for(Mt=0;kt>0;)kt-=1,Mt+=Ft[kt].value.length;return Mt},Dt.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},Dt.prototype.getCurrentTokenRange=function(){var Ft=this.$rowTokens[this.$tokenIndex],kt=this.getCurrentTokenColumn();return new At(this.$row,kt,this.$row,kt+Ft.value.length)},Dt}();Ct.TokenIterator=Bt}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(yt,Ct,$t){var At=yt("../../lib/oop"),Bt=yt("../behaviour").Behaviour,Dt=yt("../../token_iterator").TokenIterator,Ft=yt("../../lib/lang"),kt=["text","paren.rparen","rparen","paren","punctuation.operator"],Mt=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],Nt,jt={},zt={'"':'"',"'":"'"},Vt=function(Qt){var Zt=-1;if(Qt.multiSelect&&(Zt=Qt.selection.index,jt.rangeCount!=Qt.multiSelect.rangeCount&&(jt={rangeCount:Qt.multiSelect.rangeCount})),jt[Zt])return Nt=jt[Zt];Nt=jt[Zt]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},Kt=function(Qt,Zt,dr,cr){var Er=Qt.end.row-Qt.start.row;return{text:dr+Zt+cr,selection:[0,Qt.start.column+1,Er,Qt.end.column+(Er?0:1)]}},Xt;Xt=function(Qt){Qt=Qt||{},this.add("braces","insertion",function(Zt,dr,cr,Er,pr){var gr=cr.getCursorPosition(),vr=Er.doc.getLine(gr.row);if(pr=="{"){Vt(cr);var yr=cr.getSelectionRange(),xr=Er.doc.getTextRange(yr),rr=Er.getTokenAt(gr.row,gr.column);if(xr!==""&&xr!=="{"&&cr.getWrapBehavioursEnabled())return Kt(yr,xr,"{","}");if(rr&&/(?:string)\.quasi|\.xml/.test(rr.type)){var Lt=[/tag\-(?:open|name)/,/attribute\-name/];return Lt.some(function(Jt){return Jt.test(rr.type)})||/(string)\.quasi/.test(rr.type)&&rr.value[gr.column-rr.start-1]!=="$"?void 0:(Xt.recordAutoInsert(cr,Er,"}"),{text:"{}",selection:[1,1]})}else if(Xt.isSaneInsertion(cr,Er))return/[\]\}\)]/.test(vr[gr.column])||cr.inMultiSelectMode||Qt.braces?(Xt.recordAutoInsert(cr,Er,"}"),{text:"{}",selection:[1,1]}):(Xt.recordMaybeInsert(cr,Er,"{"),{text:"{",selection:[1,1]})}else if(pr=="}"){Vt(cr);var Ht=vr.substring(gr.column,gr.column+1);if(Ht=="}"){var Wt=Er.$findOpeningBracket("}",{column:gr.column+1,row:gr.row});if(Wt!==null&&Xt.isAutoInsertedClosing(gr,vr,pr))return Xt.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(pr==`
`||pr==`\r
`){Vt(cr);var Gt="";Xt.isMaybeInsertedClosing(gr,vr)&&(Gt=Ft.stringRepeat("}",Nt.maybeInsertedBrackets),Xt.clearMaybeInsertedClosing());var Ht=vr.substring(gr.column,gr.column+1);if(Ht==="}"){var Yt=Er.findMatchingBracket({row:gr.row,column:gr.column+1},"}");if(!Yt)return null;var er=this.$getIndent(Er.getLine(Yt.row))}else if(Gt)var er=this.$getIndent(vr);else{Xt.clearMaybeInsertedClosing();return}var lr=er+Er.getTabString();return{text:`
`+lr+`
`+er+Gt,selection:[1,lr.length,1,lr.length]}}else Xt.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(Zt,dr,cr,Er,pr){var gr=Er.doc.getTextRange(pr);if(!pr.isMultiLine()&&gr=="{"){Vt(cr);var vr=Er.doc.getLine(pr.start.row),yr=vr.substring(pr.end.column,pr.end.column+1);if(yr=="}")return pr.end.column++,pr;Nt.maybeInsertedBrackets--}}),this.add("parens","insertion",function(Zt,dr,cr,Er,pr){if(pr=="("){Vt(cr);var gr=cr.getSelectionRange(),vr=Er.doc.getTextRange(gr);if(vr!==""&&cr.getWrapBehavioursEnabled())return Kt(gr,vr,"(",")");if(Xt.isSaneInsertion(cr,Er))return Xt.recordAutoInsert(cr,Er,")"),{text:"()",selection:[1,1]}}else if(pr==")"){Vt(cr);var yr=cr.getCursorPosition(),xr=Er.doc.getLine(yr.row),rr=xr.substring(yr.column,yr.column+1);if(rr==")"){var Lt=Er.$findOpeningBracket(")",{column:yr.column+1,row:yr.row});if(Lt!==null&&Xt.isAutoInsertedClosing(yr,xr,pr))return Xt.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(Zt,dr,cr,Er,pr){var gr=Er.doc.getTextRange(pr);if(!pr.isMultiLine()&&gr=="("){Vt(cr);var vr=Er.doc.getLine(pr.start.row),yr=vr.substring(pr.start.column+1,pr.start.column+2);if(yr==")")return pr.end.column++,pr}}),this.add("brackets","insertion",function(Zt,dr,cr,Er,pr){if(pr=="["){Vt(cr);var gr=cr.getSelectionRange(),vr=Er.doc.getTextRange(gr);if(vr!==""&&cr.getWrapBehavioursEnabled())return Kt(gr,vr,"[","]");if(Xt.isSaneInsertion(cr,Er))return Xt.recordAutoInsert(cr,Er,"]"),{text:"[]",selection:[1,1]}}else if(pr=="]"){Vt(cr);var yr=cr.getCursorPosition(),xr=Er.doc.getLine(yr.row),rr=xr.substring(yr.column,yr.column+1);if(rr=="]"){var Lt=Er.$findOpeningBracket("]",{column:yr.column+1,row:yr.row});if(Lt!==null&&Xt.isAutoInsertedClosing(yr,xr,pr))return Xt.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(Zt,dr,cr,Er,pr){var gr=Er.doc.getTextRange(pr);if(!pr.isMultiLine()&&gr=="["){Vt(cr);var vr=Er.doc.getLine(pr.start.row),yr=vr.substring(pr.start.column+1,pr.start.column+2);if(yr=="]")return pr.end.column++,pr}}),this.add("string_dquotes","insertion",function(Zt,dr,cr,Er,pr){var gr=Er.$mode.$quotes||zt;if(pr.length==1&&gr[pr]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(pr)!=-1)return;Vt(cr);var vr=pr,yr=cr.getSelectionRange(),xr=Er.doc.getTextRange(yr);if(xr!==""&&(xr.length!=1||!gr[xr])&&cr.getWrapBehavioursEnabled())return Kt(yr,xr,vr,vr);if(!xr){var rr=cr.getCursorPosition(),Lt=Er.doc.getLine(rr.row),Ht=Lt.substring(rr.column-1,rr.column),Wt=Lt.substring(rr.column,rr.column+1),Gt=Er.getTokenAt(rr.row,rr.column),Yt=Er.getTokenAt(rr.row,rr.column+1);if(Ht=="\\"&&Gt&&/escape/.test(Gt.type))return null;var er=Gt&&/string|escape/.test(Gt.type),lr=!Yt||/string|escape/.test(Yt.type),Jt;if(Wt==vr)Jt=er!==lr,Jt&&/string\.end/.test(Yt.type)&&(Jt=!1);else{if(er&&!lr||er&&lr)return null;var Ut=Er.$mode.tokenRe;Ut.lastIndex=0;var ir=Ut.test(Ht);Ut.lastIndex=0;var Cr=Ut.test(Wt),_r=Er.$mode.$pairQuotesAfter,$r=_r&&_r[vr]&&_r[vr].test(Ht);if(!$r&&ir||Cr||Wt&&!/[\s;,.})\]\\]/.test(Wt))return null;var Tr=Lt[rr.column-2];if(Ht==vr&&(Tr==vr||Ut.test(Tr)))return null;Jt=!0}return{text:Jt?vr+vr:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(Zt,dr,cr,Er,pr){var gr=Er.$mode.$quotes||zt,vr=Er.doc.getTextRange(pr);if(!pr.isMultiLine()&&gr.hasOwnProperty(vr)){Vt(cr);var yr=Er.doc.getLine(pr.start.row),xr=yr.substring(pr.start.column+1,pr.start.column+2);if(xr==vr)return pr.end.column++,pr}}),Qt.closeDocComment!==!1&&this.add("doc comment end","insertion",function(Zt,dr,cr,Er,pr){if(Zt==="doc-start"&&(pr===`
`||pr===`\r
`)&&cr.selection.isEmpty()){var gr=cr.getCursorPosition();if(gr.column===0)return;for(var vr=Er.doc.getLine(gr.row),yr=Er.doc.getLine(gr.row+1),xr=Er.getTokens(gr.row),rr=0,Lt=0;Lt<xr.length;Lt++){rr+=xr[Lt].value.length;var Ht=xr[Lt];if(rr>=gr.column){if(rr===gr.column){if(!/\.doc/.test(Ht.type))return;if(/\*\//.test(Ht.value)){var Wt=xr[Lt+1];if(!Wt||!/\.doc/.test(Wt.type))return}}var Gt=gr.column-(rr-Ht.value.length),Yt=Ht.value.indexOf("*/"),er=Ht.value.indexOf("/**",Yt>-1?Yt+2:0);if(er!==-1&&Gt>er&&Gt<er+3||Yt!==-1&&er!==-1&&Gt>=Yt&&Gt<=er||!/\.doc/.test(Ht.type))return;break}}var lr=this.$getIndent(vr);if(/\s*\*/.test(yr))return/^\s*\*/.test(vr)?{text:pr+lr+"* ",selection:[1,2+lr.length,1,2+lr.length]}:{text:pr+lr+" * ",selection:[1,3+lr.length,1,3+lr.length]};if(/\/\*\*/.test(vr.substring(0,gr.column)))return{text:pr+lr+" * "+pr+" "+lr+"*/",selection:[1,4+lr.length,1,4+lr.length]}}})},Xt.isSaneInsertion=function(Qt,Zt){var dr=Qt.getCursorPosition(),cr=new Dt(Zt,dr.row,dr.column);if(!this.$matchTokenType(cr.getCurrentToken()||"text",kt)){if(/[)}\]]/.test(Qt.session.getLine(dr.row)[dr.column]))return!0;var Er=new Dt(Zt,dr.row,dr.column+1);if(!this.$matchTokenType(Er.getCurrentToken()||"text",kt))return!1}return cr.stepForward(),cr.getCurrentTokenRow()!==dr.row||this.$matchTokenType(cr.getCurrentToken()||"text",Mt)},Xt.$matchTokenType=function(Qt,Zt){return Zt.indexOf(Qt.type||Qt)>-1},Xt.recordAutoInsert=function(Qt,Zt,dr){var cr=Qt.getCursorPosition(),Er=Zt.doc.getLine(cr.row);this.isAutoInsertedClosing(cr,Er,Nt.autoInsertedLineEnd[0])||(Nt.autoInsertedBrackets=0),Nt.autoInsertedRow=cr.row,Nt.autoInsertedLineEnd=dr+Er.substr(cr.column),Nt.autoInsertedBrackets++},Xt.recordMaybeInsert=function(Qt,Zt,dr){var cr=Qt.getCursorPosition(),Er=Zt.doc.getLine(cr.row);this.isMaybeInsertedClosing(cr,Er)||(Nt.maybeInsertedBrackets=0),Nt.maybeInsertedRow=cr.row,Nt.maybeInsertedLineStart=Er.substr(0,cr.column)+dr,Nt.maybeInsertedLineEnd=Er.substr(cr.column),Nt.maybeInsertedBrackets++},Xt.isAutoInsertedClosing=function(Qt,Zt,dr){return Nt.autoInsertedBrackets>0&&Qt.row===Nt.autoInsertedRow&&dr===Nt.autoInsertedLineEnd[0]&&Zt.substr(Qt.column)===Nt.autoInsertedLineEnd},Xt.isMaybeInsertedClosing=function(Qt,Zt){return Nt.maybeInsertedBrackets>0&&Qt.row===Nt.maybeInsertedRow&&Zt.substr(Qt.column)===Nt.maybeInsertedLineEnd&&Zt.substr(0,Qt.column)==Nt.maybeInsertedLineStart},Xt.popAutoInsertedClosing=function(){Nt.autoInsertedLineEnd=Nt.autoInsertedLineEnd.substr(1),Nt.autoInsertedBrackets--},Xt.clearMaybeInsertedClosing=function(){Nt&&(Nt.maybeInsertedBrackets=0,Nt.maybeInsertedRow=-1)},At.inherits(Xt,Bt),Ct.CstyleBehaviour=Xt}),ace.define("ace/unicode",["require","exports","module"],function(yt,Ct,$t){for(var At=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],Bt=0,Dt=[],Ft=0;Ft<At.length;Ft+=2)Dt.push(Bt+=At[Ft]),At[Ft+1]&&Dt.push(45,Bt+=At[Ft+1]);Ct.wordChars=String.fromCharCode.apply(null,Dt)}),ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(yt,Ct,$t){var At=yt("../config"),Bt=yt("../tokenizer").Tokenizer,Dt=yt("./text_highlight_rules").TextHighlightRules,Ft=yt("./behaviour/cstyle").CstyleBehaviour,kt=yt("../unicode"),Mt=yt("../lib/lang"),Nt=yt("../token_iterator").TokenIterator,jt=yt("../range").Range,zt;zt=function(){this.HighlightRules=Dt},(function(){this.$defaultBehaviour=new Ft,this.tokenRe=new RegExp("^["+kt.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+kt.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new Bt(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(Vt,Kt,Xt,Qt){var Zt=Kt.doc,dr=!0,cr=!0,Er=1/0,pr=Kt.getTabSize(),gr=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var xr=this.lineCommentStart.map(Mt.escapeRegExp).join("|"),vr=this.lineCommentStart[0];else var xr=Mt.escapeRegExp(this.lineCommentStart),vr=this.lineCommentStart;xr=new RegExp("^(\\s*)(?:"+xr+") ?"),gr=Kt.getUseSoftTabs();var Ht=function(Cr,_r){var $r=Cr.match(xr);if($r){var Tr=$r[1].length,Dr=$r[0].length;!Yt(Cr,Tr,Dr)&&$r[0][Dr-1]==" "&&Dr--,Zt.removeInLine(_r,Tr,Dr)}},Gt=vr+" ",Lt=function(Cr,_r){(!dr||/\S/.test(Cr))&&(Yt(Cr,Er,Er)?Zt.insertInLine({row:_r,column:Er},Gt):Zt.insertInLine({row:_r,column:Er},vr))},Wt=function(Cr,_r){return xr.test(Cr)},Yt=function(Cr,_r,$r){for(var Tr=0;_r--&&Cr.charAt(_r)==" ";)Tr++;if(Tr%pr!=0)return!1;for(var Tr=0;Cr.charAt($r++)==" ";)Tr++;return pr>2?Tr%pr!=pr-1:Tr%pr==0}}else{if(!this.blockComment)return!1;var vr=this.blockComment.start,yr=this.blockComment.end,xr=new RegExp("^(\\s*)(?:"+Mt.escapeRegExp(vr)+")"),rr=new RegExp("(?:"+Mt.escapeRegExp(yr)+")\\s*$"),Lt=function(Jt,Ut){Wt(Jt,Ut)||(!dr||/\S/.test(Jt))&&(Zt.insertInLine({row:Ut,column:Jt.length},yr),Zt.insertInLine({row:Ut,column:Er},vr))},Ht=function(Jt,Ut){var ir;(ir=Jt.match(rr))&&Zt.removeInLine(Ut,Jt.length-ir[0].length,Jt.length),(ir=Jt.match(xr))&&Zt.removeInLine(Ut,ir[1].length,ir[0].length)},Wt=function(Jt,Ut){if(xr.test(Jt))return!0;for(var ir=Kt.getTokens(Ut),Cr=0;Cr<ir.length;Cr++)if(ir[Cr].type==="comment")return!0}}function er(Jt){for(var Ut=Xt;Ut<=Qt;Ut++)Jt(Zt.getLine(Ut),Ut)}var lr=1/0;er(function(Jt,Ut){var ir=Jt.search(/\S/);ir!==-1?(ir<Er&&(Er=ir),cr&&!Wt(Jt,Ut)&&(cr=!1)):lr>Jt.length&&(lr=Jt.length)}),Er==1/0&&(Er=lr,dr=!1,cr=!1),gr&&Er%pr!=0&&(Er=Math.floor(Er/pr)*pr),er(cr?Ht:Lt)},this.toggleBlockComment=function(Vt,Kt,Xt,Qt){var Zt=this.blockComment;if(Zt){!Zt.start&&Zt[0]&&(Zt=Zt[0]);var dr=new Nt(Kt,Qt.row,Qt.column),cr=dr.getCurrentToken();Kt.selection;var Er=Kt.selection.toOrientedRange(),pr,gr;if(cr&&/comment/.test(cr.type)){for(var vr,yr;cr&&/comment/.test(cr.type);){var xr=cr.value.indexOf(Zt.start);if(xr!=-1){var rr=dr.getCurrentTokenRow(),Lt=dr.getCurrentTokenColumn()+xr;vr=new jt(rr,Lt,rr,Lt+Zt.start.length);break}cr=dr.stepBackward()}for(var dr=new Nt(Kt,Qt.row,Qt.column),cr=dr.getCurrentToken();cr&&/comment/.test(cr.type);){var xr=cr.value.indexOf(Zt.end);if(xr!=-1){var rr=dr.getCurrentTokenRow(),Lt=dr.getCurrentTokenColumn()+xr;yr=new jt(rr,Lt,rr,Lt+Zt.end.length);break}cr=dr.stepForward()}yr&&Kt.remove(yr),vr&&(Kt.remove(vr),pr=vr.start.row,gr=-Zt.start.length)}else gr=Zt.start.length,pr=Xt.start.row,Kt.insert(Xt.end,Zt.end),Kt.insert(Xt.start,Zt.start);Er.start.row==pr&&(Er.start.column+=gr),Er.end.row==pr&&(Er.end.column+=gr),Kt.selection.fromOrientedRange(Er)}},this.getNextLineIndent=function(Vt,Kt,Xt){return this.$getIndent(Kt)},this.checkOutdent=function(Vt,Kt,Xt){return!1},this.autoOutdent=function(Vt,Kt,Xt){},this.$getIndent=function(Vt){return Vt.match(/^\s*/)[0]},this.createWorker=function(Vt){return null},this.createModeDelegates=function(Vt){this.$embeds=[],this.$modes={};for(var Kt in Vt)if(Vt[Kt]){var Xt=Vt[Kt],Qt=Xt.prototype.$id,Zt=At.$modes[Qt];Zt||(At.$modes[Qt]=Zt=new Xt),At.$modes[Kt]||(At.$modes[Kt]=Zt),this.$embeds.push(Kt),this.$modes[Kt]=Zt}for(var dr=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],cr=function(pr){(function(gr){var vr=dr[pr],yr=gr[vr];gr[dr[pr]]=function(){return this.$delegator(vr,arguments,yr)}})(Er)},Er=this,Kt=0;Kt<dr.length;Kt++)cr(Kt)},this.$delegator=function(Vt,Kt,Xt){var Qt=Kt[0]||"start";if(typeof Qt!="string"){if(Array.isArray(Qt[2])){var Zt=Qt[2][Qt[2].length-1],dr=this.$modes[Zt];if(dr)return dr[Vt].apply(dr,[Qt[1]].concat([].slice.call(Kt,1)))}Qt=Qt[0]||"start"}for(var cr=0;cr<this.$embeds.length;cr++)if(this.$modes[this.$embeds[cr]]){var Er=Qt.split(this.$embeds[cr]);if(!Er[0]&&Er[1]){Kt[0]=Er[1];var dr=this.$modes[this.$embeds[cr]];return dr[Vt].apply(dr,Kt)}}var pr=Xt.apply(this,Kt);return Xt?pr:void 0},this.transformAction=function(Vt,Kt,Xt,Qt,Zt){if(this.$behaviour){var dr=this.$behaviour.getBehaviours();for(var cr in dr)if(dr[cr][Kt]){var Er=dr[cr][Kt].apply(this,arguments);if(Er)return Er}}},this.getKeywords=function(Vt){if(!this.completionKeywords){var Kt=this.$tokenizer.rules,Xt=[];for(var Qt in Kt)for(var Zt=Kt[Qt],dr=0,cr=Zt.length;dr<cr;dr++)if(typeof Zt[dr].token=="string")/keyword|support|storage/.test(Zt[dr].token)&&Xt.push(Zt[dr].regex);else if(typeof Zt[dr].token=="object"){for(var Er=0,pr=Zt[dr].token.length;Er<pr;Er++)if(/keyword|support|storage/.test(Zt[dr].token[Er])){var Qt=Zt[dr].regex.match(/\(.+?\)/g)[Er];Xt.push(Qt.substr(1,Qt.length-2))}}this.completionKeywords=Xt}return Vt?Xt.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(Vt,Kt,Xt,Qt){var Zt=this.$keywordList||this.$createKeywordList();return Zt.map(function(dr){return{name:dr,value:dr,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(zt.prototype),Ct.Mode=zt}),ace.define("ace/apply_delta",["require","exports","module"],function(yt,Ct,$t){Ct.applyDelta=function(At,Bt,Dt){var Ft=Bt.start.row,kt=Bt.start.column,Mt=At[Ft]||"";switch(Bt.action){case"insert":var Nt=Bt.lines;if(Nt.length===1)At[Ft]=Mt.substring(0,kt)+Bt.lines[0]+Mt.substring(kt);else{var jt=[Ft,1].concat(Bt.lines);At.splice.apply(At,jt),At[Ft]=Mt.substring(0,kt)+At[Ft],At[Ft+Bt.lines.length-1]+=Mt.substring(kt)}break;case"remove":var zt=Bt.end.column,Vt=Bt.end.row;Ft===Vt?At[Ft]=Mt.substring(0,kt)+Mt.substring(zt):At.splice(Ft,Vt-Ft+1,Mt.substring(0,kt)+At[Vt].substring(zt));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(yt,Ct,$t){var At=yt("./lib/oop"),Bt=yt("./lib/event_emitter").EventEmitter,Dt=function(){function Mt(Nt,jt,zt){this.$onChange=this.onChange.bind(this),this.attach(Nt),typeof jt!="number"?this.setPosition(jt.row,jt.column):this.setPosition(jt,zt)}return Mt.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},Mt.prototype.getDocument=function(){return this.document},Mt.prototype.onChange=function(Nt){if(!(Nt.start.row==Nt.end.row&&Nt.start.row!=this.row)&&!(Nt.start.row>this.row)){var jt=kt(Nt,{row:this.row,column:this.column},this.$insertRight);this.setPosition(jt.row,jt.column,!0)}},Mt.prototype.setPosition=function(Nt,jt,zt){var Vt;if(zt?Vt={row:Nt,column:jt}:Vt=this.$clipPositionToDocument(Nt,jt),!(this.row==Vt.row&&this.column==Vt.column)){var Kt={row:this.row,column:this.column};this.row=Vt.row,this.column=Vt.column,this._signal("change",{old:Kt,value:Vt})}},Mt.prototype.detach=function(){this.document.off("change",this.$onChange)},Mt.prototype.attach=function(Nt){this.document=Nt||this.document,this.document.on("change",this.$onChange)},Mt.prototype.$clipPositionToDocument=function(Nt,jt){var zt={};return Nt>=this.document.getLength()?(zt.row=Math.max(0,this.document.getLength()-1),zt.column=this.document.getLine(zt.row).length):Nt<0?(zt.row=0,zt.column=0):(zt.row=Nt,zt.column=Math.min(this.document.getLine(zt.row).length,Math.max(0,jt))),jt<0&&(zt.column=0),zt},Mt}();Dt.prototype.$insertRight=!1,At.implement(Dt.prototype,Bt);function Ft(Mt,Nt,jt){var zt=jt?Mt.column<=Nt.column:Mt.column<Nt.column;return Mt.row<Nt.row||Mt.row==Nt.row&&zt}function kt(Mt,Nt,jt){var zt=Mt.action=="insert",Vt=(zt?1:-1)*(Mt.end.row-Mt.start.row),Kt=(zt?1:-1)*(Mt.end.column-Mt.start.column),Xt=Mt.start,Qt=zt?Xt:Mt.end;return Ft(Nt,Xt,jt)?{row:Nt.row,column:Nt.column}:Ft(Qt,Nt,!jt)?{row:Nt.row+Vt,column:Nt.column+(Nt.row==Qt.row?Kt:0)}:{row:Xt.row,column:Xt.column}}Ct.Anchor=Dt}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(yt,Ct,$t){var At=yt("./lib/oop"),Bt=yt("./apply_delta").applyDelta,Dt=yt("./lib/event_emitter").EventEmitter,Ft=yt("./range").Range,kt=yt("./anchor").Anchor,Mt=function(){function Nt(jt){this.$lines=[""],jt.length===0?this.$lines=[""]:Array.isArray(jt)?this.insertMergedLines({row:0,column:0},jt):this.insert({row:0,column:0},jt)}return Nt.prototype.setValue=function(jt){var zt=this.getLength()-1;this.remove(new Ft(0,0,zt,this.getLine(zt).length)),this.insert({row:0,column:0},jt||"")},Nt.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},Nt.prototype.createAnchor=function(jt,zt){return new kt(this,jt,zt)},Nt.prototype.$detectNewLine=function(jt){var zt=jt.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=zt?zt[1]:`
`,this._signal("changeNewLineMode")},Nt.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
`;case"unix":return`
`;default:return this.$autoNewLine||`
`}},Nt.prototype.setNewLineMode=function(jt){this.$newLineMode!==jt&&(this.$newLineMode=jt,this._signal("changeNewLineMode"))},Nt.prototype.getNewLineMode=function(){return this.$newLineMode},Nt.prototype.isNewLine=function(jt){return jt==`\r
`||jt=="\r"||jt==`
`},Nt.prototype.getLine=function(jt){return this.$lines[jt]||""},Nt.prototype.getLines=function(jt,zt){return this.$lines.slice(jt,zt+1)},Nt.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},Nt.prototype.getLength=function(){return this.$lines.length},Nt.prototype.getTextRange=function(jt){return this.getLinesForRange(jt).join(this.getNewLineCharacter())},Nt.prototype.getLinesForRange=function(jt){var zt;if(jt.start.row===jt.end.row)zt=[this.getLine(jt.start.row).substring(jt.start.column,jt.end.column)];else{zt=this.getLines(jt.start.row,jt.end.row),zt[0]=(zt[0]||"").substring(jt.start.column);var Vt=zt.length-1;jt.end.row-jt.start.row==Vt&&(zt[Vt]=zt[Vt].substring(0,jt.end.column))}return zt},Nt.prototype.insertLines=function(jt,zt){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(jt,zt)},Nt.prototype.removeLines=function(jt,zt){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(jt,zt)},Nt.prototype.insertNewLine=function(jt){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(jt,["",""])},Nt.prototype.insert=function(jt,zt){return this.getLength()<=1&&this.$detectNewLine(zt),this.insertMergedLines(jt,this.$split(zt))},Nt.prototype.insertInLine=function(jt,zt){var Vt=this.clippedPos(jt.row,jt.column),Kt=this.pos(jt.row,jt.column+zt.length);return this.applyDelta({start:Vt,end:Kt,action:"insert",lines:[zt]},!0),this.clonePos(Kt)},Nt.prototype.clippedPos=function(jt,zt){var Vt=this.getLength();jt===void 0?jt=Vt:jt<0?jt=0:jt>=Vt&&(jt=Vt-1,zt=void 0);var Kt=this.getLine(jt);return zt==null&&(zt=Kt.length),zt=Math.min(Math.max(zt,0),Kt.length),{row:jt,column:zt}},Nt.prototype.clonePos=function(jt){return{row:jt.row,column:jt.column}},Nt.prototype.pos=function(jt,zt){return{row:jt,column:zt}},Nt.prototype.$clipPosition=function(jt){var zt=this.getLength();return jt.row>=zt?(jt.row=Math.max(0,zt-1),jt.column=this.getLine(zt-1).length):(jt.row=Math.max(0,jt.row),jt.column=Math.min(Math.max(jt.column,0),this.getLine(jt.row).length)),jt},Nt.prototype.insertFullLines=function(jt,zt){jt=Math.min(Math.max(jt,0),this.getLength());var Vt=0;jt<this.getLength()?(zt=zt.concat([""]),Vt=0):(zt=[""].concat(zt),jt--,Vt=this.$lines[jt].length),this.insertMergedLines({row:jt,column:Vt},zt)},Nt.prototype.insertMergedLines=function(jt,zt){var Vt=this.clippedPos(jt.row,jt.column),Kt={row:Vt.row+zt.length-1,column:(zt.length==1?Vt.column:0)+zt[zt.length-1].length};return this.applyDelta({start:Vt,end:Kt,action:"insert",lines:zt}),this.clonePos(Kt)},Nt.prototype.remove=function(jt){var zt=this.clippedPos(jt.start.row,jt.start.column),Vt=this.clippedPos(jt.end.row,jt.end.column);return this.applyDelta({start:zt,end:Vt,action:"remove",lines:this.getLinesForRange({start:zt,end:Vt})}),this.clonePos(zt)},Nt.prototype.removeInLine=function(jt,zt,Vt){var Kt=this.clippedPos(jt,zt),Xt=this.clippedPos(jt,Vt);return this.applyDelta({start:Kt,end:Xt,action:"remove",lines:this.getLinesForRange({start:Kt,end:Xt})},!0),this.clonePos(Kt)},Nt.prototype.removeFullLines=function(jt,zt){jt=Math.min(Math.max(0,jt),this.getLength()-1),zt=Math.min(Math.max(0,zt),this.getLength()-1);var Vt=zt==this.getLength()-1&&jt>0,Kt=zt<this.getLength()-1,Xt=Vt?jt-1:jt,Qt=Vt?this.getLine(Xt).length:0,Zt=Kt?zt+1:zt,dr=Kt?0:this.getLine(Zt).length,cr=new Ft(Xt,Qt,Zt,dr),Er=this.$lines.slice(jt,zt+1);return this.applyDelta({start:cr.start,end:cr.end,action:"remove",lines:this.getLinesForRange(cr)}),Er},Nt.prototype.removeNewLine=function(jt){jt<this.getLength()-1&&jt>=0&&this.applyDelta({start:this.pos(jt,this.getLine(jt).length),end:this.pos(jt+1,0),action:"remove",lines:["",""]})},Nt.prototype.replace=function(jt,zt){if(jt instanceof Ft||(jt=Ft.fromPoints(jt.start,jt.end)),zt.length===0&&jt.isEmpty())return jt.start;if(zt==this.getTextRange(jt))return jt.end;this.remove(jt);var Vt;return zt?Vt=this.insert(jt.start,zt):Vt=jt.start,Vt},Nt.prototype.applyDeltas=function(jt){for(var zt=0;zt<jt.length;zt++)this.applyDelta(jt[zt])},Nt.prototype.revertDeltas=function(jt){for(var zt=jt.length-1;zt>=0;zt--)this.revertDelta(jt[zt])},Nt.prototype.applyDelta=function(jt,zt){var Vt=jt.action=="insert";(Vt?jt.lines.length<=1&&!jt.lines[0]:!Ft.comparePoints(jt.start,jt.end))||(Vt&&jt.lines.length>2e4?this.$splitAndapplyLargeDelta(jt,2e4):(Bt(this.$lines,jt,zt),this._signal("change",jt)))},Nt.prototype.$safeApplyDelta=function(jt){var zt=this.$lines.length;(jt.action=="remove"&&jt.start.row<zt&&jt.end.row<zt||jt.action=="insert"&&jt.start.row<=zt)&&this.applyDelta(jt)},Nt.prototype.$splitAndapplyLargeDelta=function(jt,zt){for(var Vt=jt.lines,Kt=Vt.length-zt+1,Xt=jt.start.row,Qt=jt.start.column,Zt=0,dr=0;Zt<Kt;Zt=dr){dr+=zt-1;var cr=Vt.slice(Zt,dr);cr.push(""),this.applyDelta({start:this.pos(Xt+Zt,Qt),end:this.pos(Xt+dr,Qt=0),action:jt.action,lines:cr},!0)}jt.lines=Vt.slice(Zt),jt.start.row=Xt+Zt,jt.start.column=Qt,this.applyDelta(jt,!0)},Nt.prototype.revertDelta=function(jt){this.$safeApplyDelta({start:this.clonePos(jt.start),end:this.clonePos(jt.end),action:jt.action=="insert"?"remove":"insert",lines:jt.lines.slice()})},Nt.prototype.indexToPosition=function(jt,zt){for(var Vt=this.$lines||this.getAllLines(),Kt=this.getNewLineCharacter().length,Xt=zt||0,Qt=Vt.length;Xt<Qt;Xt++)if(jt-=Vt[Xt].length+Kt,jt<0)return{row:Xt,column:jt+Vt[Xt].length+Kt};return{row:Qt-1,column:jt+Vt[Qt-1].length+Kt}},Nt.prototype.positionToIndex=function(jt,zt){for(var Vt=this.$lines||this.getAllLines(),Kt=this.getNewLineCharacter().length,Xt=0,Qt=Math.min(jt.row,Vt.length),Zt=zt||0;Zt<Qt;++Zt)Xt+=Vt[Zt].length+Kt;return Xt+jt.column},Nt.prototype.$split=function(jt){return jt.split(/\r\n|\r|\n/)},Nt}();Mt.prototype.$autoNewLine="",Mt.prototype.$newLineMode="auto",At.implement(Mt.prototype,Dt),Ct.Document=Mt}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(yt,Ct,$t){var At=yt("./lib/oop"),Bt=yt("./lib/event_emitter").EventEmitter,Dt=function(){function Ft(kt,Mt){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=kt;var Nt=this;this.$worker=function(){if(Nt.running){for(var jt=new Date,zt=Nt.currentLine,Vt=-1,Kt=Nt.doc,Xt=zt;Nt.lines[zt];)zt++;var Qt=Kt.getLength(),Zt=0;for(Nt.running=!1;zt<Qt;){Nt.$tokenizeRow(zt),Vt=zt;do zt++;while(Nt.lines[zt]);if(Zt++,Zt%5===0&&new Date-jt>20){Nt.running=setTimeout(Nt.$worker,20);break}}Nt.currentLine=zt,Vt==-1&&(Vt=zt),Xt<=Vt&&Nt.fireUpdateEvent(Xt,Vt)}}}return Ft.prototype.setTokenizer=function(kt){this.tokenizer=kt,this.lines=[],this.states=[],this.start(0)},Ft.prototype.setDocument=function(kt){this.doc=kt,this.lines=[],this.states=[],this.stop()},Ft.prototype.fireUpdateEvent=function(kt,Mt){var Nt={first:kt,last:Mt};this._signal("update",{data:Nt})},Ft.prototype.start=function(kt){this.currentLine=Math.min(kt||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},Ft.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},Ft.prototype.$updateOnChange=function(kt){var Mt=kt.start.row,Nt=kt.end.row-Mt;if(Nt===0)this.lines[Mt]=null;else if(kt.action=="remove")this.lines.splice(Mt,Nt+1,null),this.states.splice(Mt,Nt+1,null);else{var jt=Array(Nt+1);jt.unshift(Mt,1),this.lines.splice.apply(this.lines,jt),this.states.splice.apply(this.states,jt)}this.currentLine=Math.min(Mt,this.currentLine,this.doc.getLength()),this.stop()},Ft.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},Ft.prototype.getTokens=function(kt){return this.lines[kt]||this.$tokenizeRow(kt)},Ft.prototype.getState=function(kt){return this.currentLine==kt&&this.$tokenizeRow(kt),this.states[kt]||"start"},Ft.prototype.$tokenizeRow=function(kt){var Mt=this.doc.getLine(kt),Nt=this.states[kt-1],jt=this.tokenizer.getLineTokens(Mt,Nt,kt);return this.states[kt]+""!=jt.state+""?(this.states[kt]=jt.state,this.lines[kt+1]=null,this.currentLine>kt+1&&(this.currentLine=kt+1)):this.currentLine==kt&&(this.currentLine=kt+1),this.lines[kt]=jt.tokens},Ft.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},Ft}();At.implement(Dt.prototype,Bt),Ct.BackgroundTokenizer=Dt}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(yt,Ct,$t){var At=yt("./lib/lang"),Bt=yt("./range").Range,Dt=function(){function Ft(kt,Mt,Nt){Nt===void 0&&(Nt="text"),this.setRegexp(kt),this.clazz=Mt,this.type=Nt}return Ft.prototype.setRegexp=function(kt){this.regExp+""!=kt+""&&(this.regExp=kt,this.cache=[])},Ft.prototype.update=function(kt,Mt,Nt,jt){if(this.regExp)for(var zt=jt.firstRow,Vt=jt.lastRow,Kt={},Xt=zt;Xt<=Vt;Xt++){var Qt=this.cache[Xt];Qt==null&&(Qt=At.getMatchOffsets(Nt.getLine(Xt),this.regExp),Qt.length>this.MAX_RANGES&&(Qt=Qt.slice(0,this.MAX_RANGES)),Qt=Qt.map(function(Er){return new Bt(Xt,Er.offset,Xt,Er.offset+Er.length)}),this.cache[Xt]=Qt.length?Qt:"");for(var Zt=Qt.length;Zt--;){var dr=Qt[Zt].toScreenRange(Nt),cr=dr.toString();Kt[cr]||(Kt[cr]=!0,Mt.drawSingleLineMarker(kt,dr,this.clazz,jt))}}},Ft}();Dt.prototype.MAX_RANGES=500,Ct.SearchHighlight=Dt}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(yt,Ct,$t){var At=function(){function Er(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return Er.prototype.addSession=function(pr){this.$session=pr},Er.prototype.add=function(pr,gr,vr){if(!this.$fromUndo&&pr!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),gr===!1||!this.lastDeltas){this.lastDeltas=[];var yr=this.$undoStack.length;yr>this.$undoDepth-1&&this.$undoStack.splice(0,yr-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),pr.id=this.$rev=++this.$maxRev}(pr.action=="remove"||pr.action=="insert")&&(this.$lastDelta=pr),this.lastDeltas.push(pr)}},Er.prototype.addSelection=function(pr,gr){this.selections.push({value:pr,rev:gr||this.$rev})},Er.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},Er.prototype.markIgnored=function(pr,gr){gr==null&&(gr=this.$rev+1);for(var vr=this.$undoStack,yr=vr.length;yr--;){var xr=vr[yr][0];if(xr.id<=pr)break;xr.id<gr&&(xr.ignore=!0)}this.lastDeltas=null},Er.prototype.getSelection=function(pr,gr){for(var vr=this.selections,yr=vr.length;yr--;){var xr=vr[yr];if(xr.rev<pr)return gr&&(xr=vr[yr+1]),xr}},Er.prototype.getRevision=function(){return this.$rev},Er.prototype.getDeltas=function(pr,gr){gr==null&&(gr=this.$rev+1);for(var vr=this.$undoStack,yr=null,xr=0,rr=vr.length;rr--;){var Lt=vr[rr][0];if(Lt.id<gr&&!yr&&(yr=rr+1),Lt.id<=pr){xr=rr+1;break}}return vr.slice(xr,yr)},Er.prototype.getChangedRanges=function(pr,gr){gr==null&&(gr=this.$rev+1)},Er.prototype.getChangedLines=function(pr,gr){gr==null&&(gr=this.$rev+1)},Er.prototype.undo=function(pr,gr){this.lastDeltas=null;var vr=this.$undoStack;if(Bt(vr,vr.length)){pr||(pr=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var yr=vr.pop(),xr=null;return yr&&(xr=pr.undoChanges(yr,gr),this.$redoStack.push(yr),this.$syncRev()),this.$fromUndo=!1,xr}},Er.prototype.redo=function(pr,gr){if(this.lastDeltas=null,pr||(pr=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var vr=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);cr(this.$redoStack,vr),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(rr){rr[0].id=++this.$maxRev},this)}var yr=this.$redoStack.pop(),xr=null;return yr&&(xr=pr.redoChanges(yr,gr),this.$undoStack.push(yr),this.$syncRev()),this.$fromUndo=!1,xr},Er.prototype.$syncRev=function(){var pr=this.$undoStack,gr=pr[pr.length-1],vr=gr&&gr[0].id||0;this.$redoStackBaseRev=vr,this.$rev=vr},Er.prototype.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},Er.prototype.canUndo=function(){return this.$undoStack.length>0},Er.prototype.canRedo=function(){return this.$redoStack.length>0},Er.prototype.bookmark=function(pr){pr==null&&(pr=this.$rev),this.mark=pr},Er.prototype.isAtBookmark=function(){return this.$rev===this.mark},Er.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},Er.prototype.fromJSON=function(pr){this.reset(),this.$undoStack=pr.$undoStack,this.$redoStack=pr.$redoStack},Er.prototype.$prettyPrint=function(pr){return pr?Nt(pr):Nt(this.$undoStack)+`
---
`+Nt(this.$redoStack)},Er}();At.prototype.hasUndo=At.prototype.canUndo,At.prototype.hasRedo=At.prototype.canRedo,At.prototype.isClean=At.prototype.isAtBookmark,At.prototype.markClean=At.prototype.bookmark;function Bt(Er,pr){for(var gr=pr;gr--;){var vr=Er[gr];if(vr&&!vr[0].ignore){for(;gr<pr-1;){var yr=Vt(Er[gr],Er[gr+1]);Er[gr]=yr[0],Er[gr+1]=yr[1],gr++}return!0}}}var Dt=yt("./range").Range,Ft=Dt.comparePoints;Dt.comparePoints;function kt(Er){return{row:Er.row,column:Er.column}}function Mt(Er){return{start:kt(Er.start),end:kt(Er.end),action:Er.action,lines:Er.lines.slice()}}function Nt(Er){if(Er=Er||this,Array.isArray(Er))return Er.map(Nt).join(`
`);var pr="";return Er.action?(pr=Er.action=="insert"?"+":"-",pr+="["+Er.lines+"]"):Er.value&&(Array.isArray(Er.value)?pr=Er.value.map(jt).join(`
`):pr=jt(Er.value)),Er.start&&(pr+=jt(Er)),(Er.id||Er.rev)&&(pr+="	("+(Er.id||Er.rev)+")"),pr}function jt(Er){return Er.start.row+":"+Er.start.column+"=>"+Er.end.row+":"+Er.end.column}function zt(Er,pr){var gr=Er.action=="insert",vr=pr.action=="insert";if(gr&&vr)if(Ft(pr.start,Er.end)>=0)Xt(pr,Er,-1);else if(Ft(pr.start,Er.start)<=0)Xt(Er,pr,1);else return null;else if(gr&&!vr)if(Ft(pr.start,Er.end)>=0)Xt(pr,Er,-1);else if(Ft(pr.end,Er.start)<=0)Xt(Er,pr,-1);else return null;else if(!gr&&vr)if(Ft(pr.start,Er.start)>=0)Xt(pr,Er,1);else if(Ft(pr.start,Er.start)<=0)Xt(Er,pr,1);else return null;else if(!gr&&!vr)if(Ft(pr.start,Er.start)>=0)Xt(pr,Er,1);else if(Ft(pr.end,Er.start)<=0)Xt(Er,pr,-1);else return null;return[pr,Er]}function Vt(Er,pr){for(var gr=Er.length;gr--;)for(var vr=0;vr<pr.length;vr++)if(!zt(Er[gr],pr[vr])){for(;gr<Er.length;){for(;vr--;)zt(pr[vr],Er[gr]);vr=pr.length,gr++}return[Er,pr]}return Er.selectionBefore=pr.selectionBefore=Er.selectionAfter=pr.selectionAfter=null,[pr,Er]}function Kt(Er,pr){var gr=Er.action=="insert",vr=pr.action=="insert";if(gr&&vr)Ft(Er.start,pr.start)<0?Xt(pr,Er,1):Xt(Er,pr,1);else if(gr&&!vr)Ft(Er.start,pr.end)>=0?Xt(Er,pr,-1):(Ft(Er.start,pr.start)<=0||Xt(Er,Dt.fromPoints(pr.start,Er.start),-1),Xt(pr,Er,1));else if(!gr&&vr)Ft(pr.start,Er.end)>=0?Xt(pr,Er,-1):(Ft(pr.start,Er.start)<=0||Xt(pr,Dt.fromPoints(Er.start,pr.start),-1),Xt(Er,pr,1));else if(!gr&&!vr)if(Ft(pr.start,Er.end)>=0)Xt(pr,Er,-1);else if(Ft(pr.end,Er.start)<=0)Xt(Er,pr,-1);else{var yr,xr;return Ft(Er.start,pr.start)<0&&(yr=Er,Er=Zt(Er,pr.start)),Ft(Er.end,pr.end)>0&&(xr=Zt(Er,pr.end)),Qt(pr.end,Er.start,Er.end,-1),xr&&!yr&&(Er.lines=xr.lines,Er.start=xr.start,Er.end=xr.end,xr=Er),[pr,yr,xr].filter(Boolean)}return[pr,Er]}function Xt(Er,pr,gr){Qt(Er.start,pr.start,pr.end,gr),Qt(Er.end,pr.start,pr.end,gr)}function Qt(Er,pr,gr,vr){Er.row==(vr==1?pr:gr).row&&(Er.column+=vr*(gr.column-pr.column)),Er.row+=vr*(gr.row-pr.row)}function Zt(Er,pr){var gr=Er.lines,vr=Er.end;Er.end=kt(pr);var yr=Er.end.row-Er.start.row,xr=gr.splice(yr,gr.length),rr=yr?pr.column:pr.column-Er.start.column;gr.push(xr[0].substring(0,rr)),xr[0]=xr[0].substr(rr);var Lt={start:kt(pr),end:vr,lines:xr,action:Er.action};return Lt}function dr(Er,pr){pr=Mt(pr);for(var gr=Er.length;gr--;){for(var vr=Er[gr],yr=0;yr<vr.length;yr++){var xr=vr[yr],rr=Kt(xr,pr);pr=rr[0],rr.length!=2&&(rr[2]?(vr.splice(yr+1,1,rr[1],rr[2]),yr++):rr[1]||(vr.splice(yr,1),yr--))}vr.length||Er.splice(gr,1)}return Er}function cr(Er,pr){for(var gr=0;gr<pr.length;gr++)for(var vr=pr[gr],yr=0;yr<vr.length;yr++)dr(Er,vr[yr])}Ct.UndoManager=At}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(yt,Ct,$t){var At=yt("../range").Range,Bt=function(){function Dt(Ft,kt){this.foldData=Ft,Array.isArray(kt)?this.folds=kt:kt=this.folds=[kt];var Mt=kt[kt.length-1];this.range=new At(kt[0].start.row,kt[0].start.column,Mt.end.row,Mt.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(Nt){Nt.setFoldLine(this)},this)}return Dt.prototype.shiftRow=function(Ft){this.start.row+=Ft,this.end.row+=Ft,this.folds.forEach(function(kt){kt.start.row+=Ft,kt.end.row+=Ft})},Dt.prototype.addFold=function(Ft){if(Ft.sameRow){if(Ft.start.row<this.startRow||Ft.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(Ft),this.folds.sort(function(kt,Mt){return-kt.range.compareEnd(Mt.start.row,Mt.start.column)}),this.range.compareEnd(Ft.start.row,Ft.start.column)>0?(this.end.row=Ft.end.row,this.end.column=Ft.end.column):this.range.compareStart(Ft.end.row,Ft.end.column)<0&&(this.start.row=Ft.start.row,this.start.column=Ft.start.column)}else if(Ft.start.row==this.end.row)this.folds.push(Ft),this.end.row=Ft.end.row,this.end.column=Ft.end.column;else if(Ft.end.row==this.start.row)this.folds.unshift(Ft),this.start.row=Ft.start.row,this.start.column=Ft.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");Ft.foldLine=this},Dt.prototype.containsRow=function(Ft){return Ft>=this.start.row&&Ft<=this.end.row},Dt.prototype.walk=function(Ft,kt,Mt){var Nt=0,jt=this.folds,zt,Vt,Kt,Xt=!0;kt==null&&(kt=this.end.row,Mt=this.end.column);for(var Qt=0;Qt<jt.length;Qt++){if(zt=jt[Qt],Vt=zt.range.compareStart(kt,Mt),Vt==-1){Ft(null,kt,Mt,Nt,Xt);return}if(Kt=Ft(null,zt.start.row,zt.start.column,Nt,Xt),Kt=!Kt&&Ft(zt.placeholder,zt.start.row,zt.start.column,Nt),Kt||Vt===0)return;Xt=!zt.sameRow,Nt=zt.end.column}Ft(null,kt,Mt,Nt,Xt)},Dt.prototype.getNextFoldTo=function(Ft,kt){for(var Mt,Nt,jt=0;jt<this.folds.length;jt++){if(Mt=this.folds[jt],Nt=Mt.range.compareEnd(Ft,kt),Nt==-1)return{fold:Mt,kind:"after"};if(Nt===0)return{fold:Mt,kind:"inside"}}return null},Dt.prototype.addRemoveChars=function(Ft,kt,Mt){var Nt=this.getNextFoldTo(Ft,kt),jt,zt;if(Nt){if(jt=Nt.fold,Nt.kind=="inside"&&jt.start.column!=kt&&jt.start.row!=Ft)window.console&&window.console.log(Ft,kt,jt);else if(jt.start.row==Ft){zt=this.folds;var Vt=zt.indexOf(jt);for(Vt===0&&(this.start.column+=Mt),Vt;Vt<zt.length;Vt++){if(jt=zt[Vt],jt.start.column+=Mt,!jt.sameRow)return;jt.end.column+=Mt}this.end.column+=Mt}}},Dt.prototype.split=function(Ft,kt){var Mt=this.getNextFoldTo(Ft,kt);if(!Mt||Mt.kind=="inside")return null;var Nt=Mt.fold,jt=this.folds,zt=this.foldData,Vt=jt.indexOf(Nt),Kt=jt[Vt-1];this.end.row=Kt.end.row,this.end.column=Kt.end.column,jt=jt.splice(Vt,jt.length-Vt);var Xt=new Dt(zt,jt);return zt.splice(zt.indexOf(this)+1,0,Xt),Xt},Dt.prototype.merge=function(Ft){for(var kt=Ft.folds,Mt=0;Mt<kt.length;Mt++)this.addFold(kt[Mt]);var Nt=this.foldData;Nt.splice(Nt.indexOf(Ft),1)},Dt.prototype.toString=function(){var Ft=[this.range.toString()+": ["];return this.folds.forEach(function(kt){Ft.push("  "+kt.toString())}),Ft.push("]"),Ft.join(`
`)},Dt.prototype.idxToPosition=function(Ft){for(var kt=0,Mt=0;Mt<this.folds.length;Mt++){var Nt=this.folds[Mt];if(Ft-=Nt.start.column-kt,Ft<0)return{row:Nt.start.row,column:Nt.start.column+Ft};if(Ft-=Nt.placeholder.length,Ft<0)return Nt.start;kt=Nt.end.column}return{row:this.end.row,column:this.end.column+Ft}},Dt}();Ct.FoldLine=Bt}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(yt,Ct,$t){var At=yt("./range").Range,Bt=At.comparePoints,Dt=function(){function Ft(){this.ranges=[],this.$bias=1}return Ft.prototype.pointIndex=function(kt,Mt,Nt){for(var jt=this.ranges,zt=Nt||0;zt<jt.length;zt++){var Vt=jt[zt],Kt=Bt(kt,Vt.end);if(!(Kt>0)){var Xt=Bt(kt,Vt.start);return Kt===0?Mt&&Xt!==0?-zt-2:zt:Xt>0||Xt===0&&!Mt?zt:-zt-1}}return-zt-1},Ft.prototype.add=function(kt){var Mt=!kt.isEmpty(),Nt=this.pointIndex(kt.start,Mt);Nt<0&&(Nt=-Nt-1);var jt=this.pointIndex(kt.end,Mt,Nt);return jt<0?jt=-jt-1:jt++,this.ranges.splice(Nt,jt-Nt,kt)},Ft.prototype.addList=function(kt){for(var Mt=[],Nt=kt.length;Nt--;)Mt.push.apply(Mt,this.add(kt[Nt]));return Mt},Ft.prototype.substractPoint=function(kt){var Mt=this.pointIndex(kt);if(Mt>=0)return this.ranges.splice(Mt,1)},Ft.prototype.merge=function(){var kt=[],Mt=this.ranges;Mt=Mt.sort(function(Kt,Xt){return Bt(Kt.start,Xt.start)});for(var Nt=Mt[0],jt,zt=1;zt<Mt.length;zt++){jt=Nt,Nt=Mt[zt];var Vt=Bt(jt.end,Nt.start);Vt<0||Vt==0&&!jt.isEmpty()&&!Nt.isEmpty()||(Bt(jt.end,Nt.end)<0&&(jt.end.row=Nt.end.row,jt.end.column=Nt.end.column),Mt.splice(zt,1),kt.push(Nt),Nt=jt,zt--)}return this.ranges=Mt,kt},Ft.prototype.contains=function(kt,Mt){return this.pointIndex({row:kt,column:Mt})>=0},Ft.prototype.containsPoint=function(kt){return this.pointIndex(kt)>=0},Ft.prototype.rangeAtPoint=function(kt){var Mt=this.pointIndex(kt);if(Mt>=0)return this.ranges[Mt]},Ft.prototype.clipRows=function(kt,Mt){var Nt=this.ranges;if(Nt[0].start.row>Mt||Nt[Nt.length-1].start.row<kt)return[];var jt=this.pointIndex({row:kt,column:0});jt<0&&(jt=-jt-1);var zt=this.pointIndex({row:Mt,column:0},jt);zt<0&&(zt=-zt-1);for(var Vt=[],Kt=jt;Kt<zt;Kt++)Vt.push(Nt[Kt]);return Vt},Ft.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},Ft.prototype.attach=function(kt){this.session&&this.detach(),this.session=kt,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},Ft.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},Ft.prototype.$onChange=function(kt){for(var Mt=kt.start,Nt=kt.end,jt=Mt.row,zt=Nt.row,Vt=this.ranges,Kt=0,Xt=Vt.length;Kt<Xt;Kt++){var Qt=Vt[Kt];if(Qt.end.row>=jt)break}if(kt.action=="insert")for(var Zt=zt-jt,dr=-Mt.column+Nt.column;Kt<Xt;Kt++){var Qt=Vt[Kt];if(Qt.start.row>jt)break;if(Qt.start.row==jt&&Qt.start.column>=Mt.column&&(Qt.start.column==Mt.column&&this.$bias<=0||(Qt.start.column+=dr,Qt.start.row+=Zt)),Qt.end.row==jt&&Qt.end.column>=Mt.column){if(Qt.end.column==Mt.column&&this.$bias<0)continue;Qt.end.column==Mt.column&&dr>0&&Kt<Xt-1&&Qt.end.column>Qt.start.column&&Qt.end.column==Vt[Kt+1].start.column&&(Qt.end.column-=dr),Qt.end.column+=dr,Qt.end.row+=Zt}}else for(var Zt=jt-zt,dr=Mt.column-Nt.column;Kt<Xt;Kt++){var Qt=Vt[Kt];if(Qt.start.row>zt)break;Qt.end.row<zt&&(jt<Qt.end.row||jt==Qt.end.row&&Mt.column<Qt.end.column)?(Qt.end.row=jt,Qt.end.column=Mt.column):Qt.end.row==zt?Qt.end.column<=Nt.column?(Zt||Qt.end.column>Mt.column)&&(Qt.end.column=Mt.column,Qt.end.row=Mt.row):(Qt.end.column+=dr,Qt.end.row+=Zt):Qt.end.row>zt&&(Qt.end.row+=Zt),Qt.start.row<zt&&(jt<Qt.start.row||jt==Qt.start.row&&Mt.column<Qt.start.column)?(Qt.start.row=jt,Qt.start.column=Mt.column):Qt.start.row==zt?Qt.start.column<=Nt.column?(Zt||Qt.start.column>Mt.column)&&(Qt.start.column=Mt.column,Qt.start.row=Mt.row):(Qt.start.column+=dr,Qt.start.row+=Zt):Qt.start.row>zt&&(Qt.start.row+=Zt)}if(Zt!=0&&Kt<Xt)for(;Kt<Xt;Kt++){var Qt=Vt[Kt];Qt.start.row+=Zt,Qt.end.row+=Zt}},Ft}();Dt.prototype.comparePoints=Bt,Ct.RangeList=Dt}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(yt,Ct,$t){var At=this&&this.__extends||function(){var jt=function(zt,Vt){return jt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Kt,Xt){Kt.__proto__=Xt}||function(Kt,Xt){for(var Qt in Xt)Object.prototype.hasOwnProperty.call(Xt,Qt)&&(Kt[Qt]=Xt[Qt])},jt(zt,Vt)};return function(zt,Vt){if(typeof Vt!="function"&&Vt!==null)throw new TypeError("Class extends value "+String(Vt)+" is not a constructor or null");jt(zt,Vt);function Kt(){this.constructor=zt}zt.prototype=Vt===null?Object.create(Vt):(Kt.prototype=Vt.prototype,new Kt)}}(),Bt=yt("../range_list").RangeList,Dt=function(jt){At(zt,jt);function zt(Vt,Kt){var Xt=jt.call(this)||this;return Xt.foldLine=null,Xt.placeholder=Kt,Xt.range=Vt,Xt.start=Vt.start,Xt.end=Vt.end,Xt.sameRow=Vt.start.row==Vt.end.row,Xt.subFolds=Xt.ranges=[],Xt}return zt.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},zt.prototype.setFoldLine=function(Vt){this.foldLine=Vt,this.subFolds.forEach(function(Kt){Kt.setFoldLine(Vt)})},zt.prototype.clone=function(){var Vt=this.range.clone(),Kt=new zt(Vt,this.placeholder);return this.subFolds.forEach(function(Xt){Kt.subFolds.push(Xt.clone())}),Kt.collapseChildren=this.collapseChildren,Kt},zt.prototype.addSubFold=function(Vt){if(!this.range.isEqual(Vt)){kt(Vt,this.start);for(var dr=Vt.start.row,cr=Vt.start.column,Kt=0,Xt=-1;Kt<this.subFolds.length&&(Xt=this.subFolds[Kt].range.compare(dr,cr),Xt==1);Kt++);var Qt=this.subFolds[Kt],Zt=0;if(Xt==0){if(Qt.range.containsRange(Vt))return Qt.addSubFold(Vt);Zt=1}for(var dr=Vt.range.end.row,cr=Vt.range.end.column,Er=Kt,Xt=-1;Er<this.subFolds.length&&(Xt=this.subFolds[Er].range.compare(dr,cr),Xt==1);Er++);Xt==0&&Er++;for(var pr=this.subFolds.splice(Kt,Er-Kt,Vt),gr=Xt==0?pr.length-1:pr.length,vr=Zt;vr<gr;vr++)Vt.addSubFold(pr[vr]);return Vt.setFoldLine(this.foldLine),Vt}},zt.prototype.restoreRange=function(Vt){return Nt(Vt,this.start)},zt}(Bt);function Ft(jt,zt){jt.row-=zt.row,jt.row==0&&(jt.column-=zt.column)}function kt(jt,zt){Ft(jt.start,zt),Ft(jt.end,zt)}function Mt(jt,zt){jt.row==0&&(jt.column+=zt.column),jt.row+=zt.row}function Nt(jt,zt){Mt(jt.start,zt),Mt(jt.end,zt)}Ct.Fold=Dt}),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator","ace/mouse/mouse_event"],function(yt,Ct,$t){var At=yt("../range").Range,Bt=yt("./fold_line").FoldLine,Dt=yt("./fold").Fold,Ft=yt("../token_iterator").TokenIterator,kt=yt("../mouse/mouse_event").MouseEvent;function Mt(){this.getFoldAt=function(Nt,jt,zt){var Vt=this.getFoldLine(Nt);if(!Vt)return null;for(var Kt=Vt.folds,Xt=0;Xt<Kt.length;Xt++){var Qt=Kt[Xt].range;if(Qt.contains(Nt,jt)){if(zt==1&&Qt.isEnd(Nt,jt)&&!Qt.isEmpty())continue;if(zt==-1&&Qt.isStart(Nt,jt)&&!Qt.isEmpty())continue;return Kt[Xt]}}},this.getFoldsInRange=function(Nt){var jt=Nt.start,zt=Nt.end,Vt=this.$foldData,Kt=[];jt.column+=1,zt.column-=1;for(var Xt=0;Xt<Vt.length;Xt++){var Qt=Vt[Xt].range.compareRange(Nt);if(Qt!=2){if(Qt==-2)break;for(var Zt=Vt[Xt].folds,dr=0;dr<Zt.length;dr++){var cr=Zt[dr];if(Qt=cr.range.compareRange(Nt),Qt==-2)break;if(Qt==2)continue;if(Qt==42)break;Kt.push(cr)}}}return jt.column-=1,zt.column+=1,Kt},this.getFoldsInRangeList=function(Nt){if(Array.isArray(Nt)){var jt=[];Nt.forEach(function(zt){jt=jt.concat(this.getFoldsInRange(zt))},this)}else var jt=this.getFoldsInRange(Nt);return jt},this.getAllFolds=function(){for(var Nt=[],jt=this.$foldData,zt=0;zt<jt.length;zt++)for(var Vt=0;Vt<jt[zt].folds.length;Vt++)Nt.push(jt[zt].folds[Vt]);return Nt},this.getFoldStringAt=function(Nt,jt,zt,Vt){if(Vt=Vt||this.getFoldLine(Nt),!Vt)return null;for(var Kt={end:{column:0}},Xt,Qt,Zt=0;Zt<Vt.folds.length;Zt++){Qt=Vt.folds[Zt];var dr=Qt.range.compareEnd(Nt,jt);if(dr==-1){Xt=this.getLine(Qt.start.row).substring(Kt.end.column,Qt.start.column);break}else if(dr===0)return null;Kt=Qt}return Xt||(Xt=this.getLine(Qt.start.row).substring(Kt.end.column)),zt==-1?Xt.substring(0,jt-Kt.end.column):zt==1?Xt.substring(jt-Kt.end.column):Xt},this.getFoldLine=function(Nt,jt){var zt=this.$foldData,Vt=0;for(jt&&(Vt=zt.indexOf(jt)),Vt==-1&&(Vt=0),Vt;Vt<zt.length;Vt++){var Kt=zt[Vt];if(Kt.start.row<=Nt&&Kt.end.row>=Nt)return Kt;if(Kt.end.row>Nt)return null}return null},this.getNextFoldLine=function(Nt,jt){var zt=this.$foldData,Vt=0;for(jt&&(Vt=zt.indexOf(jt)),Vt==-1&&(Vt=0),Vt;Vt<zt.length;Vt++){var Kt=zt[Vt];if(Kt.end.row>=Nt)return Kt}return null},this.getFoldedRowCount=function(Nt,jt){for(var zt=this.$foldData,Vt=jt-Nt+1,Kt=0;Kt<zt.length;Kt++){var Xt=zt[Kt],Qt=Xt.end.row,Zt=Xt.start.row;if(Qt>=jt){Zt<jt&&(Zt>=Nt?Vt-=jt-Zt:Vt=0);break}else Qt>=Nt&&(Zt>=Nt?Vt-=Qt-Zt:Vt-=Qt-Nt+1)}return Vt},this.$addFoldLine=function(Nt){return this.$foldData.push(Nt),this.$foldData.sort(function(jt,zt){return jt.start.row-zt.start.row}),Nt},this.addFold=function(Nt,jt){var zt=this.$foldData,Vt=!1,Kt;Nt instanceof Dt?Kt=Nt:(Kt=new Dt(jt,Nt),Kt.collapseChildren=jt.collapseChildren),this.$clipRangeToDocument(Kt.range);var Xt=Kt.start.row,Qt=Kt.start.column,Zt=Kt.end.row,dr=Kt.end.column,cr=this.getFoldAt(Xt,Qt,1),Er=this.getFoldAt(Zt,dr,-1);if(cr&&Er==cr)return cr.addSubFold(Kt);cr&&!cr.range.isStart(Xt,Qt)&&this.removeFold(cr),Er&&!Er.range.isEnd(Zt,dr)&&this.removeFold(Er);var pr=this.getFoldsInRange(Kt.range);pr.length>0&&(this.removeFolds(pr),Kt.collapseChildren||pr.forEach(function(xr){Kt.addSubFold(xr)}));for(var gr=0;gr<zt.length;gr++){var vr=zt[gr];if(Zt==vr.start.row){vr.addFold(Kt),Vt=!0;break}else if(Xt==vr.end.row){if(vr.addFold(Kt),Vt=!0,!Kt.sameRow){var yr=zt[gr+1];if(yr&&yr.start.row==Zt){vr.merge(yr);break}}break}else if(Zt<=vr.start.row)break}return Vt||(vr=this.$addFoldLine(new Bt(this.$foldData,Kt))),this.$useWrapMode?this.$updateWrapData(vr.start.row,vr.start.row):this.$updateRowLengthCache(vr.start.row,vr.start.row),this.$modified=!0,this._signal("changeFold",{data:Kt,action:"add"}),Kt},this.addFolds=function(Nt){Nt.forEach(function(jt){this.addFold(jt)},this)},this.removeFold=function(Nt){var jt=Nt.foldLine,zt=jt.start.row,Vt=jt.end.row,Kt=this.$foldData,Xt=jt.folds;if(Xt.length==1)Kt.splice(Kt.indexOf(jt),1);else if(jt.range.isEnd(Nt.end.row,Nt.end.column))Xt.pop(),jt.end.row=Xt[Xt.length-1].end.row,jt.end.column=Xt[Xt.length-1].end.column;else if(jt.range.isStart(Nt.start.row,Nt.start.column))Xt.shift(),jt.start.row=Xt[0].start.row,jt.start.column=Xt[0].start.column;else if(Nt.sameRow)Xt.splice(Xt.indexOf(Nt),1);else{var Qt=jt.split(Nt.start.row,Nt.start.column);Xt=Qt.folds,Xt.shift(),Qt.start.row=Xt[0].start.row,Qt.start.column=Xt[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(zt,Vt):this.$updateRowLengthCache(zt,Vt)),this.$modified=!0,this._signal("changeFold",{data:Nt,action:"remove"})},this.removeFolds=function(Nt){for(var jt=[],zt=0;zt<Nt.length;zt++)jt.push(Nt[zt]);jt.forEach(function(Vt){this.removeFold(Vt)},this),this.$modified=!0},this.expandFold=function(Nt){this.removeFold(Nt),Nt.subFolds.forEach(function(jt){Nt.restoreRange(jt),this.addFold(jt)},this),Nt.collapseChildren>0&&this.foldAll(Nt.start.row+1,Nt.end.row,Nt.collapseChildren-1),Nt.subFolds=[]},this.expandFolds=function(Nt){Nt.forEach(function(jt){this.expandFold(jt)},this)},this.unfold=function(Nt,jt){var zt,Vt;if(Nt==null)zt=new At(0,0,this.getLength(),0),jt==null&&(jt=!0);else if(typeof Nt=="number")zt=new At(Nt,0,Nt,this.getLine(Nt).length);else if("row"in Nt)zt=At.fromPoints(Nt,Nt);else{if(Array.isArray(Nt))return Vt=[],Nt.forEach(function(Xt){Vt=Vt.concat(this.unfold(Xt))},this),Vt;zt=Nt}Vt=this.getFoldsInRangeList(zt);for(var Kt=Vt;Vt.length==1&&At.comparePoints(Vt[0].start,zt.start)<0&&At.comparePoints(Vt[0].end,zt.end)>0;)this.expandFolds(Vt),Vt=this.getFoldsInRangeList(zt);if(jt!=!1?this.removeFolds(Vt):this.expandFolds(Vt),Kt.length)return Kt},this.isRowFolded=function(Nt,jt){return!!this.getFoldLine(Nt,jt)},this.getRowFoldEnd=function(Nt,jt){var zt=this.getFoldLine(Nt,jt);return zt?zt.end.row:Nt},this.getRowFoldStart=function(Nt,jt){var zt=this.getFoldLine(Nt,jt);return zt?zt.start.row:Nt},this.getFoldDisplayLine=function(Nt,jt,zt,Vt,Kt){Vt==null&&(Vt=Nt.start.row),Kt==null&&(Kt=0),jt==null&&(jt=Nt.end.row),zt==null&&(zt=this.getLine(jt).length);var Xt=this.doc,Qt="";return Nt.walk(function(Zt,dr,cr,Er){if(!(dr<Vt)){if(dr==Vt){if(cr<Kt)return;Er=Math.max(Kt,Er)}Zt!=null?Qt+=Zt:Qt+=Xt.getLine(dr).substring(Er,cr)}},jt,zt),Qt},this.getDisplayLine=function(Nt,jt,zt,Vt){var Kt=this.getFoldLine(Nt);if(Kt)return this.getFoldDisplayLine(Kt,Nt,jt,zt,Vt);var Xt;return Xt=this.doc.getLine(Nt),Xt.substring(Vt||0,jt||Xt.length)},this.$cloneFoldData=function(){var Nt=[];return Nt=this.$foldData.map(function(jt){var zt=jt.folds.map(function(Vt){return Vt.clone()});return new Bt(Nt,zt)}),Nt},this.toggleFold=function(Nt){var jt=this.selection,zt=jt.getRange(),Vt,Kt;if(zt.isEmpty()){var Xt=zt.start;if(Vt=this.getFoldAt(Xt.row,Xt.column),Vt){this.expandFold(Vt);return}else(Kt=this.findMatchingBracket(Xt))?zt.comparePoint(Kt)==1?zt.end=Kt:(zt.start=Kt,zt.start.column++,zt.end.column--):(Kt=this.findMatchingBracket({row:Xt.row,column:Xt.column+1}))?(zt.comparePoint(Kt)==1?zt.end=Kt:zt.start=Kt,zt.start.column++):zt=this.getCommentFoldRange(Xt.row,Xt.column)||zt}else{var Qt=this.getFoldsInRange(zt);if(Nt&&Qt.length){this.expandFolds(Qt);return}else Qt.length==1&&(Vt=Qt[0])}if(Vt||(Vt=this.getFoldAt(zt.start.row,zt.start.column)),Vt&&Vt.range.toString()==zt.toString()){this.expandFold(Vt);return}var Zt="...";if(!zt.isMultiLine()){if(Zt=this.getTextRange(zt),Zt.length<4)return;Zt=Zt.trim().substring(0,2)+".."}this.addFold(Zt,zt)},this.getCommentFoldRange=function(Nt,jt,zt){var Vt=new Ft(this,Nt,jt),Kt=Vt.getCurrentToken(),Xt=Kt&&Kt.type;if(Kt&&/^comment|string/.test(Xt)){Xt=Xt.match(/comment|string/)[0],Xt=="comment"&&(Xt+="|doc-start|\\.doc");var Qt=new RegExp(Xt),Zt=new At;if(zt!=1){do Kt=Vt.stepBackward();while(Kt&&Qt.test(Kt.type));Kt=Vt.stepForward()}Zt.start.row=Vt.getCurrentTokenRow(),Zt.start.column=Vt.getCurrentTokenColumn()+Kt.value.length,Vt=new Ft(this,Nt,jt);var dr=this.getState(Vt.$row);if(zt!=-1){var cr=-1;do if(Kt=Vt.stepForward(),cr==-1){var Er=this.getState(Vt.$row);dr.toString()!==Er.toString()&&(cr=Vt.$row)}else if(Vt.$row>cr)break;while(Kt&&Qt.test(Kt.type));Kt=Vt.stepBackward()}else Kt=Vt.getCurrentToken();return Zt.end.row=Vt.getCurrentTokenRow(),Zt.end.column=Vt.getCurrentTokenColumn(),Zt}},this.foldAll=function(Nt,jt,zt,Vt){zt==null&&(zt=1e5);var Kt=this.foldWidgets;if(Kt){jt=jt||this.getLength(),Nt=Nt||0;for(var Xt=Nt;Xt<jt;Xt++)if(Kt[Xt]==null&&(Kt[Xt]=this.getFoldWidget(Xt)),Kt[Xt]=="start"&&!(Vt&&!Vt(Xt))){var Qt=this.getFoldWidgetRange(Xt);Qt&&Qt.isMultiLine()&&Qt.end.row<=jt&&Qt.start.row>=Nt&&(Xt=Qt.end.row,Qt.collapseChildren=zt,this.addFold("...",Qt))}}},this.foldToLevel=function(Nt){for(this.foldAll();Nt-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var Nt=this;this.foldAll(null,null,null,function(jt){for(var zt=Nt.getTokens(jt),Vt=0;Vt<zt.length;Vt++){var Kt=zt[Vt];if(!(Kt.type=="text"&&/^\s+$/.test(Kt.value)))return!!/comment/.test(Kt.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(Nt){if(!this.$foldStyles[Nt])throw new Error("invalid fold style: "+Nt+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=Nt){this.$foldStyle=Nt,Nt=="manual"&&this.unfold();var jt=this.$foldMode;this.$setFolding(null),this.$setFolding(jt)}},this.$setFolding=function(Nt){if(this.$foldMode!=Nt){if(this.$foldMode=Nt,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!Nt||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=Nt.getFoldWidget.bind(Nt,this,this.$foldStyle),this.getFoldWidgetRange=Nt.getFoldWidgetRange.bind(Nt,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)}},this.getParentFoldRangeData=function(Nt,jt){var zt=this.foldWidgets;if(!zt||jt&&zt[Nt])return{};for(var Vt=Nt-1,Kt;Vt>=0;){var Xt=zt[Vt];if(Xt==null&&(Xt=zt[Vt]=this.getFoldWidget(Vt)),Xt=="start"){var Qt=this.getFoldWidgetRange(Vt);if(Kt||(Kt=Qt),Qt&&Qt.end.row>=Nt)break}Vt--}return{range:Vt!==-1&&Qt,firstRange:Kt}},this.onFoldWidgetClick=function(Nt,jt){jt instanceof kt&&(jt=jt.domEvent);var zt={children:jt.shiftKey,all:jt.ctrlKey||jt.metaKey,siblings:jt.altKey},Vt=this.$toggleFoldWidget(Nt,zt);if(!Vt){var Kt=jt.target||jt.srcElement;Kt&&/ace_fold-widget/.test(Kt.className)&&(Kt.className+=" ace_invalid")}},this.$toggleFoldWidget=function(Nt,jt){if(this.getFoldWidget){var zt=this.getFoldWidget(Nt),Vt=this.getLine(Nt),Kt=zt==="end"?-1:1,Xt=this.getFoldAt(Nt,Kt===-1?0:Vt.length,Kt);if(Xt)return jt.children||jt.all?this.removeFold(Xt):this.expandFold(Xt),Xt;var Qt=this.getFoldWidgetRange(Nt,!0);if(Qt&&!Qt.isMultiLine()&&(Xt=this.getFoldAt(Qt.start.row,Qt.start.column,1),Xt&&Qt.isEqual(Xt.range)))return this.removeFold(Xt),Xt;if(jt.siblings){var Zt=this.getParentFoldRangeData(Nt);if(Zt.range)var dr=Zt.range.start.row+1,cr=Zt.range.end.row;this.foldAll(dr,cr,jt.all?1e4:0)}else jt.children?(cr=Qt?Qt.end.row:this.getLength(),this.foldAll(Nt+1,cr,jt.all?1e4:0)):Qt&&(jt.all&&(Qt.collapseChildren=1e4),this.addFold("...",Qt));return Qt}},this.toggleFoldWidget=function(Nt){var jt=this.selection.getCursor().row;jt=this.getRowFoldStart(jt);var zt=this.$toggleFoldWidget(jt,{});if(!zt){var Vt=this.getParentFoldRangeData(jt,!0);if(zt=Vt.range||Vt.firstRange,zt){jt=zt.start.row;var Kt=this.getFoldAt(jt,this.getLine(jt).length,1);Kt?this.removeFold(Kt):this.addFold("...",zt)}}},this.updateFoldWidgets=function(Nt){var jt=Nt.start.row,zt=Nt.end.row-jt;if(zt===0)this.foldWidgets[jt]=null;else if(Nt.action=="remove")this.foldWidgets.splice(jt,zt+1,null);else{var Vt=Array(zt+1);Vt.unshift(jt,1),this.foldWidgets.splice.apply(this.foldWidgets,Vt)}},this.tokenizerUpdateFoldWidgets=function(Nt){var jt=Nt.data;jt.first!=jt.last&&this.foldWidgets.length>jt.first&&this.foldWidgets.splice(jt.first,this.foldWidgets.length)}}Ct.Folding=Mt}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(yt,Ct,$t){var At=yt("../token_iterator").TokenIterator,Bt=yt("../range").Range;function Dt(){this.findMatchingBracket=function(Ft,kt){if(Ft.column==0)return null;var Mt=kt||this.getLine(Ft.row).charAt(Ft.column-1);if(Mt=="")return null;var Nt=Mt.match(/([\(\[\{])|([\)\]\}])/);return Nt?Nt[1]?this.$findClosingBracket(Nt[1],Ft):this.$findOpeningBracket(Nt[2],Ft):null},this.getBracketRange=function(Ft){var kt=this.getLine(Ft.row),Mt=!0,Nt,jt=kt.charAt(Ft.column-1),zt=jt&&jt.match(/([\(\[\{])|([\)\]\}])/);if(zt||(jt=kt.charAt(Ft.column),Ft={row:Ft.row,column:Ft.column+1},zt=jt&&jt.match(/([\(\[\{])|([\)\]\}])/),Mt=!1),!zt)return null;if(zt[1]){var Vt=this.$findClosingBracket(zt[1],Ft);if(!Vt)return null;Nt=Bt.fromPoints(Ft,Vt),Mt||(Nt.end.column++,Nt.start.column--),Nt.cursor=Nt.end}else{var Vt=this.$findOpeningBracket(zt[2],Ft);if(!Vt)return null;Nt=Bt.fromPoints(Vt,Ft),Mt||(Nt.start.column++,Nt.end.column--),Nt.cursor=Nt.start}return Nt},this.getMatchingBracketRanges=function(Ft,kt){var Mt=this.getLine(Ft.row),Nt=/([\(\[\{])|([\)\]\}])/,jt=!kt&&Mt.charAt(Ft.column-1),zt=jt&&jt.match(Nt);if(zt||(jt=(kt===void 0||kt)&&Mt.charAt(Ft.column),Ft={row:Ft.row,column:Ft.column+1},zt=jt&&jt.match(Nt)),!zt)return null;var Vt=new Bt(Ft.row,Ft.column-1,Ft.row,Ft.column),Kt=zt[1]?this.$findClosingBracket(zt[1],Ft):this.$findOpeningBracket(zt[2],Ft);if(!Kt)return[Vt];var Xt=new Bt(Kt.row,Kt.column,Kt.row,Kt.column+1);return[Vt,Xt]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(Ft,kt,Mt){var Nt=this.$brackets[Ft],jt=1,zt=new At(this,kt.row,kt.column),Vt=zt.getCurrentToken();if(Vt||(Vt=zt.stepForward()),!!Vt){Mt||(Mt=new RegExp("(\\.?"+Vt.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var Kt=kt.column-zt.getCurrentTokenColumn()-2,Xt=Vt.value;;){for(;Kt>=0;){var Qt=Xt.charAt(Kt);if(Qt==Nt){if(jt-=1,jt==0)return{row:zt.getCurrentTokenRow(),column:Kt+zt.getCurrentTokenColumn()}}else Qt==Ft&&(jt+=1);Kt-=1}do Vt=zt.stepBackward();while(Vt&&!Mt.test(Vt.type));if(Vt==null)break;Xt=Vt.value,Kt=Xt.length-1}return null}},this.$findClosingBracket=function(Ft,kt,Mt){var Nt=this.$brackets[Ft],jt=1,zt=new At(this,kt.row,kt.column),Vt=zt.getCurrentToken();if(Vt||(Vt=zt.stepForward()),!!Vt){Mt||(Mt=new RegExp("(\\.?"+Vt.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var Kt=kt.column-zt.getCurrentTokenColumn();;){for(var Xt=Vt.value,Qt=Xt.length;Kt<Qt;){var Zt=Xt.charAt(Kt);if(Zt==Nt){if(jt-=1,jt==0)return{row:zt.getCurrentTokenRow(),column:Kt+zt.getCurrentTokenColumn()}}else Zt==Ft&&(jt+=1);Kt+=1}do Vt=zt.stepForward();while(Vt&&!Mt.test(Vt.type));if(Vt==null)break;Kt=0}return null}},this.getMatchingTags=function(Ft){var kt=new At(this,Ft.row,Ft.column),Mt=this.$findTagName(kt);if(Mt){var Nt=kt.stepBackward();return Nt.value==="<"?this.$findClosingTag(kt,Mt):this.$findOpeningTag(kt,Mt)}},this.$findTagName=function(Ft){var kt=Ft.getCurrentToken(),Mt=!1,Nt=!1;if(kt&&kt.type.indexOf("tag-name")===-1)do Nt?kt=Ft.stepBackward():kt=Ft.stepForward(),kt&&(kt.value==="/>"?Nt=!0:kt.type.indexOf("tag-name")!==-1&&(Mt=!0));while(kt&&!Mt);return kt},this.$findClosingTag=function(Ft,kt){var Mt,Nt=kt.value,jt=kt.value,zt=0,Vt=new Bt(Ft.getCurrentTokenRow(),Ft.getCurrentTokenColumn(),Ft.getCurrentTokenRow(),Ft.getCurrentTokenColumn()+1);kt=Ft.stepForward();var Kt=new Bt(Ft.getCurrentTokenRow(),Ft.getCurrentTokenColumn(),Ft.getCurrentTokenRow(),Ft.getCurrentTokenColumn()+kt.value.length),Xt=!1;do{if(Mt=kt,Mt.type.indexOf("tag-close")!==-1&&!Xt){var Qt=new Bt(Ft.getCurrentTokenRow(),Ft.getCurrentTokenColumn(),Ft.getCurrentTokenRow(),Ft.getCurrentTokenColumn()+1);Xt=!0}if(kt=Ft.stepForward(),kt){if(kt.value===">"&&!Xt){var Qt=new Bt(Ft.getCurrentTokenRow(),Ft.getCurrentTokenColumn(),Ft.getCurrentTokenRow(),Ft.getCurrentTokenColumn()+1);Xt=!0}if(kt.type.indexOf("tag-name")!==-1){if(Nt=kt.value,jt===Nt){if(Mt.value==="<")zt++;else if(Mt.value==="</"&&(zt--,zt<0)){Ft.stepBackward();var Zt=new Bt(Ft.getCurrentTokenRow(),Ft.getCurrentTokenColumn(),Ft.getCurrentTokenRow(),Ft.getCurrentTokenColumn()+2);kt=Ft.stepForward();var dr=new Bt(Ft.getCurrentTokenRow(),Ft.getCurrentTokenColumn(),Ft.getCurrentTokenRow(),Ft.getCurrentTokenColumn()+kt.value.length);if(kt.type.indexOf("tag-close")===-1&&(kt=Ft.stepForward()),kt&&kt.value===">")var cr=new Bt(Ft.getCurrentTokenRow(),Ft.getCurrentTokenColumn(),Ft.getCurrentTokenRow(),Ft.getCurrentTokenColumn()+1);else return}}}else if(jt===Nt&&kt.value==="/>"&&(zt--,zt<0))var Zt=new Bt(Ft.getCurrentTokenRow(),Ft.getCurrentTokenColumn(),Ft.getCurrentTokenRow(),Ft.getCurrentTokenColumn()+2),dr=Zt,cr=dr,Qt=new Bt(Kt.end.row,Kt.end.column,Kt.end.row,Kt.end.column+1)}}while(kt&&zt>=0);if(Vt&&Qt&&Zt&&cr&&Kt&&dr)return{openTag:new Bt(Vt.start.row,Vt.start.column,Qt.end.row,Qt.end.column),closeTag:new Bt(Zt.start.row,Zt.start.column,cr.end.row,cr.end.column),openTagName:Kt,closeTagName:dr}},this.$findOpeningTag=function(Ft,kt){var Mt=Ft.getCurrentToken(),Nt=kt.value,jt=0,zt=Ft.getCurrentTokenRow(),Vt=Ft.getCurrentTokenColumn(),Kt=Vt+2,Xt=new Bt(zt,Vt,zt,Kt);Ft.stepForward();var Qt=new Bt(Ft.getCurrentTokenRow(),Ft.getCurrentTokenColumn(),Ft.getCurrentTokenRow(),Ft.getCurrentTokenColumn()+kt.value.length);if(kt.type.indexOf("tag-close")===-1&&(kt=Ft.stepForward()),!(!kt||kt.value!==">")){var Zt=new Bt(Ft.getCurrentTokenRow(),Ft.getCurrentTokenColumn(),Ft.getCurrentTokenRow(),Ft.getCurrentTokenColumn()+1);Ft.stepBackward(),Ft.stepBackward();do if(kt=Mt,zt=Ft.getCurrentTokenRow(),Vt=Ft.getCurrentTokenColumn(),Kt=Vt+kt.value.length,Mt=Ft.stepBackward(),kt){if(kt.type.indexOf("tag-name")!==-1){if(Nt===kt.value)if(Mt.value==="<"){if(jt++,jt>0){var dr=new Bt(zt,Vt,zt,Kt),cr=new Bt(Ft.getCurrentTokenRow(),Ft.getCurrentTokenColumn(),Ft.getCurrentTokenRow(),Ft.getCurrentTokenColumn()+1);do kt=Ft.stepForward();while(kt&&kt.value!==">");var Er=new Bt(Ft.getCurrentTokenRow(),Ft.getCurrentTokenColumn(),Ft.getCurrentTokenRow(),Ft.getCurrentTokenColumn()+1)}}else Mt.value==="</"&&jt--}else if(kt.value==="/>"){for(var pr=0,gr=Mt;gr;){if(gr.type.indexOf("tag-name")!==-1&&gr.value===Nt){jt--;break}else if(gr.value==="<")break;gr=Ft.stepBackward(),pr++}for(var vr=0;vr<pr;vr++)Ft.stepForward()}}while(Mt&&jt<=0);if(cr&&Er&&Xt&&Zt&&dr&&Qt)return{openTag:new Bt(cr.start.row,cr.start.column,Er.end.row,Er.end.column),closeTag:new Bt(Xt.start.row,Xt.start.column,Zt.end.row,Zt.end.column),openTagName:dr,closeTagName:Qt}}}}Ct.BracketMatch=Dt}),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/document","ace/background_tokenizer","ace/search_highlight","ace/undomanager","ace/edit_session/folding","ace/edit_session/bracket_match"],function(yt,Ct,$t){var At=yt("./lib/oop"),Bt=yt("./lib/lang"),Dt=yt("./bidihandler").BidiHandler,Ft=yt("./config"),kt=yt("./lib/event_emitter").EventEmitter,Mt=yt("./selection").Selection,Nt=yt("./mode/text").Mode,jt=yt("./range").Range,zt=yt("./document").Document,Vt=yt("./background_tokenizer").BackgroundTokenizer,Kt=yt("./search_highlight").SearchHighlight,Xt=yt("./undomanager").UndoManager,Qt=function(){function rr(Lt,Ht){this.doc,this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++rr.$uid,this.$foldData.toString=function(){return this.join(`
`)},this.bgTokenizer=new Vt(new Nt().getTokenizer(),this);var Wt=this;this.bgTokenizer.on("update",function(Gt){Wt._signal("tokenizerUpdate",Gt)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof Lt!="object"||!Lt.getLine)&&(Lt=new zt(Lt)),this.setDocument(Lt),this.selection=new Mt(this),this.$bidiHandler=new Dt(this),Ft.resetOptions(this),this.setMode(Ht),Ft._signal("session",this),this.destroyed=!1}return rr.prototype.setDocument=function(Lt){this.doc&&this.doc.off("change",this.$onChange),this.doc=Lt,Lt.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},rr.prototype.getDocument=function(){return this.doc},rr.prototype.$resetRowCache=function(Lt){if(!Lt){this.$docRowCache=[],this.$screenRowCache=[];return}var Ht=this.$docRowCache.length,Wt=this.$getRowCacheIndex(this.$docRowCache,Lt)+1;Ht>Wt&&(this.$docRowCache.splice(Wt,Ht),this.$screenRowCache.splice(Wt,Ht))},rr.prototype.$getRowCacheIndex=function(Lt,Ht){for(var Wt=0,Gt=Lt.length-1;Wt<=Gt;){var Yt=Wt+Gt>>1,er=Lt[Yt];if(Ht>er)Wt=Yt+1;else if(Ht<er)Gt=Yt-1;else return Yt}return Wt-1},rr.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},rr.prototype.onChangeFold=function(Lt){var Ht=Lt.data;this.$resetRowCache(Ht.start.row)},rr.prototype.onChange=function(Lt){this.$modified=!0,this.$bidiHandler.onChange(Lt),this.$resetRowCache(Lt.start.row);var Ht=this.$updateInternalDataOnChange(Lt);!this.$fromUndo&&this.$undoManager&&(Ht&&Ht.length&&(this.$undoManager.add({action:"removeFolds",folds:Ht},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(Lt,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(Lt),this._signal("change",Lt)},rr.prototype.setValue=function(Lt){this.doc.setValue(Lt),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},rr.fromJSON=function(Lt){typeof Lt=="string"&&(Lt=JSON.parse(Lt));var Ht=new Xt;Ht.$undoStack=Lt.history.undo,Ht.$redoStack=Lt.history.redo,Ht.mark=Lt.history.mark,Ht.$rev=Lt.history.rev;var Wt=new rr(Lt.value);return Lt.folds.forEach(function(Gt){Wt.addFold("...",jt.fromPoints(Gt.start,Gt.end))}),Wt.setAnnotations(Lt.annotations),Wt.setBreakpoints(Lt.breakpoints),Wt.setMode(Lt.mode),Wt.setScrollLeft(Lt.scrollLeft),Wt.setScrollTop(Lt.scrollTop),Wt.setUndoManager(Ht),Wt.selection.fromJSON(Lt.selection),Wt},rr.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(Lt){return Lt.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},rr.prototype.toString=function(){return this.doc.getValue()},rr.prototype.getSelection=function(){return this.selection},rr.prototype.getState=function(Lt){return this.bgTokenizer.getState(Lt)},rr.prototype.getTokens=function(Lt){return this.bgTokenizer.getTokens(Lt)},rr.prototype.getTokenAt=function(Lt,Ht){var Wt=this.bgTokenizer.getTokens(Lt),Gt,Yt=0;if(Ht==null){var er=Wt.length-1;Yt=this.getLine(Lt).length}else for(var er=0;er<Wt.length&&(Yt+=Wt[er].value.length,!(Yt>=Ht));er++);return Gt=Wt[er],Gt?(Gt.index=er,Gt.start=Yt-Gt.value.length,Gt):null},rr.prototype.setUndoManager=function(Lt){if(this.$undoManager=Lt,this.$informUndoManager&&this.$informUndoManager.cancel(),Lt){var Ht=this;Lt.addSession(this),this.$syncInformUndoManager=function(){Ht.$informUndoManager.cancel(),Ht.mergeUndoDeltas=!1},this.$informUndoManager=Bt.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},rr.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},rr.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},rr.prototype.getTabString=function(){return this.getUseSoftTabs()?Bt.stringRepeat(" ",this.getTabSize()):"	"},rr.prototype.setUseSoftTabs=function(Lt){this.setOption("useSoftTabs",Lt)},rr.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},rr.prototype.setTabSize=function(Lt){this.setOption("tabSize",Lt)},rr.prototype.getTabSize=function(){return this.$tabSize},rr.prototype.isTabStop=function(Lt){return this.$useSoftTabs&&Lt.column%this.$tabSize===0},rr.prototype.setNavigateWithinSoftTabs=function(Lt){this.setOption("navigateWithinSoftTabs",Lt)},rr.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},rr.prototype.setOverwrite=function(Lt){this.setOption("overwrite",Lt)},rr.prototype.getOverwrite=function(){return this.$overwrite},rr.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},rr.prototype.addGutterDecoration=function(Lt,Ht){this.$decorations[Lt]||(this.$decorations[Lt]=""),this.$decorations[Lt]+=" "+Ht,this._signal("changeBreakpoint",{})},rr.prototype.removeGutterDecoration=function(Lt,Ht){this.$decorations[Lt]=(this.$decorations[Lt]||"").replace(" "+Ht,""),this._signal("changeBreakpoint",{})},rr.prototype.getBreakpoints=function(){return this.$breakpoints},rr.prototype.setBreakpoints=function(Lt){this.$breakpoints=[];for(var Ht=0;Ht<Lt.length;Ht++)this.$breakpoints[Lt[Ht]]="ace_breakpoint";this._signal("changeBreakpoint",{})},rr.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},rr.prototype.setBreakpoint=function(Lt,Ht){Ht===void 0&&(Ht="ace_breakpoint"),Ht?this.$breakpoints[Lt]=Ht:delete this.$breakpoints[Lt],this._signal("changeBreakpoint",{})},rr.prototype.clearBreakpoint=function(Lt){delete this.$breakpoints[Lt],this._signal("changeBreakpoint",{})},rr.prototype.addMarker=function(Lt,Ht,Wt,Gt){var Yt=this.$markerId++,er={range:Lt,type:Wt||"line",renderer:typeof Wt=="function"?Wt:null,clazz:Ht,inFront:!!Gt,id:Yt};return Gt?(this.$frontMarkers[Yt]=er,this._signal("changeFrontMarker")):(this.$backMarkers[Yt]=er,this._signal("changeBackMarker")),Yt},rr.prototype.addDynamicMarker=function(Lt,Ht){if(Lt.update){var Wt=this.$markerId++;return Lt.id=Wt,Lt.inFront=!!Ht,Ht?(this.$frontMarkers[Wt]=Lt,this._signal("changeFrontMarker")):(this.$backMarkers[Wt]=Lt,this._signal("changeBackMarker")),Lt}},rr.prototype.removeMarker=function(Lt){var Ht=this.$frontMarkers[Lt]||this.$backMarkers[Lt];if(Ht){var Wt=Ht.inFront?this.$frontMarkers:this.$backMarkers;delete Wt[Lt],this._signal(Ht.inFront?"changeFrontMarker":"changeBackMarker")}},rr.prototype.getMarkers=function(Lt){return Lt?this.$frontMarkers:this.$backMarkers},rr.prototype.highlight=function(Lt){if(!this.$searchHighlight){var Ht=new Kt(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(Ht)}this.$searchHighlight.setRegexp(Lt)},rr.prototype.highlightLines=function(Lt,Ht,Wt,Gt){typeof Ht!="number"&&(Wt=Ht,Ht=Lt),Wt||(Wt="ace_step");var Yt=new jt(Lt,0,Ht,1/0);return Yt.id=this.addMarker(Yt,Wt,"fullLine",Gt),Yt},rr.prototype.setAnnotations=function(Lt){this.$annotations=Lt,this._signal("changeAnnotation",{})},rr.prototype.getAnnotations=function(){return this.$annotations||[]},rr.prototype.clearAnnotations=function(){this.setAnnotations([])},rr.prototype.$detectNewLine=function(Lt){var Ht=Lt.match(/^.*?(\r?\n)/m);Ht?this.$autoNewLine=Ht[1]:this.$autoNewLine=`
`},rr.prototype.getWordRange=function(Lt,Ht){var Wt=this.getLine(Lt),Gt=!1;if(Ht>0&&(Gt=!!Wt.charAt(Ht-1).match(this.tokenRe)),Gt||(Gt=!!Wt.charAt(Ht).match(this.tokenRe)),Gt)var Yt=this.tokenRe;else if(/^\s+$/.test(Wt.slice(Ht-1,Ht+1)))var Yt=/\s/;else var Yt=this.nonTokenRe;var er=Ht;if(er>0){do er--;while(er>=0&&Wt.charAt(er).match(Yt));er++}for(var lr=Ht;lr<Wt.length&&Wt.charAt(lr).match(Yt);)lr++;return new jt(Lt,er,Lt,lr)},rr.prototype.getAWordRange=function(Lt,Ht){for(var Wt=this.getWordRange(Lt,Ht),Gt=this.getLine(Wt.end.row);Gt.charAt(Wt.end.column).match(/[ \t]/);)Wt.end.column+=1;return Wt},rr.prototype.setNewLineMode=function(Lt){this.doc.setNewLineMode(Lt)},rr.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},rr.prototype.setUseWorker=function(Lt){this.setOption("useWorker",Lt)},rr.prototype.getUseWorker=function(){return this.$useWorker},rr.prototype.onReloadTokenizer=function(Lt){var Ht=Lt.data;this.bgTokenizer.start(Ht.first),this._signal("tokenizerUpdate",Lt)},rr.prototype.setMode=function(Lt,Ht){if(Lt&&typeof Lt=="object"){if(Lt.getTokenizer)return this.$onChangeMode(Lt);var Wt=Lt,Gt=Wt.path}else Gt=Lt||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new Nt),this.$modes[Gt]&&!Wt){this.$onChangeMode(this.$modes[Gt]),Ht&&Ht();return}this.$modeId=Gt,Ft.loadModule(["mode",Gt],(function(Yt){if(this.$modeId!==Gt)return Ht&&Ht();this.$modes[Gt]&&!Wt?this.$onChangeMode(this.$modes[Gt]):Yt&&Yt.Mode&&(Yt=new Yt.Mode(Wt),Wt||(this.$modes[Gt]=Yt,Yt.$id=Gt),this.$onChangeMode(Yt)),Ht&&Ht()}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},rr.prototype.$onChangeMode=function(Lt,Ht){if(Ht||(this.$modeId=Lt.$id),this.$mode!==Lt){var Wt=this.$mode;this.$mode=Lt,this.$stopWorker(),this.$useWorker&&this.$startWorker();var Gt=Lt.getTokenizer();if(Gt.on!==void 0){var Yt=this.onReloadTokenizer.bind(this);Gt.on("update",Yt)}this.bgTokenizer.setTokenizer(Gt),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=Lt.tokenRe,this.nonTokenRe=Lt.nonTokenRe,Ht||(Lt.attachToSession&&Lt.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(Lt.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:Wt,mode:Lt}))}},rr.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},rr.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(Lt){Ft.warn("Could not load worker",Lt),this.$worker=null}},rr.prototype.getMode=function(){return this.$mode},rr.prototype.setScrollTop=function(Lt){this.$scrollTop===Lt||isNaN(Lt)||(this.$scrollTop=Lt,this._signal("changeScrollTop",Lt))},rr.prototype.getScrollTop=function(){return this.$scrollTop},rr.prototype.setScrollLeft=function(Lt){this.$scrollLeft===Lt||isNaN(Lt)||(this.$scrollLeft=Lt,this._signal("changeScrollLeft",Lt))},rr.prototype.getScrollLeft=function(){return this.$scrollLeft},rr.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},rr.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var Lt=0;return this.lineWidgets.forEach(function(Ht){Ht&&Ht.screenWidth>Lt&&(Lt=Ht.screenWidth)}),this.lineWidgetWidth=Lt},rr.prototype.$computeWidth=function(Lt){if(this.$modified||Lt){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var Ht=this.doc.getAllLines(),Wt=this.$rowLengthCache,Gt=0,Yt=0,er=this.$foldData[Yt],lr=er?er.start.row:1/0,Jt=Ht.length,Ut=0;Ut<Jt;Ut++){if(Ut>lr){if(Ut=er.end.row+1,Ut>=Jt)break;er=this.$foldData[Yt++],lr=er?er.start.row:1/0}Wt[Ut]==null&&(Wt[Ut]=this.$getStringScreenWidth(Ht[Ut])[0]),Wt[Ut]>Gt&&(Gt=Wt[Ut])}this.screenWidth=Gt}},rr.prototype.getLine=function(Lt){return this.doc.getLine(Lt)},rr.prototype.getLines=function(Lt,Ht){return this.doc.getLines(Lt,Ht)},rr.prototype.getLength=function(){return this.doc.getLength()},rr.prototype.getTextRange=function(Lt){return this.doc.getTextRange(Lt||this.selection.getRange())},rr.prototype.insert=function(Lt,Ht){return this.doc.insert(Lt,Ht)},rr.prototype.remove=function(Lt){return this.doc.remove(Lt)},rr.prototype.removeFullLines=function(Lt,Ht){return this.doc.removeFullLines(Lt,Ht)},rr.prototype.undoChanges=function(Lt,Ht){if(Lt.length){this.$fromUndo=!0;for(var Wt=Lt.length-1;Wt!=-1;Wt--){var Gt=Lt[Wt];Gt.action=="insert"||Gt.action=="remove"?this.doc.revertDelta(Gt):Gt.folds&&this.addFolds(Gt.folds)}!Ht&&this.$undoSelect&&(Lt.selectionBefore?this.selection.fromJSON(Lt.selectionBefore):this.selection.setRange(this.$getUndoSelection(Lt,!0))),this.$fromUndo=!1}},rr.prototype.redoChanges=function(Lt,Ht){if(Lt.length){this.$fromUndo=!0;for(var Wt=0;Wt<Lt.length;Wt++){var Gt=Lt[Wt];(Gt.action=="insert"||Gt.action=="remove")&&this.doc.$safeApplyDelta(Gt)}!Ht&&this.$undoSelect&&(Lt.selectionAfter?this.selection.fromJSON(Lt.selectionAfter):this.selection.setRange(this.$getUndoSelection(Lt,!1))),this.$fromUndo=!1}},rr.prototype.setUndoSelect=function(Lt){this.$undoSelect=Lt},rr.prototype.$getUndoSelection=function(Lt,Ht){function Wt(Jt){return Ht?Jt.action!=="insert":Jt.action==="insert"}for(var Gt,Yt,er=0;er<Lt.length;er++){var lr=Lt[er];if(lr.start){if(!Gt){Wt(lr)?Gt=jt.fromPoints(lr.start,lr.end):Gt=jt.fromPoints(lr.start,lr.start);continue}Wt(lr)?(Yt=lr.start,Gt.compare(Yt.row,Yt.column)==-1&&Gt.setStart(Yt),Yt=lr.end,Gt.compare(Yt.row,Yt.column)==1&&Gt.setEnd(Yt)):(Yt=lr.start,Gt.compare(Yt.row,Yt.column)==-1&&(Gt=jt.fromPoints(lr.start,lr.start)))}}return Gt},rr.prototype.replace=function(Lt,Ht){return this.doc.replace(Lt,Ht)},rr.prototype.moveText=function(Lt,Ht,Wt){var Gt=this.getTextRange(Lt),Yt=this.getFoldsInRange(Lt),er=jt.fromPoints(Ht,Ht);if(!Wt){this.remove(Lt);var lr=Lt.start.row-Lt.end.row,Jt=lr?-Lt.end.column:Lt.start.column-Lt.end.column;Jt&&(er.start.row==Lt.end.row&&er.start.column>Lt.end.column&&(er.start.column+=Jt),er.end.row==Lt.end.row&&er.end.column>Lt.end.column&&(er.end.column+=Jt)),lr&&er.start.row>=Lt.end.row&&(er.start.row+=lr,er.end.row+=lr)}if(er.end=this.insert(er.start,Gt),Yt.length){var Ut=Lt.start,ir=er.start,lr=ir.row-Ut.row,Jt=ir.column-Ut.column;this.addFolds(Yt.map(function($r){return $r=$r.clone(),$r.start.row==Ut.row&&($r.start.column+=Jt),$r.end.row==Ut.row&&($r.end.column+=Jt),$r.start.row+=lr,$r.end.row+=lr,$r}))}return er},rr.prototype.indentRows=function(Lt,Ht,Wt){Wt=Wt.replace(/\t/g,this.getTabString());for(var Gt=Lt;Gt<=Ht;Gt++)this.doc.insertInLine({row:Gt,column:0},Wt)},rr.prototype.outdentRows=function(Lt){for(var Ht=Lt.collapseRows(),Wt=new jt(0,0,0,0),Gt=this.getTabSize(),Yt=Ht.start.row;Yt<=Ht.end.row;++Yt){var er=this.getLine(Yt);Wt.start.row=Yt,Wt.end.row=Yt;for(var lr=0;lr<Gt&&er.charAt(lr)==" ";++lr);lr<Gt&&er.charAt(lr)=="	"?(Wt.start.column=lr,Wt.end.column=lr+1):(Wt.start.column=0,Wt.end.column=lr),this.remove(Wt)}},rr.prototype.$moveLines=function(Lt,Ht,Wt){if(Lt=this.getRowFoldStart(Lt),Ht=this.getRowFoldEnd(Ht),Wt<0){var Gt=this.getRowFoldStart(Lt+Wt);if(Gt<0)return 0;var Yt=Gt-Lt}else if(Wt>0){var Gt=this.getRowFoldEnd(Ht+Wt);if(Gt>this.doc.getLength()-1)return 0;var Yt=Gt-Ht}else{Lt=this.$clipRowToDocument(Lt),Ht=this.$clipRowToDocument(Ht);var Yt=Ht-Lt+1}var er=new jt(Lt,0,Ht,Number.MAX_VALUE),lr=this.getFoldsInRange(er).map(function(Ut){return Ut=Ut.clone(),Ut.start.row+=Yt,Ut.end.row+=Yt,Ut}),Jt=Wt==0?this.doc.getLines(Lt,Ht):this.doc.removeFullLines(Lt,Ht);return this.doc.insertFullLines(Lt+Yt,Jt),lr.length&&this.addFolds(lr),Yt},rr.prototype.moveLinesUp=function(Lt,Ht){return this.$moveLines(Lt,Ht,-1)},rr.prototype.moveLinesDown=function(Lt,Ht){return this.$moveLines(Lt,Ht,1)},rr.prototype.duplicateLines=function(Lt,Ht){return this.$moveLines(Lt,Ht,0)},rr.prototype.$clipRowToDocument=function(Lt){return Math.max(0,Math.min(Lt,this.doc.getLength()-1))},rr.prototype.$clipColumnToRow=function(Lt,Ht){return Ht<0?0:Math.min(this.doc.getLine(Lt).length,Ht)},rr.prototype.$clipPositionToDocument=function(Lt,Ht){if(Ht=Math.max(0,Ht),Lt<0)Lt=0,Ht=0;else{var Wt=this.doc.getLength();Lt>=Wt?(Lt=Wt-1,Ht=this.doc.getLine(Wt-1).length):Ht=Math.min(this.doc.getLine(Lt).length,Ht)}return{row:Lt,column:Ht}},rr.prototype.$clipRangeToDocument=function(Lt){Lt.start.row<0?(Lt.start.row=0,Lt.start.column=0):Lt.start.column=this.$clipColumnToRow(Lt.start.row,Lt.start.column);var Ht=this.doc.getLength()-1;return Lt.end.row>Ht?(Lt.end.row=Ht,Lt.end.column=this.doc.getLine(Ht).length):Lt.end.column=this.$clipColumnToRow(Lt.end.row,Lt.end.column),Lt},rr.prototype.setUseWrapMode=function(Lt){if(Lt!=this.$useWrapMode){if(this.$useWrapMode=Lt,this.$modified=!0,this.$resetRowCache(0),Lt){var Ht=this.getLength();this.$wrapData=Array(Ht),this.$updateWrapData(0,Ht-1)}this._signal("changeWrapMode")}},rr.prototype.getUseWrapMode=function(){return this.$useWrapMode},rr.prototype.setWrapLimitRange=function(Lt,Ht){(this.$wrapLimitRange.min!==Lt||this.$wrapLimitRange.max!==Ht)&&(this.$wrapLimitRange={min:Lt,max:Ht},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},rr.prototype.adjustWrapLimit=function(Lt,Ht){var Wt=this.$wrapLimitRange;Wt.max<0&&(Wt={min:Ht,max:Ht});var Gt=this.$constrainWrapLimit(Lt,Wt.min,Wt.max);return Gt!=this.$wrapLimit&&Gt>1?(this.$wrapLimit=Gt,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},rr.prototype.$constrainWrapLimit=function(Lt,Ht,Wt){return Ht&&(Lt=Math.max(Ht,Lt)),Wt&&(Lt=Math.min(Wt,Lt)),Lt},rr.prototype.getWrapLimit=function(){return this.$wrapLimit},rr.prototype.setWrapLimit=function(Lt){this.setWrapLimitRange(Lt,Lt)},rr.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},rr.prototype.$updateInternalDataOnChange=function(Lt){var Ht=this.$useWrapMode,Wt=Lt.action,Gt=Lt.start,Yt=Lt.end,er=Gt.row,lr=Yt.row,Jt=lr-er,Ut=null;if(this.$updating=!0,Jt!=0)if(Wt==="remove"){this[Ht?"$wrapData":"$rowLengthCache"].splice(er,Jt);var ir=this.$foldData;Ut=this.getFoldsInRange(Lt),this.removeFolds(Ut);var Cr=this.getFoldLine(Yt.row),_r=0;if(Cr){Cr.addRemoveChars(Yt.row,Yt.column,Gt.column-Yt.column),Cr.shiftRow(-Jt);var $r=this.getFoldLine(er);$r&&$r!==Cr&&($r.merge(Cr),Cr=$r),_r=ir.indexOf(Cr)+1}for(_r;_r<ir.length;_r++){var Cr=ir[_r];Cr.start.row>=Yt.row&&Cr.shiftRow(-Jt)}lr=er}else{var Tr=Array(Jt);Tr.unshift(er,0);var Dr=Ht?this.$wrapData:this.$rowLengthCache;Dr.splice.apply(Dr,Tr);var ir=this.$foldData,Cr=this.getFoldLine(er),_r=0;if(Cr){var Ar=Cr.range.compareInside(Gt.row,Gt.column);Ar==0?(Cr=Cr.split(Gt.row,Gt.column),Cr&&(Cr.shiftRow(Jt),Cr.addRemoveChars(lr,0,Yt.column-Gt.column))):Ar==-1&&(Cr.addRemoveChars(er,0,Yt.column-Gt.column),Cr.shiftRow(Jt)),_r=ir.indexOf(Cr)+1}for(_r;_r<ir.length;_r++){var Cr=ir[_r];Cr.start.row>=er&&Cr.shiftRow(Jt)}}else{Jt=Math.abs(Lt.start.column-Lt.end.column),Wt==="remove"&&(Ut=this.getFoldsInRange(Lt),this.removeFolds(Ut),Jt=-Jt);var Cr=this.getFoldLine(er);Cr&&Cr.addRemoveChars(er,Gt.column,Jt)}return Ht&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,Ht?this.$updateWrapData(er,lr):this.$updateRowLengthCache(er,lr),Ut},rr.prototype.$updateRowLengthCache=function(Lt,Ht){this.$rowLengthCache[Lt]=null,this.$rowLengthCache[Ht]=null},rr.prototype.$updateWrapData=function(Lt,Ht){var Wt=this.doc.getAllLines(),Gt=this.getTabSize(),Yt=this.$wrapData,er=this.$wrapLimit,lr,Jt,Ut=Lt;for(Ht=Math.min(Ht,Wt.length-1);Ut<=Ht;)Jt=this.getFoldLine(Ut,Jt),Jt?(lr=[],Jt.walk((function(ir,Cr,_r,$r){var Tr;if(ir!=null){Tr=this.$getDisplayTokens(ir,lr.length),Tr[0]=cr;for(var Dr=1;Dr<Tr.length;Dr++)Tr[Dr]=Er}else Tr=this.$getDisplayTokens(Wt[Cr].substring($r,_r),lr.length);lr=lr.concat(Tr)}).bind(this),Jt.end.row,Wt[Jt.end.row].length+1),Yt[Jt.start.row]=this.$computeWrapSplits(lr,er,Gt),Ut=Jt.end.row+1):(lr=this.$getDisplayTokens(Wt[Ut]),Yt[Ut]=this.$computeWrapSplits(lr,er,Gt),Ut++)},rr.prototype.$computeWrapSplits=function(Lt,Ht,Wt){if(Lt.length==0)return[];var Gt=[],Yt=Lt.length,er=0,lr=0,Jt=this.$wrapAsCode,Ut=this.$indentedSoftWrap,ir=Ht<=Math.max(2*Wt,8)||Ut===!1?0:Math.floor(Ht/2);function Cr(){var Ar=0;if(ir===0)return Ar;if(Ut)for(var Fr=0;Fr<Lt.length;Fr++){var Rr=Lt[Fr];if(Rr==gr)Ar+=1;else if(Rr==vr)Ar+=Wt;else{if(Rr==yr)continue;break}}return Jt&&Ut!==!1&&(Ar+=Wt),Math.min(Ar,ir)}function _r(Ar){for(var Fr=Ar-er,Rr=er;Rr<Ar;Rr++){var wr=Lt[Rr];(wr===12||wr===2)&&(Fr-=1)}Gt.length||($r=Cr(),Gt.indent=$r),lr+=Fr,Gt.push(lr),er=Ar}for(var $r=0;Yt-er>Ht-$r;){var Tr=er+Ht-$r;if(Lt[Tr-1]>=gr&&Lt[Tr]>=gr){_r(Tr);continue}if(Lt[Tr]==cr||Lt[Tr]==Er){for(Tr;Tr!=er-1&&Lt[Tr]!=cr;Tr--);if(Tr>er){_r(Tr);continue}for(Tr=er+Ht,Tr;Tr<Lt.length&&Lt[Tr]==Er;Tr++);if(Tr==Lt.length)break;_r(Tr);continue}for(var Dr=Math.max(Tr-(Ht-(Ht>>2)),er-1);Tr>Dr&&Lt[Tr]<cr;)Tr--;if(Jt){for(;Tr>Dr&&Lt[Tr]<cr;)Tr--;for(;Tr>Dr&&Lt[Tr]==pr;)Tr--}else for(;Tr>Dr&&Lt[Tr]<gr;)Tr--;if(Tr>Dr){_r(++Tr);continue}Tr=er+Ht,Lt[Tr]==dr&&Tr--,_r(Tr-$r)}return Gt},rr.prototype.$getDisplayTokens=function(Lt,Ht){var Wt=[],Gt;Ht=Ht||0;for(var Yt=0;Yt<Lt.length;Yt++){var er=Lt.charCodeAt(Yt);if(er==9){Gt=this.getScreenTabSize(Wt.length+Ht),Wt.push(vr);for(var lr=1;lr<Gt;lr++)Wt.push(yr)}else er==32?Wt.push(gr):er>39&&er<48||er>57&&er<64?Wt.push(pr):er>=4352&&xr(er)?Wt.push(Zt,dr):Wt.push(Zt)}return Wt},rr.prototype.$getStringScreenWidth=function(Lt,Ht,Wt){if(Ht==0)return[0,0];Ht==null&&(Ht=1/0),Wt=Wt||0;var Gt,Yt;for(Yt=0;Yt<Lt.length&&(Gt=Lt.charCodeAt(Yt),Gt==9?Wt+=this.getScreenTabSize(Wt):Gt>=4352&&xr(Gt)?Wt+=2:Wt+=1,!(Wt>Ht));Yt++);return[Wt,Yt]},rr.prototype.getRowLength=function(Lt){var Ht=1;return this.lineWidgets&&(Ht+=this.lineWidgets[Lt]&&this.lineWidgets[Lt].rowCount||0),!this.$useWrapMode||!this.$wrapData[Lt]?Ht:this.$wrapData[Lt].length+Ht},rr.prototype.getRowLineCount=function(Lt){return!this.$useWrapMode||!this.$wrapData[Lt]?1:this.$wrapData[Lt].length+1},rr.prototype.getRowWrapIndent=function(Lt){if(this.$useWrapMode){var Ht=this.screenToDocumentPosition(Lt,Number.MAX_VALUE),Wt=this.$wrapData[Ht.row];return Wt.length&&Wt[0]<Ht.column?Wt.indent:0}else return 0},rr.prototype.getScreenLastRowColumn=function(Lt){var Ht=this.screenToDocumentPosition(Lt,Number.MAX_VALUE);return this.documentToScreenColumn(Ht.row,Ht.column)},rr.prototype.getDocumentLastRowColumn=function(Lt,Ht){var Wt=this.documentToScreenRow(Lt,Ht);return this.getScreenLastRowColumn(Wt)},rr.prototype.getDocumentLastRowColumnPosition=function(Lt,Ht){var Wt=this.documentToScreenRow(Lt,Ht);return this.screenToDocumentPosition(Wt,Number.MAX_VALUE/10)},rr.prototype.getRowSplitData=function(Lt){if(this.$useWrapMode)return this.$wrapData[Lt]},rr.prototype.getScreenTabSize=function(Lt){return this.$tabSize-(Lt%this.$tabSize|0)},rr.prototype.screenToDocumentRow=function(Lt,Ht){return this.screenToDocumentPosition(Lt,Ht).row},rr.prototype.screenToDocumentColumn=function(Lt,Ht){return this.screenToDocumentPosition(Lt,Ht).column},rr.prototype.screenToDocumentPosition=function(Lt,Ht,Wt){if(Lt<0)return{row:0,column:0};var Gt,Yt=0,er=0,lr,Jt=0,Ut=0,ir=this.$screenRowCache,Cr=this.$getRowCacheIndex(ir,Lt),_r=ir.length;if(_r&&Cr>=0)var Jt=ir[Cr],Yt=this.$docRowCache[Cr],$r=Lt>ir[_r-1];else var $r=!_r;for(var Tr=this.getLength()-1,Dr=this.getNextFoldLine(Yt),Ar=Dr?Dr.start.row:1/0;Jt<=Lt&&(Ut=this.getRowLength(Yt),!(Jt+Ut>Lt||Yt>=Tr));)Jt+=Ut,Yt++,Yt>Ar&&(Yt=Dr.end.row+1,Dr=this.getNextFoldLine(Yt,Dr),Ar=Dr?Dr.start.row:1/0),$r&&(this.$docRowCache.push(Yt),this.$screenRowCache.push(Jt));if(Dr&&Dr.start.row<=Yt)Gt=this.getFoldDisplayLine(Dr),Yt=Dr.start.row;else{if(Jt+Ut<=Lt||Yt>Tr)return{row:Tr,column:this.getLine(Tr).length};Gt=this.getLine(Yt),Dr=null}var Fr=0,Rr=Math.floor(Lt-Jt);if(this.$useWrapMode){var wr=this.$wrapData[Yt];wr&&(lr=wr[Rr],Rr>0&&wr.length&&(Fr=wr.indent,er=wr[Rr-1]||wr[wr.length-1],Gt=Gt.substring(er)))}return Wt!==void 0&&this.$bidiHandler.isBidiRow(Jt+Rr,Yt,Rr)&&(Ht=this.$bidiHandler.offsetToCol(Wt)),er+=this.$getStringScreenWidth(Gt,Ht-Fr)[1],this.$useWrapMode&&er>=lr&&(er=lr-1),Dr?Dr.idxToPosition(er):{row:Yt,column:er}},rr.prototype.documentToScreenPosition=function(Lt,Ht){if(typeof Ht>"u")var Wt=this.$clipPositionToDocument(Lt.row,Lt.column);else Wt=this.$clipPositionToDocument(Lt,Ht);Lt=Wt.row,Ht=Wt.column;var Gt=0,Yt=null,er=null;er=this.getFoldAt(Lt,Ht,1),er&&(Lt=er.start.row,Ht=er.start.column);var lr,Jt=0,Ut=this.$docRowCache,ir=this.$getRowCacheIndex(Ut,Lt),Cr=Ut.length;if(Cr&&ir>=0)var Jt=Ut[ir],Gt=this.$screenRowCache[ir],_r=Lt>Ut[Cr-1];else var _r=!Cr;for(var $r=this.getNextFoldLine(Jt),Tr=$r?$r.start.row:1/0;Jt<Lt;){if(Jt>=Tr){if(lr=$r.end.row+1,lr>Lt)break;$r=this.getNextFoldLine(lr,$r),Tr=$r?$r.start.row:1/0}else lr=Jt+1;Gt+=this.getRowLength(Jt),Jt=lr,_r&&(this.$docRowCache.push(Jt),this.$screenRowCache.push(Gt))}var Dr="";$r&&Jt>=Tr?(Dr=this.getFoldDisplayLine($r,Lt,Ht),Yt=$r.start.row):(Dr=this.getLine(Lt).substring(0,Ht),Yt=Lt);var Ar=0;if(this.$useWrapMode){var Fr=this.$wrapData[Yt];if(Fr){for(var Rr=0;Dr.length>=Fr[Rr];)Gt++,Rr++;Dr=Dr.substring(Fr[Rr-1]||0,Dr.length),Ar=Rr>0?Fr.indent:0}}return this.lineWidgets&&this.lineWidgets[Jt]&&this.lineWidgets[Jt].rowsAbove&&(Gt+=this.lineWidgets[Jt].rowsAbove),{row:Gt,column:Ar+this.$getStringScreenWidth(Dr)[0]}},rr.prototype.documentToScreenColumn=function(Lt,Ht){return this.documentToScreenPosition(Lt,Ht).column},rr.prototype.documentToScreenRow=function(Lt,Ht){return this.documentToScreenPosition(Lt,Ht).row},rr.prototype.getScreenLength=function(){var Lt=0,Ht=null;if(this.$useWrapMode)for(var Yt=this.$wrapData.length,er=0,Gt=0,Ht=this.$foldData[Gt++],lr=Ht?Ht.start.row:1/0;er<Yt;){var Jt=this.$wrapData[er];Lt+=Jt?Jt.length+1:1,er++,er>lr&&(er=Ht.end.row+1,Ht=this.$foldData[Gt++],lr=Ht?Ht.start.row:1/0)}else{Lt=this.getLength();for(var Wt=this.$foldData,Gt=0;Gt<Wt.length;Gt++)Ht=Wt[Gt],Lt-=Ht.end.row-Ht.start.row}return this.lineWidgets&&(Lt+=this.$getWidgetScreenLength()),Lt},rr.prototype.$setFontMetrics=function(Lt){this.$enableVarChar&&(this.$getStringScreenWidth=function(Ht,Wt,Gt){if(Wt===0)return[0,0];Wt||(Wt=1/0),Gt=Gt||0;var Yt,er;for(er=0;er<Ht.length&&(Yt=Ht.charAt(er),Yt==="	"?Gt+=this.getScreenTabSize(Gt):Gt+=Lt.getCharacterWidth(Yt),!(Gt>Wt));er++);return[Gt,er]})},rr.prototype.getPrecedingCharacter=function(){var Lt=this.selection.getCursor();if(Lt.column===0)return Lt.row===0?"":this.doc.getNewLineCharacter();var Ht=this.getLine(Lt.row);return Ht[Lt.column-1]},rr.prototype.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection.detach()},rr}();Qt.$uid=0,Qt.prototype.$modes=Ft.$modes,Qt.prototype.getValue=Qt.prototype.toString,Qt.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},Qt.prototype.$overwrite=!1,Qt.prototype.$mode=null,Qt.prototype.$modeId=null,Qt.prototype.$scrollTop=0,Qt.prototype.$scrollLeft=0,Qt.prototype.$wrapLimit=80,Qt.prototype.$useWrapMode=!1,Qt.prototype.$wrapLimitRange={min:null,max:null},Qt.prototype.lineWidgets=null,Qt.prototype.isFullWidth=xr,At.implement(Qt.prototype,kt);var Zt=1,dr=2,cr=3,Er=4,pr=9,gr=10,vr=11,yr=12;function xr(rr){return rr<4352?!1:rr>=4352&&rr<=4447||rr>=4515&&rr<=4519||rr>=4602&&rr<=4607||rr>=9001&&rr<=9002||rr>=11904&&rr<=11929||rr>=11931&&rr<=12019||rr>=12032&&rr<=12245||rr>=12272&&rr<=12283||rr>=12288&&rr<=12350||rr>=12353&&rr<=12438||rr>=12441&&rr<=12543||rr>=12549&&rr<=12589||rr>=12593&&rr<=12686||rr>=12688&&rr<=12730||rr>=12736&&rr<=12771||rr>=12784&&rr<=12830||rr>=12832&&rr<=12871||rr>=12880&&rr<=13054||rr>=13056&&rr<=19903||rr>=19968&&rr<=42124||rr>=42128&&rr<=42182||rr>=43360&&rr<=43388||rr>=44032&&rr<=55203||rr>=55216&&rr<=55238||rr>=55243&&rr<=55291||rr>=63744&&rr<=64255||rr>=65040&&rr<=65049||rr>=65072&&rr<=65106||rr>=65108&&rr<=65126||rr>=65128&&rr<=65131||rr>=65281&&rr<=65376||rr>=65504&&rr<=65510}yt("./edit_session/folding").Folding.call(Qt.prototype),yt("./edit_session/bracket_match").BracketMatch.call(Qt.prototype),Ft.defineOptions(Qt.prototype,"session",{wrap:{set:function(rr){if(!rr||rr=="off"?rr=!1:rr=="free"?rr=!0:rr=="printMargin"?rr=-1:typeof rr=="string"&&(rr=parseInt(rr,10)||!1),this.$wrap!=rr)if(this.$wrap=rr,!rr)this.setUseWrapMode(!1);else{var Lt=typeof rr=="number"?rr:null;this.setWrapLimitRange(Lt,Lt),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(rr){rr=rr=="auto"?this.$mode.type!="text":rr!="text",rr!=this.$wrapAsCode&&(this.$wrapAsCode=rr,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(rr){this.$useWorker=rr,this.$stopWorker(),rr&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(rr){rr=parseInt(rr),rr>0&&this.$tabSize!==rr&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=rr,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(rr){this.setFoldStyle(rr)},handlesSet:!0},overwrite:{set:function(rr){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(rr){this.doc.setNewLineMode(rr)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(rr){this.setMode(rr)},get:function(){return this.$modeId},handlesSet:!0}}),Ct.EditSession=Qt}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(yt,Ct,$t){var At=yt("./lib/lang"),Bt=yt("./lib/oop"),Dt=yt("./range").Range,Ft=function(){function Mt(){this.$options={}}return Mt.prototype.set=function(Nt){return Bt.mixin(this.$options,Nt),this},Mt.prototype.getOptions=function(){return At.copyObject(this.$options)},Mt.prototype.setOptions=function(Nt){this.$options=Nt},Mt.prototype.find=function(Nt){var jt=this.$options,zt=this.$matchIterator(Nt,jt);if(!zt)return!1;var Vt=null;return zt.forEach(function(Kt,Xt,Qt,Zt){return Vt=new Dt(Kt,Xt,Qt,Zt),Xt==Zt&&jt.start&&jt.start.start&&jt.skipCurrent!=!1&&Vt.isEqual(jt.start)?(Vt=null,!1):!0}),Vt},Mt.prototype.findAll=function(Nt){var jt=this.$options;if(!jt.needle)return[];this.$assembleRegExp(jt);var zt=jt.range,Vt=zt?Nt.getLines(zt.start.row,zt.end.row):Nt.doc.getAllLines(),Kt=[],Xt=jt.re;if(jt.$isMultiLine){var Qt=Xt.length,Zt=Vt.length-Qt,dr;e:for(var cr=Xt.offset||0;cr<=Zt;cr++){for(var Er=0;Er<Qt;Er++)if(Vt[cr+Er].search(Xt[Er])==-1)continue e;var pr=Vt[cr],gr=Vt[cr+Qt-1],vr=pr.length-pr.match(Xt[0])[0].length,yr=gr.match(Xt[Qt-1])[0].length;dr&&dr.end.row===cr&&dr.end.column>vr||(Kt.push(dr=new Dt(cr,vr,cr+Qt-1,yr)),Qt>2&&(cr=cr+Qt-2))}}else for(var xr=0;xr<Vt.length;xr++)for(var rr=At.getMatchOffsets(Vt[xr],Xt),Er=0;Er<rr.length;Er++){var Lt=rr[Er];Kt.push(new Dt(xr,Lt.offset,xr,Lt.offset+Lt.length))}if(zt){for(var Ht=zt.start.column,Wt=zt.end.column,xr=0,Er=Kt.length-1;xr<Er&&Kt[xr].start.column<Ht&&Kt[xr].start.row==0;)xr++;for(var Gt=zt.end.row-zt.start.row;xr<Er&&Kt[Er].end.column>Wt&&Kt[Er].end.row==Gt;)Er--;for(Kt=Kt.slice(xr,Er+1),xr=0,Er=Kt.length;xr<Er;xr++)Kt[xr].start.row+=zt.start.row,Kt[xr].end.row+=zt.start.row}return Kt},Mt.prototype.replace=function(Nt,jt){var zt=this.$options,Vt=this.$assembleRegExp(zt);if(zt.$isMultiLine)return jt;if(Vt){var Kt=Vt.exec(Nt);if(!Kt||Kt[0].length!=Nt.length)return null;if(zt.regExp||(jt=jt.replace(/\$/g,"$$$$")),jt=Nt.replace(Vt,jt),zt.preserveCase){jt=jt.split("");for(var Xt=Math.min(Nt.length,Nt.length);Xt--;){var Qt=Nt[Xt];Qt&&Qt.toLowerCase()!=Qt?jt[Xt]=jt[Xt].toUpperCase():jt[Xt]=jt[Xt].toLowerCase()}jt=jt.join("")}return jt}},Mt.prototype.$assembleRegExp=function(Nt,jt){if(Nt.needle instanceof RegExp)return Nt.re=Nt.needle;var zt=Nt.needle;if(!Nt.needle)return Nt.re=!1;Nt.regExp||(zt=At.escapeRegExp(zt));var Vt=Nt.caseSensitive?"gm":"gmi";try{new RegExp(zt,"u"),Nt.$supportsUnicodeFlag=!0,Vt+="u"}catch{Nt.$supportsUnicodeFlag=!1}if(Nt.wholeWord&&(zt=kt(zt,Nt)),Nt.$isMultiLine=!jt&&/[\n\r]/.test(zt),Nt.$isMultiLine)return Nt.re=this.$assembleMultilineRegExp(zt,Vt);try{var Kt=new RegExp(zt,Vt)}catch{Kt=!1}return Nt.re=Kt},Mt.prototype.$assembleMultilineRegExp=function(Nt,jt){for(var zt=Nt.replace(/\r\n|\r|\n/g,`$
^`).split(`
`),Vt=[],Kt=0;Kt<zt.length;Kt++)try{Vt.push(new RegExp(zt[Kt],jt))}catch{return!1}return Vt},Mt.prototype.$matchIterator=function(Nt,jt){var zt=this.$assembleRegExp(jt);if(!zt)return!1;var Vt=jt.backwards==!0,Kt=jt.skipCurrent!=!1,Xt=zt.unicode,Qt=jt.range,Zt=jt.start;Zt||(Zt=Qt?Qt[Vt?"end":"start"]:Nt.selection.getRange()),Zt.start&&(Zt=Zt[Kt!=Vt?"end":"start"]);var dr=Qt?Qt.start.row:0,cr=Qt?Qt.end.row:Nt.getLength()-1;if(Vt)var Er=function(vr){var yr=Zt.row;if(!gr(yr,Zt.column,vr)){for(yr--;yr>=dr;yr--)if(gr(yr,Number.MAX_VALUE,vr))return;if(jt.wrap!=!1){for(yr=cr,dr=Zt.row;yr>=dr;yr--)if(gr(yr,Number.MAX_VALUE,vr))return}}};else var Er=function(yr){var xr=Zt.row;if(!gr(xr,Zt.column,yr)){for(xr=xr+1;xr<=cr;xr++)if(gr(xr,0,yr))return;if(jt.wrap!=!1){for(xr=dr,cr=Zt.row;xr<=cr;xr++)if(gr(xr,0,yr))return}}};if(jt.$isMultiLine)var pr=zt.length,gr=function(vr,yr,xr){var rr=Vt?vr-pr+1:vr;if(!(rr<0||rr+pr>Nt.getLength())){var Lt=Nt.getLine(rr),Ht=Lt.search(zt[0]);if(!(!Vt&&Ht<yr||Ht===-1)){for(var Wt=1;Wt<pr;Wt++)if(Lt=Nt.getLine(rr+Wt),Lt.search(zt[Wt])==-1)return;var Gt=Lt.match(zt[pr-1])[0].length;if(!(Vt&&Gt>yr)&&xr(rr,Ht,rr+pr-1,Gt))return!0}}};else if(Vt)var gr=function(yr,xr,rr){var Lt=Nt.getLine(yr),Ht=[],Wt,Gt=0;for(zt.lastIndex=0;Wt=zt.exec(Lt);){var Yt=Wt[0].length;if(Gt=Wt.index,!Yt){if(Gt>=Lt.length)break;zt.lastIndex=Gt+=At.skipEmptyMatch(Lt,Gt,Xt)}if(Wt.index+Yt>xr)break;Ht.push(Wt.index,Yt)}for(var er=Ht.length-1;er>=0;er-=2){var lr=Ht[er-1],Yt=Ht[er];if(rr(yr,lr,yr,lr+Yt))return!0}};else var gr=function(yr,xr,rr){var Lt=Nt.getLine(yr),Ht,Wt;for(zt.lastIndex=xr;Wt=zt.exec(Lt);){var Gt=Wt[0].length;if(Ht=Wt.index,rr(yr,Ht,yr,Ht+Gt))return!0;if(!Gt&&(zt.lastIndex=Ht+=At.skipEmptyMatch(Lt,Ht,Xt),Ht>=Lt.length))return!1}};return{forEach:Er}},Mt}();function kt(Mt,Nt){var jt=At.supportsLookbehind();function zt(Qt,Zt){Zt===void 0&&(Zt=!0);var dr=jt&&Nt.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return dr.test(Qt)||Nt.regExp?jt&&Nt.$supportsUnicodeFlag?Zt?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var Vt=Array.from(Mt),Kt=Vt[0],Xt=Vt[Vt.length-1];return zt(Kt)+Mt+zt(Xt,!1)}Ct.Search=Ft}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(yt,Ct,$t){var At=this&&this.__extends||function(){var jt=function(zt,Vt){return jt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Kt,Xt){Kt.__proto__=Xt}||function(Kt,Xt){for(var Qt in Xt)Object.prototype.hasOwnProperty.call(Xt,Qt)&&(Kt[Qt]=Xt[Qt])},jt(zt,Vt)};return function(zt,Vt){if(typeof Vt!="function"&&Vt!==null)throw new TypeError("Class extends value "+String(Vt)+" is not a constructor or null");jt(zt,Vt);function Kt(){this.constructor=zt}zt.prototype=Vt===null?Object.create(Vt):(Kt.prototype=Vt.prototype,new Kt)}}(),Bt=yt("../lib/keys"),Dt=yt("../lib/useragent"),Ft=Bt.KEY_MODS,kt=function(){function jt(zt,Vt){this.$init(zt,Vt,!1)}return jt.prototype.$init=function(zt,Vt,Kt){this.platform=Vt||(Dt.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(zt),this.$singleCommand=Kt},jt.prototype.addCommand=function(zt){this.commands[zt.name]&&this.removeCommand(zt),this.commands[zt.name]=zt,zt.bindKey&&this._buildKeyHash(zt)},jt.prototype.removeCommand=function(zt,Vt){var Kt=zt&&(typeof zt=="string"?zt:zt.name);zt=this.commands[Kt],Vt||delete this.commands[Kt];var Xt=this.commandKeyBinding;for(var Qt in Xt){var Zt=Xt[Qt];if(Zt==zt)delete Xt[Qt];else if(Array.isArray(Zt)){var dr=Zt.indexOf(zt);dr!=-1&&(Zt.splice(dr,1),Zt.length==1&&(Xt[Qt]=Zt[0]))}}},jt.prototype.bindKey=function(zt,Vt,Kt){if(typeof zt=="object"&&zt&&(Kt==null&&(Kt=zt.position),zt=zt[this.platform]),!!zt){if(typeof Vt=="function")return this.addCommand({exec:Vt,bindKey:zt,name:Vt.name||zt});zt.split("|").forEach(function(Xt){var Qt="";if(Xt.indexOf(" ")!=-1){var Zt=Xt.split(/\s+/);Xt=Zt.pop(),Zt.forEach(function(Er){var pr=this.parseKeys(Er),gr=Ft[pr.hashId]+pr.key;Qt+=(Qt?" ":"")+gr,this._addCommandToBinding(Qt,"chainKeys")},this),Qt+=" "}var dr=this.parseKeys(Xt),cr=Ft[dr.hashId]+dr.key;this._addCommandToBinding(Qt+cr,Vt,Kt)},this)}},jt.prototype._addCommandToBinding=function(zt,Vt,Kt){var Xt=this.commandKeyBinding,Qt;if(!Vt)delete Xt[zt];else if(!Xt[zt]||this.$singleCommand)Xt[zt]=Vt;else{Array.isArray(Xt[zt])?(Qt=Xt[zt].indexOf(Vt))!=-1&&Xt[zt].splice(Qt,1):Xt[zt]=[Xt[zt]],typeof Kt!="number"&&(Kt=Mt(Vt));var Zt=Xt[zt];for(Qt=0;Qt<Zt.length;Qt++){var dr=Zt[Qt],cr=Mt(dr);if(cr>Kt)break}Zt.splice(Qt,0,Vt)}},jt.prototype.addCommands=function(zt){zt&&Object.keys(zt).forEach(function(Vt){var Kt=zt[Vt];if(Kt){if(typeof Kt=="string")return this.bindKey(Kt,Vt);typeof Kt=="function"&&(Kt={exec:Kt}),typeof Kt=="object"&&(Kt.name||(Kt.name=Vt),this.addCommand(Kt))}},this)},jt.prototype.removeCommands=function(zt){Object.keys(zt).forEach(function(Vt){this.removeCommand(zt[Vt])},this)},jt.prototype.bindKeys=function(zt){Object.keys(zt).forEach(function(Vt){this.bindKey(Vt,zt[Vt])},this)},jt.prototype._buildKeyHash=function(zt){this.bindKey(zt.bindKey,zt)},jt.prototype.parseKeys=function(zt){var Vt=zt.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(cr){return cr}),Kt=Vt.pop(),Xt=Bt[Kt];if(Bt.FUNCTION_KEYS[Xt])Kt=Bt.FUNCTION_KEYS[Xt].toLowerCase();else if(Vt.length){if(Vt.length==1&&Vt[0]=="shift")return{key:Kt.toUpperCase(),hashId:-1}}else return{key:Kt,hashId:-1};for(var Qt=0,Zt=Vt.length;Zt--;){var dr=Bt.KEY_MODS[Vt[Zt]];if(dr==null)return typeof console<"u"&&console.error("invalid modifier "+Vt[Zt]+" in "+zt),!1;Qt|=dr}return{key:Kt,hashId:Qt}},jt.prototype.findKeyCommand=function(zt,Vt){var Kt=Ft[zt]+Vt;return this.commandKeyBinding[Kt]},jt.prototype.handleKeyboard=function(zt,Vt,Kt,Xt){if(!(Xt<0)){var Qt=Ft[Vt]+Kt,Zt=this.commandKeyBinding[Qt];return zt.$keyChain&&(zt.$keyChain+=" "+Qt,Zt=this.commandKeyBinding[zt.$keyChain]||Zt),Zt&&(Zt=="chainKeys"||Zt[Zt.length-1]=="chainKeys")?(zt.$keyChain=zt.$keyChain||Qt,{command:"null"}):(zt.$keyChain&&((!Vt||Vt==4)&&Kt.length==1?zt.$keyChain=zt.$keyChain.slice(0,-Qt.length-1):(Vt==-1||Xt>0)&&(zt.$keyChain="")),{command:Zt})}},jt.prototype.getStatusText=function(zt,Vt){return Vt.$keyChain||""},jt}();function Mt(jt){return typeof jt=="object"&&jt.bindKey&&jt.bindKey.position||(jt.isDefault?-100:0)}var Nt=function(jt){At(zt,jt);function zt(Vt,Kt){var Xt=jt.call(this,Vt,Kt)||this;return Xt.$singleCommand=!0,Xt}return zt}(kt);Nt.call=function(jt,zt,Vt){kt.prototype.$init.call(jt,zt,Vt,!0)},kt.call=function(jt,zt,Vt){kt.prototype.$init.call(jt,zt,Vt,!1)},Ct.HashHandler=Nt,Ct.MultiHashHandler=kt}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(yt,Ct,$t){var At=this&&this.__extends||function(){var Mt=function(Nt,jt){return Mt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(zt,Vt){zt.__proto__=Vt}||function(zt,Vt){for(var Kt in Vt)Object.prototype.hasOwnProperty.call(Vt,Kt)&&(zt[Kt]=Vt[Kt])},Mt(Nt,jt)};return function(Nt,jt){if(typeof jt!="function"&&jt!==null)throw new TypeError("Class extends value "+String(jt)+" is not a constructor or null");Mt(Nt,jt);function zt(){this.constructor=Nt}Nt.prototype=jt===null?Object.create(jt):(zt.prototype=jt.prototype,new zt)}}(),Bt=yt("../lib/oop"),Dt=yt("../keyboard/hash_handler").MultiHashHandler,Ft=yt("../lib/event_emitter").EventEmitter,kt=function(Mt){At(Nt,Mt);function Nt(jt,zt){var Vt=Mt.call(this,zt,jt)||this;return Vt.byName=Vt.commands,Vt.setDefaultHandler("exec",function(Kt){return Kt.args?Kt.command.exec(Kt.editor,Kt.args,Kt.event,!1):Kt.command.exec(Kt.editor,{},Kt.event,!0)}),Vt}return Nt.prototype.exec=function(jt,zt,Vt){if(Array.isArray(jt)){for(var Kt=jt.length;Kt--;)if(this.exec(jt[Kt],zt,Vt))return!0;return!1}if(typeof jt=="string"&&(jt=this.commands[jt]),!this.canExecute(jt,zt))return!1;var Xt={editor:zt,command:jt,args:Vt};return Xt.returnValue=this._emit("exec",Xt),this._signal("afterExec",Xt),Xt.returnValue!==!1},Nt.prototype.canExecute=function(jt,zt){return typeof jt=="string"&&(jt=this.commands[jt]),!(!jt||zt&&zt.$readOnly&&!jt.readOnly||this.$checkCommandState!=!1&&jt.isAvailable&&!jt.isAvailable(zt))},Nt.prototype.toggleRecording=function(jt){if(!this.$inReplay)return jt&&jt._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=(function(zt){this.macro.push([zt.command,zt.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},Nt.prototype.replay=function(jt){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(jt);try{this.$inReplay=!0,this.macro.forEach(function(zt){typeof zt=="string"?this.exec(zt,jt):this.exec(zt[0],jt,zt[1])},this)}finally{this.$inReplay=!1}}},Nt.prototype.trimMacro=function(jt){return jt.map(function(zt){return typeof zt[0]!="string"&&(zt[0]=zt[0].name),zt[1]||(zt=zt[0]),zt})},Nt}(Dt);Bt.implement(kt.prototype,Ft),Ct.CommandManager=kt}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(yt,Ct,$t){var At=yt("../lib/lang"),Bt=yt("../config"),Dt=yt("../range").Range;function Ft(Mt,Nt){return{win:Mt,mac:Nt}}Ct.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:Ft("Ctrl-,","Command-,"),exec:function(Mt){Bt.loadModule("ace/ext/settings_menu",function(Nt){Nt.init(Mt),Mt.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:Ft("Alt-E","F4"),exec:function(Mt){Bt.loadModule("ace/ext/error_marker",function(Nt){Nt.showErrorMarker(Mt,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:Ft("Alt-Shift-E","Shift-F4"),exec:function(Mt){Bt.loadModule("ace/ext/error_marker",function(Nt){Nt.showErrorMarker(Mt,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:Ft("Ctrl-A","Command-A"),exec:function(Mt){Mt.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:Ft(null,"Ctrl-L"),exec:function(Mt){Mt.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:Ft("Ctrl-L","Command-L"),exec:function(Mt,Nt){typeof Nt=="number"&&!isNaN(Nt)&&Mt.gotoLine(Nt),Mt.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:Ft("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(Mt){Mt.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:Ft("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(Mt){Mt.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:Ft("F2","F2"),exec:function(Mt){Mt.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:Ft("Alt-F2","Alt-F2"),exec:function(Mt){Mt.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:Ft(null,"Ctrl-Command-Option-0"),exec:function(Mt){Mt.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:Ft(null,"Ctrl-Command-Option-0"),exec:function(Mt){Mt.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:Ft("Alt-0","Command-Option-0"),exec:function(Mt){Mt.session.foldAll(),Mt.session.unfold(Mt.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:Ft("Alt-Shift-0","Command-Option-Shift-0"),exec:function(Mt){Mt.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:Ft("Ctrl-K","Command-G"),exec:function(Mt){Mt.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:Ft("Ctrl-Shift-K","Command-Shift-G"),exec:function(Mt){Mt.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:Ft("Alt-K","Ctrl-G"),exec:function(Mt){Mt.selection.isEmpty()?Mt.selection.selectWord():Mt.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:Ft("Alt-Shift-K","Ctrl-Shift-G"),exec:function(Mt){Mt.selection.isEmpty()?Mt.selection.selectWord():Mt.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:Ft("Ctrl-F","Command-F"),exec:function(Mt){Bt.loadModule("ace/ext/searchbox",function(Nt){Nt.Search(Mt)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(Mt){Mt.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:Ft("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(Mt){Mt.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:Ft("Ctrl-Home","Command-Home|Command-Up"),exec:function(Mt){Mt.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:Ft("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(Mt){Mt.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:Ft("Up","Up|Ctrl-P"),exec:function(Mt,Nt){Mt.navigateUp(Nt.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:Ft("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(Mt){Mt.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:Ft("Ctrl-End","Command-End|Command-Down"),exec:function(Mt){Mt.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:Ft("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(Mt){Mt.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:Ft("Down","Down|Ctrl-N"),exec:function(Mt,Nt){Mt.navigateDown(Nt.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:Ft("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(Mt){Mt.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:Ft("Ctrl-Left","Option-Left"),exec:function(Mt){Mt.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:Ft("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(Mt){Mt.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:Ft("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(Mt){Mt.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:Ft("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(Mt){Mt.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:Ft("Left","Left|Ctrl-B"),exec:function(Mt,Nt){Mt.navigateLeft(Nt.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:Ft("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(Mt){Mt.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:Ft("Ctrl-Right","Option-Right"),exec:function(Mt){Mt.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:Ft("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(Mt){Mt.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:Ft("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(Mt){Mt.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:Ft("Shift-Right","Shift-Right"),exec:function(Mt){Mt.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:Ft("Right","Right|Ctrl-F"),exec:function(Mt,Nt){Mt.navigateRight(Nt.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(Mt){Mt.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:Ft(null,"Option-PageDown"),exec:function(Mt){Mt.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:Ft("PageDown","PageDown|Ctrl-V"),exec:function(Mt){Mt.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(Mt){Mt.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:Ft(null,"Option-PageUp"),exec:function(Mt){Mt.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(Mt){Mt.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:Ft("Ctrl-Up",null),exec:function(Mt){Mt.renderer.scrollBy(0,-2*Mt.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:Ft("Ctrl-Down",null),exec:function(Mt){Mt.renderer.scrollBy(0,2*Mt.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(Mt){Mt.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(Mt){Mt.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:Ft("Ctrl-Alt-E","Command-Option-E"),exec:function(Mt){Mt.commands.toggleRecording(Mt)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:Ft("Ctrl-Shift-E","Command-Shift-E"),exec:function(Mt){Mt.commands.replay(Mt)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:Ft("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(Mt){Mt.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:Ft("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(Mt){Mt.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:Ft("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(Mt){Mt.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:Ft(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(Mt){},readOnly:!0},{name:"cut",description:"Cut",exec:function(Mt){var Nt=Mt.$copyWithEmptySelection&&Mt.selection.isEmpty(),jt=Nt?Mt.selection.getLineRange():Mt.selection.getRange();Mt._emit("cut",jt),jt.isEmpty()||Mt.session.remove(jt),Mt.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(Mt,Nt){Mt.$handlePaste(Nt)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:Ft("Ctrl-D","Command-D"),exec:function(Mt){Mt.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:Ft("Ctrl-Shift-D","Command-Shift-D"),exec:function(Mt){Mt.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:Ft("Ctrl-Alt-S","Command-Alt-S"),exec:function(Mt){Mt.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:Ft("Ctrl-/","Command-/"),exec:function(Mt){Mt.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:Ft("Ctrl-Shift-/","Command-Shift-/"),exec:function(Mt){Mt.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:Ft("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(Mt){Mt.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:Ft("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(Mt){Mt.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:Ft("Ctrl-H","Command-Option-F"),exec:function(Mt){Bt.loadModule("ace/ext/searchbox",function(Nt){Nt.Search(Mt,!0)})}},{name:"undo",description:"Undo",bindKey:Ft("Ctrl-Z","Command-Z"),exec:function(Mt){Mt.undo()}},{name:"redo",description:"Redo",bindKey:Ft("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(Mt){Mt.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:Ft("Alt-Shift-Up","Command-Option-Up"),exec:function(Mt){Mt.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:Ft("Alt-Up","Option-Up"),exec:function(Mt){Mt.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:Ft("Alt-Shift-Down","Command-Option-Down"),exec:function(Mt){Mt.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:Ft("Alt-Down","Option-Down"),exec:function(Mt){Mt.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:Ft("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(Mt){Mt.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:Ft("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(Mt){Mt.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:Ft("Shift-Delete",null),exec:function(Mt){if(Mt.selection.isEmpty())Mt.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:Ft("Alt-Backspace","Command-Backspace"),exec:function(Mt){Mt.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:Ft("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(Mt){Mt.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:Ft("Ctrl-Shift-Backspace",null),exec:function(Mt){var Nt=Mt.selection.getRange();Nt.start.column=0,Mt.session.remove(Nt)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:Ft("Ctrl-Shift-Delete",null),exec:function(Mt){var Nt=Mt.selection.getRange();Nt.end.column=Number.MAX_VALUE,Mt.session.remove(Nt)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:Ft("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(Mt){Mt.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:Ft("Ctrl-Delete","Alt-Delete"),exec:function(Mt){Mt.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:Ft("Shift-Tab","Shift-Tab"),exec:function(Mt){Mt.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:Ft("Tab","Tab"),exec:function(Mt){Mt.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:Ft("Ctrl-[","Ctrl-["),exec:function(Mt){Mt.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:Ft("Ctrl-]","Ctrl-]"),exec:function(Mt){Mt.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(Mt,Nt){Mt.insert(Nt)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(Mt,Nt){Mt.insert(At.stringRepeat(Nt.text||"",Nt.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:Ft(null,"Ctrl-O"),exec:function(Mt){Mt.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:Ft("Alt-Shift-X","Ctrl-T"),exec:function(Mt){Mt.transposeLetters()},multiSelectAction:function(Mt){Mt.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:Ft("Ctrl-U","Ctrl-U"),exec:function(Mt){Mt.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:Ft("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(Mt){Mt.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:Ft(null,null),exec:function(Mt){Mt.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:Ft("Ctrl-Shift-L","Command-Shift-L"),exec:function(Mt){var Nt=Mt.selection.getRange();Nt.start.column=Nt.end.column=0,Nt.end.row++,Mt.selection.setRange(Nt,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:Ft("Ctrl+F3","F3"),exec:function(Mt){Mt.openLink()}},{name:"joinlines",description:"Join lines",bindKey:Ft(null,null),exec:function(Mt){for(var Nt=Mt.selection.isBackwards(),jt=Nt?Mt.selection.getSelectionLead():Mt.selection.getSelectionAnchor(),zt=Nt?Mt.selection.getSelectionAnchor():Mt.selection.getSelectionLead(),Vt=Mt.session.doc.getLine(jt.row).length,Kt=Mt.session.doc.getTextRange(Mt.selection.getRange()),Xt=Kt.replace(/\n\s*/," ").length,Qt=Mt.session.doc.getLine(jt.row),Zt=jt.row+1;Zt<=zt.row+1;Zt++){var dr=At.stringTrimLeft(At.stringTrimRight(Mt.session.doc.getLine(Zt)));dr.length!==0&&(dr=" "+dr),Qt+=dr}zt.row+1<Mt.session.doc.getLength()-1&&(Qt+=Mt.session.doc.getNewLineCharacter()),Mt.clearSelection(),Mt.session.doc.replace(new Dt(jt.row,0,zt.row+2,0),Qt),Xt>0?(Mt.selection.moveCursorTo(jt.row,jt.column),Mt.selection.selectTo(jt.row,jt.column+Xt)):(Vt=Mt.session.doc.getLine(jt.row).length>Vt?Vt+1:Vt,Mt.selection.moveCursorTo(jt.row,Vt))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:Ft(null,null),exec:function(Mt){var Nt=Mt.session.doc.getLength()-1,jt=Mt.session.doc.getLine(Nt).length,zt=Mt.selection.rangeList.ranges,Vt=[];zt.length<1&&(zt=[Mt.selection.getRange()]);for(var Kt=0;Kt<zt.length;Kt++)Kt==zt.length-1&&(zt[Kt].end.row===Nt&&zt[Kt].end.column===jt||Vt.push(new Dt(zt[Kt].end.row,zt[Kt].end.column,Nt,jt))),Kt===0?zt[Kt].start.row===0&&zt[Kt].start.column===0||Vt.push(new Dt(0,0,zt[Kt].start.row,zt[Kt].start.column)):Vt.push(new Dt(zt[Kt-1].end.row,zt[Kt-1].end.column,zt[Kt].start.row,zt[Kt].start.column));Mt.exitMultiSelectMode(),Mt.clearSelection();for(var Kt=0;Kt<Vt.length;Kt++)Mt.selection.addRange(Vt[Kt],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(Mt){Mt.selection.clearSelection(),Mt.navigateLineEnd(),Mt.insert(`
`)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(Mt){Mt.selection.clearSelection();var Nt=Mt.getCursorPosition();Mt.selection.moveTo(Nt.row-1,Number.MAX_VALUE),Mt.insert(`
`),Nt.row===0&&Mt.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(Mt){console.warn("This is an obsolete command. Please use `openCommandPalette` instead."),Mt.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:Ft("F1","F1"),exec:function(Mt){Mt.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:Ft(null,null),exec:function(Mt){Mt.prompt({$type:"modes"})},readOnly:!0}];for(var kt=1;kt<9;kt++)Ct.commands.push({name:"foldToLevel"+kt,description:"Fold To Level "+kt,level:kt,exec:function(Mt){Mt.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(yt,Ct,$t){var At=yt("./lib/dom"),Bt=function(){function Dt(Ft){this.session=Ft,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}return Dt.prototype.getRowLength=function(Ft){var kt;return this.lineWidgets?kt=this.lineWidgets[Ft]&&this.lineWidgets[Ft].rowCount||0:kt=0,!this.$useWrapMode||!this.$wrapData[Ft]?1+kt:this.$wrapData[Ft].length+1+kt},Dt.prototype.$getWidgetScreenLength=function(){var Ft=0;return this.lineWidgets.forEach(function(kt){kt&&kt.rowCount&&!kt.hidden&&(Ft+=kt.rowCount)}),Ft},Dt.prototype.$onChangeEditor=function(Ft){this.attach(Ft.editor)},Dt.prototype.attach=function(Ft){Ft&&Ft.widgetManager&&Ft.widgetManager!=this&&Ft.widgetManager.detach(),this.editor!=Ft&&(this.detach(),this.editor=Ft,Ft&&(Ft.widgetManager=this,Ft.renderer.on("beforeRender",this.measureWidgets),Ft.renderer.on("afterRender",this.renderWidgets)))},Dt.prototype.detach=function(Ft){var kt=this.editor;if(kt){this.editor=null,kt.widgetManager=null,kt.renderer.off("beforeRender",this.measureWidgets),kt.renderer.off("afterRender",this.renderWidgets);var Mt=this.session.lineWidgets;Mt&&Mt.forEach(function(Nt){Nt&&Nt.el&&Nt.el.parentNode&&(Nt._inDocument=!1,Nt.el.parentNode.removeChild(Nt.el))})}},Dt.prototype.updateOnFold=function(Ft,kt){var Mt=kt.lineWidgets;if(!(!Mt||!Ft.action)){for(var Nt=Ft.data,jt=Nt.start.row,zt=Nt.end.row,Vt=Ft.action=="add",Kt=jt+1;Kt<zt;Kt++)Mt[Kt]&&(Mt[Kt].hidden=Vt);Mt[zt]&&(Vt?Mt[jt]?Mt[zt].hidden=Vt:Mt[jt]=Mt[zt]:(Mt[jt]==Mt[zt]&&(Mt[jt]=void 0),Mt[zt].hidden=Vt))}},Dt.prototype.updateOnChange=function(Ft){var kt=this.session.lineWidgets;if(kt){var Mt=Ft.start.row,Nt=Ft.end.row-Mt;if(Nt!==0)if(Ft.action=="remove"){var jt=kt.splice(Mt+1,Nt);!kt[Mt]&&jt[jt.length-1]&&(kt[Mt]=jt.pop()),jt.forEach(function(Vt){Vt&&this.removeLineWidget(Vt)},this),this.$updateRows()}else{var zt=new Array(Nt);kt[Mt]&&kt[Mt].column!=null&&Ft.start.column>kt[Mt].column&&Mt++,zt.unshift(Mt,0),kt.splice.apply(kt,zt),this.$updateRows()}}},Dt.prototype.$updateRows=function(){var Ft=this.session.lineWidgets;if(Ft){var kt=!0;Ft.forEach(function(Mt,Nt){if(Mt)for(kt=!1,Mt.row=Nt;Mt.$oldWidget;)Mt.$oldWidget.row=Nt,Mt=Mt.$oldWidget}),kt&&(this.session.lineWidgets=null)}},Dt.prototype.$registerLineWidget=function(Ft){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var kt=this.session.lineWidgets[Ft.row];return kt&&(Ft.$oldWidget=kt,kt.el&&kt.el.parentNode&&(kt.el.parentNode.removeChild(kt.el),kt._inDocument=!1)),this.session.lineWidgets[Ft.row]=Ft,Ft},Dt.prototype.addLineWidget=function(Ft){if(this.$registerLineWidget(Ft),Ft.session=this.session,!this.editor)return Ft;var kt=this.editor.renderer;Ft.html&&!Ft.el&&(Ft.el=At.createElement("div"),Ft.el.innerHTML=Ft.html),Ft.text&&!Ft.el&&(Ft.el=At.createElement("div"),Ft.el.textContent=Ft.text),Ft.el&&(At.addCssClass(Ft.el,"ace_lineWidgetContainer"),Ft.className&&At.addCssClass(Ft.el,Ft.className),Ft.el.style.position="absolute",Ft.el.style.zIndex="5",kt.container.appendChild(Ft.el),Ft._inDocument=!0,Ft.coverGutter||(Ft.el.style.zIndex="3"),Ft.pixelHeight==null&&(Ft.pixelHeight=Ft.el.offsetHeight)),Ft.rowCount==null&&(Ft.rowCount=Ft.pixelHeight/kt.layerConfig.lineHeight);var Mt=this.session.getFoldAt(Ft.row,0);if(Ft.$fold=Mt,Mt){var Nt=this.session.lineWidgets;Ft.row==Mt.end.row&&!Nt[Mt.start.row]?Nt[Mt.start.row]=Ft:Ft.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:Ft.row}}}),this.$updateRows(),this.renderWidgets(null,kt),this.onWidgetChanged(Ft),Ft},Dt.prototype.removeLineWidget=function(Ft){if(Ft._inDocument=!1,Ft.session=null,Ft.el&&Ft.el.parentNode&&Ft.el.parentNode.removeChild(Ft.el),Ft.editor&&Ft.editor.destroy)try{Ft.editor.destroy()}catch{}if(this.session.lineWidgets){var kt=this.session.lineWidgets[Ft.row];if(kt==Ft)this.session.lineWidgets[Ft.row]=Ft.$oldWidget,Ft.$oldWidget&&this.onWidgetChanged(Ft.$oldWidget);else for(;kt;){if(kt.$oldWidget==Ft){kt.$oldWidget=Ft.$oldWidget;break}kt=kt.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:Ft.row}}}),this.$updateRows()},Dt.prototype.getWidgetsAtRow=function(Ft){for(var kt=this.session.lineWidgets,Mt=kt&&kt[Ft],Nt=[];Mt;)Nt.push(Mt),Mt=Mt.$oldWidget;return Nt},Dt.prototype.onWidgetChanged=function(Ft){this.session._changedWidgets.push(Ft),this.editor&&this.editor.renderer.updateFull()},Dt.prototype.measureWidgets=function(Ft,kt){var Mt=this.session._changedWidgets,Nt=kt.layerConfig;if(!(!Mt||!Mt.length)){for(var jt=1/0,zt=0;zt<Mt.length;zt++){var Vt=Mt[zt];if(!(!Vt||!Vt.el)&&Vt.session==this.session){if(!Vt._inDocument){if(this.session.lineWidgets[Vt.row]!=Vt)continue;Vt._inDocument=!0,kt.container.appendChild(Vt.el)}Vt.h=Vt.el.offsetHeight,Vt.fixedWidth||(Vt.w=Vt.el.offsetWidth,Vt.screenWidth=Math.ceil(Vt.w/Nt.characterWidth));var Kt=Vt.h/Nt.lineHeight;Vt.coverLine&&(Kt-=this.session.getRowLineCount(Vt.row),Kt<0&&(Kt=0)),Vt.rowCount!=Kt&&(Vt.rowCount=Kt,Vt.row<jt&&(jt=Vt.row))}}jt!=1/0&&(this.session._emit("changeFold",{data:{start:{row:jt}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},Dt.prototype.renderWidgets=function(Ft,kt){var Mt=kt.layerConfig,Nt=this.session.lineWidgets;if(Nt){for(var jt=Math.min(this.firstRow,Mt.firstRow),zt=Math.max(this.lastRow,Mt.lastRow,Nt.length);jt>0&&!Nt[jt];)jt--;this.firstRow=Mt.firstRow,this.lastRow=Mt.lastRow,kt.$cursorLayer.config=Mt;for(var Vt=jt;Vt<=zt;Vt++){var Kt=Nt[Vt];if(!(!Kt||!Kt.el)){if(Kt.hidden){Kt.el.style.top=-100-(Kt.pixelHeight||0)+"px";continue}Kt._inDocument||(Kt._inDocument=!0,kt.container.appendChild(Kt.el));var Xt=kt.$cursorLayer.getPixelPosition({row:Vt,column:0},!0).top;Kt.coverLine||(Xt+=Mt.lineHeight*this.session.getRowLineCount(Kt.row)),Kt.el.style.top=Xt-Mt.offset+"px";var Qt=Kt.coverGutter?0:kt.gutterWidth;Kt.fixedWidth||(Qt-=kt.scrollLeft),Kt.el.style.left=Qt+"px",Kt.fullWidth&&Kt.screenWidth&&(Kt.el.style.minWidth=Mt.width+2*Mt.padding+"px"),Kt.fixedWidth?Kt.el.style.right=kt.scrollBar.getWidth()+"px":Kt.el.style.right=""}}}},Dt}();Ct.LineWidgets=Bt}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],function(yt,Ct,$t){var At=yt("../lib/keys"),Bt=yt("../mouse/default_gutter_handler").GutterTooltip,Dt=function(){function kt(Mt){this.editor=Mt,this.gutterLayer=Mt.renderer.$gutterLayer,this.element=Mt.renderer.$gutter,this.lines=Mt.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new Bt(this.editor)}return kt.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},kt.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},kt.prototype.$onGutterKeyDown=function(Mt){if(this.annotationTooltip.isOpen){Mt.preventDefault(),Mt.keyCode===At.escape&&this.annotationTooltip.hideTooltip();return}if(Mt.target===this.element){if(Mt.keyCode!=At.enter)return;Mt.preventDefault();var Nt=this.editor.getCursorPosition().row;this.editor.isRowVisible(Nt)||this.editor.scrollToLine(Nt,!0,!0),setTimeout((function(){var jt=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),zt=this.$findNearestFoldWidget(jt),Vt=this.$findNearestAnnotation(jt);if(!(zt===null&&Vt===null)){if(zt===null&&Vt!==null){this.activeRowIndex=Vt,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}if(zt!==null&&Vt===null){this.activeRowIndex=zt,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}if(Math.abs(Vt-jt)<Math.abs(zt-jt)){this.activeRowIndex=Vt,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}else{this.activeRowIndex=zt,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}}}).bind(this),10);return}this.$handleGutterKeyboardInteraction(Mt),setTimeout((function(){this.editor._signal("gutterkeydown",new Ft(Mt,this))}).bind(this),10)},kt.prototype.$handleGutterKeyboardInteraction=function(Mt){if(Mt.keyCode===At.tab){Mt.preventDefault();return}if(Mt.keyCode===At.escape){Mt.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;return}if(Mt.keyCode===At.up){switch(Mt.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp();break}return}if(Mt.keyCode===At.down){switch(Mt.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown();break}return}if(Mt.keyCode===At.left){Mt.preventDefault(),this.$switchLane("annotation");return}if(Mt.keyCode===At.right){Mt.preventDefault(),this.$switchLane("fold");return}if(Mt.keyCode===At.enter||Mt.keyCode===At.space){switch(Mt.preventDefault(),this.activeLane){case"fold":if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="start"){var Nt=this.$rowIndexToRow(this.activeRowIndex);this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),Mt),setTimeout((function(){this.$rowIndexToRow(this.activeRowIndex)!==Nt&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(Nt),this.$focusFoldWidget(this.activeRowIndex))}).bind(this),10);break}else if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="end")break;return;case"annotation":var jt=this.lines.cells[this.activeRowIndex].element.childNodes[2],zt=jt.getBoundingClientRect(),Vt=this.annotationTooltip.getElement().style;Vt.left=zt.right+"px",Vt.top=zt.bottom+"px",this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex));break}return}},kt.prototype.$blurGutter=function(){if(this.activeRowIndex!==null)switch(this.activeLane){case"fold":this.$blurFoldWidget(this.activeRowIndex);break;case"annotation":this.$blurAnnotation(this.activeRowIndex);break}this.annotationTooltip.isOpen&&this.annotationTooltip.hideTooltip()},kt.prototype.$isFoldWidgetVisible=function(Mt){var Nt=this.editor.isRowFullyVisible(this.$rowIndexToRow(Mt)),jt=this.$getFoldWidget(Mt).style.display!=="none";return Nt&&jt},kt.prototype.$isAnnotationVisible=function(Mt){var Nt=this.editor.isRowFullyVisible(this.$rowIndexToRow(Mt)),jt=this.$getAnnotation(Mt).style.display!=="none";return Nt&&jt},kt.prototype.$getFoldWidget=function(Mt){var Nt=this.lines.get(Mt),jt=Nt.element;return jt.childNodes[1]},kt.prototype.$getAnnotation=function(Mt){var Nt=this.lines.get(Mt),jt=Nt.element;return jt.childNodes[2]},kt.prototype.$findNearestFoldWidget=function(Mt){if(this.$isFoldWidgetVisible(Mt))return Mt;for(var Nt=0;Mt-Nt>0||Mt+Nt<this.lines.getLength()-1;){if(Nt++,Mt-Nt>=0&&this.$isFoldWidgetVisible(Mt-Nt))return Mt-Nt;if(Mt+Nt<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(Mt+Nt))return Mt+Nt}return null},kt.prototype.$findNearestAnnotation=function(Mt){if(this.$isAnnotationVisible(Mt))return Mt;for(var Nt=0;Mt-Nt>0||Mt+Nt<this.lines.getLength()-1;){if(Nt++,Mt-Nt>=0&&this.$isAnnotationVisible(Mt-Nt))return Mt-Nt;if(Mt+Nt<=this.lines.getLength()-1&&this.$isAnnotationVisible(Mt+Nt))return Mt+Nt}return null},kt.prototype.$focusFoldWidget=function(Mt){if(Mt!=null){var Nt=this.$getFoldWidget(Mt);Nt.classList.add(this.editor.renderer.keyboardFocusClassName),Nt.focus()}},kt.prototype.$focusAnnotation=function(Mt){if(Mt!=null){var Nt=this.$getAnnotation(Mt);Nt.classList.add(this.editor.renderer.keyboardFocusClassName),Nt.focus()}},kt.prototype.$blurFoldWidget=function(Mt){var Nt=this.$getFoldWidget(Mt);Nt.classList.remove(this.editor.renderer.keyboardFocusClassName),Nt.blur()},kt.prototype.$blurAnnotation=function(Mt){var Nt=this.$getAnnotation(Mt);Nt.classList.remove(this.editor.renderer.keyboardFocusClassName),Nt.blur()},kt.prototype.$moveFoldWidgetUp=function(){for(var Mt=this.activeRowIndex;Mt>0;)if(Mt--,this.$isFoldWidgetVisible(Mt)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=Mt,this.$focusFoldWidget(this.activeRowIndex);return}},kt.prototype.$moveFoldWidgetDown=function(){for(var Mt=this.activeRowIndex;Mt<this.lines.getLength()-1;)if(Mt++,this.$isFoldWidgetVisible(Mt)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=Mt,this.$focusFoldWidget(this.activeRowIndex);return}},kt.prototype.$moveAnnotationUp=function(){for(var Mt=this.activeRowIndex;Mt>0;)if(Mt--,this.$isAnnotationVisible(Mt)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=Mt,this.$focusAnnotation(this.activeRowIndex);return}},kt.prototype.$moveAnnotationDown=function(){for(var Mt=this.activeRowIndex;Mt<this.lines.getLength()-1;)if(Mt++,this.$isAnnotationVisible(Mt)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=Mt,this.$focusAnnotation(this.activeRowIndex);return}},kt.prototype.$switchLane=function(Mt){switch(Mt){case"annotation":if(this.activeLane==="annotation")break;var Nt=this.$findNearestAnnotation(this.activeRowIndex);if(Nt==null)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=Nt,this.$focusAnnotation(this.activeRowIndex);break;case"fold":if(this.activeLane==="fold")break;var jt=this.$findNearestFoldWidget(this.activeRowIndex);if(jt==null)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=jt,this.$focusFoldWidget(this.activeRowIndex);break}},kt.prototype.$rowIndexToRow=function(Mt){var Nt=this.lines.get(Mt);return Nt?Nt.row:null},kt.prototype.$rowToRowIndex=function(Mt){for(var Nt=0;Nt<this.lines.getLength();Nt++){var jt=this.lines.get(Nt);if(jt.row==Mt)return Nt}return null},kt}();Ct.GutterKeyboardHandler=Dt;var Ft=function(){function kt(Mt,Nt){this.gutterKeyboardHandler=Nt,this.domEvent=Mt}return kt.prototype.getKey=function(){return At.keyCodeToString(this.domEvent.keyCode)},kt.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},kt.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},kt.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"},kt}();Ct.GutterKeyboardEvent=Ft}),ace.define("ace/editor",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/line_widgets","ace/keyboard/gutter_handler","ace/config","ace/clipboard","ace/lib/keys"],function(yt,Ct,$t){var At=this&&this.__values||function(Ht){var Wt=typeof Symbol=="function"&&Symbol.iterator,Gt=Wt&&Ht[Wt],Yt=0;if(Gt)return Gt.call(Ht);if(Ht&&typeof Ht.length=="number")return{next:function(){return Ht&&Yt>=Ht.length&&(Ht=void 0),{value:Ht&&Ht[Yt++],done:!Ht}}};throw new TypeError(Wt?"Object is not iterable.":"Symbol.iterator is not defined.")},Bt=yt("./lib/oop"),Dt=yt("./lib/dom"),Ft=yt("./lib/lang"),kt=yt("./lib/useragent"),Mt=yt("./keyboard/textinput").TextInput,Nt=yt("./mouse/mouse_handler").MouseHandler,jt=yt("./mouse/fold_handler").FoldHandler,zt=yt("./keyboard/keybinding").KeyBinding,Vt=yt("./edit_session").EditSession,Kt=yt("./search").Search,Xt=yt("./range").Range,Qt=yt("./lib/event_emitter").EventEmitter,Zt=yt("./commands/command_manager").CommandManager,dr=yt("./commands/default_commands").commands,cr=yt("./config"),Er=yt("./token_iterator").TokenIterator,pr=yt("./line_widgets").LineWidgets,gr=yt("./keyboard/gutter_handler").GutterKeyboardHandler,vr=yt("./config").nls,yr=yt("./clipboard"),xr=yt("./lib/keys"),rr=function(){function Ht(Wt,Gt,Yt){this.session,this.$toDestroy=[];var er=Wt.getContainerElement();this.container=er,this.renderer=Wt,this.id="editor"+ ++Ht.$uid,this.commands=new Zt(kt.isMac?"mac":"win",dr),typeof document=="object"&&(this.textInput=new Mt(Wt.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new Nt(this),new jt(this)),this.keyBinding=new zt(this),this.$search=new Kt().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=Ft.delayedCall((function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}).bind(this)),this.on("change",function(lr,Jt){Jt._$emitInputEvent.schedule(31)}),this.setSession(Gt||Yt&&Yt.session||new Vt("")),cr.resetOptions(this),Yt&&this.setOptions(Yt),cr._signal("editor",this)}return Ht.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=Ft.delayedCall(this.endOperation.bind(this,!0)),this.on("change",(function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}).bind(this),!0),this.on("changeSelection",(function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}).bind(this),!0)},Ht.prototype.startOperation=function(Wt){if(this.curOp){if(!Wt||this.curOp.command)return;this.prevOp=this.curOp}Wt||(this.previousCommand=null,Wt={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:Wt.command||{},args:Wt.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},Ht.prototype.endOperation=function(Wt){if(this.curOp&&this.session){if(Wt&&Wt.returnValue===!1||!this.session)return this.curOp=null;if(Wt==!0&&this.curOp.command&&this.curOp.command.name=="mouse"||(this._signal("beforeEndOperation"),!this.curOp))return;var Gt=this.curOp.command,Yt=Gt&&Gt.scrollIntoView;if(Yt){switch(Yt){case"center-animate":Yt="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var er=this.selection.getRange(),lr=this.renderer.layerConfig;(er.start.row>=lr.lastRow||er.end.row<=lr.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}Yt=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}var Jt=this.selection.toJSON();this.curOp.selectionAfter=Jt,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(Jt),this.prevOp=this.curOp,this.curOp=null}},Ht.prototype.$historyTracker=function(Wt){if(this.$mergeUndoDeltas){var Gt=this.prevOp,Yt=this.$mergeableCommands,er=Gt.command&&Wt.command.name==Gt.command.name;if(Wt.command.name=="insertstring"){var lr=Wt.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),er=er&&this.mergeNextCommand&&(!/\s/.test(lr)||/\s/.test(Gt.args)),this.mergeNextCommand=!0}else er=er&&Yt.indexOf(Wt.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(er=!1),er?this.session.mergeUndoDeltas=!0:Yt.indexOf(Wt.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},Ht.prototype.setKeyboardHandler=function(Wt,Gt){if(Wt&&typeof Wt=="string"&&Wt!="ace"){this.$keybindingId=Wt;var Yt=this;cr.loadModule(["keybinding",Wt],function(er){Yt.$keybindingId==Wt&&Yt.keyBinding.setKeyboardHandler(er&&er.handler),Gt&&Gt()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(Wt),Gt&&Gt()},Ht.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},Ht.prototype.setSession=function(Wt){if(this.session!=Wt){this.curOp&&this.endOperation(),this.curOp={};var Gt=this.session;if(Gt){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var Yt=this.session.getSelection();Yt.off("changeCursor",this.$onCursorChange),Yt.off("changeSelection",this.$onSelectionChange)}this.session=Wt,Wt?(this.$onDocumentChange=this.onDocumentChange.bind(this),Wt.on("change",this.$onDocumentChange),this.renderer.setSession(Wt),this.$onChangeMode=this.onChangeMode.bind(this),Wt.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),Wt.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),Wt.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),Wt.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),Wt.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),Wt.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=Wt.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(Wt)),this._signal("changeSession",{session:Wt,oldSession:Gt}),this.curOp=null,Gt&&Gt._signal("changeEditor",{oldEditor:this}),Wt&&Wt._signal("changeEditor",{editor:this}),Wt&&!Wt.destroyed&&Wt.bgTokenizer.scheduleStart()}},Ht.prototype.getSession=function(){return this.session},Ht.prototype.setValue=function(Wt,Gt){return this.session.doc.setValue(Wt),Gt?Gt==1?this.navigateFileEnd():Gt==-1&&this.navigateFileStart():this.selectAll(),Wt},Ht.prototype.getValue=function(){return this.session.getValue()},Ht.prototype.getSelection=function(){return this.selection},Ht.prototype.resize=function(Wt){this.renderer.onResize(Wt)},Ht.prototype.setTheme=function(Wt,Gt){this.renderer.setTheme(Wt,Gt)},Ht.prototype.getTheme=function(){return this.renderer.getTheme()},Ht.prototype.setStyle=function(Wt){this.renderer.setStyle(Wt)},Ht.prototype.unsetStyle=function(Wt){this.renderer.unsetStyle(Wt)},Ht.prototype.getFontSize=function(){return this.getOption("fontSize")||Dt.computedStyle(this.container).fontSize},Ht.prototype.setFontSize=function(Wt){this.setOption("fontSize",Wt)},Ht.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var Wt=this;this.$highlightPending=!0,setTimeout(function(){Wt.$highlightPending=!1;var Gt=Wt.session;if(!(!Gt||Gt.destroyed)){Gt.$bracketHighlight&&(Gt.$bracketHighlight.markerIds.forEach(function($r){Gt.removeMarker($r)}),Gt.$bracketHighlight=null);var Yt=Wt.getCursorPosition(),er=Wt.getKeyboardHandler(),lr=er&&er.$getDirectionForHighlight&&er.$getDirectionForHighlight(Wt),Jt=Gt.getMatchingBracketRanges(Yt,lr);if(!Jt){var Ut=new Er(Gt,Yt.row,Yt.column),ir=Ut.getCurrentToken();if(ir&&/\b(?:tag-open|tag-name)/.test(ir.type)){var Cr=Gt.getMatchingTags(Yt);Cr&&(Jt=[Cr.openTagName.isEmpty()?Cr.openTag:Cr.openTagName,Cr.closeTagName.isEmpty()?Cr.closeTag:Cr.closeTagName])}}if(!Jt&&Gt.$mode.getMatching&&(Jt=Gt.$mode.getMatching(Wt.session)),!Jt){Wt.getHighlightIndentGuides()&&Wt.renderer.$textLayer.$highlightIndentGuide();return}var _r="ace_bracket";Array.isArray(Jt)?Jt.length==1&&(_r="ace_error_bracket"):Jt=[Jt],Jt.length==2&&(Xt.comparePoints(Jt[0].end,Jt[1].start)==0?Jt=[Xt.fromPoints(Jt[0].start,Jt[1].end)]:Xt.comparePoints(Jt[0].start,Jt[1].end)==0&&(Jt=[Xt.fromPoints(Jt[1].start,Jt[0].end)])),Gt.$bracketHighlight={ranges:Jt,markerIds:Jt.map(function($r){return Gt.addMarker($r,_r,"text")})},Wt.getHighlightIndentGuides()&&Wt.renderer.$textLayer.$highlightIndentGuide()}},50)}},Ht.prototype.focus=function(){this.textInput.focus()},Ht.prototype.isFocused=function(){return this.textInput.isFocused()},Ht.prototype.blur=function(){this.textInput.blur()},Ht.prototype.onFocus=function(Wt){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",Wt))},Ht.prototype.onBlur=function(Wt){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",Wt))},Ht.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},Ht.prototype.onDocumentChange=function(Wt){var Gt=this.session.$useWrapMode,Yt=Wt.start.row==Wt.end.row?Wt.end.row:1/0;this.renderer.updateLines(Wt.start.row,Yt,Gt),this._signal("change",Wt),this.$cursorChange()},Ht.prototype.onTokenizerUpdate=function(Wt){var Gt=Wt.data;this.renderer.updateLines(Gt.first,Gt.last)},Ht.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},Ht.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},Ht.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},Ht.prototype.$updateHighlightActiveLine=function(){var Wt=this.getSession(),Gt;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(Gt=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(Gt=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(Gt=!1)),Wt.$highlightLineMarker&&!Gt)Wt.removeMarker(Wt.$highlightLineMarker.id),Wt.$highlightLineMarker=null;else if(!Wt.$highlightLineMarker&&Gt){var Yt=new Xt(Gt.row,Gt.column,Gt.row,1/0);Yt.id=Wt.addMarker(Yt,"ace_active-line","screenLine"),Wt.$highlightLineMarker=Yt}else Gt&&(Wt.$highlightLineMarker.start.row=Gt.row,Wt.$highlightLineMarker.end.row=Gt.row,Wt.$highlightLineMarker.start.column=Gt.column,Wt._signal("changeBackMarker"))},Ht.prototype.onSelectionChange=function(Wt){var Gt=this.session;if(Gt.$selectionMarker&&Gt.removeMarker(Gt.$selectionMarker),Gt.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var Yt=this.selection.getRange(),er=this.getSelectionStyle();Gt.$selectionMarker=Gt.addMarker(Yt,"ace_selection",er)}var lr=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(lr),this._signal("changeSelection")},Ht.prototype.$getSelectionHighLightRegexp=function(){var Wt=this.session,Gt=this.getSelectionRange();if(!(Gt.isEmpty()||Gt.isMultiLine())){var Yt=Gt.start.column,er=Gt.end.column,lr=Wt.getLine(Gt.start.row),Jt=lr.substring(Yt,er);if(!(Jt.length>5e3||!/[\w\d]/.test(Jt))){var Ut=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:Jt}),ir=lr.substring(Yt-1,er+1);if(Ut.test(ir))return Ut}}},Ht.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},Ht.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},Ht.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},Ht.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},Ht.prototype.onChangeMode=function(Wt){this.renderer.updateText(),this._emit("changeMode",Wt)},Ht.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},Ht.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},Ht.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},Ht.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},Ht.prototype.getCopyText=function(){var Wt=this.getSelectedText(),Gt=this.session.doc.getNewLineCharacter(),Yt=!1;if(!Wt&&this.$copyWithEmptySelection){Yt=!0;for(var er=this.selection.getAllRanges(),lr=0;lr<er.length;lr++){var Jt=er[lr];lr&&er[lr-1].start.row==Jt.start.row||(Wt+=this.session.getLine(Jt.start.row)+Gt)}}var Ut={text:Wt};return this._signal("copy",Ut),yr.lineMode=Yt?Ut.text:!1,Ut.text},Ht.prototype.onCopy=function(){this.commands.exec("copy",this)},Ht.prototype.onCut=function(){this.commands.exec("cut",this)},Ht.prototype.onPaste=function(Wt,Gt){var Yt={text:Wt,event:Gt};this.commands.exec("paste",this,Yt)},Ht.prototype.$handlePaste=function(Wt){typeof Wt=="string"&&(Wt={text:Wt}),this._signal("paste",Wt);var Gt=Wt.text,Yt=Gt===yr.lineMode,er=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)Yt?er.insert({row:this.selection.lead.row,column:0},Gt):this.insert(Gt);else if(Yt)this.selection.rangeList.ranges.forEach(function(_r){er.insert({row:_r.start.row,column:0},Gt)});else{var lr=Gt.split(/\r\n|\r|\n/),Jt=this.selection.rangeList.ranges,Ut=lr.length==2&&(!lr[0]||!lr[1]);if(lr.length!=Jt.length||Ut)return this.commands.exec("insertstring",this,Gt);for(var ir=Jt.length;ir--;){var Cr=Jt[ir];Cr.isEmpty()||er.remove(Cr),er.insert(Cr.start,lr[ir])}}},Ht.prototype.execCommand=function(Wt,Gt){return this.commands.exec(Wt,this,Gt)},Ht.prototype.insert=function(Wt,Gt){var Yt=this.session,er=Yt.getMode(),lr=this.getCursorPosition();if(this.getBehavioursEnabled()&&!Gt){var Jt=er.transformAction(Yt.getState(lr.row),"insertion",this,Yt,Wt);Jt&&(Wt!==Jt.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),Wt=Jt.text)}if(Wt=="	"&&(Wt=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&Wt.indexOf(`
`)==-1){var Ut=Xt.fromPoints(lr,lr);Ut.end.column+=Wt.length,this.session.remove(Ut)}}else{var Ut=this.getSelectionRange();lr=this.session.remove(Ut),this.clearSelection()}if(Wt==`
`||Wt==`\r
`){var $r=Yt.getLine(lr.row);if(lr.column>$r.search(/\S|$/)){var ir=$r.substr(lr.column).search(/\S|$/);Yt.doc.removeInLine(lr.row,lr.column,lr.column+ir)}}this.clearSelection();var Cr=lr.column,_r=Yt.getState(lr.row),$r=Yt.getLine(lr.row),Tr=er.checkOutdent(_r,$r,Wt);if(Yt.insert(lr,Wt),Jt&&Jt.selection&&(Jt.selection.length==2?this.selection.setSelectionRange(new Xt(lr.row,Cr+Jt.selection[0],lr.row,Cr+Jt.selection[1])):this.selection.setSelectionRange(new Xt(lr.row+Jt.selection[0],Jt.selection[1],lr.row+Jt.selection[2],Jt.selection[3]))),this.$enableAutoIndent){if(Yt.getDocument().isNewLine(Wt)){var Dr=er.getNextLineIndent(_r,$r.slice(0,lr.column),Yt.getTabString());Yt.insert({row:lr.row+1,column:0},Dr)}Tr&&er.autoOutdent(_r,Yt,lr.row)}},Ht.prototype.autoIndent=function(){for(var Wt=this.session,Gt=Wt.getMode(),Yt=this.selection.isEmpty()?[new Xt(0,0,Wt.doc.getLength()-1,0)]:this.selection.getAllRanges(),er="",lr="",Jt="",Ut=Wt.getTabString(),ir=0;ir<Yt.length;ir++)for(var Cr=Yt[ir].start.row,_r=Yt[ir].end.row,$r=Cr;$r<=_r;$r++){$r>0&&(er=Wt.getState($r-1),lr=Wt.getLine($r-1),Jt=Gt.getNextLineIndent(er,lr,Ut));var Tr=Wt.getLine($r),Dr=Gt.$getIndent(Tr);if(Jt!==Dr){if(Dr.length>0){var Ar=new Xt($r,0,$r,Dr.length);Wt.remove(Ar)}Jt.length>0&&Wt.insert({row:$r,column:0},Jt)}Gt.autoOutdent(er,Wt,$r)}},Ht.prototype.onTextInput=function(Wt,Gt){if(!Gt)return this.keyBinding.onTextInput(Wt);this.startOperation({command:{name:"insertstring"}});var Yt=this.applyComposition.bind(this,Wt,Gt);this.selection.rangeCount?this.forEachSelection(Yt):Yt(),this.endOperation()},Ht.prototype.applyComposition=function(Wt,Gt){if(Gt.extendLeft||Gt.extendRight){var Yt=this.selection.getRange();Yt.start.column-=Gt.extendLeft,Yt.end.column+=Gt.extendRight,Yt.start.column<0&&(Yt.start.row--,Yt.start.column+=this.session.getLine(Yt.start.row).length+1),this.selection.setRange(Yt),!Wt&&!Yt.isEmpty()&&this.remove()}if((Wt||!this.selection.isEmpty())&&this.insert(Wt,!0),Gt.restoreStart||Gt.restoreEnd){var Yt=this.selection.getRange();Yt.start.column-=Gt.restoreStart,Yt.end.column-=Gt.restoreEnd,this.selection.setRange(Yt)}},Ht.prototype.onCommandKey=function(Wt,Gt,Yt){return this.keyBinding.onCommandKey(Wt,Gt,Yt)},Ht.prototype.setOverwrite=function(Wt){this.session.setOverwrite(Wt)},Ht.prototype.getOverwrite=function(){return this.session.getOverwrite()},Ht.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},Ht.prototype.setScrollSpeed=function(Wt){this.setOption("scrollSpeed",Wt)},Ht.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},Ht.prototype.setDragDelay=function(Wt){this.setOption("dragDelay",Wt)},Ht.prototype.getDragDelay=function(){return this.getOption("dragDelay")},Ht.prototype.setSelectionStyle=function(Wt){this.setOption("selectionStyle",Wt)},Ht.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},Ht.prototype.setHighlightActiveLine=function(Wt){this.setOption("highlightActiveLine",Wt)},Ht.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},Ht.prototype.setHighlightGutterLine=function(Wt){this.setOption("highlightGutterLine",Wt)},Ht.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},Ht.prototype.setHighlightSelectedWord=function(Wt){this.setOption("highlightSelectedWord",Wt)},Ht.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},Ht.prototype.setAnimatedScroll=function(Wt){this.renderer.setAnimatedScroll(Wt)},Ht.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},Ht.prototype.setShowInvisibles=function(Wt){this.renderer.setShowInvisibles(Wt)},Ht.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},Ht.prototype.setDisplayIndentGuides=function(Wt){this.renderer.setDisplayIndentGuides(Wt)},Ht.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},Ht.prototype.setHighlightIndentGuides=function(Wt){this.renderer.setHighlightIndentGuides(Wt)},Ht.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},Ht.prototype.setShowPrintMargin=function(Wt){this.renderer.setShowPrintMargin(Wt)},Ht.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},Ht.prototype.setPrintMarginColumn=function(Wt){this.renderer.setPrintMarginColumn(Wt)},Ht.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},Ht.prototype.setReadOnly=function(Wt){this.setOption("readOnly",Wt)},Ht.prototype.getReadOnly=function(){return this.getOption("readOnly")},Ht.prototype.setBehavioursEnabled=function(Wt){this.setOption("behavioursEnabled",Wt)},Ht.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},Ht.prototype.setWrapBehavioursEnabled=function(Wt){this.setOption("wrapBehavioursEnabled",Wt)},Ht.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},Ht.prototype.setShowFoldWidgets=function(Wt){this.setOption("showFoldWidgets",Wt)},Ht.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},Ht.prototype.setFadeFoldWidgets=function(Wt){this.setOption("fadeFoldWidgets",Wt)},Ht.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},Ht.prototype.remove=function(Wt){this.selection.isEmpty()&&(Wt=="left"?this.selection.selectLeft():this.selection.selectRight());var Gt=this.getSelectionRange();if(this.getBehavioursEnabled()){var Yt=this.session,er=Yt.getState(Gt.start.row),lr=Yt.getMode().transformAction(er,"deletion",this,Yt,Gt);if(Gt.end.column===0){var Jt=Yt.getTextRange(Gt);if(Jt[Jt.length-1]==`
`){var Ut=Yt.getLine(Gt.end.row);/^\s+$/.test(Ut)&&(Gt.end.column=Ut.length)}}lr&&(Gt=lr)}this.session.remove(Gt),this.clearSelection()},Ht.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},Ht.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},Ht.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},Ht.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var Wt=this.getSelectionRange();Wt.start.column==Wt.end.column&&Wt.start.row==Wt.end.row&&(Wt.end.column=0,Wt.end.row++),this.session.remove(Wt),this.clearSelection()},Ht.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var Wt=this.getCursorPosition();this.insert(`
`),this.moveCursorToPosition(Wt)},Ht.prototype.setGhostText=function(Wt,Gt){this.session.widgetManager||(this.session.widgetManager=new pr(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(Wt,Gt)},Ht.prototype.removeGhostText=function(){this.session.widgetManager&&this.renderer.removeGhostText()},Ht.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var Wt=this.getCursorPosition(),Gt=Wt.column;if(Gt!==0){var Yt=this.session.getLine(Wt.row),er,lr;Gt<Yt.length?(er=Yt.charAt(Gt)+Yt.charAt(Gt-1),lr=new Xt(Wt.row,Gt-1,Wt.row,Gt+1)):(er=Yt.charAt(Gt-1)+Yt.charAt(Gt-2),lr=new Xt(Wt.row,Gt-2,Wt.row,Gt)),this.session.replace(lr,er),this.session.selection.moveToPosition(lr.end)}}},Ht.prototype.toLowerCase=function(){var Wt=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var Gt=this.getSelectionRange(),Yt=this.session.getTextRange(Gt);this.session.replace(Gt,Yt.toLowerCase()),this.selection.setSelectionRange(Wt)},Ht.prototype.toUpperCase=function(){var Wt=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var Gt=this.getSelectionRange(),Yt=this.session.getTextRange(Gt);this.session.replace(Gt,Yt.toUpperCase()),this.selection.setSelectionRange(Wt)},Ht.prototype.indent=function(){var Wt=this.session,Gt=this.getSelectionRange();if(Gt.start.row<Gt.end.row){var Yt=this.$getSelectedRows();Wt.indentRows(Yt.first,Yt.last,"	");return}else if(Gt.start.column<Gt.end.column){var er=Wt.getTextRange(Gt);if(!/^\s+$/.test(er)){var Yt=this.$getSelectedRows();Wt.indentRows(Yt.first,Yt.last,"	");return}}var lr=Wt.getLine(Gt.start.row),Jt=Gt.start,Ut=Wt.getTabSize(),ir=Wt.documentToScreenColumn(Jt.row,Jt.column);if(this.session.getUseSoftTabs())var Cr=Ut-ir%Ut,_r=Ft.stringRepeat(" ",Cr);else{for(var Cr=ir%Ut;lr[Gt.start.column-1]==" "&&Cr;)Gt.start.column--,Cr--;this.selection.setSelectionRange(Gt),_r="	"}return this.insert(_r)},Ht.prototype.blockIndent=function(){var Wt=this.$getSelectedRows();this.session.indentRows(Wt.first,Wt.last,"	")},Ht.prototype.blockOutdent=function(){var Wt=this.session.getSelection();this.session.outdentRows(Wt.getRange())},Ht.prototype.sortLines=function(){for(var Wt=this.$getSelectedRows(),Gt=this.session,Yt=[],er=Wt.first;er<=Wt.last;er++)Yt.push(Gt.getLine(er));Yt.sort(function(Ut,ir){return Ut.toLowerCase()<ir.toLowerCase()?-1:Ut.toLowerCase()>ir.toLowerCase()?1:0});for(var lr=new Xt(0,0,0,0),er=Wt.first;er<=Wt.last;er++){var Jt=Gt.getLine(er);lr.start.row=er,lr.end.row=er,lr.end.column=Jt.length,Gt.replace(lr,Yt[er-Wt.first])}},Ht.prototype.toggleCommentLines=function(){var Wt=this.session.getState(this.getCursorPosition().row),Gt=this.$getSelectedRows();this.session.getMode().toggleCommentLines(Wt,this.session,Gt.first,Gt.last)},Ht.prototype.toggleBlockComment=function(){var Wt=this.getCursorPosition(),Gt=this.session.getState(Wt.row),Yt=this.getSelectionRange();this.session.getMode().toggleBlockComment(Gt,this.session,Yt,Wt)},Ht.prototype.getNumberAt=function(Wt,Gt){var Yt=/[\-]?[0-9]+(?:\.[0-9]+)?/g;Yt.lastIndex=0;for(var er=this.session.getLine(Wt);Yt.lastIndex<Gt;){var lr=Yt.exec(er);if(lr.index<=Gt&&lr.index+lr[0].length>=Gt){var Jt={value:lr[0],start:lr.index,end:lr.index+lr[0].length};return Jt}}return null},Ht.prototype.modifyNumber=function(Wt){var Gt=this.selection.getCursor().row,Yt=this.selection.getCursor().column,er=new Xt(Gt,Yt-1,Gt,Yt),lr=this.session.getTextRange(er);if(!isNaN(parseFloat(lr))&&isFinite(lr)){var Jt=this.getNumberAt(Gt,Yt);if(Jt){var Ut=Jt.value.indexOf(".")>=0?Jt.start+Jt.value.indexOf(".")+1:Jt.end,ir=Jt.start+Jt.value.length-Ut,Cr=parseFloat(Jt.value);Cr*=Math.pow(10,ir),Ut!==Jt.end&&Yt<Ut?Wt*=Math.pow(10,Jt.end-Yt-1):Wt*=Math.pow(10,Jt.end-Yt),Cr+=Wt,Cr/=Math.pow(10,ir);var _r=Cr.toFixed(ir),$r=new Xt(Gt,Jt.start,Gt,Jt.end);this.session.replace($r,_r),this.moveCursorTo(Gt,Math.max(Jt.start+1,Yt+_r.length-Jt.value.length))}}else this.toggleWord()},Ht.prototype.toggleWord=function(){var Wt=this.selection.getCursor().row,Gt=this.selection.getCursor().column;this.selection.selectWord();var Yt=this.getSelectedText(),er=this.selection.getWordRange().start.column,lr=Yt.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),Jt=Gt-er-1;Jt<0&&(Jt=0);var Ut=0,ir=0,Cr=this;Yt.match(/[A-Za-z0-9_]+/)&&lr.forEach(function(Sr,Br){ir=Ut+Sr.length,Jt>=Ut&&Jt<=ir&&(Yt=Sr,Cr.selection.clearSelection(),Cr.moveCursorTo(Wt,Ut+er),Cr.selection.selectTo(Wt,ir+er)),Ut=ir});for(var _r=this.$toggleWordPairs,$r,Tr=0;Tr<_r.length;Tr++)for(var Dr=_r[Tr],Ar=0;Ar<=1;Ar++){var Fr=+!Ar,Rr=Yt.match(new RegExp("^\\s?_?("+Ft.escapeRegExp(Dr[Ar])+")\\s?$","i"));if(Rr){var wr=Yt.match(new RegExp("([_]|^|\\s)("+Ft.escapeRegExp(Rr[1])+")($|\\s)","g"));wr&&($r=Yt.replace(new RegExp(Ft.escapeRegExp(Dr[Ar]),"i"),function(Sr){var Br=Dr[Fr];return Sr.toUpperCase()==Sr?Br=Br.toUpperCase():Sr.charAt(0).toUpperCase()==Sr.charAt(0)&&(Br=Br.substr(0,0)+Dr[Fr].charAt(0).toUpperCase()+Br.substr(1)),Br}),this.insert($r),$r="")}}},Ht.prototype.findLinkAt=function(Wt,Gt){var Yt,er,lr=this.session.getLine(Wt),Jt=lr.split(/((?:https?|ftp):\/\/[\S]+)/),Ut=Gt;Ut<0&&(Ut=0);var ir=0,Cr=0,_r;try{for(var $r=At(Jt),Tr=$r.next();!Tr.done;Tr=$r.next()){var Dr=Tr.value;if(Cr=ir+Dr.length,Ut>=ir&&Ut<=Cr&&Dr.match(/((?:https?|ftp):\/\/[\S]+)/)){_r=Dr.replace(/[\s:.,'";}\]]+$/,"");break}ir=Cr}}catch(Ar){Yt={error:Ar}}finally{try{Tr&&!Tr.done&&(er=$r.return)&&er.call($r)}finally{if(Yt)throw Yt.error}}return _r},Ht.prototype.openLink=function(){var Wt=this.selection.getCursor(),Gt=this.findLinkAt(Wt.row,Wt.column);return Gt&&window.open(Gt,"_blank"),Gt!=null},Ht.prototype.removeLines=function(){var Wt=this.$getSelectedRows();this.session.removeFullLines(Wt.first,Wt.last),this.clearSelection()},Ht.prototype.duplicateSelection=function(){var Wt=this.selection,Gt=this.session,Yt=Wt.getRange(),er=Wt.isBackwards();if(Yt.isEmpty()){var lr=Yt.start.row;Gt.duplicateLines(lr,lr)}else{var Jt=er?Yt.start:Yt.end,Ut=Gt.insert(Jt,Gt.getTextRange(Yt));Yt.start=Jt,Yt.end=Ut,Wt.setSelectionRange(Yt,er)}},Ht.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},Ht.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},Ht.prototype.moveText=function(Wt,Gt,Yt){return this.session.moveText(Wt,Gt,Yt)},Ht.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},Ht.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},Ht.prototype.$moveLines=function(Wt,Gt){var Yt,er,lr=this.selection;if(!lr.inMultiSelectMode||this.inVirtualSelectionMode){var Jt=lr.toOrientedRange();Yt=this.$getSelectedRows(Jt),er=this.session.$moveLines(Yt.first,Yt.last,Gt?0:Wt),Gt&&Wt==-1&&(er=0),Jt.moveBy(er,0),lr.fromOrientedRange(Jt)}else{var Ut=lr.rangeList.ranges;lr.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var ir=0,Cr=0,_r=Ut.length,$r=0;$r<_r;$r++){var Tr=$r;Ut[$r].moveBy(ir,0),Yt=this.$getSelectedRows(Ut[$r]);for(var Dr=Yt.first,Ar=Yt.last;++$r<_r;){Cr&&Ut[$r].moveBy(Cr,0);var Fr=this.$getSelectedRows(Ut[$r]);if(Gt&&Fr.first!=Ar)break;if(!Gt&&Fr.first>Ar+1)break;Ar=Fr.last}for($r--,ir=this.session.$moveLines(Dr,Ar,Gt?0:Wt),Gt&&Wt==-1&&(Tr=$r+1);Tr<=$r;)Ut[Tr].moveBy(ir,0),Tr++;Gt||(ir=0),Cr+=ir}lr.fromOrientedRange(lr.ranges[0]),lr.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},Ht.prototype.$getSelectedRows=function(Wt){return Wt=(Wt||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(Wt.start.row),last:this.session.getRowFoldEnd(Wt.end.row)}},Ht.prototype.onCompositionStart=function(Wt){this.renderer.showComposition(Wt)},Ht.prototype.onCompositionUpdate=function(Wt){this.renderer.setCompositionText(Wt)},Ht.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},Ht.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},Ht.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},Ht.prototype.isRowVisible=function(Wt){return Wt>=this.getFirstVisibleRow()&&Wt<=this.getLastVisibleRow()},Ht.prototype.isRowFullyVisible=function(Wt){return Wt>=this.renderer.getFirstFullyVisibleRow()&&Wt<=this.renderer.getLastFullyVisibleRow()},Ht.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},Ht.prototype.$moveByPage=function(Wt,Gt){var Yt=this.renderer,er=this.renderer.layerConfig,lr=Wt*Math.floor(er.height/er.lineHeight);Gt===!0?this.selection.$moveSelection(function(){this.moveCursorBy(lr,0)}):Gt===!1&&(this.selection.moveCursorBy(lr,0),this.selection.clearSelection());var Jt=Yt.scrollTop;Yt.scrollBy(0,lr*er.lineHeight),Gt!=null&&Yt.scrollCursorIntoView(null,.5),Yt.animateScrolling(Jt)},Ht.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},Ht.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},Ht.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},Ht.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},Ht.prototype.scrollPageDown=function(){this.$moveByPage(1)},Ht.prototype.scrollPageUp=function(){this.$moveByPage(-1)},Ht.prototype.scrollToRow=function(Wt){this.renderer.scrollToRow(Wt)},Ht.prototype.scrollToLine=function(Wt,Gt,Yt,er){this.renderer.scrollToLine(Wt,Gt,Yt,er)},Ht.prototype.centerSelection=function(){var Wt=this.getSelectionRange(),Gt={row:Math.floor(Wt.start.row+(Wt.end.row-Wt.start.row)/2),column:Math.floor(Wt.start.column+(Wt.end.column-Wt.start.column)/2)};this.renderer.alignCursor(Gt,.5)},Ht.prototype.getCursorPosition=function(){return this.selection.getCursor()},Ht.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},Ht.prototype.getSelectionRange=function(){return this.selection.getRange()},Ht.prototype.selectAll=function(){this.selection.selectAll()},Ht.prototype.clearSelection=function(){this.selection.clearSelection()},Ht.prototype.moveCursorTo=function(Wt,Gt){this.selection.moveCursorTo(Wt,Gt)},Ht.prototype.moveCursorToPosition=function(Wt){this.selection.moveCursorToPosition(Wt)},Ht.prototype.jumpToMatching=function(Wt,Gt){var Yt=this.getCursorPosition(),er=new Er(this.session,Yt.row,Yt.column),lr=er.getCurrentToken(),Jt=0;lr&&lr.type.indexOf("tag-name")!==-1&&(lr=er.stepBackward());var Ut=lr||er.stepForward();if(Ut){var ir,Cr=!1,_r={},$r=Yt.column-Ut.start,Tr,Dr={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(Ut.value.match(/[{}()\[\]]/g)){for(;$r<Ut.value.length&&!Cr;$r++)if(Dr[Ut.value[$r]])switch(Tr=Dr[Ut.value[$r]]+"."+Ut.type.replace("rparen","lparen"),isNaN(_r[Tr])&&(_r[Tr]=0),Ut.value[$r]){case"(":case"[":case"{":_r[Tr]++;break;case")":case"]":case"}":_r[Tr]--,_r[Tr]===-1&&(ir="bracket",Cr=!0);break}}else Ut.type.indexOf("tag-name")!==-1&&(isNaN(_r[Ut.value])&&(_r[Ut.value]=0),lr.value==="<"&&Jt>1?_r[Ut.value]++:lr.value==="</"&&_r[Ut.value]--,_r[Ut.value]===-1&&(ir="tag",Cr=!0));Cr||(lr=Ut,Jt++,Ut=er.stepForward(),$r=0)}while(Ut&&!Cr);if(ir){var Ar,Fr;if(ir==="bracket")Ar=this.session.getBracketRange(Yt),Ar||(Ar=new Xt(er.getCurrentTokenRow(),er.getCurrentTokenColumn()+$r-1,er.getCurrentTokenRow(),er.getCurrentTokenColumn()+$r-1),Fr=Ar.start,(Gt||Fr.row===Yt.row&&Math.abs(Fr.column-Yt.column)<2)&&(Ar=this.session.getBracketRange(Fr)));else if(ir==="tag"){if(!Ut||Ut.type.indexOf("tag-name")===-1)return;if(Ar=new Xt(er.getCurrentTokenRow(),er.getCurrentTokenColumn()-2,er.getCurrentTokenRow(),er.getCurrentTokenColumn()-2),Ar.compare(Yt.row,Yt.column)===0){var Rr=this.session.getMatchingTags(Yt);Rr&&(Rr.openTag.contains(Yt.row,Yt.column)?(Ar=Rr.closeTag,Fr=Ar.start):(Ar=Rr.openTag,Rr.closeTag.start.row===Yt.row&&Rr.closeTag.start.column===Yt.column?Fr=Ar.end:Fr=Ar.start))}Fr=Fr||Ar.start}Fr=Ar&&Ar.cursor||Fr,Fr&&(Wt?Ar&&Gt?this.selection.setRange(Ar):Ar&&Ar.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(Fr.row,Fr.column):this.selection.moveTo(Fr.row,Fr.column))}}},Ht.prototype.gotoLine=function(Wt,Gt,Yt){this.selection.clearSelection(),this.session.unfold({row:Wt-1,column:Gt||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(Wt-1,Gt||0),this.isRowFullyVisible(Wt-1)||this.scrollToLine(Wt-1,!0,Yt)},Ht.prototype.navigateTo=function(Wt,Gt){this.selection.moveTo(Wt,Gt)},Ht.prototype.navigateUp=function(Wt){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var Gt=this.selection.anchor.getPosition();return this.moveCursorToPosition(Gt)}this.selection.clearSelection(),this.selection.moveCursorBy(-Wt||-1,0)},Ht.prototype.navigateDown=function(Wt){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var Gt=this.selection.anchor.getPosition();return this.moveCursorToPosition(Gt)}this.selection.clearSelection(),this.selection.moveCursorBy(Wt||1,0)},Ht.prototype.navigateLeft=function(Wt){if(this.selection.isEmpty())for(Wt=Wt||1;Wt--;)this.selection.moveCursorLeft();else{var Gt=this.getSelectionRange().start;this.moveCursorToPosition(Gt)}this.clearSelection()},Ht.prototype.navigateRight=function(Wt){if(this.selection.isEmpty())for(Wt=Wt||1;Wt--;)this.selection.moveCursorRight();else{var Gt=this.getSelectionRange().end;this.moveCursorToPosition(Gt)}this.clearSelection()},Ht.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},Ht.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},Ht.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},Ht.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},Ht.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},Ht.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},Ht.prototype.replace=function(Wt,Gt){Gt&&this.$search.set(Gt);var Yt=this.$search.find(this.session),er=0;return Yt&&(this.$tryReplace(Yt,Wt)&&(er=1),this.selection.setSelectionRange(Yt),this.renderer.scrollSelectionIntoView(Yt.start,Yt.end)),er},Ht.prototype.replaceAll=function(Wt,Gt){Gt&&this.$search.set(Gt);var Yt=this.$search.findAll(this.session),er=0;if(!Yt.length)return er;var lr=this.getSelectionRange();this.selection.moveTo(0,0);for(var Jt=Yt.length-1;Jt>=0;--Jt)this.$tryReplace(Yt[Jt],Wt)&&er++;return this.selection.setSelectionRange(lr),er},Ht.prototype.$tryReplace=function(Wt,Gt){var Yt=this.session.getTextRange(Wt);return Gt=this.$search.replace(Yt,Gt),Gt!==null?(Wt.end=this.session.replace(Wt,Gt),Wt):null},Ht.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},Ht.prototype.find=function(Wt,Gt,Yt){Gt||(Gt={}),typeof Wt=="string"||Wt instanceof RegExp?Gt.needle=Wt:typeof Wt=="object"&&Bt.mixin(Gt,Wt);var er=this.selection.getRange();Gt.needle==null&&(Wt=this.session.getTextRange(er)||this.$search.$options.needle,Wt||(er=this.session.getWordRange(er.start.row,er.start.column),Wt=this.session.getTextRange(er)),this.$search.set({needle:Wt})),this.$search.set(Gt),Gt.start||this.$search.set({start:er});var lr=this.$search.find(this.session);if(Gt.preventScroll)return lr;if(lr)return this.revealRange(lr,Yt),lr;Gt.backwards?er.start=er.end:er.end=er.start,this.selection.setRange(er)},Ht.prototype.findNext=function(Wt,Gt){this.find({skipCurrent:!0,backwards:!1},Wt,Gt)},Ht.prototype.findPrevious=function(Wt,Gt){this.find(Wt,{skipCurrent:!0,backwards:!0},Gt)},Ht.prototype.revealRange=function(Wt,Gt){this.session.unfold(Wt),this.selection.setSelectionRange(Wt);var Yt=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(Wt.start,Wt.end,.5),Gt!==!1&&this.renderer.animateScrolling(Yt)},Ht.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},Ht.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},Ht.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(Wt){Wt.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},Ht.prototype.setAutoScrollEditorIntoView=function(Wt){if(Wt){var Gt,Yt=this,er=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var lr=this.$scrollAnchor;lr.style.cssText="position:absolute",this.container.insertBefore(lr,this.container.firstChild);var Jt=this.on("changeSelection",function(){er=!0}),Ut=this.renderer.on("beforeRender",function(){er&&(Gt=Yt.renderer.container.getBoundingClientRect())}),ir=this.renderer.on("afterRender",function(){if(er&&Gt&&(Yt.isFocused()||Yt.searchBox&&Yt.searchBox.isFocused())){var Cr=Yt.renderer,_r=Cr.$cursorLayer.$pixelPos,$r=Cr.layerConfig,Tr=_r.top-$r.offset;_r.top>=0&&Tr+Gt.top<0?er=!0:_r.top<$r.height&&_r.top+Gt.top+$r.lineHeight>window.innerHeight?er=!1:er=null,er!=null&&(lr.style.top=Tr+"px",lr.style.left=_r.left+"px",lr.style.height=$r.lineHeight+"px",lr.scrollIntoView(er)),er=Gt=null}});this.setAutoScrollEditorIntoView=function(Cr){Cr||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",Jt),this.renderer.off("afterRender",ir),this.renderer.off("beforeRender",Ut))}}},Ht.prototype.$resetCursorStyle=function(){var Wt=this.$cursorStyle||"ace",Gt=this.renderer.$cursorLayer;Gt&&(Gt.setSmoothBlinking(/smooth/.test(Wt)),Gt.isBlinking=!this.$readOnly&&Wt!="wide",Dt.setCssClass(Gt.element,"ace_slim-cursors",/slim/.test(Wt)))},Ht.prototype.prompt=function(Wt,Gt,Yt){var er=this;cr.loadModule("ace/ext/prompt",function(lr){lr.prompt(er,Wt,Gt,Yt)})},Ht}();rr.$uid=0,rr.prototype.curOp=null,rr.prototype.prevOp={},rr.prototype.$mergeableCommands=["backspace","del","insertstring"],rr.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],Bt.implement(rr.prototype,Qt),cr.defineOptions(rr.prototype,"editor",{selectionStyle:{set:function(Ht){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:Ht})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(Ht){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(Ht){this.textInput.setReadOnly(Ht),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(Ht){this.textInput.setCopyWithEmptySelection(Ht)},initialValue:!1},cursorStyle:{set:function(Ht){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(Ht){this.setAutoScrollEditorIntoView(Ht)}},keyboardHandler:{set:function(Ht){this.setKeyboardHandler(Ht)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(Ht){this.session.setValue(Ht)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(Ht){this.setSession(Ht)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(Ht){this.renderer.$gutterLayer.setShowLineNumbers(Ht),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),Ht&&this.$relativeLineNumbers?Lt.attach(this):Lt.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(Ht){this.$showLineNumbers&&Ht?Lt.attach(this):Lt.detach(this)}},placeholder:{set:function(Ht){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var Wt=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(Wt&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),Dt.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!Wt&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),Dt.addCssClass(this.container,"ace_hasPlaceholder");var Gt=Dt.createElement("div");Gt.className="ace_placeholder",Gt.textContent=this.$placeholder||"",this.renderer.placeholderNode=Gt,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!Wt&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(Ht){var Wt={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(er){er.blur(),er.renderer.scroller.focus()},readOnly:!0},Gt=function(er){if(er.target==this.renderer.scroller&&er.keyCode===xr.enter){er.preventDefault();var lr=this.getCursorPosition().row;this.isRowVisible(lr)||this.scrollToLine(lr,!0,!0),this.focus()}},Yt;Ht?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(kt.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",vr("editor.scroller.aria-roledescription","editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",vr("editor.scroller.aria-label","Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",Gt.bind(this)),this.commands.addCommand(Wt),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",vr("editor.gutter.aria-roledescription","editor")),this.renderer.$gutter.setAttribute("aria-label",vr("editor.gutter.aria-label","Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),Yt||(Yt=new gr(this)),Yt.addListener(),this.textInput.setAriaOptions({setLabel:!0})):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",Gt.bind(this)),this.commands.removeCommand(Wt),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),Yt&&Yt.removeListener())},initialValue:!1},textInputAriaLabel:{set:function(Ht){this.$textInputAriaLabel=Ht},initialValue:""},enableMobileMenu:{set:function(Ht){this.$enableMobileMenu=Ht},initialValue:!0},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var Lt={getText:function(Ht,Wt){return(Math.abs(Ht.selection.lead.row-Wt)||Wt+1+(Wt<9?"·":""))+""},getWidth:function(Ht,Wt,Gt){return Math.max(Wt.toString().length,(Gt.lastRow+1).toString().length,2)*Gt.characterWidth},update:function(Ht,Wt){Wt.renderer.$loop.schedule(Wt.renderer.CHANGE_GUTTER)},attach:function(Ht){Ht.renderer.$gutterLayer.$renderer=this,Ht.on("changeSelection",this.update),this.update(null,Ht)},detach:function(Ht){Ht.renderer.$gutterLayer.$renderer==this&&(Ht.renderer.$gutterLayer.$renderer=null),Ht.off("changeSelection",this.update),this.update(null,Ht)}};Ct.Editor=rr}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(yt,Ct,$t){var At=yt("../lib/dom"),Bt=function(){function Dt(Ft,kt){this.element=Ft,this.canvasHeight=kt||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return Dt.prototype.moveContainer=function(Ft){At.translate(this.element,0,-(Ft.firstRowScreen*Ft.lineHeight%this.canvasHeight)-Ft.offset*this.$offsetCoefficient)},Dt.prototype.pageChanged=function(Ft,kt){return Math.floor(Ft.firstRowScreen*Ft.lineHeight/this.canvasHeight)!==Math.floor(kt.firstRowScreen*kt.lineHeight/this.canvasHeight)},Dt.prototype.computeLineTop=function(Ft,kt,Mt){var Nt=kt.firstRowScreen*kt.lineHeight,jt=Math.floor(Nt/this.canvasHeight),zt=Mt.documentToScreenRow(Ft,0)*kt.lineHeight;return zt-jt*this.canvasHeight},Dt.prototype.computeLineHeight=function(Ft,kt,Mt){return kt.lineHeight*Mt.getRowLineCount(Ft)},Dt.prototype.getLength=function(){return this.cells.length},Dt.prototype.get=function(Ft){return this.cells[Ft]},Dt.prototype.shift=function(){this.$cacheCell(this.cells.shift())},Dt.prototype.pop=function(){this.$cacheCell(this.cells.pop())},Dt.prototype.push=function(Ft){if(Array.isArray(Ft)){this.cells.push.apply(this.cells,Ft);for(var kt=At.createFragment(this.element),Mt=0;Mt<Ft.length;Mt++)kt.appendChild(Ft[Mt].element);this.element.appendChild(kt)}else this.cells.push(Ft),this.element.appendChild(Ft.element)},Dt.prototype.unshift=function(Ft){if(Array.isArray(Ft)){this.cells.unshift.apply(this.cells,Ft);for(var kt=At.createFragment(this.element),Mt=0;Mt<Ft.length;Mt++)kt.appendChild(Ft[Mt].element);this.element.firstChild?this.element.insertBefore(kt,this.element.firstChild):this.element.appendChild(kt)}else this.cells.unshift(Ft),this.element.insertAdjacentElement("afterbegin",Ft.element)},Dt.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},Dt.prototype.$cacheCell=function(Ft){Ft&&(Ft.element.remove(),this.cellCache.push(Ft))},Dt.prototype.createCell=function(Ft,kt,Mt,Nt){var jt=this.cellCache.pop();if(!jt){var zt=At.createElement("div");Nt&&Nt(zt),this.element.appendChild(zt),jt={element:zt,text:"",row:Ft}}return jt.row=Ft,jt},Dt}();Ct.Lines=Bt}),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines","ace/config"],function(yt,Ct,$t){var At=yt("../lib/dom"),Bt=yt("../lib/oop"),Dt=yt("../lib/lang"),Ft=yt("../lib/event_emitter").EventEmitter,kt=yt("./lines").Lines,Mt=yt("../config").nls,Nt=function(){function zt(Vt){this.element=At.createElement("div"),this.element.className="ace_layer ace_gutter-layer",Vt.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new kt(this.element),this.$lines.$offsetCoefficient=1}return zt.prototype.setSession=function(Vt){this.session&&this.session.off("change",this.$updateAnnotations),this.session=Vt,Vt&&Vt.on("change",this.$updateAnnotations)},zt.prototype.addGutterDecoration=function(Vt,Kt){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(Vt,Kt)},zt.prototype.removeGutterDecoration=function(Vt,Kt){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(Vt,Kt)},zt.prototype.setAnnotations=function(Vt){this.$annotations=[];for(var Kt=0;Kt<Vt.length;Kt++){var Xt=Vt[Kt],Qt=Xt.row,Zt=this.$annotations[Qt];Zt||(Zt=this.$annotations[Qt]={text:[],type:[],displayText:[]});var dr=Xt.text,cr=Xt.text,Er=Xt.type;dr=dr?Dt.escapeHTML(dr):Xt.html||"",cr=cr||Xt.html||"",Zt.text.indexOf(dr)===-1&&(Zt.text.push(dr),Zt.type.push(Er),Zt.displayText.push(cr));var pr=Xt.className;pr?Zt.className=pr:Er=="error"?Zt.className=" ace_error":Er=="warning"&&Zt.className!=" ace_error"?Zt.className=" ace_warning":Er=="info"&&!Zt.className&&(Zt.className=" ace_info")}},zt.prototype.$updateAnnotations=function(Vt){if(this.$annotations.length){var Kt=Vt.start.row,Xt=Vt.end.row-Kt;if(Xt!==0)if(Vt.action=="remove")this.$annotations.splice(Kt,Xt+1,null);else{var Qt=new Array(Xt+1);Qt.unshift(Kt,1),this.$annotations.splice.apply(this.$annotations,Qt)}}},zt.prototype.update=function(Vt){this.config=Vt;var Kt=this.session,Xt=Vt.firstRow,Qt=Math.min(Vt.lastRow+Vt.gutterOffset,Kt.getLength()-1);this.oldLastRow=Qt,this.config=Vt,this.$lines.moveContainer(Vt),this.$updateCursorRow();for(var Zt=Kt.getNextFoldLine(Xt),dr=Zt?Zt.start.row:1/0,cr=null,Er=-1,pr=Xt;;){if(pr>dr&&(pr=Zt.end.row+1,Zt=Kt.getNextFoldLine(pr,Zt),dr=Zt?Zt.start.row:1/0),pr>Qt){for(;this.$lines.getLength()>Er+1;)this.$lines.pop();break}cr=this.$lines.get(++Er),cr?cr.row=pr:(cr=this.$lines.createCell(pr,Vt,this.session,jt),this.$lines.push(cr)),this.$renderCell(cr,Vt,Zt,pr),pr++}this._signal("afterRender"),this.$updateGutterWidth(Vt)},zt.prototype.$updateGutterWidth=function(Vt){var Kt=this.session,Xt=Kt.gutterRenderer||this.$renderer,Qt=Kt.$firstLineNumber,Zt=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||Kt.$useWrapMode)&&(Zt=Kt.getLength()+Qt-1);var dr=Xt?Xt.getWidth(Kt,Zt,Vt):Zt.toString().length*Vt.characterWidth,cr=this.$padding||this.$computePadding();dr+=cr.left+cr.right,dr!==this.gutterWidth&&!isNaN(dr)&&(this.gutterWidth=dr,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",dr))},zt.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var Vt=this.session.selection.getCursor();this.$cursorRow!==Vt.row&&(this.$cursorRow=Vt.row)}},zt.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var Vt=this.session.selection.cursor.row;if(this.$cursorRow=Vt,!(this.$cursorCell&&this.$cursorCell.row==Vt)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var Kt=this.$lines.cells;this.$cursorCell=null;for(var Xt=0;Xt<Kt.length;Xt++){var Qt=Kt[Xt];if(Qt.row>=this.$cursorRow){if(Qt.row>this.$cursorRow){var Zt=this.session.getFoldLine(this.$cursorRow);if(Xt>0&&Zt&&Zt.start.row==Kt[Xt-1].row)Qt=Kt[Xt-1];else break}Qt.element.className="ace_gutter-active-line "+Qt.element.className,this.$cursorCell=Qt;break}}}}},zt.prototype.scrollLines=function(Vt){var Kt=this.config;if(this.config=Vt,this.$updateCursorRow(),this.$lines.pageChanged(Kt,Vt))return this.update(Vt);this.$lines.moveContainer(Vt);var Xt=Math.min(Vt.lastRow+Vt.gutterOffset,this.session.getLength()-1),Qt=this.oldLastRow;if(this.oldLastRow=Xt,!Kt||Qt<Vt.firstRow)return this.update(Vt);if(Xt<Kt.firstRow)return this.update(Vt);if(Kt.firstRow<Vt.firstRow)for(var Zt=this.session.getFoldedRowCount(Kt.firstRow,Vt.firstRow-1);Zt>0;Zt--)this.$lines.shift();if(Qt>Xt)for(var Zt=this.session.getFoldedRowCount(Xt+1,Qt);Zt>0;Zt--)this.$lines.pop();Vt.firstRow<Kt.firstRow&&this.$lines.unshift(this.$renderLines(Vt,Vt.firstRow,Kt.firstRow-1)),Xt>Qt&&this.$lines.push(this.$renderLines(Vt,Qt+1,Xt)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(Vt)},zt.prototype.$renderLines=function(Vt,Kt,Xt){for(var Qt=[],Zt=Kt,dr=this.session.getNextFoldLine(Zt),cr=dr?dr.start.row:1/0;Zt>cr&&(Zt=dr.end.row+1,dr=this.session.getNextFoldLine(Zt,dr),cr=dr?dr.start.row:1/0),!(Zt>Xt);){var Er=this.$lines.createCell(Zt,Vt,this.session,jt);this.$renderCell(Er,Vt,dr,Zt),Qt.push(Er),Zt++}return Qt},zt.prototype.$renderCell=function(Vt,Kt,Xt,Qt){var Zt=Vt.element,dr=this.session,cr=Zt.childNodes[0],Er=Zt.childNodes[1],pr=Zt.childNodes[2],gr=pr.firstChild,vr=dr.$firstLineNumber,yr=dr.$breakpoints,xr=dr.$decorations,rr=dr.gutterRenderer||this.$renderer,Lt=this.$showFoldWidgets&&dr.foldWidgets,Ht=Xt?Xt.start.row:Number.MAX_VALUE,Wt=Kt.lineHeight+"px",Gt=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",Yt=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",er=(rr?rr.getText(dr,Qt):Qt+vr).toString();if(this.$highlightGutterLine&&(Qt==this.$cursorRow||Xt&&Qt<this.$cursorRow&&Qt>=Ht&&this.$cursorRow<=Xt.end.row)&&(Gt+="ace_gutter-active-line ",this.$cursorCell!=Vt&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=Vt)),yr[Qt]&&(Gt+=yr[Qt]),xr[Qt]&&(Gt+=xr[Qt]),this.$annotations[Qt]&&Qt!==Ht&&(Gt+=this.$annotations[Qt].className),Lt){var lr=Lt[Qt];lr==null&&(lr=Lt[Qt]=dr.getFoldWidget(Qt))}if(lr){var Jt="ace_fold-widget ace_"+lr,Ut=lr=="start"&&Qt==Ht&&Qt<Xt.end.row;if(Ut){Jt+=" ace_closed";for(var ir="",Cr=!1,_r=Qt+1;_r<=Xt.end.row;_r++)if(this.$annotations[_r]){if(this.$annotations[_r].className===" ace_error"){Cr=!0,ir=" ace_error_fold";break}if(this.$annotations[_r].className===" ace_warning"){Cr=!0,ir=" ace_warning_fold";continue}}Gt+=ir}else Jt+=" ace_open";Er.className!=Jt&&(Er.className=Jt),At.setStyle(Er.style,"height",Wt),At.setStyle(Er.style,"display","inline-block"),Er.setAttribute("role","button"),Er.setAttribute("tabindex","-1");var $r=dr.getFoldWidgetRange(Qt);$r?Er.setAttribute("aria-label",Mt("gutter.code-folding.range.aria-label","Toggle code folding, rows $0 through $1",[$r.start.row+1,$r.end.row+1])):Xt?Er.setAttribute("aria-label",Mt("gutter.code-folding.closed.aria-label","Toggle code folding, rows $0 through $1",[Xt.start.row+1,Xt.end.row+1])):Er.setAttribute("aria-label",Mt("gutter.code-folding.open.aria-label","Toggle code folding, row $0",[Qt+1])),Ut?(Er.setAttribute("aria-expanded","false"),Er.setAttribute("title",Mt("gutter.code-folding.closed.title","Unfold code"))):(Er.setAttribute("aria-expanded","true"),Er.setAttribute("title",Mt("gutter.code-folding.open.title","Fold code")))}else Er&&(At.setStyle(Er.style,"display","none"),Er.setAttribute("tabindex","0"),Er.removeAttribute("role"),Er.removeAttribute("aria-label"));if(Cr&&this.$showFoldedAnnotations){pr.className="ace_gutter_annotation",gr.className=Yt,gr.className+=ir,At.setStyle(gr.style,"height",Wt),At.setStyle(pr.style,"display","block"),At.setStyle(pr.style,"height",Wt);var Tr;switch(ir){case" ace_error_fold":Tr=Mt("gutter.annotation.aria-label.error","Read annotations row $0",[er]);break;case" ace_warning_fold":Tr=Mt("gutter.annotation.aria-label.warning","Read annotations row $0",[er]);break}pr.setAttribute("aria-label",Tr),pr.setAttribute("tabindex","-1"),pr.setAttribute("role","button")}else if(this.$annotations[Qt]){pr.className="ace_gutter_annotation",gr.className=Yt,this.$useSvgGutterIcons?gr.className+=this.$annotations[Qt].className:Zt.classList.add(this.$annotations[Qt].className.replace(" ","")),At.setStyle(gr.style,"height",Wt),At.setStyle(pr.style,"display","block"),At.setStyle(pr.style,"height",Wt);var Tr;switch(this.$annotations[Qt].className){case" ace_error":Tr=Mt("gutter.annotation.aria-label.error","Read annotations row $0",[er]);break;case" ace_warning":Tr=Mt("gutter.annotation.aria-label.warning","Read annotations row $0",[er]);break;case" ace_info":Tr=Mt("gutter.annotation.aria-label.info","Read annotations row $0",[er]);break}pr.setAttribute("aria-label",Tr),pr.setAttribute("tabindex","-1"),pr.setAttribute("role","button")}else At.setStyle(pr.style,"display","none"),pr.removeAttribute("aria-label"),pr.removeAttribute("role"),pr.setAttribute("tabindex","0");return er!==cr.data&&(cr.data=er),Zt.className!=Gt&&(Zt.className=Gt),At.setStyle(Vt.element.style,"height",this.$lines.computeLineHeight(Qt,Kt,dr)+"px"),At.setStyle(Vt.element.style,"top",this.$lines.computeLineTop(Qt,Kt,dr)+"px"),Vt.text=er,pr.style.display==="none"&&Er.style.display==="none"?Vt.element.setAttribute("aria-hidden",!0):Vt.element.setAttribute("aria-hidden",!1),Vt},zt.prototype.setHighlightGutterLine=function(Vt){this.$highlightGutterLine=Vt},zt.prototype.setShowLineNumbers=function(Vt){this.$renderer=!Vt&&{getWidth:function(){return 0},getText:function(){return""}}},zt.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},zt.prototype.setShowFoldWidgets=function(Vt){Vt?At.addCssClass(this.element,"ace_folding-enabled"):At.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=Vt,this.$padding=null},zt.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},zt.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var Vt=At.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(Vt.borderLeftWidth)||0)+(parseInt(Vt.paddingLeft)||0)+1,this.$padding.right=(parseInt(Vt.borderRightWidth)||0)+(parseInt(Vt.paddingRight)||0),this.$padding},zt.prototype.getRegion=function(Vt){var Kt=this.$padding||this.$computePadding(),Xt=this.element.getBoundingClientRect();if(Vt.x<Kt.left+Xt.left)return"markers";if(this.$showFoldWidgets&&Vt.x>Xt.right-Kt.right)return"foldWidgets"},zt}();Nt.prototype.$fixedWidth=!1,Nt.prototype.$highlightGutterLine=!0,Nt.prototype.$renderer="",Nt.prototype.$showLineNumbers=!0,Nt.prototype.$showFoldWidgets=!0,Bt.implement(Nt.prototype,Ft);function jt(zt){var Vt=document.createTextNode("");zt.appendChild(Vt);var Kt=At.createElement("span");zt.appendChild(Kt);var Xt=At.createElement("span");zt.appendChild(Xt);var Qt=At.createElement("span");return Xt.appendChild(Qt),zt}Ct.Gutter=Nt}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(yt,Ct,$t){var At=yt("../range").Range,Bt=yt("../lib/dom"),Dt=function(){function kt(Mt){this.element=Bt.createElement("div"),this.element.className="ace_layer ace_marker-layer",Mt.appendChild(this.element)}return kt.prototype.setPadding=function(Mt){this.$padding=Mt},kt.prototype.setSession=function(Mt){this.session=Mt},kt.prototype.setMarkers=function(Mt){this.markers=Mt},kt.prototype.elt=function(Mt,Nt){var jt=this.i!=-1&&this.element.childNodes[this.i];jt?this.i++:(jt=document.createElement("div"),this.element.appendChild(jt),this.i=-1),jt.style.cssText=Nt,jt.className=Mt},kt.prototype.update=function(Mt){if(Mt){this.config=Mt,this.i=0;var Nt;for(var jt in this.markers){var zt=this.markers[jt];if(!zt.range){zt.update(Nt,this,this.session,Mt);continue}var Vt=zt.range.clipRows(Mt.firstRow,Mt.lastRow);if(!Vt.isEmpty())if(Vt=Vt.toScreenRange(this.session),zt.renderer){var Kt=this.$getTop(Vt.start.row,Mt),Xt=this.$padding+Vt.start.column*Mt.characterWidth;zt.renderer(Nt,Vt,Xt,Kt,Mt)}else zt.type=="fullLine"?this.drawFullLineMarker(Nt,Vt,zt.clazz,Mt):zt.type=="screenLine"?this.drawScreenLineMarker(Nt,Vt,zt.clazz,Mt):Vt.isMultiLine()?zt.type=="text"?this.drawTextMarker(Nt,Vt,zt.clazz,Mt):this.drawMultiLineMarker(Nt,Vt,zt.clazz,Mt):this.drawSingleLineMarker(Nt,Vt,zt.clazz+" ace_start ace_br15",Mt)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},kt.prototype.$getTop=function(Mt,Nt){return(Mt-Nt.firstRowScreen)*Nt.lineHeight},kt.prototype.drawTextMarker=function(Mt,Nt,jt,zt,Vt){for(var Kt=this.session,Xt=Nt.start.row,Qt=Nt.end.row,Zt=Xt,dr=0,cr=0,Er=Kt.getScreenLastRowColumn(Zt),pr=new At(Zt,Nt.start.column,Zt,cr);Zt<=Qt;Zt++)pr.start.row=pr.end.row=Zt,pr.start.column=Zt==Xt?Nt.start.column:Kt.getRowWrapIndent(Zt),pr.end.column=Er,dr=cr,cr=Er,Er=Zt+1<Qt?Kt.getScreenLastRowColumn(Zt+1):Zt==Qt?0:Nt.end.column,this.drawSingleLineMarker(Mt,pr,jt+(Zt==Xt?" ace_start":"")+" ace_br"+Ft(Zt==Xt||Zt==Xt+1&&Nt.start.column,dr<cr,cr>Er,Zt==Qt),zt,Zt==Qt?0:1,Vt)},kt.prototype.drawMultiLineMarker=function(Mt,Nt,jt,zt,Vt){var Kt=this.$padding,Xt=zt.lineHeight,Qt=this.$getTop(Nt.start.row,zt),Zt=Kt+Nt.start.column*zt.characterWidth;if(Vt=Vt||"",this.session.$bidiHandler.isBidiRow(Nt.start.row)){var dr=Nt.clone();dr.end.row=dr.start.row,dr.end.column=this.session.getLine(dr.start.row).length,this.drawBidiSingleLineMarker(Mt,dr,jt+" ace_br1 ace_start",zt,null,Vt)}else this.elt(jt+" ace_br1 ace_start","height:"+Xt+"px;right:0;top:"+Qt+"px;left:"+Zt+"px;"+(Vt||""));if(this.session.$bidiHandler.isBidiRow(Nt.end.row)){var dr=Nt.clone();dr.start.row=dr.end.row,dr.start.column=0,this.drawBidiSingleLineMarker(Mt,dr,jt+" ace_br12",zt,null,Vt)}else{Qt=this.$getTop(Nt.end.row,zt);var cr=Nt.end.column*zt.characterWidth;this.elt(jt+" ace_br12","height:"+Xt+"px;width:"+cr+"px;top:"+Qt+"px;left:"+Kt+"px;"+(Vt||""))}if(Xt=(Nt.end.row-Nt.start.row-1)*zt.lineHeight,!(Xt<=0)){Qt=this.$getTop(Nt.start.row+1,zt);var Er=(Nt.start.column?1:0)|(Nt.end.column?0:8);this.elt(jt+(Er?" ace_br"+Er:""),"height:"+Xt+"px;right:0;top:"+Qt+"px;left:"+Kt+"px;"+(Vt||""))}},kt.prototype.drawSingleLineMarker=function(Mt,Nt,jt,zt,Vt,Kt){if(this.session.$bidiHandler.isBidiRow(Nt.start.row))return this.drawBidiSingleLineMarker(Mt,Nt,jt,zt,Vt,Kt);var Xt=zt.lineHeight,Qt=(Nt.end.column+(Vt||0)-Nt.start.column)*zt.characterWidth,Zt=this.$getTop(Nt.start.row,zt),dr=this.$padding+Nt.start.column*zt.characterWidth;this.elt(jt,"height:"+Xt+"px;width:"+Qt+"px;top:"+Zt+"px;left:"+dr+"px;"+(Kt||""))},kt.prototype.drawBidiSingleLineMarker=function(Mt,Nt,jt,zt,Vt,Kt){var Xt=zt.lineHeight,Qt=this.$getTop(Nt.start.row,zt),Zt=this.$padding,dr=this.session.$bidiHandler.getSelections(Nt.start.column,Nt.end.column);dr.forEach(function(cr){this.elt(jt,"height:"+Xt+"px;width:"+(cr.width+(Vt||0))+"px;top:"+Qt+"px;left:"+(Zt+cr.left)+"px;"+(Kt||""))},this)},kt.prototype.drawFullLineMarker=function(Mt,Nt,jt,zt,Vt){var Kt=this.$getTop(Nt.start.row,zt),Xt=zt.lineHeight;Nt.start.row!=Nt.end.row&&(Xt+=this.$getTop(Nt.end.row,zt)-Kt),this.elt(jt,"height:"+Xt+"px;top:"+Kt+"px;left:0;right:0;"+(Vt||""))},kt.prototype.drawScreenLineMarker=function(Mt,Nt,jt,zt,Vt){var Kt=this.$getTop(Nt.start.row,zt),Xt=zt.lineHeight;this.elt(jt,"height:"+Xt+"px;top:"+Kt+"px;left:0;right:0;"+(Vt||""))},kt}();Dt.prototype.$padding=0;function Ft(kt,Mt,Nt,jt){return(kt?1:0)|(Mt?2:0)|(Nt?4:0)|(jt?8:0)}Ct.Marker=Dt}),ace.define("ace/layer/text_util",["require","exports","module"],function(yt,Ct,$t){var At=new Set(["text","rparen","lparen"]);Ct.isTextToken=function(Bt){return At.has(Bt)}}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config","ace/layer/text_util"],function(yt,Ct,$t){var At=yt("../lib/oop"),Bt=yt("../lib/dom"),Dt=yt("../lib/lang"),Ft=yt("./lines").Lines,kt=yt("../lib/event_emitter").EventEmitter,Mt=yt("../config").nls,Nt=yt("./text_util").isTextToken,jt=function(){function zt(Vt){this.dom=Bt,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",Vt.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new Ft(this.element)}return zt.prototype.$updateEolChar=function(){var Vt=this.session.doc,Kt=Vt.getNewLineCharacter()==`
`&&Vt.getNewLineMode()!="windows",Xt=Kt?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=Xt)return this.EOL_CHAR=Xt,!0},zt.prototype.setPadding=function(Vt){this.$padding=Vt,this.element.style.margin="0 "+Vt+"px"},zt.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},zt.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},zt.prototype.$setFontMetrics=function(Vt){this.$fontMetrics=Vt,this.$fontMetrics.on("changeCharacterSize",(function(Kt){this._signal("changeCharacterSize",Kt)}).bind(this)),this.$pollSizeChanges()},zt.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},zt.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},zt.prototype.setSession=function(Vt){this.session=Vt,Vt&&this.$computeTabString()},zt.prototype.setShowInvisibles=function(Vt){return this.showInvisibles==Vt?!1:(this.showInvisibles=Vt,typeof Vt=="string"?(this.showSpaces=/tab/i.test(Vt),this.showTabs=/space/i.test(Vt),this.showEOL=/eol/i.test(Vt)):this.showSpaces=this.showTabs=this.showEOL=Vt,this.$computeTabString(),!0)},zt.prototype.setDisplayIndentGuides=function(Vt){return this.displayIndentGuides==Vt?!1:(this.displayIndentGuides=Vt,this.$computeTabString(),!0)},zt.prototype.setHighlightIndentGuides=function(Vt){return this.$highlightIndentGuides===Vt?!1:(this.$highlightIndentGuides=Vt,Vt)},zt.prototype.$computeTabString=function(){var Vt=this.session.getTabSize();this.tabSize=Vt;for(var Kt=this.$tabStrings=[0],Xt=1;Xt<Vt+1;Xt++)if(this.showTabs){var Qt=this.dom.createElement("span");Qt.className="ace_invisible ace_invisible_tab",Qt.textContent=Dt.stringRepeat(this.TAB_CHAR,Xt),Kt.push(Qt)}else Kt.push(this.dom.createTextNode(Dt.stringRepeat(" ",Xt),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var Zt="ace_indent-guide",dr=this.showSpaces?" ace_invisible ace_invisible_space":"",cr=this.showSpaces?Dt.stringRepeat(this.SPACE_CHAR,this.tabSize):Dt.stringRepeat(" ",this.tabSize),Er=this.showTabs?" ace_invisible ace_invisible_tab":"",pr=this.showTabs?Dt.stringRepeat(this.TAB_CHAR,this.tabSize):cr,Qt=this.dom.createElement("span");Qt.className=Zt+dr,Qt.textContent=cr,this.$tabStrings[" "]=Qt;var Qt=this.dom.createElement("span");Qt.className=Zt+Er,Qt.textContent=pr,this.$tabStrings["	"]=Qt}},zt.prototype.updateLines=function(Vt,Kt,Xt){if(this.config.lastRow!=Vt.lastRow||this.config.firstRow!=Vt.firstRow)return this.update(Vt);this.config=Vt;for(var Qt=Math.max(Kt,Vt.firstRow),Zt=Math.min(Xt,Vt.lastRow),dr=this.element.childNodes,cr=0,pr=Vt.firstRow;pr<Qt;pr++){var gr=this.session.getFoldLine(pr);if(gr)if(gr.containsRow(Qt)){Qt=gr.start.row;break}else pr=gr.end.row;cr++}for(var Er=!1,pr=Qt,gr=this.session.getNextFoldLine(pr),vr=gr?gr.start.row:1/0;pr>vr&&(pr=gr.end.row+1,gr=this.session.getNextFoldLine(pr,gr),vr=gr?gr.start.row:1/0),!(pr>Zt);){var yr=dr[cr++];if(yr){this.dom.removeChildren(yr),this.$renderLine(yr,pr,pr==vr?gr:!1),Er&&(yr.style.top=this.$lines.computeLineTop(pr,Vt,this.session)+"px");var xr=Vt.lineHeight*this.session.getRowLength(pr)+"px";yr.style.height!=xr&&(Er=!0,yr.style.height=xr)}pr++}if(Er)for(;cr<this.$lines.cells.length;){var rr=this.$lines.cells[cr++];rr.element.style.top=this.$lines.computeLineTop(rr.row,Vt,this.session)+"px"}},zt.prototype.scrollLines=function(Vt){var Kt=this.config;if(this.config=Vt,this.$lines.pageChanged(Kt,Vt))return this.update(Vt);this.$lines.moveContainer(Vt);var Xt=Vt.lastRow,Qt=Kt?Kt.lastRow:-1;if(!Kt||Qt<Vt.firstRow)return this.update(Vt);if(Xt<Kt.firstRow)return this.update(Vt);if(!Kt||Kt.lastRow<Vt.firstRow)return this.update(Vt);if(Vt.lastRow<Kt.firstRow)return this.update(Vt);if(Kt.firstRow<Vt.firstRow)for(var Zt=this.session.getFoldedRowCount(Kt.firstRow,Vt.firstRow-1);Zt>0;Zt--)this.$lines.shift();if(Kt.lastRow>Vt.lastRow)for(var Zt=this.session.getFoldedRowCount(Vt.lastRow+1,Kt.lastRow);Zt>0;Zt--)this.$lines.pop();Vt.firstRow<Kt.firstRow&&this.$lines.unshift(this.$renderLinesFragment(Vt,Vt.firstRow,Kt.firstRow-1)),Vt.lastRow>Kt.lastRow&&this.$lines.push(this.$renderLinesFragment(Vt,Kt.lastRow+1,Vt.lastRow)),this.$highlightIndentGuide()},zt.prototype.$renderLinesFragment=function(Vt,Kt,Xt){for(var Qt=[],Zt=Kt,dr=this.session.getNextFoldLine(Zt),cr=dr?dr.start.row:1/0;Zt>cr&&(Zt=dr.end.row+1,dr=this.session.getNextFoldLine(Zt,dr),cr=dr?dr.start.row:1/0),!(Zt>Xt);){var Er=this.$lines.createCell(Zt,Vt,this.session),pr=Er.element;this.dom.removeChildren(pr),Bt.setStyle(pr.style,"height",this.$lines.computeLineHeight(Zt,Vt,this.session)+"px"),Bt.setStyle(pr.style,"top",this.$lines.computeLineTop(Zt,Vt,this.session)+"px"),this.$renderLine(pr,Zt,Zt==cr?dr:!1),this.$useLineGroups()?pr.className="ace_line_group":pr.className="ace_line",Qt.push(Er),Zt++}return Qt},zt.prototype.update=function(Vt){this.$lines.moveContainer(Vt),this.config=Vt;for(var Kt=Vt.firstRow,Xt=Vt.lastRow,Qt=this.$lines;Qt.getLength();)Qt.pop();Qt.push(this.$renderLinesFragment(Vt,Kt,Xt))},zt.prototype.$renderToken=function(Vt,Kt,Xt,Qt){for(var Zt=this,dr=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,cr=this.dom.createFragment(this.element),Er,pr=0;Er=dr.exec(Qt);){var gr=Er[1],vr=Er[2],yr=Er[3],xr=Er[4],rr=Er[5];if(!(!Zt.showSpaces&&vr)){var Lt=pr!=Er.index?Qt.slice(pr,Er.index):"";if(pr=Er.index+Er[0].length,Lt&&cr.appendChild(this.dom.createTextNode(Lt,this.element)),gr){var Ht=Zt.session.getScreenTabSize(Kt+Er.index);cr.appendChild(Zt.$tabStrings[Ht].cloneNode(!0)),Kt+=Ht-1}else if(vr)if(Zt.showSpaces){var Wt=this.dom.createElement("span");Wt.className="ace_invisible ace_invisible_space",Wt.textContent=Dt.stringRepeat(Zt.SPACE_CHAR,vr.length),cr.appendChild(Wt)}else cr.appendChild(this.dom.createTextNode(vr,this.element));else if(yr){var Wt=this.dom.createElement("span");Wt.className="ace_invisible ace_invisible_space ace_invalid",Wt.textContent=Dt.stringRepeat(Zt.SPACE_CHAR,yr.length),cr.appendChild(Wt)}else if(xr){Kt+=1;var Wt=this.dom.createElement("span");Wt.style.width=Zt.config.characterWidth*2+"px",Wt.className=Zt.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",Wt.textContent=Zt.showSpaces?Zt.SPACE_CHAR:xr,cr.appendChild(Wt)}else if(rr){Kt+=1;var Wt=this.dom.createElement("span");Wt.style.width=Zt.config.characterWidth*2+"px",Wt.className="ace_cjk",Wt.textContent=rr,cr.appendChild(Wt)}}}if(cr.appendChild(this.dom.createTextNode(pr?Qt.slice(pr):Qt,this.element)),Nt(Xt.type))Vt.appendChild(cr);else{var Gt="ace_"+Xt.type.replace(/\./g," ace_"),Wt=this.dom.createElement("span");Xt.type=="fold"&&(Wt.style.width=Xt.value.length*this.config.characterWidth+"px",Wt.setAttribute("title",Mt("inline-fold.closed.title","Unfold code"))),Wt.className=Gt,Wt.appendChild(cr),Vt.appendChild(Wt)}return Kt+Qt.length},zt.prototype.renderIndentGuide=function(Vt,Kt,Xt){var Qt=Kt.search(this.$indentGuideRe);if(Qt<=0||Qt>=Xt)return Kt;if(Kt[0]==" "){Qt-=Qt%this.tabSize;for(var Zt=Qt/this.tabSize,dr=0;dr<Zt;dr++)Vt.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),Kt.substr(Qt)}else if(Kt[0]=="	"){for(var dr=0;dr<Qt;dr++)Vt.appendChild(this.$tabStrings["	"].cloneNode(!0));return this.$highlightIndentGuide(),Kt.substr(Qt)}return this.$highlightIndentGuide(),Kt},zt.prototype.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var Vt=this.session.doc.$lines;if(Vt){var Kt=this.session.selection.getCursor(),Xt=/^\s*/.exec(this.session.doc.getLine(Kt.row))[0].length,Qt=Math.floor(Xt/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:Qt,start:Kt.row};var Zt=this.session.$bracketHighlight;if(Zt){for(var dr=this.session.$bracketHighlight.ranges,cr=0;cr<dr.length;cr++)if(Kt.row!==dr[cr].start.row){this.$highlightIndentGuideMarker.end=dr[cr].start.row,Kt.row>dr[cr].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&Vt[Kt.row]!==""&&Kt.column===Vt[Kt.row].length){this.$highlightIndentGuideMarker.dir=1;for(var cr=Kt.row+1;cr<Vt.length;cr++){var Er=Vt[cr],pr=/^\s*/.exec(Er)[0].length;if(Er!==""&&(this.$highlightIndentGuideMarker.end=cr,pr<=Xt))break}}this.$renderHighlightIndentGuide()}}},zt.prototype.$clearActiveIndentGuide=function(){for(var Vt=this.$lines.cells,Kt=0;Kt<Vt.length;Kt++){var Xt=Vt[Kt],Qt=Xt.element.childNodes;if(Qt.length>0){for(var Zt=0;Zt<Qt.length;Zt++)if(Qt[Zt].classList&&Qt[Zt].classList.contains("ace_indent-guide-active")){Qt[Zt].classList.remove("ace_indent-guide-active");break}}}},zt.prototype.$setIndentGuideActive=function(Vt,Kt){var Xt=this.session.doc.getLine(Vt.row);if(Xt!==""){var Qt=Vt.element.childNodes;if(Qt){var Zt=Qt[Kt-1];Zt&&Zt.classList&&Zt.classList.contains("ace_indent-guide")&&Zt.classList.add("ace_indent-guide-active")}}},zt.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var Vt=this.$lines.cells;this.$clearActiveIndentGuide();var Kt=this.$highlightIndentGuideMarker.indentLevel;if(Kt!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var Xt=0;Xt<Vt.length;Xt++){var Qt=Vt[Xt];if(this.$highlightIndentGuideMarker.end&&Qt.row>=this.$highlightIndentGuideMarker.start+1){if(Qt.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(Qt,Kt)}}else for(var Xt=Vt.length-1;Xt>=0;Xt--){var Qt=Vt[Xt];if(this.$highlightIndentGuideMarker.end&&Qt.row<this.$highlightIndentGuideMarker.start){if(Qt.row<=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(Qt,Kt)}}}},zt.prototype.$createLineElement=function(Vt){var Kt=this.dom.createElement("div");return Kt.className="ace_line",Kt.style.height=this.config.lineHeight+"px",Kt},zt.prototype.$renderWrappedLine=function(Vt,Kt,Xt){var Qt=0,Zt=0,dr=Xt[0],cr=0,Er=this.$createLineElement();Vt.appendChild(Er);for(var pr=0;pr<Kt.length;pr++){var gr=Kt[pr],vr=gr.value;if(pr==0&&this.displayIndentGuides){if(Qt=vr.length,vr=this.renderIndentGuide(Er,vr,dr),!vr)continue;Qt-=vr.length}if(Qt+vr.length<dr)cr=this.$renderToken(Er,cr,gr,vr),Qt+=vr.length;else{for(;Qt+vr.length>=dr;)cr=this.$renderToken(Er,cr,gr,vr.substring(0,dr-Qt)),vr=vr.substring(dr-Qt),Qt=dr,Er=this.$createLineElement(),Vt.appendChild(Er),Er.appendChild(this.dom.createTextNode(Dt.stringRepeat(" ",Xt.indent),this.element)),Zt++,cr=0,dr=Xt[Zt]||Number.MAX_VALUE;vr.length!=0&&(Qt+=vr.length,cr=this.$renderToken(Er,cr,gr,vr))}}Xt[Xt.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(Er,cr,null,"",!0)},zt.prototype.$renderSimpleLine=function(Vt,Kt){for(var Xt=0,Qt=0;Qt<Kt.length;Qt++){var Zt=Kt[Qt],dr=Zt.value;if(!(Qt==0&&this.displayIndentGuides&&(dr=this.renderIndentGuide(Vt,dr),!dr))){if(Xt+dr.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(Vt,Xt,Zt,dr);Xt=this.$renderToken(Vt,Xt,Zt,dr)}}},zt.prototype.$renderOverflowMessage=function(Vt,Kt,Xt,Qt,Zt){Xt&&this.$renderToken(Vt,Kt,Xt,Qt.slice(0,this.MAX_LINE_LENGTH-Kt));var dr=this.dom.createElement("span");dr.className="ace_inline_button ace_keyword ace_toggle_wrap",dr.textContent=Zt?"<hide>":"<click to see more...>",Vt.appendChild(dr)},zt.prototype.$renderLine=function(Vt,Kt,Xt){if(!Xt&&Xt!=!1&&(Xt=this.session.getFoldLine(Kt)),Xt)var Qt=this.$getFoldLineTokens(Kt,Xt);else var Qt=this.session.getTokens(Kt);var Zt=Vt;if(Qt.length){var dr=this.session.getRowSplitData(Kt);if(dr&&dr.length){this.$renderWrappedLine(Vt,Qt,dr);var Zt=Vt.lastChild}else{var Zt=Vt;this.$useLineGroups()&&(Zt=this.$createLineElement(),Vt.appendChild(Zt)),this.$renderSimpleLine(Zt,Qt)}}else this.$useLineGroups()&&(Zt=this.$createLineElement(),Vt.appendChild(Zt));if(this.showEOL&&Zt){Xt&&(Kt=Xt.end.row);var cr=this.dom.createElement("span");cr.className="ace_invisible ace_invisible_eol",cr.textContent=Kt==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,Zt.appendChild(cr)}},zt.prototype.$getFoldLineTokens=function(Vt,Kt){var Xt=this.session,Qt=[];function Zt(cr,Er,pr){for(var gr=0,vr=0;vr+cr[gr].value.length<Er;)if(vr+=cr[gr].value.length,gr++,gr==cr.length)return;if(vr!=Er){var yr=cr[gr].value.substring(Er-vr);yr.length>pr-Er&&(yr=yr.substring(0,pr-Er)),Qt.push({type:cr[gr].type,value:yr}),vr=Er+yr.length,gr+=1}for(;vr<pr&&gr<cr.length;){var yr=cr[gr].value;yr.length+vr>pr?Qt.push({type:cr[gr].type,value:yr.substring(0,pr-vr)}):Qt.push(cr[gr]),vr+=yr.length,gr+=1}}var dr=Xt.getTokens(Vt);return Kt.walk(function(cr,Er,pr,gr,vr){cr!=null?Qt.push({type:"fold",value:cr}):(vr&&(dr=Xt.getTokens(Er)),dr.length&&Zt(dr,gr,pr))},Kt.end.row,this.session.getLine(Kt.end.row).length),Qt},zt.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},zt}();jt.prototype.EOF_CHAR="¶",jt.prototype.EOL_CHAR_LF="¬",jt.prototype.EOL_CHAR_CRLF="¤",jt.prototype.EOL_CHAR=jt.prototype.EOL_CHAR_LF,jt.prototype.TAB_CHAR="—",jt.prototype.SPACE_CHAR="·",jt.prototype.$padding=0,jt.prototype.MAX_LINE_LENGTH=1e4,jt.prototype.showInvisibles=!1,jt.prototype.showSpaces=!1,jt.prototype.showTabs=!1,jt.prototype.showEOL=!1,jt.prototype.displayIndentGuides=!0,jt.prototype.$highlightIndentGuides=!0,jt.prototype.$tabStrings=[],jt.prototype.destroy={},jt.prototype.onChangeTabSize=jt.prototype.$computeTabString,At.implement(jt.prototype,kt),Ct.Text=jt}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(yt,Ct,$t){var At=yt("../lib/dom"),Bt=function(){function Dt(Ft){this.element=At.createElement("div"),this.element.className="ace_layer ace_cursor-layer",Ft.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),At.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return Dt.prototype.$updateOpacity=function(Ft){for(var kt=this.cursors,Mt=kt.length;Mt--;)At.setStyle(kt[Mt].style,"opacity",Ft?"":"0")},Dt.prototype.$startCssAnimation=function(){for(var Ft=this.cursors,kt=Ft.length;kt--;)Ft[kt].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&At.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},Dt.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,At.removeCssClass(this.element,"ace_animate-blinking")},Dt.prototype.setPadding=function(Ft){this.$padding=Ft},Dt.prototype.setSession=function(Ft){this.session=Ft},Dt.prototype.setBlinking=function(Ft){Ft!=this.isBlinking&&(this.isBlinking=Ft,this.restartTimer())},Dt.prototype.setBlinkInterval=function(Ft){Ft!=this.blinkInterval&&(this.blinkInterval=Ft,this.restartTimer())},Dt.prototype.setSmoothBlinking=function(Ft){Ft!=this.smoothBlinking&&(this.smoothBlinking=Ft,At.setCssClass(this.element,"ace_smooth-blinking",Ft),this.$updateCursors(!0),this.restartTimer())},Dt.prototype.addCursor=function(){var Ft=At.createElement("div");return Ft.className="ace_cursor",this.element.appendChild(Ft),this.cursors.push(Ft),Ft},Dt.prototype.removeCursor=function(){if(this.cursors.length>1){var Ft=this.cursors.pop();return Ft.parentNode.removeChild(Ft),Ft}},Dt.prototype.hideCursor=function(){this.isVisible=!1,At.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},Dt.prototype.showCursor=function(){this.isVisible=!0,At.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},Dt.prototype.restartTimer=function(){var Ft=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,At.removeCssClass(this.element,"ace_smooth-blinking")),Ft(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout((function(){this.$isSmoothBlinking&&At.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),At.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var kt=(function(){this.timeoutId=setTimeout(function(){Ft(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){Ft(!0),kt()},this.blinkInterval),kt()}},Dt.prototype.getPixelPosition=function(Ft,kt){if(!this.config||!this.session)return{left:0,top:0};Ft||(Ft=this.session.selection.getCursor());var Mt=this.session.documentToScreenPosition(Ft),Nt=this.$padding+(this.session.$bidiHandler.isBidiRow(Mt.row,Ft.row)?this.session.$bidiHandler.getPosLeft(Mt.column):Mt.column*this.config.characterWidth),jt=(Mt.row-(kt?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:Nt,top:jt}},Dt.prototype.isCursorInView=function(Ft,kt){return Ft.top>=0&&Ft.top<kt.maxHeight},Dt.prototype.update=function(Ft){this.config=Ft;var kt=this.session.$selectionMarkers,Mt=0,Nt=0;(kt===void 0||kt.length===0)&&(kt=[{cursor:null}]);for(var Mt=0,jt=kt.length;Mt<jt;Mt++){var zt=this.getPixelPosition(kt[Mt].cursor,!0);if(!((zt.top>Ft.height+Ft.offset||zt.top<0)&&Mt>1)){var Vt=this.cursors[Nt++]||this.addCursor(),Kt=Vt.style;this.drawCursor?this.drawCursor(Vt,zt,Ft,kt[Mt],this.session):this.isCursorInView(zt,Ft)?(At.setStyle(Kt,"display","block"),At.translate(Vt,zt.left,zt.top),At.setStyle(Kt,"width",Math.round(Ft.characterWidth)+"px"),At.setStyle(Kt,"height",Ft.lineHeight+"px")):At.setStyle(Kt,"display","none")}}for(;this.cursors.length>Nt;)this.removeCursor();var Xt=this.session.getOverwrite();this.$setOverwrite(Xt),this.$pixelPos=zt,this.restartTimer()},Dt.prototype.$setOverwrite=function(Ft){Ft!=this.overwrite&&(this.overwrite=Ft,Ft?At.addCssClass(this.element,"ace_overwrite-cursors"):At.removeCssClass(this.element,"ace_overwrite-cursors"))},Dt.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},Dt}();Bt.prototype.$padding=0,Bt.prototype.drawCursor=null,Ct.Cursor=Bt}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(yt,Ct,$t){var At=this&&this.__extends||function(){var Vt=function(Kt,Xt){return Vt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Qt,Zt){Qt.__proto__=Zt}||function(Qt,Zt){for(var dr in Zt)Object.prototype.hasOwnProperty.call(Zt,dr)&&(Qt[dr]=Zt[dr])},Vt(Kt,Xt)};return function(Kt,Xt){if(typeof Xt!="function"&&Xt!==null)throw new TypeError("Class extends value "+String(Xt)+" is not a constructor or null");Vt(Kt,Xt);function Qt(){this.constructor=Kt}Kt.prototype=Xt===null?Object.create(Xt):(Qt.prototype=Xt.prototype,new Qt)}}(),Bt=yt("./lib/oop"),Dt=yt("./lib/dom"),Ft=yt("./lib/event"),kt=yt("./lib/event_emitter").EventEmitter,Mt=32768,Nt=function(){function Vt(Kt,Xt){this.element=Dt.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+Xt,this.inner=Dt.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),Kt.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,Ft.addListener(this.element,"scroll",this.onScroll.bind(this)),Ft.addListener(this.element,"mousedown",Ft.preventDefault)}return Vt.prototype.setVisible=function(Kt){this.element.style.display=Kt?"":"none",this.isVisible=Kt,this.coeff=1},Vt}();Bt.implement(Nt.prototype,kt);var jt=function(Vt){At(Kt,Vt);function Kt(Xt,Qt){var Zt=Vt.call(this,Xt,"-v")||this;return Zt.scrollTop=0,Zt.scrollHeight=0,Qt.$scrollbarWidth=Zt.width=Dt.scrollbarWidth(Xt.ownerDocument),Zt.inner.style.width=Zt.element.style.width=(Zt.width||15)+5+"px",Zt.$minWidth=0,Zt}return Kt.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var Xt=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-Xt)/(this.coeff-Xt)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},Kt.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},Kt.prototype.setHeight=function(Xt){this.element.style.height=Xt+"px"},Kt.prototype.setScrollHeight=function(Xt){this.scrollHeight=Xt,Xt>Mt?(this.coeff=Mt/Xt,Xt=Mt):this.coeff!=1&&(this.coeff=1),this.inner.style.height=Xt+"px"},Kt.prototype.setScrollTop=function(Xt){this.scrollTop!=Xt&&(this.skipEvent=!0,this.scrollTop=Xt,this.element.scrollTop=Xt*this.coeff)},Kt}(Nt);jt.prototype.setInnerHeight=jt.prototype.setScrollHeight;var zt=function(Vt){At(Kt,Vt);function Kt(Xt,Qt){var Zt=Vt.call(this,Xt,"-h")||this;return Zt.scrollLeft=0,Zt.height=Qt.$scrollbarWidth,Zt.inner.style.height=Zt.element.style.height=(Zt.height||15)+5+"px",Zt}return Kt.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},Kt.prototype.getHeight=function(){return this.isVisible?this.height:0},Kt.prototype.setWidth=function(Xt){this.element.style.width=Xt+"px"},Kt.prototype.setInnerWidth=function(Xt){this.inner.style.width=Xt+"px"},Kt.prototype.setScrollWidth=function(Xt){this.inner.style.width=Xt+"px"},Kt.prototype.setScrollLeft=function(Xt){this.scrollLeft!=Xt&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=Xt)},Kt}(Nt);Ct.ScrollBar=jt,Ct.ScrollBarV=jt,Ct.ScrollBarH=zt,Ct.VScrollBar=jt,Ct.HScrollBar=zt}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(yt,Ct,$t){var At=this&&this.__extends||function(){var zt=function(Vt,Kt){return zt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Xt,Qt){Xt.__proto__=Qt}||function(Xt,Qt){for(var Zt in Qt)Object.prototype.hasOwnProperty.call(Qt,Zt)&&(Xt[Zt]=Qt[Zt])},zt(Vt,Kt)};return function(Vt,Kt){if(typeof Kt!="function"&&Kt!==null)throw new TypeError("Class extends value "+String(Kt)+" is not a constructor or null");zt(Vt,Kt);function Xt(){this.constructor=Vt}Vt.prototype=Kt===null?Object.create(Kt):(Xt.prototype=Kt.prototype,new Xt)}}(),Bt=yt("./lib/oop"),Dt=yt("./lib/dom"),Ft=yt("./lib/event"),kt=yt("./lib/event_emitter").EventEmitter;Dt.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
  position: absolute;
  background: rgba(128, 128, 128, 0.6);
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  border: 1px solid #bbb;
  border-radius: 2px;
  z-index: 8;
}
.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
  position: absolute;
  z-index: 6;
  background: none;
  overflow: hidden!important;
}
.ace_editor>.ace_sb-v {
  z-index: 6;
  right: 0;
  top: 0;
  width: 12px;
}
.ace_editor>.ace_sb-v div {
  z-index: 8;
  right: 0;
  width: 100%;
}
.ace_editor>.ace_sb-h {
  bottom: 0;
  left: 0;
  height: 12px;
}
.ace_editor>.ace_sb-h div {
  bottom: 0;
  height: 100%;
}
.ace_editor>.ace_sb_grabbed {
  z-index: 8;
  background: #000;
}`,"ace_scrollbar.css",!1);var Mt=function(){function zt(Vt,Kt){this.element=Dt.createElement("div"),this.element.className="ace_sb"+Kt,this.inner=Dt.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,Vt.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,Ft.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return zt.prototype.setVisible=function(Vt){this.element.style.display=Vt?"":"none",this.isVisible=Vt,this.coeff=1},zt}();Bt.implement(Mt.prototype,kt);var Nt=function(zt){At(Vt,zt);function Vt(Kt,Xt){var Qt=zt.call(this,Kt,"-v")||this;return Qt.scrollTop=0,Qt.scrollHeight=0,Qt.parent=Kt,Qt.width=Qt.VScrollWidth,Qt.renderer=Xt,Qt.inner.style.width=Qt.element.style.width=(Qt.width||15)+"px",Qt.$minWidth=0,Qt}return Vt.prototype.onMouseDown=function(Kt,Xt){if(Kt==="mousedown"&&!(Ft.getButton(Xt)!==0||Xt.detail===2)){if(Xt.target===this.inner){var Qt=this,Zt=Xt.clientY,dr=function(xr){Zt=xr.clientY},cr=function(){clearInterval(vr)},Er=Xt.clientY,pr=this.thumbTop,gr=function(){if(Zt!==void 0){var xr=Qt.scrollTopFromThumbTop(pr+Zt-Er);xr!==Qt.scrollTop&&Qt._emit("scroll",{data:xr})}};Ft.capture(this.inner,dr,cr);var vr=setInterval(gr,20);return Ft.preventDefault(Xt)}var yr=Xt.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(yr)}),Ft.preventDefault(Xt)}},Vt.prototype.getHeight=function(){return this.height},Vt.prototype.scrollTopFromThumbTop=function(Kt){var Xt=Kt*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return Xt=Xt>>0,Xt<0?Xt=0:Xt>this.pageHeight-this.viewHeight&&(Xt=this.pageHeight-this.viewHeight),Xt},Vt.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},Vt.prototype.setHeight=function(Kt){this.height=Math.max(0,Kt),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},Vt.prototype.setScrollHeight=function(Kt,Xt){this.pageHeight===Kt&&!Xt||(this.pageHeight=Kt,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},Vt.prototype.setScrollTop=function(Kt){this.scrollTop=Kt,Kt<0&&(Kt=0),this.thumbTop=Kt*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},Vt}(Mt);Nt.prototype.setInnerHeight=Nt.prototype.setScrollHeight;var jt=function(zt){At(Vt,zt);function Vt(Kt,Xt){var Qt=zt.call(this,Kt,"-h")||this;return Qt.scrollLeft=0,Qt.scrollWidth=0,Qt.height=Qt.HScrollHeight,Qt.inner.style.height=Qt.element.style.height=(Qt.height||12)+"px",Qt.renderer=Xt,Qt}return Vt.prototype.onMouseDown=function(Kt,Xt){if(Kt==="mousedown"&&!(Ft.getButton(Xt)!==0||Xt.detail===2)){if(Xt.target===this.inner){var Qt=this,Zt=Xt.clientX,dr=function(xr){Zt=xr.clientX},cr=function(){clearInterval(vr)},Er=Xt.clientX,pr=this.thumbLeft,gr=function(){if(Zt!==void 0){var xr=Qt.scrollLeftFromThumbLeft(pr+Zt-Er);xr!==Qt.scrollLeft&&Qt._emit("scroll",{data:xr})}};Ft.capture(this.inner,dr,cr);var vr=setInterval(gr,20);return Ft.preventDefault(Xt)}var yr=Xt.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(yr)}),Ft.preventDefault(Xt)}},Vt.prototype.getHeight=function(){return this.isVisible?this.height:0},Vt.prototype.scrollLeftFromThumbLeft=function(Kt){var Xt=Kt*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return Xt=Xt>>0,Xt<0?Xt=0:Xt>this.pageWidth-this.viewWidth&&(Xt=this.pageWidth-this.viewWidth),Xt},Vt.prototype.setWidth=function(Kt){this.width=Math.max(0,Kt),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},Vt.prototype.setScrollWidth=function(Kt,Xt){this.pageWidth===Kt&&!Xt||(this.pageWidth=Kt,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},Vt.prototype.setScrollLeft=function(Kt){this.scrollLeft=Kt,Kt<0&&(Kt=0),this.thumbLeft=Kt*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},Vt}(Mt);jt.prototype.setInnerWidth=jt.prototype.setScrollWidth,Ct.ScrollBar=Nt,Ct.ScrollBarV=Nt,Ct.ScrollBarH=jt,Ct.VScrollBar=Nt,Ct.HScrollBar=jt}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(yt,Ct,$t){var At=yt("./lib/event"),Bt=function(){function Dt(Ft,kt){this.onRender=Ft,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=kt||window;var Mt=this;this._flush=function(Nt){Mt.pending=!1;var jt=Mt.changes;if(jt&&(At.blockIdle(100),Mt.changes=0,Mt.onRender(jt)),Mt.changes){if(Mt.$recursionLimit--<0)return;Mt.schedule()}else Mt.$recursionLimit=2}}return Dt.prototype.schedule=function(Ft){this.changes=this.changes|Ft,this.changes&&!this.pending&&(At.nextFrame(this._flush),this.pending=!0)},Dt.prototype.clear=function(Ft){var kt=this.changes;return this.changes=0,kt},Dt}();Ct.RenderLoop=Bt}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(yt,Ct,$t){var At=yt("../lib/oop"),Bt=yt("../lib/dom"),Dt=yt("../lib/lang"),Ft=yt("../lib/event"),kt=yt("../lib/useragent"),Mt=yt("../lib/event_emitter").EventEmitter,Nt=512,jt=typeof ResizeObserver=="function",zt=200,Vt=function(){function Kt(Xt){this.el=Bt.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=Bt.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=Bt.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),Xt.appendChild(this.el),this.$measureNode.textContent=Dt.stringRepeat("X",Nt),this.$characterSize={width:0,height:0},jt?this.$addObserver():this.checkForSizeChanges()}return Kt.prototype.$setMeasureNodeStyles=function(Xt,Qt){Xt.width=Xt.height="auto",Xt.left=Xt.top="0px",Xt.visibility="hidden",Xt.position="absolute",Xt.whiteSpace="pre",kt.isIE<8?Xt["font-family"]="inherit":Xt.font="inherit",Xt.overflow=Qt?"hidden":"visible"},Kt.prototype.checkForSizeChanges=function(Xt){if(Xt===void 0&&(Xt=this.$measureSizes()),Xt&&(this.$characterSize.width!==Xt.width||this.$characterSize.height!==Xt.height)){this.$measureNode.style.fontWeight="bold";var Qt=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=Xt,this.charSizes=Object.create(null),this.allowBoldFonts=Qt&&Qt.width===Xt.width&&Qt.height===Xt.height,this._emit("changeCharacterSize",{data:Xt})}},Kt.prototype.$addObserver=function(){var Xt=this;this.$observer=new window.ResizeObserver(function(Qt){Xt.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},Kt.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var Xt=this;return this.$pollSizeChangesTimer=Ft.onIdle(function Qt(){Xt.checkForSizeChanges(),Ft.onIdle(Qt,500)},500)},Kt.prototype.setPolling=function(Xt){Xt?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},Kt.prototype.$measureSizes=function(Xt){var Qt={height:(Xt||this.$measureNode).clientHeight,width:(Xt||this.$measureNode).clientWidth/Nt};return Qt.width===0||Qt.height===0?null:Qt},Kt.prototype.$measureCharWidth=function(Xt){this.$main.textContent=Dt.stringRepeat(Xt,Nt);var Qt=this.$main.getBoundingClientRect();return Qt.width/Nt},Kt.prototype.getCharacterWidth=function(Xt){var Qt=this.charSizes[Xt];return Qt===void 0&&(Qt=this.charSizes[Xt]=this.$measureCharWidth(Xt)/this.$characterSize.width),Qt},Kt.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},Kt.prototype.$getZoom=function(Xt){return!Xt||!Xt.parentElement?1:(Number(window.getComputedStyle(Xt).zoom)||1)*this.$getZoom(Xt.parentElement)},Kt.prototype.$initTransformMeasureNodes=function(){var Xt=function(Qt,Zt){return["div",{style:"position: absolute;top:"+Qt+"px;left:"+Zt+"px;"}]};this.els=Bt.buildDom([Xt(0,0),Xt(zt,0),Xt(0,zt),Xt(zt,zt)],this.el)},Kt.prototype.transformCoordinates=function(Xt,Qt){if(Xt){var Zt=this.$getZoom(this.el);Xt=pr(1/Zt,Xt)}function dr(Ut,ir,Cr){var _r=Ut[1]*ir[0]-Ut[0]*ir[1];return[(-ir[1]*Cr[0]+ir[0]*Cr[1])/_r,(+Ut[1]*Cr[0]-Ut[0]*Cr[1])/_r]}function cr(Ut,ir){return[Ut[0]-ir[0],Ut[1]-ir[1]]}function Er(Ut,ir){return[Ut[0]+ir[0],Ut[1]+ir[1]]}function pr(Ut,ir){return[Ut*ir[0],Ut*ir[1]]}this.els||this.$initTransformMeasureNodes();function gr(Ut){var ir=Ut.getBoundingClientRect();return[ir.left,ir.top]}var vr=gr(this.els[0]),yr=gr(this.els[1]),xr=gr(this.els[2]),rr=gr(this.els[3]),Lt=dr(cr(rr,yr),cr(rr,xr),cr(Er(yr,xr),Er(rr,vr))),Ht=pr(1+Lt[0],cr(yr,vr)),Wt=pr(1+Lt[1],cr(xr,vr));if(Qt){var Gt=Qt,Yt=Lt[0]*Gt[0]/zt+Lt[1]*Gt[1]/zt+1,er=Er(pr(Gt[0],Ht),pr(Gt[1],Wt));return Er(pr(1/Yt/zt,er),vr)}var lr=cr(Xt,vr),Jt=dr(cr(Ht,pr(Lt[0],lr)),cr(Wt,pr(Lt[1],lr)),lr);return pr(zt,Jt)},Kt}();Vt.prototype.$characterSize={width:0,height:0},At.implement(Vt.prototype,Mt),Ct.FontMetrics=Vt}),ace.define("ace/css/editor-css",["require","exports","module"],function(yt,Ct,$t){$t.exports=`
.ace_br1 {border-top-left-radius    : 3px;}
.ace_br2 {border-top-right-radius   : 3px;}
.ace_br3 {border-top-left-radius    : 3px; border-top-right-radius:    3px;}
.ace_br4 {border-bottom-right-radius: 3px;}
.ace_br5 {border-top-left-radius    : 3px; border-bottom-right-radius: 3px;}
.ace_br6 {border-top-right-radius   : 3px; border-bottom-right-radius: 3px;}
.ace_br7 {border-top-left-radius    : 3px; border-top-right-radius:    3px; border-bottom-right-radius: 3px;}
.ace_br8 {border-bottom-left-radius : 3px;}
.ace_br9 {border-top-left-radius    : 3px; border-bottom-left-radius:  3px;}
.ace_br10{border-top-right-radius   : 3px; border-bottom-left-radius:  3px;}
.ace_br11{border-top-left-radius    : 3px; border-top-right-radius:    3px; border-bottom-left-radius:  3px;}
.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius:  3px;}
.ace_br13{border-top-left-radius    : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius:  3px;}
.ace_br14{border-top-right-radius   : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius:  3px;}
.ace_br15{border-top-left-radius    : 3px; border-top-right-radius:    3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}


.ace_editor {
    position: relative;
    overflow: hidden;
    padding: 0;
    font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
    direction: ltr;
    text-align: left;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.ace_scroller {
    position: absolute;
    overflow: hidden;
    top: 0;
    bottom: 0;
    background-color: inherit;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    cursor: text;
}

.ace_content {
    position: absolute;
    box-sizing: border-box;
    min-width: 100%;
    contain: style size layout;
    font-variant-ligatures: no-common-ligatures;
}

.ace_keyboard-focus:focus {
    box-shadow: inset 0 0 0 2px #5E9ED6;
    outline: none;
}

.ace_dragging .ace_scroller:before{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    content: '';
    background: rgba(250, 250, 250, 0.01);
    z-index: 1000;
}
.ace_dragging.ace_dark .ace_scroller:before{
    background: rgba(0, 0, 0, 0.01);
}

.ace_gutter {
    position: absolute;
    overflow : hidden;
    width: auto;
    top: 0;
    bottom: 0;
    left: 0;
    cursor: default;
    z-index: 4;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    contain: style size layout;
}

.ace_gutter-active-line {
    position: absolute;
    left: 0;
    right: 0;
}

.ace_scroller.ace_scroll-left:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
    pointer-events: none;
}

.ace_gutter-cell, .ace_gutter-cell_svg-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding-left: 19px;
    padding-right: 6px;
    background-repeat: no-repeat;
}

.ace_gutter-cell_svg-icons .ace_gutter_annotation {
    margin-left: -14px;
    float: left;
}

.ace_gutter-cell .ace_gutter_annotation {
    margin-left: -19px;
    float: left;
}

.ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");
    background-repeat: no-repeat;
    background-position: 2px center;
}

.ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");
    background-repeat: no-repeat;
    background-position: 2px center;
}

.ace_gutter-cell.ace_info, .ace_icon.ace_info {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
    background-repeat: no-repeat;
    background-position: 2px center;
}
.ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
}

.ace_icon_svg.ace_error {
    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
    background-color: crimson;
}
.ace_icon_svg.ace_warning {
    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
    background-color: darkorange;
}
.ace_icon_svg.ace_info {
    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
    background-color: royalblue;
}

.ace_icon_svg.ace_error_fold {
    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
    background-color: crimson;
}
.ace_icon_svg.ace_warning_fold {
    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
    background-color: darkorange;
}

.ace_scrollbar {
    contain: strict;
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 6;
}

.ace_scrollbar-inner {
    position: absolute;
    cursor: text;
    left: 0;
    top: 0;
}

.ace_scrollbar-v{
    overflow-x: hidden;
    overflow-y: scroll;
    top: 0;
}

.ace_scrollbar-h {
    overflow-x: scroll;
    overflow-y: hidden;
    left: 0;
}

.ace_print-margin {
    position: absolute;
    height: 100%;
}

.ace_text-input {
    position: absolute;
    z-index: 0;
    width: 0.5em;
    height: 1em;
    opacity: 0;
    background: transparent;
    -moz-appearance: none;
    appearance: none;
    border: none;
    resize: none;
    outline: none;
    overflow: hidden;
    font: inherit;
    padding: 0 1px;
    margin: 0 -1px;
    contain: strict;
    -ms-user-select: text;
    -moz-user-select: text;
    -webkit-user-select: text;
    user-select: text;
    /*with \`pre-line\` chrome inserts &nbsp; instead of space*/
    white-space: pre!important;
}
.ace_text-input.ace_composition {
    background: transparent;
    color: inherit;
    z-index: 1000;
    opacity: 1;
}
.ace_composition_placeholder { color: transparent }
.ace_composition_marker { 
    border-bottom: 1px solid;
    position: absolute;
    border-radius: 0;
    margin-top: 1px;
}

[ace_nocontext=true] {
    transform: none!important;
    filter: none!important;
    clip-path: none!important;
    mask : none!important;
    contain: none!important;
    perspective: none!important;
    mix-blend-mode: initial!important;
    z-index: auto;
}

.ace_layer {
    z-index: 1;
    position: absolute;
    overflow: hidden;
    /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
    word-wrap: normal;
    white-space: pre;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    /* setting pointer-events: auto; on node under the mouse, which changes
        during scroll, will break mouse wheel scrolling in Safari */
    pointer-events: none;
}

.ace_gutter-layer {
    position: relative;
    width: auto;
    text-align: right;
    pointer-events: auto;
    height: 1000000px;
    contain: style size layout;
}

.ace_text-layer {
    font: inherit !important;
    position: absolute;
    height: 1000000px;
    width: 1000000px;
    contain: style size layout;
}

.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
    contain: style size layout;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.ace_hidpi .ace_text-layer,
.ace_hidpi .ace_gutter-layer,
.ace_hidpi .ace_content,
.ace_hidpi .ace_gutter {
    contain: strict;
}
.ace_hidpi .ace_text-layer > .ace_line, 
.ace_hidpi .ace_text-layer > .ace_line_group {
    contain: strict;
}

.ace_cjk {
    display: inline-block;
    text-align: center;
}

.ace_cursor-layer {
    z-index: 4;
}

.ace_cursor {
    z-index: 4;
    position: absolute;
    box-sizing: border-box;
    border-left: 2px solid;
    /* workaround for smooth cursor repaintng whole screen in chrome */
    transform: translatez(0);
}

.ace_multiselect .ace_cursor {
    border-left-width: 1px;
}

.ace_slim-cursors .ace_cursor {
    border-left-width: 1px;
}

.ace_overwrite-cursors .ace_cursor {
    border-left-width: 0;
    border-bottom: 1px solid;
}

.ace_hidden-cursors .ace_cursor {
    opacity: 0.2;
}

.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
    opacity: 0;
}

.ace_smooth-blinking .ace_cursor {
    transition: opacity 0.18s;
}

.ace_animate-blinking .ace_cursor {
    animation-duration: 1000ms;
    animation-timing-function: step-end;
    animation-name: blink-ace-animate;
    animation-iteration-count: infinite;
}

.ace_animate-blinking.ace_smooth-blinking .ace_cursor {
    animation-duration: 1000ms;
    animation-timing-function: ease-in-out;
    animation-name: blink-ace-animate-smooth;
}
    
@keyframes blink-ace-animate {
    from, to { opacity: 1; }
    60% { opacity: 0; }
}

@keyframes blink-ace-animate-smooth {
    from, to { opacity: 1; }
    45% { opacity: 1; }
    60% { opacity: 0; }
    85% { opacity: 0; }
}

.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
    position: absolute;
    z-index: 3;
}

.ace_marker-layer .ace_selection {
    position: absolute;
    z-index: 5;
}

.ace_marker-layer .ace_bracket {
    position: absolute;
    z-index: 6;
}

.ace_marker-layer .ace_error_bracket {
    position: absolute;
    border-bottom: 1px solid #DE5555;
    border-radius: 0;
}

.ace_marker-layer .ace_active-line {
    position: absolute;
    z-index: 2;
}

.ace_marker-layer .ace_selected-word {
    position: absolute;
    z-index: 4;
    box-sizing: border-box;
}

.ace_line .ace_fold {
    box-sizing: border-box;

    display: inline-block;
    height: 11px;
    margin-top: -2px;
    vertical-align: middle;

    background-image:
        url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
        url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
    background-repeat: no-repeat, repeat-x;
    background-position: center center, top left;
    color: transparent;

    border: 1px solid black;
    border-radius: 2px;

    cursor: pointer;
    pointer-events: auto;
}

.ace_dark .ace_fold {
}

.ace_fold:hover{
    background-image:
        url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
        url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
}

.ace_tooltip {
    background-color: #f5f5f5;
    border: 1px solid gray;
    border-radius: 1px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    color: black;
    max-width: 100%;
    padding: 3px 4px;
    position: fixed;
    z-index: 999999;
    box-sizing: border-box;
    cursor: default;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: normal;
    font-style: normal;
    font-weight: normal;
    letter-spacing: normal;
    pointer-events: none;
    overflow: auto;
    max-width: min(60em, 66vw);
    overscroll-behavior: contain;
}
.ace_tooltip pre {
    white-space: pre-wrap;
}

.ace_tooltip.ace_dark {
    background-color: #636363;
    color: #fff;
}

.ace_tooltip:focus {
    outline: 1px solid #5E9ED6;
}

.ace_icon {
    display: inline-block;
    width: 18px;
    vertical-align: top;
}

.ace_icon_svg {
    display: inline-block;
    width: 12px;
    vertical-align: top;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 12px;
    -webkit-mask-position: center;
}

.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
    padding-right: 13px;
}

.ace_fold-widget {
    box-sizing: border-box;

    margin: 0 -12px 0 1px;
    display: none;
    width: 11px;
    vertical-align: top;

    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
    background-repeat: no-repeat;
    background-position: center;

    border-radius: 3px;
    
    border: 1px solid transparent;
    cursor: pointer;
}

.ace_folding-enabled .ace_fold-widget {
    display: inline-block;   
}

.ace_fold-widget.ace_end {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
}

.ace_fold-widget.ace_closed {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
}

.ace_fold-widget:hover {
    border: 1px solid rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
}

.ace_fold-widget:active {
    border: 1px solid rgba(0, 0, 0, 0.4);
    background-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}
/**
 * Dark version for fold widgets
 */
.ace_dark .ace_fold-widget {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
}
.ace_dark .ace_fold-widget.ace_end {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
}
.ace_dark .ace_fold-widget.ace_closed {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
}
.ace_dark .ace_fold-widget:hover {
    box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
}
.ace_dark .ace_fold-widget:active {
    box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
}

.ace_inline_button {
    border: 1px solid lightgray;
    display: inline-block;
    margin: -1px 8px;
    padding: 0 5px;
    pointer-events: auto;
    cursor: pointer;
}
.ace_inline_button:hover {
    border-color: gray;
    background: rgba(200,200,200,0.2);
    display: inline-block;
    pointer-events: auto;
}

.ace_fold-widget.ace_invalid {
    background-color: #FFB4B4;
    border-color: #DE5555;
}

.ace_fade-fold-widgets .ace_fold-widget {
    transition: opacity 0.4s ease 0.05s;
    opacity: 0;
}

.ace_fade-fold-widgets:hover .ace_fold-widget {
    transition: opacity 0.05s ease 0.05s;
    opacity:1;
}

.ace_underline {
    text-decoration: underline;
}

.ace_bold {
    font-weight: bold;
}

.ace_nobold .ace_bold {
    font-weight: normal;
}

.ace_italic {
    font-style: italic;
}


.ace_error-marker {
    background-color: rgba(255, 0, 0,0.2);
    position: absolute;
    z-index: 9;
}

.ace_highlight-marker {
    background-color: rgba(255, 255, 0,0.2);
    position: absolute;
    z-index: 8;
}

.ace_mobile-menu {
    position: absolute;
    line-height: 1.5;
    border-radius: 4px;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    background: white;
    box-shadow: 1px 3px 2px grey;
    border: 1px solid #dcdcdc;
    color: black;
}
.ace_dark > .ace_mobile-menu {
    background: #333;
    color: #ccc;
    box-shadow: 1px 3px 2px grey;
    border: 1px solid #444;

}
.ace_mobile-button {
    padding: 2px;
    cursor: pointer;
    overflow: hidden;
}
.ace_mobile-button:hover {
    background-color: #eee;
    opacity:1;
}
.ace_mobile-button:active {
    background-color: #ddd;
}

.ace_placeholder {
    position: relative;
    font-family: arial;
    transform: scale(0.9);
    transform-origin: left;
    white-space: pre;
    opacity: 0.7;
    margin: 0 10px;
    z-index: 1;
}

.ace_ghost_text {
    opacity: 0.5;
    font-style: italic;
}

.ace_ghost_text > div {
    white-space: pre;
}

.ghost_text_line_wrapped::after {
    content: "↩";
    position: absolute;
}

.ace_lineWidgetContainer.ace_ghost_text {
    margin: 0px 4px
}

.ace_screenreader-only {
    position:absolute;
    left:-10000px;
    top:auto;
    width:1px;
    height:1px;
    overflow:hidden;
}`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(yt,Ct,$t){var At=yt("../lib/dom"),Bt=yt("../lib/oop"),Dt=yt("../lib/event_emitter").EventEmitter,Ft=function(){function kt(Mt,Nt){this.canvas=At.createElement("canvas"),this.renderer=Nt,this.pixelRatio=1,this.maxHeight=Nt.layerConfig.maxHeight,this.lineHeight=Nt.layerConfig.lineHeight,this.canvasHeight=Mt.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=Mt.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},Mt.element.appendChild(this.canvas)}return kt.prototype.$updateDecorators=function(Mt){var Nt=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(Mt){this.maxHeight=Mt.maxHeight,this.lineHeight=Mt.lineHeight,this.canvasHeight=Mt.height;var jt=(Mt.lastRow+1)*this.lineHeight;jt<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight}var zt=this.canvas.getContext("2d");function Vt(rr,Lt){return rr.priority<Lt.priority?-1:rr.priority>Lt.priority?1:0}var Kt=this.renderer.session.$annotations;if(zt.clearRect(0,0,this.canvas.width,this.canvas.height),Kt){var Xt={info:1,warning:2,error:3};Kt.forEach(function(rr){rr.priority=Xt[rr.type]||null}),Kt=Kt.sort(Vt);for(var Qt=this.renderer.session.$foldData,Zt=0;Zt<Kt.length;Zt++){var dr=Kt[Zt].row,cr=this.compensateFoldRows(dr,Qt),Er=Math.round((dr-cr)*this.lineHeight*this.heightRatio),pr=Math.round((dr-cr)*this.lineHeight*this.heightRatio),gr=Math.round(((dr-cr)*this.lineHeight+this.lineHeight)*this.heightRatio),vr=gr-pr;if(vr<this.minDecorationHeight){var yr=(pr+gr)/2|0;yr<this.halfMinDecorationHeight?yr=this.halfMinDecorationHeight:yr+this.halfMinDecorationHeight>this.canvasHeight&&(yr=this.canvasHeight-this.halfMinDecorationHeight),pr=Math.round(yr-this.halfMinDecorationHeight),gr=Math.round(yr+this.halfMinDecorationHeight)}zt.fillStyle=Nt[Kt[Zt].type]||null,zt.fillRect(0,Er,this.canvasWidth,gr-pr)}}var xr=this.renderer.session.selection.getCursor();if(xr){var cr=this.compensateFoldRows(xr.row,Qt),Er=Math.round((xr.row-cr)*this.lineHeight*this.heightRatio);zt.fillStyle="rgba(0, 0, 0, 0.5)",zt.fillRect(0,Er,this.canvasWidth,2)}},kt.prototype.compensateFoldRows=function(Mt,Nt){var jt=0;if(Nt&&Nt.length>0)for(var zt=0;zt<Nt.length;zt++)Mt>Nt[zt].start.row&&Mt<Nt[zt].end.row?jt+=Mt-Nt[zt].start.row:Mt>=Nt[zt].end.row&&(jt+=Nt[zt].end.row-Nt[zt].start.row);return jt},kt}();Bt.implement(Ft.prototype,Dt),Ct.Decorator=Ft}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor-css","ace/layer/decorators","ace/lib/useragent"],function(yt,Ct,$t){var At=yt("./lib/oop"),Bt=yt("./lib/dom"),Dt=yt("./lib/lang"),Ft=yt("./config"),kt=yt("./layer/gutter").Gutter,Mt=yt("./layer/marker").Marker,Nt=yt("./layer/text").Text,jt=yt("./layer/cursor").Cursor,zt=yt("./scrollbar").HScrollBar,Vt=yt("./scrollbar").VScrollBar,Kt=yt("./scrollbar_custom").HScrollBar,Xt=yt("./scrollbar_custom").VScrollBar,Qt=yt("./renderloop").RenderLoop,Zt=yt("./layer/font_metrics").FontMetrics,dr=yt("./lib/event_emitter").EventEmitter,cr=yt("./css/editor-css"),Er=yt("./layer/decorators").Decorator,pr=yt("./lib/useragent");Bt.importCssString(cr,"ace_editor.css",!1);var gr=function(){function vr(yr,xr){var rr=this;this.container=yr||Bt.createElement("div"),Bt.addCssClass(this.container,"ace_editor"),Bt.HI_DPI&&Bt.addCssClass(this.container,"ace_hidpi"),this.setTheme(xr),Ft.get("useStrictCSP")==null&&Ft.set("useStrictCSP",!1),this.$gutter=Bt.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=Bt.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=Bt.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new kt(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new Mt(this.content);var Lt=this.$textLayer=new Nt(this.content);this.canvas=Lt.element,this.$markerFront=new Mt(this.content),this.$cursorLayer=new jt(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new Vt(this.container,this),this.scrollBarH=new zt(this.container,this),this.scrollBarV.on("scroll",function(Ht){rr.$scrollAnimation||rr.session.setScrollTop(Ht.data-rr.scrollMargin.top)}),this.scrollBarH.on("scroll",function(Ht){rr.$scrollAnimation||rr.session.setScrollLeft(Ht.data-rr.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new Zt(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(Ht){rr.updateCharacterSize(),rr.onResize(!0,rr.gutterWidth,rr.$size.width,rr.$size.height),rr._signal("changeCharacterSize",Ht)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!pr.isIOS,this.$loop=new Qt(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),Ft.resetOptions(this),Ft._signal("renderer",this)}return vr.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),Bt.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},vr.prototype.setSession=function(yr){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=yr,yr&&this.scrollMargin.top&&yr.getScrollTop()<=0&&yr.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(yr),this.$markerBack.setSession(yr),this.$markerFront.setSession(yr),this.$gutterLayer.setSession(yr),this.$textLayer.setSession(yr),yr&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},vr.prototype.updateLines=function(yr,xr,rr){if(xr===void 0&&(xr=1/0),this.$changedLines?(this.$changedLines.firstRow>yr&&(this.$changedLines.firstRow=yr),this.$changedLines.lastRow<xr&&(this.$changedLines.lastRow=xr)):this.$changedLines={firstRow:yr,lastRow:xr},this.$changedLines.lastRow<this.layerConfig.firstRow)if(rr)this.$changedLines.lastRow=this.layerConfig.lastRow;else return;this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},vr.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},vr.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},vr.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},vr.prototype.updateFull=function(yr){yr?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},vr.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},vr.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},vr.prototype.onResize=function(yr,xr,rr,Lt){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=yr?1:0;var Ht=this.container;Lt||(Lt=Ht.clientHeight||Ht.scrollHeight),!Lt&&this.$maxLines&&this.lineHeight>1&&(!Ht.style.height||Ht.style.height=="0px")&&(Ht.style.height="1px",Lt=Ht.clientHeight||Ht.scrollHeight),rr||(rr=Ht.clientWidth||Ht.scrollWidth);var Wt=this.$updateCachedSize(yr,xr,rr,Lt);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!rr&&!Lt)return this.resizing=0;yr&&(this.$gutterLayer.$padding=null),yr?this.$renderChanges(Wt|this.$changes,!0):this.$loop.schedule(Wt|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},vr.prototype.$updateCachedSize=function(yr,xr,rr,Lt){Lt-=this.$extraHeight||0;var Ht=0,Wt=this.$size,Gt={width:Wt.width,height:Wt.height,scrollerHeight:Wt.scrollerHeight,scrollerWidth:Wt.scrollerWidth};if(Lt&&(yr||Wt.height!=Lt)&&(Wt.height=Lt,Ht|=this.CHANGE_SIZE,Wt.scrollerHeight=Wt.height,this.$horizScroll&&(Wt.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(Wt.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",Ht=Ht|this.CHANGE_SCROLL),rr&&(yr||Wt.width!=rr)){Ht|=this.CHANGE_SIZE,Wt.width=rr,xr==null&&(xr=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=xr,Bt.setStyle(this.scrollBarH.element.style,"left",xr+"px"),Bt.setStyle(this.scroller.style,"left",xr+this.margin.left+"px"),Wt.scrollerWidth=Math.max(0,rr-xr-this.scrollBarV.getWidth()-this.margin.h),Bt.setStyle(this.$gutter.style,"left",this.margin.left+"px");var Yt=this.scrollBarV.getWidth()+"px";Bt.setStyle(this.scrollBarH.element.style,"right",Yt),Bt.setStyle(this.scroller.style,"right",Yt),Bt.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(Wt.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||yr)&&(Ht|=this.CHANGE_FULL)}return Wt.$dirty=!rr||!Lt,Ht&&this._signal("resize",Gt),Ht},vr.prototype.onGutterResize=function(yr){var xr=this.$showGutter?yr:0;xr!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,xr,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},vr.prototype.adjustWrapLimit=function(){var yr=this.$size.scrollerWidth-this.$padding*2,xr=Math.floor(yr/this.characterWidth);return this.session.adjustWrapLimit(xr,this.$showPrintMargin&&this.$printMarginColumn)},vr.prototype.setAnimatedScroll=function(yr){this.setOption("animatedScroll",yr)},vr.prototype.getAnimatedScroll=function(){return this.$animatedScroll},vr.prototype.setShowInvisibles=function(yr){this.setOption("showInvisibles",yr),this.session.$bidiHandler.setShowInvisibles(yr)},vr.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},vr.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},vr.prototype.setDisplayIndentGuides=function(yr){this.setOption("displayIndentGuides",yr)},vr.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},vr.prototype.setHighlightIndentGuides=function(yr){this.setOption("highlightIndentGuides",yr)},vr.prototype.setShowPrintMargin=function(yr){this.setOption("showPrintMargin",yr)},vr.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},vr.prototype.setPrintMarginColumn=function(yr){this.setOption("printMarginColumn",yr)},vr.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},vr.prototype.getShowGutter=function(){return this.getOption("showGutter")},vr.prototype.setShowGutter=function(yr){return this.setOption("showGutter",yr)},vr.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},vr.prototype.setFadeFoldWidgets=function(yr){this.setOption("fadeFoldWidgets",yr)},vr.prototype.setHighlightGutterLine=function(yr){this.setOption("highlightGutterLine",yr)},vr.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},vr.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var yr=Bt.createElement("div");yr.className="ace_layer ace_print-margin-layer",this.$printMarginEl=Bt.createElement("div"),this.$printMarginEl.className="ace_print-margin",yr.appendChild(this.$printMarginEl),this.content.insertBefore(yr,this.content.firstChild)}var xr=this.$printMarginEl.style;xr.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",xr.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},vr.prototype.getContainerElement=function(){return this.container},vr.prototype.getMouseEventTarget=function(){return this.scroller},vr.prototype.getTextAreaContainer=function(){return this.container},vr.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var yr=this.textarea.style,xr=this.$composition;if(!this.$keepTextAreaAtCursor&&!xr){Bt.translate(this.textarea,-100,0);return}var rr=this.$cursorLayer.$pixelPos;if(rr){xr&&xr.markerRange&&(rr=this.$cursorLayer.getPixelPosition(xr.markerRange.start,!0));var Lt=this.layerConfig,Ht=rr.top,Wt=rr.left;Ht-=Lt.offset;var Gt=xr&&xr.useTextareaForIME||pr.isMobile?this.lineHeight:1;if(Ht<0||Ht>Lt.height-Gt){Bt.translate(this.textarea,0,0);return}var Yt=1,er=this.$size.height-Gt;if(!xr)Ht+=this.lineHeight;else if(xr.useTextareaForIME){var lr=this.textarea.value;Yt=this.characterWidth*this.session.$getStringScreenWidth(lr)[0]}else Ht+=this.lineHeight+2;Wt-=this.scrollLeft,Wt>this.$size.scrollerWidth-Yt&&(Wt=this.$size.scrollerWidth-Yt),Wt+=this.gutterWidth+this.margin.left,Bt.setStyle(yr,"height",Gt+"px"),Bt.setStyle(yr,"width",Yt+"px"),Bt.translate(this.textarea,Math.min(Wt,this.$size.scrollerWidth-Yt),Math.min(Ht,er))}}},vr.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},vr.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},vr.prototype.getLastFullyVisibleRow=function(){var yr=this.layerConfig,xr=yr.lastRow,rr=this.session.documentToScreenRow(xr,0)*yr.lineHeight;return rr-this.session.getScrollTop()>yr.height-yr.lineHeight?xr-1:xr},vr.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},vr.prototype.setPadding=function(yr){this.$padding=yr,this.$textLayer.setPadding(yr),this.$cursorLayer.setPadding(yr),this.$markerFront.setPadding(yr),this.$markerBack.setPadding(yr),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},vr.prototype.setScrollMargin=function(yr,xr,rr,Lt){var Ht=this.scrollMargin;Ht.top=yr|0,Ht.bottom=xr|0,Ht.right=Lt|0,Ht.left=rr|0,Ht.v=Ht.top+Ht.bottom,Ht.h=Ht.left+Ht.right,Ht.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-Ht.top),this.updateFull()},vr.prototype.setMargin=function(yr,xr,rr,Lt){var Ht=this.margin;Ht.top=yr|0,Ht.bottom=xr|0,Ht.right=Lt|0,Ht.left=rr|0,Ht.v=Ht.top+Ht.bottom,Ht.h=Ht.left+Ht.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},vr.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},vr.prototype.setHScrollBarAlwaysVisible=function(yr){this.setOption("hScrollBarAlwaysVisible",yr)},vr.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},vr.prototype.setVScrollBarAlwaysVisible=function(yr){this.setOption("vScrollBarAlwaysVisible",yr)},vr.prototype.$updateScrollBarV=function(){var yr=this.layerConfig.maxHeight,xr=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(yr-=(xr-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>yr-xr&&(yr=this.scrollTop+xr,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(yr+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},vr.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},vr.prototype.freeze=function(){this.$frozen=!0},vr.prototype.unfreeze=function(){this.$frozen=!1},vr.prototype.$renderChanges=function(yr,xr){if(this.$changes&&(yr|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!yr&&!xr){this.$changes|=yr;return}if(this.$size.$dirty)return this.$changes|=yr,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",yr),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var rr=this.layerConfig;if(yr&this.CHANGE_FULL||yr&this.CHANGE_SIZE||yr&this.CHANGE_TEXT||yr&this.CHANGE_LINES||yr&this.CHANGE_SCROLL||yr&this.CHANGE_H_SCROLL){if(yr|=this.$computeLayerConfig()|this.$loop.clear(),rr.firstRow!=this.layerConfig.firstRow&&rr.firstRowScreen==this.layerConfig.firstRowScreen){var Lt=this.scrollTop+(rr.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;Lt>0&&(this.scrollTop=Lt,yr=yr|this.CHANGE_SCROLL,yr|=this.$computeLayerConfig()|this.$loop.clear())}rr=this.layerConfig,this.$updateScrollBarV(),yr&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),Bt.translate(this.content,-this.scrollLeft,-rr.offset);var Ht=rr.width+2*this.$padding+"px",Wt=rr.minHeight+"px";Bt.setStyle(this.content.style,"width",Ht),Bt.setStyle(this.content.style,"height",Wt)}if(yr&this.CHANGE_H_SCROLL&&(Bt.translate(this.content,-this.scrollLeft,-rr.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),yr&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(rr),this.$showGutter&&this.$gutterLayer.update(rr),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(rr),this.$markerBack.update(rr),this.$markerFront.update(rr),this.$cursorLayer.update(rr),this.$moveTextAreaToCursor(),this._signal("afterRender",yr);return}if(yr&this.CHANGE_SCROLL){this.$changedLines=null,yr&this.CHANGE_TEXT||yr&this.CHANGE_LINES?this.$textLayer.update(rr):this.$textLayer.scrollLines(rr),this.$showGutter&&(yr&this.CHANGE_GUTTER||yr&this.CHANGE_LINES?this.$gutterLayer.update(rr):this.$gutterLayer.scrollLines(rr)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(rr),this.$markerBack.update(rr),this.$markerFront.update(rr),this.$cursorLayer.update(rr),this.$moveTextAreaToCursor(),this._signal("afterRender",yr);return}yr&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(rr),this.$showGutter&&this.$gutterLayer.update(rr),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(rr)):yr&this.CHANGE_LINES?((this.$updateLines()||yr&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(rr),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(rr)):yr&this.CHANGE_TEXT||yr&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(rr),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(rr)):yr&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(rr),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(rr)),yr&this.CHANGE_CURSOR&&(this.$cursorLayer.update(rr),this.$moveTextAreaToCursor()),yr&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(rr),yr&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(rr),this._signal("afterRender",yr)},vr.prototype.$autosize=function(){var yr=this.session.getScreenLength()*this.lineHeight,xr=this.$maxLines*this.lineHeight,rr=Math.min(xr,Math.max((this.$minLines||1)*this.lineHeight,yr))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(rr+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&rr>this.$maxPixelHeight&&(rr=this.$maxPixelHeight);var Lt=rr<=2*this.lineHeight,Ht=!Lt&&yr>xr;if(rr!=this.desiredHeight||this.$size.height!=this.desiredHeight||Ht!=this.$vScroll){Ht!=this.$vScroll&&(this.$vScroll=Ht,this.scrollBarV.setVisible(Ht));var Wt=this.container.clientWidth;this.container.style.height=rr+"px",this.$updateCachedSize(!0,this.$gutterWidth,Wt,rr),this.desiredHeight=rr,this._signal("autosize")}},vr.prototype.$computeLayerConfig=function(){var yr=this.session,xr=this.$size,rr=xr.height<=2*this.lineHeight,Lt=this.session.getScreenLength(),Ht=Lt*this.lineHeight,Wt=this.$getLongestLine(),Gt=!rr&&(this.$hScrollBarAlwaysVisible||xr.scrollerWidth-Wt-2*this.$padding<0),Yt=this.$horizScroll!==Gt;Yt&&(this.$horizScroll=Gt,this.scrollBarH.setVisible(Gt));var er=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var lr=xr.scrollerHeight+this.lineHeight,Jt=!this.$maxLines&&this.$scrollPastEnd?(xr.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;Ht+=Jt;var Ut=this.scrollMargin;this.session.setScrollTop(Math.max(-Ut.top,Math.min(this.scrollTop,Ht-xr.scrollerHeight+Ut.bottom))),this.session.setScrollLeft(Math.max(-Ut.left,Math.min(this.scrollLeft,Wt+2*this.$padding-xr.scrollerWidth+Ut.right)));var ir=!rr&&(this.$vScrollBarAlwaysVisible||xr.scrollerHeight-Ht+Jt<0||this.scrollTop>Ut.top),Cr=er!==ir;Cr&&(this.$vScroll=ir,this.scrollBarV.setVisible(ir));var _r=this.scrollTop%this.lineHeight,$r=Math.ceil(lr/this.lineHeight)-1,Tr=Math.max(0,Math.round((this.scrollTop-_r)/this.lineHeight)),Dr=Tr+$r,Ar,Fr,Rr=this.lineHeight;Tr=yr.screenToDocumentRow(Tr,0);var wr=yr.getFoldLine(Tr);wr&&(Tr=wr.start.row),Ar=yr.documentToScreenRow(Tr,0),Fr=yr.getRowLength(Tr)*Rr,Dr=Math.min(yr.screenToDocumentRow(Dr,0),yr.getLength()-1),lr=xr.scrollerHeight+yr.getRowLength(Dr)*Rr+Fr,_r=this.scrollTop-Ar*Rr;var Sr=0;return(this.layerConfig.width!=Wt||Yt)&&(Sr=this.CHANGE_H_SCROLL),(Yt||Cr)&&(Sr|=this.$updateCachedSize(!0,this.gutterWidth,xr.width,xr.height),this._signal("scrollbarVisibilityChanged"),Cr&&(Wt=this.$getLongestLine())),this.layerConfig={width:Wt,padding:this.$padding,firstRow:Tr,firstRowScreen:Ar,lastRow:Dr,lineHeight:Rr,characterWidth:this.characterWidth,minHeight:lr,maxHeight:Ht,offset:_r,gutterOffset:Rr?Math.max(0,Math.ceil((_r+xr.height-xr.scrollerHeight)/Rr)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(Wt-this.$padding),Sr},vr.prototype.$updateLines=function(){if(this.$changedLines){var yr=this.$changedLines.firstRow,xr=this.$changedLines.lastRow;this.$changedLines=null;var rr=this.layerConfig;if(!(yr>rr.lastRow+1)&&!(xr<rr.firstRow)){if(xr===1/0){this.$showGutter&&this.$gutterLayer.update(rr),this.$textLayer.update(rr);return}return this.$textLayer.updateLines(rr,yr,xr),!0}}},vr.prototype.$getLongestLine=function(){var yr=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(yr+=1),this.$textLayer&&yr>this.$textLayer.MAX_LINE_LENGTH&&(yr=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(yr*this.characterWidth))},vr.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},vr.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},vr.prototype.addGutterDecoration=function(yr,xr){this.$gutterLayer.addGutterDecoration(yr,xr)},vr.prototype.removeGutterDecoration=function(yr,xr){this.$gutterLayer.removeGutterDecoration(yr,xr)},vr.prototype.updateBreakpoints=function(yr){this._rows=yr,this.$loop.schedule(this.CHANGE_GUTTER)},vr.prototype.setAnnotations=function(yr){this.$gutterLayer.setAnnotations(yr),this.$loop.schedule(this.CHANGE_GUTTER)},vr.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},vr.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},vr.prototype.showCursor=function(){this.$cursorLayer.showCursor()},vr.prototype.scrollSelectionIntoView=function(yr,xr,rr){this.scrollCursorIntoView(yr,rr),this.scrollCursorIntoView(xr,rr)},vr.prototype.scrollCursorIntoView=function(yr,xr,rr){if(this.$size.scrollerHeight!==0){var Lt=this.$cursorLayer.getPixelPosition(yr),Ht=Lt.left,Wt=Lt.top,Gt=rr&&rr.top||0,Yt=rr&&rr.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var er=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;er+Gt>Wt?(xr&&er+Gt>Wt+this.lineHeight&&(Wt-=xr*this.$size.scrollerHeight),Wt===0&&(Wt=-this.scrollMargin.top),this.session.setScrollTop(Wt)):er+this.$size.scrollerHeight-Yt<Wt+this.lineHeight&&(xr&&er+this.$size.scrollerHeight-Yt<Wt-this.lineHeight&&(Wt+=xr*this.$size.scrollerHeight),this.session.setScrollTop(Wt+this.lineHeight+Yt-this.$size.scrollerHeight));var lr=this.scrollLeft,Jt=2*this.layerConfig.characterWidth;Ht-Jt<lr?(Ht-=Jt,Ht<this.$padding+Jt&&(Ht=-this.scrollMargin.left),this.session.setScrollLeft(Ht)):(Ht+=Jt,lr+this.$size.scrollerWidth<Ht+this.characterWidth?this.session.setScrollLeft(Math.round(Ht+this.characterWidth-this.$size.scrollerWidth)):lr<=this.$padding&&Ht-lr<this.characterWidth&&this.session.setScrollLeft(0))}},vr.prototype.getScrollTop=function(){return this.session.getScrollTop()},vr.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},vr.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},vr.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},vr.prototype.scrollToRow=function(yr){this.session.setScrollTop(yr*this.lineHeight)},vr.prototype.alignCursor=function(yr,xr){typeof yr=="number"&&(yr={row:yr,column:0});var rr=this.$cursorLayer.getPixelPosition(yr),Lt=this.$size.scrollerHeight-this.lineHeight,Ht=rr.top-Lt*(xr||0);return this.session.setScrollTop(Ht),Ht},vr.prototype.$calcSteps=function(yr,xr){var rr=0,Lt=this.STEPS,Ht=[],Wt=function(Gt,Yt,er){return er*(Math.pow(Gt-1,3)+1)+Yt};for(rr=0;rr<Lt;++rr)Ht.push(Wt(rr/this.STEPS,yr,xr-yr));return Ht},vr.prototype.scrollToLine=function(yr,xr,rr,Lt){var Ht=this.$cursorLayer.getPixelPosition({row:yr,column:0}),Wt=Ht.top;xr&&(Wt-=this.$size.scrollerHeight/2);var Gt=this.scrollTop;this.session.setScrollTop(Wt),rr!==!1&&this.animateScrolling(Gt,Lt)},vr.prototype.animateScrolling=function(yr,xr){var rr=this.scrollTop;if(!this.$animatedScroll)return;var Lt=this;if(yr==rr)return;if(this.$scrollAnimation){var Ht=this.$scrollAnimation.steps;if(Ht.length&&(yr=Ht[0],yr==rr))return}var Wt=Lt.$calcSteps(yr,rr);this.$scrollAnimation={from:yr,to:rr,steps:Wt},clearInterval(this.$timer),Lt.session.setScrollTop(Wt.shift()),Lt.session.$scrollTop=rr;function Gt(){Lt.$timer=clearInterval(Lt.$timer),Lt.$scrollAnimation=null,Lt.$stopAnimation=!1,xr&&xr()}this.$timer=setInterval(function(){if(Lt.$stopAnimation){Gt();return}if(!Lt.session)return clearInterval(Lt.$timer);Wt.length?(Lt.session.setScrollTop(Wt.shift()),Lt.session.$scrollTop=rr):rr!=null?(Lt.session.$scrollTop=-1,Lt.session.setScrollTop(rr),rr=null):Gt()},10)},vr.prototype.scrollToY=function(yr){this.scrollTop!==yr&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=yr)},vr.prototype.scrollToX=function(yr){this.scrollLeft!==yr&&(this.scrollLeft=yr),this.$loop.schedule(this.CHANGE_H_SCROLL)},vr.prototype.scrollTo=function(yr,xr){this.session.setScrollTop(xr),this.session.setScrollLeft(yr)},vr.prototype.scrollBy=function(yr,xr){xr&&this.session.setScrollTop(this.session.getScrollTop()+xr),yr&&this.session.setScrollLeft(this.session.getScrollLeft()+yr)},vr.prototype.isScrollableBy=function(yr,xr){if(xr<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||xr>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||yr<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||yr>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},vr.prototype.pixelToScreenCoordinates=function(yr,xr){var rr;if(this.$hasCssTransforms){rr={top:0,left:0};var Lt=this.$fontMetrics.transformCoordinates([yr,xr]);yr=Lt[1]-this.gutterWidth-this.margin.left,xr=Lt[0]}else rr=this.scroller.getBoundingClientRect();var Ht=yr+this.scrollLeft-rr.left-this.$padding,Wt=Ht/this.characterWidth,Gt=Math.floor((xr+this.scrollTop-rr.top)/this.lineHeight),Yt=this.$blockCursor?Math.floor(Wt):Math.round(Wt);return{row:Gt,column:Yt,side:Wt-Yt>0?1:-1,offsetX:Ht}},vr.prototype.screenToTextCoordinates=function(yr,xr){var rr;if(this.$hasCssTransforms){rr={top:0,left:0};var Lt=this.$fontMetrics.transformCoordinates([yr,xr]);yr=Lt[1]-this.gutterWidth-this.margin.left,xr=Lt[0]}else rr=this.scroller.getBoundingClientRect();var Ht=yr+this.scrollLeft-rr.left-this.$padding,Wt=Ht/this.characterWidth,Gt=this.$blockCursor?Math.floor(Wt):Math.round(Wt),Yt=Math.floor((xr+this.scrollTop-rr.top)/this.lineHeight);return this.session.screenToDocumentPosition(Yt,Math.max(Gt,0),Ht)},vr.prototype.textToScreenCoordinates=function(yr,xr){var rr=this.scroller.getBoundingClientRect(),Lt=this.session.documentToScreenPosition(yr,xr),Ht=this.$padding+(this.session.$bidiHandler.isBidiRow(Lt.row,yr)?this.session.$bidiHandler.getPosLeft(Lt.column):Math.round(Lt.column*this.characterWidth)),Wt=Lt.row*this.lineHeight;return{pageX:rr.left+Ht-this.scrollLeft,pageY:rr.top+Wt-this.scrollTop}},vr.prototype.visualizeFocus=function(){Bt.addCssClass(this.container,"ace_focus")},vr.prototype.visualizeBlur=function(){Bt.removeCssClass(this.container,"ace_focus")},vr.prototype.showComposition=function(yr){this.$composition=yr,yr.cssText||(yr.cssText=this.textarea.style.cssText),yr.useTextareaForIME==null&&(yr.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(Bt.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):yr.markerId=this.session.addMarker(yr.markerRange,"ace_composition_marker","text")},vr.prototype.setCompositionText=function(yr){var xr=this.session.selection.cursor;this.addToken(yr,"composition_placeholder",xr.row,xr.column),this.$moveTextAreaToCursor()},vr.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),Bt.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var yr=this.session.selection.cursor;this.removeExtraToken(yr.row,yr.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},vr.prototype.setGhostText=function(yr,xr){var rr=this.session.selection.cursor,Lt=xr||{row:rr.row,column:rr.column};this.removeGhostText();var Ht=this.$calculateWrappedTextChunks(yr,Lt);this.addToken(Ht[0].text,"ghost_text",Lt.row,Lt.column),this.$ghostText={text:yr,position:{row:Lt.row,column:Lt.column}};var Wt=Bt.createElement("div");if(Ht.length>1){Ht.slice(1).forEach(function(Ut){var ir=Bt.createElement("div");Ut.wrapped&&(ir.className="ghost_text_line_wrapped"),Ut.text.length===0&&(Ut.text=" "),ir.appendChild(Bt.createTextNode(Ut.text)),Wt.appendChild(ir)}),this.$ghostTextWidget={el:Wt,row:Lt.row,column:Lt.column,className:"ace_ghost_text"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var Gt=this.$cursorLayer.getPixelPosition(Lt,!0),Yt=this.container,er=Yt.getBoundingClientRect().height,lr=Ht.length*this.lineHeight,Jt=lr<er-Gt.top;if(Jt)return;lr<er?this.scrollBy(0,(Ht.length-1)*this.lineHeight):this.scrollToRow(Lt.row)}},vr.prototype.$calculateWrappedTextChunks=function(yr,xr){var rr=this.$size.scrollerWidth-this.$padding*2,Lt=Math.floor(rr/this.characterWidth)-2;Lt=Lt<=0?60:Lt;for(var Ht=yr.split(/\r?\n/),Wt=[],Gt=0;Gt<Ht.length;Gt++){var Yt=this.session.$getDisplayTokens(Ht[Gt],xr.column),er=this.session.$computeWrapSplits(Yt,Lt,this.session.$tabSize);if(er.length>0){var lr=0;er.push(Ht[Gt].length);for(var Jt=0;Jt<er.length;Jt++){var Ut=Ht[Gt].slice(lr,er[Jt]);Wt.push({text:Ut,wrapped:!0}),lr=er[Jt]}}else Wt.push({text:Ht[Gt],wrapped:!1})}return Wt},vr.prototype.removeGhostText=function(){if(this.$ghostText){var yr=this.$ghostText.position;this.removeExtraToken(yr.row,yr.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},vr.prototype.addToken=function(yr,xr,rr,Lt){var Ht=this.session;Ht.bgTokenizer.lines[rr]=null;var Wt={type:xr,value:yr},Gt=Ht.getTokens(rr);if(Lt==null||!Gt.length)Gt.push(Wt);else for(var Yt=0,er=0;er<Gt.length;er++){var lr=Gt[er];if(Yt+=lr.value.length,Lt<=Yt){var Jt=lr.value.length-(Yt-Lt),Ut=lr.value.slice(0,Jt),ir=lr.value.slice(Jt);Gt.splice(er,1,{type:lr.type,value:Ut},Wt,{type:lr.type,value:ir});break}}this.updateLines(rr,rr)},vr.prototype.removeExtraToken=function(yr,xr){this.session.bgTokenizer.lines[yr]=null,this.updateLines(yr,yr)},vr.prototype.setTheme=function(yr,xr){var rr=this;if(this.$themeId=yr,rr._dispatchEvent("themeChange",{theme:yr}),!yr||typeof yr=="string"){var Lt=yr||this.$options.theme.initialValue;Ft.loadModule(["theme",Lt],Ht)}else Ht(yr);function Ht(Wt){if(rr.$themeId!=yr)return xr&&xr();if(!Wt||!Wt.cssClass)throw new Error("couldn't load module "+yr+" or it didn't call define");Wt.$id&&(rr.$themeId=Wt.$id),Bt.importCssString(Wt.cssText,Wt.cssClass,rr.container),rr.theme&&Bt.removeCssClass(rr.container,rr.theme.cssClass);var Gt="padding"in Wt?Wt.padding:"padding"in(rr.theme||{})?4:rr.$padding;rr.$padding&&Gt!=rr.$padding&&rr.setPadding(Gt),rr.$theme=Wt.cssClass,rr.theme=Wt,Bt.addCssClass(rr.container,Wt.cssClass),Bt.setCssClass(rr.container,"ace_dark",Wt.isDark),rr.$size&&(rr.$size.width=0,rr.$updateSizeAsync()),rr._dispatchEvent("themeLoaded",{theme:Wt}),xr&&xr(),pr.isSafari&&rr.scroller&&(rr.scroller.style.background="red",rr.scroller.style.background="")}},vr.prototype.getTheme=function(){return this.$themeId},vr.prototype.setStyle=function(yr,xr){Bt.setCssClass(this.container,yr,xr!==!1)},vr.prototype.unsetStyle=function(yr){Bt.removeCssClass(this.container,yr)},vr.prototype.setCursorStyle=function(yr){Bt.setStyle(this.scroller.style,"cursor",yr)},vr.prototype.setMouseCursor=function(yr){Bt.setStyle(this.scroller.style,"cursor",yr)},vr.prototype.attachToShadowRoot=function(){Bt.importCssString(cr,"ace_editor.css",this.container)},vr.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},vr.prototype.$updateCustomScrollbar=function(yr){var xr=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,yr===!0?(this.scrollBarV=new Xt(this.container,this),this.scrollBarH=new Kt(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(rr){xr.$scrollAnimation||xr.session.setScrollTop(rr.data-xr.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(rr){xr.$scrollAnimation||xr.session.setScrollLeft(rr.data-xr.scrollMargin.left)}),this.$scrollDecorator=new Er(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new Vt(this.container,this),this.scrollBarH=new zt(this.container,this),this.scrollBarV.addEventListener("scroll",function(rr){xr.$scrollAnimation||xr.session.setScrollTop(rr.data-xr.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(rr){xr.$scrollAnimation||xr.session.setScrollLeft(rr.data-xr.scrollMargin.left)}))},vr.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var yr=this;this.$resizeTimer=Dt.delayedCall(function(){yr.destroyed||yr.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(xr){var rr=xr[0].contentRect.width,Lt=xr[0].contentRect.height;Math.abs(yr.$size.width-rr)>1||Math.abs(yr.$size.height-Lt)>1?yr.$resizeTimer.delay():yr.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},vr}();gr.prototype.CHANGE_CURSOR=1,gr.prototype.CHANGE_MARKER=2,gr.prototype.CHANGE_GUTTER=4,gr.prototype.CHANGE_SCROLL=8,gr.prototype.CHANGE_LINES=16,gr.prototype.CHANGE_TEXT=32,gr.prototype.CHANGE_SIZE=64,gr.prototype.CHANGE_MARKER_BACK=128,gr.prototype.CHANGE_MARKER_FRONT=256,gr.prototype.CHANGE_FULL=512,gr.prototype.CHANGE_H_SCROLL=1024,gr.prototype.$changes=0,gr.prototype.$padding=null,gr.prototype.$frozen=!1,gr.prototype.STEPS=8,At.implement(gr.prototype,dr),Ft.defineOptions(gr.prototype,"renderer",{useResizeObserver:{set:function(vr){!vr&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):vr&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(vr){this.$textLayer.setShowInvisibles(vr)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(vr){typeof vr=="number"&&(this.$printMarginColumn=vr),this.$showPrintMargin=!!vr,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(vr){this.$gutter.style.display=vr?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(vr){this.$gutterLayer.$useSvgGutterIcons=vr},initialValue:!1},showFoldedAnnotations:{set:function(vr){this.$gutterLayer.$showFoldedAnnotations=vr},initialValue:!1},fadeFoldWidgets:{set:function(vr){Bt.setCssClass(this.$gutter,"ace_fade-fold-widgets",vr)},initialValue:!1},showFoldWidgets:{set:function(vr){this.$gutterLayer.setShowFoldWidgets(vr),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(vr){this.$textLayer.setDisplayIndentGuides(vr)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(vr){this.$textLayer.setHighlightIndentGuides(vr)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(vr){this.$gutterLayer.setHighlightGutterLine(vr),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(vr){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(vr){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(vr){typeof vr=="number"&&(vr=vr+"px"),this.container.style.fontSize=vr,this.updateFontSize()},initialValue:12},fontFamily:{set:function(vr){this.container.style.fontFamily=vr,this.updateFontSize()}},maxLines:{set:function(vr){this.updateFull()}},minLines:{set:function(vr){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(vr){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(vr){vr=+vr||0,this.$scrollPastEnd!=vr&&(this.$scrollPastEnd=vr,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(vr){this.$gutterLayer.$fixedWidth=!!vr,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(vr){this.$updateCustomScrollbar(vr)},initialValue:!1},theme:{set:function(vr){this.setTheme(vr)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!pr.isMobile&&!pr.isIE}}),Ct.VirtualRenderer=gr}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(yt,Ct,$t){var At=yt("../lib/oop"),Bt=yt("../lib/net"),Dt=yt("../lib/event_emitter").EventEmitter,Ft=yt("../config");function kt(zt){var Vt="importScripts('"+Bt.qualifyURL(zt)+"');";try{return new Blob([Vt],{type:"application/javascript"})}catch{var Kt=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,Xt=new Kt;return Xt.append(Vt),Xt.getBlob("application/javascript")}}function Mt(zt){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(Ft.get("loadWorkerFromBlob")){var Vt=kt(zt),Kt=window.URL||window.webkitURL,Xt=Kt.createObjectURL(Vt);return new Worker(Xt)}return new Worker(zt)}var Nt=function(zt){zt.postMessage||(zt=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=zt,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){At.implement(this,Dt),this.$createWorkerFromOldConfig=function(zt,Vt,Kt,Xt,Qt){if(yt.nameToUrl&&!yt.toUrl&&(yt.toUrl=yt.nameToUrl),Ft.get("packaged")||!yt.toUrl)Xt=Xt||Ft.moduleUrl(Vt,"worker");else{var Zt=this.$normalizePath;Xt=Xt||Zt(yt.toUrl("ace/worker/worker.js",null,"_"));var dr={};zt.forEach(function(cr){dr[cr]=Zt(yt.toUrl(cr,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=Mt(Xt),Qt&&this.send("importScripts",Qt),this.$worker.postMessage({init:!0,tlns:dr,module:Vt,classname:Kt}),this.$worker},this.onMessage=function(zt){var Vt=zt.data;switch(Vt.type){case"event":this._signal(Vt.name,{data:Vt.data});break;case"call":var Kt=this.callbacks[Vt.id];Kt&&(Kt(Vt.data),delete this.callbacks[Vt.id]);break;case"error":this.reportError(Vt.data);break;case"log":window.console&&console.log&&console.log.apply(console,Vt.data);break}},this.reportError=function(zt){window.console&&console.error&&console.error(zt)},this.$normalizePath=function(zt){return Bt.qualifyURL(zt)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(zt){zt.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(zt,Vt){this.$worker.postMessage({command:zt,args:Vt})},this.call=function(zt,Vt,Kt){if(Kt){var Xt=this.callbackId++;this.callbacks[Xt]=Kt,Vt.push(Xt)}this.send(zt,Vt)},this.emit=function(zt,Vt){try{Vt.data&&Vt.data.err&&(Vt.data.err={message:Vt.data.err.message,stack:Vt.data.err.stack,code:Vt.data.err.code}),this.$worker&&this.$worker.postMessage({event:zt,data:{data:Vt.data}})}catch(Kt){console.error(Kt.stack)}},this.attachToDocument=function(zt){this.$doc&&this.terminate(),this.$doc=zt,this.call("setValue",[zt.getValue()]),zt.on("change",this.changeListener,!0)},this.changeListener=function(zt){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),zt.action=="insert"?this.deltaQueue.push(zt.start,zt.lines):this.deltaQueue.push(zt.start,zt.end)},this.$sendDeltaQueue=function(){var zt=this.deltaQueue;zt&&(this.deltaQueue=null,zt.length>50&&zt.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:zt}))}}).call(Nt.prototype);var jt=function(zt,Vt,Kt){var Xt=null,Qt=!1,Zt=Object.create(Dt),dr=[],cr=new Nt({messageBuffer:dr,terminate:function(){},postMessage:function(pr){dr.push(pr),Xt&&(Qt?setTimeout(Er):Er())}});cr.setEmitSync=function(pr){Qt=pr};var Er=function(){var pr=dr.shift();pr.command?Xt[pr.command].apply(Xt,pr.args):pr.event&&Zt._signal(pr.event,pr.data)};return Zt.postMessage=function(pr){cr.onMessage({data:pr})},Zt.callback=function(pr,gr){this.postMessage({type:"call",id:gr,data:pr})},Zt.emit=function(pr,gr){this.postMessage({type:"event",name:pr,data:gr})},Ft.loadModule(["worker",Vt],function(pr){for(Xt=new pr[Kt](Zt);dr.length;)Er()}),cr};Ct.UIWorkerClient=jt,Ct.WorkerClient=Nt,Ct.createWorker=Mt}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(yt,Ct,$t){var At=yt("./range").Range,Bt=yt("./lib/event_emitter").EventEmitter,Dt=yt("./lib/oop"),Ft=function(){function kt(Mt,Nt,jt,zt,Vt,Kt){var Xt=this;this.length=Nt,this.session=Mt,this.doc=Mt.getDocument(),this.mainClass=Vt,this.othersClass=Kt,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=zt,this.$onCursorChange=function(){setTimeout(function(){Xt.onCursorChange()})},this.$pos=jt;var Qt=Mt.getUndoManager().$undoStack||Mt.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=Qt.length,this.setup(),Mt.selection.on("changeCursor",this.$onCursorChange)}return kt.prototype.setup=function(){var Mt=this,Nt=this.doc,jt=this.session;this.selectionBefore=jt.selection.toJSON(),jt.selection.inMultiSelectMode&&jt.selection.toSingleRange(),this.pos=Nt.createAnchor(this.$pos.row,this.$pos.column);var zt=this.pos;zt.$insertRight=!0,zt.detach(),zt.markerId=jt.addMarker(new At(zt.row,zt.column,zt.row,zt.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(Vt){var Kt=Nt.createAnchor(Vt.row,Vt.column);Kt.$insertRight=!0,Kt.detach(),Mt.others.push(Kt)}),jt.setUndoSelect(!1)},kt.prototype.showOtherMarkers=function(){if(!this.othersActive){var Mt=this.session,Nt=this;this.othersActive=!0,this.others.forEach(function(jt){jt.markerId=Mt.addMarker(new At(jt.row,jt.column,jt.row,jt.column+Nt.length),Nt.othersClass,null,!1)})}},kt.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var Mt=0;Mt<this.others.length;Mt++)this.session.removeMarker(this.others[Mt].markerId)}},kt.prototype.onUpdate=function(Mt){if(this.$updating)return this.updateAnchors(Mt);var Nt=Mt;if(Nt.start.row===Nt.end.row&&Nt.start.row===this.pos.row){this.$updating=!0;var jt=Mt.action==="insert"?Nt.end.column-Nt.start.column:Nt.start.column-Nt.end.column,zt=Nt.start.column>=this.pos.column&&Nt.start.column<=this.pos.column+this.length+1,Vt=Nt.start.column-this.pos.column;if(this.updateAnchors(Mt),zt&&(this.length+=jt),zt&&!this.session.$fromUndo){if(Mt.action==="insert")for(var Kt=this.others.length-1;Kt>=0;Kt--){var Xt=this.others[Kt],Qt={row:Xt.row,column:Xt.column+Vt};this.doc.insertMergedLines(Qt,Mt.lines)}else if(Mt.action==="remove")for(var Kt=this.others.length-1;Kt>=0;Kt--){var Xt=this.others[Kt],Qt={row:Xt.row,column:Xt.column+Vt};this.doc.remove(new At(Qt.row,Qt.column,Qt.row,Qt.column-jt))}}this.$updating=!1,this.updateMarkers()}},kt.prototype.updateAnchors=function(Mt){this.pos.onChange(Mt);for(var Nt=this.others.length;Nt--;)this.others[Nt].onChange(Mt);this.updateMarkers()},kt.prototype.updateMarkers=function(){if(!this.$updating){var Mt=this,Nt=this.session,jt=function(Vt,Kt){Nt.removeMarker(Vt.markerId),Vt.markerId=Nt.addMarker(new At(Vt.row,Vt.column,Vt.row,Vt.column+Mt.length),Kt,null,!1)};jt(this.pos,this.mainClass);for(var zt=this.others.length;zt--;)jt(this.others[zt],this.othersClass)}},kt.prototype.onCursorChange=function(Mt){if(!(this.$updating||!this.session)){var Nt=this.session.selection.getCursor();Nt.row===this.pos.row&&Nt.column>=this.pos.column&&Nt.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",Mt)):(this.hideOtherMarkers(),this._emit("cursorLeave",Mt))}},kt.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},kt.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var Mt=this.session.getUndoManager(),Nt=(Mt.$undoStack||Mt.$undostack).length-this.$undoStackDepth,jt=0;jt<Nt;jt++)Mt.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},kt}();Dt.implement(Ft.prototype,Bt),Ct.PlaceHolder=Ft}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(yt,Ct,$t){var At=yt("../lib/event"),Bt=yt("../lib/useragent");function Dt(kt,Mt){return kt.row==Mt.row&&kt.column==Mt.column}function Ft(kt){var Mt=kt.domEvent,Nt=Mt.altKey,jt=Mt.shiftKey,zt=Mt.ctrlKey,Vt=kt.getAccelKey(),Kt=kt.getButton();if(zt&&Bt.isMac&&(Kt=Mt.button),kt.editor.inMultiSelectMode&&Kt==2){kt.editor.textInput.onContextMenu(kt.domEvent);return}if(!zt&&!Nt&&!Vt){Kt===0&&kt.editor.inMultiSelectMode&&kt.editor.exitMultiSelectMode();return}if(Kt===0){var Xt=kt.editor,Qt=Xt.selection,Zt=Xt.inMultiSelectMode,dr=kt.getDocumentPosition(),cr=Qt.getCursor(),Er=kt.inSelection()||Qt.isEmpty()&&Dt(dr,cr),pr=kt.x,gr=kt.y,vr=function(ir){pr=ir.clientX,gr=ir.clientY},yr=Xt.session,xr=Xt.renderer.pixelToScreenCoordinates(pr,gr),rr=xr,Lt;if(Xt.$mouseHandler.$enableJumpToDef)zt&&Nt||Vt&&Nt?Lt=jt?"block":"add":Nt&&Xt.$blockSelectEnabled&&(Lt="block");else if(Vt&&!Nt){if(Lt="add",!Zt&&jt)return}else Nt&&Xt.$blockSelectEnabled&&(Lt="block");if(Lt&&Bt.isMac&&Mt.ctrlKey&&Xt.$mouseHandler.cancelContextMenu(),Lt=="add"){if(!Zt&&Er)return;if(!Zt){var Ht=Qt.toOrientedRange();Xt.addSelectionMarker(Ht)}var Wt=Qt.rangeList.rangeAtPoint(dr);Xt.inVirtualSelectionMode=!0,jt&&(Wt=null,Ht=Qt.ranges[0]||Ht,Xt.removeSelectionMarker(Ht)),Xt.once("mouseup",function(){var ir=Qt.toOrientedRange();Wt&&ir.isEmpty()&&Dt(Wt.cursor,ir.cursor)?Qt.substractPoint(ir.cursor):(jt?Qt.substractPoint(Ht.cursor):Ht&&(Xt.removeSelectionMarker(Ht),Qt.addRange(Ht)),Qt.addRange(ir)),Xt.inVirtualSelectionMode=!1})}else if(Lt=="block"){kt.stop(),Xt.inVirtualSelectionMode=!0;var Gt,Yt=[],er=function(){var ir=Xt.renderer.pixelToScreenCoordinates(pr,gr),Cr=yr.screenToDocumentPosition(ir.row,ir.column,ir.offsetX);Dt(rr,ir)&&Dt(Cr,Qt.lead)||(rr=ir,Xt.selection.moveToPosition(Cr),Xt.renderer.scrollCursorIntoView(),Xt.removeSelectionMarkers(Yt),Yt=Qt.rectangularRangeBlock(rr,xr),Xt.$mouseHandler.$clickSelection&&Yt.length==1&&Yt[0].isEmpty()&&(Yt[0]=Xt.$mouseHandler.$clickSelection.clone()),Yt.forEach(Xt.addSelectionMarker,Xt),Xt.updateSelectionMarkers())};Zt&&!Vt?Qt.toSingleRange():!Zt&&Vt&&(Gt=Qt.toOrientedRange(),Xt.addSelectionMarker(Gt)),jt?xr=yr.documentToScreenPosition(Qt.lead):Qt.moveToPosition(dr),rr={row:-1,column:-1};var lr=function(ir){er(),clearInterval(Ut),Xt.removeSelectionMarkers(Yt),Yt.length||(Yt=[Qt.toOrientedRange()]),Gt&&(Xt.removeSelectionMarker(Gt),Qt.toSingleRange(Gt));for(var Cr=0;Cr<Yt.length;Cr++)Qt.addRange(Yt[Cr]);Xt.inVirtualSelectionMode=!1,Xt.$mouseHandler.$clickSelection=null},Jt=er;At.capture(Xt.container,vr,lr);var Ut=setInterval(function(){Jt()},20);return kt.preventDefault()}}}Ct.onMouseDown=Ft}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(yt,Ct,$t){Ct.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(Bt){Bt.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(Bt){Bt.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",description:"Add cursor above (skip current)",exec:function(Bt){Bt.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",description:"Add cursor below (skip current)",exec:function(Bt){Bt.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",description:"Select more before",exec:function(Bt){Bt.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(Bt){Bt.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(Bt){Bt.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",description:"Select next after",exec:function(Bt){Bt.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"toggleSplitSelectionIntoLines",description:"Split selection into lines",exec:function(Bt){Bt.multiSelect.rangeCount>1?Bt.multiSelect.joinSelections():Bt.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(Bt){Bt.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(Bt){Bt.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(Bt){Bt.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],Ct.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(Bt){Bt.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(Bt){return Bt&&Bt.inMultiSelectMode}}];var At=yt("../keyboard/hash_handler").HashHandler;Ct.keyboardHandler=new At(Ct.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(yt,Ct,$t){var At=yt("./range_list").RangeList,Bt=yt("./range").Range,Dt=yt("./selection").Selection,Ft=yt("./mouse/multi_select_handler").onMouseDown,kt=yt("./lib/event"),Mt=yt("./lib/lang"),Nt=yt("./commands/multi_select_commands");Ct.commands=Nt.defaultCommands.concat(Nt.multiSelectCommands);var jt=yt("./search").Search,zt=new jt;function Vt(cr,Er,pr){return zt.$options.wrap=!0,zt.$options.needle=Er,zt.$options.backwards=pr==-1,zt.find(cr)}var Kt=yt("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(Kt.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function(cr,Er){if(cr){if(!this.inMultiSelectMode&&this.rangeCount===0){var pr=this.toOrientedRange();if(this.rangeList.add(pr),this.rangeList.add(cr),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),Er||this.fromOrientedRange(cr);this.rangeList.removeAll(),this.rangeList.add(pr),this.$onAddRange(pr)}cr.cursor||(cr.cursor=cr.end);var gr=this.rangeList.add(cr);return this.$onAddRange(cr),gr.length&&this.$onRemoveRange(gr),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),Er||this.fromOrientedRange(cr)}},this.toSingleRange=function(cr){cr=cr||this.ranges[0];var Er=this.rangeList.removeAll();Er.length&&this.$onRemoveRange(Er),cr&&this.fromOrientedRange(cr)},this.substractPoint=function(cr){var Er=this.rangeList.substractPoint(cr);if(Er)return this.$onRemoveRange(Er),Er[0]},this.mergeOverlappingRanges=function(){var cr=this.rangeList.merge();cr.length&&this.$onRemoveRange(cr)},this.$onAddRange=function(cr){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(cr),this._signal("addRange",{range:cr})},this.$onRemoveRange=function(cr){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var Er=this.rangeList.ranges.pop();cr.push(Er),this.rangeCount=0}for(var pr=cr.length;pr--;){var gr=this.ranges.indexOf(cr[pr]);this.ranges.splice(gr,1)}this._signal("removeRange",{ranges:cr}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),Er=Er||this.ranges[0],Er&&!Er.isEqual(this.getRange())&&this.fromOrientedRange(Er)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new At,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var cr=this.ranges.length?this.ranges:[this.getRange()],Er=[],pr=0;pr<cr.length;pr++){var gr=cr[pr],vr=gr.start.row,yr=gr.end.row;if(vr===yr)Er.push(gr.clone());else{for(Er.push(new Bt(vr,gr.start.column,vr,this.session.getLine(vr).length));++vr<yr;)Er.push(this.getLineRange(vr,!0));Er.push(new Bt(yr,0,yr,gr.end.column))}pr==0&&!this.isBackwards()&&(Er=Er.reverse())}this.toSingleRange();for(var pr=Er.length;pr--;)this.addRange(Er[pr])},this.joinSelections=function(){var cr=this.rangeList.ranges,Er=cr[cr.length-1],pr=Bt.fromPoints(cr[0].start,Er.end);this.toSingleRange(),this.setSelectionRange(pr,Er.cursor==Er.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var cr=this.rangeList.ranges,Er=cr[cr.length-1],pr=Bt.fromPoints(cr[0].start,Er.end);this.toSingleRange(),this.setSelectionRange(pr,Er.cursor==Er.start)}else{var gr=this.session.documentToScreenPosition(this.cursor),vr=this.session.documentToScreenPosition(this.anchor),yr=this.rectangularRangeBlock(gr,vr);yr.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(cr,Er,pr){var gr=[],vr=cr.column<Er.column;if(vr)var yr=cr.column,xr=Er.column,rr=cr.offsetX,Lt=Er.offsetX;else var yr=Er.column,xr=cr.column,rr=Er.offsetX,Lt=cr.offsetX;var Ht=cr.row<Er.row;if(Ht)var Wt=cr.row,Gt=Er.row;else var Wt=Er.row,Gt=cr.row;yr<0&&(yr=0),Wt<0&&(Wt=0),Wt==Gt&&(pr=!0);for(var Yt,er=Wt;er<=Gt;er++){var lr=Bt.fromPoints(this.session.screenToDocumentPosition(er,yr,rr),this.session.screenToDocumentPosition(er,xr,Lt));if(lr.isEmpty()){if(Yt&&Qt(lr.end,Yt))break;Yt=lr.end}lr.cursor=vr?lr.start:lr.end,gr.push(lr)}if(Ht&&gr.reverse(),!pr){for(var Jt=gr.length-1;gr[Jt].isEmpty()&&Jt>0;)Jt--;if(Jt>0)for(var Ut=0;gr[Ut].isEmpty();)Ut++;for(var ir=Jt;ir>=Ut;ir--)gr[ir].isEmpty()&&gr.splice(ir,1)}return gr}}).call(Dt.prototype);var Xt=yt("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(cr){cr.cursor||(cr.cursor=cr.end);var Er=this.getSelectionStyle();return cr.marker=this.session.addMarker(cr,"ace_selection",Er),this.session.$selectionMarkers.push(cr),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,cr},this.removeSelectionMarker=function(cr){if(cr.marker){this.session.removeMarker(cr.marker);var Er=this.session.$selectionMarkers.indexOf(cr);Er!=-1&&this.session.$selectionMarkers.splice(Er,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(cr){for(var Er=this.session.$selectionMarkers,pr=cr.length;pr--;){var gr=cr[pr];if(gr.marker){this.session.removeMarker(gr.marker);var vr=Er.indexOf(gr);vr!=-1&&Er.splice(vr,1)}}this.session.selectionMarkerCount=Er.length},this.$onAddRange=function(cr){this.addSelectionMarker(cr.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(cr){this.removeSelectionMarkers(cr.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(cr){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(Nt.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(cr){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(Nt.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(cr){var Er=cr.command,pr=cr.editor;if(pr.multiSelect){if(Er.multiSelectAction)Er.multiSelectAction=="forEach"?gr=pr.forEachSelection(Er,cr.args):Er.multiSelectAction=="forEachLine"?gr=pr.forEachSelection(Er,cr.args,!0):Er.multiSelectAction=="single"?(pr.exitMultiSelectMode(),gr=Er.exec(pr,cr.args||{})):gr=Er.multiSelectAction(pr,cr.args||{});else{var gr=Er.exec(pr,cr.args||{});pr.multiSelect.addRange(pr.multiSelect.toOrientedRange()),pr.multiSelect.mergeOverlappingRanges()}return gr}},this.forEachSelection=function(cr,Er,pr){if(!this.inVirtualSelectionMode){var gr=pr&&pr.keepOrder,vr=pr==!0||pr&&pr.$byLines,yr=this.session,xr=this.selection,rr=xr.rangeList,Lt=(gr?xr:rr).ranges,Ht;if(!Lt.length)return cr.exec?cr.exec(this,Er||{}):cr(this,Er||{});var Wt=xr._eventRegistry;xr._eventRegistry={};var Gt=new Dt(yr);this.inVirtualSelectionMode=!0;for(var Yt=Lt.length;Yt--;){if(vr)for(;Yt>0&&Lt[Yt].start.row==Lt[Yt-1].end.row;)Yt--;Gt.fromOrientedRange(Lt[Yt]),Gt.index=Yt,this.selection=yr.selection=Gt;var er=cr.exec?cr.exec(this,Er||{}):cr(this,Er||{});!Ht&&er!==void 0&&(Ht=er),Gt.toOrientedRange(Lt[Yt])}Gt.detach(),this.selection=yr.selection=xr,this.inVirtualSelectionMode=!1,xr._eventRegistry=Wt,xr.mergeOverlappingRanges(),xr.ranges[0]&&xr.fromOrientedRange(xr.ranges[0]);var lr=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),lr&&lr.from==lr.to&&this.renderer.animateScrolling(lr.from),Ht}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var cr="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var Er=this.multiSelect.rangeList.ranges,pr=[],gr=0;gr<Er.length;gr++)pr.push(this.session.getTextRange(Er[gr]));var vr=this.session.getDocument().getNewLineCharacter();cr=pr.join(vr),cr.length==(pr.length-1)*vr.length&&(cr="")}else this.selection.isEmpty()||(cr=this.session.getTextRange(this.getSelectionRange()));return cr},this.$checkMultiselectChange=function(cr,Er){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var pr=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&Er==this.multiSelect.anchor)return;var gr=Er==this.multiSelect.anchor?pr.cursor==pr.start?pr.end:pr.start:pr.cursor;gr.row!=Er.row||this.session.$clipPositionToDocument(gr.row,gr.column).column!=Er.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(cr,Er,pr){if(Er=Er||{},Er.needle=cr||Er.needle,Er.needle==null){var gr=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();Er.needle=this.session.getTextRange(gr)}this.$search.set(Er);var vr=this.$search.findAll(this.session);if(!vr.length)return 0;var yr=this.multiSelect;pr||yr.toSingleRange(vr[0]);for(var xr=vr.length;xr--;)yr.addRange(vr[xr],!0);return gr&&yr.rangeList.rangeAtPoint(gr.start)&&yr.addRange(gr,!0),vr.length},this.selectMoreLines=function(cr,Er){var pr=this.selection.toOrientedRange(),gr=pr.cursor==pr.end,vr=this.session.documentToScreenPosition(pr.cursor);this.selection.$desiredColumn&&(vr.column=this.selection.$desiredColumn);var yr=this.session.screenToDocumentPosition(vr.row+cr,vr.column);if(pr.isEmpty())var rr=yr;else var xr=this.session.documentToScreenPosition(gr?pr.end:pr.start),rr=this.session.screenToDocumentPosition(xr.row+cr,xr.column);if(gr){var Lt=Bt.fromPoints(yr,rr);Lt.cursor=Lt.start}else{var Lt=Bt.fromPoints(rr,yr);Lt.cursor=Lt.end}if(Lt.desiredColumn=vr.column,!this.selection.inMultiSelectMode)this.selection.addRange(pr);else if(Er)var Ht=pr.cursor;this.selection.addRange(Lt),Ht&&this.selection.substractPoint(Ht)},this.transposeSelections=function(cr){for(var Er=this.session,pr=Er.multiSelect,gr=pr.ranges,vr=gr.length;vr--;){var yr=gr[vr];if(yr.isEmpty()){var xr=Er.getWordRange(yr.start.row,yr.start.column);yr.start.row=xr.start.row,yr.start.column=xr.start.column,yr.end.row=xr.end.row,yr.end.column=xr.end.column}}pr.mergeOverlappingRanges();for(var rr=[],vr=gr.length;vr--;){var yr=gr[vr];rr.unshift(Er.getTextRange(yr))}cr<0?rr.unshift(rr.pop()):rr.push(rr.shift());for(var vr=gr.length;vr--;){var yr=gr[vr],Lt=yr.clone();Er.replace(yr,rr[vr]),yr.start.row=Lt.start.row,yr.start.column=Lt.start.column}pr.fromOrientedRange(pr.ranges[0])},this.selectMore=function(cr,Er,pr){var gr=this.session,vr=gr.multiSelect,yr=vr.toOrientedRange();if(!(yr.isEmpty()&&(yr=gr.getWordRange(yr.start.row,yr.start.column),yr.cursor=cr==-1?yr.start:yr.end,this.multiSelect.addRange(yr),pr))){var xr=gr.getTextRange(yr),rr=Vt(gr,xr,cr);rr&&(rr.cursor=cr==-1?rr.start:rr.end,this.session.unfold(rr),this.multiSelect.addRange(rr),this.renderer.scrollCursorIntoView(null,.5)),Er&&this.multiSelect.substractPoint(yr.cursor)}},this.alignCursors=function(){var cr=this.session,Er=cr.multiSelect,pr=Er.ranges,gr=-1,vr=pr.filter(function(Jt){if(Jt.cursor.row==gr)return!0;gr=Jt.cursor.row});if(!pr.length||vr.length==pr.length-1){var yr=this.selection.getRange(),xr=yr.start.row,rr=yr.end.row,Lt=xr==rr;if(Lt){var Ht=this.session.getLength(),Wt;do Wt=this.session.getLine(rr);while(/[=:]/.test(Wt)&&++rr<Ht);do Wt=this.session.getLine(xr);while(/[=:]/.test(Wt)&&--xr>0);xr<0&&(xr=0),rr>=Ht&&(rr=Ht-1)}var Gt=this.session.removeFullLines(xr,rr);Gt=this.$reAlignText(Gt,Lt),this.session.insert({row:xr,column:0},Gt.join(`
`)+`
`),Lt||(yr.start.column=0,yr.end.column=Gt[Gt.length-1].length),this.selection.setRange(yr)}else{vr.forEach(function(Jt){Er.substractPoint(Jt.cursor)});var Yt=0,er=1/0,lr=pr.map(function(Jt){var Ut=Jt.cursor,ir=cr.getLine(Ut.row),Cr=ir.substr(Ut.column).search(/\S/g);return Cr==-1&&(Cr=0),Ut.column>Yt&&(Yt=Ut.column),Cr<er&&(er=Cr),Cr});pr.forEach(function(Jt,Ut){var ir=Jt.cursor,Cr=Yt-ir.column,_r=lr[Ut]-er;Cr>_r?cr.insert(ir,Mt.stringRepeat(" ",Cr-_r)):cr.remove(new Bt(ir.row,ir.column,ir.row,ir.column-Cr+_r)),Jt.start.column=Jt.end.column=Yt,Jt.start.row=Jt.end.row=ir.row,Jt.cursor=Jt.end}),Er.fromOrientedRange(pr[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(cr,Er){var pr=!0,gr=!0,vr,yr,xr;return cr.map(function(Gt){var Yt=Gt.match(/(\s*)(.*?)(\s*)([=:].*)/);return Yt?vr==null?(vr=Yt[1].length,yr=Yt[2].length,xr=Yt[3].length,Yt):(vr+yr+xr!=Yt[1].length+Yt[2].length+Yt[3].length&&(gr=!1),vr!=Yt[1].length&&(pr=!1),vr>Yt[1].length&&(vr=Yt[1].length),yr<Yt[2].length&&(yr=Yt[2].length),xr>Yt[3].length&&(xr=Yt[3].length),Yt):[Gt]}).map(Er?Lt:pr?gr?Ht:Lt:Wt);function rr(Gt){return Mt.stringRepeat(" ",Gt)}function Lt(Gt){return Gt[2]?rr(vr)+Gt[2]+rr(yr-Gt[2].length+xr)+Gt[4].replace(/^([=:])\s+/,"$1 "):Gt[0]}function Ht(Gt){return Gt[2]?rr(vr+yr-Gt[2].length)+Gt[2]+rr(xr)+Gt[4].replace(/^([=:])\s+/,"$1 "):Gt[0]}function Wt(Gt){return Gt[2]?rr(vr)+Gt[2]+rr(xr)+Gt[4].replace(/^([=:])\s+/,"$1 "):Gt[0]}}}).call(Xt.prototype);function Qt(cr,Er){return cr.row==Er.row&&cr.column==Er.column}Ct.onSessionChange=function(cr){var Er=cr.session;Er&&!Er.multiSelect&&(Er.$selectionMarkers=[],Er.selection.$initRangeList(),Er.multiSelect=Er.selection),this.multiSelect=Er&&Er.multiSelect;var pr=cr.oldSession;pr&&(pr.multiSelect.off("addRange",this.$onAddRange),pr.multiSelect.off("removeRange",this.$onRemoveRange),pr.multiSelect.off("multiSelect",this.$onMultiSelect),pr.multiSelect.off("singleSelect",this.$onSingleSelect),pr.multiSelect.lead.off("change",this.$checkMultiselectChange),pr.multiSelect.anchor.off("change",this.$checkMultiselectChange)),Er&&(Er.multiSelect.on("addRange",this.$onAddRange),Er.multiSelect.on("removeRange",this.$onRemoveRange),Er.multiSelect.on("multiSelect",this.$onMultiSelect),Er.multiSelect.on("singleSelect",this.$onSingleSelect),Er.multiSelect.lead.on("change",this.$checkMultiselectChange),Er.multiSelect.anchor.on("change",this.$checkMultiselectChange)),Er&&this.inMultiSelectMode!=Er.selection.inMultiSelectMode&&(Er.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function Zt(cr){cr.$multiselectOnSessionChange||(cr.$onAddRange=cr.$onAddRange.bind(cr),cr.$onRemoveRange=cr.$onRemoveRange.bind(cr),cr.$onMultiSelect=cr.$onMultiSelect.bind(cr),cr.$onSingleSelect=cr.$onSingleSelect.bind(cr),cr.$multiselectOnSessionChange=Ct.onSessionChange.bind(cr),cr.$checkMultiselectChange=cr.$checkMultiselectChange.bind(cr),cr.$multiselectOnSessionChange(cr),cr.on("changeSession",cr.$multiselectOnSessionChange),cr.on("mousedown",Ft),cr.commands.addCommands(Nt.defaultCommands),dr(cr))}function dr(cr){if(!cr.textInput)return;var Er=cr.textInput.getElement(),pr=!1;kt.addListener(Er,"keydown",function(vr){var yr=vr.keyCode==18&&!(vr.ctrlKey||vr.shiftKey||vr.metaKey);cr.$blockSelectEnabled&&yr?pr||(cr.renderer.setMouseCursor("crosshair"),pr=!0):pr&&gr()},cr),kt.addListener(Er,"keyup",gr,cr),kt.addListener(Er,"blur",gr,cr);function gr(vr){pr&&(cr.renderer.setMouseCursor(""),pr=!1)}}Ct.MultiSelect=Zt,yt("./config").defineOptions(Xt.prototype,"editor",{enableMultiselect:{set:function(cr){Zt(this),cr?this.on("mousedown",Ft):this.off("mousedown",Ft)},value:!0},enableBlockSelect:{set:function(cr){this.$blockSelectEnabled=cr},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(yt,Ct,$t){var At=yt("../../range").Range,Bt=Ct.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(Dt,Ft,kt){var Mt=Dt.getLine(kt);return this.foldingStartMarker.test(Mt)?"start":Ft=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(Mt)?"end":""},this.getFoldWidgetRange=function(Dt,Ft,kt){return null},this.indentationBlock=function(Dt,Ft,kt){var Mt=/\S/,Nt=Dt.getLine(Ft),jt=Nt.search(Mt);if(jt!=-1){for(var zt=kt||Nt.length,Vt=Dt.getLength(),Kt=Ft,Xt=Ft;++Ft<Vt;){var Qt=Dt.getLine(Ft).search(Mt);if(Qt!=-1){if(Qt<=jt){var Zt=Dt.getTokenAt(Ft,0);if(!Zt||Zt.type!=="string")break}Xt=Ft}}if(Xt>Kt){var dr=Dt.getLine(Xt).length;return new At(Kt,zt,Xt,dr)}}},this.openingBracketBlock=function(Dt,Ft,kt,Mt,Nt){var jt={row:kt,column:Mt+1},zt=Dt.$findClosingBracket(Ft,jt,Nt);if(zt){var Vt=Dt.foldWidgets[zt.row];return Vt==null&&(Vt=Dt.getFoldWidget(zt.row)),Vt=="start"&&zt.row>jt.row&&(zt.row--,zt.column=Dt.getLine(zt.row).length),At.fromPoints(jt,zt)}},this.closingBracketBlock=function(Dt,Ft,kt,Mt,Nt){var jt={row:kt,column:Mt},zt=Dt.$findOpeningBracket(Ft,jt);if(zt)return zt.column++,jt.column--,At.fromPoints(zt,jt)}}).call(Bt.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range","ace/config"],function(yt,Ct,$t){var At=yt("../line_widgets").LineWidgets,Bt=yt("../lib/dom"),Dt=yt("../range").Range,Ft=yt("../config").nls;function kt(Nt,jt,zt){for(var Vt=0,Kt=Nt.length-1;Vt<=Kt;){var Xt=Vt+Kt>>1,Qt=zt(jt,Nt[Xt]);if(Qt>0)Vt=Xt+1;else if(Qt<0)Kt=Xt-1;else return Xt}return-(Vt+1)}function Mt(Nt,jt,zt){var Vt=Nt.getAnnotations().sort(Dt.comparePoints);if(Vt.length){var Kt=kt(Vt,{row:jt,column:-1},Dt.comparePoints);Kt<0&&(Kt=-Kt-1),Kt>=Vt.length?Kt=zt>0?0:Vt.length-1:Kt===0&&zt<0&&(Kt=Vt.length-1);var Xt=Vt[Kt];if(!(!Xt||!zt)){if(Xt.row===jt){do Xt=Vt[Kt+=zt];while(Xt&&Xt.row===jt);if(!Xt)return Vt.slice()}var Qt=[];jt=Xt.row;do Qt[zt<0?"unshift":"push"](Xt),Xt=Vt[Kt+=zt];while(Xt&&Xt.row==jt);return Qt.length&&Qt}}}Ct.showErrorMarker=function(Nt,jt){var zt=Nt.session;zt.widgetManager||(zt.widgetManager=new At(zt),zt.widgetManager.attach(Nt));var Vt=Nt.getCursorPosition(),Kt=Vt.row,Xt=zt.widgetManager.getWidgetsAtRow(Kt).filter(function(yr){return yr.type=="errorMarker"})[0];Xt?Xt.destroy():Kt-=jt;var Qt=Mt(zt,Kt,jt),Zt;if(Qt){var dr=Qt[0];Vt.column=(dr.pos&&typeof dr.column!="number"?dr.pos.sc:dr.column)||0,Vt.row=dr.row,Zt=Nt.renderer.$gutterLayer.$annotations[Vt.row]}else{if(Xt)return;Zt={displayText:[Ft("error-marker.good-state","Looks good!")],className:"ace_ok"}}Nt.session.unfold(Vt.row),Nt.selection.moveToPosition(Vt);var cr={row:Vt.row,fixedWidth:!0,coverGutter:!0,el:Bt.createElement("div"),type:"errorMarker"},Er=cr.el.appendChild(Bt.createElement("div")),pr=cr.el.appendChild(Bt.createElement("div"));pr.className="error_widget_arrow "+Zt.className;var gr=Nt.renderer.$cursorLayer.getPixelPosition(Vt).left;pr.style.left=gr+Nt.renderer.gutterWidth-5+"px",cr.el.className="error_widget_wrapper",Er.className="error_widget "+Zt.className,Zt.displayText.forEach(function(yr,xr){Er.appendChild(Bt.createTextNode(yr)),xr<Zt.displayText.length-1&&Er.appendChild(Bt.createElement("br"))}),Er.appendChild(Bt.createElement("div"));var vr=function(yr,xr,rr){if(xr===0&&(rr==="esc"||rr==="return"))return cr.destroy(),{command:"null"}};cr.destroy=function(){Nt.$mouseHandler.isMousePressed||(Nt.keyBinding.removeKeyboardHandler(vr),zt.widgetManager.removeLineWidget(cr),Nt.off("changeSelection",cr.destroy),Nt.off("changeSession",cr.destroy),Nt.off("mouseup",cr.destroy),Nt.off("change",cr.destroy))},Nt.keyBinding.addKeyboardHandler(vr),Nt.on("changeSelection",cr.destroy),Nt.on("changeSession",cr.destroy),Nt.on("mouseup",cr.destroy),Nt.on("change",cr.destroy),Nt.session.widgetManager.addLineWidget(cr),cr.el.onmousedown=Nt.focus.bind(Nt),Nt.renderer.scrollCursorIntoView(null,.5,{bottom:cr.el.offsetHeight})},Bt.importCssString(`
    .error_widget_wrapper {
        background: inherit;
        color: inherit;
        border:none
    }
    .error_widget {
        border-top: solid 2px;
        border-bottom: solid 2px;
        margin: 5px 0;
        padding: 10px 40px;
        white-space: pre-wrap;
    }
    .error_widget.ace_error, .error_widget_arrow.ace_error{
        border-color: #ff5a5a
    }
    .error_widget.ace_warning, .error_widget_arrow.ace_warning{
        border-color: #F1D817
    }
    .error_widget.ace_info, .error_widget_arrow.ace_info{
        border-color: #5a5a5a
    }
    .error_widget.ace_ok, .error_widget_arrow.ace_ok{
        border-color: #5aaa5a
    }
    .error_widget_arrow {
        position: absolute;
        border: solid 5px;
        border-top-color: transparent!important;
        border-right-color: transparent!important;
        border-left-color: transparent!important;
        top: -5px;
    }
`,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(yt,Ct,$t){yt("./loader_build")(Ct);var At=yt("./lib/dom"),Bt=yt("./range").Range,Dt=yt("./editor").Editor,Ft=yt("./edit_session").EditSession,kt=yt("./undomanager").UndoManager,Mt=yt("./virtual_renderer").VirtualRenderer;yt("./worker/worker_client"),yt("./keyboard/hash_handler"),yt("./placeholder"),yt("./multi_select"),yt("./mode/folding/fold_mode"),yt("./theme/textmate"),yt("./ext/error_marker"),Ct.config=yt("./config"),Ct.edit=function(Nt,jt){if(typeof Nt=="string"){var zt=Nt;if(Nt=document.getElementById(zt),!Nt)throw new Error("ace.edit can't find div #"+zt)}if(Nt&&Nt.env&&Nt.env.editor instanceof Dt)return Nt.env.editor;var Vt="";if(Nt&&/input|textarea/i.test(Nt.tagName)){var Kt=Nt;Vt=Kt.value,Nt=At.createElement("pre"),Kt.parentNode.replaceChild(Nt,Kt)}else Nt&&(Vt=Nt.textContent,Nt.innerHTML="");var Xt=Ct.createEditSession(Vt),Qt=new Dt(new Mt(Nt),Xt,jt),Zt={document:Xt,editor:Qt,onResize:Qt.resize.bind(Qt,null)};return Kt&&(Zt.textarea=Kt),Qt.on("destroy",function(){Zt.editor.container.env=null}),Qt.container.env=Qt.env=Zt,Qt},Ct.createEditSession=function(Nt,jt){var zt=new Ft(Nt,jt);return zt.setUndoManager(new kt),zt},Ct.Range=Bt,Ct.Editor=Dt,Ct.EditSession=Ft,Ct.UndoManager=kt,Ct.VirtualRenderer=Mt,Ct.version=Ct.config.version}),function(){ace.require(["ace/ace"],function(yt){yt&&(yt.config.init(!0),yt.define=ace.define);var Ct=function(){return this}();!Ct&&typeof window<"u"&&(Ct=window),!Ct&&typeof self<"u"&&(Ct=self),Ct.ace||(Ct.ace=yt);for(var $t in yt)yt.hasOwnProperty($t)&&(Ct.ace[$t]=yt[$t]);Ct.ace.default=Ct.ace,ht&&(ht.exports=Ct.ace)})}()})(ace$3);var aceExports=ace$3.exports,lodash_isequal={exports:{}};lodash_isequal.exports;(function(ht,Et){var yt=200,Ct="__lodash_hash_undefined__",$t=1,At=2,Bt=9007199254740991,Dt="[object Arguments]",Ft="[object Array]",kt="[object AsyncFunction]",Mt="[object Boolean]",Nt="[object Date]",jt="[object Error]",zt="[object Function]",Vt="[object GeneratorFunction]",Kt="[object Map]",Xt="[object Number]",Qt="[object Null]",Zt="[object Object]",dr="[object Promise]",cr="[object Proxy]",Er="[object RegExp]",pr="[object Set]",gr="[object String]",vr="[object Symbol]",yr="[object Undefined]",xr="[object WeakMap]",rr="[object ArrayBuffer]",Lt="[object DataView]",Ht="[object Float32Array]",Wt="[object Float64Array]",Gt="[object Int8Array]",Yt="[object Int16Array]",er="[object Int32Array]",lr="[object Uint8Array]",Jt="[object Uint8ClampedArray]",Ut="[object Uint16Array]",ir="[object Uint32Array]",Cr=/[\\^$.*+?()[\]{}|]/g,_r=/^\[object .+?Constructor\]$/,$r=/^(?:0|[1-9]\d*)$/,Tr={};Tr[Ht]=Tr[Wt]=Tr[Gt]=Tr[Yt]=Tr[er]=Tr[lr]=Tr[Jt]=Tr[Ut]=Tr[ir]=!0,Tr[Dt]=Tr[Ft]=Tr[rr]=Tr[Mt]=Tr[Lt]=Tr[Nt]=Tr[jt]=Tr[zt]=Tr[Kt]=Tr[Xt]=Tr[Zt]=Tr[Er]=Tr[pr]=Tr[gr]=Tr[xr]=!1;var Dr=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,Ar=typeof self=="object"&&self&&self.Object===Object&&self,Fr=Dr||Ar||Function("return this")(),Rr=Et&&!Et.nodeType&&Et,wr=Rr&&!0&&ht&&!ht.nodeType&&ht,Sr=wr&&wr.exports===Rr,Br=Sr&&Dr.process,Or=function(){try{return Br&&Br.binding&&Br.binding("util")}catch{}}(),Pr=Or&&Or.isTypedArray;function Nr(fn,Pn){for(var tu=-1,yu=fn==null?0:fn.length,Yu=0,ju=[];++tu<yu;){var oo=fn[tu];Pn(oo,tu,fn)&&(ju[Yu++]=oo)}return ju}function Lr(fn,Pn){for(var tu=-1,yu=Pn.length,Yu=fn.length;++tu<yu;)fn[Yu+tu]=Pn[tu];return fn}function Wr(fn,Pn){for(var tu=-1,yu=fn==null?0:fn.length;++tu<yu;)if(Pn(fn[tu],tu,fn))return!0;return!1}function Ur(fn,Pn){for(var tu=-1,yu=Array(fn);++tu<fn;)yu[tu]=Pn(tu);return yu}function jr(fn){return function(Pn){return fn(Pn)}}function Kr(fn,Pn){return fn.has(Pn)}function qr(fn,Pn){return fn==null?void 0:fn[Pn]}function Zr(fn){var Pn=-1,tu=Array(fn.size);return fn.forEach(function(yu,Yu){tu[++Pn]=[Yu,yu]}),tu}function dn(fn,Pn){return function(tu){return fn(Pn(tu))}}function Xr(fn){var Pn=-1,tu=Array(fn.size);return fn.forEach(function(yu){tu[++Pn]=yu}),tu}var un=Array.prototype,Yr=Function.prototype,Gr=Object.prototype,Jr=Fr["__core-js_shared__"],wn=Yr.toString,kr=Gr.hasOwnProperty,Mr=function(){var fn=/[^.]+$/.exec(Jr&&Jr.keys&&Jr.keys.IE_PROTO||"");return fn?"Symbol(src)_1."+fn:""}(),Ir=Gr.toString,Hr=RegExp("^"+wn.call(kr).replace(Cr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Vr=Sr?Fr.Buffer:void 0,on=Fr.Symbol,Qr=Fr.Uint8Array,hn=Gr.propertyIsEnumerable,Wn=un.splice,_n=on?on.toStringTag:void 0,An=Object.getOwnPropertySymbols,Yn=Vr?Vr.isBuffer:void 0,Tn=dn(Object.keys,Object),Nn=Nu(Fr,"DataView"),Zn=Nu(Fr,"Map"),$n=Nu(Fr,"Promise"),Fn=Nu(Fr,"Set"),Gn=Nu(Fr,"WeakMap"),gn=Nu(Object,"create"),Rn=Qu(Nn),nu=Qu(Zn),pn=Qu($n),yn=Qu(Fn),jn=Qu(Gn),Cn=on?on.prototype:void 0,On=Cn?Cn.valueOf:void 0;function au(fn){var Pn=-1,tu=fn==null?0:fn.length;for(this.clear();++Pn<tu;){var yu=fn[Pn];this.set(yu[0],yu[1])}}function In(){this.__data__=gn?gn(null):{},this.size=0}function Bn(fn){var Pn=this.has(fn)&&delete this.__data__[fn];return this.size-=Pn?1:0,Pn}function Vn(fn){var Pn=this.__data__;if(gn){var tu=Pn[fn];return tu===Ct?void 0:tu}return kr.call(Pn,fn)?Pn[fn]:void 0}function En(fn){var Pn=this.__data__;return gn?Pn[fn]!==void 0:kr.call(Pn,fn)}function Sn(fn,Pn){var tu=this.__data__;return this.size+=this.has(fn)?0:1,tu[fn]=gn&&Pn===void 0?Ct:Pn,this}au.prototype.clear=In,au.prototype.delete=Bn,au.prototype.get=Vn,au.prototype.has=En,au.prototype.set=Sn;function Xn(fn){var Pn=-1,tu=fn==null?0:fn.length;for(this.clear();++Pn<tu;){var yu=fn[Pn];this.set(yu[0],yu[1])}}function uu(){this.__data__=[],this.size=0}function Eu(fn){var Pn=this.__data__,tu=cn(Pn,fn);if(tu<0)return!1;var yu=Pn.length-1;return tu==yu?Pn.pop():Wn.call(Pn,tu,1),--this.size,!0}function pu(fn){var Pn=this.__data__,tu=cn(Pn,fn);return tu<0?void 0:Pn[tu][1]}function Qn(fn){return cn(this.__data__,fn)>-1}function Jn(fn,Pn){var tu=this.__data__,yu=cn(tu,fn);return yu<0?(++this.size,tu.push([fn,Pn])):tu[yu][1]=Pn,this}Xn.prototype.clear=uu,Xn.prototype.delete=Eu,Xn.prototype.get=pu,Xn.prototype.has=Qn,Xn.prototype.set=Jn;function ou(fn){var Pn=-1,tu=fn==null?0:fn.length;for(this.clear();++Pn<tu;){var yu=fn[Pn];this.set(yu[0],yu[1])}}function mu(){this.size=0,this.__data__={hash:new au,map:new(Zn||Xn),string:new au}}function xu(fn){var Pn=Ou(this,fn).delete(fn);return this.size-=Pn?1:0,Pn}function _u(fn){return Ou(this,fn).get(fn)}function $u(fn){return Ou(this,fn).has(fn)}function Au(fn,Pn){var tu=Ou(this,fn),yu=tu.size;return tu.set(fn,Pn),this.size+=tu.size==yu?0:1,this}ou.prototype.clear=mu,ou.prototype.delete=xu,ou.prototype.get=_u,ou.prototype.has=$u,ou.prototype.set=Au;function Bu(fn){var Pn=-1,tu=fn==null?0:fn.length;for(this.__data__=new ou;++Pn<tu;)this.add(fn[Pn])}function Su(fn){return this.__data__.set(fn,Ct),this}function Ru(fn){return this.__data__.has(fn)}Bu.prototype.add=Bu.prototype.push=Su,Bu.prototype.has=Ru;function lu(fn){var Pn=this.__data__=new Xn(fn);this.size=Pn.size}function du(){this.__data__=new Xn,this.size=0}function fu(fn){var Pn=this.__data__,tu=Pn.delete(fn);return this.size=Pn.size,tu}function Tu(fn){return this.__data__.get(fn)}function Zu(fn){return this.__data__.has(fn)}function rn(fn,Pn){var tu=this.__data__;if(tu instanceof Xn){var yu=tu.__data__;if(!Zn||yu.length<yt-1)return yu.push([fn,Pn]),this.size=++tu.size,this;tu=this.__data__=new ou(yu)}return tu.set(fn,Pn),this.size=tu.size,this}lu.prototype.clear=du,lu.prototype.delete=fu,lu.prototype.get=Tu,lu.prototype.has=Zu,lu.prototype.set=rn;function xn(fn,Pn){var tu=To(fn),yu=!tu&&Mo(fn),Yu=!tu&&!yu&&vu(fn),ju=!tu&&!yu&&!Yu&&ds(fn),oo=tu||yu||Yu||ju,co=oo?Ur(fn.length,String):[],ho=co.length;for(var Ju in fn)kr.call(fn,Ju)&&!(oo&&(Ju=="length"||Yu&&(Ju=="offset"||Ju=="parent")||ju&&(Ju=="buffer"||Ju=="byteLength"||Ju=="byteOffset")||Iu(Ju,ho)))&&co.push(Ju);return co}function cn(fn,Pn){for(var tu=fn.length;tu--;)if(_o(fn[tu][0],Pn))return tu;return-1}function Dn(fn,Pn,tu){var yu=Pn(fn);return To(fn)?yu:Lr(yu,tu(fn))}function Mn(fn){return fn==null?fn===void 0?yr:Qt:_n&&_n in Object(fn)?Lu(fn):Eo(fn)}function vn(fn){return No(fn)&&Mn(fn)==Dt}function Ln(fn,Pn,tu,yu,Yu){return fn===Pn?!0:fn==null||Pn==null||!No(fn)&&!No(Pn)?fn!==fn&&Pn!==Pn:zn(fn,Pn,tu,yu,Ln,Yu)}function zn(fn,Pn,tu,yu,Yu,ju){var oo=To(fn),co=To(Pn),ho=oo?Ft:bu(fn),Ju=co?Ft:bu(Pn);ho=ho==Dt?Zt:ho,Ju=Ju==Dt?Zt:Ju;var Ao=ho==Zt,Oo=Ju==Zt,go=ho==Ju;if(go&&vu(fn)){if(!vu(Pn))return!1;oo=!0,Ao=!1}if(go&&!Ao)return ju||(ju=new lu),oo||ds(fn)?cu(fn,Pn,tu,yu,Yu,ju):Cu(fn,Pn,ho,tu,yu,Yu,ju);if(!(tu&$t)){var Do=Ao&&kr.call(fn,"__wrapped__"),Fo=Oo&&kr.call(Pn,"__wrapped__");if(Do||Fo){var Go=Do?fn.value():fn,Uo=Fo?Pn.value():Pn;return ju||(ju=new lu),Yu(Go,Uo,tu,yu,ju)}}return go?(ju||(ju=new lu),Du(fn,Pn,tu,yu,Yu,ju)):!1}function Hn(fn){if(!Xu(fn)||_i(fn))return!1;var Pn=Gu(fn)?Hr:_r;return Pn.test(Qu(fn))}function Un(fn){return No(fn)&&uo(fn.length)&&!!Tr[Mn(fn)]}function Kn(fn){if(!Vu(fn))return Tn(fn);var Pn=[];for(var tu in Object(fn))kr.call(fn,tu)&&tu!="constructor"&&Pn.push(tu);return Pn}function cu(fn,Pn,tu,yu,Yu,ju){var oo=tu&$t,co=fn.length,ho=Pn.length;if(co!=ho&&!(oo&&ho>co))return!1;var Ju=ju.get(fn);if(Ju&&ju.get(Pn))return Ju==Pn;var Ao=-1,Oo=!0,go=tu&At?new Bu:void 0;for(ju.set(fn,Pn),ju.set(Pn,fn);++Ao<co;){var Do=fn[Ao],Fo=Pn[Ao];if(yu)var Go=oo?yu(Fo,Do,Ao,Pn,fn,ju):yu(Do,Fo,Ao,fn,Pn,ju);if(Go!==void 0){if(Go)continue;Oo=!1;break}if(go){if(!Wr(Pn,function(Uo,Qo){if(!Kr(go,Qo)&&(Do===Uo||Yu(Do,Uo,tu,yu,ju)))return go.push(Qo)})){Oo=!1;break}}else if(!(Do===Fo||Yu(Do,Fo,tu,yu,ju))){Oo=!1;break}}return ju.delete(fn),ju.delete(Pn),Oo}function Cu(fn,Pn,tu,yu,Yu,ju,oo){switch(tu){case Lt:if(fn.byteLength!=Pn.byteLength||fn.byteOffset!=Pn.byteOffset)return!1;fn=fn.buffer,Pn=Pn.buffer;case rr:return!(fn.byteLength!=Pn.byteLength||!ju(new Qr(fn),new Qr(Pn)));case Mt:case Nt:case Xt:return _o(+fn,+Pn);case jt:return fn.name==Pn.name&&fn.message==Pn.message;case Er:case gr:return fn==Pn+"";case Kt:var co=Zr;case pr:var ho=yu&$t;if(co||(co=Xr),fn.size!=Pn.size&&!ho)return!1;var Ju=oo.get(fn);if(Ju)return Ju==Pn;yu|=At,oo.set(fn,Pn);var Ao=cu(co(fn),co(Pn),yu,Yu,ju,oo);return oo.delete(fn),Ao;case vr:if(On)return On.call(fn)==On.call(Pn)}return!1}function Du(fn,Pn,tu,yu,Yu,ju){var oo=tu&$t,co=Fu(fn),ho=co.length,Ju=Fu(Pn),Ao=Ju.length;if(ho!=Ao&&!oo)return!1;for(var Oo=ho;Oo--;){var go=co[Oo];if(!(oo?go in Pn:kr.call(Pn,go)))return!1}var Do=ju.get(fn);if(Do&&ju.get(Pn))return Do==Pn;var Fo=!0;ju.set(fn,Pn),ju.set(Pn,fn);for(var Go=oo;++Oo<ho;){go=co[Oo];var Uo=fn[go],Qo=Pn[go];if(yu)var Xs=oo?yu(Qo,Uo,go,Pn,fn,ju):yu(Uo,Qo,go,fn,Pn,ju);if(!(Xs===void 0?Uo===Qo||Yu(Uo,Qo,tu,yu,ju):Xs)){Fo=!1;break}Go||(Go=go=="constructor")}if(Fo&&!Go){var ws=fn.constructor,Ss=Pn.constructor;ws!=Ss&&"constructor"in fn&&"constructor"in Pn&&!(typeof ws=="function"&&ws instanceof ws&&typeof Ss=="function"&&Ss instanceof Ss)&&(Fo=!1)}return ju.delete(fn),ju.delete(Pn),Fo}function Fu(fn){return Dn(fn,As,ao)}function Ou(fn,Pn){var tu=fn.__data__;return Hu(Pn)?tu[typeof Pn=="string"?"string":"hash"]:tu.map}function Nu(fn,Pn){var tu=qr(fn,Pn);return Hn(tu)?tu:void 0}function Lu(fn){var Pn=kr.call(fn,_n),tu=fn[_n];try{fn[_n]=void 0;var yu=!0}catch{}var Yu=Ir.call(fn);return yu&&(Pn?fn[_n]=tu:delete fn[_n]),Yu}var ao=An?function(fn){return fn==null?[]:(fn=Object(fn),Nr(An(fn),function(Pn){return hn.call(fn,Pn)}))}:fs,bu=Mn;(Nn&&bu(new Nn(new ArrayBuffer(1)))!=Lt||Zn&&bu(new Zn)!=Kt||$n&&bu($n.resolve())!=dr||Fn&&bu(new Fn)!=pr||Gn&&bu(new Gn)!=xr)&&(bu=function(fn){var Pn=Mn(fn),tu=Pn==Zt?fn.constructor:void 0,yu=tu?Qu(tu):"";if(yu)switch(yu){case Rn:return Lt;case nu:return Kt;case pn:return dr;case yn:return pr;case jn:return xr}return Pn});function Iu(fn,Pn){return Pn=Pn??Bt,!!Pn&&(typeof fn=="number"||$r.test(fn))&&fn>-1&&fn%1==0&&fn<Pn}function Hu(fn){var Pn=typeof fn;return Pn=="string"||Pn=="number"||Pn=="symbol"||Pn=="boolean"?fn!=="__proto__":fn===null}function _i(fn){return!!Mr&&Mr in fn}function Vu(fn){var Pn=fn&&fn.constructor,tu=typeof Pn=="function"&&Pn.prototype||Gr;return fn===tu}function Eo(fn){return Ir.call(fn)}function Qu(fn){if(fn!=null){try{return wn.call(fn)}catch{}try{return fn+""}catch{}}return""}function _o(fn,Pn){return fn===Pn||fn!==fn&&Pn!==Pn}var Mo=vn(function(){return arguments}())?vn:function(fn){return No(fn)&&kr.call(fn,"callee")&&!hn.call(fn,"callee")},To=Array.isArray;function Cs(fn){return fn!=null&&uo(fn.length)&&!Gu(fn)}var vu=Yn||e0;function Mu(fn,Pn){return Ln(fn,Pn)}function Gu(fn){if(!Xu(fn))return!1;var Pn=Mn(fn);return Pn==zt||Pn==Vt||Pn==kt||Pn==cr}function uo(fn){return typeof fn=="number"&&fn>-1&&fn%1==0&&fn<=Bt}function Xu(fn){var Pn=typeof fn;return fn!=null&&(Pn=="object"||Pn=="function")}function No(fn){return fn!=null&&typeof fn=="object"}var ds=Pr?jr(Pr):Un;function As(fn){return Cs(fn)?xn(fn):Kn(fn)}function fs(){return[]}function e0(){return!1}ht.exports=Mu})(lodash_isequal,lodash_isequal.exports);var lodash_isequalExports=lodash_isequal.exports;const Bi=getDefaultExportFromCjs$1(lodash_isequalExports);var editorOptions$1={};Object.defineProperty(editorOptions$1,"__esModule",{value:!0});editorOptions$1.getAceInstance=editorOptions$1.debounce=editorOptions$1.editorEvents=editorOptions$1.editorOptions=void 0;var editorOptions=["minLines","maxLines","readOnly","highlightActiveLine","tabSize","enableBasicAutocompletion","enableLiveAutocompletion","enableSnippets"];editorOptions$1.editorOptions=editorOptions;var editorEvents=["onChange","onFocus","onInput","onBlur","onCopy","onPaste","onSelectionChange","onCursorChange","onScroll","handleOptions","updateRef"];editorOptions$1.editorEvents=editorEvents;var getAceInstance=function(){var ht;return typeof window>"u"?(commonjsGlobal.window={},ht=aceExports,delete commonjsGlobal.window):window.ace?(ht=window.ace,ht.acequire=window.ace.require||window.ace.acequire):ht=aceExports,ht};editorOptions$1.getAceInstance=getAceInstance;var debounce$1=function(ht,Et){var yt=null;return function(){var Ct=this,$t=arguments;clearTimeout(yt),yt=setTimeout(function(){ht.apply(Ct,$t)},Et)}};editorOptions$1.debounce=debounce$1;var __extends$2=commonjsGlobal&&commonjsGlobal.__extends||function(){var ht=function(Et,yt){return ht=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ct,$t){Ct.__proto__=$t}||function(Ct,$t){for(var At in $t)Object.prototype.hasOwnProperty.call($t,At)&&(Ct[At]=$t[At])},ht(Et,yt)};return function(Et,yt){if(typeof yt!="function"&&yt!==null)throw new TypeError("Class extends value "+String(yt)+" is not a constructor or null");ht(Et,yt);function Ct(){this.constructor=Et}Et.prototype=yt===null?Object.create(yt):(Ct.prototype=yt.prototype,new Ct)}}(),__assign$1=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$1=Object.assign||function(ht){for(var Et,yt=1,Ct=arguments.length;yt<Ct;yt++){Et=arguments[yt];for(var $t in Et)Object.prototype.hasOwnProperty.call(Et,$t)&&(ht[$t]=Et[$t])}return ht},__assign$1.apply(this,arguments)};Object.defineProperty(ace$4,"__esModule",{value:!0});var ace_builds_1$1=aceExports,PropTypes$2=propTypesExports,React$3=reactExports,isEqual$2=lodash_isequalExports,editorOptions_1$1=editorOptions$1,ace$2=(0,editorOptions_1$1.getAceInstance)(),ReactAce=function(ht){__extends$2(Et,ht);function Et(yt){var Ct=ht.call(this,yt)||this;return editorOptions_1$1.editorEvents.forEach(function($t){Ct[$t]=Ct[$t].bind(Ct)}),Ct.debounce=editorOptions_1$1.debounce,Ct}return Et.prototype.isInShadow=function(yt){for(var Ct=yt&&yt.parentNode;Ct;){if(Ct.toString()==="[object ShadowRoot]")return!0;Ct=Ct.parentNode}return!1},Et.prototype.componentDidMount=function(){var yt=this,Ct=this.props,$t=Ct.className,At=Ct.onBeforeLoad,Bt=Ct.onValidate,Dt=Ct.mode,Ft=Ct.focus,kt=Ct.theme,Mt=Ct.fontSize,Nt=Ct.value,jt=Ct.defaultValue,zt=Ct.showGutter,Vt=Ct.wrapEnabled,Kt=Ct.showPrintMargin,Xt=Ct.scrollMargin,Qt=Xt===void 0?[0,0,0,0]:Xt,Zt=Ct.keyboardHandler,dr=Ct.onLoad,cr=Ct.commands,Er=Ct.annotations,pr=Ct.markers,gr=Ct.placeholder;this.editor=ace$2.edit(this.refEditor),At&&At(ace$2);for(var vr=Object.keys(this.props.editorProps),yr=0;yr<vr.length;yr++)this.editor[vr[yr]]=this.props.editorProps[vr[yr]];this.props.debounceChangePeriod&&(this.onChange=this.debounce(this.onChange,this.props.debounceChangePeriod)),this.editor.renderer.setScrollMargin(Qt[0],Qt[1],Qt[2],Qt[3]),this.isInShadow(this.refEditor)&&this.editor.renderer.attachToShadowRoot(),this.editor.getSession().setMode(typeof Dt=="string"?"ace/mode/".concat(Dt):Dt),kt&&kt!==""&&this.editor.setTheme("ace/theme/".concat(kt)),this.editor.setFontSize(typeof Mt=="number"?"".concat(Mt,"px"):Mt),this.editor.getSession().setValue(jt||Nt||""),this.props.navigateToFileEnd&&this.editor.navigateFileEnd(),this.editor.renderer.setShowGutter(zt),this.editor.getSession().setUseWrapMode(Vt),this.editor.setShowPrintMargin(Kt),this.editor.on("focus",this.onFocus),this.editor.on("blur",this.onBlur),this.editor.on("copy",this.onCopy),this.editor.on("paste",this.onPaste),this.editor.on("change",this.onChange),this.editor.on("input",this.onInput),gr&&this.updatePlaceholder(),this.editor.getSession().selection.on("changeSelection",this.onSelectionChange),this.editor.getSession().selection.on("changeCursor",this.onCursorChange),Bt&&this.editor.getSession().on("changeAnnotation",function(){var rr=yt.editor.getSession().getAnnotations();yt.props.onValidate(rr)}),this.editor.session.on("changeScrollTop",this.onScroll),this.editor.getSession().setAnnotations(Er||[]),pr&&pr.length>0&&this.handleMarkers(pr);var xr=this.editor.$options;editorOptions_1$1.editorOptions.forEach(function(rr){xr.hasOwnProperty(rr)?yt.editor.setOption(rr,yt.props[rr]):yt.props[rr]&&console.warn("ReactAce: editor option ".concat(rr," was activated but not found. Did you need to import a related tool or did you possibly mispell the option?"))}),this.handleOptions(this.props),Array.isArray(cr)&&cr.forEach(function(rr){typeof rr.exec=="string"?yt.editor.commands.bindKey(rr.bindKey,rr.exec):yt.editor.commands.addCommand(rr)}),Zt&&this.editor.setKeyboardHandler("ace/keyboard/"+Zt),$t&&(this.refEditor.className+=" "+$t),dr&&dr(this.editor),this.editor.resize(),Ft&&this.editor.focus()},Et.prototype.componentDidUpdate=function(yt){for(var Ct=yt,$t=this.props,At=0;At<editorOptions_1$1.editorOptions.length;At++){var Bt=editorOptions_1$1.editorOptions[At];$t[Bt]!==Ct[Bt]&&this.editor.setOption(Bt,$t[Bt])}if($t.className!==Ct.className){var Dt=this.refEditor.className,Ft=Dt.trim().split(" "),kt=Ct.className.trim().split(" ");kt.forEach(function(jt){var zt=Ft.indexOf(jt);Ft.splice(zt,1)}),this.refEditor.className=" "+$t.className+" "+Ft.join(" ")}var Mt=this.editor&&$t.value!=null&&this.editor.getValue()!==$t.value;if(Mt){this.silent=!0;var Nt=this.editor.session.selection.toJSON();this.editor.setValue($t.value,$t.cursorStart),this.editor.session.selection.fromJSON(Nt),this.silent=!1}$t.placeholder!==Ct.placeholder&&this.updatePlaceholder(),$t.mode!==Ct.mode&&this.editor.getSession().setMode(typeof $t.mode=="string"?"ace/mode/".concat($t.mode):$t.mode),$t.theme!==Ct.theme&&this.editor.setTheme("ace/theme/"+$t.theme),$t.keyboardHandler!==Ct.keyboardHandler&&($t.keyboardHandler?this.editor.setKeyboardHandler("ace/keyboard/"+$t.keyboardHandler):this.editor.setKeyboardHandler(null)),$t.fontSize!==Ct.fontSize&&this.editor.setFontSize(typeof $t.fontSize=="number"?"".concat($t.fontSize,"px"):$t.fontSize),$t.wrapEnabled!==Ct.wrapEnabled&&this.editor.getSession().setUseWrapMode($t.wrapEnabled),$t.showPrintMargin!==Ct.showPrintMargin&&this.editor.setShowPrintMargin($t.showPrintMargin),$t.showGutter!==Ct.showGutter&&this.editor.renderer.setShowGutter($t.showGutter),isEqual$2($t.setOptions,Ct.setOptions)||this.handleOptions($t),(Mt||!isEqual$2($t.annotations,Ct.annotations))&&this.editor.getSession().setAnnotations($t.annotations||[]),!isEqual$2($t.markers,Ct.markers)&&Array.isArray($t.markers)&&this.handleMarkers($t.markers),isEqual$2($t.scrollMargin,Ct.scrollMargin)||this.handleScrollMargins($t.scrollMargin),(yt.height!==this.props.height||yt.width!==this.props.width)&&this.editor.resize(),this.props.focus&&!yt.focus&&this.editor.focus()},Et.prototype.handleScrollMargins=function(yt){yt===void 0&&(yt=[0,0,0,0]),this.editor.renderer.setScrollMargin(yt[0],yt[1],yt[2],yt[3])},Et.prototype.componentWillUnmount=function(){this.editor&&(this.editor.destroy(),this.editor=null)},Et.prototype.onChange=function(yt){if(this.props.onChange&&!this.silent){var Ct=this.editor.getValue();this.props.onChange(Ct,yt)}},Et.prototype.onSelectionChange=function(yt){if(this.props.onSelectionChange){var Ct=this.editor.getSelection();this.props.onSelectionChange(Ct,yt)}},Et.prototype.onCursorChange=function(yt){if(this.props.onCursorChange){var Ct=this.editor.getSelection();this.props.onCursorChange(Ct,yt)}},Et.prototype.onInput=function(yt){this.props.onInput&&this.props.onInput(yt),this.props.placeholder&&this.updatePlaceholder()},Et.prototype.onFocus=function(yt){this.props.onFocus&&this.props.onFocus(yt,this.editor)},Et.prototype.onBlur=function(yt){this.props.onBlur&&this.props.onBlur(yt,this.editor)},Et.prototype.onCopy=function(yt){var Ct=yt.text;this.props.onCopy&&this.props.onCopy(Ct)},Et.prototype.onPaste=function(yt){var Ct=yt.text;this.props.onPaste&&this.props.onPaste(Ct)},Et.prototype.onScroll=function(){this.props.onScroll&&this.props.onScroll(this.editor)},Et.prototype.handleOptions=function(yt){for(var Ct=Object.keys(yt.setOptions),$t=0;$t<Ct.length;$t++)this.editor.setOption(Ct[$t],yt.setOptions[Ct[$t]])},Et.prototype.handleMarkers=function(yt){var Ct=this,$t=this.editor.getSession().getMarkers(!0);for(var At in $t)$t.hasOwnProperty(At)&&this.editor.getSession().removeMarker($t[At].id);$t=this.editor.getSession().getMarkers(!1);for(var At in $t)$t.hasOwnProperty(At)&&$t[At].clazz!=="ace_active-line"&&$t[At].clazz!=="ace_selected-word"&&this.editor.getSession().removeMarker($t[At].id);yt.forEach(function(Bt){var Dt=Bt.startRow,Ft=Bt.startCol,kt=Bt.endRow,Mt=Bt.endCol,Nt=Bt.className,jt=Bt.type,zt=Bt.inFront,Vt=zt===void 0?!1:zt,Kt=new ace_builds_1$1.Range(Dt,Ft,kt,Mt);Ct.editor.getSession().addMarker(Kt,Nt,jt,Vt)})},Et.prototype.updatePlaceholder=function(){var yt=this.editor,Ct=this.props.placeholder,$t=!yt.session.getValue().length,At=yt.renderer.placeholderNode;!$t&&At?(yt.renderer.scroller.removeChild(yt.renderer.placeholderNode),yt.renderer.placeholderNode=null):$t&&!At?(At=yt.renderer.placeholderNode=document.createElement("div"),At.textContent=Ct||"",At.className="ace_comment ace_placeholder",At.style.padding="0 9px",At.style.position="absolute",At.style.zIndex="3",yt.renderer.scroller.appendChild(At)):$t&&At&&(At.textContent=Ct)},Et.prototype.updateRef=function(yt){this.refEditor=yt},Et.prototype.render=function(){var yt=this.props,Ct=yt.name,$t=yt.width,At=yt.height,Bt=yt.style,Dt=__assign$1({width:$t,height:At},Bt);return React$3.createElement("div",{ref:this.updateRef,id:Ct,style:Dt})},Et.propTypes={mode:PropTypes$2.oneOfType([PropTypes$2.string,PropTypes$2.object]),focus:PropTypes$2.bool,theme:PropTypes$2.string,name:PropTypes$2.string,className:PropTypes$2.string,height:PropTypes$2.string,width:PropTypes$2.string,fontSize:PropTypes$2.oneOfType([PropTypes$2.number,PropTypes$2.string]),showGutter:PropTypes$2.bool,onChange:PropTypes$2.func,onCopy:PropTypes$2.func,onPaste:PropTypes$2.func,onFocus:PropTypes$2.func,onInput:PropTypes$2.func,onBlur:PropTypes$2.func,onScroll:PropTypes$2.func,value:PropTypes$2.string,defaultValue:PropTypes$2.string,onLoad:PropTypes$2.func,onSelectionChange:PropTypes$2.func,onCursorChange:PropTypes$2.func,onBeforeLoad:PropTypes$2.func,onValidate:PropTypes$2.func,minLines:PropTypes$2.number,maxLines:PropTypes$2.number,readOnly:PropTypes$2.bool,highlightActiveLine:PropTypes$2.bool,tabSize:PropTypes$2.number,showPrintMargin:PropTypes$2.bool,cursorStart:PropTypes$2.number,debounceChangePeriod:PropTypes$2.number,editorProps:PropTypes$2.object,setOptions:PropTypes$2.object,style:PropTypes$2.object,scrollMargin:PropTypes$2.array,annotations:PropTypes$2.array,markers:PropTypes$2.array,keyboardHandler:PropTypes$2.string,wrapEnabled:PropTypes$2.bool,enableSnippets:PropTypes$2.bool,enableBasicAutocompletion:PropTypes$2.oneOfType([PropTypes$2.bool,PropTypes$2.array]),enableLiveAutocompletion:PropTypes$2.oneOfType([PropTypes$2.bool,PropTypes$2.array]),navigateToFileEnd:PropTypes$2.bool,commands:PropTypes$2.array,placeholder:PropTypes$2.string},Et.defaultProps={name:"ace-editor",focus:!1,mode:"",theme:"",height:"500px",width:"500px",fontSize:12,enableSnippets:!1,showGutter:!0,onChange:null,onPaste:null,onLoad:null,onScroll:null,minLines:null,maxLines:null,readOnly:!1,highlightActiveLine:!0,showPrintMargin:!0,tabSize:4,cursorStart:1,editorProps:{},style:{},scrollMargin:[0,0,0,0],setOptions:{},wrapEnabled:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,placeholder:null,navigateToFileEnd:!0},Et}(React$3.Component);ace$4.default=ReactAce;var diff={},split$1={},extSplit={exports:{}};(function(ht,Et){ace.define("ace/split",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/editor","ace/virtual_renderer","ace/edit_session"],function(yt,Ct,$t){var At=yt("./lib/oop");yt("./lib/lang");var Bt=yt("./lib/event_emitter").EventEmitter,Dt=yt("./editor").Editor,Ft=yt("./virtual_renderer").VirtualRenderer,kt=yt("./edit_session").EditSession,Mt;Mt=function(Nt,jt,zt){this.BELOW=1,this.BESIDE=0,this.$container=Nt,this.$theme=jt,this.$splits=0,this.$editorCSS="",this.$editors=[],this.$orientation=this.BESIDE,this.setSplits(zt||1),this.$cEditor=this.$editors[0],this.on("focus",(function(Vt){this.$cEditor=Vt}).bind(this))},(function(){At.implement(this,Bt),this.$createEditor=function(){var Nt=document.createElement("div");Nt.className=this.$editorCSS,Nt.style.cssText="position: absolute; top:0px; bottom:0px",this.$container.appendChild(Nt);var jt=new Dt(new Ft(Nt,this.$theme));return jt.on("focus",(function(){this._emit("focus",jt)}).bind(this)),this.$editors.push(jt),jt.setFontSize(this.$fontSize),jt},this.setSplits=function(Nt){var jt;if(Nt<1)throw"The number of splits have to be > 0!";if(Nt!=this.$splits){if(Nt>this.$splits){for(;this.$splits<this.$editors.length&&this.$splits<Nt;)jt=this.$editors[this.$splits],this.$container.appendChild(jt.container),jt.setFontSize(this.$fontSize),this.$splits++;for(;this.$splits<Nt;)this.$createEditor(),this.$splits++}else for(;this.$splits>Nt;)jt=this.$editors[this.$splits-1],this.$container.removeChild(jt.container),this.$splits--;this.resize()}},this.getSplits=function(){return this.$splits},this.getEditor=function(Nt){return this.$editors[Nt]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(Nt){this.$editors.forEach(function(jt){jt.setTheme(Nt)})},this.setKeyboardHandler=function(Nt){this.$editors.forEach(function(jt){jt.setKeyboardHandler(Nt)})},this.forEach=function(Nt,jt){this.$editors.forEach(Nt,jt)},this.$fontSize="",this.setFontSize=function(Nt){this.$fontSize=Nt,this.forEach(function(jt){jt.setFontSize(Nt)})},this.$cloneSession=function(Nt){var jt=new kt(Nt.getDocument(),Nt.getMode()),zt=Nt.getUndoManager();return jt.setUndoManager(zt),jt.setTabSize(Nt.getTabSize()),jt.setUseSoftTabs(Nt.getUseSoftTabs()),jt.setOverwrite(Nt.getOverwrite()),jt.setBreakpoints(Nt.getBreakpoints()),jt.setUseWrapMode(Nt.getUseWrapMode()),jt.setUseWorker(Nt.getUseWorker()),jt.setWrapLimitRange(Nt.$wrapLimitRange.min,Nt.$wrapLimitRange.max),jt.$foldData=Nt.$cloneFoldData(),jt},this.setSession=function(Nt,jt){var zt;jt==null?zt=this.$cEditor:zt=this.$editors[jt];var Vt=this.$editors.some(function(Kt){return Kt.session===Nt});return Vt&&(Nt=this.$cloneSession(Nt)),zt.setSession(Nt),Nt},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(Nt){this.$orientation!=Nt&&(this.$orientation=Nt,this.resize())},this.resize=function(){var Nt=this.$container.clientWidth,jt=this.$container.clientHeight,zt;if(this.$orientation==this.BESIDE)for(var Vt=Nt/this.$splits,Kt=0;Kt<this.$splits;Kt++)zt=this.$editors[Kt],zt.container.style.width=Vt+"px",zt.container.style.top="0px",zt.container.style.left=Kt*Vt+"px",zt.container.style.height=jt+"px",zt.resize();else for(var Xt=jt/this.$splits,Kt=0;Kt<this.$splits;Kt++)zt=this.$editors[Kt],zt.container.style.width=Nt+"px",zt.container.style.top=Kt*Xt+"px",zt.container.style.left="0px",zt.container.style.height=Xt+"px",zt.resize()}}).call(Mt.prototype),Ct.Split=Mt}),ace.define("ace/ext/split",["require","exports","module","ace/split"],function(yt,Ct,$t){$t.exports=yt("../split")}),function(){ace.require(["ace/ext/split"],function(yt){ht&&(ht.exports=yt)})}()})(extSplit);var extSplitExports=extSplit.exports,FUNC_ERROR_TEXT="Expected a function",HASH_UNDEFINED="__lodash_hash_undefined__",INFINITY=1/0,funcTag="[object Function]",genTag="[object GeneratorFunction]",symbolTag="[object Symbol]",reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/,reLeadingDot=/^\./,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reEscapeChar=/\\(\\)?/g,reIsHostCtor=/^\[object .+?Constructor\]$/,freeGlobal=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root$1=freeGlobal||freeSelf||Function("return this")();function getValue(ht,Et){return ht==null?void 0:ht[Et]}function isHostObject(ht){var Et=!1;if(ht!=null&&typeof ht.toString!="function")try{Et=!!(ht+"")}catch{}return Et}var arrayProto=Array.prototype,funcProto=Function.prototype,objectProto=Object.prototype,coreJsData=root$1["__core-js_shared__"],maskSrcKey=function(){var ht=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return ht?"Symbol(src)_1."+ht:""}(),funcToString=funcProto.toString,hasOwnProperty$2=objectProto.hasOwnProperty,objectToString$1=objectProto.toString,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$2).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Symbol$3=root$1.Symbol,splice=arrayProto.splice,Map$1=getNative(root$1,"Map"),nativeCreate=getNative(Object,"create"),symbolProto=Symbol$3?Symbol$3.prototype:void 0,symbolToString=symbolProto?symbolProto.toString:void 0;function Hash(ht){var Et=-1,yt=ht?ht.length:0;for(this.clear();++Et<yt;){var Ct=ht[Et];this.set(Ct[0],Ct[1])}}function hashClear(){this.__data__=nativeCreate?nativeCreate(null):{}}function hashDelete(ht){return this.has(ht)&&delete this.__data__[ht]}function hashGet(ht){var Et=this.__data__;if(nativeCreate){var yt=Et[ht];return yt===HASH_UNDEFINED?void 0:yt}return hasOwnProperty$2.call(Et,ht)?Et[ht]:void 0}function hashHas(ht){var Et=this.__data__;return nativeCreate?Et[ht]!==void 0:hasOwnProperty$2.call(Et,ht)}function hashSet(ht,Et){var yt=this.__data__;return yt[ht]=nativeCreate&&Et===void 0?HASH_UNDEFINED:Et,this}Hash.prototype.clear=hashClear;Hash.prototype.delete=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;function ListCache(ht){var Et=-1,yt=ht?ht.length:0;for(this.clear();++Et<yt;){var Ct=ht[Et];this.set(Ct[0],Ct[1])}}function listCacheClear(){this.__data__=[]}function listCacheDelete(ht){var Et=this.__data__,yt=assocIndexOf(Et,ht);if(yt<0)return!1;var Ct=Et.length-1;return yt==Ct?Et.pop():splice.call(Et,yt,1),!0}function listCacheGet(ht){var Et=this.__data__,yt=assocIndexOf(Et,ht);return yt<0?void 0:Et[yt][1]}function listCacheHas(ht){return assocIndexOf(this.__data__,ht)>-1}function listCacheSet(ht,Et){var yt=this.__data__,Ct=assocIndexOf(yt,ht);return Ct<0?yt.push([ht,Et]):yt[Ct][1]=Et,this}ListCache.prototype.clear=listCacheClear;ListCache.prototype.delete=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(ht){var Et=-1,yt=ht?ht.length:0;for(this.clear();++Et<yt;){var Ct=ht[Et];this.set(Ct[0],Ct[1])}}function mapCacheClear(){this.__data__={hash:new Hash,map:new(Map$1||ListCache),string:new Hash}}function mapCacheDelete(ht){return getMapData(this,ht).delete(ht)}function mapCacheGet(ht){return getMapData(this,ht).get(ht)}function mapCacheHas(ht){return getMapData(this,ht).has(ht)}function mapCacheSet(ht,Et){return getMapData(this,ht).set(ht,Et),this}MapCache.prototype.clear=mapCacheClear;MapCache.prototype.delete=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;function assocIndexOf(ht,Et){for(var yt=ht.length;yt--;)if(eq(ht[yt][0],Et))return yt;return-1}function baseGet(ht,Et){Et=isKey(Et,ht)?[Et]:castPath(Et);for(var yt=0,Ct=Et.length;ht!=null&&yt<Ct;)ht=ht[toKey(Et[yt++])];return yt&&yt==Ct?ht:void 0}function baseIsNative(ht){if(!isObject$c(ht)||isMasked(ht))return!1;var Et=isFunction$2(ht)||isHostObject(ht)?reIsNative:reIsHostCtor;return Et.test(toSource(ht))}function baseToString(ht){if(typeof ht=="string")return ht;if(isSymbol$5(ht))return symbolToString?symbolToString.call(ht):"";var Et=ht+"";return Et=="0"&&1/ht==-INFINITY?"-0":Et}function castPath(ht){return isArray$5(ht)?ht:stringToPath(ht)}function getMapData(ht,Et){var yt=ht.__data__;return isKeyable(Et)?yt[typeof Et=="string"?"string":"hash"]:yt.map}function getNative(ht,Et){var yt=getValue(ht,Et);return baseIsNative(yt)?yt:void 0}function isKey(ht,Et){if(isArray$5(ht))return!1;var yt=typeof ht;return yt=="number"||yt=="symbol"||yt=="boolean"||ht==null||isSymbol$5(ht)?!0:reIsPlainProp.test(ht)||!reIsDeepProp.test(ht)||Et!=null&&ht in Object(Et)}function isKeyable(ht){var Et=typeof ht;return Et=="string"||Et=="number"||Et=="symbol"||Et=="boolean"?ht!=="__proto__":ht===null}function isMasked(ht){return!!maskSrcKey&&maskSrcKey in ht}var stringToPath=memoize(function(ht){ht=toString$a(ht);var Et=[];return reLeadingDot.test(ht)&&Et.push(""),ht.replace(rePropName,function(yt,Ct,$t,At){Et.push($t?At.replace(reEscapeChar,"$1"):Ct||yt)}),Et});function toKey(ht){if(typeof ht=="string"||isSymbol$5(ht))return ht;var Et=ht+"";return Et=="0"&&1/ht==-INFINITY?"-0":Et}function toSource(ht){if(ht!=null){try{return funcToString.call(ht)}catch{}try{return ht+""}catch{}}return""}function memoize(ht,Et){if(typeof ht!="function"||Et&&typeof Et!="function")throw new TypeError(FUNC_ERROR_TEXT);var yt=function(){var Ct=arguments,$t=Et?Et.apply(this,Ct):Ct[0],At=yt.cache;if(At.has($t))return At.get($t);var Bt=ht.apply(this,Ct);return yt.cache=At.set($t,Bt),Bt};return yt.cache=new(memoize.Cache||MapCache),yt}memoize.Cache=MapCache;function eq(ht,Et){return ht===Et||ht!==ht&&Et!==Et}var isArray$5=Array.isArray;function isFunction$2(ht){var Et=isObject$c(ht)?objectToString$1.call(ht):"";return Et==funcTag||Et==genTag}function isObject$c(ht){var Et=typeof ht;return!!ht&&(Et=="object"||Et=="function")}function isObjectLike(ht){return!!ht&&typeof ht=="object"}function isSymbol$5(ht){return typeof ht=="symbol"||isObjectLike(ht)&&objectToString$1.call(ht)==symbolTag}function toString$a(ht){return ht==null?"":baseToString(ht)}function get$2(ht,Et,yt){var Ct=ht==null?void 0:baseGet(ht,Et);return Ct===void 0?yt:Ct}var lodash_get=get$2,__extends$1=commonjsGlobal&&commonjsGlobal.__extends||function(){var ht=function(Et,yt){return ht=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ct,$t){Ct.__proto__=$t}||function(Ct,$t){for(var At in $t)Object.prototype.hasOwnProperty.call($t,At)&&(Ct[At]=$t[At])},ht(Et,yt)};return function(Et,yt){if(typeof yt!="function"&&yt!==null)throw new TypeError("Class extends value "+String(yt)+" is not a constructor or null");ht(Et,yt);function Ct(){this.constructor=Et}Et.prototype=yt===null?Object.create(yt):(Ct.prototype=yt.prototype,new Ct)}}(),__assign=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign=Object.assign||function(ht){for(var Et,yt=1,Ct=arguments.length;yt<Ct;yt++){Et=arguments[yt];for(var $t in Et)Object.prototype.hasOwnProperty.call(Et,$t)&&(ht[$t]=Et[$t])}return ht},__assign.apply(this,arguments)};Object.defineProperty(split$1,"__esModule",{value:!0});var editorOptions_1=editorOptions$1,ace$1=(0,editorOptions_1.getAceInstance)(),ace_builds_1=aceExports,ext_split_1=extSplitExports,PropTypes$1=propTypesExports,React$2=reactExports,isEqual$1=lodash_isequalExports,get$1=lodash_get,SplitComponent=function(ht){__extends$1(Et,ht);function Et(yt){var Ct=ht.call(this,yt)||this;return editorOptions_1.editorEvents.forEach(function($t){Ct[$t]=Ct[$t].bind(Ct)}),Ct.debounce=editorOptions_1.debounce,Ct}return Et.prototype.isInShadow=function(yt){for(var Ct=yt&&yt.parentNode;Ct;){if(Ct.toString()==="[object ShadowRoot]")return!0;Ct=Ct.parentNode}return!1},Et.prototype.componentDidMount=function(){var yt=this,Ct=this.props,$t=Ct.className,At=Ct.onBeforeLoad,Bt=Ct.mode,Dt=Ct.focus,Ft=Ct.theme,kt=Ct.fontSize,Mt=Ct.value,Nt=Ct.defaultValue,jt=Ct.cursorStart,zt=Ct.showGutter,Vt=Ct.wrapEnabled,Kt=Ct.showPrintMargin,Xt=Ct.scrollMargin,Qt=Xt===void 0?[0,0,0,0]:Xt,Zt=Ct.keyboardHandler,dr=Ct.onLoad,cr=Ct.commands,Er=Ct.annotations,pr=Ct.markers,gr=Ct.splits;this.editor=ace$1.edit(this.refEditor),this.isInShadow(this.refEditor)&&this.editor.renderer.attachToShadowRoot(),this.editor.setTheme("ace/theme/".concat(Ft)),At&&At(ace$1);var vr=Object.keys(this.props.editorProps),yr=new ext_split_1.Split(this.editor.container,"ace/theme/".concat(Ft),gr);this.editor.env.split=yr,this.splitEditor=yr.getEditor(0),this.split=yr,this.editor.setShowPrintMargin(!1),this.editor.renderer.setShowGutter(!1);var xr=this.splitEditor.$options;this.props.debounceChangePeriod&&(this.onChange=this.debounce(this.onChange,this.props.debounceChangePeriod)),yr.forEach(function(Lt,Ht){for(var Wt=0;Wt<vr.length;Wt++)Lt[vr[Wt]]=yt.props.editorProps[vr[Wt]];var Gt=get$1(Nt,Ht),Yt=get$1(Mt,Ht,"");Lt.session.setUndoManager(new ace$1.UndoManager),Lt.setTheme("ace/theme/".concat(Ft)),Lt.renderer.setScrollMargin(Qt[0],Qt[1],Qt[2],Qt[3]),Lt.getSession().setMode("ace/mode/".concat(Bt)),Lt.setFontSize(kt),Lt.renderer.setShowGutter(zt),Lt.getSession().setUseWrapMode(Vt),Lt.setShowPrintMargin(Kt),Lt.on("focus",yt.onFocus),Lt.on("blur",yt.onBlur),Lt.on("input",yt.onInput),Lt.on("copy",yt.onCopy),Lt.on("paste",yt.onPaste),Lt.on("change",yt.onChange),Lt.getSession().selection.on("changeSelection",yt.onSelectionChange),Lt.getSession().selection.on("changeCursor",yt.onCursorChange),Lt.session.on("changeScrollTop",yt.onScroll),Lt.setValue(Gt===void 0?Yt:Gt,jt);var er=get$1(Er,Ht,[]),lr=get$1(pr,Ht,[]);Lt.getSession().setAnnotations(er),lr&&lr.length>0&&yt.handleMarkers(lr,Lt);for(var Wt=0;Wt<editorOptions_1.editorOptions.length;Wt++){var Jt=editorOptions_1.editorOptions[Wt];xr.hasOwnProperty(Jt)?Lt.setOption(Jt,yt.props[Jt]):yt.props[Jt]&&console.warn("ReaceAce: editor option ".concat(Jt," was activated but not found. Did you need to import a related tool or did you possibly mispell the option?"))}yt.handleOptions(yt.props,Lt),Array.isArray(cr)&&cr.forEach(function(Ut){typeof Ut.exec=="string"?Lt.commands.bindKey(Ut.bindKey,Ut.exec):Lt.commands.addCommand(Ut)}),Zt&&Lt.setKeyboardHandler("ace/keyboard/"+Zt)}),$t&&(this.refEditor.className+=" "+$t),Dt&&this.splitEditor.focus();var rr=this.editor.env.split;rr.setOrientation(this.props.orientation==="below"?rr.BELOW:rr.BESIDE),rr.resize(!0),dr&&dr(rr)},Et.prototype.componentDidUpdate=function(yt){var Ct=this,$t=yt,At=this.props,Bt=this.editor.env.split;if(At.splits!==$t.splits&&Bt.setSplits(At.splits),At.orientation!==$t.orientation&&Bt.setOrientation(At.orientation==="below"?Bt.BELOW:Bt.BESIDE),Bt.forEach(function(Mt,Nt){At.mode!==$t.mode&&Mt.getSession().setMode("ace/mode/"+At.mode),At.keyboardHandler!==$t.keyboardHandler&&(At.keyboardHandler?Mt.setKeyboardHandler("ace/keyboard/"+At.keyboardHandler):Mt.setKeyboardHandler(null)),At.fontSize!==$t.fontSize&&Mt.setFontSize(At.fontSize),At.wrapEnabled!==$t.wrapEnabled&&Mt.getSession().setUseWrapMode(At.wrapEnabled),At.showPrintMargin!==$t.showPrintMargin&&Mt.setShowPrintMargin(At.showPrintMargin),At.showGutter!==$t.showGutter&&Mt.renderer.setShowGutter(At.showGutter);for(var jt=0;jt<editorOptions_1.editorOptions.length;jt++){var zt=editorOptions_1.editorOptions[jt];At[zt]!==$t[zt]&&Mt.setOption(zt,At[zt])}isEqual$1(At.setOptions,$t.setOptions)||Ct.handleOptions(At,Mt);var Vt=get$1(At.value,Nt,"");if(Mt.getValue()!==Vt){Ct.silent=!0;var Kt=Mt.session.selection.toJSON();Mt.setValue(Vt,At.cursorStart),Mt.session.selection.fromJSON(Kt),Ct.silent=!1}var Xt=get$1(At.annotations,Nt,[]),Qt=get$1($t.annotations,Nt,[]);isEqual$1(Xt,Qt)||Mt.getSession().setAnnotations(Xt);var Zt=get$1(At.markers,Nt,[]),dr=get$1($t.markers,Nt,[]);!isEqual$1(Zt,dr)&&Array.isArray(Zt)&&Ct.handleMarkers(Zt,Mt)}),At.className!==$t.className){var Dt=this.refEditor.className,Ft=Dt.trim().split(" "),kt=$t.className.trim().split(" ");kt.forEach(function(Mt){var Nt=Ft.indexOf(Mt);Ft.splice(Nt,1)}),this.refEditor.className=" "+At.className+" "+Ft.join(" ")}At.theme!==$t.theme&&Bt.setTheme("ace/theme/"+At.theme),At.focus&&!$t.focus&&this.splitEditor.focus(),(At.height!==this.props.height||At.width!==this.props.width)&&this.editor.resize()},Et.prototype.componentWillUnmount=function(){this.editor.destroy(),this.editor=null},Et.prototype.onChange=function(yt){if(this.props.onChange&&!this.silent){var Ct=[];this.editor.env.split.forEach(function($t){Ct.push($t.getValue())}),this.props.onChange(Ct,yt)}},Et.prototype.onSelectionChange=function(yt){if(this.props.onSelectionChange){var Ct=[];this.editor.env.split.forEach(function($t){Ct.push($t.getSelection())}),this.props.onSelectionChange(Ct,yt)}},Et.prototype.onCursorChange=function(yt){if(this.props.onCursorChange){var Ct=[];this.editor.env.split.forEach(function($t){Ct.push($t.getSelection())}),this.props.onCursorChange(Ct,yt)}},Et.prototype.onFocus=function(yt){this.props.onFocus&&this.props.onFocus(yt)},Et.prototype.onInput=function(yt){this.props.onInput&&this.props.onInput(yt)},Et.prototype.onBlur=function(yt){this.props.onBlur&&this.props.onBlur(yt)},Et.prototype.onCopy=function(yt){this.props.onCopy&&this.props.onCopy(yt)},Et.prototype.onPaste=function(yt){this.props.onPaste&&this.props.onPaste(yt)},Et.prototype.onScroll=function(){this.props.onScroll&&this.props.onScroll(this.editor)},Et.prototype.handleOptions=function(yt,Ct){for(var $t=Object.keys(yt.setOptions),At=0;At<$t.length;At++)Ct.setOption($t[At],yt.setOptions[$t[At]])},Et.prototype.handleMarkers=function(yt,Ct){var $t=Ct.getSession().getMarkers(!0);for(var At in $t)$t.hasOwnProperty(At)&&Ct.getSession().removeMarker($t[At].id);$t=Ct.getSession().getMarkers(!1);for(var At in $t)$t.hasOwnProperty(At)&&Ct.getSession().removeMarker($t[At].id);yt.forEach(function(Bt){var Dt=Bt.startRow,Ft=Bt.startCol,kt=Bt.endRow,Mt=Bt.endCol,Nt=Bt.className,jt=Bt.type,zt=Bt.inFront,Vt=zt===void 0?!1:zt,Kt=new ace_builds_1.Range(Dt,Ft,kt,Mt);Ct.getSession().addMarker(Kt,Nt,jt,Vt)})},Et.prototype.updateRef=function(yt){this.refEditor=yt},Et.prototype.render=function(){var yt=this.props,Ct=yt.name,$t=yt.width,At=yt.height,Bt=yt.style,Dt=__assign({width:$t,height:At},Bt);return React$2.createElement("div",{ref:this.updateRef,id:Ct,style:Dt})},Et.propTypes={className:PropTypes$1.string,debounceChangePeriod:PropTypes$1.number,defaultValue:PropTypes$1.arrayOf(PropTypes$1.string),focus:PropTypes$1.bool,fontSize:PropTypes$1.oneOfType([PropTypes$1.number,PropTypes$1.string]),height:PropTypes$1.string,mode:PropTypes$1.string,name:PropTypes$1.string,onBlur:PropTypes$1.func,onChange:PropTypes$1.func,onCopy:PropTypes$1.func,onFocus:PropTypes$1.func,onInput:PropTypes$1.func,onLoad:PropTypes$1.func,onPaste:PropTypes$1.func,onScroll:PropTypes$1.func,orientation:PropTypes$1.string,showGutter:PropTypes$1.bool,splits:PropTypes$1.number,theme:PropTypes$1.string,value:PropTypes$1.arrayOf(PropTypes$1.string),width:PropTypes$1.string,onSelectionChange:PropTypes$1.func,onCursorChange:PropTypes$1.func,onBeforeLoad:PropTypes$1.func,minLines:PropTypes$1.number,maxLines:PropTypes$1.number,readOnly:PropTypes$1.bool,highlightActiveLine:PropTypes$1.bool,tabSize:PropTypes$1.number,showPrintMargin:PropTypes$1.bool,cursorStart:PropTypes$1.number,editorProps:PropTypes$1.object,setOptions:PropTypes$1.object,style:PropTypes$1.object,scrollMargin:PropTypes$1.array,annotations:PropTypes$1.array,markers:PropTypes$1.array,keyboardHandler:PropTypes$1.string,wrapEnabled:PropTypes$1.bool,enableBasicAutocompletion:PropTypes$1.oneOfType([PropTypes$1.bool,PropTypes$1.array]),enableLiveAutocompletion:PropTypes$1.oneOfType([PropTypes$1.bool,PropTypes$1.array]),commands:PropTypes$1.array},Et.defaultProps={name:"ace-editor",focus:!1,orientation:"beside",splits:2,mode:"",theme:"",height:"500px",width:"500px",value:[],fontSize:12,showGutter:!0,onChange:null,onPaste:null,onLoad:null,onScroll:null,minLines:null,maxLines:null,readOnly:!1,highlightActiveLine:!0,showPrintMargin:!0,tabSize:4,cursorStart:1,editorProps:{},style:{},scrollMargin:[0,0,0,0],setOptions:{},wrapEnabled:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1},Et}(React$2.Component);split$1.default=SplitComponent;var diffMatchPatch={exports:{}};(function(ht){var Et=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},yt=-1,Ct=1,$t=0;Et.Diff=function(At,Bt){return[At,Bt]},Et.prototype.diff_main=function(At,Bt,Dt,Ft){typeof Ft>"u"&&(this.Diff_Timeout<=0?Ft=Number.MAX_VALUE:Ft=new Date().getTime()+this.Diff_Timeout*1e3);var kt=Ft;if(At==null||Bt==null)throw new Error("Null input. (diff_main)");if(At==Bt)return At?[new Et.Diff($t,At)]:[];typeof Dt>"u"&&(Dt=!0);var Mt=Dt,Nt=this.diff_commonPrefix(At,Bt),jt=At.substring(0,Nt);At=At.substring(Nt),Bt=Bt.substring(Nt),Nt=this.diff_commonSuffix(At,Bt);var zt=At.substring(At.length-Nt);At=At.substring(0,At.length-Nt),Bt=Bt.substring(0,Bt.length-Nt);var Vt=this.diff_compute_(At,Bt,Mt,kt);return jt&&Vt.unshift(new Et.Diff($t,jt)),zt&&Vt.push(new Et.Diff($t,zt)),this.diff_cleanupMerge(Vt),Vt},Et.prototype.diff_compute_=function(At,Bt,Dt,Ft){var kt;if(!At)return[new Et.Diff(Ct,Bt)];if(!Bt)return[new Et.Diff(yt,At)];var Mt=At.length>Bt.length?At:Bt,Nt=At.length>Bt.length?Bt:At,jt=Mt.indexOf(Nt);if(jt!=-1)return kt=[new Et.Diff(Ct,Mt.substring(0,jt)),new Et.Diff($t,Nt),new Et.Diff(Ct,Mt.substring(jt+Nt.length))],At.length>Bt.length&&(kt[0][0]=kt[2][0]=yt),kt;if(Nt.length==1)return[new Et.Diff(yt,At),new Et.Diff(Ct,Bt)];var zt=this.diff_halfMatch_(At,Bt);if(zt){var Vt=zt[0],Kt=zt[1],Xt=zt[2],Qt=zt[3],Zt=zt[4],dr=this.diff_main(Vt,Xt,Dt,Ft),cr=this.diff_main(Kt,Qt,Dt,Ft);return dr.concat([new Et.Diff($t,Zt)],cr)}return Dt&&At.length>100&&Bt.length>100?this.diff_lineMode_(At,Bt,Ft):this.diff_bisect_(At,Bt,Ft)},Et.prototype.diff_lineMode_=function(At,Bt,Dt){var Ft=this.diff_linesToChars_(At,Bt);At=Ft.chars1,Bt=Ft.chars2;var kt=Ft.lineArray,Mt=this.diff_main(At,Bt,!1,Dt);this.diff_charsToLines_(Mt,kt),this.diff_cleanupSemantic(Mt),Mt.push(new Et.Diff($t,""));for(var Nt=0,jt=0,zt=0,Vt="",Kt="";Nt<Mt.length;){switch(Mt[Nt][0]){case Ct:zt++,Kt+=Mt[Nt][1];break;case yt:jt++,Vt+=Mt[Nt][1];break;case $t:if(jt>=1&&zt>=1){Mt.splice(Nt-jt-zt,jt+zt),Nt=Nt-jt-zt;for(var Xt=this.diff_main(Vt,Kt,!1,Dt),Qt=Xt.length-1;Qt>=0;Qt--)Mt.splice(Nt,0,Xt[Qt]);Nt=Nt+Xt.length}zt=0,jt=0,Vt="",Kt="";break}Nt++}return Mt.pop(),Mt},Et.prototype.diff_bisect_=function(At,Bt,Dt){for(var Ft=At.length,kt=Bt.length,Mt=Math.ceil((Ft+kt)/2),Nt=Mt,jt=2*Mt,zt=new Array(jt),Vt=new Array(jt),Kt=0;Kt<jt;Kt++)zt[Kt]=-1,Vt[Kt]=-1;zt[Nt+1]=0,Vt[Nt+1]=0;for(var Xt=Ft-kt,Qt=Xt%2!=0,Zt=0,dr=0,cr=0,Er=0,pr=0;pr<Mt&&!(new Date().getTime()>Dt);pr++){for(var gr=-pr+Zt;gr<=pr-dr;gr+=2){var vr=Nt+gr,yr;gr==-pr||gr!=pr&&zt[vr-1]<zt[vr+1]?yr=zt[vr+1]:yr=zt[vr-1]+1;for(var xr=yr-gr;yr<Ft&&xr<kt&&At.charAt(yr)==Bt.charAt(xr);)yr++,xr++;if(zt[vr]=yr,yr>Ft)dr+=2;else if(xr>kt)Zt+=2;else if(Qt){var rr=Nt+Xt-gr;if(rr>=0&&rr<jt&&Vt[rr]!=-1){var Lt=Ft-Vt[rr];if(yr>=Lt)return this.diff_bisectSplit_(At,Bt,yr,xr,Dt)}}}for(var Ht=-pr+cr;Ht<=pr-Er;Ht+=2){var rr=Nt+Ht,Lt;Ht==-pr||Ht!=pr&&Vt[rr-1]<Vt[rr+1]?Lt=Vt[rr+1]:Lt=Vt[rr-1]+1;for(var Wt=Lt-Ht;Lt<Ft&&Wt<kt&&At.charAt(Ft-Lt-1)==Bt.charAt(kt-Wt-1);)Lt++,Wt++;if(Vt[rr]=Lt,Lt>Ft)Er+=2;else if(Wt>kt)cr+=2;else if(!Qt){var vr=Nt+Xt-Ht;if(vr>=0&&vr<jt&&zt[vr]!=-1){var yr=zt[vr],xr=Nt+yr-vr;if(Lt=Ft-Lt,yr>=Lt)return this.diff_bisectSplit_(At,Bt,yr,xr,Dt)}}}}return[new Et.Diff(yt,At),new Et.Diff(Ct,Bt)]},Et.prototype.diff_bisectSplit_=function(At,Bt,Dt,Ft,kt){var Mt=At.substring(0,Dt),Nt=Bt.substring(0,Ft),jt=At.substring(Dt),zt=Bt.substring(Ft),Vt=this.diff_main(Mt,Nt,!1,kt),Kt=this.diff_main(jt,zt,!1,kt);return Vt.concat(Kt)},Et.prototype.diff_linesToChars_=function(At,Bt){var Dt=[],Ft={};Dt[0]="";function kt(zt){for(var Vt="",Kt=0,Xt=-1,Qt=Dt.length;Xt<zt.length-1;){Xt=zt.indexOf(`
`,Kt),Xt==-1&&(Xt=zt.length-1);var Zt=zt.substring(Kt,Xt+1);(Ft.hasOwnProperty?Ft.hasOwnProperty(Zt):Ft[Zt]!==void 0)?Vt+=String.fromCharCode(Ft[Zt]):(Qt==Mt&&(Zt=zt.substring(Kt),Xt=zt.length),Vt+=String.fromCharCode(Qt),Ft[Zt]=Qt,Dt[Qt++]=Zt),Kt=Xt+1}return Vt}var Mt=4e4,Nt=kt(At);Mt=65535;var jt=kt(Bt);return{chars1:Nt,chars2:jt,lineArray:Dt}},Et.prototype.diff_charsToLines_=function(At,Bt){for(var Dt=0;Dt<At.length;Dt++){for(var Ft=At[Dt][1],kt=[],Mt=0;Mt<Ft.length;Mt++)kt[Mt]=Bt[Ft.charCodeAt(Mt)];At[Dt][1]=kt.join("")}},Et.prototype.diff_commonPrefix=function(At,Bt){if(!At||!Bt||At.charAt(0)!=Bt.charAt(0))return 0;for(var Dt=0,Ft=Math.min(At.length,Bt.length),kt=Ft,Mt=0;Dt<kt;)At.substring(Mt,kt)==Bt.substring(Mt,kt)?(Dt=kt,Mt=Dt):Ft=kt,kt=Math.floor((Ft-Dt)/2+Dt);return kt},Et.prototype.diff_commonSuffix=function(At,Bt){if(!At||!Bt||At.charAt(At.length-1)!=Bt.charAt(Bt.length-1))return 0;for(var Dt=0,Ft=Math.min(At.length,Bt.length),kt=Ft,Mt=0;Dt<kt;)At.substring(At.length-kt,At.length-Mt)==Bt.substring(Bt.length-kt,Bt.length-Mt)?(Dt=kt,Mt=Dt):Ft=kt,kt=Math.floor((Ft-Dt)/2+Dt);return kt},Et.prototype.diff_commonOverlap_=function(At,Bt){var Dt=At.length,Ft=Bt.length;if(Dt==0||Ft==0)return 0;Dt>Ft?At=At.substring(Dt-Ft):Dt<Ft&&(Bt=Bt.substring(0,Dt));var kt=Math.min(Dt,Ft);if(At==Bt)return kt;for(var Mt=0,Nt=1;;){var jt=At.substring(kt-Nt),zt=Bt.indexOf(jt);if(zt==-1)return Mt;Nt+=zt,(zt==0||At.substring(kt-Nt)==Bt.substring(0,Nt))&&(Mt=Nt,Nt++)}},Et.prototype.diff_halfMatch_=function(At,Bt){if(this.Diff_Timeout<=0)return null;var Dt=At.length>Bt.length?At:Bt,Ft=At.length>Bt.length?Bt:At;if(Dt.length<4||Ft.length*2<Dt.length)return null;var kt=this;function Mt(dr,cr,Er){for(var pr=dr.substring(Er,Er+Math.floor(dr.length/4)),gr=-1,vr="",yr,xr,rr,Lt;(gr=cr.indexOf(pr,gr+1))!=-1;){var Ht=kt.diff_commonPrefix(dr.substring(Er),cr.substring(gr)),Wt=kt.diff_commonSuffix(dr.substring(0,Er),cr.substring(0,gr));vr.length<Wt+Ht&&(vr=cr.substring(gr-Wt,gr)+cr.substring(gr,gr+Ht),yr=dr.substring(0,Er-Wt),xr=dr.substring(Er+Ht),rr=cr.substring(0,gr-Wt),Lt=cr.substring(gr+Ht))}return vr.length*2>=dr.length?[yr,xr,rr,Lt,vr]:null}var Nt=Mt(Dt,Ft,Math.ceil(Dt.length/4)),jt=Mt(Dt,Ft,Math.ceil(Dt.length/2)),zt;if(!Nt&&!jt)return null;jt?Nt?zt=Nt[4].length>jt[4].length?Nt:jt:zt=jt:zt=Nt;var Vt,Kt,Xt,Qt;At.length>Bt.length?(Vt=zt[0],Kt=zt[1],Xt=zt[2],Qt=zt[3]):(Xt=zt[0],Qt=zt[1],Vt=zt[2],Kt=zt[3]);var Zt=zt[4];return[Vt,Kt,Xt,Qt,Zt]},Et.prototype.diff_cleanupSemantic=function(At){for(var Bt=!1,Dt=[],Ft=0,kt=null,Mt=0,Nt=0,jt=0,zt=0,Vt=0;Mt<At.length;)At[Mt][0]==$t?(Dt[Ft++]=Mt,Nt=zt,jt=Vt,zt=0,Vt=0,kt=At[Mt][1]):(At[Mt][0]==Ct?zt+=At[Mt][1].length:Vt+=At[Mt][1].length,kt&&kt.length<=Math.max(Nt,jt)&&kt.length<=Math.max(zt,Vt)&&(At.splice(Dt[Ft-1],0,new Et.Diff(yt,kt)),At[Dt[Ft-1]+1][0]=Ct,Ft--,Ft--,Mt=Ft>0?Dt[Ft-1]:-1,Nt=0,jt=0,zt=0,Vt=0,kt=null,Bt=!0)),Mt++;for(Bt&&this.diff_cleanupMerge(At),this.diff_cleanupSemanticLossless(At),Mt=1;Mt<At.length;){if(At[Mt-1][0]==yt&&At[Mt][0]==Ct){var Kt=At[Mt-1][1],Xt=At[Mt][1],Qt=this.diff_commonOverlap_(Kt,Xt),Zt=this.diff_commonOverlap_(Xt,Kt);Qt>=Zt?(Qt>=Kt.length/2||Qt>=Xt.length/2)&&(At.splice(Mt,0,new Et.Diff($t,Xt.substring(0,Qt))),At[Mt-1][1]=Kt.substring(0,Kt.length-Qt),At[Mt+1][1]=Xt.substring(Qt),Mt++):(Zt>=Kt.length/2||Zt>=Xt.length/2)&&(At.splice(Mt,0,new Et.Diff($t,Kt.substring(0,Zt))),At[Mt-1][0]=Ct,At[Mt-1][1]=Xt.substring(0,Xt.length-Zt),At[Mt+1][0]=yt,At[Mt+1][1]=Kt.substring(Zt),Mt++),Mt++}Mt++}},Et.prototype.diff_cleanupSemanticLossless=function(At){function Bt(Zt,dr){if(!Zt||!dr)return 6;var cr=Zt.charAt(Zt.length-1),Er=dr.charAt(0),pr=cr.match(Et.nonAlphaNumericRegex_),gr=Er.match(Et.nonAlphaNumericRegex_),vr=pr&&cr.match(Et.whitespaceRegex_),yr=gr&&Er.match(Et.whitespaceRegex_),xr=vr&&cr.match(Et.linebreakRegex_),rr=yr&&Er.match(Et.linebreakRegex_),Lt=xr&&Zt.match(Et.blanklineEndRegex_),Ht=rr&&dr.match(Et.blanklineStartRegex_);return Lt||Ht?5:xr||rr?4:pr&&!vr&&yr?3:vr||yr?2:pr||gr?1:0}for(var Dt=1;Dt<At.length-1;){if(At[Dt-1][0]==$t&&At[Dt+1][0]==$t){var Ft=At[Dt-1][1],kt=At[Dt][1],Mt=At[Dt+1][1],Nt=this.diff_commonSuffix(Ft,kt);if(Nt){var jt=kt.substring(kt.length-Nt);Ft=Ft.substring(0,Ft.length-Nt),kt=jt+kt.substring(0,kt.length-Nt),Mt=jt+Mt}for(var zt=Ft,Vt=kt,Kt=Mt,Xt=Bt(Ft,kt)+Bt(kt,Mt);kt.charAt(0)===Mt.charAt(0);){Ft+=kt.charAt(0),kt=kt.substring(1)+Mt.charAt(0),Mt=Mt.substring(1);var Qt=Bt(Ft,kt)+Bt(kt,Mt);Qt>=Xt&&(Xt=Qt,zt=Ft,Vt=kt,Kt=Mt)}At[Dt-1][1]!=zt&&(zt?At[Dt-1][1]=zt:(At.splice(Dt-1,1),Dt--),At[Dt][1]=Vt,Kt?At[Dt+1][1]=Kt:(At.splice(Dt+1,1),Dt--))}Dt++}},Et.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,Et.whitespaceRegex_=/\s/,Et.linebreakRegex_=/[\r\n]/,Et.blanklineEndRegex_=/\n\r?\n$/,Et.blanklineStartRegex_=/^\r?\n\r?\n/,Et.prototype.diff_cleanupEfficiency=function(At){for(var Bt=!1,Dt=[],Ft=0,kt=null,Mt=0,Nt=!1,jt=!1,zt=!1,Vt=!1;Mt<At.length;)At[Mt][0]==$t?(At[Mt][1].length<this.Diff_EditCost&&(zt||Vt)?(Dt[Ft++]=Mt,Nt=zt,jt=Vt,kt=At[Mt][1]):(Ft=0,kt=null),zt=Vt=!1):(At[Mt][0]==yt?Vt=!0:zt=!0,kt&&(Nt&&jt&&zt&&Vt||kt.length<this.Diff_EditCost/2&&Nt+jt+zt+Vt==3)&&(At.splice(Dt[Ft-1],0,new Et.Diff(yt,kt)),At[Dt[Ft-1]+1][0]=Ct,Ft--,kt=null,Nt&&jt?(zt=Vt=!0,Ft=0):(Ft--,Mt=Ft>0?Dt[Ft-1]:-1,zt=Vt=!1),Bt=!0)),Mt++;Bt&&this.diff_cleanupMerge(At)},Et.prototype.diff_cleanupMerge=function(At){At.push(new Et.Diff($t,""));for(var Bt=0,Dt=0,Ft=0,kt="",Mt="",Nt;Bt<At.length;)switch(At[Bt][0]){case Ct:Ft++,Mt+=At[Bt][1],Bt++;break;case yt:Dt++,kt+=At[Bt][1],Bt++;break;case $t:Dt+Ft>1?(Dt!==0&&Ft!==0&&(Nt=this.diff_commonPrefix(Mt,kt),Nt!==0&&(Bt-Dt-Ft>0&&At[Bt-Dt-Ft-1][0]==$t?At[Bt-Dt-Ft-1][1]+=Mt.substring(0,Nt):(At.splice(0,0,new Et.Diff($t,Mt.substring(0,Nt))),Bt++),Mt=Mt.substring(Nt),kt=kt.substring(Nt)),Nt=this.diff_commonSuffix(Mt,kt),Nt!==0&&(At[Bt][1]=Mt.substring(Mt.length-Nt)+At[Bt][1],Mt=Mt.substring(0,Mt.length-Nt),kt=kt.substring(0,kt.length-Nt))),Bt-=Dt+Ft,At.splice(Bt,Dt+Ft),kt.length&&(At.splice(Bt,0,new Et.Diff(yt,kt)),Bt++),Mt.length&&(At.splice(Bt,0,new Et.Diff(Ct,Mt)),Bt++),Bt++):Bt!==0&&At[Bt-1][0]==$t?(At[Bt-1][1]+=At[Bt][1],At.splice(Bt,1)):Bt++,Ft=0,Dt=0,kt="",Mt="";break}At[At.length-1][1]===""&&At.pop();var jt=!1;for(Bt=1;Bt<At.length-1;)At[Bt-1][0]==$t&&At[Bt+1][0]==$t&&(At[Bt][1].substring(At[Bt][1].length-At[Bt-1][1].length)==At[Bt-1][1]?(At[Bt][1]=At[Bt-1][1]+At[Bt][1].substring(0,At[Bt][1].length-At[Bt-1][1].length),At[Bt+1][1]=At[Bt-1][1]+At[Bt+1][1],At.splice(Bt-1,1),jt=!0):At[Bt][1].substring(0,At[Bt+1][1].length)==At[Bt+1][1]&&(At[Bt-1][1]+=At[Bt+1][1],At[Bt][1]=At[Bt][1].substring(At[Bt+1][1].length)+At[Bt+1][1],At.splice(Bt+1,1),jt=!0)),Bt++;jt&&this.diff_cleanupMerge(At)},Et.prototype.diff_xIndex=function(At,Bt){var Dt=0,Ft=0,kt=0,Mt=0,Nt;for(Nt=0;Nt<At.length&&(At[Nt][0]!==Ct&&(Dt+=At[Nt][1].length),At[Nt][0]!==yt&&(Ft+=At[Nt][1].length),!(Dt>Bt));Nt++)kt=Dt,Mt=Ft;return At.length!=Nt&&At[Nt][0]===yt?Mt:Mt+(Bt-kt)},Et.prototype.diff_prettyHtml=function(At){for(var Bt=[],Dt=/&/g,Ft=/</g,kt=/>/g,Mt=/\n/g,Nt=0;Nt<At.length;Nt++){var jt=At[Nt][0],zt=At[Nt][1],Vt=zt.replace(Dt,"&amp;").replace(Ft,"&lt;").replace(kt,"&gt;").replace(Mt,"&para;<br>");switch(jt){case Ct:Bt[Nt]='<ins style="background:#e6ffe6;">'+Vt+"</ins>";break;case yt:Bt[Nt]='<del style="background:#ffe6e6;">'+Vt+"</del>";break;case $t:Bt[Nt]="<span>"+Vt+"</span>";break}}return Bt.join("")},Et.prototype.diff_text1=function(At){for(var Bt=[],Dt=0;Dt<At.length;Dt++)At[Dt][0]!==Ct&&(Bt[Dt]=At[Dt][1]);return Bt.join("")},Et.prototype.diff_text2=function(At){for(var Bt=[],Dt=0;Dt<At.length;Dt++)At[Dt][0]!==yt&&(Bt[Dt]=At[Dt][1]);return Bt.join("")},Et.prototype.diff_levenshtein=function(At){for(var Bt=0,Dt=0,Ft=0,kt=0;kt<At.length;kt++){var Mt=At[kt][0],Nt=At[kt][1];switch(Mt){case Ct:Dt+=Nt.length;break;case yt:Ft+=Nt.length;break;case $t:Bt+=Math.max(Dt,Ft),Dt=0,Ft=0;break}}return Bt+=Math.max(Dt,Ft),Bt},Et.prototype.diff_toDelta=function(At){for(var Bt=[],Dt=0;Dt<At.length;Dt++)switch(At[Dt][0]){case Ct:Bt[Dt]="+"+encodeURI(At[Dt][1]);break;case yt:Bt[Dt]="-"+At[Dt][1].length;break;case $t:Bt[Dt]="="+At[Dt][1].length;break}return Bt.join("	").replace(/%20/g," ")},Et.prototype.diff_fromDelta=function(At,Bt){for(var Dt=[],Ft=0,kt=0,Mt=Bt.split(/\t/g),Nt=0;Nt<Mt.length;Nt++){var jt=Mt[Nt].substring(1);switch(Mt[Nt].charAt(0)){case"+":try{Dt[Ft++]=new Et.Diff(Ct,decodeURI(jt))}catch{throw new Error("Illegal escape in diff_fromDelta: "+jt)}break;case"-":case"=":var zt=parseInt(jt,10);if(isNaN(zt)||zt<0)throw new Error("Invalid number in diff_fromDelta: "+jt);var Vt=At.substring(kt,kt+=zt);Mt[Nt].charAt(0)=="="?Dt[Ft++]=new Et.Diff($t,Vt):Dt[Ft++]=new Et.Diff(yt,Vt);break;default:if(Mt[Nt])throw new Error("Invalid diff operation in diff_fromDelta: "+Mt[Nt])}}if(kt!=At.length)throw new Error("Delta length ("+kt+") does not equal source text length ("+At.length+").");return Dt},Et.prototype.match_main=function(At,Bt,Dt){if(At==null||Bt==null||Dt==null)throw new Error("Null input. (match_main)");return Dt=Math.max(0,Math.min(Dt,At.length)),At==Bt?0:At.length?At.substring(Dt,Dt+Bt.length)==Bt?Dt:this.match_bitap_(At,Bt,Dt):-1},Et.prototype.match_bitap_=function(At,Bt,Dt){if(Bt.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var Ft=this.match_alphabet_(Bt),kt=this;function Mt(yr,xr){var rr=yr/Bt.length,Lt=Math.abs(Dt-xr);return kt.Match_Distance?rr+Lt/kt.Match_Distance:Lt?1:rr}var Nt=this.Match_Threshold,jt=At.indexOf(Bt,Dt);jt!=-1&&(Nt=Math.min(Mt(0,jt),Nt),jt=At.lastIndexOf(Bt,Dt+Bt.length),jt!=-1&&(Nt=Math.min(Mt(0,jt),Nt)));var zt=1<<Bt.length-1;jt=-1;for(var Vt,Kt,Xt=Bt.length+At.length,Qt,Zt=0;Zt<Bt.length;Zt++){for(Vt=0,Kt=Xt;Vt<Kt;)Mt(Zt,Dt+Kt)<=Nt?Vt=Kt:Xt=Kt,Kt=Math.floor((Xt-Vt)/2+Vt);Xt=Kt;var dr=Math.max(1,Dt-Kt+1),cr=Math.min(Dt+Kt,At.length)+Bt.length,Er=Array(cr+2);Er[cr+1]=(1<<Zt)-1;for(var pr=cr;pr>=dr;pr--){var gr=Ft[At.charAt(pr-1)];if(Zt===0?Er[pr]=(Er[pr+1]<<1|1)&gr:Er[pr]=(Er[pr+1]<<1|1)&gr|((Qt[pr+1]|Qt[pr])<<1|1)|Qt[pr+1],Er[pr]&zt){var vr=Mt(Zt,pr-1);if(vr<=Nt)if(Nt=vr,jt=pr-1,jt>Dt)dr=Math.max(1,2*Dt-jt);else break}}if(Mt(Zt+1,Dt)>Nt)break;Qt=Er}return jt},Et.prototype.match_alphabet_=function(At){for(var Bt={},Dt=0;Dt<At.length;Dt++)Bt[At.charAt(Dt)]=0;for(var Dt=0;Dt<At.length;Dt++)Bt[At.charAt(Dt)]|=1<<At.length-Dt-1;return Bt},Et.prototype.patch_addContext_=function(At,Bt){if(Bt.length!=0){if(At.start2===null)throw Error("patch not initialized");for(var Dt=Bt.substring(At.start2,At.start2+At.length1),Ft=0;Bt.indexOf(Dt)!=Bt.lastIndexOf(Dt)&&Dt.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)Ft+=this.Patch_Margin,Dt=Bt.substring(At.start2-Ft,At.start2+At.length1+Ft);Ft+=this.Patch_Margin;var kt=Bt.substring(At.start2-Ft,At.start2);kt&&At.diffs.unshift(new Et.Diff($t,kt));var Mt=Bt.substring(At.start2+At.length1,At.start2+At.length1+Ft);Mt&&At.diffs.push(new Et.Diff($t,Mt)),At.start1-=kt.length,At.start2-=kt.length,At.length1+=kt.length+Mt.length,At.length2+=kt.length+Mt.length}},Et.prototype.patch_make=function(At,Bt,Dt){var Ft,kt;if(typeof At=="string"&&typeof Bt=="string"&&typeof Dt>"u")Ft=At,kt=this.diff_main(Ft,Bt,!0),kt.length>2&&(this.diff_cleanupSemantic(kt),this.diff_cleanupEfficiency(kt));else if(At&&typeof At=="object"&&typeof Bt>"u"&&typeof Dt>"u")kt=At,Ft=this.diff_text1(kt);else if(typeof At=="string"&&Bt&&typeof Bt=="object"&&typeof Dt>"u")Ft=At,kt=Bt;else if(typeof At=="string"&&typeof Bt=="string"&&Dt&&typeof Dt=="object")Ft=At,kt=Dt;else throw new Error("Unknown call format to patch_make.");if(kt.length===0)return[];for(var Mt=[],Nt=new Et.patch_obj,jt=0,zt=0,Vt=0,Kt=Ft,Xt=Ft,Qt=0;Qt<kt.length;Qt++){var Zt=kt[Qt][0],dr=kt[Qt][1];switch(!jt&&Zt!==$t&&(Nt.start1=zt,Nt.start2=Vt),Zt){case Ct:Nt.diffs[jt++]=kt[Qt],Nt.length2+=dr.length,Xt=Xt.substring(0,Vt)+dr+Xt.substring(Vt);break;case yt:Nt.length1+=dr.length,Nt.diffs[jt++]=kt[Qt],Xt=Xt.substring(0,Vt)+Xt.substring(Vt+dr.length);break;case $t:dr.length<=2*this.Patch_Margin&&jt&&kt.length!=Qt+1?(Nt.diffs[jt++]=kt[Qt],Nt.length1+=dr.length,Nt.length2+=dr.length):dr.length>=2*this.Patch_Margin&&jt&&(this.patch_addContext_(Nt,Kt),Mt.push(Nt),Nt=new Et.patch_obj,jt=0,Kt=Xt,zt=Vt);break}Zt!==Ct&&(zt+=dr.length),Zt!==yt&&(Vt+=dr.length)}return jt&&(this.patch_addContext_(Nt,Kt),Mt.push(Nt)),Mt},Et.prototype.patch_deepCopy=function(At){for(var Bt=[],Dt=0;Dt<At.length;Dt++){var Ft=At[Dt],kt=new Et.patch_obj;kt.diffs=[];for(var Mt=0;Mt<Ft.diffs.length;Mt++)kt.diffs[Mt]=new Et.Diff(Ft.diffs[Mt][0],Ft.diffs[Mt][1]);kt.start1=Ft.start1,kt.start2=Ft.start2,kt.length1=Ft.length1,kt.length2=Ft.length2,Bt[Dt]=kt}return Bt},Et.prototype.patch_apply=function(At,Bt){if(At.length==0)return[Bt,[]];At=this.patch_deepCopy(At);var Dt=this.patch_addPadding(At);Bt=Dt+Bt+Dt,this.patch_splitMax(At);for(var Ft=0,kt=[],Mt=0;Mt<At.length;Mt++){var Nt=At[Mt].start2+Ft,jt=this.diff_text1(At[Mt].diffs),zt,Vt=-1;if(jt.length>this.Match_MaxBits?(zt=this.match_main(Bt,jt.substring(0,this.Match_MaxBits),Nt),zt!=-1&&(Vt=this.match_main(Bt,jt.substring(jt.length-this.Match_MaxBits),Nt+jt.length-this.Match_MaxBits),(Vt==-1||zt>=Vt)&&(zt=-1))):zt=this.match_main(Bt,jt,Nt),zt==-1)kt[Mt]=!1,Ft-=At[Mt].length2-At[Mt].length1;else{kt[Mt]=!0,Ft=zt-Nt;var Kt;if(Vt==-1?Kt=Bt.substring(zt,zt+jt.length):Kt=Bt.substring(zt,Vt+this.Match_MaxBits),jt==Kt)Bt=Bt.substring(0,zt)+this.diff_text2(At[Mt].diffs)+Bt.substring(zt+jt.length);else{var Xt=this.diff_main(jt,Kt,!1);if(jt.length>this.Match_MaxBits&&this.diff_levenshtein(Xt)/jt.length>this.Patch_DeleteThreshold)kt[Mt]=!1;else{this.diff_cleanupSemanticLossless(Xt);for(var Qt=0,Zt,dr=0;dr<At[Mt].diffs.length;dr++){var cr=At[Mt].diffs[dr];cr[0]!==$t&&(Zt=this.diff_xIndex(Xt,Qt)),cr[0]===Ct?Bt=Bt.substring(0,zt+Zt)+cr[1]+Bt.substring(zt+Zt):cr[0]===yt&&(Bt=Bt.substring(0,zt+Zt)+Bt.substring(zt+this.diff_xIndex(Xt,Qt+cr[1].length))),cr[0]!==yt&&(Qt+=cr[1].length)}}}}}return Bt=Bt.substring(Dt.length,Bt.length-Dt.length),[Bt,kt]},Et.prototype.patch_addPadding=function(At){for(var Bt=this.Patch_Margin,Dt="",Ft=1;Ft<=Bt;Ft++)Dt+=String.fromCharCode(Ft);for(var Ft=0;Ft<At.length;Ft++)At[Ft].start1+=Bt,At[Ft].start2+=Bt;var kt=At[0],Mt=kt.diffs;if(Mt.length==0||Mt[0][0]!=$t)Mt.unshift(new Et.Diff($t,Dt)),kt.start1-=Bt,kt.start2-=Bt,kt.length1+=Bt,kt.length2+=Bt;else if(Bt>Mt[0][1].length){var Nt=Bt-Mt[0][1].length;Mt[0][1]=Dt.substring(Mt[0][1].length)+Mt[0][1],kt.start1-=Nt,kt.start2-=Nt,kt.length1+=Nt,kt.length2+=Nt}if(kt=At[At.length-1],Mt=kt.diffs,Mt.length==0||Mt[Mt.length-1][0]!=$t)Mt.push(new Et.Diff($t,Dt)),kt.length1+=Bt,kt.length2+=Bt;else if(Bt>Mt[Mt.length-1][1].length){var Nt=Bt-Mt[Mt.length-1][1].length;Mt[Mt.length-1][1]+=Dt.substring(0,Nt),kt.length1+=Nt,kt.length2+=Nt}return Dt},Et.prototype.patch_splitMax=function(At){for(var Bt=this.Match_MaxBits,Dt=0;Dt<At.length;Dt++)if(!(At[Dt].length1<=Bt)){var Ft=At[Dt];At.splice(Dt--,1);for(var kt=Ft.start1,Mt=Ft.start2,Nt="";Ft.diffs.length!==0;){var jt=new Et.patch_obj,zt=!0;for(jt.start1=kt-Nt.length,jt.start2=Mt-Nt.length,Nt!==""&&(jt.length1=jt.length2=Nt.length,jt.diffs.push(new Et.Diff($t,Nt)));Ft.diffs.length!==0&&jt.length1<Bt-this.Patch_Margin;){var Vt=Ft.diffs[0][0],Kt=Ft.diffs[0][1];Vt===Ct?(jt.length2+=Kt.length,Mt+=Kt.length,jt.diffs.push(Ft.diffs.shift()),zt=!1):Vt===yt&&jt.diffs.length==1&&jt.diffs[0][0]==$t&&Kt.length>2*Bt?(jt.length1+=Kt.length,kt+=Kt.length,zt=!1,jt.diffs.push(new Et.Diff(Vt,Kt)),Ft.diffs.shift()):(Kt=Kt.substring(0,Bt-jt.length1-this.Patch_Margin),jt.length1+=Kt.length,kt+=Kt.length,Vt===$t?(jt.length2+=Kt.length,Mt+=Kt.length):zt=!1,jt.diffs.push(new Et.Diff(Vt,Kt)),Kt==Ft.diffs[0][1]?Ft.diffs.shift():Ft.diffs[0][1]=Ft.diffs[0][1].substring(Kt.length))}Nt=this.diff_text2(jt.diffs),Nt=Nt.substring(Nt.length-this.Patch_Margin);var Xt=this.diff_text1(Ft.diffs).substring(0,this.Patch_Margin);Xt!==""&&(jt.length1+=Xt.length,jt.length2+=Xt.length,jt.diffs.length!==0&&jt.diffs[jt.diffs.length-1][0]===$t?jt.diffs[jt.diffs.length-1][1]+=Xt:jt.diffs.push(new Et.Diff($t,Xt))),zt||At.splice(++Dt,0,jt)}}},Et.prototype.patch_toText=function(At){for(var Bt=[],Dt=0;Dt<At.length;Dt++)Bt[Dt]=At[Dt];return Bt.join("")},Et.prototype.patch_fromText=function(At){var Bt=[];if(!At)return Bt;for(var Dt=At.split(`
`),Ft=0,kt=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;Ft<Dt.length;){var Mt=Dt[Ft].match(kt);if(!Mt)throw new Error("Invalid patch string: "+Dt[Ft]);var Nt=new Et.patch_obj;for(Bt.push(Nt),Nt.start1=parseInt(Mt[1],10),Mt[2]===""?(Nt.start1--,Nt.length1=1):Mt[2]=="0"?Nt.length1=0:(Nt.start1--,Nt.length1=parseInt(Mt[2],10)),Nt.start2=parseInt(Mt[3],10),Mt[4]===""?(Nt.start2--,Nt.length2=1):Mt[4]=="0"?Nt.length2=0:(Nt.start2--,Nt.length2=parseInt(Mt[4],10)),Ft++;Ft<Dt.length;){var jt=Dt[Ft].charAt(0);try{var zt=decodeURI(Dt[Ft].substring(1))}catch{throw new Error("Illegal escape in patch_fromText: "+zt)}if(jt=="-")Nt.diffs.push(new Et.Diff(yt,zt));else if(jt=="+")Nt.diffs.push(new Et.Diff(Ct,zt));else if(jt==" ")Nt.diffs.push(new Et.Diff($t,zt));else{if(jt=="@")break;if(jt!=="")throw new Error('Invalid patch mode "'+jt+'" in: '+zt)}Ft++}}return Bt},Et.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},Et.patch_obj.prototype.toString=function(){var At,Bt;this.length1===0?At=this.start1+",0":this.length1==1?At=this.start1+1:At=this.start1+1+","+this.length1,this.length2===0?Bt=this.start2+",0":this.length2==1?Bt=this.start2+1:Bt=this.start2+1+","+this.length2;for(var Dt=["@@ -"+At+" +"+Bt+` @@
`],Ft,kt=0;kt<this.diffs.length;kt++){switch(this.diffs[kt][0]){case Ct:Ft="+";break;case yt:Ft="-";break;case $t:Ft=" ";break}Dt[kt+1]=Ft+encodeURI(this.diffs[kt][1])+`
`}return Dt.join("").replace(/%20/g," ")},ht.exports=Et,ht.exports.diff_match_patch=Et,ht.exports.DIFF_DELETE=yt,ht.exports.DIFF_INSERT=Ct,ht.exports.DIFF_EQUAL=$t})(diffMatchPatch);var diffMatchPatchExports=diffMatchPatch.exports,__extends=commonjsGlobal&&commonjsGlobal.__extends||function(){var ht=function(Et,yt){return ht=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ct,$t){Ct.__proto__=$t}||function(Ct,$t){for(var At in $t)Object.prototype.hasOwnProperty.call($t,At)&&(Ct[At]=$t[At])},ht(Et,yt)};return function(Et,yt){if(typeof yt!="function"&&yt!==null)throw new TypeError("Class extends value "+String(yt)+" is not a constructor or null");ht(Et,yt);function Ct(){this.constructor=Et}Et.prototype=yt===null?Object.create(yt):(Ct.prototype=yt.prototype,new Ct)}}();Object.defineProperty(diff,"__esModule",{value:!0});var PropTypes=propTypesExports,React$1=reactExports,split_1$1=split$1,DiffMatchPatch=diffMatchPatchExports,DiffComponent=function(ht){__extends(Et,ht);function Et(yt){var Ct=ht.call(this,yt)||this;return Ct.state={value:Ct.props.value},Ct.onChange=Ct.onChange.bind(Ct),Ct.diff=Ct.diff.bind(Ct),Ct}return Et.prototype.componentDidUpdate=function(){var yt=this.props.value;yt!==this.state.value&&this.setState({value:yt})},Et.prototype.onChange=function(yt){this.setState({value:yt}),this.props.onChange&&this.props.onChange(yt)},Et.prototype.diff=function(){var yt=new DiffMatchPatch,Ct=this.state.value[0],$t=this.state.value[1];if(Ct.length===0&&$t.length===0)return[];var At=yt.diff_main(Ct,$t);yt.diff_cleanupSemantic(At);var Bt=this.generateDiffedLines(At),Dt=this.setCodeMarkers(Bt);return Dt},Et.prototype.generateDiffedLines=function(yt){var Ct={DIFF_EQUAL:0,DIFF_DELETE:-1,DIFF_INSERT:1},$t={left:[],right:[]},At={left:1,right:1};return yt.forEach(function(Bt){var Dt=Bt[0],Ft=Bt[1],kt=Ft.split(`
`).length-1;if(Ft.length!==0){var Mt=Ft[0],Nt=Ft[Ft.length-1],jt=0;switch(Dt){case Ct.DIFF_EQUAL:At.left+=kt,At.right+=kt;break;case Ct.DIFF_DELETE:Mt===`
`&&(At.left++,kt--),jt=kt,jt===0&&$t.right.push({startLine:At.right,endLine:At.right}),Nt===`
`&&(jt-=1),$t.left.push({startLine:At.left,endLine:At.left+jt}),At.left+=kt;break;case Ct.DIFF_INSERT:Mt===`
`&&(At.right++,kt--),jt=kt,jt===0&&$t.left.push({startLine:At.left,endLine:At.left}),Nt===`
`&&(jt-=1),$t.right.push({startLine:At.right,endLine:At.right+jt}),At.right+=kt;break;default:throw new Error("Diff type was not defined.")}}}),$t},Et.prototype.setCodeMarkers=function(yt){yt===void 0&&(yt={left:[],right:[]});for(var Ct=[],$t={left:[],right:[]},At=0;At<yt.left.length;At++){var Bt={startRow:yt.left[At].startLine-1,endRow:yt.left[At].endLine,type:"text",className:"codeMarker"};$t.left.push(Bt)}for(var At=0;At<yt.right.length;At++){var Bt={startRow:yt.right[At].startLine-1,endRow:yt.right[At].endLine,type:"text",className:"codeMarker"};$t.right.push(Bt)}return Ct[0]=$t.left,Ct[1]=$t.right,Ct},Et.prototype.render=function(){var yt=this.diff();return React$1.createElement(split_1$1.default,{name:this.props.name,className:this.props.className,focus:this.props.focus,orientation:this.props.orientation,splits:this.props.splits,mode:this.props.mode,theme:this.props.theme,height:this.props.height,width:this.props.width,fontSize:this.props.fontSize,showGutter:this.props.showGutter,onChange:this.onChange,onPaste:this.props.onPaste,onLoad:this.props.onLoad,onScroll:this.props.onScroll,minLines:this.props.minLines,maxLines:this.props.maxLines,readOnly:this.props.readOnly,highlightActiveLine:this.props.highlightActiveLine,showPrintMargin:this.props.showPrintMargin,tabSize:this.props.tabSize,cursorStart:this.props.cursorStart,editorProps:this.props.editorProps,style:this.props.style,scrollMargin:this.props.scrollMargin,setOptions:this.props.setOptions,wrapEnabled:this.props.wrapEnabled,enableBasicAutocompletion:this.props.enableBasicAutocompletion,enableLiveAutocompletion:this.props.enableLiveAutocompletion,value:this.state.value,markers:yt})},Et.propTypes={cursorStart:PropTypes.number,editorProps:PropTypes.object,enableBasicAutocompletion:PropTypes.bool,enableLiveAutocompletion:PropTypes.bool,focus:PropTypes.bool,fontSize:PropTypes.number,height:PropTypes.string,highlightActiveLine:PropTypes.bool,maxLines:PropTypes.number,minLines:PropTypes.number,mode:PropTypes.string,name:PropTypes.string,className:PropTypes.string,onLoad:PropTypes.func,onPaste:PropTypes.func,onScroll:PropTypes.func,onChange:PropTypes.func,orientation:PropTypes.string,readOnly:PropTypes.bool,scrollMargin:PropTypes.array,setOptions:PropTypes.object,showGutter:PropTypes.bool,showPrintMargin:PropTypes.bool,splits:PropTypes.number,style:PropTypes.object,tabSize:PropTypes.number,theme:PropTypes.string,value:PropTypes.array,width:PropTypes.string,wrapEnabled:PropTypes.bool},Et.defaultProps={cursorStart:1,editorProps:{},enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,focus:!1,fontSize:12,height:"500px",highlightActiveLine:!0,maxLines:null,minLines:null,mode:"",name:"ace-editor",onLoad:null,onScroll:null,onPaste:null,onChange:null,orientation:"beside",readOnly:!1,scrollMargin:[0,0,0,0],setOptions:{},showGutter:!0,showPrintMargin:!0,splits:2,style:{},tabSize:4,theme:"github",value:["",""],width:"500px",wrapEnabled:!0},Et}(React$1.Component);diff.default=DiffComponent;Object.defineProperty(lib$2,"__esModule",{value:!0});lib$2.diff=lib$2.split=void 0;var ace_1=ace$4,diff_1=diff;lib$2.diff=diff_1.default;var split_1=split$1;lib$2.split=split_1.default;var _default=lib$2.default=ace_1.default,modeJava={exports:{}};(function(ht,Et){ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(yt,Ct,$t){var At=yt("../lib/oop"),Bt=yt("./text_highlight_rules").TextHighlightRules,Dt=function(){this.$rules={start:[{token:["comment.doc.tag","comment.doc.text","lparen.doc"],regex:"(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:["rparen.doc","text.doc","variable.parameter.doc","lparen.doc","variable.parameter.doc","rparen.doc"],regex:/(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.\-\'\" ]+)(\])))/,next:"pop"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","lparen.doc"],regex:"(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|implements|external|exception|throws|enum|define|extends))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:'(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|requires|param|implements|function|extends|typedef|mixes|constructor|var|memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#.:/~"\\-]*)?'},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:"(@method)(\\s+)(\\w[\\w.\\(\\)]*)"},{token:"comment.doc.tag",regex:"@access\\s+(?:private|public|protected)"},{token:"comment.doc.tag",regex:"@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"},{token:"comment.doc.tag",regex:"@\\w+(?=\\s|$)"},Dt.getTagRule(),{defaultToken:"comment.doc.body",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};At.inherits(Dt,Bt),Dt.getTagRule=function(Ft){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},Dt.getStartRule=function(Ft){return{token:"comment.doc",regex:/\/\*\*(?!\/)/,next:Ft}},Dt.getEndRule=function(Ft){return{token:"comment.doc",regex:"\\*\\/",next:Ft}},Ct.JsDocCommentHighlightRules=Dt}),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/jsdoc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(yt,Ct,$t){var At=yt("../lib/oop"),Bt=yt("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,Dt=yt("./text_highlight_rules").TextHighlightRules,Ft="[a-zA-Z\\$_¡-￿][a-zA-Z\\d\\$_¡-￿]*",kt=function(jt){var zt={"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},Vt=this.createKeywordMapper(zt,"identifier"),Kt="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",Xt="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)",Qt="(function)(\\s*)(\\*?)",Zt={token:["identifier","text","paren.lparen"],regex:"(\\b(?!"+Object.values(zt).join("|")+"\\b)"+Ft+")(\\s*)(\\()"};this.$rules={no_regex:[Bt.getStartRule("doc-start"),Nt("no_regex"),Zt,{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+Ft+")(\\s*)(=)(\\s*)"+Qt+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))("+Ft+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+Ft+")(\\s*)(:)(\\s*)"+Qt+"(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)"+Qt+"(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+Kt+")\\b",next:"start"},{token:"support.constant",regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|debug|time|trace|timeEnd|assert)\b/},{token:Vt,regex:Ft},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:"keyword.operator",regex:/=/},{token:["storage.type","text","storage.type","text","paren.lparen"],regex:Qt+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:"prototype"},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:Ft},{regex:"",token:"empty",next:"no_regex"}],start:[Bt.getStartRule("doc-start"),Nt("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],default_parameter:[{token:"string",regex:"'(?=.)",push:[{token:"string",regex:"'|$",next:"pop"},{include:"qstring"}]},{token:"string",regex:'"(?=.)',push:[{token:"string",regex:'"|$',next:"pop"},{include:"qqstring"}]},{token:"constant.language",regex:"null|Infinity|NaN|undefined"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:"punctuation.operator",regex:",",next:"function_arguments"},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],function_arguments:[Nt("function_arguments"),{token:"variable.parameter",regex:Ft},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:Xt},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:Xt},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!jt||!jt.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(dr,cr,Er){if(this.next=dr=="{"?this.nextState:"",dr=="{"&&Er.length)Er.unshift("start",cr);else if(dr=="}"&&Er.length&&(Er.shift(),this.next=Er.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return dr=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:Xt},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+Ft+")(\\s*)(?=\\=>)"},{token:"paren.lparen",regex:"(\\()(?=[^\\(]+\\s*=>)",next:"function_arguments"},{token:"variable.language",regex:"(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"}),this.$rules.function_arguments.unshift({token:"keyword.operator",regex:"=",next:"default_parameter"},{token:"keyword.operator",regex:"\\.{3}"}),this.$rules.property.unshift({token:"support.function",regex:"(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"},{token:"constant.language",regex:"(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"}),(!jt||jt.jsx!=!1)&&Mt.call(this)),this.embedRules(Bt,"doc-",[Bt.getEndRule("no_regex")]),this.normalizeRules()};At.inherits(kt,Dt);function Mt(){var jt=Ft.replace("\\d","\\d\\-"),zt={onMatch:function(Kt,Xt,Qt){var Zt=Kt.charAt(1)=="/"?2:1;return Zt==1?(Xt!=this.nextState?Qt.unshift(this.next,this.nextState,0):Qt.unshift(this.next),Qt[2]++):Zt==2&&Xt==this.nextState&&(Qt[1]--,(!Qt[1]||Qt[1]<0)&&(Qt.shift(),Qt.shift())),[{type:"meta.tag.punctuation."+(Zt==1?"":"end-")+"tag-open.xml",value:Kt.slice(0,Zt)},{type:"meta.tag.tag-name.xml",value:Kt.substr(Zt)}]},regex:"</?(?:"+jt+"|(?=>))",next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(zt);var Vt={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[Vt,zt,{include:"reference"},{defaultToken:"string.xml"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(Kt,Xt,Qt){return Xt==Qt[0]&&Qt.shift(),Kt.length==2&&(Qt[0]==this.nextState&&Qt[1]--,(!Qt[1]||Qt[1]<0)&&Qt.splice(0,2)),this.next=Qt[0]||"start",[{type:this.token,value:Kt}]},nextState:"jsx"},Vt,Nt("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:jt},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},zt],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function Nt(jt){return[{token:"comment",regex:/\/\*/,next:[Bt.getTagRule(),{token:"comment",regex:"\\*\\/",next:jt||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[Bt.getTagRule(),{token:"comment",regex:"$|^",next:jt||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}Ct.JavaScriptHighlightRules=kt}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(yt,Ct,$t){var At=yt("../range").Range,Bt=function(){};(function(){this.checkOutdent=function(Dt,Ft){return/^\s+$/.test(Dt)?/^\s*\}/.test(Ft):!1},this.autoOutdent=function(Dt,Ft){var kt=Dt.getLine(Ft),Mt=kt.match(/^(\s*\})/);if(!Mt)return 0;var Nt=Mt[1].length,jt=Dt.findMatchingBracket({row:Ft,column:Nt});if(!jt||jt.row==Ft)return 0;var zt=this.$getIndent(Dt.getLine(jt.row));Dt.replace(new At(Ft,0,Ft,Nt-1),zt)},this.$getIndent=function(Dt){return Dt.match(/^\s*/)[0]}}).call(Bt.prototype),Ct.MatchingBraceOutdent=Bt}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator"],function(yt,Ct,$t){var At=yt("../../lib/oop"),Bt=yt("../behaviour").Behaviour,Dt=yt("../../token_iterator").TokenIterator;function Ft(Mt,Nt){return Mt&&Mt.type.lastIndexOf(Nt+".xml")>-1}var kt=function(){this.add("string_dquotes","insertion",function(Mt,Nt,jt,zt,Vt){if(Vt=='"'||Vt=="'"){var Kt=Vt,Xt=zt.doc.getTextRange(jt.getSelectionRange());if(Xt!==""&&Xt!=="'"&&Xt!='"'&&jt.getWrapBehavioursEnabled())return{text:Kt+Xt+Kt,selection:!1};var Qt=jt.getCursorPosition(),Zt=zt.doc.getLine(Qt.row),dr=Zt.substring(Qt.column,Qt.column+1),cr=new Dt(zt,Qt.row,Qt.column),Er=cr.getCurrentToken();if(dr==Kt&&(Ft(Er,"attribute-value")||Ft(Er,"string")))return{text:"",selection:[1,1]};if(Er||(Er=cr.stepBackward()),!Er)return;for(;Ft(Er,"tag-whitespace")||Ft(Er,"whitespace");)Er=cr.stepBackward();var pr=!dr||dr.match(/\s/);if(Ft(Er,"attribute-equals")&&(pr||dr==">")||Ft(Er,"decl-attribute-equals")&&(pr||dr=="?"))return{text:Kt+Kt,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(Mt,Nt,jt,zt,Vt){var Kt=zt.doc.getTextRange(Vt);if(!Vt.isMultiLine()&&(Kt=='"'||Kt=="'")){var Xt=zt.doc.getLine(Vt.start.row),Qt=Xt.substring(Vt.start.column+1,Vt.start.column+2);if(Qt==Kt)return Vt.end.column++,Vt}}),this.add("autoclosing","insertion",function(Mt,Nt,jt,zt,Vt){if(Vt==">"){var Kt=jt.getSelectionRange().start,Xt=new Dt(zt,Kt.row,Kt.column),Qt=Xt.getCurrentToken()||Xt.stepBackward();if(!Qt||!(Ft(Qt,"tag-name")||Ft(Qt,"tag-whitespace")||Ft(Qt,"attribute-name")||Ft(Qt,"attribute-equals")||Ft(Qt,"attribute-value"))||Ft(Qt,"reference.attribute-value"))return;if(Ft(Qt,"attribute-value")){var Zt=Xt.getCurrentTokenColumn()+Qt.value.length;if(Kt.column<Zt)return;if(Kt.column==Zt){var dr=Xt.stepForward();if(dr&&Ft(dr,"attribute-value"))return;Xt.stepBackward()}}if(/^\s*>/.test(zt.getLine(Kt.row).slice(Kt.column)))return;for(;!Ft(Qt,"tag-name");)if(Qt=Xt.stepBackward(),Qt.value=="<"){Qt=Xt.stepForward();break}var cr=Xt.getCurrentTokenRow(),Er=Xt.getCurrentTokenColumn();if(Ft(Xt.stepBackward(),"end-tag-open"))return;var pr=Qt.value;return cr==Kt.row&&(pr=pr.substring(0,Kt.column-Er)),this.voidElements&&this.voidElements.hasOwnProperty(pr.toLowerCase())?void 0:{text:"></"+pr+">",selection:[1,1]}}}),this.add("autoindent","insertion",function(Mt,Nt,jt,zt,Vt){if(Vt==`
`){var Kt=jt.getCursorPosition(),Xt=zt.getLine(Kt.row),Qt=new Dt(zt,Kt.row,Kt.column),Zt=Qt.getCurrentToken();if(Ft(Zt,"")&&Zt.type.indexOf("tag-close")!==-1){if(Zt.value=="/>")return;for(;Zt&&Zt.type.indexOf("tag-name")===-1;)Zt=Qt.stepBackward();if(!Zt)return;var dr=Zt.value,cr=Qt.getCurrentTokenRow();if(Zt=Qt.stepBackward(),!Zt||Zt.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[dr]||!this.voidElements){var Er=zt.getTokenAt(Kt.row,Kt.column+1),Xt=zt.getLine(cr),pr=this.$getIndent(Xt),gr=pr+zt.getTabString();return Er&&Er.value==="</"?{text:`
`+gr+`
`+pr,selection:[1,gr.length,1,gr.length]}:{text:`
`+gr}}}}})};At.inherits(kt,Bt),Ct.XmlBehaviour=kt}),ace.define("ace/mode/behaviour/javascript",["require","exports","module","ace/lib/oop","ace/token_iterator","ace/mode/behaviour/cstyle","ace/mode/behaviour/xml"],function(yt,Ct,$t){var At=yt("../../lib/oop"),Bt=yt("../../token_iterator").TokenIterator,Dt=yt("../behaviour/cstyle").CstyleBehaviour,Ft=yt("../behaviour/xml").XmlBehaviour,kt=function(){var Mt=new Ft({closeCurlyBraces:!0}).getBehaviours();this.addBehaviours(Mt),this.inherit(Dt),this.add("autoclosing-fragment","insertion",function(Nt,jt,zt,Vt,Kt){if(Kt==">"){var Xt=zt.getSelectionRange().start,Qt=new Bt(Vt,Xt.row,Xt.column),Zt=Qt.getCurrentToken()||Qt.stepBackward();if(!Zt)return;if(Zt.value=="<")return{text:"></>",selection:[1,1]}}})};At.inherits(kt,Dt),Ct.JavaScriptBehaviour=kt}),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(yt,Ct,$t){var At=yt("../../lib/oop"),Bt=yt("../../range").Range,Dt=yt("./fold_mode").FoldMode,Ft=Ct.FoldMode=function(Nt,jt){Dt.call(this),this.voidElements=Nt||{},this.optionalEndTags=At.mixin({},this.voidElements),jt&&At.mixin(this.optionalEndTags,jt)};At.inherits(Ft,Dt);var kt=function(){this.tagName="",this.closing=!1,this.selfClosing=!1,this.start={row:0,column:0},this.end={row:0,column:0}};function Mt(Nt,jt){return Nt.type.lastIndexOf(jt+".xml")>-1}(function(){this.getFoldWidget=function(Nt,jt,zt){var Vt=this._getFirstTagInLine(Nt,zt);return Vt?Vt.closing||!Vt.tagName&&Vt.selfClosing?jt==="markbeginend"?"end":"":!Vt.tagName||Vt.selfClosing||this.voidElements.hasOwnProperty(Vt.tagName.toLowerCase())||this._findEndTagInLine(Nt,zt,Vt.tagName,Vt.end.column)?"":"start":this.getCommentFoldWidget(Nt,zt)},this.getCommentFoldWidget=function(Nt,jt){return/comment/.test(Nt.getState(jt))&&/<!-/.test(Nt.getLine(jt))?"start":""},this._getFirstTagInLine=function(Nt,jt){for(var zt=Nt.getTokens(jt),Vt=new kt,Kt=0;Kt<zt.length;Kt++){var Xt=zt[Kt];if(Mt(Xt,"tag-open")){if(Vt.end.column=Vt.start.column+Xt.value.length,Vt.closing=Mt(Xt,"end-tag-open"),Xt=zt[++Kt],!Xt)return null;if(Vt.tagName=Xt.value,Xt.value===""){if(Xt=zt[++Kt],!Xt)return null;Vt.tagName=Xt.value}for(Vt.end.column+=Xt.value.length,Kt++;Kt<zt.length;Kt++)if(Xt=zt[Kt],Vt.end.column+=Xt.value.length,Mt(Xt,"tag-close")){Vt.selfClosing=Xt.value=="/>";break}return Vt}else if(Mt(Xt,"tag-close"))return Vt.selfClosing=Xt.value=="/>",Vt;Vt.start.column+=Xt.value.length}return null},this._findEndTagInLine=function(Nt,jt,zt,Vt){for(var Kt=Nt.getTokens(jt),Xt=0,Qt=0;Qt<Kt.length;Qt++){var Zt=Kt[Qt];if(Xt+=Zt.value.length,!(Xt<Vt-1)&&Mt(Zt,"end-tag-open")&&(Zt=Kt[Qt+1],Mt(Zt,"tag-name")&&Zt.value===""&&(Zt=Kt[Qt+2]),Zt&&Zt.value==zt))return!0}return!1},this.getFoldWidgetRange=function(Nt,jt,zt){var Vt=this._getFirstTagInLine(Nt,zt);if(!Vt)return this.getCommentFoldWidget(Nt,zt)&&Nt.getCommentFoldRange(zt,Nt.getLine(zt).length);var Kt=Nt.getMatchingTags({row:zt,column:0});if(Kt)return new Bt(Kt.openTag.end.row,Kt.openTag.end.column,Kt.closeTag.start.row,Kt.closeTag.start.column)}}).call(Ft.prototype)}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(yt,Ct,$t){var At=yt("../../lib/oop"),Bt=yt("../../range").Range,Dt=yt("./fold_mode").FoldMode,Ft=Ct.FoldMode=function(kt){kt&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+kt.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+kt.end)))};At.inherits(Ft,Dt),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(kt,Mt,Nt){var jt=kt.getLine(Nt);if(this.singleLineBlockCommentRe.test(jt)&&!this.startRegionRe.test(jt)&&!this.tripleStarBlockCommentRe.test(jt))return"";var zt=this._getFoldWidgetBase(kt,Mt,Nt);return!zt&&this.startRegionRe.test(jt)?"start":zt},this.getFoldWidgetRange=function(kt,Mt,Nt,jt){var zt=kt.getLine(Nt);if(this.startRegionRe.test(zt))return this.getCommentRegionBlock(kt,zt,Nt);var Xt=zt.match(this.foldingStartMarker);if(Xt){var Vt=Xt.index;if(Xt[1])return this.openingBracketBlock(kt,Xt[1],Nt,Vt);var Kt=kt.getCommentFoldRange(Nt,Vt+Xt[0].length,1);return Kt&&!Kt.isMultiLine()&&(jt?Kt=this.getSectionRange(kt,Nt):Mt!="all"&&(Kt=null)),Kt}if(Mt!=="markbegin"){var Xt=zt.match(this.foldingStopMarker);if(Xt){var Vt=Xt.index+Xt[0].length;return Xt[1]?this.closingBracketBlock(kt,Xt[1],Nt,Vt):kt.getCommentFoldRange(Nt,Vt,-1)}}},this.getSectionRange=function(kt,Mt){var Nt=kt.getLine(Mt),jt=Nt.search(/\S/),zt=Mt,Vt=Nt.length;Mt=Mt+1;for(var Kt=Mt,Xt=kt.getLength();++Mt<Xt;){Nt=kt.getLine(Mt);var Qt=Nt.search(/\S/);if(Qt!==-1){if(jt>Qt)break;var Zt=this.getFoldWidgetRange(kt,"all",Mt);if(Zt){if(Zt.start.row<=zt)break;if(Zt.isMultiLine())Mt=Zt.end.row;else if(jt==Qt)break}Kt=Mt}}return new Bt(zt,Vt,Kt,kt.getLine(Kt).length)},this.getCommentRegionBlock=function(kt,Mt,Nt){for(var jt=Mt.search(/\s*$/),zt=kt.getLength(),Vt=Nt,Kt=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,Xt=1;++Nt<zt;){Mt=kt.getLine(Nt);var Qt=Kt.exec(Mt);if(Qt&&(Qt[1]?Xt--:Xt++,!Xt))break}var Zt=Nt;if(Zt>Vt)return new Bt(Vt,jt,Zt,Mt.length)}}).call(Ft.prototype)}),ace.define("ace/mode/folding/javascript",["require","exports","module","ace/lib/oop","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(yt,Ct,$t){var At=yt("../../lib/oop"),Bt=yt("./xml").FoldMode,Dt=yt("./cstyle").FoldMode,Ft=Ct.FoldMode=function(kt){kt&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+kt.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+kt.end))),this.xmlFoldMode=new Bt};At.inherits(Ft,Dt),(function(){this.getFoldWidgetRangeBase=this.getFoldWidgetRange,this.getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(kt,Mt,Nt){var jt=this.getFoldWidgetBase(kt,Mt,Nt);return jt||this.xmlFoldMode.getFoldWidget(kt,Mt,Nt)},this.getFoldWidgetRange=function(kt,Mt,Nt,jt){var zt=this.getFoldWidgetRangeBase(kt,Mt,Nt,jt);return zt||this.xmlFoldMode.getFoldWidgetRange(kt,Mt,Nt)}}).call(Ft.prototype)}),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/javascript","ace/mode/folding/javascript"],function(yt,Ct,$t){var At=yt("../lib/oop"),Bt=yt("./text").Mode,Dt=yt("./javascript_highlight_rules").JavaScriptHighlightRules,Ft=yt("./matching_brace_outdent").MatchingBraceOutdent,kt=yt("../worker/worker_client").WorkerClient,Mt=yt("./behaviour/javascript").JavaScriptBehaviour,Nt=yt("./folding/javascript").FoldMode,jt=function(){this.HighlightRules=Dt,this.$outdent=new Ft,this.$behaviour=new Mt,this.foldingRules=new Nt};At.inherits(jt,Bt),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(zt,Vt,Kt){var Xt=this.$getIndent(Vt),Qt=this.getTokenizer().getLineTokens(Vt,zt),Zt=Qt.tokens,dr=Qt.state;if(Zt.length&&Zt[Zt.length-1].type=="comment")return Xt;if(zt=="start"||zt=="no_regex"){var cr=Vt.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);cr&&(Xt+=Kt)}else if(zt=="doc-start"&&(dr=="start"||dr=="no_regex"))return"";return Xt},this.checkOutdent=function(zt,Vt,Kt){return this.$outdent.checkOutdent(Vt,Kt)},this.autoOutdent=function(zt,Vt,Kt){this.$outdent.autoOutdent(Vt,Kt)},this.createWorker=function(zt){var Vt=new kt(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return Vt.attachToDocument(zt.getDocument()),Vt.on("annotate",function(Kt){zt.setAnnotations(Kt.data)}),Vt.on("terminate",function(){zt.clearAnnotations()}),Vt},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}).call(jt.prototype),Ct.Mode=jt}),ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(yt,Ct,$t){var At=yt("../lib/oop"),Bt=yt("./text_highlight_rules").TextHighlightRules,Dt=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@\\w+(?=\\s|$)"},Dt.getTagRule(),{defaultToken:"comment.doc.body",caseInsensitive:!0}]}};At.inherits(Dt,Bt),Dt.getTagRule=function(Ft){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},Dt.getStartRule=function(Ft){return{token:"comment.doc",regex:/\/\*\*(?!\/)/,next:Ft}},Dt.getEndRule=function(Ft){return{token:"comment.doc",regex:"\\*\\/",next:Ft}},Ct.DocCommentHighlightRules=Dt}),ace.define("ace/mode/java_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(yt,Ct,$t){var At=yt("../lib/oop"),Bt=yt("./doc_comment_highlight_rules").DocCommentHighlightRules,Dt=yt("./text_highlight_rules").TextHighlightRules,Ft=function(){var kt="[a-zA-Z_$][a-zA-Z0-9_$]*",Mt="abstract|continue|for|new|switch|assert|default|goto|package|synchronized|boolean|do|if|private|this|break|double|implements|protected|throw|byte|else|import|public|throws|case|enum|instanceof|return|transient|catch|extends|int|short|try|char|final|interface|static|void|class|finally|long|strictfp|volatile|const|float|native|super|while|var|exports|opens|requires|uses|yield|module|permits|(?:non\\-)?sealed|var|provides|to|when|open|record|transitive|with",Nt="null|Infinity|NaN|undefined",jt="AbstractMethodError|AssertionError|ClassCircularityError|ClassFormatError|Deprecated|EnumConstantNotPresentException|ExceptionInInitializerError|IllegalAccessError|IllegalThreadStateException|InstantiationError|InternalError|NegativeArraySizeException|NoSuchFieldError|Override|Process|ProcessBuilder|SecurityManager|StringIndexOutOfBoundsException|SuppressWarnings|TypeNotPresentException|UnknownError|UnsatisfiedLinkError|UnsupportedClassVersionError|VerifyError|InstantiationException|IndexOutOfBoundsException|ArrayIndexOutOfBoundsException|CloneNotSupportedException|NoSuchFieldException|IllegalArgumentException|NumberFormatException|SecurityException|Void|InheritableThreadLocal|IllegalStateException|InterruptedException|NoSuchMethodException|IllegalAccessException|UnsupportedOperationException|Enum|StrictMath|Package|Compiler|Readable|Runtime|StringBuilder|Math|IncompatibleClassChangeError|NoSuchMethodError|ThreadLocal|RuntimePermission|ArithmeticException|NullPointerException|Long|Integer|Short|Byte|Double|Number|Float|Character|Boolean|StackTraceElement|Appendable|StringBuffer|Iterable|ThreadGroup|Runnable|Thread|IllegalMonitorStateException|StackOverflowError|OutOfMemoryError|VirtualMachineError|ArrayStoreException|ClassCastException|LinkageError|NoClassDefFoundError|ClassNotFoundException|RuntimeException|Exception|ThreadDeath|Error|Throwable|System|ClassLoader|Cloneable|Class|CharSequence|Comparable|String|Object",zt=this.createKeywordMapper({"variable.language":"this","constant.language":Nt,"support.function":jt},"identifier");this.$rules={start:[{token:"comment",regex:"\\/\\/.*$"},Bt.getStartRule("doc-start"),{token:"comment",regex:"\\/\\*",next:"comment"},{include:"multiline-strings"},{include:"strings"},{include:"constants"},{regex:"(open(?:\\s+))?module(?=\\s*\\w)",token:"keyword",next:[{regex:"{",token:"paren.lparen",next:[{regex:"}",token:"paren.rparen",next:"start"},{regex:"\\b(requires|transitive|exports|opens|to|uses|provides|with)\\b",token:"keyword"}]},{token:"text",regex:"\\s+"},{token:"identifier",regex:"\\w+"},{token:"punctuation.operator",regex:"."},{token:"text",regex:"\\s+"},{regex:"",next:"start"}]},{include:"statements"}],comment:[{token:"comment",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}],strings:[{token:["punctuation","string"],regex:/(\.)(")/,push:[{token:"lparen",regex:/\\\{/,push:[{token:"text",regex:/$/,next:"start"},{token:"rparen",regex:/}/,next:"pop"},{include:"strings"},{include:"constants"},{include:"statements"}]},{token:"string",regex:/"/,next:"pop"},{defaultToken:"string"}]},{token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},{token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"}],"multiline-strings":[{token:["punctuation","string"],regex:/(\.)(""")/,push:[{token:"string",regex:'"""',next:"pop"},{token:"lparen",regex:/\\\{/,push:[{token:"text",regex:/$/,next:"start"},{token:"rparen",regex:/}/,next:"pop"},{include:"multiline-strings"},{include:"strings"},{include:"constants"},{include:"statements"}]},{token:"constant.language.escape",regex:/\\./},{defaultToken:"string"}]},{token:"string",regex:'"""',push:[{token:"string",regex:'"""',next:"pop"},{token:"constant.language.escape",regex:/\\./},{defaultToken:"string"}]}],constants:[{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F][0-9a-fA-F_]*|[bB][01][01_]*)[LlSsDdFfYy]?\b/},{token:"constant.numeric",regex:/[+-]?\d[\d_]*(?:(?:\.[\d_]*)?(?:[eE][+-]?[\d_]+)?)?[LlSsDdFfYy]?\b/},{token:"constant.language.boolean",regex:"(?:true|false)\\b"}],statements:[{token:["keyword","text","identifier"],regex:"(record)(\\s+)("+kt+")\\b"},{token:"keyword",regex:"(?:"+Mt+")\\b"},{token:"storage.type.annotation",regex:"@"+kt+"\\b"},{token:"entity.name.function",regex:kt+"(?=\\()"},{token:zt,regex:kt+"\\b"},{token:"keyword.operator",regex:"!|\\$|%|&|\\||\\^|\\*|\\/|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?|\\:|\\*=|\\/=|%=|\\+=|\\-=|&=|\\|=|\\^=|\\b(?:in|instanceof|new|delete|typeof|void)"},{token:"lparen",regex:"[[({]"},{token:"rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}]},this.embedRules(Bt,"doc-",[Bt.getEndRule("start")]),this.normalizeRules()};At.inherits(Ft,Dt),Ct.JavaHighlightRules=Ft}),ace.define("ace/mode/folding/java",["require","exports","module","ace/lib/oop","ace/mode/folding/cstyle","ace/range"],function(yt,Ct,$t){var At=yt("../../lib/oop"),Bt=yt("./cstyle").FoldMode,Dt=yt("../../range").Range,Ft=Ct.FoldMode=function(){};At.inherits(Ft,Bt),(function(){this.importRegex=/^import /,this.getCStyleFoldWidget=this.getFoldWidget,this.getFoldWidget=function(kt,Mt,Nt){if(Mt==="markbegin"){var jt=kt.getLine(Nt);if(this.importRegex.test(jt)&&(Nt==0||!this.importRegex.test(kt.getLine(Nt-1))))return"start"}return this.getCStyleFoldWidget(kt,Mt,Nt)},this.getCstyleFoldWidgetRange=this.getFoldWidgetRange,this.getFoldWidgetRange=function(kt,Mt,Nt,jt){var zt=kt.getLine(Nt),Vt=zt.match(this.importRegex);if(!Vt||Mt!=="markbegin")return this.getCstyleFoldWidgetRange(kt,Mt,Nt,jt);for(var Kt=Vt[0].length,Xt=kt.getLength(),Qt=Nt,Zt=Nt;++Nt<Xt;){var zt=kt.getLine(Nt);if(!zt.match(/^\s*$/)){if(!zt.match(this.importRegex))break;Zt=Nt}}if(Zt>Qt){var dr=kt.getLine(Zt).length;return new Dt(Qt,Kt,Zt,dr)}}}).call(Ft.prototype)}),ace.define("ace/mode/java",["require","exports","module","ace/lib/oop","ace/mode/javascript","ace/mode/java_highlight_rules","ace/mode/folding/java"],function(yt,Ct,$t){var At=yt("../lib/oop"),Bt=yt("./javascript").Mode,Dt=yt("./java_highlight_rules").JavaHighlightRules,Ft=yt("./folding/java").FoldMode,kt=function(){Bt.call(this),this.HighlightRules=Dt,this.foldingRules=new Ft};At.inherits(kt,Bt),(function(){this.createWorker=function(Mt){return null},this.$id="ace/mode/java",this.snippetFileId="ace/snippets/java"}).call(kt.prototype),Ct.Mode=kt}),function(){ace.require(["ace/mode/java"],function(yt){ht&&(ht.exports=yt)})}()})(modeJava);var themeTomorrow_night={exports:{}};(function(ht,Et){ace.define("ace/theme/tomorrow_night-css",["require","exports","module"],function(yt,Ct,$t){$t.exports=`.ace-tomorrow-night .ace_gutter {
  background: #25282c;
  color: #C5C8C6
}

.ace-tomorrow-night .ace_print-margin {
  width: 1px;
  background: #25282c
}

.ace-tomorrow-night {
  background-color: #1D1F21;
  color: #C5C8C6
}

.ace-tomorrow-night .ace_cursor {
  color: #AEAFAD
}

.ace-tomorrow-night .ace_marker-layer .ace_selection {
  background: #373B41
}

.ace-tomorrow-night.ace_multiselect .ace_selection.ace_start {
  box-shadow: 0 0 3px 0px #1D1F21;
}

.ace-tomorrow-night .ace_marker-layer .ace_step {
  background: rgb(102, 82, 0)
}

.ace-tomorrow-night .ace_marker-layer .ace_bracket {
  margin: -1px 0 0 -1px;
  border: 1px solid #4B4E55
}

.ace-tomorrow-night .ace_marker-layer .ace_active-line {
  background: #282A2E
}

.ace-tomorrow-night .ace_gutter-active-line {
  background-color: #282A2E
}

.ace-tomorrow-night .ace_marker-layer .ace_selected-word {
  border: 1px solid #373B41
}

.ace-tomorrow-night .ace_invisible {
  color: #4B4E55
}

.ace-tomorrow-night .ace_keyword,
.ace-tomorrow-night .ace_meta,
.ace-tomorrow-night .ace_storage,
.ace-tomorrow-night .ace_storage.ace_type,
.ace-tomorrow-night .ace_support.ace_type {
  color: #B294BB
}

.ace-tomorrow-night .ace_keyword.ace_operator {
  color: #8ABEB7
}

.ace-tomorrow-night .ace_constant.ace_character,
.ace-tomorrow-night .ace_constant.ace_language,
.ace-tomorrow-night .ace_constant.ace_numeric,
.ace-tomorrow-night .ace_keyword.ace_other.ace_unit,
.ace-tomorrow-night .ace_support.ace_constant,
.ace-tomorrow-night .ace_variable.ace_parameter {
  color: #DE935F
}

.ace-tomorrow-night .ace_constant.ace_other {
  color: #CED1CF
}

.ace-tomorrow-night .ace_invalid {
  color: #CED2CF;
  background-color: #DF5F5F
}

.ace-tomorrow-night .ace_invalid.ace_deprecated {
  color: #CED2CF;
  background-color: #B798BF
}

.ace-tomorrow-night .ace_fold {
  background-color: #81A2BE;
  border-color: #C5C8C6
}

.ace-tomorrow-night .ace_entity.ace_name.ace_function,
.ace-tomorrow-night .ace_support.ace_function,
.ace-tomorrow-night .ace_variable {
  color: #81A2BE
}

.ace-tomorrow-night .ace_support.ace_class,
.ace-tomorrow-night .ace_support.ace_type {
  color: #F0C674
}

.ace-tomorrow-night .ace_heading,
.ace-tomorrow-night .ace_markup.ace_heading,
.ace-tomorrow-night .ace_string {
  color: #B5BD68
}

.ace-tomorrow-night .ace_entity.ace_name.ace_tag,
.ace-tomorrow-night .ace_entity.ace_other.ace_attribute-name,
.ace-tomorrow-night .ace_meta.ace_tag,
.ace-tomorrow-night .ace_string.ace_regexp,
.ace-tomorrow-night .ace_variable {
  color: #CC6666
}

.ace-tomorrow-night .ace_comment {
  color: #969896
}

.ace-tomorrow-night .ace_indent-guide {
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYHB3d/8PAAOIAdULw8qMAAAAAElFTkSuQmCC) right repeat-y
}

.ace-tomorrow-night .ace_indent-guide-active {
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQIW2PQ1dX9zzBz5sz/ABCcBFFentLlAAAAAElFTkSuQmCC) right repeat-y;
}
`}),ace.define("ace/theme/tomorrow_night",["require","exports","module","ace/theme/tomorrow_night-css","ace/lib/dom"],function(yt,Ct,$t){Ct.isDark=!0,Ct.cssClass="ace-tomorrow-night",Ct.cssText=yt("./tomorrow_night-css");var At=yt("../lib/dom");At.importCssString(Ct.cssText,Ct.cssClass,!1)}),function(){ace.require(["ace/theme/tomorrow_night"],function(yt){ht&&(ht.exports=yt)})}()})(themeTomorrow_night);var themeDawn={exports:{}};(function(ht,Et){ace.define("ace/theme/dawn-css",["require","exports","module"],function(yt,Ct,$t){$t.exports=`.ace-dawn .ace_gutter {
  background: #ebebeb;
  color: #333
}

.ace-dawn .ace_print-margin {
  width: 1px;
  background: #e8e8e8
}

.ace-dawn {
  background-color: #F9F9F9;
  color: #080808
}

.ace-dawn .ace_cursor {
  color: #000000
}

.ace-dawn .ace_marker-layer .ace_selection {
  background: rgba(39, 95, 255, 0.30)
}

.ace-dawn.ace_multiselect .ace_selection.ace_start {
  box-shadow: 0 0 3px 0px #F9F9F9;
}

.ace-dawn .ace_marker-layer .ace_step {
  background: rgb(255, 255, 0)
}

.ace-dawn .ace_marker-layer .ace_bracket {
  margin: -1px 0 0 -1px;
  border: 1px solid rgba(75, 75, 126, 0.50)
}

.ace-dawn .ace_marker-layer .ace_active-line {
  background: rgba(36, 99, 180, 0.12)
}

.ace-dawn .ace_gutter-active-line {
  background-color : #dcdcdc
}

.ace-dawn .ace_marker-layer .ace_selected-word {
  border: 1px solid rgba(39, 95, 255, 0.30)
}

.ace-dawn .ace_invisible {
  color: rgba(75, 75, 126, 0.50)
}

.ace-dawn .ace_keyword,
.ace-dawn .ace_meta {
  color: #794938
}

.ace-dawn .ace_constant,
.ace-dawn .ace_constant.ace_character,
.ace-dawn .ace_constant.ace_character.ace_escape,
.ace-dawn .ace_constant.ace_other {
  color: #811F24
}

.ace-dawn .ace_invalid.ace_illegal {
  text-decoration: underline;
  font-style: italic;
  color: #F8F8F8;
  background-color: #B52A1D
}

.ace-dawn .ace_invalid.ace_deprecated {
  text-decoration: underline;
  font-style: italic;
  color: #B52A1D
}

.ace-dawn .ace_support {
  color: #691C97
}

.ace-dawn .ace_support.ace_constant {
  color: #B4371F
}

.ace-dawn .ace_fold {
  background-color: #794938;
  border-color: #080808
}

.ace-dawn .ace_list,
.ace-dawn .ace_markup.ace_list,
.ace-dawn .ace_support.ace_function {
  color: #693A17
}

.ace-dawn .ace_storage {
  font-style: italic;
  color: #A71D5D
}

.ace-dawn .ace_string {
  color: #0B6125
}

.ace-dawn .ace_string.ace_regexp {
  color: #CF5628
}

.ace-dawn .ace_comment {
  font-style: italic;
  color: #5A525F
}

.ace-dawn .ace_heading,
.ace-dawn .ace_markup.ace_heading {
  color: #19356D
}

.ace-dawn .ace_variable {
  color: #234A97
}

.ace-dawn .ace_indent-guide {
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYLh/5+x/AAizA4hxNNsZAAAAAElFTkSuQmCC) right repeat-y
}

.ace-dawn .ace_indent-guide-active {
  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
} 
`}),ace.define("ace/theme/dawn",["require","exports","module","ace/theme/dawn-css","ace/lib/dom"],function(yt,Ct,$t){Ct.isDark=!1,Ct.cssClass="ace-dawn",Ct.cssText=yt("./dawn-css");var At=yt("../lib/dom");At.importCssString(Ct.cssText,Ct.cssClass,!1)}),function(){ace.require(["ace/theme/dawn"],function(yt){ht&&(ht.exports=yt)})}()})(themeDawn);var extLanguage_tools={exports:{}};(function(ht,Et){ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(yt,Ct,$t){var At=yt("./lib/dom"),Bt=yt("./lib/oop"),Dt=yt("./lib/event_emitter").EventEmitter,Ft=yt("./lib/lang"),kt=yt("./range").Range,Mt=yt("./range_list").RangeList,Nt=yt("./keyboard/hash_handler").HashHandler,jt=yt("./tokenizer").Tokenizer,zt=yt("./clipboard"),Vt={CURRENT_WORD:function(pr){return pr.session.getTextRange(pr.session.getWordRange())},SELECTION:function(pr,gr,vr){var yr=pr.session.getTextRange();return vr?yr.replace(/\n\r?([ \t]*\S)/g,`
`+vr+"$1"):yr},CURRENT_LINE:function(pr){return pr.session.getLine(pr.getCursorPosition().row)},PREV_LINE:function(pr){return pr.session.getLine(pr.getCursorPosition().row-1)},LINE_INDEX:function(pr){return pr.getCursorPosition().row},LINE_NUMBER:function(pr){return pr.getCursorPosition().row+1},SOFT_TABS:function(pr){return pr.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(pr){return pr.session.getTabSize()},CLIPBOARD:function(pr){return zt.getText&&zt.getText()},FILENAME:function(pr){return/[^/\\]*$/.exec(this.FILEPATH(pr))[0]},FILENAME_BASE:function(pr){return/[^/\\]*$/.exec(this.FILEPATH(pr))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(pr){return this.FILEPATH(pr).replace(/[^/\\]*$/,"")},FILEPATH:function(pr){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(pr){var gr=pr.session.$mode||{};return gr.blockComment&&gr.blockComment.start||""},BLOCK_COMMENT_END:function(pr){var gr=pr.session.$mode||{};return gr.blockComment&&gr.blockComment.end||""},LINE_COMMENT:function(pr){var gr=pr.session.$mode||{};return gr.lineCommentStart||""},CURRENT_YEAR:Kt.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:Kt.bind(null,{year:"2-digit"}),CURRENT_MONTH:Kt.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:Kt.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:Kt.bind(null,{month:"short"}),CURRENT_DATE:Kt.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:Kt.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:Kt.bind(null,{weekday:"short"}),CURRENT_HOUR:Kt.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:Kt.bind(null,{minute:"2-digit"}),CURRENT_SECOND:Kt.bind(null,{second:"2-digit"})};Vt.SELECTED_TEXT=Vt.SELECTION;function Kt(pr){var gr=new Date().toLocaleString("en-us",pr);return gr.length==1?"0"+gr:gr}var Xt=function(){function pr(){this.snippetMap={},this.snippetNameMap={},this.variables=Vt}return pr.prototype.getTokenizer=function(){return pr.$tokenizer||this.createTokenizer()},pr.prototype.createTokenizer=function(){function gr(xr){return xr=xr.substr(1),/^\d+$/.test(xr)?[{tabstopId:parseInt(xr,10)}]:[{text:xr}]}function vr(xr){return"(?:[^\\\\"+xr+"]|\\\\.)"}var yr={regex:"/("+vr("/")+"+)/",onMatch:function(xr,rr,Lt){var Ht=Lt[0];return Ht.fmtString=!0,Ht.guard=xr.slice(1,-1),Ht.flag="",""},next:"formatString"};return pr.$tokenizer=new jt({start:[{regex:/\\./,onMatch:function(xr,rr,Lt){var Ht=xr[1];return(Ht=="}"&&Lt.length||"`$\\".indexOf(Ht)!=-1)&&(xr=Ht),[xr]}},{regex:/}/,onMatch:function(xr,rr,Lt){return[Lt.length?Lt.shift():xr]}},{regex:/\$(?:\d+|\w+)/,onMatch:gr},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(xr,rr,Lt){var Ht=gr(xr.substr(1));return Lt.unshift(Ht[0]),Ht},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+vr("\\|")+"*\\|",onMatch:function(xr,rr,Lt){var Ht=xr.slice(1,-1).replace(/\\[,|\\]|,/g,function(Wt){return Wt.length==2?Wt[1]:"\0"}).split("\0").map(function(Wt){return{value:Wt}});return Lt[0].choices=Ht,[Ht[0]]},next:"start"},yr,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(xr,rr,Lt){return Lt.length&&Lt[0].expectElse?(Lt[0].expectElse=!1,Lt[0].ifEnd={elseEnd:Lt[0]},[Lt[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(xr,rr,Lt){var Ht=xr[1];return Ht=="}"&&Lt.length||"`$\\".indexOf(Ht)!=-1?xr=Ht:Ht=="n"?xr=`
`:Ht=="t"?xr="	":"ulULE".indexOf(Ht)!=-1&&(xr={changeCase:Ht,local:Ht>"a"}),[xr]}},{regex:"/\\w*}",onMatch:function(xr,rr,Lt){var Ht=Lt.shift();return Ht&&(Ht.flag=xr.slice(1,-1)),this.next=Ht&&Ht.tabstopId?"start":"",[Ht||xr]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(xr,rr,Lt){return[{text:xr.slice(1)}]}},{regex:/\${\w+/,onMatch:function(xr,rr,Lt){var Ht={text:xr.slice(2)};return Lt.unshift(Ht),[Ht]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(xr,rr,Lt){var Ht=Lt.shift();return this.next=Ht&&Ht.tabstopId?"start":"",[Ht||xr]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(xr,rr,Lt){var Ht=Lt[0];return Ht.formatFunction=xr.slice(2,-1),[Lt.shift()]},next:"formatString"},yr,{regex:/:[\?\-+]?/,onMatch:function(xr,rr,Lt){xr[1]=="+"&&(Lt[0].ifEnd=Lt[0]),xr[1]=="?"&&(Lt[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),pr.$tokenizer},pr.prototype.tokenizeTmSnippet=function(gr,vr){return this.getTokenizer().getLineTokens(gr,vr).tokens.map(function(yr){return yr.value||yr})},pr.prototype.getVariableValue=function(gr,vr,yr){if(/^\d+$/.test(vr))return(this.variables.__||{})[vr]||"";if(/^[A-Z]\d+$/.test(vr))return(this.variables[vr[0]+"__"]||{})[vr.substr(1)]||"";if(vr=vr.replace(/^TM_/,""),!this.variables.hasOwnProperty(vr))return"";var xr=this.variables[vr];return typeof xr=="function"&&(xr=this.variables[vr](gr,vr,yr)),xr??""},pr.prototype.tmStrFormat=function(gr,vr,yr){if(!vr.fmt)return gr;var xr=vr.flag||"",rr=vr.guard;rr=new RegExp(rr,xr.replace(/[^gim]/g,""));var Lt=typeof vr.fmt=="string"?this.tokenizeTmSnippet(vr.fmt,"formatString"):vr.fmt,Ht=this,Wt=gr.replace(rr,function(){var Gt=Ht.variables.__;Ht.variables.__=[].slice.call(arguments);for(var Yt=Ht.resolveVariables(Lt,yr),er="E",lr=0;lr<Yt.length;lr++){var Jt=Yt[lr];if(typeof Jt=="object")if(Yt[lr]="",Jt.changeCase&&Jt.local){var Ut=Yt[lr+1];Ut&&typeof Ut=="string"&&(Jt.changeCase=="u"?Yt[lr]=Ut[0].toUpperCase():Yt[lr]=Ut[0].toLowerCase(),Yt[lr+1]=Ut.substr(1))}else Jt.changeCase&&(er=Jt.changeCase);else er=="U"?Yt[lr]=Jt.toUpperCase():er=="L"&&(Yt[lr]=Jt.toLowerCase())}return Ht.variables.__=Gt,Yt.join("")});return Wt},pr.prototype.tmFormatFunction=function(gr,vr,yr){return vr.formatFunction=="upcase"?gr.toUpperCase():vr.formatFunction=="downcase"?gr.toLowerCase():gr},pr.prototype.resolveVariables=function(gr,vr){for(var yr=[],xr="",rr=!0,Lt=0;Lt<gr.length;Lt++){var Ht=gr[Lt];if(typeof Ht=="string"){yr.push(Ht),Ht==`
`?(rr=!0,xr=""):rr&&(xr=/^\t*/.exec(Ht)[0],rr=/\S/.test(Ht));continue}if(Ht){if(rr=!1,Ht.fmtString){var Wt=gr.indexOf(Ht,Lt+1);Wt==-1&&(Wt=gr.length),Ht.fmt=gr.slice(Lt+1,Wt),Lt=Wt}if(Ht.text){var Gt=this.getVariableValue(vr,Ht.text,xr)+"";Ht.fmtString&&(Gt=this.tmStrFormat(Gt,Ht,vr)),Ht.formatFunction&&(Gt=this.tmFormatFunction(Gt,Ht,vr)),Gt&&!Ht.ifEnd?(yr.push(Gt),Yt(Ht)):!Gt&&Ht.ifEnd&&Yt(Ht.ifEnd)}else Ht.elseEnd?Yt(Ht.elseEnd):(Ht.tabstopId!=null||Ht.changeCase!=null)&&yr.push(Ht)}}function Yt(er){var lr=gr.indexOf(er,Lt+1);lr!=-1&&(Lt=lr)}return yr},pr.prototype.getDisplayTextForSnippet=function(gr,vr){var yr=Qt.call(this,gr,vr);return yr.text},pr.prototype.insertSnippetForSelection=function(gr,vr,yr){yr===void 0&&(yr={});var xr=Qt.call(this,gr,vr,yr),rr=gr.getSelectionRange(),Lt=gr.session.replace(rr,xr.text),Ht=new Zt(gr),Wt=gr.inVirtualSelectionMode&&gr.selection.index;Ht.addTabstops(xr.tabstops,rr.start,Lt,Wt)},pr.prototype.insertSnippet=function(gr,vr,yr){yr===void 0&&(yr={});var xr=this;if(gr.inVirtualSelectionMode)return xr.insertSnippetForSelection(gr,vr,yr);gr.forEachSelection(function(){xr.insertSnippetForSelection(gr,vr,yr)},null,{keepOrder:!0}),gr.tabstopManager&&gr.tabstopManager.tabNext()},pr.prototype.$getScope=function(gr){var vr=gr.session.$mode.$id||"";if(vr=vr.split("/").pop(),vr==="html"||vr==="php"){vr==="php"&&!gr.session.$mode.inlinePhp&&(vr="html");var yr=gr.getCursorPosition(),xr=gr.session.getState(yr.row);typeof xr=="object"&&(xr=xr[0]),xr.substring&&(xr.substring(0,3)=="js-"?vr="javascript":xr.substring(0,4)=="css-"?vr="css":xr.substring(0,4)=="php-"&&(vr="php"))}return vr},pr.prototype.getActiveScopes=function(gr){var vr=this.$getScope(gr),yr=[vr],xr=this.snippetMap;return xr[vr]&&xr[vr].includeScopes&&yr.push.apply(yr,xr[vr].includeScopes),yr.push("_"),yr},pr.prototype.expandWithTab=function(gr,vr){var yr=this,xr=gr.forEachSelection(function(){return yr.expandSnippetForSelection(gr,vr)},null,{keepOrder:!0});return xr&&gr.tabstopManager&&gr.tabstopManager.tabNext(),xr},pr.prototype.expandSnippetForSelection=function(gr,vr){var yr=gr.getCursorPosition(),xr=gr.session.getLine(yr.row),rr=xr.substring(0,yr.column),Lt=xr.substr(yr.column),Ht=this.snippetMap,Wt;return this.getActiveScopes(gr).some(function(Gt){var Yt=Ht[Gt];return Yt&&(Wt=this.findMatchingSnippet(Yt,rr,Lt)),!!Wt},this),Wt?(vr&&vr.dryRun||(gr.session.doc.removeInLine(yr.row,yr.column-Wt.replaceBefore.length,yr.column+Wt.replaceAfter.length),this.variables.M__=Wt.matchBefore,this.variables.T__=Wt.matchAfter,this.insertSnippetForSelection(gr,Wt.content),this.variables.M__=this.variables.T__=null),!0):!1},pr.prototype.findMatchingSnippet=function(gr,vr,yr){for(var xr=gr.length;xr--;){var rr=gr[xr];if(!(rr.startRe&&!rr.startRe.test(vr))&&!(rr.endRe&&!rr.endRe.test(yr))&&!(!rr.startRe&&!rr.endRe))return rr.matchBefore=rr.startRe?rr.startRe.exec(vr):[""],rr.matchAfter=rr.endRe?rr.endRe.exec(yr):[""],rr.replaceBefore=rr.triggerRe?rr.triggerRe.exec(vr)[0]:"",rr.replaceAfter=rr.endTriggerRe?rr.endTriggerRe.exec(yr)[0]:"",rr}},pr.prototype.register=function(gr,vr){var yr=this.snippetMap,xr=this.snippetNameMap,rr=this;gr||(gr=[]);function Lt(Gt){return Gt&&!/^\^?\(.*\)\$?$|^\\b$/.test(Gt)&&(Gt="(?:"+Gt+")"),Gt||""}function Ht(Gt,Yt,er){return Gt=Lt(Gt),Yt=Lt(Yt),Gt=Yt+Gt,Gt&&Gt[Gt.length-1]!="$"&&(Gt=Gt+"$"),new RegExp(Gt)}function Wt(Gt){Gt.scope||(Gt.scope=vr||"_"),vr=Gt.scope,yr[vr]||(yr[vr]=[],xr[vr]={});var Yt=xr[vr];if(Gt.name){var er=Yt[Gt.name];er&&rr.unregister(er),Yt[Gt.name]=Gt}yr[vr].push(Gt),Gt.prefix&&(Gt.tabTrigger=Gt.prefix),!Gt.content&&Gt.body&&(Gt.content=Array.isArray(Gt.body)?Gt.body.join(`
`):Gt.body),Gt.tabTrigger&&!Gt.trigger&&(!Gt.guard&&/^\w/.test(Gt.tabTrigger)&&(Gt.guard="\\b"),Gt.trigger=Ft.escapeRegExp(Gt.tabTrigger)),!(!Gt.trigger&&!Gt.guard&&!Gt.endTrigger&&!Gt.endGuard)&&(Gt.startRe=Ht(Gt.trigger,Gt.guard),Gt.triggerRe=new RegExp(Gt.trigger),Gt.endRe=Ht(Gt.endTrigger,Gt.endGuard),Gt.endTriggerRe=new RegExp(Gt.endTrigger))}Array.isArray(gr)?gr.forEach(Wt):Object.keys(gr).forEach(function(Gt){Wt(gr[Gt])}),this._signal("registerSnippets",{scope:vr})},pr.prototype.unregister=function(gr,vr){var yr=this.snippetMap,xr=this.snippetNameMap;function rr(Lt){var Ht=xr[Lt.scope||vr];if(Ht&&Ht[Lt.name]){delete Ht[Lt.name];var Wt=yr[Lt.scope||vr],Gt=Wt&&Wt.indexOf(Lt);Gt>=0&&Wt.splice(Gt,1)}}gr.content?rr(gr):Array.isArray(gr)&&gr.forEach(rr)},pr.prototype.parseSnippetFile=function(gr){gr=gr.replace(/\r/g,"");for(var vr=[],yr={},xr=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,rr;rr=xr.exec(gr);){if(rr[1])try{yr=JSON.parse(rr[1]),vr.push(yr)}catch{}if(rr[4])yr.content=rr[4].replace(/^\t/gm,""),vr.push(yr),yr={};else{var Lt=rr[2],Ht=rr[3];if(Lt=="regex"){var Wt=/\/((?:[^\/\\]|\\.)*)|$/g;yr.guard=Wt.exec(Ht)[1],yr.trigger=Wt.exec(Ht)[1],yr.endTrigger=Wt.exec(Ht)[1],yr.endGuard=Wt.exec(Ht)[1]}else Lt=="snippet"?(yr.tabTrigger=Ht.match(/^\S*/)[0],yr.name||(yr.name=Ht)):Lt&&(yr[Lt]=Ht)}}return vr},pr.prototype.getSnippetByName=function(gr,vr){var yr=this.snippetNameMap,xr;return this.getActiveScopes(vr).some(function(rr){var Lt=yr[rr];return Lt&&(xr=Lt[gr]),!!xr},this),xr},pr}();Bt.implement(Xt.prototype,Dt);var Qt=function(pr,gr,vr){vr===void 0&&(vr={});var yr=pr.getCursorPosition(),xr=pr.session.getLine(yr.row),rr=pr.session.getTabString(),Lt=xr.match(/^\s*/)[0];yr.column<Lt.length&&(Lt=Lt.slice(0,yr.column)),gr=gr.replace(/\r/g,"");var Ht=this.tokenizeTmSnippet(gr);Ht=this.resolveVariables(Ht,pr),Ht=Ht.map(function(Dr){return Dr==`
`&&!vr.excludeExtraIndent?Dr+Lt:typeof Dr=="string"?Dr.replace(/\t/g,rr):Dr});var Wt=[];Ht.forEach(function(Dr,Ar){if(typeof Dr=="object"){var Fr=Dr.tabstopId,Rr=Wt[Fr];if(Rr||(Rr=Wt[Fr]=[],Rr.index=Fr,Rr.value="",Rr.parents={}),Rr.indexOf(Dr)===-1){Dr.choices&&!Rr.choices&&(Rr.choices=Dr.choices),Rr.push(Dr);var wr=Ht.indexOf(Dr,Ar+1);if(wr!==-1){var Sr=Ht.slice(Ar+1,wr),Br=Sr.some(function(Or){return typeof Or=="object"});Br&&!Rr.value?Rr.value=Sr:Sr.length&&(!Rr.value||typeof Rr.value!="string")&&(Rr.value=Sr.join(""))}}}}),Wt.forEach(function(Dr){Dr.length=0});var Gt={};function Yt(Dr){for(var Ar=[],Fr=0;Fr<Dr.length;Fr++){var Rr=Dr[Fr];if(typeof Rr=="object"){if(Gt[Rr.tabstopId])continue;var wr=Dr.lastIndexOf(Rr,Fr-1);Rr=Ar[wr]||{tabstopId:Rr.tabstopId}}Ar[Fr]=Rr}return Ar}for(var er=0;er<Ht.length;er++){var lr=Ht[er];if(typeof lr=="object"){var Jt=lr.tabstopId,Ut=Wt[Jt],ir=Ht.indexOf(lr,er+1);if(Gt[Jt]){Gt[Jt]===lr&&(delete Gt[Jt],Object.keys(Gt).forEach(function(Dr){Ut.parents[Dr]=!0}));continue}Gt[Jt]=lr;var Cr=Ut.value;typeof Cr!="string"?Cr=Yt(Cr):lr.fmt&&(Cr=this.tmStrFormat(Cr,lr,pr)),Ht.splice.apply(Ht,[er+1,Math.max(0,ir-er)].concat(Cr,lr)),Ut.indexOf(lr)===-1&&Ut.push(lr)}}var _r=0,$r=0,Tr="";return Ht.forEach(function(Dr){if(typeof Dr=="string"){var Ar=Dr.split(`
`);Ar.length>1?($r=Ar[Ar.length-1].length,_r+=Ar.length-1):$r+=Dr.length,Tr+=Dr}else Dr&&(Dr.start?Dr.end={row:_r,column:$r}:Dr.start={row:_r,column:$r})}),{text:Tr,tabstops:Wt,tokens:Ht}},Zt=function(){function pr(gr){if(this.index=0,this.ranges=[],this.tabstops=[],gr.tabstopManager)return gr.tabstopManager;gr.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=Ft.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(gr)}return pr.prototype.attach=function(gr){this.$openTabstops=null,this.selectedTabstop=null,this.editor=gr,this.session=gr.session,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},pr.prototype.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges.length=0,this.tabstops.length=0,this.selectedTabstop=null,this.editor.off("change",this.$onChange),this.editor.off("changeSelection",this.$onChangeSelection),this.editor.off("changeSession",this.$onChangeSession),this.editor.commands.off("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.session=null,this.editor=null},pr.prototype.onChange=function(gr){for(var vr=gr.action[0]=="r",yr=this.selectedTabstop||{},xr=yr.parents||{},rr=this.tabstops.slice(),Lt=0;Lt<rr.length;Lt++){var Ht=rr[Lt],Wt=Ht==yr||xr[Ht.index];if(Ht.rangeList.$bias=Wt?0:1,gr.action=="remove"&&Ht!==yr){var Gt=Ht.parents&&Ht.parents[yr.index],Yt=Ht.rangeList.pointIndex(gr.start,Gt);Yt=Yt<0?-Yt-1:Yt+1;var er=Ht.rangeList.pointIndex(gr.end,Gt);er=er<0?-er-1:er-1;for(var lr=Ht.rangeList.ranges.slice(Yt,er),Jt=0;Jt<lr.length;Jt++)this.removeRange(lr[Jt])}Ht.rangeList.$onChange(gr)}var Ut=this.session;!this.$inChange&&vr&&Ut.getLength()==1&&!Ut.getValue()&&this.detach()},pr.prototype.updateLinkedFields=function(){var gr=this.selectedTabstop;if(!(!gr||!gr.hasLinkedRanges||!gr.firstNonLinked)){this.$inChange=!0;for(var vr=this.session,yr=vr.getTextRange(gr.firstNonLinked),xr=0;xr<gr.length;xr++){var rr=gr[xr];if(rr.linked){var Lt=rr.original,Ht=Ct.snippetManager.tmStrFormat(yr,Lt,this.editor);vr.replace(rr,Ht)}}this.$inChange=!1}},pr.prototype.onAfterExec=function(gr){gr.command&&!gr.command.readOnly&&this.updateLinkedFields()},pr.prototype.onChangeSelection=function(){if(this.editor){for(var gr=this.editor.selection.lead,vr=this.editor.selection.anchor,yr=this.editor.selection.isEmpty(),xr=0;xr<this.ranges.length;xr++)if(!this.ranges[xr].linked){var rr=this.ranges[xr].contains(gr.row,gr.column),Lt=yr||this.ranges[xr].contains(vr.row,vr.column);if(rr&&Lt)return}this.detach()}},pr.prototype.onChangeSession=function(){this.detach()},pr.prototype.tabNext=function(gr){var vr=this.tabstops.length,yr=this.index+(gr||1);yr=Math.min(Math.max(yr,1),vr),yr==vr&&(yr=0),this.selectTabstop(yr),this.updateTabstopMarkers(),yr===0&&this.detach()},pr.prototype.selectTabstop=function(gr){this.$openTabstops=null;var vr=this.tabstops[this.index];if(vr&&this.addTabstopMarkers(vr),this.index=gr,vr=this.tabstops[this.index],!(!vr||!vr.length)){this.selectedTabstop=vr;var yr=vr.firstNonLinked||vr;if(vr.choices&&(yr.cursor=yr.start),this.editor.inVirtualSelectionMode)this.editor.selection.fromOrientedRange(yr);else{var xr=this.editor.multiSelect;xr.toSingleRange(yr);for(var rr=0;rr<vr.length;rr++)vr.hasLinkedRanges&&vr[rr].linked||xr.addRange(vr[rr].clone(),!0)}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand("startAutocomplete",{matches:this.selectedTabstop.choices})}},pr.prototype.addTabstops=function(gr,vr,yr){var xr=this.useLink||!this.editor.getOption("enableMultiselect");if(this.$openTabstops||(this.$openTabstops=[]),!gr[0]){var rr=kt.fromPoints(yr,yr);cr(rr.start,vr),cr(rr.end,vr),gr[0]=[rr],gr[0].index=0}var Lt=this.index,Ht=[Lt+1,0],Wt=this.ranges,Gt=this.snippetId=(this.snippetId||0)+1;gr.forEach(function(Yt,er){var lr=this.$openTabstops[er]||Yt;lr.snippetId=Gt;for(var Jt=0;Jt<Yt.length;Jt++){var Ut=Yt[Jt],ir=kt.fromPoints(Ut.start,Ut.end||Ut.start);dr(ir.start,vr),dr(ir.end,vr),ir.original=Ut,ir.tabstop=lr,Wt.push(ir),lr!=Yt?lr.unshift(ir):lr[Jt]=ir,Ut.fmtString||lr.firstNonLinked&&xr?(ir.linked=!0,lr.hasLinkedRanges=!0):lr.firstNonLinked||(lr.firstNonLinked=ir)}lr.firstNonLinked||(lr.hasLinkedRanges=!1),lr===Yt&&(Ht.push(lr),this.$openTabstops[er]=lr),this.addTabstopMarkers(lr),lr.rangeList=lr.rangeList||new Mt,lr.rangeList.$bias=0,lr.rangeList.addList(lr)},this),Ht.length>2&&(this.tabstops.length&&Ht.push(Ht.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,Ht))},pr.prototype.addTabstopMarkers=function(gr){var vr=this.session;gr.forEach(function(yr){yr.markerId||(yr.markerId=vr.addMarker(yr,"ace_snippet-marker","text"))})},pr.prototype.removeTabstopMarkers=function(gr){var vr=this.session;gr.forEach(function(yr){vr.removeMarker(yr.markerId),yr.markerId=null})},pr.prototype.updateTabstopMarkers=function(){if(this.selectedTabstop){var gr=this.selectedTabstop.snippetId;this.selectedTabstop.index===0&&gr--,this.tabstops.forEach(function(vr){vr.snippetId===gr?this.addTabstopMarkers(vr):this.removeTabstopMarkers(vr)},this)}},pr.prototype.removeRange=function(gr){var vr=gr.tabstop.indexOf(gr);vr!=-1&&gr.tabstop.splice(vr,1),vr=this.ranges.indexOf(gr),vr!=-1&&this.ranges.splice(vr,1),vr=gr.tabstop.rangeList.ranges.indexOf(gr),vr!=-1&&gr.tabstop.splice(vr,1),this.session.removeMarker(gr.markerId),gr.tabstop.length||(vr=this.tabstops.indexOf(gr.tabstop),vr!=-1&&this.tabstops.splice(vr,1),this.tabstops.length||this.detach())},pr}();Zt.prototype.keyboardHandler=new Nt,Zt.prototype.keyboardHandler.bindKeys({Tab:function(pr){Ct.snippetManager&&Ct.snippetManager.expandWithTab(pr)||(pr.tabstopManager.tabNext(1),pr.renderer.scrollCursorIntoView())},"Shift-Tab":function(pr){pr.tabstopManager.tabNext(-1),pr.renderer.scrollCursorIntoView()},Esc:function(pr){pr.tabstopManager.detach()}});var dr=function(pr,gr){pr.row==0&&(pr.column+=gr.column),pr.row+=gr.row},cr=function(pr,gr){pr.row==gr.row&&(pr.column-=gr.column),pr.row-=gr.row};At.importCssString(`
.ace_snippet-marker {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    background: rgba(194, 193, 208, 0.09);
    border: 1px dotted rgba(211, 208, 235, 0.62);
    position: absolute;
}`,"snippets.css",!1),Ct.snippetManager=new Xt;var Er=yt("./editor").Editor;(function(){this.insertSnippet=function(pr,gr){return Ct.snippetManager.insertSnippet(this,pr,gr)},this.expandSnippet=function(pr){return Ct.snippetManager.expandWithTab(this,pr)}}).call(Er.prototype)}),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/config","ace/lib/useragent"],function(yt,Ct,$t){var At=yt("../virtual_renderer").VirtualRenderer,Bt=yt("../editor").Editor,Dt=yt("../range").Range,Ft=yt("../lib/event"),kt=yt("../lib/lang"),Mt=yt("../lib/dom"),Nt=yt("../config").nls,jt=yt("./../lib/useragent"),zt=function(dr){return"suggest-aria-id:".concat(dr)},Vt=jt.isSafari?"menu":"listbox",Kt=jt.isSafari?"menuitem":"option",Xt=jt.isSafari?"aria-current":"aria-selected",Qt=function(dr){var cr=new At(dr);cr.$maxLines=4;var Er=new Bt(cr);return Er.setHighlightActiveLine(!1),Er.setShowPrintMargin(!1),Er.renderer.setShowGutter(!1),Er.renderer.setHighlightGutterLine(!1),Er.$mouseHandler.$focusTimeout=0,Er.$highlightTagPending=!0,Er},Zt=function(){function dr(cr){var Er=Mt.createElement("div"),pr=Qt(Er);cr&&cr.appendChild(Er),Er.style.display="none",pr.renderer.content.style.cursor="default",pr.renderer.setStyle("ace_autocomplete"),pr.renderer.$textLayer.element.setAttribute("role",Vt),pr.renderer.$textLayer.element.setAttribute("aria-roledescription",Nt("autocomplete.popup.aria-roledescription","Autocomplete suggestions")),pr.renderer.$textLayer.element.setAttribute("aria-label",Nt("autocomplete.popup.aria-label","Autocomplete suggestions")),pr.renderer.textarea.setAttribute("aria-hidden","true"),pr.setOption("displayIndentGuides",!1),pr.setOption("dragDelay",150);var gr=function(){};pr.focus=gr,pr.$isFocused=!0,pr.renderer.$cursorLayer.restartTimer=gr,pr.renderer.$cursorLayer.element.style.opacity="0",pr.renderer.$maxLines=8,pr.renderer.$keepTextAreaAtCursor=!1,pr.setHighlightActiveLine(!1),pr.session.highlight(""),pr.session.$searchHighlight.clazz="ace_highlight-marker",pr.on("mousedown",function(Wt){var Gt=Wt.getDocumentPosition();pr.selection.moveToPosition(Gt),xr.start.row=xr.end.row=Gt.row,Wt.stop()});var vr,yr=new Dt(-1,0,-1,1/0),xr=new Dt(-1,0,-1,1/0);xr.id=pr.session.addMarker(xr,"ace_active-line","fullLine"),pr.setSelectOnHover=function(Wt){Wt?yr.id&&(pr.session.removeMarker(yr.id),yr.id=null):yr.id=pr.session.addMarker(yr,"ace_line-hover","fullLine")},pr.setSelectOnHover(!1),pr.on("mousemove",function(Wt){if(!vr){vr=Wt;return}if(!(vr.x==Wt.x&&vr.y==Wt.y)){vr=Wt,vr.scrollTop=pr.renderer.scrollTop,pr.isMouseOver=!0;var Gt=vr.getDocumentPosition().row;yr.start.row!=Gt&&(yr.id||pr.setRow(Gt),Lt(Gt))}}),pr.renderer.on("beforeRender",function(){if(vr&&yr.start.row!=-1){vr.$pos=null;var Wt=vr.getDocumentPosition().row;yr.id||pr.setRow(Wt),Lt(Wt,!0)}}),pr.renderer.on("afterRender",function(){var Wt=pr.getRow(),Gt=pr.renderer.$textLayer,Yt=Gt.element.childNodes[Wt-Gt.config.firstRow],er=document.activeElement;if(Yt!==pr.selectedNode&&pr.selectedNode&&(Mt.removeCssClass(pr.selectedNode,"ace_selected"),er.removeAttribute("aria-activedescendant"),pr.selectedNode.removeAttribute(Xt),pr.selectedNode.removeAttribute("id")),pr.selectedNode=Yt,Yt){Mt.addCssClass(Yt,"ace_selected");var lr=zt(Wt);Yt.id=lr,Gt.element.setAttribute("aria-activedescendant",lr),er.setAttribute("aria-activedescendant",lr),Yt.setAttribute("role",Kt),Yt.setAttribute("aria-roledescription",Nt("autocomplete.popup.item.aria-roledescription","item")),Yt.setAttribute("aria-label",pr.getData(Wt).caption||pr.getData(Wt).value),Yt.setAttribute("aria-setsize",pr.data.length),Yt.setAttribute("aria-posinset",Wt+1),Yt.setAttribute("aria-describedby","doc-tooltip"),Yt.setAttribute(Xt,"true")}});var rr=function(){Lt(-1)},Lt=function(Wt,Gt){Wt!==yr.start.row&&(yr.start.row=yr.end.row=Wt,Gt||pr.session._emit("changeBackMarker"),pr._emit("changeHoverMarker"))};pr.getHoveredRow=function(){return yr.start.row},Ft.addListener(pr.container,"mouseout",function(){pr.isMouseOver=!1,rr()}),pr.on("hide",rr),pr.on("changeSelection",rr),pr.session.doc.getLength=function(){return pr.data.length},pr.session.doc.getLine=function(Wt){var Gt=pr.data[Wt];return typeof Gt=="string"?Gt:Gt&&Gt.value||""};var Ht=pr.session.bgTokenizer;return Ht.$tokenizeRow=function(Wt){var Gt=pr.data[Wt],Yt=[];if(!Gt)return Yt;typeof Gt=="string"&&(Gt={value:Gt});var er=Gt.caption||Gt.value||Gt.name;function lr(Dr,Ar){Dr&&Yt.push({type:(Gt.className||"")+(Ar||""),value:Dr})}for(var Jt=er.toLowerCase(),Ut=(pr.filterText||"").toLowerCase(),ir=0,Cr=0,_r=0;_r<=Ut.length;_r++)if(_r!=Cr&&(Gt.matchMask&1<<_r||_r==Ut.length)){var $r=Ut.slice(Cr,_r);Cr=_r;var Tr=Jt.indexOf($r,ir);if(Tr==-1)continue;lr(er.slice(ir,Tr),""),ir=Tr+$r.length,lr(er.slice(Tr,ir),"completion-highlight")}return lr(er.slice(ir,er.length),""),Yt.push({type:"completion-spacer",value:" "}),Gt.meta&&Yt.push({type:"completion-meta",value:Gt.meta}),Gt.message&&Yt.push({type:"completion-message",value:Gt.message}),Yt},Ht.$updateOnChange=gr,Ht.start=gr,pr.session.$computeWidth=function(){return this.screenWidth=0},pr.isOpen=!1,pr.isTopdown=!1,pr.autoSelect=!0,pr.filterText="",pr.isMouseOver=!1,pr.data=[],pr.setData=function(Wt,Gt){pr.filterText=Gt||"",pr.setValue(kt.stringRepeat(`
`,Wt.length),-1),pr.data=Wt||[],pr.setRow(0)},pr.getData=function(Wt){return pr.data[Wt]},pr.getRow=function(){return xr.start.row},pr.setRow=function(Wt){Wt=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,Wt)),xr.start.row!=Wt&&(pr.selection.clearSelection(),xr.start.row=xr.end.row=Wt||0,pr.session._emit("changeBackMarker"),pr.moveCursorTo(Wt||0,0),pr.isOpen&&pr._signal("select"))},pr.on("changeSelection",function(){pr.isOpen&&pr.setRow(pr.selection.lead.row),pr.renderer.scrollCursorIntoView()}),pr.hide=function(){this.container.style.display="none",pr.anchorPos=null,pr.anchor=null,pr.isOpen&&(pr.isOpen=!1,this._signal("hide"))},pr.tryShow=function(Wt,Gt,Yt,er){if(!er&&pr.isOpen&&pr.anchorPos&&pr.anchor&&pr.anchorPos.top===Wt.top&&pr.anchorPos.left===Wt.left&&pr.anchor===Yt)return!0;var lr=this.container,Jt=window.innerHeight,Ut=window.innerWidth,ir=this.renderer,Cr=ir.$maxLines*Gt*1.4,_r={top:0,bottom:0,left:0},$r=Jt-Wt.top-3*this.$borderSize-Gt,Tr=Wt.top-3*this.$borderSize;Yt||(Tr<=$r||$r>=Cr?Yt="bottom":Yt="top"),Yt==="top"?(_r.bottom=Wt.top-this.$borderSize,_r.top=_r.bottom-Cr):Yt==="bottom"&&(_r.top=Wt.top+Gt+this.$borderSize,_r.bottom=_r.top+Cr);var Dr=_r.top>=0&&_r.bottom<=Jt;if(!er&&!Dr)return!1;Dr?ir.$maxPixelHeight=null:Yt==="top"?ir.$maxPixelHeight=Tr:ir.$maxPixelHeight=$r,Yt==="top"?(lr.style.top="",lr.style.bottom=Jt-_r.bottom+"px",pr.isTopdown=!1):(lr.style.top=_r.top+"px",lr.style.bottom="",pr.isTopdown=!0),lr.style.display="";var Ar=Wt.left;return Ar+lr.offsetWidth>Ut&&(Ar=Ut-lr.offsetWidth),lr.style.left=Ar+"px",lr.style.right="",pr.isOpen||(pr.isOpen=!0,this._signal("show"),vr=null),pr.anchorPos=Wt,pr.anchor=Yt,!0},pr.show=function(Wt,Gt,Yt){this.tryShow(Wt,Gt,Yt?"bottom":void 0,!0)},pr.goTo=function(Wt){var Gt=this.getRow(),Yt=this.session.getLength()-1;switch(Wt){case"up":Gt=Gt<=0?Yt:Gt-1;break;case"down":Gt=Gt>=Yt?-1:Gt+1;break;case"start":Gt=0;break;case"end":Gt=Yt;break}this.setRow(Gt)},pr.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},pr.$imageSize=0,pr.$borderSize=1,pr}return dr}();Mt.importCssString(`
.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
    background-color: #CAD6FA;
    z-index: 1;
}
.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
    background-color: #3a674e;
}
.ace_editor.ace_autocomplete .ace_line-hover {
    border: 1px solid #abbffe;
    margin-top: -1px;
    background: rgba(233,233,253,0.4);
    position: absolute;
    z-index: 2;
}
.ace_dark.ace_editor.ace_autocomplete .ace_line-hover {
    border: 1px solid rgba(109, 150, 13, 0.8);
    background: rgba(58, 103, 78, 0.62);
}
.ace_completion-meta {
    opacity: 0.5;
    margin-left: 0.9em;
}
.ace_completion-message {
    margin-left: 0.9em;
    color: blue;
}
.ace_editor.ace_autocomplete .ace_completion-highlight{
    color: #2d69c7;
}
.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{
    color: #93ca12;
}
.ace_editor.ace_autocomplete {
    width: 300px;
    z-index: 200000;
    border: 1px lightgray solid;
    position: fixed;
    box-shadow: 2px 3px 5px rgba(0,0,0,.2);
    line-height: 1.4;
    background: #fefefe;
    color: #111;
}
.ace_dark.ace_editor.ace_autocomplete {
    border: 1px #484747 solid;
    box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);
    line-height: 1.4;
    background: #25282c;
    color: #c1c1c1;
}
.ace_autocomplete .ace_text-layer  {
    width: calc(100% - 8px);
}
.ace_autocomplete .ace_line {
    display: flex;
    align-items: center;
}
.ace_autocomplete .ace_line > * {
    min-width: 0;
    flex: 0 0 auto;
}
.ace_autocomplete .ace_line .ace_ {
    flex: 0 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ace_autocomplete .ace_completion-spacer {
    flex: 1;
}
.ace_autocomplete.ace_loading:after  {
    content: "";
    position: absolute;
    top: 0px;
    height: 2px;
    width: 8%;
    background: blue;
    z-index: 100;
    animation: ace_progress 3s infinite linear;
    animation-delay: 300ms;
    transform: translateX(-100%) scaleX(1);
}
@keyframes ace_progress {
    0% { transform: translateX(-100%) scaleX(1) }
    50% { transform: translateX(625%) scaleX(2) } 
    100% { transform: translateX(1500%) scaleX(3) } 
}
@media (prefers-reduced-motion) {
    .ace_autocomplete.ace_loading:after {
        transform: translateX(625%) scaleX(2);
        animation: none;
     }
}
`,"autocompletion.css",!1),Ct.AcePopup=Zt,Ct.$singleLineEditor=Qt,Ct.getAriaId=zt}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(yt,Ct,$t){var At=function(){function Bt(Dt){this.editor=Dt,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}return Bt.prototype.setScreenReaderContent=function(Dt){for(!this.popup&&this.editor.completer&&this.editor.completer.popup&&(this.popup=this.editor.completer.popup,this.popup.renderer.on("afterRender",(function(){var kt=this.popup.getRow(),Mt=this.popup.renderer.$textLayer,Nt=Mt.element.childNodes[kt-Mt.config.firstRow];if(Nt){for(var jt="doc-tooltip ",zt=0;zt<this._lines.length;zt++)jt+="ace-inline-screenreader-line-".concat(zt," ");Nt.setAttribute("aria-describedby",jt)}}).bind(this)));this.screenReaderDiv.firstChild;)this.screenReaderDiv.removeChild(this.screenReaderDiv.firstChild);this._lines=Dt.split(/\r\n|\r|\n/);var Ft=this.createCodeBlock();this.screenReaderDiv.appendChild(Ft)},Bt.prototype.destroy=function(){this.screenReaderDiv.remove()},Bt.prototype.createCodeBlock=function(){var Dt=document.createElement("pre");Dt.setAttribute("id","ace-inline-screenreader");for(var Ft=0;Ft<this._lines.length;Ft++){var kt=document.createElement("code");kt.setAttribute("id","ace-inline-screenreader-line-".concat(Ft));var Mt=document.createTextNode(this._lines[Ft]);kt.appendChild(Mt),Dt.appendChild(kt)}return Dt},Bt}();Ct.AceInlineScreenReader=At}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],function(yt,Ct,$t){var At=yt("../snippets").snippetManager,Bt=yt("./inline_screenreader").AceInlineScreenReader,Dt=function(){function Ft(){this.editor=null}return Ft.prototype.show=function(kt,Mt,Nt){if(Nt=Nt||"",kt&&this.editor&&this.editor!==kt&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!kt||!Mt)return!1;this.inlineScreenReader||(this.inlineScreenReader=new Bt(kt));var jt=Mt.snippet?At.getDisplayTextForSnippet(kt,Mt.snippet):Mt.value;return Mt.hideInlinePreview||!jt||!jt.startsWith(Nt)?!1:(this.editor=kt,this.inlineScreenReader.setScreenReaderContent(jt),jt=jt.slice(Nt.length),jt===""?kt.removeGhostText():kt.setGhostText(jt),!0)},Ft.prototype.isOpen=function(){return this.editor?!!this.editor.renderer.$ghostText:!1},Ft.prototype.hide=function(){return this.editor?(this.editor.removeGhostText(),!0):!1},Ft.prototype.destroy=function(){this.hide(),this.editor=null,this.inlineScreenReader&&(this.inlineScreenReader.destroy(),this.inlineScreenReader=null)},Ft}();Ct.AceInline=Dt}),ace.define("ace/autocomplete/util",["require","exports","module"],function(yt,Ct,$t){Ct.parForEach=function(Bt,Dt,Ft){var kt=0,Mt=Bt.length;Mt===0&&Ft();for(var Nt=0;Nt<Mt;Nt++)Dt(Bt[Nt],function(jt,zt){kt++,kt===Mt&&Ft(jt,zt)})};var At=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;Ct.retrievePrecedingIdentifier=function(Bt,Dt,Ft){Ft=Ft||At;for(var kt=[],Mt=Dt-1;Mt>=0&&Ft.test(Bt[Mt]);Mt--)kt.push(Bt[Mt]);return kt.reverse().join("")},Ct.retrieveFollowingIdentifier=function(Bt,Dt,Ft){Ft=Ft||At;for(var kt=[],Mt=Dt;Mt<Bt.length&&Ft.test(Bt[Mt]);Mt++)kt.push(Bt[Mt]);return kt},Ct.getCompletionPrefix=function(Bt){var Dt=Bt.getCursorPosition(),Ft=Bt.session.getLine(Dt.row),kt;return Bt.completers.forEach((function(Mt){Mt.identifierRegexps&&Mt.identifierRegexps.forEach((function(Nt){!kt&&Nt&&(kt=this.retrievePrecedingIdentifier(Ft,Dt.column,Nt))}).bind(this))}).bind(this)),kt||this.retrievePrecedingIdentifier(Ft,Dt.column)},Ct.triggerAutocomplete=function(Bt,Ft){var Ft=Ft??Bt.session.getPrecedingCharacter();return Bt.completers.some(function(kt){if(kt.triggerCharacters&&Array.isArray(kt.triggerCharacters))return kt.triggerCharacters.includes(Ft)})}}),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/inline","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/lang","ace/lib/dom","ace/snippets","ace/config","ace/lib/event","ace/lib/scroll"],function(yt,Ct,$t){var At=yt("./keyboard/hash_handler").HashHandler,Bt=yt("./autocomplete/popup").AcePopup,Dt=yt("./autocomplete/inline").AceInline,Ft=yt("./autocomplete/popup").getAriaId,kt=yt("./autocomplete/util"),Mt=yt("./lib/lang"),Nt=yt("./lib/dom"),jt=yt("./snippets").snippetManager,zt=yt("./config"),Vt=yt("./lib/event"),Kt=yt("./lib/scroll").preventParentScroll,Xt=function(cr,Er){Er.completer&&Er.completer.destroy()},Qt=function(){function cr(){this.autoInsert=!1,this.autoSelect=!0,this.autoShown=!1,this.exactMatch=!1,this.inlineEnabled=!1,this.keyboardHandler=new At,this.keyboardHandler.bindKeys(this.commands),this.parentNode=null,this.setSelectOnHover=!1,this.hasSeen=new Set,this.showLoadingState=!1,this.stickySelectionDelay=500,this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.onLayoutChange=this.onLayoutChange.bind(this),this.changeTimer=Mt.delayedCall((function(){this.updateCompletions(!0)}).bind(this)),this.tooltipTimer=Mt.delayedCall(this.updateDocTooltip.bind(this),50),this.popupTimer=Mt.delayedCall(this.$updatePopupPosition.bind(this),50),this.stickySelectionTimer=Mt.delayedCall((function(){this.stickySelection=!0}).bind(this),this.stickySelectionDelay),this.$firstOpenTimer=Mt.delayedCall((function(){var Er=this.completionProvider&&this.completionProvider.initialPosition;this.autoShown||this.popup&&this.popup.isOpen||!Er||this.editor.completers.length===0||(this.completions=new dr(cr.completionsForLoading),this.openPopup(this.editor,Er.prefix,!1),this.popup.renderer.setStyle("ace_loading",!0))}).bind(this),this.stickySelectionDelay)}return Object.defineProperty(cr,"completionsForLoading",{get:function(){return[{caption:zt.nls("autocomplete.loading","Loading..."),value:""}]},enumerable:!1,configurable:!0}),cr.prototype.$init=function(){return this.popup=new Bt(this.parentNode||document.body||document.documentElement),this.popup.on("click",(function(Er){this.insertMatch(),Er.stop()}).bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.$onPopupShow.bind(this)),this.popup.on("hide",this.$onHidePopup.bind(this)),this.popup.on("select",this.$onPopupChange.bind(this)),Vt.addListener(this.popup.container,"mouseout",this.mouseOutListener.bind(this)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup.renderer.on("afterRender",this.$onPopupRender.bind(this)),this.popup},cr.prototype.$initInline=function(){if(!(!this.inlineEnabled||this.inlineRenderer))return this.inlineRenderer=new Dt,this.inlineRenderer},cr.prototype.getPopup=function(){return this.popup||this.$init()},cr.prototype.$onHidePopup=function(){this.inlineRenderer&&this.inlineRenderer.hide(),this.hideDocTooltip(),this.stickySelectionTimer.cancel(),this.popupTimer.cancel(),this.stickySelection=!1},cr.prototype.$seen=function(Er){!this.hasSeen.has(Er)&&Er&&Er.completer&&Er.completer.onSeen&&typeof Er.completer.onSeen=="function"&&(Er.completer.onSeen(this.editor,Er),this.hasSeen.add(Er))},cr.prototype.$onPopupChange=function(Er){if(this.inlineRenderer&&this.inlineEnabled){var pr=Er?null:this.popup.getData(this.popup.getRow());if(this.$updateGhostText(pr),this.popup.isMouseOver&&this.setSelectOnHover){this.tooltipTimer.call(null,null);return}this.popupTimer.schedule(),this.tooltipTimer.schedule()}else this.popupTimer.call(null,null),this.tooltipTimer.call(null,null)},cr.prototype.$updateGhostText=function(Er){var pr=this.base.row,gr=this.base.column,vr=this.editor.getCursorPosition().column,yr=this.editor.session.getLine(pr).slice(gr,vr);this.inlineRenderer.show(this.editor,Er,yr)?this.$seen(Er):this.inlineRenderer.hide()},cr.prototype.$onPopupRender=function(){var Er=this.inlineRenderer&&this.inlineEnabled;if(this.completions&&this.completions.filtered&&this.completions.filtered.length>0)for(var pr=this.popup.getFirstVisibleRow();pr<=this.popup.getLastVisibleRow();pr++){var gr=this.popup.getData(pr);gr&&(!Er||gr.hideInlinePreview)&&this.$seen(gr)}},cr.prototype.$onPopupShow=function(Er){this.$onPopupChange(Er),this.stickySelection=!1,this.stickySelectionDelay>=0&&this.stickySelectionTimer.schedule(this.stickySelectionDelay)},cr.prototype.observeLayoutChanges=function(){if(!(this.$elements||!this.editor)){window.addEventListener("resize",this.onLayoutChange,{passive:!0}),window.addEventListener("wheel",this.mousewheelListener);for(var Er=this.editor.container.parentNode,pr=[];Er;)pr.push(Er),Er.addEventListener("scroll",this.onLayoutChange,{passive:!0}),Er=Er.parentNode;this.$elements=pr}},cr.prototype.unObserveLayoutChanges=function(){var Er=this;window.removeEventListener("resize",this.onLayoutChange,{passive:!0}),window.removeEventListener("wheel",this.mousewheelListener),this.$elements&&this.$elements.forEach(function(pr){pr.removeEventListener("scroll",Er.onLayoutChange,{passive:!0})}),this.$elements=null},cr.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},cr.prototype.$updatePopupPosition=function(){var Er=this.editor,pr=Er.renderer,gr=pr.layerConfig.lineHeight,vr=pr.$cursorLayer.getPixelPosition(this.base,!0);vr.left-=this.popup.getTextLeftOffset();var yr=Er.container.getBoundingClientRect();vr.top+=yr.top-pr.layerConfig.offset,vr.left+=yr.left-Er.renderer.scrollLeft,vr.left+=pr.gutterWidth;var xr={top:vr.top,left:vr.left};pr.$ghostText&&pr.$ghostTextWidget&&this.base.row===pr.$ghostText.position.row&&(xr.top+=pr.$ghostTextWidget.el.offsetHeight);var rr=Er.container.getBoundingClientRect().bottom-gr,Lt=rr<xr.top?{top:rr,left:xr.left}:xr;this.popup.tryShow(Lt,gr,"bottom")||this.popup.tryShow(vr,gr,"top")||this.popup.show(vr,gr)},cr.prototype.openPopup=function(Er,pr,gr){this.$firstOpenTimer.cancel(),this.popup||this.$init(),this.inlineEnabled&&!this.inlineRenderer&&this.$initInline(),this.popup.autoSelect=this.autoSelect,this.popup.setSelectOnHover(this.setSelectOnHover);var vr=this.popup.getRow(),yr=this.popup.data[vr];this.popup.setData(this.completions.filtered,this.completions.filterText),this.editor.textInput.setAriaOptions&&this.editor.textInput.setAriaOptions({activeDescendant:Ft(this.popup.getRow()),inline:this.inlineEnabled}),Er.keyBinding.addKeyboardHandler(this.keyboardHandler);var xr;this.stickySelection&&(xr=this.popup.data.indexOf(yr)),(!xr||xr===-1)&&(xr=0),this.popup.setRow(this.autoSelect?xr:-1),xr===vr&&yr!==this.completions.filtered[xr]&&this.$onPopupChange();var rr=this.inlineRenderer&&this.inlineEnabled;if(xr===vr&&rr){var Lt=this.popup.getData(this.popup.getRow());this.$updateGhostText(Lt)}gr||(this.popup.setTheme(Er.getTheme()),this.popup.setFontSize(Er.getFontSize()),this.$updatePopupPosition(),this.tooltipNode&&this.updateDocTooltip()),this.changeTimer.cancel(),this.observeLayoutChanges()},cr.prototype.detach=function(){this.editor&&(this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener)),this.$firstOpenTimer.cancel(),this.changeTimer.cancel(),this.hideDocTooltip(),this.completionProvider&&this.completionProvider.detach(),this.popup&&this.popup.isOpen&&this.popup.hide(),this.popup&&this.popup.renderer&&this.popup.renderer.off("afterRender",this.$onPopupRender),this.base&&this.base.detach(),this.activated=!1,this.completionProvider=this.completions=this.base=null,this.unObserveLayoutChanges()},cr.prototype.changeListener=function(Er){var pr=this.editor.selection.lead;(pr.row!=this.base.row||pr.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},cr.prototype.blurListener=function(Er){var pr=document.activeElement,gr=this.editor.textInput.getElement(),vr=Er.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(Er.relatedTarget),yr=this.popup&&this.popup.container;pr!=gr&&pr.parentNode!=yr&&!vr&&pr!=this.tooltipNode&&Er.relatedTarget!=gr&&this.detach()},cr.prototype.mousedownListener=function(Er){this.detach()},cr.prototype.mousewheelListener=function(Er){this.popup&&!this.popup.isMouseOver&&this.detach()},cr.prototype.mouseOutListener=function(Er){this.popup.isOpen&&this.$updatePopupPosition()},cr.prototype.goTo=function(Er){this.popup.goTo(Er)},cr.prototype.insertMatch=function(Er,pr){if(Er||(Er=this.popup.getData(this.popup.getRow())),!Er)return!1;if(Er.value==="")return this.detach();var gr=this.completions,vr=this.getCompletionProvider().insertMatch(this.editor,Er,gr.filterText,pr);return this.completions==gr&&this.detach(),vr},cr.prototype.showPopup=function(Er,pr){this.editor&&this.detach(),this.activated=!0,this.editor=Er,Er.completer!=this&&(Er.completer&&Er.completer.detach(),Er.completer=this),Er.on("changeSelection",this.changeListener),Er.on("blur",this.blurListener),Er.on("mousedown",this.mousedownListener),Er.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,pr)},cr.prototype.getCompletionProvider=function(Er){return this.completionProvider||(this.completionProvider=new Zt(Er)),this.completionProvider},cr.prototype.gatherCompletions=function(Er,pr){return this.getCompletionProvider().gatherCompletions(Er,pr)},cr.prototype.updateCompletions=function(Er,pr){if(Er&&this.base&&this.completions){var vr=this.editor.getCursorPosition(),yr=this.editor.session.getTextRange({start:this.base,end:vr});if(yr==this.completions.filterText)return;if(this.completions.setFilter(yr),!this.completions.filtered.length)return this.detach();if(this.completions.filtered.length==1&&this.completions.filtered[0].value==yr&&!this.completions.filtered[0].snippet)return this.detach();this.openPopup(this.editor,yr,Er);return}if(pr&&pr.matches){var vr=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(vr.row,vr.column),this.base.$insertRight=!0,this.completions=new dr(pr.matches),this.getCompletionProvider().completions=this.completions,this.openPopup(this.editor,"",Er)}var gr=this.editor.getSession(),vr=this.editor.getCursorPosition(),yr=kt.getCompletionPrefix(this.editor);this.base=gr.doc.createAnchor(vr.row,vr.column-yr.length),this.base.$insertRight=!0;var xr={exactMatch:this.exactMatch,ignoreCaption:this.ignoreCaption};this.getCompletionProvider({prefix:yr,pos:vr}).provideCompletions(this.editor,xr,(function(rr,Lt,Ht){var Wt=Lt.filtered,Gt=kt.getCompletionPrefix(this.editor);if(this.$firstOpenTimer.cancel(),Ht){if(!Wt.length){var Yt=!this.autoShown&&this.emptyMessage;if(typeof Yt=="function"&&(Yt=this.emptyMessage(Gt)),Yt){var er=[{caption:Yt,value:""}];this.completions=new dr(er),this.openPopup(this.editor,Gt,Er),this.popup.renderer.setStyle("ace_loading",!1),this.popup.renderer.setStyle("ace_empty-message",!0);return}return this.detach()}if(Wt.length==1&&Wt[0].value==Gt&&!Wt[0].snippet)return this.detach();if(this.autoInsert&&!this.autoShown&&Wt.length==1)return this.insertMatch(Wt[0])}this.completions=!Ht&&this.showLoadingState?new dr(cr.completionsForLoading.concat(Wt),Lt.filterText):Lt,this.openPopup(this.editor,Gt,Er),this.popup.renderer.setStyle("ace_empty-message",!1),this.popup.renderer.setStyle("ace_loading",!Ht)}).bind(this)),this.showLoadingState&&!this.autoShown&&!(this.popup&&this.popup.isOpen)&&this.$firstOpenTimer.delay(this.stickySelectionDelay/2)},cr.prototype.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},cr.prototype.updateDocTooltip=function(){var Er=this.popup,pr=this.completions.filtered,gr=pr&&(pr[Er.getHoveredRow()]||pr[Er.getRow()]),vr=null;if(!gr||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();for(var yr=this.editor.completers.length,xr=0;xr<yr;xr++){var rr=this.editor.completers[xr];if(rr.getDocTooltip&&gr.completerId===rr.id){vr=rr.getDocTooltip(gr);break}}if(!vr&&typeof gr!="string"&&(vr=gr),typeof vr=="string"&&(vr={docText:vr}),!vr||!(vr.docHTML||vr.docText))return this.hideDocTooltip();this.showDocTooltip(vr)},cr.prototype.showDocTooltip=function(Er){this.tooltipNode||(this.tooltipNode=Nt.createElement("div"),this.tooltipNode.style.margin="0",this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.style.overscrollBehavior="contain",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this),this.tooltipNode.id="doc-tooltip",this.tooltipNode.setAttribute("role","tooltip"),this.tooltipNode.addEventListener("wheel",Kt));var pr=this.editor.renderer.theme;this.tooltipNode.className="ace_tooltip ace_doc-tooltip "+(pr.isDark?"ace_dark ":"")+(pr.cssClass||"");var gr=this.tooltipNode;Er.docHTML?gr.innerHTML=Er.docHTML:Er.docText&&(gr.textContent=Er.docText),gr.parentNode||this.popup.container.appendChild(this.tooltipNode);var vr=this.popup,yr=vr.container.getBoundingClientRect();gr.style.top=vr.container.style.top,gr.style.bottom=vr.container.style.bottom,gr.style.display="block",window.innerWidth-yr.right<320?yr.left<320?vr.isTopdown?(gr.style.top=yr.bottom+"px",gr.style.left=yr.left+"px",gr.style.right="",gr.style.bottom=""):(gr.style.top=vr.container.offsetTop-gr.offsetHeight+"px",gr.style.left=yr.left+"px",gr.style.right="",gr.style.bottom=""):(gr.style.right=window.innerWidth-yr.left+"px",gr.style.left=""):(gr.style.left=yr.right+1+"px",gr.style.right="")},cr.prototype.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var Er=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==Er&&this.editor.focus(),this.tooltipNode=null,Er.parentNode&&Er.parentNode.removeChild(Er)}},cr.prototype.onTooltipClick=function(Er){for(var pr=Er.target;pr&&pr!=this.tooltipNode;){if(pr.nodeName=="A"&&pr.href){pr.rel="noreferrer",pr.target="_blank";break}pr=pr.parentNode}},cr.prototype.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var Er=this.popup.container;Er&&Er.parentNode&&Er.parentNode.removeChild(Er)}this.editor&&this.editor.completer==this&&(this.editor.off("destroy",Xt),this.editor.completer=null),this.inlineRenderer=this.popup=this.editor=null},cr}();Qt.prototype.commands={Up:function(cr){cr.completer.goTo("up")},Down:function(cr){cr.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(cr){cr.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(cr){cr.completer.goTo("end")},Esc:function(cr){cr.completer.detach()},Return:function(cr){return cr.completer.insertMatch()},"Shift-Return":function(cr){cr.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(cr){var Er=cr.completer.insertMatch();if(!Er&&!cr.tabstopManager)cr.completer.goTo("down");else return Er},Backspace:function(cr){cr.execCommand("backspace");var Er=kt.getCompletionPrefix(cr);!Er&&cr.completer&&cr.completer.detach()},PageUp:function(cr){cr.completer.popup.gotoPageUp()},PageDown:function(cr){cr.completer.popup.gotoPageDown()}},Qt.for=function(cr){return cr.completer instanceof Qt||(cr.completer&&(cr.completer.destroy(),cr.completer=null),zt.get("sharedPopups")?(Qt.$sharedInstance||(Qt.$sharedInstance=new Qt),cr.completer=Qt.$sharedInstance):(cr.completer=new Qt,cr.once("destroy",Xt))),cr.completer},Qt.startCommand={name:"startAutocomplete",exec:function(cr,Er){var pr=Qt.for(cr);pr.autoInsert=!1,pr.autoSelect=!0,pr.autoShown=!1,pr.showPopup(cr,Er),pr.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var Zt=function(){function cr(Er){this.initialPosition=Er,this.active=!0}return cr.prototype.insertByIndex=function(Er,pr,gr){return!this.completions||!this.completions.filtered?!1:this.insertMatch(Er,this.completions.filtered[pr],gr)},cr.prototype.insertMatch=function(Er,pr,gr){if(!pr)return!1;if(Er.startOperation({command:{name:"insertMatch"}}),pr.completer&&pr.completer.insertMatch)pr.completer.insertMatch(Er,pr);else{if(!this.completions)return!1;var vr=this.completions.filterText.length,yr=0;if(pr.range&&pr.range.start.row===pr.range.end.row&&(vr-=this.initialPosition.prefix.length,vr+=this.initialPosition.pos.column-pr.range.start.column,yr+=pr.range.end.column-this.initialPosition.pos.column),vr||yr){var xr;Er.selection.getAllRanges?xr=Er.selection.getAllRanges():xr=[Er.getSelectionRange()];for(var rr=0,Lt;Lt=xr[rr];rr++)Lt.start.column-=vr,Lt.end.column+=yr,Er.session.remove(Lt)}pr.snippet?jt.insertSnippet(Er,pr.snippet):this.$insertString(Er,pr),pr.completer&&pr.completer.onInsert&&typeof pr.completer.onInsert=="function"&&pr.completer.onInsert(Er,pr),pr.command&&pr.command==="startAutocomplete"&&Er.execCommand(pr.command)}return Er.endOperation(),!0},cr.prototype.$insertString=function(Er,pr){var gr=pr.value||pr;Er.execCommand("insertstring",gr)},cr.prototype.gatherCompletions=function(Er,pr){var gr=Er.getSession(),vr=Er.getCursorPosition(),yr=kt.getCompletionPrefix(Er),xr=[];this.completers=Er.completers;var rr=Er.completers.length;return Er.completers.forEach(function(Lt,Ht){Lt.getCompletions(Er,gr,vr,yr,function(Wt,Gt){Lt.hideInlinePreview&&(Gt=Gt.map(function(Yt){return Object.assign(Yt,{hideInlinePreview:Lt.hideInlinePreview})})),!Wt&&Gt&&(xr=xr.concat(Gt)),pr(null,{prefix:kt.getCompletionPrefix(Er),matches:xr,finished:--rr===0})})}),!0},cr.prototype.provideCompletions=function(Er,pr,gr){var vr=(function(Lt){var Ht=Lt.prefix,Wt=Lt.matches;this.completions=new dr(Wt),pr.exactMatch&&(this.completions.exactMatch=!0),pr.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(Ht),(Lt.finished||this.completions.filtered.length)&&gr(null,this.completions,Lt.finished)}).bind(this),yr=!0,xr=null;if(this.gatherCompletions(Er,(function(Lt,Ht){if(this.active){Lt&&(gr(Lt,[],!0),this.detach());var Wt=Ht.prefix;if(Wt.indexOf(Ht.prefix)===0){if(yr){xr=Ht;return}vr(Ht)}}}).bind(this)),yr=!1,xr){var rr=xr;xr=null,vr(rr)}},cr.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach(function(Er){typeof Er.cancel=="function"&&Er.cancel()})},cr}(),dr=function(){function cr(Er,pr){this.all=Er,this.filtered=Er,this.filterText=pr||"",this.exactMatch=!1,this.ignoreCaption=!1}return cr.prototype.setFilter=function(Er){if(Er.length>this.filterText&&Er.lastIndexOf(this.filterText,0)===0)var pr=this.filtered;else var pr=this.all;this.filterText=Er,pr=this.filterCompletions(pr,this.filterText),pr=pr.sort(function(vr,yr){return yr.exactMatch-vr.exactMatch||yr.$score-vr.$score||(vr.caption||vr.value).localeCompare(yr.caption||yr.value)});var gr=null;pr=pr.filter(function(vr){var yr=vr.snippet||vr.caption||vr.value;return yr===gr?!1:(gr=yr,!0)}),this.filtered=pr},cr.prototype.filterCompletions=function(Er,pr){var gr=[],vr=pr.toUpperCase(),yr=pr.toLowerCase();e:for(var xr=0,rr;rr=Er[xr];xr++){var Lt=!this.ignoreCaption&&rr.caption||rr.value||rr.snippet;if(Lt){var Ht=-1,Wt=0,Gt=0,Yt,er;if(this.exactMatch){if(pr!==Lt.substr(0,pr.length))continue e}else{var lr=Lt.toLowerCase().indexOf(yr);if(lr>-1)Gt=lr;else for(var Jt=0;Jt<pr.length;Jt++){var Ut=Lt.indexOf(yr[Jt],Ht+1),ir=Lt.indexOf(vr[Jt],Ht+1);if(Yt=Ut>=0&&(ir<0||Ut<ir)?Ut:ir,Yt<0)continue e;er=Yt-Ht-1,er>0&&(Ht===-1&&(Gt+=10),Gt+=er,Wt=Wt|1<<Jt),Ht=Yt}}rr.matchMask=Wt,rr.exactMatch=Gt?0:1,rr.$score=(rr.score||0)-Gt,gr.push(rr)}}return gr},cr}();Ct.Autocomplete=Qt,Ct.CompletionProvider=Zt,Ct.FilteredList=dr}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(yt,Ct,$t){var At=yt("../range").Range,Bt=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;function Dt(kt,Mt){var Nt=kt.getTextRange(At.fromPoints({row:0,column:0},Mt));return Nt.split(Bt).length-1}function Ft(kt,Mt){var Nt=Dt(kt,Mt),jt=kt.getValue().split(Bt),zt=Object.create(null),Vt=jt[Nt];return jt.forEach(function(Kt,Xt){if(!(!Kt||Kt===Vt)){var Qt=Math.abs(Nt-Xt),Zt=jt.length-Qt;zt[Kt]?zt[Kt]=Math.max(Zt,zt[Kt]):zt[Kt]=Zt}}),zt}Ct.getCompletions=function(kt,Mt,Nt,jt,zt){var Vt=Ft(Mt,Nt),Kt=Object.keys(Vt);zt(null,Kt.map(function(Xt){return{caption:Xt,value:Xt,score:Vt[Xt],meta:"local"}}))}}),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],function(yt,Ct,$t){var At=yt("../snippets").snippetManager,Bt=yt("../autocomplete").Autocomplete,Dt=yt("../config"),Ft=yt("../lib/lang"),kt=yt("../autocomplete/util"),Mt=yt("../autocomplete/text_completer"),Nt={getCompletions:function(vr,yr,xr,rr,Lt){if(yr.$mode.completer)return yr.$mode.completer.getCompletions(vr,yr,xr,rr,Lt);var Ht=vr.session.getState(xr.row),Wt=yr.$mode.getCompletions(Ht,yr,xr,rr);Wt=Wt.map(function(Gt){return Gt.completerId=Nt.id,Gt}),Lt(null,Wt)},id:"keywordCompleter"},jt=function(vr){var yr={};return vr.replace(/\${(\d+)(:(.*?))?}/g,function(xr,rr,Lt,Ht){return yr[rr]=Ht||""}).replace(/\$(\d+?)/g,function(xr,rr){return yr[rr]})},zt={getCompletions:function(vr,yr,xr,rr,Lt){var Ht=[],Wt=yr.getTokenAt(xr.row,xr.column);Wt&&Wt.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?Ht.push("html-tag"):Ht=At.getActiveScopes(vr);var Gt=At.snippetMap,Yt=[];Ht.forEach(function(er){for(var lr=Gt[er]||[],Jt=lr.length;Jt--;){var Ut=lr[Jt],ir=Ut.name||Ut.tabTrigger;ir&&Yt.push({caption:ir,snippet:Ut.content,meta:Ut.tabTrigger&&!Ut.name?Ut.tabTrigger+"⇥ ":"snippet",completerId:zt.id})}},this),Lt(null,Yt)},getDocTooltip:function(vr){vr.snippet&&!vr.docHTML&&(vr.docHTML=["<b>",Ft.escapeHTML(vr.caption),"</b>","<hr></hr>",Ft.escapeHTML(jt(vr.snippet))].join(""))},id:"snippetCompleter"},Vt=[zt,Mt,Nt];Ct.setCompleters=function(vr){Vt.length=0,vr&&Vt.push.apply(Vt,vr)},Ct.addCompleter=function(vr){Vt.push(vr)},Ct.textCompleter=Mt,Ct.keyWordCompleter=Nt,Ct.snippetCompleter=zt;var Kt={name:"expandSnippet",exec:function(vr){return At.expandWithTab(vr)},bindKey:"Tab"},Xt=function(vr,yr){Qt(yr.session.$mode)},Qt=function(vr){typeof vr=="string"&&(vr=Dt.$modes[vr]),vr&&(At.files||(At.files={}),Zt(vr.$id,vr.snippetFileId),vr.modes&&vr.modes.forEach(Qt))},Zt=function(vr,yr){!yr||!vr||At.files[vr]||(At.files[vr]={},Dt.loadModule(yr,function(xr){xr&&(At.files[vr]=xr,!xr.snippets&&xr.snippetText&&(xr.snippets=At.parseSnippetFile(xr.snippetText)),At.register(xr.snippets||[],xr.scope),xr.includeScopes&&(At.snippetMap[xr.scope].includeScopes=xr.includeScopes,xr.includeScopes.forEach(function(rr){Qt("ace/mode/"+rr)})))}))},dr=function(vr){var yr=vr.editor,xr=yr.completer&&yr.completer.activated;if(vr.command.name==="backspace")xr&&!kt.getCompletionPrefix(yr)&&yr.completer.detach();else if(vr.command.name==="insertstring"&&!xr){cr=vr;var rr=vr.editor.$liveAutocompletionDelay;rr?Er.delay(rr):pr(vr)}},cr,Er=Ft.delayedCall(function(){pr(cr)},0),pr=function(vr){var yr=vr.editor,xr=kt.getCompletionPrefix(yr),rr=vr.args,Lt=kt.triggerAutocomplete(yr,rr);if(xr&&xr.length>=yr.$liveAutocompletionThreshold||Lt){var Ht=Bt.for(yr);Ht.autoShown=!0,Ht.showPopup(yr)}},gr=yt("../editor").Editor;yt("../config").defineOptions(gr.prototype,"editor",{enableBasicAutocompletion:{set:function(vr){vr?(this.completers||(this.completers=Array.isArray(vr)?vr:Vt),this.commands.addCommand(Bt.startCommand)):this.commands.removeCommand(Bt.startCommand)},value:!1},enableLiveAutocompletion:{set:function(vr){vr?(this.completers||(this.completers=Array.isArray(vr)?vr:Vt),this.commands.on("afterExec",dr)):this.commands.off("afterExec",dr)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(vr){vr?(this.commands.addCommand(Kt),this.on("changeMode",Xt),Xt(null,this)):(this.commands.removeCommand(Kt),this.off("changeMode",Xt))},value:!1}})}),function(){ace.require(["ace/ext/language_tools"],function(yt){ht&&(ht.exports=yt)})}()})(extLanguage_tools);const container$3="_container_czq5g_1",copyButton="_copyButton_czq5g_8",styles$a={container:container$3,copyButton};let Store$2=class{constructor(){this.accessKey="",this.activeKey="hardhat",this.setActiveKey=Et=>{this.activeKey=Et},this.getAccessKey=async()=>{const{success:Et,data:yt}=await commonApi.getAccessKey();Et&&runInAction(()=>{this.accessKey=yt.access})},makeAutoObservable(this)}};const generateConfiguration=(ht,Et,yt)=>{switch(ht){case"hardhat":return`require("@nomicfoundation/hardhat-toolbox");

module.exports = {
  networks: {
    phalcon: {
      url: "${Et==null?void 0:Et.rpcUrl}",
      chainId: ${(Et==null?void 0:Et.antiReentryChainId)??(Et==null?void 0:Et.chainId)}
    }
  },
  etherscan: {
    apiKey: {
      phalcon: "${yt}"
    },
    customChains: [
      {
        network: "phalcon",
        chainId: ${(Et==null?void 0:Et.antiReentryChainId)??(Et==null?void 0:Et.chainId)},
        urls: {
          apiURL: "${PHALCON_API_DOMAIN}/api/${Et==null?void 0:Et.rpc}",
          browserURL:"${PHALCON_SCAN_DOMAIN}/${Et==null?void 0:Et.id}"
        }
      }
    ]
  }
};`;case"truffle":return`const HDWalletProvider = require('@truffle/hdwallet-provider');
const mnemonicPhrase = "test test test test test test test test test test test junk";

module.exports = {
  networks: {
    phalconRPC: {
      provider: () => new HDWalletProvider({ mnemonic: mnemonicPhrase, providerOrUrl: '${Et==null?void 0:Et.rpcUrl}' }),
      network_id: "*", // Match any network id
      gas: 5500000, // Gas limit
      confirmations: 0,
      timeoutBlocks: 200,
      skipDryRun: true,
      verify: {
        apiUrl: '${PHALCON_API_DOMAIN}/api/${Et==null?void 0:Et.rpc}',
        apiKey: '${yt}',
        explorerUrl: '${PHALCON_SCAN_DOMAIN}/${Et==null?void 0:Et.id}/address',
      },
    },
  }
};`;case"foundry":return`[rpc_endpoints]
phalcon = "${Et==null?void 0:Et.rpcUrl}"`}},ModalIntegratedConfig=({fork:ht,visible:Et,onClose:yt})=>{const{mode:Ct}=reactExports.useContext(ThemeContext),$t=useLocalObservable(()=>new Store$2),{accessKey:At,activeKey:Bt,setActiveKey:Dt,getAccessKey:Ft}=$t,kt=Nt=>jsxRuntimeExports.jsx(_default,{readOnly:!0,mode:"java",name:`editor-${Nt}`,width:"100%",height:"515px",theme:Ct==="dark"?"tomorrow_night":"dawn",fontSize:14,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,value:generateConfiguration(Nt,ht,At),wrapEnabled:!0,setOptions:{enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,enableSnippets:!1,showLineNumbers:!0,tabSize:2}}),Mt=[{label:"hardhat.config.js",key:"hardhat",children:kt("hardhat")},{label:"truffle-config.js",key:"truffle",children:kt("truffle")},{label:"foundry.toml",key:"foundry",children:kt("foundry")}];return reactExports.useEffect(()=>{Et&&Ft()},[Et]),jsxRuntimeExports.jsx(BscModal,{maskClosable:!0,width:900,title:jsxRuntimeExports.jsxs("div",{className:cls(!isMobile$1()&&"flex items-center"),children:[jsxRuntimeExports.jsx("span",{children:"Integration with Hardhat/ Foundry/ Truffle"}),jsxRuntimeExports.jsx(Link,{to:BLOCKSEC_EXTERNAL_LINKS.FORK.DEVELOPMENT_FRAMEWORKS,target:"_blank",children:jsxRuntimeExports.jsxs(Button$1,{className:"flex items-center",type:"primary",size:"small",style:{marginLeft:isMobile$1()?0:30},children:[jsxRuntimeExports.jsx(Iconfont,{type:"icon-gitbook",mr:6}),"Docs"]})})]}),footer:null,onCancel:yt,open:Et,children:jsxRuntimeExports.jsxs("div",{className:styles$a.container,children:[jsxRuntimeExports.jsx(Tabs,{activeKey:Bt,type:"card",items:Mt,onChange:Nt=>Dt(Nt)}),jsxRuntimeExports.jsx(CopyButton,{className:styles$a.copyButton,text:generateConfiguration(Bt,ht,At)})]})})},ModalIntegratedConfig$1=observer(ModalIntegratedConfig),Redirect=({to:ht})=>{const Et=useNavigate();return reactExports.useEffect(()=>{Et(ht,{replace:!0})}),null},drawer="_drawer_1slwo_1",description="_description_1slwo_5",form="_form_1slwo_10",styles$9={drawer,description,form},DrawerRequestDemo=({visible:ht,onClose:Et,onSuccess:yt,initialValues:Ct})=>{const[$t]=Form.useForm(),[At,Bt]=reactExports.useState(!1),Dt=reactExports.useRef(null),Ft=debounce$3(async()=>{$t.validateFields().then(async kt=>{var zt;const Mt=await((zt=Dt.current)==null?void 0:zt.executeAsync());if(!Mt)return;Bt(!0);const{success:Nt,msg:jt}=await commonApi.requestDemo({...kt,isDemo:!0,checkCode:Mt});Bt(!1),Nt?(Et==null||Et(),yt==null||yt()):B.error(jt)})},300);return reactExports.useEffect(()=>{$t.setFieldsValue(Ct)},[ht]),jsxRuntimeExports.jsx(Drawer,{open:ht,onClose:Et,className:styles$9.drawer,title:"Request a Demo",destroyOnClose:!0,styles:{footer:{display:"flex",justifyContent:"center"},wrapper:{width:580,maxWidth:"100%"}},footer:jsxRuntimeExports.jsx(Button$1,{type:"primary",disabled:At,onClick:Ft,children:"Submit"}),children:jsxRuntimeExports.jsxs(Form,{className:styles$9.form,form:$t,layout:"vertical",labelAlign:"left",disabled:At,children:[jsxRuntimeExports.jsxs("div",{className:"space-y-12",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h2",{className:"text-base font-semibold leading-7",children:"1. Tell us a bit about yourself and your organization"}),jsxRuntimeExports.jsxs("div",{className:"mt-5 grid grid-cols-1 gap-x-6 gap-y-3 sm:grid-cols-6",children:[jsxRuntimeExports.jsx(Form.Item,{className:"sm:col-span-3",label:"First name",name:"firstName",required:!0,rules:[{required:!0,message:"Please enter your first name"}],children:jsxRuntimeExports.jsx(Input,{})}),jsxRuntimeExports.jsx("div",{className:"sm:col-span-3",children:jsxRuntimeExports.jsx(Form.Item,{name:"lastName",label:"Last name",required:!0,rules:[{required:!0,message:"Please enter your last name"}],children:jsxRuntimeExports.jsx(Input,{})})}),jsxRuntimeExports.jsx("div",{className:"sm:col-span-4",children:jsxRuntimeExports.jsx(Form.Item,{label:"Project/Company name",name:"company",required:!0,rules:[{required:!0,message:"Please enter your project/company name"}],children:jsxRuntimeExports.jsx(Input,{})})}),jsxRuntimeExports.jsx("div",{className:"sm:col-span-6",children:jsxRuntimeExports.jsx(Form.Item,{label:"Project/Company website or twitter handle",name:"companyDesc",children:jsxRuntimeExports.jsx(Input,{})})})]})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("h2",{className:"text-base font-semibold leading-7",children:[jsxRuntimeExports.jsx("span",{className:"mr-1 select-none align-text-top text-xs font-normal text-danger",children:"*"}),"2. What security concerns are you looking to address by using Phalcon?"]}),jsxRuntimeExports.jsx("div",{className:"grid grid-cols-1 gap-x-6 gap-y-3 sm:grid-cols-6",children:jsxRuntimeExports.jsx("div",{className:"sm:col-span-6",children:jsxRuntimeExports.jsx(Form.Item,{name:"remark",rules:[{required:!0,message:"Please enter your remark"}],children:jsxRuntimeExports.jsx(Input.TextArea,{})})})})]}),jsxRuntimeExports.jsxs("div",{className:"pb-4",children:[jsxRuntimeExports.jsx("h2",{className:"text-base font-semibold leading-7",children:"3. Let's Connect!"}),jsxRuntimeExports.jsxs("div",{className:"mt-5 grid grid-cols-1 gap-x-6 gap-y-3 sm:grid-cols-6",children:[jsxRuntimeExports.jsx("div",{className:"sm:col-span-4",children:jsxRuntimeExports.jsx(Form.Item,{label:"Telegram",name:"otherContact",rules:[{required:!0,message:"Please enter your telegram"}],children:jsxRuntimeExports.jsx(Input,{})})}),jsxRuntimeExports.jsx("div",{className:"sm:col-span-4",children:jsxRuntimeExports.jsx(Form.Item,{label:"Email",name:"email",required:!0,rules:[{required:!0,message:"Please enter your email"},{type:"email",message:"The input is not valid E-mail!"}],children:jsxRuntimeExports.jsx(Input,{})})}),jsxRuntimeExports.jsx("div",{className:"sm:col-span-6",children:jsxRuntimeExports.jsx(Form.Item,{label:"Do you have a scheduling link we can use to book a time?",name:"meetingUrl",children:jsxRuntimeExports.jsx(Input,{})})})]})]})]}),jsxRuntimeExports.jsx(ReCaptcha,{ref:Dt})]})})},DrawerRequestDemo$1=observer(DrawerRequestDemo);var module$1={};(function ht(Et,yt,Ct,$t){var At=!!(Et.Worker&&Et.Blob&&Et.Promise&&Et.OffscreenCanvas&&Et.OffscreenCanvasRenderingContext2D&&Et.HTMLCanvasElement&&Et.HTMLCanvasElement.prototype.transferControlToOffscreen&&Et.URL&&Et.URL.createObjectURL),Bt=typeof Path2D=="function"&&typeof DOMMatrix=="function",Dt=function(){if(!Et.OffscreenCanvas)return!1;var Ut=new OffscreenCanvas(1,1),ir=Ut.getContext("2d");ir.fillRect(0,0,1,1);var Cr=Ut.transferToImageBitmap();try{ir.createPattern(Cr,"no-repeat")}catch{return!1}return!0}();function Ft(){}function kt(Ut){var ir=yt.exports.Promise,Cr=ir!==void 0?ir:Et.Promise;return typeof Cr=="function"?new Cr(Ut):(Ut(Ft,Ft),null)}var Mt=function(Ut,ir){return{transform:function(Cr){if(Ut)return Cr;if(ir.has(Cr))return ir.get(Cr);var _r=new OffscreenCanvas(Cr.width,Cr.height),$r=_r.getContext("2d");return $r.drawImage(Cr,0,0),ir.set(Cr,_r),_r},clear:function(){ir.clear()}}}(Dt,new Map),Nt=function(){var Ut=Math.floor(16.666666666666668),ir,Cr,_r={},$r=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(ir=function(Tr){var Dr=Math.random();return _r[Dr]=requestAnimationFrame(function Ar(Fr){$r===Fr||$r+Ut-1<Fr?($r=Fr,delete _r[Dr],Tr()):_r[Dr]=requestAnimationFrame(Ar)}),Dr},Cr=function(Tr){_r[Tr]&&cancelAnimationFrame(_r[Tr])}):(ir=function(Tr){return setTimeout(Tr,Ut)},Cr=function(Tr){return clearTimeout(Tr)}),{frame:ir,cancel:Cr}}(),jt=function(){var Ut,ir,Cr={};function _r($r){function Tr(Dr,Ar){$r.postMessage({options:Dr||{},callback:Ar})}$r.init=function(Ar){var Fr=Ar.transferControlToOffscreen();$r.postMessage({canvas:Fr},[Fr])},$r.fire=function(Ar,Fr,Rr){if(ir)return Tr(Ar,null),ir;var wr=Math.random().toString(36).slice(2);return ir=kt(function(Sr){function Br(Or){Or.data.callback===wr&&(delete Cr[wr],$r.removeEventListener("message",Br),ir=null,Mt.clear(),Rr(),Sr())}$r.addEventListener("message",Br),Tr(Ar,wr),Cr[wr]=Br.bind(null,{data:{callback:wr}})}),ir},$r.reset=function(){$r.postMessage({reset:!0});for(var Ar in Cr)Cr[Ar](),delete Cr[Ar]}}return function(){if(Ut)return Ut;if(!Ct&&At){var $r=["var CONFETTI, SIZE = {}, module = {};","("+ht.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {","  if (msg.data.options) {","    CONFETTI(msg.data.options).then(function () {","      if (msg.data.callback) {","        postMessage({ callback: msg.data.callback });","      }","    });","  } else if (msg.data.reset) {","    CONFETTI && CONFETTI.reset();","  } else if (msg.data.resize) {","    SIZE.width = msg.data.resize.width;","    SIZE.height = msg.data.resize.height;","  } else if (msg.data.canvas) {","    SIZE.width = msg.data.canvas.width;","    SIZE.height = msg.data.canvas.height;","    CONFETTI = module.exports.create(msg.data.canvas);","  }","}"].join(`
`);try{Ut=new Worker(URL.createObjectURL(new Blob([$r])))}catch(Tr){return typeof console!==void 0&&typeof console.warn=="function"&&console.warn("🎊 Could not load worker",Tr),null}_r(Ut)}return Ut}}(),zt={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function Vt(Ut,ir){return ir?ir(Ut):Ut}function Kt(Ut){return Ut!=null}function Xt(Ut,ir,Cr){return Vt(Ut&&Kt(Ut[ir])?Ut[ir]:zt[ir],Cr)}function Qt(Ut){return Ut<0?0:Math.floor(Ut)}function Zt(Ut,ir){return Math.floor(Math.random()*(ir-Ut))+Ut}function dr(Ut){return parseInt(Ut,16)}function cr(Ut){return Ut.map(Er)}function Er(Ut){var ir=String(Ut).replace(/[^0-9a-f]/gi,"");return ir.length<6&&(ir=ir[0]+ir[0]+ir[1]+ir[1]+ir[2]+ir[2]),{r:dr(ir.substring(0,2)),g:dr(ir.substring(2,4)),b:dr(ir.substring(4,6))}}function pr(Ut){var ir=Xt(Ut,"origin",Object);return ir.x=Xt(ir,"x",Number),ir.y=Xt(ir,"y",Number),ir}function gr(Ut){Ut.width=document.documentElement.clientWidth,Ut.height=document.documentElement.clientHeight}function vr(Ut){var ir=Ut.getBoundingClientRect();Ut.width=ir.width,Ut.height=ir.height}function yr(Ut){var ir=document.createElement("canvas");return ir.style.position="fixed",ir.style.top="0px",ir.style.left="0px",ir.style.pointerEvents="none",ir.style.zIndex=Ut,ir}function xr(Ut,ir,Cr,_r,$r,Tr,Dr,Ar,Fr){Ut.save(),Ut.translate(ir,Cr),Ut.rotate(Tr),Ut.scale(_r,$r),Ut.arc(0,0,1,Dr,Ar,Fr),Ut.restore()}function rr(Ut){var ir=Ut.angle*(Math.PI/180),Cr=Ut.spread*(Math.PI/180);return{x:Ut.x,y:Ut.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:Ut.startVelocity*.5+Math.random()*Ut.startVelocity,angle2D:-ir+(.5*Cr-Math.random()*Cr),tiltAngle:(Math.random()*(.75-.25)+.25)*Math.PI,color:Ut.color,shape:Ut.shape,tick:0,totalTicks:Ut.ticks,decay:Ut.decay,drift:Ut.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:Ut.gravity*3,ovalScalar:.6,scalar:Ut.scalar,flat:Ut.flat}}function Lt(Ut,ir){ir.x+=Math.cos(ir.angle2D)*ir.velocity+ir.drift,ir.y+=Math.sin(ir.angle2D)*ir.velocity+ir.gravity,ir.velocity*=ir.decay,ir.flat?(ir.wobble=0,ir.wobbleX=ir.x+10*ir.scalar,ir.wobbleY=ir.y+10*ir.scalar,ir.tiltSin=0,ir.tiltCos=0,ir.random=1):(ir.wobble+=ir.wobbleSpeed,ir.wobbleX=ir.x+10*ir.scalar*Math.cos(ir.wobble),ir.wobbleY=ir.y+10*ir.scalar*Math.sin(ir.wobble),ir.tiltAngle+=.1,ir.tiltSin=Math.sin(ir.tiltAngle),ir.tiltCos=Math.cos(ir.tiltAngle),ir.random=Math.random()+2);var Cr=ir.tick++/ir.totalTicks,_r=ir.x+ir.random*ir.tiltCos,$r=ir.y+ir.random*ir.tiltSin,Tr=ir.wobbleX+ir.random*ir.tiltCos,Dr=ir.wobbleY+ir.random*ir.tiltSin;if(Ut.fillStyle="rgba("+ir.color.r+", "+ir.color.g+", "+ir.color.b+", "+(1-Cr)+")",Ut.beginPath(),Bt&&ir.shape.type==="path"&&typeof ir.shape.path=="string"&&Array.isArray(ir.shape.matrix))Ut.fill(er(ir.shape.path,ir.shape.matrix,ir.x,ir.y,Math.abs(Tr-_r)*.1,Math.abs(Dr-$r)*.1,Math.PI/10*ir.wobble));else if(ir.shape.type==="bitmap"){var Ar=Math.PI/10*ir.wobble,Fr=Math.abs(Tr-_r)*.1,Rr=Math.abs(Dr-$r)*.1,wr=ir.shape.bitmap.width*ir.scalar,Sr=ir.shape.bitmap.height*ir.scalar,Br=new DOMMatrix([Math.cos(Ar)*Fr,Math.sin(Ar)*Fr,-Math.sin(Ar)*Rr,Math.cos(Ar)*Rr,ir.x,ir.y]);Br.multiplySelf(new DOMMatrix(ir.shape.matrix));var Or=Ut.createPattern(Mt.transform(ir.shape.bitmap),"no-repeat");Or.setTransform(Br),Ut.globalAlpha=1-Cr,Ut.fillStyle=Or,Ut.fillRect(ir.x-wr/2,ir.y-Sr/2,wr,Sr),Ut.globalAlpha=1}else if(ir.shape==="circle")Ut.ellipse?Ut.ellipse(ir.x,ir.y,Math.abs(Tr-_r)*ir.ovalScalar,Math.abs(Dr-$r)*ir.ovalScalar,Math.PI/10*ir.wobble,0,2*Math.PI):xr(Ut,ir.x,ir.y,Math.abs(Tr-_r)*ir.ovalScalar,Math.abs(Dr-$r)*ir.ovalScalar,Math.PI/10*ir.wobble,0,2*Math.PI);else if(ir.shape==="star")for(var Pr=Math.PI/2*3,Nr=4*ir.scalar,Lr=8*ir.scalar,Wr=ir.x,Ur=ir.y,jr=5,Kr=Math.PI/jr;jr--;)Wr=ir.x+Math.cos(Pr)*Lr,Ur=ir.y+Math.sin(Pr)*Lr,Ut.lineTo(Wr,Ur),Pr+=Kr,Wr=ir.x+Math.cos(Pr)*Nr,Ur=ir.y+Math.sin(Pr)*Nr,Ut.lineTo(Wr,Ur),Pr+=Kr;else Ut.moveTo(Math.floor(ir.x),Math.floor(ir.y)),Ut.lineTo(Math.floor(ir.wobbleX),Math.floor($r)),Ut.lineTo(Math.floor(Tr),Math.floor(Dr)),Ut.lineTo(Math.floor(_r),Math.floor(ir.wobbleY));return Ut.closePath(),Ut.fill(),ir.tick<ir.totalTicks}function Ht(Ut,ir,Cr,_r,$r){var Tr=ir.slice(),Dr=Ut.getContext("2d"),Ar,Fr,Rr=kt(function(wr){function Sr(){Ar=Fr=null,Dr.clearRect(0,0,_r.width,_r.height),Mt.clear(),$r(),wr()}function Br(){Ct&&!(_r.width===$t.width&&_r.height===$t.height)&&(_r.width=Ut.width=$t.width,_r.height=Ut.height=$t.height),!_r.width&&!_r.height&&(Cr(Ut),_r.width=Ut.width,_r.height=Ut.height),Dr.clearRect(0,0,_r.width,_r.height),Tr=Tr.filter(function(Or){return Lt(Dr,Or)}),Tr.length?Ar=Nt.frame(Br):Sr()}Ar=Nt.frame(Br),Fr=Sr});return{addFettis:function(wr){return Tr=Tr.concat(wr),Rr},canvas:Ut,promise:Rr,reset:function(){Ar&&Nt.cancel(Ar),Fr&&Fr()}}}function Wt(Ut,ir){var Cr=!Ut,_r=!!Xt(ir||{},"resize"),$r=!1,Tr=Xt(ir,"disableForReducedMotion",Boolean),Dr=At&&!!Xt(ir||{},"useWorker"),Ar=Dr?jt():null,Fr=Cr?gr:vr,Rr=Ut&&Ar?!!Ut.__confetti_initialized:!1,wr=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion)").matches,Sr;function Br(Pr,Nr,Lr){for(var Wr=Xt(Pr,"particleCount",Qt),Ur=Xt(Pr,"angle",Number),jr=Xt(Pr,"spread",Number),Kr=Xt(Pr,"startVelocity",Number),qr=Xt(Pr,"decay",Number),Zr=Xt(Pr,"gravity",Number),dn=Xt(Pr,"drift",Number),Xr=Xt(Pr,"colors",cr),un=Xt(Pr,"ticks",Number),Yr=Xt(Pr,"shapes"),Gr=Xt(Pr,"scalar"),Jr=!!Xt(Pr,"flat"),wn=pr(Pr),kr=Wr,Mr=[],Ir=Ut.width*wn.x,Hr=Ut.height*wn.y;kr--;)Mr.push(rr({x:Ir,y:Hr,angle:Ur,spread:jr,startVelocity:Kr,color:Xr[kr%Xr.length],shape:Yr[Zt(0,Yr.length)],ticks:un,decay:qr,gravity:Zr,drift:dn,scalar:Gr,flat:Jr}));return Sr?Sr.addFettis(Mr):(Sr=Ht(Ut,Mr,Fr,Nr,Lr),Sr.promise)}function Or(Pr){var Nr=Tr||Xt(Pr,"disableForReducedMotion",Boolean),Lr=Xt(Pr,"zIndex",Number);if(Nr&&wr)return kt(function(Kr){Kr()});Cr&&Sr?Ut=Sr.canvas:Cr&&!Ut&&(Ut=yr(Lr),document.body.appendChild(Ut)),_r&&!Rr&&Fr(Ut);var Wr={width:Ut.width,height:Ut.height};Ar&&!Rr&&Ar.init(Ut),Rr=!0,Ar&&(Ut.__confetti_initialized=!0);function Ur(){if(Ar){var Kr={getBoundingClientRect:function(){if(!Cr)return Ut.getBoundingClientRect()}};Fr(Kr),Ar.postMessage({resize:{width:Kr.width,height:Kr.height}});return}Wr.width=Wr.height=null}function jr(){Sr=null,_r&&($r=!1,Et.removeEventListener("resize",Ur)),Cr&&Ut&&(document.body.contains(Ut)&&document.body.removeChild(Ut),Ut=null,Rr=!1)}return _r&&!$r&&($r=!0,Et.addEventListener("resize",Ur,!1)),Ar?Ar.fire(Pr,Wr,jr):Br(Pr,Wr,jr)}return Or.reset=function(){Ar&&Ar.reset(),Sr&&Sr.reset()},Or}var Gt;function Yt(){return Gt||(Gt=Wt(null,{useWorker:!0,resize:!0})),Gt}function er(Ut,ir,Cr,_r,$r,Tr,Dr){var Ar=new Path2D(Ut),Fr=new Path2D;Fr.addPath(Ar,new DOMMatrix(ir));var Rr=new Path2D;return Rr.addPath(Fr,new DOMMatrix([Math.cos(Dr)*$r,Math.sin(Dr)*$r,-Math.sin(Dr)*Tr,Math.cos(Dr)*Tr,Cr,_r])),Rr}function lr(Ut){if(!Bt)throw new Error("path confetti are not supported in this browser");var ir,Cr;typeof Ut=="string"?ir=Ut:(ir=Ut.path,Cr=Ut.matrix);var _r=new Path2D(ir),$r=document.createElement("canvas"),Tr=$r.getContext("2d");if(!Cr){for(var Dr=1e3,Ar=Dr,Fr=Dr,Rr=0,wr=0,Sr,Br,Or=0;Or<Dr;Or+=2)for(var Pr=0;Pr<Dr;Pr+=2)Tr.isPointInPath(_r,Or,Pr,"nonzero")&&(Ar=Math.min(Ar,Or),Fr=Math.min(Fr,Pr),Rr=Math.max(Rr,Or),wr=Math.max(wr,Pr));Sr=Rr-Ar,Br=wr-Fr;var Nr=10,Lr=Math.min(Nr/Sr,Nr/Br);Cr=[Lr,0,0,Lr,-Math.round(Sr/2+Ar)*Lr,-Math.round(Br/2+Fr)*Lr]}return{type:"path",path:ir,matrix:Cr}}function Jt(Ut){var ir,Cr=1,_r="#000000",$r='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';typeof Ut=="string"?ir=Ut:(ir=Ut.text,Cr="scalar"in Ut?Ut.scalar:Cr,$r="fontFamily"in Ut?Ut.fontFamily:$r,_r="color"in Ut?Ut.color:_r);var Tr=10*Cr,Dr=""+Tr+"px "+$r,Ar=new OffscreenCanvas(Tr,Tr),Fr=Ar.getContext("2d");Fr.font=Dr;var Rr=Fr.measureText(ir),wr=Math.ceil(Rr.actualBoundingBoxRight+Rr.actualBoundingBoxLeft),Sr=Math.ceil(Rr.actualBoundingBoxAscent+Rr.actualBoundingBoxDescent),Br=2,Or=Rr.actualBoundingBoxLeft+Br,Pr=Rr.actualBoundingBoxAscent+Br;wr+=Br+Br,Sr+=Br+Br,Ar=new OffscreenCanvas(wr,Sr),Fr=Ar.getContext("2d"),Fr.font=Dr,Fr.fillStyle=_r,Fr.fillText(ir,Or,Pr);var Nr=1/Cr;return{type:"bitmap",bitmap:Ar.transferToImageBitmap(),matrix:[Nr,0,0,Nr,-wr*Nr/2,-Sr*Nr/2]}}yt.exports=function(){return Yt().apply(this,arguments)},yt.exports.reset=function(){Yt().reset()},yt.exports.create=Wt,yt.exports.shapeFromPath=lr,yt.exports.shapeFromText=Jt})(function(){return typeof window<"u"?window:typeof self<"u"?self:this||{}}(),module$1,!1);const confetti=module$1.exports;module$1.exports.create;const Empty=({title:ht="No data",description:Et,children:yt,border:Ct,className:$t})=>jsxRuntimeExports.jsxs("div",{className:cls($t,"py-12 text-center",{"rounded-lg border border-gray-100 dark:border-gray-700":Ct}),children:[jsxRuntimeExports.jsx("svg",{className:"mx-auto size-12",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M411.562667 249.429333c-8.448-3.498667-18.261333-4.053333-55.765334-4.053333h-14.634666c-41.130667 0-68.736 0.042667-89.386667 2.816-19.669333 2.645333-28.074667 7.253333-33.664 12.8-5.546667 5.546667-10.112 13.994667-12.8 33.706667-2.730667 20.565333-2.816 48.213333-2.816 89.344v256c0 41.130667 0.085333 68.778667 2.858667 89.386666 2.645333 19.669333 7.210667 28.074667 12.8 33.664 5.546667 5.546667 13.952 10.112 33.621333 12.8 20.650667 2.730667 48.256 2.816 89.386667 2.816H512v64H338.944c-38.314667 0-70.314667 0-95.658667-3.413333-26.794667-3.584-50.986667-11.52-70.4-30.976-19.456-19.413333-27.392-43.605333-30.976-70.4-3.413333-25.344-3.413333-57.344-3.413333-95.658667V381.824c0-38.357333 0-70.314667 3.413333-95.701333 3.584-26.752 11.52-50.944 30.976-70.4 19.413333-19.413333 43.605333-27.306667 70.4-30.933334 25.344-3.413333 57.344-3.413333 95.658667-3.413333h22.016c29.824 0 53.418667-0.042667 75.093333 8.96 21.674667 8.96 38.4 25.642667 59.434667 46.762667l3.626667 3.626666 28.032 28.032c26.496 26.496 33.834667 33.066667 42.282666 36.565334 8.448 3.498667 18.261333 4.053333 55.765334 4.053333h59.52c38.357333 0 70.314667 0 95.701333 3.413333 26.752 3.584 50.944 11.52 70.4 30.933334 19.413333 19.456 27.306667 43.648 30.933333 70.4 3.413333 25.386667 3.413333 57.344 3.413334 95.701333v34.176h-64V512c0-41.088-0.085333-68.693333-2.816-89.344-2.688-19.669333-7.253333-28.117333-12.8-33.664-5.546667-5.546667-13.994667-10.154667-33.706667-12.8-20.565333-2.773333-48.213333-2.816-89.344-2.816h-62.421333c-29.866667 0-53.418667 0.042667-75.093334-8.96-21.76-8.96-38.4-25.642667-59.434666-46.762667l-3.669334-3.626666-28.032-28.032c-26.496-26.538667-33.834667-33.066667-42.282666-36.565334z m292.096 379.818667a74.666667 74.666667 0 1 0 0 149.333333 74.666667 74.666667 0 0 0 0-149.333333z m-138.666667 74.666667a138.666667 138.666667 0 1 1 256.853333 72.618666l75.434667 75.52a32 32 0 1 1-45.226667 45.226667l-75.434666-75.434667a138.666667 138.666667 0 0 1-211.626667-117.930666z",fill:"#9CA3AF"})}),jsxRuntimeExports.jsx("h3",{className:"mt-2 text-sm font-semibold text-default",children:ht}),Et&&jsxRuntimeExports.jsx("p",{className:"mt-1 text-sm text-gray-400",children:Et}),yt&&jsxRuntimeExports.jsx("p",{className:"mt-6",children:yt})]}),Empty$1=observer(Empty);function MagnifyingGlassIcon({title:ht,titleId:Et,...yt},Ct){return reactExports.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:Ct,"aria-labelledby":Et},yt),ht?reactExports.createElement("title",{id:Et},ht):null,reactExports.createElement("path",{fillRule:"evenodd",d:"M9 3.5a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11ZM2 9a7 7 0 1 1 12.452 4.391l3.328 3.329a.75.75 0 1 1-1.06 1.06l-3.329-3.328A7 7 0 0 1 2 9Z",clipRule:"evenodd"}))}const ForwardRef=reactExports.forwardRef(MagnifyingGlassIcon);function h$4(ht){const Et=d$7(ht);return function(){const yt=Et[0]^Et[0]<<11;return Et[0]=Et[1],Et[1]=Et[2],Et[2]=Et[3],Et[3]=Et[3]^Et[3]>>19^yt^yt>>8,(Et[3]>>>0)/(1<<31>>>0)}}function d$7(ht){const Et=new Uint32Array([0,0,0,0]);for(let yt=0;yt<ht.length;yt++)Et[yt%4]=(Et[yt%4]<<5)-Et[yt%4]+ht.charCodeAt(yt);return Et}function $$k(ht){const Et=u$8(ht),yt=u$8(ht),Ct=u$8(ht);return[yt,Et,Ct]}function u$8(ht){return new Uint16Array([ht()*360,40+ht()*60,(ht()+ht()+ht()+ht())*25])}const w$3='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8" shape-rendering="optimizeSpeed" ';function p$6(ht,Et){const yt=h$4(ht.toLowerCase()),[Ct,$t,At]=$$k(yt),Bt=["M0,0H8V8H0z","",""];for(let Dt=0,Ft,kt;Dt<32;Dt++){Ft=Dt%4,kt=Math.floor(Dt/4);const Mt=Math.floor(yt()*2.3);Mt>0&&(Bt[Mt]+=`M${Ft},${kt}h1v1h-1zM${7-Ft},${kt}h1v1h-1z`)}return`${w$3}width="${Et}" height="${Et}"><path fill="hsl(${Ct[0]} ${Ct[1]}% ${Ct[2]}%)" d="${Bt[0]}"/><path fill="hsl(${$t[0]} ${$t[1]}% ${$t[2]}%)" d="${Bt[1]}"/><path fill="hsl(${At[0]} ${At[1]}% ${At[2]}%)" d="${Bt[2]}"/></svg>`}function b$5(ht,Et=64){return"data:image/svg+xml;base64,"+btoa(v$3(ht,Et))}function v$3(ht,Et=64){return p$6(ht,Et)}const BlockieIdenticon=({address:ht,diameter:Et,alt:yt="",borderRadius:Ct,className:$t,style:At})=>{const Bt=isAddress(ht)?b$5(ht):getRandomAvatar({seed:ht});return jsxRuntimeExports.jsx("img",{src:Bt,height:Et,width:Et,style:{...At,borderRadius:Ct},className:$t,alt:yt})};var createUpdateEffect=function(ht){return function(Et,yt){var Ct=reactExports.useRef(!1);ht(function(){return function(){Ct.current=!1}},[]),ht(function(){if(!Ct.current)Ct.current=!0;else return Et()},yt)}},isFunction$1=function(ht){return typeof ht=="function"},isNumber$1=function(ht){return typeof ht=="number"};const useUpdateEffect=createUpdateEffect(reactExports.useEffect);function depsAreSame(ht,Et){if(ht===Et)return!0;for(var yt=0;yt<ht.length;yt++)if(!Object.is(ht[yt],Et[yt]))return!1;return!0}function useLatest(ht){var Et=reactExports.useRef(ht);return Et.current=ht,Et}var useUnmount=function(ht){var Et=useLatest(ht);reactExports.useEffect(function(){return function(){Et.current()}},[])},isBrowser=!!(typeof window<"u"&&window.document&&window.document.createElement);function useToggle(ht,Et){var yt=__read$h(reactExports.useState(ht),2),Ct=yt[0],$t=yt[1],At=reactExports.useMemo(function(){var Bt=!ht,Dt=function(){return $t(function(Nt){return Nt===ht?Bt:ht})},Ft=function(Nt){return $t(Nt)},kt=function(){return $t(ht)},Mt=function(){return $t(Bt)};return{toggle:Dt,set:Ft,setLeft:kt,setRight:Mt}},[]);return[Ct,At]}function getTargetElement(ht,Et){if(isBrowser){if(!ht)return Et;var yt;return isFunction$1(ht)?yt=ht():"current"in ht?yt=ht.current:yt=ht,yt}}var checkIfAllInShadow=function(ht){return ht.every(function(Et){var yt=getTargetElement(Et);return yt?yt.getRootNode()instanceof ShadowRoot:!1})},getShadow=function(ht){return ht?ht.getRootNode():document},getDocumentOrShadow=function(ht){if(!ht||!document.getRootNode)return document;var Et=Array.isArray(ht)?ht:[ht];return checkIfAllInShadow(Et)?getShadow(getTargetElement(Et[0])):document},createEffectWithTarget=function(ht){var Et=function(yt,Ct,$t){var At=reactExports.useRef(!1),Bt=reactExports.useRef([]),Dt=reactExports.useRef([]),Ft=reactExports.useRef();ht(function(){var kt,Mt=Array.isArray($t)?$t:[$t],Nt=Mt.map(function(jt){return getTargetElement(jt)});if(!At.current){At.current=!0,Bt.current=Nt,Dt.current=Ct,Ft.current=yt();return}(Nt.length!==Bt.current.length||!depsAreSame(Bt.current,Nt)||!depsAreSame(Dt.current,Ct))&&((kt=Ft.current)===null||kt===void 0||kt.call(Ft),Bt.current=Nt,Dt.current=Ct,Ft.current=yt())}),useUnmount(function(){var kt;(kt=Ft.current)===null||kt===void 0||kt.call(Ft),At.current=!1})};return Et},useEffectWithTarget=createEffectWithTarget(reactExports.useEffect);function useClickAway(ht,Et,yt){yt===void 0&&(yt="click");var Ct=useLatest(ht);useEffectWithTarget(function(){var $t=function(Dt){var Ft=Array.isArray(Et)?Et:[Et];Ft.some(function(kt){var Mt=getTargetElement(kt);return!Mt||Mt.contains(Dt.target)})||Ct.current(Dt)},At=getDocumentOrShadow(Et),Bt=Array.isArray(yt)?yt:[yt];return Bt.forEach(function(Dt){return At.addEventListener(Dt,$t)}),function(){Bt.forEach(function(Dt){return At.removeEventListener(Dt,$t)})}},Array.isArray(yt)?yt:[yt],Et)}var hasElementType=typeof Element<"u",hasMap=typeof Map=="function",hasSet=typeof Set=="function",hasArrayBuffer=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function equal(ht,Et){if(ht===Et)return!0;if(ht&&Et&&typeof ht=="object"&&typeof Et=="object"){if(ht.constructor!==Et.constructor)return!1;var yt,Ct,$t;if(Array.isArray(ht)){if(yt=ht.length,yt!=Et.length)return!1;for(Ct=yt;Ct--!==0;)if(!equal(ht[Ct],Et[Ct]))return!1;return!0}var At;if(hasMap&&ht instanceof Map&&Et instanceof Map){if(ht.size!==Et.size)return!1;for(At=ht.entries();!(Ct=At.next()).done;)if(!Et.has(Ct.value[0]))return!1;for(At=ht.entries();!(Ct=At.next()).done;)if(!equal(Ct.value[1],Et.get(Ct.value[0])))return!1;return!0}if(hasSet&&ht instanceof Set&&Et instanceof Set){if(ht.size!==Et.size)return!1;for(At=ht.entries();!(Ct=At.next()).done;)if(!Et.has(Ct.value[0]))return!1;return!0}if(hasArrayBuffer&&ArrayBuffer.isView(ht)&&ArrayBuffer.isView(Et)){if(yt=ht.length,yt!=Et.length)return!1;for(Ct=yt;Ct--!==0;)if(ht[Ct]!==Et[Ct])return!1;return!0}if(ht.constructor===RegExp)return ht.source===Et.source&&ht.flags===Et.flags;if(ht.valueOf!==Object.prototype.valueOf&&typeof ht.valueOf=="function"&&typeof Et.valueOf=="function")return ht.valueOf()===Et.valueOf();if(ht.toString!==Object.prototype.toString&&typeof ht.toString=="function"&&typeof Et.toString=="function")return ht.toString()===Et.toString();if($t=Object.keys(ht),yt=$t.length,yt!==Object.keys(Et).length)return!1;for(Ct=yt;Ct--!==0;)if(!Object.prototype.hasOwnProperty.call(Et,$t[Ct]))return!1;if(hasElementType&&ht instanceof Element)return!1;for(Ct=yt;Ct--!==0;)if(!(($t[Ct]==="_owner"||$t[Ct]==="__v"||$t[Ct]==="__o")&&ht.$$typeof)&&!equal(ht[$t[Ct]],Et[$t[Ct]]))return!1;return!0}return ht!==ht&&Et!==Et}var reactFastCompare=function ht(Et,yt){try{return equal(Et,yt)}catch(Ct){if((Ct.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw Ct}};const isEqual=getDefaultExportFromCjs$1(reactFastCompare),logos={MetaMask:METAMASK_LOGO,WalletConnect:WALLETCONNECT_LOGO},WalletConnect=({className:ht,style:Et,chainId:yt})=>{const{isConnected:Ct,address:$t,connector:At}=useAccount(),{switchNetworkAsync:Bt}=useSwitchNetwork(),{disconnect:Dt}=useDisconnect(),{chain:Ft}=useNetwork(),{data:kt}=useBalance({address:$t}),{openConnectModal:Mt}=useConnectModal(),{openChainModal:Nt}=useChainModal(),jt=()=>jsxRuntimeExports.jsxs("div",{className:"z-20 w-[320px] overflow-hidden rounded-md bg-white px-3 py-6 shadow-dropdown dark:bg-body",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center space-x-sm",children:[(At==null?void 0:At.name)&&jsxRuntimeExports.jsx("img",{className:"size-[36px]",src:logos[At.name],alt:""}),jsxRuntimeExports.jsxs("div",{className:"space-y-sm",children:[jsxRuntimeExports.jsx("div",{className:"text-sm leading-none",children:At==null?void 0:At.name}),$t&&Ft&&jsxRuntimeExports.jsxs("div",{className:"flex items-center space-x-md",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center bg-white/10 pr-2 text-xs",children:[jsxRuntimeExports.jsx(BlockieIdenticon,{address:$t,diameter:12,className:"mr-2"}),jsxRuntimeExports.jsx("span",{children:getSubStr($t,[8,6])}),jsxRuntimeExports.jsx(CopyButton,{text:$t,size:12})]}),jsxRuntimeExports.jsx(Link,{to:NetworkUtils.getScanUrlByChainId(Ft.id,$t),target:"_blank",children:jsxRuntimeExports.jsx("img",{className:"size-[12px] cursor-pointer",src:NetworkUtils.getChainIconByChainId(Ft.id),alt:""})})]})]})]}),jsxRuntimeExports.jsxs("ul",{className:"border-bt my-6 divide-y divide-divider border-y border-divider text-sm",children:[jsxRuntimeExports.jsxs("li",{className:"flex items-center justify-between py-4",children:[jsxRuntimeExports.jsx("span",{className:"text-secondary",children:"Balance"}),jsxRuntimeExports.jsxs("span",{className:"max-w-[170px] truncate",title:`${kt==null?void 0:kt.formatted} ${kt==null?void 0:kt.symbol}`,children:[kt==null?void 0:kt.formatted," ",kt==null?void 0:kt.symbol]})]}),jsxRuntimeExports.jsxs("li",{className:"flex items-center justify-between py-4",children:[jsxRuntimeExports.jsx("span",{className:"text-secondary",children:"Wallet"}),jsxRuntimeExports.jsx("span",{children:"MetaMask"})]}),jsxRuntimeExports.jsxs("li",{className:"flex items-center justify-between py-4",children:[jsxRuntimeExports.jsx("span",{className:"text-secondary",children:"Network"}),jsxRuntimeExports.jsx("span",{className:"space-x-sm",children:Ft==null?void 0:Ft.name})]})]}),jsxRuntimeExports.jsx("div",{className:"space-y-md",children:jsxRuntimeExports.jsxs(ConfigProvider$1,{theme:{components:{Button:{controlHeight:36}}},children:[jsxRuntimeExports.jsx(Button$1,{type:"primary",className:"flex w-full",children:jsxRuntimeExports.jsx("div",{className:"flex w-full items-center justify-center",onClick:Nt,children:"Switch networks"})}),jsxRuntimeExports.jsx(Button$1,{ghost:!0,className:"flex w-full",children:jsxRuntimeExports.jsxs("div",{className:"flex w-full items-center justify-center text-default",onClick:()=>Dt(),children:[jsxRuntimeExports.jsx("svg",{className:"mr-2 size-[16px] fill-gray-900 dark:fill-white",focusable:"false","aria-hidden":"true",viewBox:"0 0 24 24",children:jsxRuntimeExports.jsx("path",{d:"M13 3h-2v10h2V3zm4.83 2.17-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9.26 3 12c0 4.97 4.03 9 9 9s9-4.03 9-9c0-2.74-1.23-5.18-3.17-6.83z"})}),"Disconnect"]})})]})})]});return useUpdateEffect(()=>{Bt==null||Bt(yt).catch(zt=>{B.error(zt.message,{autoClose:!1})})},[yt]),jsxRuntimeExports.jsx("div",{className:cls(ht,"hidden w-fit text-xs font-medium sm:block"),style:Et,children:Ct?jsxRuntimeExports.jsx(Dropdown,{placement:"bottomRight",trigger:["click"],overlayClassName:"!shadow-none",dropdownRender:jt,children:jsxRuntimeExports.jsxs("div",{className:"flex w-max cursor-pointer items-center space-x-sm whitespace-nowrap rounded-md bg-white px-3 py-2 ring-1 ring-gray-200 dark:bg-gray-800 dark:ring-white/10",children:[(At==null?void 0:At.name)&&jsxRuntimeExports.jsx("img",{className:"size-5",src:logos[At.name],alt:""}),jsxRuntimeExports.jsxs("div",{className:"space-x-xs",children:[jsxRuntimeExports.jsxs("span",{children:[(Ft==null?void 0:Ft.id)===bsc.id?"BNB Chain":Ft==null?void 0:Ft.name,":"]}),jsxRuntimeExports.jsx("code",{children:getSubStr($t,[8,6])})]}),jsxRuntimeExports.jsx(Iconfont,{type:"icon-chevron-down",className:"!text-secondary"})]})}):jsxRuntimeExports.jsxs("div",{className:"flex h-9 cursor-pointer items-center space-x-sm rounded-md bg-primary/10 px-3 text-primary dark:bg-white/10",onClick:Mt,children:[jsxRuntimeExports.jsx(Iconfont,{type:"icon-wallet",color:"#2F8AF5",size:20}),jsxRuntimeExports.jsx("div",{children:"Connect wallet"})]})})};var _excluded=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function _extends$2(){return _extends$2=Object.assign?Object.assign.bind():function(ht){for(var Et=1;Et<arguments.length;Et++){var yt=arguments[Et];for(var Ct in yt)Object.prototype.hasOwnProperty.call(yt,Ct)&&(ht[Ct]=yt[Ct])}return ht},_extends$2.apply(this,arguments)}function _objectWithoutPropertiesLoose$1(ht,Et){if(ht==null)return{};var yt={},Ct=Object.keys(ht),$t,At;for(At=0;At<Ct.length;At++)$t=Ct[At],!(Et.indexOf($t)>=0)&&(yt[$t]=ht[$t]);return yt}function _assertThisInitialized(ht){if(ht===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ht}function _inheritsLoose$2(ht,Et){ht.prototype=Object.create(Et.prototype),ht.prototype.constructor=ht,_setPrototypeOf(ht,Et)}function _setPrototypeOf(ht,Et){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Ct,$t){return Ct.__proto__=$t,Ct},_setPrototypeOf(ht,Et)}var ReCAPTCHA=function(ht){_inheritsLoose$2(Et,ht);function Et(){var Ct;return Ct=ht.call(this)||this,Ct.handleExpired=Ct.handleExpired.bind(_assertThisInitialized(Ct)),Ct.handleErrored=Ct.handleErrored.bind(_assertThisInitialized(Ct)),Ct.handleChange=Ct.handleChange.bind(_assertThisInitialized(Ct)),Ct.handleRecaptchaRef=Ct.handleRecaptchaRef.bind(_assertThisInitialized(Ct)),Ct}var yt=Et.prototype;return yt.getCaptchaFunction=function($t){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[$t]:this.props.grecaptcha[$t]:null},yt.getValue=function(){var $t=this.getCaptchaFunction("getResponse");return $t&&this._widgetId!==void 0?$t(this._widgetId):null},yt.getWidgetId=function(){return this.props.grecaptcha&&this._widgetId!==void 0?this._widgetId:null},yt.execute=function(){var $t=this.getCaptchaFunction("execute");if($t&&this._widgetId!==void 0)return $t(this._widgetId);this._executeRequested=!0},yt.executeAsync=function(){var $t=this;return new Promise(function(At,Bt){$t.executionResolve=At,$t.executionReject=Bt,$t.execute()})},yt.reset=function(){var $t=this.getCaptchaFunction("reset");$t&&this._widgetId!==void 0&&$t(this._widgetId)},yt.forceReset=function(){var $t=this.getCaptchaFunction("reset");$t&&$t()},yt.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},yt.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},yt.handleChange=function($t){this.props.onChange&&this.props.onChange($t),this.executionResolve&&(this.executionResolve($t),delete this.executionReject,delete this.executionResolve)},yt.explicitRender=function(){var $t=this.getCaptchaFunction("render");if($t&&this._widgetId===void 0){var At=document.createElement("div");this._widgetId=$t(At,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(At)}this._executeRequested&&this.props.grecaptcha&&this._widgetId!==void 0&&(this._executeRequested=!1,this.execute())},yt.componentDidMount=function(){this.explicitRender()},yt.componentDidUpdate=function(){this.explicitRender()},yt.handleRecaptchaRef=function($t){this.captcha=$t},yt.render=function(){var $t=this.props;$t.sitekey,$t.onChange,$t.theme,$t.type,$t.tabindex,$t.onExpired,$t.onErrored,$t.size,$t.stoken,$t.grecaptcha,$t.badge,$t.hl,$t.isolated;var At=_objectWithoutPropertiesLoose$1($t,_excluded);return reactExports.createElement("div",_extends$2({},At,{ref:this.handleRecaptchaRef}))},Et}(reactExports.Component);ReCAPTCHA.displayName="ReCAPTCHA";ReCAPTCHA.propTypes={sitekey:PropTypes$3.string.isRequired,onChange:PropTypes$3.func,grecaptcha:PropTypes$3.object,theme:PropTypes$3.oneOf(["dark","light"]),type:PropTypes$3.oneOf(["image","audio"]),tabindex:PropTypes$3.number,onExpired:PropTypes$3.func,onErrored:PropTypes$3.func,size:PropTypes$3.oneOf(["compact","normal","invisible"]),stoken:PropTypes$3.string,hl:PropTypes$3.string,badge:PropTypes$3.oneOf(["bottomright","bottomleft","inline"]),isolated:PropTypes$3.bool};ReCAPTCHA.defaultProps={onChange:function ht(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var reactIs$1={exports:{}},reactIs_production_min={};/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var b$4=typeof Symbol=="function"&&Symbol.for,c$6=b$4?Symbol.for("react.element"):60103,d$6=b$4?Symbol.for("react.portal"):60106,e$2=b$4?Symbol.for("react.fragment"):60107,f$7=b$4?Symbol.for("react.strict_mode"):60108,g$1=b$4?Symbol.for("react.profiler"):60114,h$3=b$4?Symbol.for("react.provider"):60109,k$1=b$4?Symbol.for("react.context"):60110,l$6=b$4?Symbol.for("react.async_mode"):60111,m$3=b$4?Symbol.for("react.concurrent_mode"):60111,n$4=b$4?Symbol.for("react.forward_ref"):60112,p$5=b$4?Symbol.for("react.suspense"):60113,q$1=b$4?Symbol.for("react.suspense_list"):60120,r$4=b$4?Symbol.for("react.memo"):60115,t$8=b$4?Symbol.for("react.lazy"):60116,v$2=b$4?Symbol.for("react.block"):60121,w$2=b$4?Symbol.for("react.fundamental"):60117,x$2=b$4?Symbol.for("react.responder"):60118,y$4=b$4?Symbol.for("react.scope"):60119;function z$1(ht){if(typeof ht=="object"&&ht!==null){var Et=ht.$$typeof;switch(Et){case c$6:switch(ht=ht.type,ht){case l$6:case m$3:case e$2:case g$1:case f$7:case p$5:return ht;default:switch(ht=ht&&ht.$$typeof,ht){case k$1:case n$4:case t$8:case r$4:case h$3:return ht;default:return Et}}case d$6:return Et}}}function A(ht){return z$1(ht)===m$3}reactIs_production_min.AsyncMode=l$6;reactIs_production_min.ConcurrentMode=m$3;reactIs_production_min.ContextConsumer=k$1;reactIs_production_min.ContextProvider=h$3;reactIs_production_min.Element=c$6;reactIs_production_min.ForwardRef=n$4;reactIs_production_min.Fragment=e$2;reactIs_production_min.Lazy=t$8;reactIs_production_min.Memo=r$4;reactIs_production_min.Portal=d$6;reactIs_production_min.Profiler=g$1;reactIs_production_min.StrictMode=f$7;reactIs_production_min.Suspense=p$5;reactIs_production_min.isAsyncMode=function(ht){return A(ht)||z$1(ht)===l$6};reactIs_production_min.isConcurrentMode=A;reactIs_production_min.isContextConsumer=function(ht){return z$1(ht)===k$1};reactIs_production_min.isContextProvider=function(ht){return z$1(ht)===h$3};reactIs_production_min.isElement=function(ht){return typeof ht=="object"&&ht!==null&&ht.$$typeof===c$6};reactIs_production_min.isForwardRef=function(ht){return z$1(ht)===n$4};reactIs_production_min.isFragment=function(ht){return z$1(ht)===e$2};reactIs_production_min.isLazy=function(ht){return z$1(ht)===t$8};reactIs_production_min.isMemo=function(ht){return z$1(ht)===r$4};reactIs_production_min.isPortal=function(ht){return z$1(ht)===d$6};reactIs_production_min.isProfiler=function(ht){return z$1(ht)===g$1};reactIs_production_min.isStrictMode=function(ht){return z$1(ht)===f$7};reactIs_production_min.isSuspense=function(ht){return z$1(ht)===p$5};reactIs_production_min.isValidElementType=function(ht){return typeof ht=="string"||typeof ht=="function"||ht===e$2||ht===m$3||ht===g$1||ht===f$7||ht===p$5||ht===q$1||typeof ht=="object"&&ht!==null&&(ht.$$typeof===t$8||ht.$$typeof===r$4||ht.$$typeof===h$3||ht.$$typeof===k$1||ht.$$typeof===n$4||ht.$$typeof===w$2||ht.$$typeof===x$2||ht.$$typeof===y$4||ht.$$typeof===v$2)};reactIs_production_min.typeOf=z$1;reactIs$1.exports=reactIs_production_min;var reactIsExports=reactIs$1.exports,reactIs=reactIsExports,REACT_STATICS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},KNOWN_STATICS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},FORWARD_REF_STATICS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},MEMO_STATICS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},TYPE_STATICS={};TYPE_STATICS[reactIs.ForwardRef]=FORWARD_REF_STATICS;TYPE_STATICS[reactIs.Memo]=MEMO_STATICS;function getStatics(ht){return reactIs.isMemo(ht)?MEMO_STATICS:TYPE_STATICS[ht.$$typeof]||REACT_STATICS}var defineProperty$9=Object.defineProperty,getOwnPropertyNames=Object.getOwnPropertyNames,getOwnPropertySymbols$3=Object.getOwnPropertySymbols,getOwnPropertyDescriptor$5=Object.getOwnPropertyDescriptor,getPrototypeOf=Object.getPrototypeOf,objectPrototype=Object.prototype;function hoistNonReactStatics(ht,Et,yt){if(typeof Et!="string"){if(objectPrototype){var Ct=getPrototypeOf(Et);Ct&&Ct!==objectPrototype&&hoistNonReactStatics(ht,Ct,yt)}var $t=getOwnPropertyNames(Et);getOwnPropertySymbols$3&&($t=$t.concat(getOwnPropertySymbols$3(Et)));for(var At=getStatics(ht),Bt=getStatics(Et),Dt=0;Dt<$t.length;++Dt){var Ft=$t[Dt];if(!KNOWN_STATICS[Ft]&&!(yt&&yt[Ft])&&!(Bt&&Bt[Ft])&&!(At&&At[Ft])){var kt=getOwnPropertyDescriptor$5(Et,Ft);try{defineProperty$9(ht,Ft,kt)}catch{}}}}return ht}var hoistNonReactStatics_cjs=hoistNonReactStatics;const hoistNonReactStatics$1=getDefaultExportFromCjs$1(hoistNonReactStatics_cjs);function _extends$1(){return _extends$1=Object.assign||function(ht){for(var Et=1;Et<arguments.length;Et++){var yt=arguments[Et];for(var Ct in yt)Object.prototype.hasOwnProperty.call(yt,Ct)&&(ht[Ct]=yt[Ct])}return ht},_extends$1.apply(this,arguments)}function _objectWithoutPropertiesLoose(ht,Et){if(ht==null)return{};var yt={},Ct=Object.keys(ht),$t,At;for(At=0;At<Ct.length;At++)$t=Ct[At],!(Et.indexOf($t)>=0)&&(yt[$t]=ht[$t]);return yt}function _inheritsLoose$1(ht,Et){ht.prototype=Object.create(Et.prototype),ht.prototype.constructor=ht,ht.__proto__=Et}var SCRIPT_MAP={},idCount=0;function makeAsyncScript(ht,Et){return Et=Et||{},function(Ct){var $t=Ct.displayName||Ct.name||"Component",At=function(Dt){_inheritsLoose$1(Ft,Dt);function Ft(Mt,Nt){var jt;return jt=Dt.call(this,Mt,Nt)||this,jt.state={},jt.__scriptURL="",jt}var kt=Ft.prototype;return kt.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+idCount++),this.__scriptLoaderID},kt.setupScriptURL=function(){return this.__scriptURL=typeof ht=="function"?ht():ht,this.__scriptURL},kt.asyncScriptLoaderHandleLoad=function(Nt){var jt=this;this.setState(Nt,function(){return jt.props.asyncScriptOnLoad&&jt.props.asyncScriptOnLoad(jt.state)})},kt.asyncScriptLoaderTriggerOnScriptLoaded=function(){var Nt=SCRIPT_MAP[this.__scriptURL];if(!Nt||!Nt.loaded)throw new Error("Script is not loaded.");for(var jt in Nt.observers)Nt.observers[jt](Nt);delete window[Et.callbackName]},kt.componentDidMount=function(){var Nt=this,jt=this.setupScriptURL(),zt=this.asyncScriptLoaderGetScriptLoaderID(),Vt=Et,Kt=Vt.globalName,Xt=Vt.callbackName,Qt=Vt.scriptId;if(Kt&&typeof window[Kt]<"u"&&(SCRIPT_MAP[jt]={loaded:!0,observers:{}}),SCRIPT_MAP[jt]){var Zt=SCRIPT_MAP[jt];if(Zt&&(Zt.loaded||Zt.errored)){this.asyncScriptLoaderHandleLoad(Zt);return}Zt.observers[zt]=function(gr){return Nt.asyncScriptLoaderHandleLoad(gr)};return}var dr={};dr[zt]=function(gr){return Nt.asyncScriptLoaderHandleLoad(gr)},SCRIPT_MAP[jt]={loaded:!1,observers:dr};var cr=document.createElement("script");cr.src=jt,cr.async=!0;for(var Er in Et.attributes)cr.setAttribute(Er,Et.attributes[Er]);Qt&&(cr.id=Qt);var pr=function(vr){if(SCRIPT_MAP[jt]){var yr=SCRIPT_MAP[jt],xr=yr.observers;for(var rr in xr)vr(xr[rr])&&delete xr[rr]}};Xt&&typeof window<"u"&&(window[Xt]=function(){return Nt.asyncScriptLoaderTriggerOnScriptLoaded()}),cr.onload=function(){var gr=SCRIPT_MAP[jt];gr&&(gr.loaded=!0,pr(function(vr){return Xt?!1:(vr(gr),!0)}))},cr.onerror=function(){var gr=SCRIPT_MAP[jt];gr&&(gr.errored=!0,pr(function(vr){return vr(gr),!0}))},document.body.appendChild(cr)},kt.componentWillUnmount=function(){var Nt=this.__scriptURL;if(Et.removeOnUnmount===!0)for(var jt=document.getElementsByTagName("script"),zt=0;zt<jt.length;zt+=1)jt[zt].src.indexOf(Nt)>-1&&jt[zt].parentNode&&jt[zt].parentNode.removeChild(jt[zt]);var Vt=SCRIPT_MAP[Nt];Vt&&(delete Vt.observers[this.asyncScriptLoaderGetScriptLoaderID()],Et.removeOnUnmount===!0&&delete SCRIPT_MAP[Nt])},kt.render=function(){var Nt=Et.globalName,jt=this.props;jt.asyncScriptOnLoad;var zt=jt.forwardedRef,Vt=_objectWithoutPropertiesLoose(jt,["asyncScriptOnLoad","forwardedRef"]);return Nt&&typeof window<"u"&&(Vt[Nt]=typeof window[Nt]<"u"?window[Nt]:void 0),Vt.ref=zt,reactExports.createElement(Ct,Vt)},Ft}(reactExports.Component),Bt=reactExports.forwardRef(function(Dt,Ft){return reactExports.createElement(At,_extends$1({},Dt,{forwardedRef:Ft}))});return Bt.displayName="AsyncScriptLoader("+$t+")",Bt.propTypes={asyncScriptOnLoad:PropTypes$3.func},hoistNonReactStatics$1(Bt,Ct)}}var callbackName="onloadcallback",globalName="grecaptcha";function getOptions(){return typeof window<"u"&&window.recaptchaOptions||{}}function getURL(){var ht=getOptions(),Et=ht.useRecaptchaNet?"recaptcha.net":"www.google.com";return ht.enterprise?"https://"+Et+"/recaptcha/enterprise.js?onload="+callbackName+"&render=explicit":"https://"+Et+"/recaptcha/api.js?onload="+callbackName+"&render=explicit"}const RecaptchaWrapper=makeAsyncScript(getURL,{callbackName,globalName,attributes:getOptions().nonce?{nonce:getOptions().nonce}:{}})(ReCAPTCHA),ReCaptcha=reactExports.forwardRef(({onChange:ht},Et)=>{const{mode:yt}=reactExports.useContext(ThemeContext);return jsxRuntimeExports.jsx(RecaptchaWrapper,{theme:yt,ref:Et,size:"invisible",hl:"en",sitekey:SITE_KEY,onChange:ht})}),decodeCache={};function getDecodeCache(ht){let Et=decodeCache[ht];if(Et)return Et;Et=decodeCache[ht]=[];for(let yt=0;yt<128;yt++){const Ct=String.fromCharCode(yt);Et.push(Ct)}for(let yt=0;yt<ht.length;yt++){const Ct=ht.charCodeAt(yt);Et[Ct]="%"+("0"+Ct.toString(16).toUpperCase()).slice(-2)}return Et}function decode$1(ht,Et){typeof Et!="string"&&(Et=decode$1.defaultChars);const yt=getDecodeCache(Et);return ht.replace(/(%[a-f0-9]{2})+/gi,function(Ct){let $t="";for(let At=0,Bt=Ct.length;At<Bt;At+=3){const Dt=parseInt(Ct.slice(At+1,At+3),16);if(Dt<128){$t+=yt[Dt];continue}if((Dt&224)===192&&At+3<Bt){const Ft=parseInt(Ct.slice(At+4,At+6),16);if((Ft&192)===128){const kt=Dt<<6&1984|Ft&63;kt<128?$t+="��":$t+=String.fromCharCode(kt),At+=3;continue}}if((Dt&240)===224&&At+6<Bt){const Ft=parseInt(Ct.slice(At+4,At+6),16),kt=parseInt(Ct.slice(At+7,At+9),16);if((Ft&192)===128&&(kt&192)===128){const Mt=Dt<<12&61440|Ft<<6&4032|kt&63;Mt<2048||Mt>=55296&&Mt<=57343?$t+="���":$t+=String.fromCharCode(Mt),At+=6;continue}}if((Dt&248)===240&&At+9<Bt){const Ft=parseInt(Ct.slice(At+4,At+6),16),kt=parseInt(Ct.slice(At+7,At+9),16),Mt=parseInt(Ct.slice(At+10,At+12),16);if((Ft&192)===128&&(kt&192)===128&&(Mt&192)===128){let Nt=Dt<<18&1835008|Ft<<12&258048|kt<<6&4032|Mt&63;Nt<65536||Nt>1114111?$t+="����":(Nt-=65536,$t+=String.fromCharCode(55296+(Nt>>10),56320+(Nt&1023))),At+=9;continue}}$t+="�"}return $t})}decode$1.defaultChars=";/?:@&=+$,#";decode$1.componentChars="";const encodeCache={};function getEncodeCache(ht){let Et=encodeCache[ht];if(Et)return Et;Et=encodeCache[ht]=[];for(let yt=0;yt<128;yt++){const Ct=String.fromCharCode(yt);/^[0-9a-z]$/i.test(Ct)?Et.push(Ct):Et.push("%"+("0"+yt.toString(16).toUpperCase()).slice(-2))}for(let yt=0;yt<ht.length;yt++)Et[ht.charCodeAt(yt)]=ht[yt];return Et}function encode$1(ht,Et,yt){typeof Et!="string"&&(yt=Et,Et=encode$1.defaultChars),typeof yt>"u"&&(yt=!0);const Ct=getEncodeCache(Et);let $t="";for(let At=0,Bt=ht.length;At<Bt;At++){const Dt=ht.charCodeAt(At);if(yt&&Dt===37&&At+2<Bt&&/^[0-9a-f]{2}$/i.test(ht.slice(At+1,At+3))){$t+=ht.slice(At,At+3),At+=2;continue}if(Dt<128){$t+=Ct[Dt];continue}if(Dt>=55296&&Dt<=57343){if(Dt>=55296&&Dt<=56319&&At+1<Bt){const Ft=ht.charCodeAt(At+1);if(Ft>=56320&&Ft<=57343){$t+=encodeURIComponent(ht[At]+ht[At+1]),At++;continue}}$t+="%EF%BF%BD";continue}$t+=encodeURIComponent(ht[At])}return $t}encode$1.defaultChars=";/?:@&=+$,-_.!~*'()#";encode$1.componentChars="-_.!~*'()";function format$1(ht){let Et="";return Et+=ht.protocol||"",Et+=ht.slashes?"//":"",Et+=ht.auth?ht.auth+"@":"",ht.hostname&&ht.hostname.indexOf(":")!==-1?Et+="["+ht.hostname+"]":Et+=ht.hostname||"",Et+=ht.port?":"+ht.port:"",Et+=ht.pathname||"",Et+=ht.search||"",Et+=ht.hash||"",Et}function Url(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const protocolPattern=/^([a-z0-9.+-]+:)/i,portPattern=/:[0-9]*$/,simplePathPattern=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,delims=["<",">",'"',"`"," ","\r",`
`,"	"],unwise=["{","}","|","\\","^","`"].concat(delims),autoEscape=["'"].concat(unwise),nonHostChars=["%","/","?",";","#"].concat(autoEscape),hostEndingChars=["/","?","#"],hostnameMaxLen=255,hostnamePartPattern=/^[+a-z0-9A-Z_-]{0,63}$/,hostnamePartStart=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,hostlessProtocol={javascript:!0,"javascript:":!0},slashedProtocol={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function urlParse(ht,Et){if(ht&&ht instanceof Url)return ht;const yt=new Url;return yt.parse(ht,Et),yt}Url.prototype.parse=function(ht,Et){let yt,Ct,$t,At=ht;if(At=At.trim(),!Et&&ht.split("#").length===1){const kt=simplePathPattern.exec(At);if(kt)return this.pathname=kt[1],kt[2]&&(this.search=kt[2]),this}let Bt=protocolPattern.exec(At);if(Bt&&(Bt=Bt[0],yt=Bt.toLowerCase(),this.protocol=Bt,At=At.substr(Bt.length)),(Et||Bt||At.match(/^\/\/[^@\/]+@[^@\/]+/))&&($t=At.substr(0,2)==="//",$t&&!(Bt&&hostlessProtocol[Bt])&&(At=At.substr(2),this.slashes=!0)),!hostlessProtocol[Bt]&&($t||Bt&&!slashedProtocol[Bt])){let kt=-1;for(let Vt=0;Vt<hostEndingChars.length;Vt++)Ct=At.indexOf(hostEndingChars[Vt]),Ct!==-1&&(kt===-1||Ct<kt)&&(kt=Ct);let Mt,Nt;kt===-1?Nt=At.lastIndexOf("@"):Nt=At.lastIndexOf("@",kt),Nt!==-1&&(Mt=At.slice(0,Nt),At=At.slice(Nt+1),this.auth=Mt),kt=-1;for(let Vt=0;Vt<nonHostChars.length;Vt++)Ct=At.indexOf(nonHostChars[Vt]),Ct!==-1&&(kt===-1||Ct<kt)&&(kt=Ct);kt===-1&&(kt=At.length),At[kt-1]===":"&&kt--;const jt=At.slice(0,kt);At=At.slice(kt),this.parseHost(jt),this.hostname=this.hostname||"";const zt=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!zt){const Vt=this.hostname.split(/\./);for(let Kt=0,Xt=Vt.length;Kt<Xt;Kt++){const Qt=Vt[Kt];if(Qt&&!Qt.match(hostnamePartPattern)){let Zt="";for(let dr=0,cr=Qt.length;dr<cr;dr++)Qt.charCodeAt(dr)>127?Zt+="x":Zt+=Qt[dr];if(!Zt.match(hostnamePartPattern)){const dr=Vt.slice(0,Kt),cr=Vt.slice(Kt+1),Er=Qt.match(hostnamePartStart);Er&&(dr.push(Er[1]),cr.unshift(Er[2])),cr.length&&(At=cr.join(".")+At),this.hostname=dr.join(".");break}}}}this.hostname.length>hostnameMaxLen&&(this.hostname=""),zt&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const Dt=At.indexOf("#");Dt!==-1&&(this.hash=At.substr(Dt),At=At.slice(0,Dt));const Ft=At.indexOf("?");return Ft!==-1&&(this.search=At.substr(Ft),At=At.slice(0,Ft)),At&&(this.pathname=At),slashedProtocol[yt]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Url.prototype.parseHost=function(ht){let Et=portPattern.exec(ht);Et&&(Et=Et[0],Et!==":"&&(this.port=Et.substr(1)),ht=ht.substr(0,ht.length-Et.length)),ht&&(this.hostname=ht)};const mdurl=Object.freeze(Object.defineProperty({__proto__:null,decode:decode$1,encode:encode$1,format:format$1,parse:urlParse},Symbol.toStringTag,{value:"Module"})),Any=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Cc=/[\0-\x1F\x7F-\x9F]/,regex$1=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,P$1=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,regex=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,Z$1=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,ucmicro=Object.freeze(Object.defineProperty({__proto__:null,Any,Cc,Cf:regex$1,P:P$1,S:regex,Z:Z$1},Symbol.toStringTag,{value:"Module"})),htmlDecodeTree=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(ht=>ht.charCodeAt(0))),xmlDecodeTree=new Uint16Array("Ȁaglq	\x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(ht=>ht.charCodeAt(0)));var _a;const decodeMap=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),fromCodePoint$1=(_a=String.fromCodePoint)!==null&&_a!==void 0?_a:function(ht){let Et="";return ht>65535&&(ht-=65536,Et+=String.fromCharCode(ht>>>10&1023|55296),ht=56320|ht&1023),Et+=String.fromCharCode(ht),Et};function replaceCodePoint(ht){var Et;return ht>=55296&&ht<=57343||ht>1114111?65533:(Et=decodeMap.get(ht))!==null&&Et!==void 0?Et:ht}var CharCodes;(function(ht){ht[ht.NUM=35]="NUM",ht[ht.SEMI=59]="SEMI",ht[ht.EQUALS=61]="EQUALS",ht[ht.ZERO=48]="ZERO",ht[ht.NINE=57]="NINE",ht[ht.LOWER_A=97]="LOWER_A",ht[ht.LOWER_F=102]="LOWER_F",ht[ht.LOWER_X=120]="LOWER_X",ht[ht.LOWER_Z=122]="LOWER_Z",ht[ht.UPPER_A=65]="UPPER_A",ht[ht.UPPER_F=70]="UPPER_F",ht[ht.UPPER_Z=90]="UPPER_Z"})(CharCodes||(CharCodes={}));const TO_LOWER_BIT=32;var BinTrieFlags;(function(ht){ht[ht.VALUE_LENGTH=49152]="VALUE_LENGTH",ht[ht.BRANCH_LENGTH=16256]="BRANCH_LENGTH",ht[ht.JUMP_TABLE=127]="JUMP_TABLE"})(BinTrieFlags||(BinTrieFlags={}));function isNumber(ht){return ht>=CharCodes.ZERO&&ht<=CharCodes.NINE}function isHexadecimalCharacter(ht){return ht>=CharCodes.UPPER_A&&ht<=CharCodes.UPPER_F||ht>=CharCodes.LOWER_A&&ht<=CharCodes.LOWER_F}function isAsciiAlphaNumeric(ht){return ht>=CharCodes.UPPER_A&&ht<=CharCodes.UPPER_Z||ht>=CharCodes.LOWER_A&&ht<=CharCodes.LOWER_Z||isNumber(ht)}function isEntityInAttributeInvalidEnd(ht){return ht===CharCodes.EQUALS||isAsciiAlphaNumeric(ht)}var EntityDecoderState;(function(ht){ht[ht.EntityStart=0]="EntityStart",ht[ht.NumericStart=1]="NumericStart",ht[ht.NumericDecimal=2]="NumericDecimal",ht[ht.NumericHex=3]="NumericHex",ht[ht.NamedEntity=4]="NamedEntity"})(EntityDecoderState||(EntityDecoderState={}));var DecodingMode;(function(ht){ht[ht.Legacy=0]="Legacy",ht[ht.Strict=1]="Strict",ht[ht.Attribute=2]="Attribute"})(DecodingMode||(DecodingMode={}));class EntityDecoder{constructor(Et,yt,Ct){this.decodeTree=Et,this.emitCodePoint=yt,this.errors=Ct,this.state=EntityDecoderState.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=DecodingMode.Strict}startEntity(Et){this.decodeMode=Et,this.state=EntityDecoderState.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(Et,yt){switch(this.state){case EntityDecoderState.EntityStart:return Et.charCodeAt(yt)===CharCodes.NUM?(this.state=EntityDecoderState.NumericStart,this.consumed+=1,this.stateNumericStart(Et,yt+1)):(this.state=EntityDecoderState.NamedEntity,this.stateNamedEntity(Et,yt));case EntityDecoderState.NumericStart:return this.stateNumericStart(Et,yt);case EntityDecoderState.NumericDecimal:return this.stateNumericDecimal(Et,yt);case EntityDecoderState.NumericHex:return this.stateNumericHex(Et,yt);case EntityDecoderState.NamedEntity:return this.stateNamedEntity(Et,yt)}}stateNumericStart(Et,yt){return yt>=Et.length?-1:(Et.charCodeAt(yt)|TO_LOWER_BIT)===CharCodes.LOWER_X?(this.state=EntityDecoderState.NumericHex,this.consumed+=1,this.stateNumericHex(Et,yt+1)):(this.state=EntityDecoderState.NumericDecimal,this.stateNumericDecimal(Et,yt))}addToNumericResult(Et,yt,Ct,$t){if(yt!==Ct){const At=Ct-yt;this.result=this.result*Math.pow($t,At)+parseInt(Et.substr(yt,At),$t),this.consumed+=At}}stateNumericHex(Et,yt){const Ct=yt;for(;yt<Et.length;){const $t=Et.charCodeAt(yt);if(isNumber($t)||isHexadecimalCharacter($t))yt+=1;else return this.addToNumericResult(Et,Ct,yt,16),this.emitNumericEntity($t,3)}return this.addToNumericResult(Et,Ct,yt,16),-1}stateNumericDecimal(Et,yt){const Ct=yt;for(;yt<Et.length;){const $t=Et.charCodeAt(yt);if(isNumber($t))yt+=1;else return this.addToNumericResult(Et,Ct,yt,10),this.emitNumericEntity($t,2)}return this.addToNumericResult(Et,Ct,yt,10),-1}emitNumericEntity(Et,yt){var Ct;if(this.consumed<=yt)return(Ct=this.errors)===null||Ct===void 0||Ct.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(Et===CharCodes.SEMI)this.consumed+=1;else if(this.decodeMode===DecodingMode.Strict)return 0;return this.emitCodePoint(replaceCodePoint(this.result),this.consumed),this.errors&&(Et!==CharCodes.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(Et,yt){const{decodeTree:Ct}=this;let $t=Ct[this.treeIndex],At=($t&BinTrieFlags.VALUE_LENGTH)>>14;for(;yt<Et.length;yt++,this.excess++){const Bt=Et.charCodeAt(yt);if(this.treeIndex=determineBranch(Ct,$t,this.treeIndex+Math.max(1,At),Bt),this.treeIndex<0)return this.result===0||this.decodeMode===DecodingMode.Attribute&&(At===0||isEntityInAttributeInvalidEnd(Bt))?0:this.emitNotTerminatedNamedEntity();if($t=Ct[this.treeIndex],At=($t&BinTrieFlags.VALUE_LENGTH)>>14,At!==0){if(Bt===CharCodes.SEMI)return this.emitNamedEntityData(this.treeIndex,At,this.consumed+this.excess);this.decodeMode!==DecodingMode.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var Et;const{result:yt,decodeTree:Ct}=this,$t=(Ct[yt]&BinTrieFlags.VALUE_LENGTH)>>14;return this.emitNamedEntityData(yt,$t,this.consumed),(Et=this.errors)===null||Et===void 0||Et.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(Et,yt,Ct){const{decodeTree:$t}=this;return this.emitCodePoint(yt===1?$t[Et]&~BinTrieFlags.VALUE_LENGTH:$t[Et+1],Ct),yt===3&&this.emitCodePoint($t[Et+2],Ct),Ct}end(){var Et;switch(this.state){case EntityDecoderState.NamedEntity:return this.result!==0&&(this.decodeMode!==DecodingMode.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case EntityDecoderState.NumericDecimal:return this.emitNumericEntity(0,2);case EntityDecoderState.NumericHex:return this.emitNumericEntity(0,3);case EntityDecoderState.NumericStart:return(Et=this.errors)===null||Et===void 0||Et.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case EntityDecoderState.EntityStart:return 0}}}function getDecoder(ht){let Et="";const yt=new EntityDecoder(ht,Ct=>Et+=fromCodePoint$1(Ct));return function($t,At){let Bt=0,Dt=0;for(;(Dt=$t.indexOf("&",Dt))>=0;){Et+=$t.slice(Bt,Dt),yt.startEntity(At);const kt=yt.write($t,Dt+1);if(kt<0){Bt=Dt+yt.end();break}Bt=Dt+kt,Dt=kt===0?Bt+1:Bt}const Ft=Et+$t.slice(Bt);return Et="",Ft}}function determineBranch(ht,Et,yt,Ct){const $t=(Et&BinTrieFlags.BRANCH_LENGTH)>>7,At=Et&BinTrieFlags.JUMP_TABLE;if($t===0)return At!==0&&Ct===At?yt:-1;if(At){const Ft=Ct-At;return Ft<0||Ft>=$t?-1:ht[yt+Ft]-1}let Bt=yt,Dt=Bt+$t-1;for(;Bt<=Dt;){const Ft=Bt+Dt>>>1,kt=ht[Ft];if(kt<Ct)Bt=Ft+1;else if(kt>Ct)Dt=Ft-1;else return ht[Ft+$t]}return-1}const htmlDecoder=getDecoder(htmlDecodeTree);getDecoder(xmlDecodeTree);function decodeHTML(ht,Et=DecodingMode.Legacy){return htmlDecoder(ht,Et)}function _class$1(ht){return Object.prototype.toString.call(ht)}function isString$1(ht){return _class$1(ht)==="[object String]"}const _hasOwnProperty=Object.prototype.hasOwnProperty;function has$1(ht,Et){return _hasOwnProperty.call(ht,Et)}function assign$4(ht){return Array.prototype.slice.call(arguments,1).forEach(function(yt){if(yt){if(typeof yt!="object")throw new TypeError(yt+"must be object");Object.keys(yt).forEach(function(Ct){ht[Ct]=yt[Ct]})}}),ht}function arrayReplaceAt(ht,Et,yt){return[].concat(ht.slice(0,Et),yt,ht.slice(Et+1))}function isValidEntityCode(ht){return!(ht>=55296&&ht<=57343||ht>=64976&&ht<=65007||(ht&65535)===65535||(ht&65535)===65534||ht>=0&&ht<=8||ht===11||ht>=14&&ht<=31||ht>=127&&ht<=159||ht>1114111)}function fromCodePoint(ht){if(ht>65535){ht-=65536;const Et=55296+(ht>>10),yt=56320+(ht&1023);return String.fromCharCode(Et,yt)}return String.fromCharCode(ht)}const UNESCAPE_MD_RE=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,ENTITY_RE=/&([a-z#][a-z0-9]{1,31});/gi,UNESCAPE_ALL_RE=new RegExp(UNESCAPE_MD_RE.source+"|"+ENTITY_RE.source,"gi"),DIGITAL_ENTITY_TEST_RE=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function replaceEntityPattern(ht,Et){if(Et.charCodeAt(0)===35&&DIGITAL_ENTITY_TEST_RE.test(Et)){const Ct=Et[1].toLowerCase()==="x"?parseInt(Et.slice(2),16):parseInt(Et.slice(1),10);return isValidEntityCode(Ct)?fromCodePoint(Ct):ht}const yt=decodeHTML(ht);return yt!==ht?yt:ht}function unescapeMd(ht){return ht.indexOf("\\")<0?ht:ht.replace(UNESCAPE_MD_RE,"$1")}function unescapeAll(ht){return ht.indexOf("\\")<0&&ht.indexOf("&")<0?ht:ht.replace(UNESCAPE_ALL_RE,function(Et,yt,Ct){return yt||replaceEntityPattern(Et,Ct)})}const HTML_ESCAPE_TEST_RE=/[&<>"]/,HTML_ESCAPE_REPLACE_RE=/[&<>"]/g,HTML_REPLACEMENTS={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function replaceUnsafeChar(ht){return HTML_REPLACEMENTS[ht]}function escapeHtml(ht){return HTML_ESCAPE_TEST_RE.test(ht)?ht.replace(HTML_ESCAPE_REPLACE_RE,replaceUnsafeChar):ht}const REGEXP_ESCAPE_RE=/[.?*+^$[\]\\(){}|-]/g;function escapeRE$1(ht){return ht.replace(REGEXP_ESCAPE_RE,"\\$&")}function isSpace(ht){switch(ht){case 9:case 32:return!0}return!1}function isWhiteSpace(ht){if(ht>=8192&&ht<=8202)return!0;switch(ht){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function isPunctChar(ht){return P$1.test(ht)||regex.test(ht)}function isMdAsciiPunct(ht){switch(ht){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function normalizeReference(ht){return ht=ht.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(ht=ht.replace(/ẞ/g,"ß")),ht.toLowerCase().toUpperCase()}const lib$1={mdurl,ucmicro},utils=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt,assign:assign$4,escapeHtml,escapeRE:escapeRE$1,fromCodePoint,has:has$1,isMdAsciiPunct,isPunctChar,isSpace,isString:isString$1,isValidEntityCode,isWhiteSpace,lib:lib$1,normalizeReference,unescapeAll,unescapeMd},Symbol.toStringTag,{value:"Module"}));function parseLinkLabel(ht,Et,yt){let Ct,$t,At,Bt;const Dt=ht.posMax,Ft=ht.pos;for(ht.pos=Et+1,Ct=1;ht.pos<Dt;){if(At=ht.src.charCodeAt(ht.pos),At===93&&(Ct--,Ct===0)){$t=!0;break}if(Bt=ht.pos,ht.md.inline.skipToken(ht),At===91){if(Bt===ht.pos-1)Ct++;else if(yt)return ht.pos=Ft,-1}}let kt=-1;return $t&&(kt=ht.pos),ht.pos=Ft,kt}function parseLinkDestination(ht,Et,yt){let Ct,$t=Et;const At={ok:!1,pos:0,str:""};if(ht.charCodeAt($t)===60){for($t++;$t<yt;){if(Ct=ht.charCodeAt($t),Ct===10||Ct===60)return At;if(Ct===62)return At.pos=$t+1,At.str=unescapeAll(ht.slice(Et+1,$t)),At.ok=!0,At;if(Ct===92&&$t+1<yt){$t+=2;continue}$t++}return At}let Bt=0;for(;$t<yt&&(Ct=ht.charCodeAt($t),!(Ct===32||Ct<32||Ct===127));){if(Ct===92&&$t+1<yt){if(ht.charCodeAt($t+1)===32)break;$t+=2;continue}if(Ct===40&&(Bt++,Bt>32))return At;if(Ct===41){if(Bt===0)break;Bt--}$t++}return Et===$t||Bt!==0||(At.str=unescapeAll(ht.slice(Et,$t)),At.pos=$t,At.ok=!0),At}function parseLinkTitle(ht,Et,yt,Ct){let $t,At=Et;const Bt={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(Ct)Bt.str=Ct.str,Bt.marker=Ct.marker;else{if(At>=yt)return Bt;let Dt=ht.charCodeAt(At);if(Dt!==34&&Dt!==39&&Dt!==40)return Bt;Et++,At++,Dt===40&&(Dt=41),Bt.marker=Dt}for(;At<yt;){if($t=ht.charCodeAt(At),$t===Bt.marker)return Bt.pos=At+1,Bt.str+=unescapeAll(ht.slice(Et,At)),Bt.ok=!0,Bt;if($t===40&&Bt.marker===41)return Bt;$t===92&&At+1<yt&&At++,At++}return Bt.can_continue=!0,Bt.str+=unescapeAll(ht.slice(Et,At)),Bt}const helpers=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination,parseLinkLabel,parseLinkTitle},Symbol.toStringTag,{value:"Module"})),default_rules={};default_rules.code_inline=function(ht,Et,yt,Ct,$t){const At=ht[Et];return"<code"+$t.renderAttrs(At)+">"+escapeHtml(At.content)+"</code>"};default_rules.code_block=function(ht,Et,yt,Ct,$t){const At=ht[Et];return"<pre"+$t.renderAttrs(At)+"><code>"+escapeHtml(ht[Et].content)+`</code></pre>
`};default_rules.fence=function(ht,Et,yt,Ct,$t){const At=ht[Et],Bt=At.info?unescapeAll(At.info).trim():"";let Dt="",Ft="";if(Bt){const Mt=Bt.split(/(\s+)/g);Dt=Mt[0],Ft=Mt.slice(2).join("")}let kt;if(yt.highlight?kt=yt.highlight(At.content,Dt,Ft)||escapeHtml(At.content):kt=escapeHtml(At.content),kt.indexOf("<pre")===0)return kt+`
`;if(Bt){const Mt=At.attrIndex("class"),Nt=At.attrs?At.attrs.slice():[];Mt<0?Nt.push(["class",yt.langPrefix+Dt]):(Nt[Mt]=Nt[Mt].slice(),Nt[Mt][1]+=" "+yt.langPrefix+Dt);const jt={attrs:Nt};return`<pre><code${$t.renderAttrs(jt)}>${kt}</code></pre>
`}return`<pre><code${$t.renderAttrs(At)}>${kt}</code></pre>
`};default_rules.image=function(ht,Et,yt,Ct,$t){const At=ht[Et];return At.attrs[At.attrIndex("alt")][1]=$t.renderInlineAsText(At.children,yt,Ct),$t.renderToken(ht,Et,yt)};default_rules.hardbreak=function(ht,Et,yt){return yt.xhtmlOut?`<br />
`:`<br>
`};default_rules.softbreak=function(ht,Et,yt){return yt.breaks?yt.xhtmlOut?`<br />
`:`<br>
`:`
`};default_rules.text=function(ht,Et){return escapeHtml(ht[Et].content)};default_rules.html_block=function(ht,Et){return ht[Et].content};default_rules.html_inline=function(ht,Et){return ht[Et].content};function Renderer(){this.rules=assign$4({},default_rules)}Renderer.prototype.renderAttrs=function ht(Et){let yt,Ct,$t;if(!Et.attrs)return"";for($t="",yt=0,Ct=Et.attrs.length;yt<Ct;yt++)$t+=" "+escapeHtml(Et.attrs[yt][0])+'="'+escapeHtml(Et.attrs[yt][1])+'"';return $t};Renderer.prototype.renderToken=function ht(Et,yt,Ct){const $t=Et[yt];let At="";if($t.hidden)return"";$t.block&&$t.nesting!==-1&&yt&&Et[yt-1].hidden&&(At+=`
`),At+=($t.nesting===-1?"</":"<")+$t.tag,At+=this.renderAttrs($t),$t.nesting===0&&Ct.xhtmlOut&&(At+=" /");let Bt=!1;if($t.block&&(Bt=!0,$t.nesting===1&&yt+1<Et.length)){const Dt=Et[yt+1];(Dt.type==="inline"||Dt.hidden||Dt.nesting===-1&&Dt.tag===$t.tag)&&(Bt=!1)}return At+=Bt?`>
`:">",At};Renderer.prototype.renderInline=function(ht,Et,yt){let Ct="";const $t=this.rules;for(let At=0,Bt=ht.length;At<Bt;At++){const Dt=ht[At].type;typeof $t[Dt]<"u"?Ct+=$t[Dt](ht,At,Et,yt,this):Ct+=this.renderToken(ht,At,Et)}return Ct};Renderer.prototype.renderInlineAsText=function(ht,Et,yt){let Ct="";for(let $t=0,At=ht.length;$t<At;$t++)switch(ht[$t].type){case"text":Ct+=ht[$t].content;break;case"image":Ct+=this.renderInlineAsText(ht[$t].children,Et,yt);break;case"html_inline":case"html_block":Ct+=ht[$t].content;break;case"softbreak":case"hardbreak":Ct+=`
`;break}return Ct};Renderer.prototype.render=function(ht,Et,yt){let Ct="";const $t=this.rules;for(let At=0,Bt=ht.length;At<Bt;At++){const Dt=ht[At].type;Dt==="inline"?Ct+=this.renderInline(ht[At].children,Et,yt):typeof $t[Dt]<"u"?Ct+=$t[Dt](ht,At,Et,yt,this):Ct+=this.renderToken(ht,At,Et,yt)}return Ct};function Ruler(){this.__rules__=[],this.__cache__=null}Ruler.prototype.__find__=function(ht){for(let Et=0;Et<this.__rules__.length;Et++)if(this.__rules__[Et].name===ht)return Et;return-1};Ruler.prototype.__compile__=function(){const ht=this,Et=[""];ht.__rules__.forEach(function(yt){yt.enabled&&yt.alt.forEach(function(Ct){Et.indexOf(Ct)<0&&Et.push(Ct)})}),ht.__cache__={},Et.forEach(function(yt){ht.__cache__[yt]=[],ht.__rules__.forEach(function(Ct){Ct.enabled&&(yt&&Ct.alt.indexOf(yt)<0||ht.__cache__[yt].push(Ct.fn))})})};Ruler.prototype.at=function(ht,Et,yt){const Ct=this.__find__(ht),$t=yt||{};if(Ct===-1)throw new Error("Parser rule not found: "+ht);this.__rules__[Ct].fn=Et,this.__rules__[Ct].alt=$t.alt||[],this.__cache__=null};Ruler.prototype.before=function(ht,Et,yt,Ct){const $t=this.__find__(ht),At=Ct||{};if($t===-1)throw new Error("Parser rule not found: "+ht);this.__rules__.splice($t,0,{name:Et,enabled:!0,fn:yt,alt:At.alt||[]}),this.__cache__=null};Ruler.prototype.after=function(ht,Et,yt,Ct){const $t=this.__find__(ht),At=Ct||{};if($t===-1)throw new Error("Parser rule not found: "+ht);this.__rules__.splice($t+1,0,{name:Et,enabled:!0,fn:yt,alt:At.alt||[]}),this.__cache__=null};Ruler.prototype.push=function(ht,Et,yt){const Ct=yt||{};this.__rules__.push({name:ht,enabled:!0,fn:Et,alt:Ct.alt||[]}),this.__cache__=null};Ruler.prototype.enable=function(ht,Et){Array.isArray(ht)||(ht=[ht]);const yt=[];return ht.forEach(function(Ct){const $t=this.__find__(Ct);if($t<0){if(Et)return;throw new Error("Rules manager: invalid rule name "+Ct)}this.__rules__[$t].enabled=!0,yt.push(Ct)},this),this.__cache__=null,yt};Ruler.prototype.enableOnly=function(ht,Et){Array.isArray(ht)||(ht=[ht]),this.__rules__.forEach(function(yt){yt.enabled=!1}),this.enable(ht,Et)};Ruler.prototype.disable=function(ht,Et){Array.isArray(ht)||(ht=[ht]);const yt=[];return ht.forEach(function(Ct){const $t=this.__find__(Ct);if($t<0){if(Et)return;throw new Error("Rules manager: invalid rule name "+Ct)}this.__rules__[$t].enabled=!1,yt.push(Ct)},this),this.__cache__=null,yt};Ruler.prototype.getRules=function(ht){return this.__cache__===null&&this.__compile__(),this.__cache__[ht]||[]};function Token(ht,Et,yt){this.type=ht,this.tag=Et,this.attrs=null,this.map=null,this.nesting=yt,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Token.prototype.attrIndex=function ht(Et){if(!this.attrs)return-1;const yt=this.attrs;for(let Ct=0,$t=yt.length;Ct<$t;Ct++)if(yt[Ct][0]===Et)return Ct;return-1};Token.prototype.attrPush=function ht(Et){this.attrs?this.attrs.push(Et):this.attrs=[Et]};Token.prototype.attrSet=function ht(Et,yt){const Ct=this.attrIndex(Et),$t=[Et,yt];Ct<0?this.attrPush($t):this.attrs[Ct]=$t};Token.prototype.attrGet=function ht(Et){const yt=this.attrIndex(Et);let Ct=null;return yt>=0&&(Ct=this.attrs[yt][1]),Ct};Token.prototype.attrJoin=function ht(Et,yt){const Ct=this.attrIndex(Et);Ct<0?this.attrPush([Et,yt]):this.attrs[Ct][1]=this.attrs[Ct][1]+" "+yt};function StateCore(ht,Et,yt){this.src=ht,this.env=yt,this.tokens=[],this.inlineMode=!1,this.md=Et}StateCore.prototype.Token=Token;const NEWLINES_RE=/\r\n?|\n/g,NULL_RE=/\0/g;function normalize$1(ht){let Et;Et=ht.src.replace(NEWLINES_RE,`
`),Et=Et.replace(NULL_RE,"�"),ht.src=Et}function block(ht){let Et;ht.inlineMode?(Et=new ht.Token("inline","",0),Et.content=ht.src,Et.map=[0,1],Et.children=[],ht.tokens.push(Et)):ht.md.block.parse(ht.src,ht.md,ht.env,ht.tokens)}function inline(ht){const Et=ht.tokens;for(let yt=0,Ct=Et.length;yt<Ct;yt++){const $t=Et[yt];$t.type==="inline"&&ht.md.inline.parse($t.content,ht.md,ht.env,$t.children)}}function isLinkOpen$1(ht){return/^<a[>\s]/i.test(ht)}function isLinkClose$1(ht){return/^<\/a\s*>/i.test(ht)}function linkify$1(ht){const Et=ht.tokens;if(ht.md.options.linkify)for(let yt=0,Ct=Et.length;yt<Ct;yt++){if(Et[yt].type!=="inline"||!ht.md.linkify.pretest(Et[yt].content))continue;let $t=Et[yt].children,At=0;for(let Bt=$t.length-1;Bt>=0;Bt--){const Dt=$t[Bt];if(Dt.type==="link_close"){for(Bt--;$t[Bt].level!==Dt.level&&$t[Bt].type!=="link_open";)Bt--;continue}if(Dt.type==="html_inline"&&(isLinkOpen$1(Dt.content)&&At>0&&At--,isLinkClose$1(Dt.content)&&At++),!(At>0)&&Dt.type==="text"&&ht.md.linkify.test(Dt.content)){const Ft=Dt.content;let kt=ht.md.linkify.match(Ft);const Mt=[];let Nt=Dt.level,jt=0;kt.length>0&&kt[0].index===0&&Bt>0&&$t[Bt-1].type==="text_special"&&(kt=kt.slice(1));for(let zt=0;zt<kt.length;zt++){const Vt=kt[zt].url,Kt=ht.md.normalizeLink(Vt);if(!ht.md.validateLink(Kt))continue;let Xt=kt[zt].text;kt[zt].schema?kt[zt].schema==="mailto:"&&!/^mailto:/i.test(Xt)?Xt=ht.md.normalizeLinkText("mailto:"+Xt).replace(/^mailto:/,""):Xt=ht.md.normalizeLinkText(Xt):Xt=ht.md.normalizeLinkText("http://"+Xt).replace(/^http:\/\//,"");const Qt=kt[zt].index;if(Qt>jt){const Er=new ht.Token("text","",0);Er.content=Ft.slice(jt,Qt),Er.level=Nt,Mt.push(Er)}const Zt=new ht.Token("link_open","a",1);Zt.attrs=[["href",Kt]],Zt.level=Nt++,Zt.markup="linkify",Zt.info="auto",Mt.push(Zt);const dr=new ht.Token("text","",0);dr.content=Xt,dr.level=Nt,Mt.push(dr);const cr=new ht.Token("link_close","a",-1);cr.level=--Nt,cr.markup="linkify",cr.info="auto",Mt.push(cr),jt=kt[zt].lastIndex}if(jt<Ft.length){const zt=new ht.Token("text","",0);zt.content=Ft.slice(jt),zt.level=Nt,Mt.push(zt)}Et[yt].children=$t=arrayReplaceAt($t,Bt,Mt)}}}}const RARE_RE=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,SCOPED_ABBR_TEST_RE=/\((c|tm|r)\)/i,SCOPED_ABBR_RE=/\((c|tm|r)\)/ig,SCOPED_ABBR={c:"©",r:"®",tm:"™"};function replaceFn(ht,Et){return SCOPED_ABBR[Et.toLowerCase()]}function replace_scoped(ht){let Et=0;for(let yt=ht.length-1;yt>=0;yt--){const Ct=ht[yt];Ct.type==="text"&&!Et&&(Ct.content=Ct.content.replace(SCOPED_ABBR_RE,replaceFn)),Ct.type==="link_open"&&Ct.info==="auto"&&Et--,Ct.type==="link_close"&&Ct.info==="auto"&&Et++}}function replace_rare(ht){let Et=0;for(let yt=ht.length-1;yt>=0;yt--){const Ct=ht[yt];Ct.type==="text"&&!Et&&RARE_RE.test(Ct.content)&&(Ct.content=Ct.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),Ct.type==="link_open"&&Ct.info==="auto"&&Et--,Ct.type==="link_close"&&Ct.info==="auto"&&Et++}}function replace$2(ht){let Et;if(ht.md.options.typographer)for(Et=ht.tokens.length-1;Et>=0;Et--)ht.tokens[Et].type==="inline"&&(SCOPED_ABBR_TEST_RE.test(ht.tokens[Et].content)&&replace_scoped(ht.tokens[Et].children),RARE_RE.test(ht.tokens[Et].content)&&replace_rare(ht.tokens[Et].children))}const QUOTE_TEST_RE=/['"]/,QUOTE_RE=/['"]/g,APOSTROPHE="’";function replaceAt(ht,Et,yt){return ht.slice(0,Et)+yt+ht.slice(Et+1)}function process_inlines(ht,Et){let yt;const Ct=[];for(let $t=0;$t<ht.length;$t++){const At=ht[$t],Bt=ht[$t].level;for(yt=Ct.length-1;yt>=0&&!(Ct[yt].level<=Bt);yt--);if(Ct.length=yt+1,At.type!=="text")continue;let Dt=At.content,Ft=0,kt=Dt.length;e:for(;Ft<kt;){QUOTE_RE.lastIndex=Ft;const Mt=QUOTE_RE.exec(Dt);if(!Mt)break;let Nt=!0,jt=!0;Ft=Mt.index+1;const zt=Mt[0]==="'";let Vt=32;if(Mt.index-1>=0)Vt=Dt.charCodeAt(Mt.index-1);else for(yt=$t-1;yt>=0&&!(ht[yt].type==="softbreak"||ht[yt].type==="hardbreak");yt--)if(ht[yt].content){Vt=ht[yt].content.charCodeAt(ht[yt].content.length-1);break}let Kt=32;if(Ft<kt)Kt=Dt.charCodeAt(Ft);else for(yt=$t+1;yt<ht.length&&!(ht[yt].type==="softbreak"||ht[yt].type==="hardbreak");yt++)if(ht[yt].content){Kt=ht[yt].content.charCodeAt(0);break}const Xt=isMdAsciiPunct(Vt)||isPunctChar(String.fromCharCode(Vt)),Qt=isMdAsciiPunct(Kt)||isPunctChar(String.fromCharCode(Kt)),Zt=isWhiteSpace(Vt),dr=isWhiteSpace(Kt);if(dr?Nt=!1:Qt&&(Zt||Xt||(Nt=!1)),Zt?jt=!1:Xt&&(dr||Qt||(jt=!1)),Kt===34&&Mt[0]==='"'&&Vt>=48&&Vt<=57&&(jt=Nt=!1),Nt&&jt&&(Nt=Xt,jt=Qt),!Nt&&!jt){zt&&(At.content=replaceAt(At.content,Mt.index,APOSTROPHE));continue}if(jt)for(yt=Ct.length-1;yt>=0;yt--){let cr=Ct[yt];if(Ct[yt].level<Bt)break;if(cr.single===zt&&Ct[yt].level===Bt){cr=Ct[yt];let Er,pr;zt?(Er=Et.md.options.quotes[2],pr=Et.md.options.quotes[3]):(Er=Et.md.options.quotes[0],pr=Et.md.options.quotes[1]),At.content=replaceAt(At.content,Mt.index,pr),ht[cr.token].content=replaceAt(ht[cr.token].content,cr.pos,Er),Ft+=pr.length-1,cr.token===$t&&(Ft+=Er.length-1),Dt=At.content,kt=Dt.length,Ct.length=yt;continue e}}Nt?Ct.push({token:$t,pos:Mt.index,single:zt,level:Bt}):jt&&zt&&(At.content=replaceAt(At.content,Mt.index,APOSTROPHE))}}}function smartquotes(ht){if(ht.md.options.typographer)for(let Et=ht.tokens.length-1;Et>=0;Et--)ht.tokens[Et].type!=="inline"||!QUOTE_TEST_RE.test(ht.tokens[Et].content)||process_inlines(ht.tokens[Et].children,ht)}function text_join(ht){let Et,yt;const Ct=ht.tokens,$t=Ct.length;for(let At=0;At<$t;At++){if(Ct[At].type!=="inline")continue;const Bt=Ct[At].children,Dt=Bt.length;for(Et=0;Et<Dt;Et++)Bt[Et].type==="text_special"&&(Bt[Et].type="text");for(Et=yt=0;Et<Dt;Et++)Bt[Et].type==="text"&&Et+1<Dt&&Bt[Et+1].type==="text"?Bt[Et+1].content=Bt[Et].content+Bt[Et+1].content:(Et!==yt&&(Bt[yt]=Bt[Et]),yt++);Et!==yt&&(Bt.length=yt)}}const _rules$2=[["normalize",normalize$1],["block",block],["inline",inline],["linkify",linkify$1],["replacements",replace$2],["smartquotes",smartquotes],["text_join",text_join]];function Core(){this.ruler=new Ruler;for(let ht=0;ht<_rules$2.length;ht++)this.ruler.push(_rules$2[ht][0],_rules$2[ht][1])}Core.prototype.process=function(ht){const Et=this.ruler.getRules("");for(let yt=0,Ct=Et.length;yt<Ct;yt++)Et[yt](ht)};Core.prototype.State=StateCore;function StateBlock(ht,Et,yt,Ct){this.src=ht,this.md=Et,this.env=yt,this.tokens=Ct,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const $t=this.src;for(let At=0,Bt=0,Dt=0,Ft=0,kt=$t.length,Mt=!1;Bt<kt;Bt++){const Nt=$t.charCodeAt(Bt);if(!Mt)if(isSpace(Nt)){Dt++,Nt===9?Ft+=4-Ft%4:Ft++;continue}else Mt=!0;(Nt===10||Bt===kt-1)&&(Nt!==10&&Bt++,this.bMarks.push(At),this.eMarks.push(Bt),this.tShift.push(Dt),this.sCount.push(Ft),this.bsCount.push(0),Mt=!1,Dt=0,Ft=0,At=Bt+1)}this.bMarks.push($t.length),this.eMarks.push($t.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}StateBlock.prototype.push=function(ht,Et,yt){const Ct=new Token(ht,Et,yt);return Ct.block=!0,yt<0&&this.level--,Ct.level=this.level,yt>0&&this.level++,this.tokens.push(Ct),Ct};StateBlock.prototype.isEmpty=function ht(Et){return this.bMarks[Et]+this.tShift[Et]>=this.eMarks[Et]};StateBlock.prototype.skipEmptyLines=function ht(Et){for(let yt=this.lineMax;Et<yt&&!(this.bMarks[Et]+this.tShift[Et]<this.eMarks[Et]);Et++);return Et};StateBlock.prototype.skipSpaces=function ht(Et){for(let yt=this.src.length;Et<yt;Et++){const Ct=this.src.charCodeAt(Et);if(!isSpace(Ct))break}return Et};StateBlock.prototype.skipSpacesBack=function ht(Et,yt){if(Et<=yt)return Et;for(;Et>yt;)if(!isSpace(this.src.charCodeAt(--Et)))return Et+1;return Et};StateBlock.prototype.skipChars=function ht(Et,yt){for(let Ct=this.src.length;Et<Ct&&this.src.charCodeAt(Et)===yt;Et++);return Et};StateBlock.prototype.skipCharsBack=function ht(Et,yt,Ct){if(Et<=Ct)return Et;for(;Et>Ct;)if(yt!==this.src.charCodeAt(--Et))return Et+1;return Et};StateBlock.prototype.getLines=function ht(Et,yt,Ct,$t){if(Et>=yt)return"";const At=new Array(yt-Et);for(let Bt=0,Dt=Et;Dt<yt;Dt++,Bt++){let Ft=0;const kt=this.bMarks[Dt];let Mt=kt,Nt;for(Dt+1<yt||$t?Nt=this.eMarks[Dt]+1:Nt=this.eMarks[Dt];Mt<Nt&&Ft<Ct;){const jt=this.src.charCodeAt(Mt);if(isSpace(jt))jt===9?Ft+=4-(Ft+this.bsCount[Dt])%4:Ft++;else if(Mt-kt<this.tShift[Dt])Ft++;else break;Mt++}Ft>Ct?At[Bt]=new Array(Ft-Ct+1).join(" ")+this.src.slice(Mt,Nt):At[Bt]=this.src.slice(Mt,Nt)}return At.join("")};StateBlock.prototype.Token=Token;const MAX_AUTOCOMPLETED_CELLS=65536;function getLine(ht,Et){const yt=ht.bMarks[Et]+ht.tShift[Et],Ct=ht.eMarks[Et];return ht.src.slice(yt,Ct)}function escapedSplit(ht){const Et=[],yt=ht.length;let Ct=0,$t=ht.charCodeAt(Ct),At=!1,Bt=0,Dt="";for(;Ct<yt;)$t===124&&(At?(Dt+=ht.substring(Bt,Ct-1),Bt=Ct):(Et.push(Dt+ht.substring(Bt,Ct)),Dt="",Bt=Ct+1)),At=$t===92,Ct++,$t=ht.charCodeAt(Ct);return Et.push(Dt+ht.substring(Bt)),Et}function table$2(ht,Et,yt,Ct){if(Et+2>yt)return!1;let $t=Et+1;if(ht.sCount[$t]<ht.blkIndent||ht.sCount[$t]-ht.blkIndent>=4)return!1;let At=ht.bMarks[$t]+ht.tShift[$t];if(At>=ht.eMarks[$t])return!1;const Bt=ht.src.charCodeAt(At++);if(Bt!==124&&Bt!==45&&Bt!==58||At>=ht.eMarks[$t])return!1;const Dt=ht.src.charCodeAt(At++);if(Dt!==124&&Dt!==45&&Dt!==58&&!isSpace(Dt)||Bt===45&&isSpace(Dt))return!1;for(;At<ht.eMarks[$t];){const cr=ht.src.charCodeAt(At);if(cr!==124&&cr!==45&&cr!==58&&!isSpace(cr))return!1;At++}let Ft=getLine(ht,Et+1),kt=Ft.split("|");const Mt=[];for(let cr=0;cr<kt.length;cr++){const Er=kt[cr].trim();if(!Er){if(cr===0||cr===kt.length-1)continue;return!1}if(!/^:?-+:?$/.test(Er))return!1;Er.charCodeAt(Er.length-1)===58?Mt.push(Er.charCodeAt(0)===58?"center":"right"):Er.charCodeAt(0)===58?Mt.push("left"):Mt.push("")}if(Ft=getLine(ht,Et).trim(),Ft.indexOf("|")===-1||ht.sCount[Et]-ht.blkIndent>=4)return!1;kt=escapedSplit(Ft),kt.length&&kt[0]===""&&kt.shift(),kt.length&&kt[kt.length-1]===""&&kt.pop();const Nt=kt.length;if(Nt===0||Nt!==Mt.length)return!1;if(Ct)return!0;const jt=ht.parentType;ht.parentType="table";const zt=ht.md.block.ruler.getRules("blockquote"),Vt=ht.push("table_open","table",1),Kt=[Et,0];Vt.map=Kt;const Xt=ht.push("thead_open","thead",1);Xt.map=[Et,Et+1];const Qt=ht.push("tr_open","tr",1);Qt.map=[Et,Et+1];for(let cr=0;cr<kt.length;cr++){const Er=ht.push("th_open","th",1);Mt[cr]&&(Er.attrs=[["style","text-align:"+Mt[cr]]]);const pr=ht.push("inline","",0);pr.content=kt[cr].trim(),pr.children=[],ht.push("th_close","th",-1)}ht.push("tr_close","tr",-1),ht.push("thead_close","thead",-1);let Zt,dr=0;for($t=Et+2;$t<yt&&!(ht.sCount[$t]<ht.blkIndent);$t++){let cr=!1;for(let pr=0,gr=zt.length;pr<gr;pr++)if(zt[pr](ht,$t,yt,!0)){cr=!0;break}if(cr||(Ft=getLine(ht,$t).trim(),!Ft)||ht.sCount[$t]-ht.blkIndent>=4||(kt=escapedSplit(Ft),kt.length&&kt[0]===""&&kt.shift(),kt.length&&kt[kt.length-1]===""&&kt.pop(),dr+=Nt-kt.length,dr>MAX_AUTOCOMPLETED_CELLS))break;if($t===Et+2){const pr=ht.push("tbody_open","tbody",1);pr.map=Zt=[Et+2,0]}const Er=ht.push("tr_open","tr",1);Er.map=[$t,$t+1];for(let pr=0;pr<Nt;pr++){const gr=ht.push("td_open","td",1);Mt[pr]&&(gr.attrs=[["style","text-align:"+Mt[pr]]]);const vr=ht.push("inline","",0);vr.content=kt[pr]?kt[pr].trim():"",vr.children=[],ht.push("td_close","td",-1)}ht.push("tr_close","tr",-1)}return Zt&&(ht.push("tbody_close","tbody",-1),Zt[1]=$t),ht.push("table_close","table",-1),Kt[1]=$t,ht.parentType=jt,ht.line=$t,!0}function code(ht,Et,yt){if(ht.sCount[Et]-ht.blkIndent<4)return!1;let Ct=Et+1,$t=Ct;for(;Ct<yt;){if(ht.isEmpty(Ct)){Ct++;continue}if(ht.sCount[Ct]-ht.blkIndent>=4){Ct++,$t=Ct;continue}break}ht.line=$t;const At=ht.push("code_block","code",0);return At.content=ht.getLines(Et,$t,4+ht.blkIndent,!1)+`
`,At.map=[Et,ht.line],!0}function fence(ht,Et,yt,Ct){let $t=ht.bMarks[Et]+ht.tShift[Et],At=ht.eMarks[Et];if(ht.sCount[Et]-ht.blkIndent>=4||$t+3>At)return!1;const Bt=ht.src.charCodeAt($t);if(Bt!==126&&Bt!==96)return!1;let Dt=$t;$t=ht.skipChars($t,Bt);let Ft=$t-Dt;if(Ft<3)return!1;const kt=ht.src.slice(Dt,$t),Mt=ht.src.slice($t,At);if(Bt===96&&Mt.indexOf(String.fromCharCode(Bt))>=0)return!1;if(Ct)return!0;let Nt=Et,jt=!1;for(;Nt++,!(Nt>=yt||($t=Dt=ht.bMarks[Nt]+ht.tShift[Nt],At=ht.eMarks[Nt],$t<At&&ht.sCount[Nt]<ht.blkIndent));)if(ht.src.charCodeAt($t)===Bt&&!(ht.sCount[Nt]-ht.blkIndent>=4)&&($t=ht.skipChars($t,Bt),!($t-Dt<Ft)&&($t=ht.skipSpaces($t),!($t<At)))){jt=!0;break}Ft=ht.sCount[Et],ht.line=Nt+(jt?1:0);const zt=ht.push("fence","code",0);return zt.info=Mt,zt.content=ht.getLines(Et+1,Nt,Ft,!0),zt.markup=kt,zt.map=[Et,ht.line],!0}function blockquote(ht,Et,yt,Ct){let $t=ht.bMarks[Et]+ht.tShift[Et],At=ht.eMarks[Et];const Bt=ht.lineMax;if(ht.sCount[Et]-ht.blkIndent>=4||ht.src.charCodeAt($t)!==62)return!1;if(Ct)return!0;const Dt=[],Ft=[],kt=[],Mt=[],Nt=ht.md.block.ruler.getRules("blockquote"),jt=ht.parentType;ht.parentType="blockquote";let zt=!1,Vt;for(Vt=Et;Vt<yt;Vt++){const dr=ht.sCount[Vt]<ht.blkIndent;if($t=ht.bMarks[Vt]+ht.tShift[Vt],At=ht.eMarks[Vt],$t>=At)break;if(ht.src.charCodeAt($t++)===62&&!dr){let Er=ht.sCount[Vt]+1,pr,gr;ht.src.charCodeAt($t)===32?($t++,Er++,gr=!1,pr=!0):ht.src.charCodeAt($t)===9?(pr=!0,(ht.bsCount[Vt]+Er)%4===3?($t++,Er++,gr=!1):gr=!0):pr=!1;let vr=Er;for(Dt.push(ht.bMarks[Vt]),ht.bMarks[Vt]=$t;$t<At;){const yr=ht.src.charCodeAt($t);if(isSpace(yr))yr===9?vr+=4-(vr+ht.bsCount[Vt]+(gr?1:0))%4:vr++;else break;$t++}zt=$t>=At,Ft.push(ht.bsCount[Vt]),ht.bsCount[Vt]=ht.sCount[Vt]+1+(pr?1:0),kt.push(ht.sCount[Vt]),ht.sCount[Vt]=vr-Er,Mt.push(ht.tShift[Vt]),ht.tShift[Vt]=$t-ht.bMarks[Vt];continue}if(zt)break;let cr=!1;for(let Er=0,pr=Nt.length;Er<pr;Er++)if(Nt[Er](ht,Vt,yt,!0)){cr=!0;break}if(cr){ht.lineMax=Vt,ht.blkIndent!==0&&(Dt.push(ht.bMarks[Vt]),Ft.push(ht.bsCount[Vt]),Mt.push(ht.tShift[Vt]),kt.push(ht.sCount[Vt]),ht.sCount[Vt]-=ht.blkIndent);break}Dt.push(ht.bMarks[Vt]),Ft.push(ht.bsCount[Vt]),Mt.push(ht.tShift[Vt]),kt.push(ht.sCount[Vt]),ht.sCount[Vt]=-1}const Kt=ht.blkIndent;ht.blkIndent=0;const Xt=ht.push("blockquote_open","blockquote",1);Xt.markup=">";const Qt=[Et,0];Xt.map=Qt,ht.md.block.tokenize(ht,Et,Vt);const Zt=ht.push("blockquote_close","blockquote",-1);Zt.markup=">",ht.lineMax=Bt,ht.parentType=jt,Qt[1]=ht.line;for(let dr=0;dr<Mt.length;dr++)ht.bMarks[dr+Et]=Dt[dr],ht.tShift[dr+Et]=Mt[dr],ht.sCount[dr+Et]=kt[dr],ht.bsCount[dr+Et]=Ft[dr];return ht.blkIndent=Kt,!0}function hr(ht,Et,yt,Ct){const $t=ht.eMarks[Et];if(ht.sCount[Et]-ht.blkIndent>=4)return!1;let At=ht.bMarks[Et]+ht.tShift[Et];const Bt=ht.src.charCodeAt(At++);if(Bt!==42&&Bt!==45&&Bt!==95)return!1;let Dt=1;for(;At<$t;){const kt=ht.src.charCodeAt(At++);if(kt!==Bt&&!isSpace(kt))return!1;kt===Bt&&Dt++}if(Dt<3)return!1;if(Ct)return!0;ht.line=Et+1;const Ft=ht.push("hr","hr",0);return Ft.map=[Et,ht.line],Ft.markup=Array(Dt+1).join(String.fromCharCode(Bt)),!0}function skipBulletListMarker(ht,Et){const yt=ht.eMarks[Et];let Ct=ht.bMarks[Et]+ht.tShift[Et];const $t=ht.src.charCodeAt(Ct++);if($t!==42&&$t!==45&&$t!==43)return-1;if(Ct<yt){const At=ht.src.charCodeAt(Ct);if(!isSpace(At))return-1}return Ct}function skipOrderedListMarker(ht,Et){const yt=ht.bMarks[Et]+ht.tShift[Et],Ct=ht.eMarks[Et];let $t=yt;if($t+1>=Ct)return-1;let At=ht.src.charCodeAt($t++);if(At<48||At>57)return-1;for(;;){if($t>=Ct)return-1;if(At=ht.src.charCodeAt($t++),At>=48&&At<=57){if($t-yt>=10)return-1;continue}if(At===41||At===46)break;return-1}return $t<Ct&&(At=ht.src.charCodeAt($t),!isSpace(At))?-1:$t}function markTightParagraphs(ht,Et){const yt=ht.level+2;for(let Ct=Et+2,$t=ht.tokens.length-2;Ct<$t;Ct++)ht.tokens[Ct].level===yt&&ht.tokens[Ct].type==="paragraph_open"&&(ht.tokens[Ct+2].hidden=!0,ht.tokens[Ct].hidden=!0,Ct+=2)}function list(ht,Et,yt,Ct){let $t,At,Bt,Dt,Ft=Et,kt=!0;if(ht.sCount[Ft]-ht.blkIndent>=4||ht.listIndent>=0&&ht.sCount[Ft]-ht.listIndent>=4&&ht.sCount[Ft]<ht.blkIndent)return!1;let Mt=!1;Ct&&ht.parentType==="paragraph"&&ht.sCount[Ft]>=ht.blkIndent&&(Mt=!0);let Nt,jt,zt;if((zt=skipOrderedListMarker(ht,Ft))>=0){if(Nt=!0,Bt=ht.bMarks[Ft]+ht.tShift[Ft],jt=Number(ht.src.slice(Bt,zt-1)),Mt&&jt!==1)return!1}else if((zt=skipBulletListMarker(ht,Ft))>=0)Nt=!1;else return!1;if(Mt&&ht.skipSpaces(zt)>=ht.eMarks[Ft])return!1;if(Ct)return!0;const Vt=ht.src.charCodeAt(zt-1),Kt=ht.tokens.length;Nt?(Dt=ht.push("ordered_list_open","ol",1),jt!==1&&(Dt.attrs=[["start",jt]])):Dt=ht.push("bullet_list_open","ul",1);const Xt=[Ft,0];Dt.map=Xt,Dt.markup=String.fromCharCode(Vt);let Qt=!1;const Zt=ht.md.block.ruler.getRules("list"),dr=ht.parentType;for(ht.parentType="list";Ft<yt;){At=zt,$t=ht.eMarks[Ft];const cr=ht.sCount[Ft]+zt-(ht.bMarks[Ft]+ht.tShift[Ft]);let Er=cr;for(;At<$t;){const Gt=ht.src.charCodeAt(At);if(Gt===9)Er+=4-(Er+ht.bsCount[Ft])%4;else if(Gt===32)Er++;else break;At++}const pr=At;let gr;pr>=$t?gr=1:gr=Er-cr,gr>4&&(gr=1);const vr=cr+gr;Dt=ht.push("list_item_open","li",1),Dt.markup=String.fromCharCode(Vt);const yr=[Ft,0];Dt.map=yr,Nt&&(Dt.info=ht.src.slice(Bt,zt-1));const xr=ht.tight,rr=ht.tShift[Ft],Lt=ht.sCount[Ft],Ht=ht.listIndent;if(ht.listIndent=ht.blkIndent,ht.blkIndent=vr,ht.tight=!0,ht.tShift[Ft]=pr-ht.bMarks[Ft],ht.sCount[Ft]=Er,pr>=$t&&ht.isEmpty(Ft+1)?ht.line=Math.min(ht.line+2,yt):ht.md.block.tokenize(ht,Ft,yt,!0),(!ht.tight||Qt)&&(kt=!1),Qt=ht.line-Ft>1&&ht.isEmpty(ht.line-1),ht.blkIndent=ht.listIndent,ht.listIndent=Ht,ht.tShift[Ft]=rr,ht.sCount[Ft]=Lt,ht.tight=xr,Dt=ht.push("list_item_close","li",-1),Dt.markup=String.fromCharCode(Vt),Ft=ht.line,yr[1]=Ft,Ft>=yt||ht.sCount[Ft]<ht.blkIndent||ht.sCount[Ft]-ht.blkIndent>=4)break;let Wt=!1;for(let Gt=0,Yt=Zt.length;Gt<Yt;Gt++)if(Zt[Gt](ht,Ft,yt,!0)){Wt=!0;break}if(Wt)break;if(Nt){if(zt=skipOrderedListMarker(ht,Ft),zt<0)break;Bt=ht.bMarks[Ft]+ht.tShift[Ft]}else if(zt=skipBulletListMarker(ht,Ft),zt<0)break;if(Vt!==ht.src.charCodeAt(zt-1))break}return Nt?Dt=ht.push("ordered_list_close","ol",-1):Dt=ht.push("bullet_list_close","ul",-1),Dt.markup=String.fromCharCode(Vt),Xt[1]=Ft,ht.line=Ft,ht.parentType=dr,kt&&markTightParagraphs(ht,Kt),!0}function reference(ht,Et,yt,Ct){let $t=ht.bMarks[Et]+ht.tShift[Et],At=ht.eMarks[Et],Bt=Et+1;if(ht.sCount[Et]-ht.blkIndent>=4||ht.src.charCodeAt($t)!==91)return!1;function Dt(Zt){const dr=ht.lineMax;if(Zt>=dr||ht.isEmpty(Zt))return null;let cr=!1;if(ht.sCount[Zt]-ht.blkIndent>3&&(cr=!0),ht.sCount[Zt]<0&&(cr=!0),!cr){const gr=ht.md.block.ruler.getRules("reference"),vr=ht.parentType;ht.parentType="reference";let yr=!1;for(let xr=0,rr=gr.length;xr<rr;xr++)if(gr[xr](ht,Zt,dr,!0)){yr=!0;break}if(ht.parentType=vr,yr)return null}const Er=ht.bMarks[Zt]+ht.tShift[Zt],pr=ht.eMarks[Zt];return ht.src.slice(Er,pr+1)}let Ft=ht.src.slice($t,At+1);At=Ft.length;let kt=-1;for($t=1;$t<At;$t++){const Zt=Ft.charCodeAt($t);if(Zt===91)return!1;if(Zt===93){kt=$t;break}else if(Zt===10){const dr=Dt(Bt);dr!==null&&(Ft+=dr,At=Ft.length,Bt++)}else if(Zt===92&&($t++,$t<At&&Ft.charCodeAt($t)===10)){const dr=Dt(Bt);dr!==null&&(Ft+=dr,At=Ft.length,Bt++)}}if(kt<0||Ft.charCodeAt(kt+1)!==58)return!1;for($t=kt+2;$t<At;$t++){const Zt=Ft.charCodeAt($t);if(Zt===10){const dr=Dt(Bt);dr!==null&&(Ft+=dr,At=Ft.length,Bt++)}else if(!isSpace(Zt))break}const Mt=ht.md.helpers.parseLinkDestination(Ft,$t,At);if(!Mt.ok)return!1;const Nt=ht.md.normalizeLink(Mt.str);if(!ht.md.validateLink(Nt))return!1;$t=Mt.pos;const jt=$t,zt=Bt,Vt=$t;for(;$t<At;$t++){const Zt=Ft.charCodeAt($t);if(Zt===10){const dr=Dt(Bt);dr!==null&&(Ft+=dr,At=Ft.length,Bt++)}else if(!isSpace(Zt))break}let Kt=ht.md.helpers.parseLinkTitle(Ft,$t,At);for(;Kt.can_continue;){const Zt=Dt(Bt);if(Zt===null)break;Ft+=Zt,$t=At,At=Ft.length,Bt++,Kt=ht.md.helpers.parseLinkTitle(Ft,$t,At,Kt)}let Xt;for($t<At&&Vt!==$t&&Kt.ok?(Xt=Kt.str,$t=Kt.pos):(Xt="",$t=jt,Bt=zt);$t<At;){const Zt=Ft.charCodeAt($t);if(!isSpace(Zt))break;$t++}if($t<At&&Ft.charCodeAt($t)!==10&&Xt)for(Xt="",$t=jt,Bt=zt;$t<At;){const Zt=Ft.charCodeAt($t);if(!isSpace(Zt))break;$t++}if($t<At&&Ft.charCodeAt($t)!==10)return!1;const Qt=normalizeReference(Ft.slice(1,kt));return Qt?(Ct||(typeof ht.env.references>"u"&&(ht.env.references={}),typeof ht.env.references[Qt]>"u"&&(ht.env.references[Qt]={title:Xt,href:Nt}),ht.line=Bt),!0):!1}const block_names=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],attr_name="[a-zA-Z_:][a-zA-Z0-9:._-]*",unquoted="[^\"'=<>`\\x00-\\x20]+",single_quoted="'[^']*'",double_quoted='"[^"]*"',attr_value="(?:"+unquoted+"|"+single_quoted+"|"+double_quoted+")",attribute="(?:\\s+"+attr_name+"(?:\\s*=\\s*"+attr_value+")?)",open_tag="<[A-Za-z][A-Za-z0-9\\-]*"+attribute+"*\\s*\\/?>",close_tag="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",comment="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",processing="<[?][\\s\\S]*?[?]>",declaration="<![A-Za-z][^>]*>",cdata="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",HTML_TAG_RE=new RegExp("^(?:"+open_tag+"|"+close_tag+"|"+comment+"|"+processing+"|"+declaration+"|"+cdata+")"),HTML_OPEN_CLOSE_TAG_RE=new RegExp("^(?:"+open_tag+"|"+close_tag+")"),HTML_SEQUENCES=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+block_names.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(HTML_OPEN_CLOSE_TAG_RE.source+"\\s*$"),/^$/,!1]];function html_block(ht,Et,yt,Ct){let $t=ht.bMarks[Et]+ht.tShift[Et],At=ht.eMarks[Et];if(ht.sCount[Et]-ht.blkIndent>=4||!ht.md.options.html||ht.src.charCodeAt($t)!==60)return!1;let Bt=ht.src.slice($t,At),Dt=0;for(;Dt<HTML_SEQUENCES.length&&!HTML_SEQUENCES[Dt][0].test(Bt);Dt++);if(Dt===HTML_SEQUENCES.length)return!1;if(Ct)return HTML_SEQUENCES[Dt][2];let Ft=Et+1;if(!HTML_SEQUENCES[Dt][1].test(Bt)){for(;Ft<yt&&!(ht.sCount[Ft]<ht.blkIndent);Ft++)if($t=ht.bMarks[Ft]+ht.tShift[Ft],At=ht.eMarks[Ft],Bt=ht.src.slice($t,At),HTML_SEQUENCES[Dt][1].test(Bt)){Bt.length!==0&&Ft++;break}}ht.line=Ft;const kt=ht.push("html_block","",0);return kt.map=[Et,Ft],kt.content=ht.getLines(Et,Ft,ht.blkIndent,!0),!0}function heading(ht,Et,yt,Ct){let $t=ht.bMarks[Et]+ht.tShift[Et],At=ht.eMarks[Et];if(ht.sCount[Et]-ht.blkIndent>=4)return!1;let Bt=ht.src.charCodeAt($t);if(Bt!==35||$t>=At)return!1;let Dt=1;for(Bt=ht.src.charCodeAt(++$t);Bt===35&&$t<At&&Dt<=6;)Dt++,Bt=ht.src.charCodeAt(++$t);if(Dt>6||$t<At&&!isSpace(Bt))return!1;if(Ct)return!0;At=ht.skipSpacesBack(At,$t);const Ft=ht.skipCharsBack(At,35,$t);Ft>$t&&isSpace(ht.src.charCodeAt(Ft-1))&&(At=Ft),ht.line=Et+1;const kt=ht.push("heading_open","h"+String(Dt),1);kt.markup="########".slice(0,Dt),kt.map=[Et,ht.line];const Mt=ht.push("inline","",0);Mt.content=ht.src.slice($t,At).trim(),Mt.map=[Et,ht.line],Mt.children=[];const Nt=ht.push("heading_close","h"+String(Dt),-1);return Nt.markup="########".slice(0,Dt),!0}function lheading(ht,Et,yt){const Ct=ht.md.block.ruler.getRules("paragraph");if(ht.sCount[Et]-ht.blkIndent>=4)return!1;const $t=ht.parentType;ht.parentType="paragraph";let At=0,Bt,Dt=Et+1;for(;Dt<yt&&!ht.isEmpty(Dt);Dt++){if(ht.sCount[Dt]-ht.blkIndent>3)continue;if(ht.sCount[Dt]>=ht.blkIndent){let zt=ht.bMarks[Dt]+ht.tShift[Dt];const Vt=ht.eMarks[Dt];if(zt<Vt&&(Bt=ht.src.charCodeAt(zt),(Bt===45||Bt===61)&&(zt=ht.skipChars(zt,Bt),zt=ht.skipSpaces(zt),zt>=Vt))){At=Bt===61?1:2;break}}if(ht.sCount[Dt]<0)continue;let jt=!1;for(let zt=0,Vt=Ct.length;zt<Vt;zt++)if(Ct[zt](ht,Dt,yt,!0)){jt=!0;break}if(jt)break}if(!At)return!1;const Ft=ht.getLines(Et,Dt,ht.blkIndent,!1).trim();ht.line=Dt+1;const kt=ht.push("heading_open","h"+String(At),1);kt.markup=String.fromCharCode(Bt),kt.map=[Et,ht.line];const Mt=ht.push("inline","",0);Mt.content=Ft,Mt.map=[Et,ht.line-1],Mt.children=[];const Nt=ht.push("heading_close","h"+String(At),-1);return Nt.markup=String.fromCharCode(Bt),ht.parentType=$t,!0}function paragraph(ht,Et,yt){const Ct=ht.md.block.ruler.getRules("paragraph"),$t=ht.parentType;let At=Et+1;for(ht.parentType="paragraph";At<yt&&!ht.isEmpty(At);At++){if(ht.sCount[At]-ht.blkIndent>3||ht.sCount[At]<0)continue;let kt=!1;for(let Mt=0,Nt=Ct.length;Mt<Nt;Mt++)if(Ct[Mt](ht,At,yt,!0)){kt=!0;break}if(kt)break}const Bt=ht.getLines(Et,At,ht.blkIndent,!1).trim();ht.line=At;const Dt=ht.push("paragraph_open","p",1);Dt.map=[Et,ht.line];const Ft=ht.push("inline","",0);return Ft.content=Bt,Ft.map=[Et,ht.line],Ft.children=[],ht.push("paragraph_close","p",-1),ht.parentType=$t,!0}const _rules$1=[["table",table$2,["paragraph","reference"]],["code",code],["fence",fence,["paragraph","reference","blockquote","list"]],["blockquote",blockquote,["paragraph","reference","blockquote","list"]],["hr",hr,["paragraph","reference","blockquote","list"]],["list",list,["paragraph","reference","blockquote"]],["reference",reference],["html_block",html_block,["paragraph","reference","blockquote"]],["heading",heading,["paragraph","reference","blockquote"]],["lheading",lheading],["paragraph",paragraph]];function ParserBlock(){this.ruler=new Ruler;for(let ht=0;ht<_rules$1.length;ht++)this.ruler.push(_rules$1[ht][0],_rules$1[ht][1],{alt:(_rules$1[ht][2]||[]).slice()})}ParserBlock.prototype.tokenize=function(ht,Et,yt){const Ct=this.ruler.getRules(""),$t=Ct.length,At=ht.md.options.maxNesting;let Bt=Et,Dt=!1;for(;Bt<yt&&(ht.line=Bt=ht.skipEmptyLines(Bt),!(Bt>=yt||ht.sCount[Bt]<ht.blkIndent));){if(ht.level>=At){ht.line=yt;break}const Ft=ht.line;let kt=!1;for(let Mt=0;Mt<$t;Mt++)if(kt=Ct[Mt](ht,Bt,yt,!1),kt){if(Ft>=ht.line)throw new Error("block rule didn't increment state.line");break}if(!kt)throw new Error("none of the block rules matched");ht.tight=!Dt,ht.isEmpty(ht.line-1)&&(Dt=!0),Bt=ht.line,Bt<yt&&ht.isEmpty(Bt)&&(Dt=!0,Bt++,ht.line=Bt)}};ParserBlock.prototype.parse=function(ht,Et,yt,Ct){if(!ht)return;const $t=new this.State(ht,Et,yt,Ct);this.tokenize($t,$t.line,$t.lineMax)};ParserBlock.prototype.State=StateBlock;function StateInline(ht,Et,yt,Ct){this.src=ht,this.env=yt,this.md=Et,this.tokens=Ct,this.tokens_meta=Array(Ct.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}StateInline.prototype.pushPending=function(){const ht=new Token("text","",0);return ht.content=this.pending,ht.level=this.pendingLevel,this.tokens.push(ht),this.pending="",ht};StateInline.prototype.push=function(ht,Et,yt){this.pending&&this.pushPending();const Ct=new Token(ht,Et,yt);let $t=null;return yt<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),Ct.level=this.level,yt>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],$t={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(Ct),this.tokens_meta.push($t),Ct};StateInline.prototype.scanDelims=function(ht,Et){const yt=this.posMax,Ct=this.src.charCodeAt(ht),$t=ht>0?this.src.charCodeAt(ht-1):32;let At=ht;for(;At<yt&&this.src.charCodeAt(At)===Ct;)At++;const Bt=At-ht,Dt=At<yt?this.src.charCodeAt(At):32,Ft=isMdAsciiPunct($t)||isPunctChar(String.fromCharCode($t)),kt=isMdAsciiPunct(Dt)||isPunctChar(String.fromCharCode(Dt)),Mt=isWhiteSpace($t),Nt=isWhiteSpace(Dt),jt=!Nt&&(!kt||Mt||Ft),zt=!Mt&&(!Ft||Nt||kt);return{can_open:jt&&(Et||!zt||Ft),can_close:zt&&(Et||!jt||kt),length:Bt}};StateInline.prototype.Token=Token;function isTerminatorChar(ht){switch(ht){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function text(ht,Et){let yt=ht.pos;for(;yt<ht.posMax&&!isTerminatorChar(ht.src.charCodeAt(yt));)yt++;return yt===ht.pos?!1:(Et||(ht.pending+=ht.src.slice(ht.pos,yt)),ht.pos=yt,!0)}const SCHEME_RE=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function linkify(ht,Et){if(!ht.md.options.linkify||ht.linkLevel>0)return!1;const yt=ht.pos,Ct=ht.posMax;if(yt+3>Ct||ht.src.charCodeAt(yt)!==58||ht.src.charCodeAt(yt+1)!==47||ht.src.charCodeAt(yt+2)!==47)return!1;const $t=ht.pending.match(SCHEME_RE);if(!$t)return!1;const At=$t[1],Bt=ht.md.linkify.matchAtStart(ht.src.slice(yt-At.length));if(!Bt)return!1;let Dt=Bt.url;if(Dt.length<=At.length)return!1;Dt=Dt.replace(/\*+$/,"");const Ft=ht.md.normalizeLink(Dt);if(!ht.md.validateLink(Ft))return!1;if(!Et){ht.pending=ht.pending.slice(0,-At.length);const kt=ht.push("link_open","a",1);kt.attrs=[["href",Ft]],kt.markup="linkify",kt.info="auto";const Mt=ht.push("text","",0);Mt.content=ht.md.normalizeLinkText(Dt);const Nt=ht.push("link_close","a",-1);Nt.markup="linkify",Nt.info="auto"}return ht.pos+=Dt.length-At.length,!0}function newline(ht,Et){let yt=ht.pos;if(ht.src.charCodeAt(yt)!==10)return!1;const Ct=ht.pending.length-1,$t=ht.posMax;if(!Et)if(Ct>=0&&ht.pending.charCodeAt(Ct)===32)if(Ct>=1&&ht.pending.charCodeAt(Ct-1)===32){let At=Ct-1;for(;At>=1&&ht.pending.charCodeAt(At-1)===32;)At--;ht.pending=ht.pending.slice(0,At),ht.push("hardbreak","br",0)}else ht.pending=ht.pending.slice(0,-1),ht.push("softbreak","br",0);else ht.push("softbreak","br",0);for(yt++;yt<$t&&isSpace(ht.src.charCodeAt(yt));)yt++;return ht.pos=yt,!0}const ESCAPED=[];for(let ht=0;ht<256;ht++)ESCAPED.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(ht){ESCAPED[ht.charCodeAt(0)]=1});function escape$1(ht,Et){let yt=ht.pos;const Ct=ht.posMax;if(ht.src.charCodeAt(yt)!==92||(yt++,yt>=Ct))return!1;let $t=ht.src.charCodeAt(yt);if($t===10){for(Et||ht.push("hardbreak","br",0),yt++;yt<Ct&&($t=ht.src.charCodeAt(yt),!!isSpace($t));)yt++;return ht.pos=yt,!0}let At=ht.src[yt];if($t>=55296&&$t<=56319&&yt+1<Ct){const Dt=ht.src.charCodeAt(yt+1);Dt>=56320&&Dt<=57343&&(At+=ht.src[yt+1],yt++)}const Bt="\\"+At;if(!Et){const Dt=ht.push("text_special","",0);$t<256&&ESCAPED[$t]!==0?Dt.content=At:Dt.content=Bt,Dt.markup=Bt,Dt.info="escape"}return ht.pos=yt+1,!0}function backtick(ht,Et){let yt=ht.pos;if(ht.src.charCodeAt(yt)!==96)return!1;const $t=yt;yt++;const At=ht.posMax;for(;yt<At&&ht.src.charCodeAt(yt)===96;)yt++;const Bt=ht.src.slice($t,yt),Dt=Bt.length;if(ht.backticksScanned&&(ht.backticks[Dt]||0)<=$t)return Et||(ht.pending+=Bt),ht.pos+=Dt,!0;let Ft=yt,kt;for(;(kt=ht.src.indexOf("`",Ft))!==-1;){for(Ft=kt+1;Ft<At&&ht.src.charCodeAt(Ft)===96;)Ft++;const Mt=Ft-kt;if(Mt===Dt){if(!Et){const Nt=ht.push("code_inline","code",0);Nt.markup=Bt,Nt.content=ht.src.slice(yt,kt).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return ht.pos=Ft,!0}ht.backticks[Mt]=kt}return ht.backticksScanned=!0,Et||(ht.pending+=Bt),ht.pos+=Dt,!0}function strikethrough_tokenize(ht,Et){const yt=ht.pos,Ct=ht.src.charCodeAt(yt);if(Et||Ct!==126)return!1;const $t=ht.scanDelims(ht.pos,!0);let At=$t.length;const Bt=String.fromCharCode(Ct);if(At<2)return!1;let Dt;At%2&&(Dt=ht.push("text","",0),Dt.content=Bt,At--);for(let Ft=0;Ft<At;Ft+=2)Dt=ht.push("text","",0),Dt.content=Bt+Bt,ht.delimiters.push({marker:Ct,length:0,token:ht.tokens.length-1,end:-1,open:$t.can_open,close:$t.can_close});return ht.pos+=$t.length,!0}function postProcess$1(ht,Et){let yt;const Ct=[],$t=Et.length;for(let At=0;At<$t;At++){const Bt=Et[At];if(Bt.marker!==126||Bt.end===-1)continue;const Dt=Et[Bt.end];yt=ht.tokens[Bt.token],yt.type="s_open",yt.tag="s",yt.nesting=1,yt.markup="~~",yt.content="",yt=ht.tokens[Dt.token],yt.type="s_close",yt.tag="s",yt.nesting=-1,yt.markup="~~",yt.content="",ht.tokens[Dt.token-1].type==="text"&&ht.tokens[Dt.token-1].content==="~"&&Ct.push(Dt.token-1)}for(;Ct.length;){const At=Ct.pop();let Bt=At+1;for(;Bt<ht.tokens.length&&ht.tokens[Bt].type==="s_close";)Bt++;Bt--,At!==Bt&&(yt=ht.tokens[Bt],ht.tokens[Bt]=ht.tokens[At],ht.tokens[At]=yt)}}function strikethrough_postProcess(ht){const Et=ht.tokens_meta,yt=ht.tokens_meta.length;postProcess$1(ht,ht.delimiters);for(let Ct=0;Ct<yt;Ct++)Et[Ct]&&Et[Ct].delimiters&&postProcess$1(ht,Et[Ct].delimiters)}const r_strikethrough={tokenize:strikethrough_tokenize,postProcess:strikethrough_postProcess};function emphasis_tokenize(ht,Et){const yt=ht.pos,Ct=ht.src.charCodeAt(yt);if(Et||Ct!==95&&Ct!==42)return!1;const $t=ht.scanDelims(ht.pos,Ct===42);for(let At=0;At<$t.length;At++){const Bt=ht.push("text","",0);Bt.content=String.fromCharCode(Ct),ht.delimiters.push({marker:Ct,length:$t.length,token:ht.tokens.length-1,end:-1,open:$t.can_open,close:$t.can_close})}return ht.pos+=$t.length,!0}function postProcess(ht,Et){const yt=Et.length;for(let Ct=yt-1;Ct>=0;Ct--){const $t=Et[Ct];if($t.marker!==95&&$t.marker!==42||$t.end===-1)continue;const At=Et[$t.end],Bt=Ct>0&&Et[Ct-1].end===$t.end+1&&Et[Ct-1].marker===$t.marker&&Et[Ct-1].token===$t.token-1&&Et[$t.end+1].token===At.token+1,Dt=String.fromCharCode($t.marker),Ft=ht.tokens[$t.token];Ft.type=Bt?"strong_open":"em_open",Ft.tag=Bt?"strong":"em",Ft.nesting=1,Ft.markup=Bt?Dt+Dt:Dt,Ft.content="";const kt=ht.tokens[At.token];kt.type=Bt?"strong_close":"em_close",kt.tag=Bt?"strong":"em",kt.nesting=-1,kt.markup=Bt?Dt+Dt:Dt,kt.content="",Bt&&(ht.tokens[Et[Ct-1].token].content="",ht.tokens[Et[$t.end+1].token].content="",Ct--)}}function emphasis_post_process(ht){const Et=ht.tokens_meta,yt=ht.tokens_meta.length;postProcess(ht,ht.delimiters);for(let Ct=0;Ct<yt;Ct++)Et[Ct]&&Et[Ct].delimiters&&postProcess(ht,Et[Ct].delimiters)}const r_emphasis={tokenize:emphasis_tokenize,postProcess:emphasis_post_process};function link$1(ht,Et){let yt,Ct,$t,At,Bt="",Dt="",Ft=ht.pos,kt=!0;if(ht.src.charCodeAt(ht.pos)!==91)return!1;const Mt=ht.pos,Nt=ht.posMax,jt=ht.pos+1,zt=ht.md.helpers.parseLinkLabel(ht,ht.pos,!0);if(zt<0)return!1;let Vt=zt+1;if(Vt<Nt&&ht.src.charCodeAt(Vt)===40){for(kt=!1,Vt++;Vt<Nt&&(yt=ht.src.charCodeAt(Vt),!(!isSpace(yt)&&yt!==10));Vt++);if(Vt>=Nt)return!1;if(Ft=Vt,$t=ht.md.helpers.parseLinkDestination(ht.src,Vt,ht.posMax),$t.ok){for(Bt=ht.md.normalizeLink($t.str),ht.md.validateLink(Bt)?Vt=$t.pos:Bt="",Ft=Vt;Vt<Nt&&(yt=ht.src.charCodeAt(Vt),!(!isSpace(yt)&&yt!==10));Vt++);if($t=ht.md.helpers.parseLinkTitle(ht.src,Vt,ht.posMax),Vt<Nt&&Ft!==Vt&&$t.ok)for(Dt=$t.str,Vt=$t.pos;Vt<Nt&&(yt=ht.src.charCodeAt(Vt),!(!isSpace(yt)&&yt!==10));Vt++);}(Vt>=Nt||ht.src.charCodeAt(Vt)!==41)&&(kt=!0),Vt++}if(kt){if(typeof ht.env.references>"u")return!1;if(Vt<Nt&&ht.src.charCodeAt(Vt)===91?(Ft=Vt+1,Vt=ht.md.helpers.parseLinkLabel(ht,Vt),Vt>=0?Ct=ht.src.slice(Ft,Vt++):Vt=zt+1):Vt=zt+1,Ct||(Ct=ht.src.slice(jt,zt)),At=ht.env.references[normalizeReference(Ct)],!At)return ht.pos=Mt,!1;Bt=At.href,Dt=At.title}if(!Et){ht.pos=jt,ht.posMax=zt;const Kt=ht.push("link_open","a",1),Xt=[["href",Bt]];Kt.attrs=Xt,Dt&&Xt.push(["title",Dt]),ht.linkLevel++,ht.md.inline.tokenize(ht),ht.linkLevel--,ht.push("link_close","a",-1)}return ht.pos=Vt,ht.posMax=Nt,!0}function image(ht,Et){let yt,Ct,$t,At,Bt,Dt,Ft,kt,Mt="";const Nt=ht.pos,jt=ht.posMax;if(ht.src.charCodeAt(ht.pos)!==33||ht.src.charCodeAt(ht.pos+1)!==91)return!1;const zt=ht.pos+2,Vt=ht.md.helpers.parseLinkLabel(ht,ht.pos+1,!1);if(Vt<0)return!1;if(At=Vt+1,At<jt&&ht.src.charCodeAt(At)===40){for(At++;At<jt&&(yt=ht.src.charCodeAt(At),!(!isSpace(yt)&&yt!==10));At++);if(At>=jt)return!1;for(kt=At,Dt=ht.md.helpers.parseLinkDestination(ht.src,At,ht.posMax),Dt.ok&&(Mt=ht.md.normalizeLink(Dt.str),ht.md.validateLink(Mt)?At=Dt.pos:Mt=""),kt=At;At<jt&&(yt=ht.src.charCodeAt(At),!(!isSpace(yt)&&yt!==10));At++);if(Dt=ht.md.helpers.parseLinkTitle(ht.src,At,ht.posMax),At<jt&&kt!==At&&Dt.ok)for(Ft=Dt.str,At=Dt.pos;At<jt&&(yt=ht.src.charCodeAt(At),!(!isSpace(yt)&&yt!==10));At++);else Ft="";if(At>=jt||ht.src.charCodeAt(At)!==41)return ht.pos=Nt,!1;At++}else{if(typeof ht.env.references>"u")return!1;if(At<jt&&ht.src.charCodeAt(At)===91?(kt=At+1,At=ht.md.helpers.parseLinkLabel(ht,At),At>=0?$t=ht.src.slice(kt,At++):At=Vt+1):At=Vt+1,$t||($t=ht.src.slice(zt,Vt)),Bt=ht.env.references[normalizeReference($t)],!Bt)return ht.pos=Nt,!1;Mt=Bt.href,Ft=Bt.title}if(!Et){Ct=ht.src.slice(zt,Vt);const Kt=[];ht.md.inline.parse(Ct,ht.md,ht.env,Kt);const Xt=ht.push("image","img",0),Qt=[["src",Mt],["alt",""]];Xt.attrs=Qt,Xt.children=Kt,Xt.content=Ct,Ft&&Qt.push(["title",Ft])}return ht.pos=At,ht.posMax=jt,!0}const EMAIL_RE=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,AUTOLINK_RE=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function autolink(ht,Et){let yt=ht.pos;if(ht.src.charCodeAt(yt)!==60)return!1;const Ct=ht.pos,$t=ht.posMax;for(;;){if(++yt>=$t)return!1;const Bt=ht.src.charCodeAt(yt);if(Bt===60)return!1;if(Bt===62)break}const At=ht.src.slice(Ct+1,yt);if(AUTOLINK_RE.test(At)){const Bt=ht.md.normalizeLink(At);if(!ht.md.validateLink(Bt))return!1;if(!Et){const Dt=ht.push("link_open","a",1);Dt.attrs=[["href",Bt]],Dt.markup="autolink",Dt.info="auto";const Ft=ht.push("text","",0);Ft.content=ht.md.normalizeLinkText(At);const kt=ht.push("link_close","a",-1);kt.markup="autolink",kt.info="auto"}return ht.pos+=At.length+2,!0}if(EMAIL_RE.test(At)){const Bt=ht.md.normalizeLink("mailto:"+At);if(!ht.md.validateLink(Bt))return!1;if(!Et){const Dt=ht.push("link_open","a",1);Dt.attrs=[["href",Bt]],Dt.markup="autolink",Dt.info="auto";const Ft=ht.push("text","",0);Ft.content=ht.md.normalizeLinkText(At);const kt=ht.push("link_close","a",-1);kt.markup="autolink",kt.info="auto"}return ht.pos+=At.length+2,!0}return!1}function isLinkOpen(ht){return/^<a[>\s]/i.test(ht)}function isLinkClose(ht){return/^<\/a\s*>/i.test(ht)}function isLetter(ht){const Et=ht|32;return Et>=97&&Et<=122}function html_inline(ht,Et){if(!ht.md.options.html)return!1;const yt=ht.posMax,Ct=ht.pos;if(ht.src.charCodeAt(Ct)!==60||Ct+2>=yt)return!1;const $t=ht.src.charCodeAt(Ct+1);if($t!==33&&$t!==63&&$t!==47&&!isLetter($t))return!1;const At=ht.src.slice(Ct).match(HTML_TAG_RE);if(!At)return!1;if(!Et){const Bt=ht.push("html_inline","",0);Bt.content=At[0],isLinkOpen(Bt.content)&&ht.linkLevel++,isLinkClose(Bt.content)&&ht.linkLevel--}return ht.pos+=At[0].length,!0}const DIGITAL_RE=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,NAMED_RE=/^&([a-z][a-z0-9]{1,31});/i;function entity(ht,Et){const yt=ht.pos,Ct=ht.posMax;if(ht.src.charCodeAt(yt)!==38||yt+1>=Ct)return!1;if(ht.src.charCodeAt(yt+1)===35){const At=ht.src.slice(yt).match(DIGITAL_RE);if(At){if(!Et){const Bt=At[1][0].toLowerCase()==="x"?parseInt(At[1].slice(1),16):parseInt(At[1],10),Dt=ht.push("text_special","",0);Dt.content=isValidEntityCode(Bt)?fromCodePoint(Bt):fromCodePoint(65533),Dt.markup=At[0],Dt.info="entity"}return ht.pos+=At[0].length,!0}}else{const At=ht.src.slice(yt).match(NAMED_RE);if(At){const Bt=decodeHTML(At[0]);if(Bt!==At[0]){if(!Et){const Dt=ht.push("text_special","",0);Dt.content=Bt,Dt.markup=At[0],Dt.info="entity"}return ht.pos+=At[0].length,!0}}}return!1}function processDelimiters(ht){const Et={},yt=ht.length;if(!yt)return;let Ct=0,$t=-2;const At=[];for(let Bt=0;Bt<yt;Bt++){const Dt=ht[Bt];if(At.push(0),(ht[Ct].marker!==Dt.marker||$t!==Dt.token-1)&&(Ct=Bt),$t=Dt.token,Dt.length=Dt.length||0,!Dt.close)continue;Et.hasOwnProperty(Dt.marker)||(Et[Dt.marker]=[-1,-1,-1,-1,-1,-1]);const Ft=Et[Dt.marker][(Dt.open?3:0)+Dt.length%3];let kt=Ct-At[Ct]-1,Mt=kt;for(;kt>Ft;kt-=At[kt]+1){const Nt=ht[kt];if(Nt.marker===Dt.marker&&Nt.open&&Nt.end<0){let jt=!1;if((Nt.close||Dt.open)&&(Nt.length+Dt.length)%3===0&&(Nt.length%3!==0||Dt.length%3!==0)&&(jt=!0),!jt){const zt=kt>0&&!ht[kt-1].open?At[kt-1]+1:0;At[Bt]=Bt-kt+zt,At[kt]=zt,Dt.open=!1,Nt.end=Bt,Nt.close=!1,Mt=-1,$t=-2;break}}}Mt!==-1&&(Et[Dt.marker][(Dt.open?3:0)+(Dt.length||0)%3]=Mt)}}function link_pairs(ht){const Et=ht.tokens_meta,yt=ht.tokens_meta.length;processDelimiters(ht.delimiters);for(let Ct=0;Ct<yt;Ct++)Et[Ct]&&Et[Ct].delimiters&&processDelimiters(Et[Ct].delimiters)}function fragments_join(ht){let Et,yt,Ct=0;const $t=ht.tokens,At=ht.tokens.length;for(Et=yt=0;Et<At;Et++)$t[Et].nesting<0&&Ct--,$t[Et].level=Ct,$t[Et].nesting>0&&Ct++,$t[Et].type==="text"&&Et+1<At&&$t[Et+1].type==="text"?$t[Et+1].content=$t[Et].content+$t[Et+1].content:(Et!==yt&&($t[yt]=$t[Et]),yt++);Et!==yt&&($t.length=yt)}const _rules=[["text",text],["linkify",linkify],["newline",newline],["escape",escape$1],["backticks",backtick],["strikethrough",r_strikethrough.tokenize],["emphasis",r_emphasis.tokenize],["link",link$1],["image",image],["autolink",autolink],["html_inline",html_inline],["entity",entity]],_rules2=[["balance_pairs",link_pairs],["strikethrough",r_strikethrough.postProcess],["emphasis",r_emphasis.postProcess],["fragments_join",fragments_join]];function ParserInline(){this.ruler=new Ruler;for(let ht=0;ht<_rules.length;ht++)this.ruler.push(_rules[ht][0],_rules[ht][1]);this.ruler2=new Ruler;for(let ht=0;ht<_rules2.length;ht++)this.ruler2.push(_rules2[ht][0],_rules2[ht][1])}ParserInline.prototype.skipToken=function(ht){const Et=ht.pos,yt=this.ruler.getRules(""),Ct=yt.length,$t=ht.md.options.maxNesting,At=ht.cache;if(typeof At[Et]<"u"){ht.pos=At[Et];return}let Bt=!1;if(ht.level<$t){for(let Dt=0;Dt<Ct;Dt++)if(ht.level++,Bt=yt[Dt](ht,!0),ht.level--,Bt){if(Et>=ht.pos)throw new Error("inline rule didn't increment state.pos");break}}else ht.pos=ht.posMax;Bt||ht.pos++,At[Et]=ht.pos};ParserInline.prototype.tokenize=function(ht){const Et=this.ruler.getRules(""),yt=Et.length,Ct=ht.posMax,$t=ht.md.options.maxNesting;for(;ht.pos<Ct;){const At=ht.pos;let Bt=!1;if(ht.level<$t){for(let Dt=0;Dt<yt;Dt++)if(Bt=Et[Dt](ht,!1),Bt){if(At>=ht.pos)throw new Error("inline rule didn't increment state.pos");break}}if(Bt){if(ht.pos>=Ct)break;continue}ht.pending+=ht.src[ht.pos++]}ht.pending&&ht.pushPending()};ParserInline.prototype.parse=function(ht,Et,yt,Ct){const $t=new this.State(ht,Et,yt,Ct);this.tokenize($t);const At=this.ruler2.getRules(""),Bt=At.length;for(let Dt=0;Dt<Bt;Dt++)At[Dt]($t)};ParserInline.prototype.State=StateInline;function reFactory(ht){const Et={};ht=ht||{},Et.src_Any=Any.source,Et.src_Cc=Cc.source,Et.src_Z=Z$1.source,Et.src_P=P$1.source,Et.src_ZPCc=[Et.src_Z,Et.src_P,Et.src_Cc].join("|"),Et.src_ZCc=[Et.src_Z,Et.src_Cc].join("|");const yt="[><|]";return Et.src_pseudo_letter="(?:(?!"+yt+"|"+Et.src_ZPCc+")"+Et.src_Any+")",Et.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",Et.src_auth="(?:(?:(?!"+Et.src_ZCc+"|[@/\\[\\]()]).)+@)?",Et.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",Et.src_host_terminator="(?=$|"+yt+"|"+Et.src_ZPCc+")(?!"+(ht["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+Et.src_ZPCc+"))",Et.src_path="(?:[/?#](?:(?!"+Et.src_ZCc+"|"+yt+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+Et.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+Et.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+Et.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+Et.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+Et.src_ZCc+"|[']).)+\\'|\\'(?="+Et.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+Et.src_ZCc+"|[.]|$)|"+(ht["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+Et.src_ZCc+"|$)|;(?!"+Et.src_ZCc+"|$)|\\!+(?!"+Et.src_ZCc+"|[!]|$)|\\?(?!"+Et.src_ZCc+"|[?]|$))+|\\/)?",Et.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',Et.src_xn="xn--[a-z0-9\\-]{1,59}",Et.src_domain_root="(?:"+Et.src_xn+"|"+Et.src_pseudo_letter+"{1,63})",Et.src_domain="(?:"+Et.src_xn+"|(?:"+Et.src_pseudo_letter+")|(?:"+Et.src_pseudo_letter+"(?:-|"+Et.src_pseudo_letter+"){0,61}"+Et.src_pseudo_letter+"))",Et.src_host="(?:(?:(?:(?:"+Et.src_domain+")\\.)*"+Et.src_domain+"))",Et.tpl_host_fuzzy="(?:"+Et.src_ip4+"|(?:(?:(?:"+Et.src_domain+")\\.)+(?:%TLDS%)))",Et.tpl_host_no_ip_fuzzy="(?:(?:(?:"+Et.src_domain+")\\.)+(?:%TLDS%))",Et.src_host_strict=Et.src_host+Et.src_host_terminator,Et.tpl_host_fuzzy_strict=Et.tpl_host_fuzzy+Et.src_host_terminator,Et.src_host_port_strict=Et.src_host+Et.src_port+Et.src_host_terminator,Et.tpl_host_port_fuzzy_strict=Et.tpl_host_fuzzy+Et.src_port+Et.src_host_terminator,Et.tpl_host_port_no_ip_fuzzy_strict=Et.tpl_host_no_ip_fuzzy+Et.src_port+Et.src_host_terminator,Et.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+Et.src_ZPCc+"|>|$))",Et.tpl_email_fuzzy="(^|"+yt+'|"|\\(|'+Et.src_ZCc+")("+Et.src_email_name+"@"+Et.tpl_host_fuzzy_strict+")",Et.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+Et.src_ZPCc+"))((?![$+<=>^`||])"+Et.tpl_host_port_fuzzy_strict+Et.src_path+")",Et.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+Et.src_ZPCc+"))((?![$+<=>^`||])"+Et.tpl_host_port_no_ip_fuzzy_strict+Et.src_path+")",Et}function assign$3(ht){return Array.prototype.slice.call(arguments,1).forEach(function(yt){yt&&Object.keys(yt).forEach(function(Ct){ht[Ct]=yt[Ct]})}),ht}function _class(ht){return Object.prototype.toString.call(ht)}function isString(ht){return _class(ht)==="[object String]"}function isObject$b(ht){return _class(ht)==="[object Object]"}function isRegExp(ht){return _class(ht)==="[object RegExp]"}function isFunction(ht){return _class(ht)==="[object Function]"}function escapeRE(ht){return ht.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const defaultOptions={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function isOptionsObj(ht){return Object.keys(ht||{}).reduce(function(Et,yt){return Et||defaultOptions.hasOwnProperty(yt)},!1)}const defaultSchemas={"http:":{validate:function(ht,Et,yt){const Ct=ht.slice(Et);return yt.re.http||(yt.re.http=new RegExp("^\\/\\/"+yt.re.src_auth+yt.re.src_host_port_strict+yt.re.src_path,"i")),yt.re.http.test(Ct)?Ct.match(yt.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(ht,Et,yt){const Ct=ht.slice(Et);return yt.re.no_http||(yt.re.no_http=new RegExp("^"+yt.re.src_auth+"(?:localhost|(?:(?:"+yt.re.src_domain+")\\.)+"+yt.re.src_domain_root+")"+yt.re.src_port+yt.re.src_host_terminator+yt.re.src_path,"i")),yt.re.no_http.test(Ct)?Et>=3&&ht[Et-3]===":"||Et>=3&&ht[Et-3]==="/"?0:Ct.match(yt.re.no_http)[0].length:0}},"mailto:":{validate:function(ht,Et,yt){const Ct=ht.slice(Et);return yt.re.mailto||(yt.re.mailto=new RegExp("^"+yt.re.src_email_name+"@"+yt.re.src_host_strict,"i")),yt.re.mailto.test(Ct)?Ct.match(yt.re.mailto)[0].length:0}}},tlds_2ch_src_re="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",tlds_default="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function resetScanCache(ht){ht.__index__=-1,ht.__text_cache__=""}function createValidator(ht){return function(Et,yt){const Ct=Et.slice(yt);return ht.test(Ct)?Ct.match(ht)[0].length:0}}function createNormalizer(){return function(ht,Et){Et.normalize(ht)}}function compile(ht){const Et=ht.re=reFactory(ht.__opts__),yt=ht.__tlds__.slice();ht.onCompile(),ht.__tlds_replaced__||yt.push(tlds_2ch_src_re),yt.push(Et.src_xn),Et.src_tlds=yt.join("|");function Ct(Dt){return Dt.replace("%TLDS%",Et.src_tlds)}Et.email_fuzzy=RegExp(Ct(Et.tpl_email_fuzzy),"i"),Et.link_fuzzy=RegExp(Ct(Et.tpl_link_fuzzy),"i"),Et.link_no_ip_fuzzy=RegExp(Ct(Et.tpl_link_no_ip_fuzzy),"i"),Et.host_fuzzy_test=RegExp(Ct(Et.tpl_host_fuzzy_test),"i");const $t=[];ht.__compiled__={};function At(Dt,Ft){throw new Error('(LinkifyIt) Invalid schema "'+Dt+'": '+Ft)}Object.keys(ht.__schemas__).forEach(function(Dt){const Ft=ht.__schemas__[Dt];if(Ft===null)return;const kt={validate:null,link:null};if(ht.__compiled__[Dt]=kt,isObject$b(Ft)){isRegExp(Ft.validate)?kt.validate=createValidator(Ft.validate):isFunction(Ft.validate)?kt.validate=Ft.validate:At(Dt,Ft),isFunction(Ft.normalize)?kt.normalize=Ft.normalize:Ft.normalize?At(Dt,Ft):kt.normalize=createNormalizer();return}if(isString(Ft)){$t.push(Dt);return}At(Dt,Ft)}),$t.forEach(function(Dt){ht.__compiled__[ht.__schemas__[Dt]]&&(ht.__compiled__[Dt].validate=ht.__compiled__[ht.__schemas__[Dt]].validate,ht.__compiled__[Dt].normalize=ht.__compiled__[ht.__schemas__[Dt]].normalize)}),ht.__compiled__[""]={validate:null,normalize:createNormalizer()};const Bt=Object.keys(ht.__compiled__).filter(function(Dt){return Dt.length>0&&ht.__compiled__[Dt]}).map(escapeRE).join("|");ht.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+Et.src_ZPCc+"))("+Bt+")","i"),ht.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+Et.src_ZPCc+"))("+Bt+")","ig"),ht.re.schema_at_start=RegExp("^"+ht.re.schema_search.source,"i"),ht.re.pretest=RegExp("("+ht.re.schema_test.source+")|("+ht.re.host_fuzzy_test.source+")|@","i"),resetScanCache(ht)}function Match(ht,Et){const yt=ht.__index__,Ct=ht.__last_index__,$t=ht.__text_cache__.slice(yt,Ct);this.schema=ht.__schema__.toLowerCase(),this.index=yt+Et,this.lastIndex=Ct+Et,this.raw=$t,this.text=$t,this.url=$t}function createMatch(ht,Et){const yt=new Match(ht,Et);return ht.__compiled__[yt.schema].normalize(yt,ht),yt}function LinkifyIt(ht,Et){if(!(this instanceof LinkifyIt))return new LinkifyIt(ht,Et);Et||isOptionsObj(ht)&&(Et=ht,ht={}),this.__opts__=assign$3({},defaultOptions,Et),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=assign$3({},defaultSchemas,ht),this.__compiled__={},this.__tlds__=tlds_default,this.__tlds_replaced__=!1,this.re={},compile(this)}LinkifyIt.prototype.add=function ht(Et,yt){return this.__schemas__[Et]=yt,compile(this),this};LinkifyIt.prototype.set=function ht(Et){return this.__opts__=assign$3(this.__opts__,Et),this};LinkifyIt.prototype.test=function ht(Et){if(this.__text_cache__=Et,this.__index__=-1,!Et.length)return!1;let yt,Ct,$t,At,Bt,Dt,Ft,kt,Mt;if(this.re.schema_test.test(Et)){for(Ft=this.re.schema_search,Ft.lastIndex=0;(yt=Ft.exec(Et))!==null;)if(At=this.testSchemaAt(Et,yt[2],Ft.lastIndex),At){this.__schema__=yt[2],this.__index__=yt.index+yt[1].length,this.__last_index__=yt.index+yt[0].length+At;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(kt=Et.search(this.re.host_fuzzy_test),kt>=0&&(this.__index__<0||kt<this.__index__)&&(Ct=Et.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(Bt=Ct.index+Ct[1].length,(this.__index__<0||Bt<this.__index__)&&(this.__schema__="",this.__index__=Bt,this.__last_index__=Ct.index+Ct[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(Mt=Et.indexOf("@"),Mt>=0&&($t=Et.match(this.re.email_fuzzy))!==null&&(Bt=$t.index+$t[1].length,Dt=$t.index+$t[0].length,(this.__index__<0||Bt<this.__index__||Bt===this.__index__&&Dt>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=Bt,this.__last_index__=Dt))),this.__index__>=0};LinkifyIt.prototype.pretest=function ht(Et){return this.re.pretest.test(Et)};LinkifyIt.prototype.testSchemaAt=function ht(Et,yt,Ct){return this.__compiled__[yt.toLowerCase()]?this.__compiled__[yt.toLowerCase()].validate(Et,Ct,this):0};LinkifyIt.prototype.match=function ht(Et){const yt=[];let Ct=0;this.__index__>=0&&this.__text_cache__===Et&&(yt.push(createMatch(this,Ct)),Ct=this.__last_index__);let $t=Ct?Et.slice(Ct):Et;for(;this.test($t);)yt.push(createMatch(this,Ct)),$t=$t.slice(this.__last_index__),Ct+=this.__last_index__;return yt.length?yt:null};LinkifyIt.prototype.matchAtStart=function ht(Et){if(this.__text_cache__=Et,this.__index__=-1,!Et.length)return null;const yt=this.re.schema_at_start.exec(Et);if(!yt)return null;const Ct=this.testSchemaAt(Et,yt[2],yt[0].length);return Ct?(this.__schema__=yt[2],this.__index__=yt.index+yt[1].length,this.__last_index__=yt.index+yt[0].length+Ct,createMatch(this,0)):null};LinkifyIt.prototype.tlds=function ht(Et,yt){return Et=Array.isArray(Et)?Et:[Et],yt?(this.__tlds__=this.__tlds__.concat(Et).sort().filter(function(Ct,$t,At){return Ct!==At[$t-1]}).reverse(),compile(this),this):(this.__tlds__=Et.slice(),this.__tlds_replaced__=!0,compile(this),this)};LinkifyIt.prototype.normalize=function ht(Et){Et.schema||(Et.url="http://"+Et.url),Et.schema==="mailto:"&&!/^mailto:/i.test(Et.url)&&(Et.url="mailto:"+Et.url)};LinkifyIt.prototype.onCompile=function ht(){};const maxInt=2147483647,base=36,tMin=1,tMax=26,skew=38,damp=700,initialBias=72,initialN=128,delimiter="-",regexPunycode=/^xn--/,regexNonASCII=/[^\0-\x7F]/,regexSeparators=/[\x2E\u3002\uFF0E\uFF61]/g,errors={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},baseMinusTMin=base-tMin,floor$1=Math.floor,stringFromCharCode=String.fromCharCode;function error(ht){throw new RangeError(errors[ht])}function map$4(ht,Et){const yt=[];let Ct=ht.length;for(;Ct--;)yt[Ct]=Et(ht[Ct]);return yt}function mapDomain(ht,Et){const yt=ht.split("@");let Ct="";yt.length>1&&(Ct=yt[0]+"@",ht=yt[1]),ht=ht.replace(regexSeparators,".");const $t=ht.split("."),At=map$4($t,Et).join(".");return Ct+At}function ucs2decode(ht){const Et=[];let yt=0;const Ct=ht.length;for(;yt<Ct;){const $t=ht.charCodeAt(yt++);if($t>=55296&&$t<=56319&&yt<Ct){const At=ht.charCodeAt(yt++);(At&64512)==56320?Et.push((($t&1023)<<10)+(At&1023)+65536):(Et.push($t),yt--)}else Et.push($t)}return Et}const ucs2encode=ht=>String.fromCodePoint(...ht),basicToDigit=function(ht){return ht>=48&&ht<58?26+(ht-48):ht>=65&&ht<91?ht-65:ht>=97&&ht<123?ht-97:base},digitToBasic=function(ht,Et){return ht+22+75*(ht<26)-((Et!=0)<<5)},adapt=function(ht,Et,yt){let Ct=0;for(ht=yt?floor$1(ht/damp):ht>>1,ht+=floor$1(ht/Et);ht>baseMinusTMin*tMax>>1;Ct+=base)ht=floor$1(ht/baseMinusTMin);return floor$1(Ct+(baseMinusTMin+1)*ht/(ht+skew))},decode=function(ht){const Et=[],yt=ht.length;let Ct=0,$t=initialN,At=initialBias,Bt=ht.lastIndexOf(delimiter);Bt<0&&(Bt=0);for(let Dt=0;Dt<Bt;++Dt)ht.charCodeAt(Dt)>=128&&error("not-basic"),Et.push(ht.charCodeAt(Dt));for(let Dt=Bt>0?Bt+1:0;Dt<yt;){const Ft=Ct;for(let Mt=1,Nt=base;;Nt+=base){Dt>=yt&&error("invalid-input");const jt=basicToDigit(ht.charCodeAt(Dt++));jt>=base&&error("invalid-input"),jt>floor$1((maxInt-Ct)/Mt)&&error("overflow"),Ct+=jt*Mt;const zt=Nt<=At?tMin:Nt>=At+tMax?tMax:Nt-At;if(jt<zt)break;const Vt=base-zt;Mt>floor$1(maxInt/Vt)&&error("overflow"),Mt*=Vt}const kt=Et.length+1;At=adapt(Ct-Ft,kt,Ft==0),floor$1(Ct/kt)>maxInt-$t&&error("overflow"),$t+=floor$1(Ct/kt),Ct%=kt,Et.splice(Ct++,0,$t)}return String.fromCodePoint(...Et)},encode=function(ht){const Et=[];ht=ucs2decode(ht);const yt=ht.length;let Ct=initialN,$t=0,At=initialBias;for(const Ft of ht)Ft<128&&Et.push(stringFromCharCode(Ft));const Bt=Et.length;let Dt=Bt;for(Bt&&Et.push(delimiter);Dt<yt;){let Ft=maxInt;for(const Mt of ht)Mt>=Ct&&Mt<Ft&&(Ft=Mt);const kt=Dt+1;Ft-Ct>floor$1((maxInt-$t)/kt)&&error("overflow"),$t+=(Ft-Ct)*kt,Ct=Ft;for(const Mt of ht)if(Mt<Ct&&++$t>maxInt&&error("overflow"),Mt===Ct){let Nt=$t;for(let jt=base;;jt+=base){const zt=jt<=At?tMin:jt>=At+tMax?tMax:jt-At;if(Nt<zt)break;const Vt=Nt-zt,Kt=base-zt;Et.push(stringFromCharCode(digitToBasic(zt+Vt%Kt,0))),Nt=floor$1(Vt/Kt)}Et.push(stringFromCharCode(digitToBasic(Nt,0))),At=adapt($t,kt,Dt===Bt),$t=0,++Dt}++$t,++Ct}return Et.join("")},toUnicode=function(ht){return mapDomain(ht,function(Et){return regexPunycode.test(Et)?decode(Et.slice(4).toLowerCase()):Et})},toASCII=function(ht){return mapDomain(ht,function(Et){return regexNonASCII.test(Et)?"xn--"+encode(Et):Et})},punycode={version:"2.3.1",ucs2:{decode:ucs2decode,encode:ucs2encode},decode,encode,toASCII,toUnicode},cfg_default={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},cfg_zero={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},cfg_commonmark={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},config$1={default:cfg_default,zero:cfg_zero,commonmark:cfg_commonmark},BAD_PROTO_RE=/^(vbscript|javascript|file|data):/,GOOD_DATA_RE=/^data:image\/(gif|png|jpeg|webp);/;function validateLink(ht){const Et=ht.trim().toLowerCase();return BAD_PROTO_RE.test(Et)?GOOD_DATA_RE.test(Et):!0}const RECODE_HOSTNAME_FOR=["http:","https:","mailto:"];function normalizeLink(ht){const Et=urlParse(ht,!0);if(Et.hostname&&(!Et.protocol||RECODE_HOSTNAME_FOR.indexOf(Et.protocol)>=0))try{Et.hostname=punycode.toASCII(Et.hostname)}catch{}return encode$1(format$1(Et))}function normalizeLinkText(ht){const Et=urlParse(ht,!0);if(Et.hostname&&(!Et.protocol||RECODE_HOSTNAME_FOR.indexOf(Et.protocol)>=0))try{Et.hostname=punycode.toUnicode(Et.hostname)}catch{}return decode$1(format$1(Et),decode$1.defaultChars+"%")}function MarkdownIt(ht,Et){if(!(this instanceof MarkdownIt))return new MarkdownIt(ht,Et);Et||isString$1(ht)||(Et=ht||{},ht="default"),this.inline=new ParserInline,this.block=new ParserBlock,this.core=new Core,this.renderer=new Renderer,this.linkify=new LinkifyIt,this.validateLink=validateLink,this.normalizeLink=normalizeLink,this.normalizeLinkText=normalizeLinkText,this.utils=utils,this.helpers=assign$4({},helpers),this.options={},this.configure(ht),Et&&this.set(Et)}MarkdownIt.prototype.set=function(ht){return assign$4(this.options,ht),this};MarkdownIt.prototype.configure=function(ht){const Et=this;if(isString$1(ht)){const yt=ht;if(ht=config$1[yt],!ht)throw new Error('Wrong `markdown-it` preset "'+yt+'", check name')}if(!ht)throw new Error("Wrong `markdown-it` preset, can't be empty");return ht.options&&Et.set(ht.options),ht.components&&Object.keys(ht.components).forEach(function(yt){ht.components[yt].rules&&Et[yt].ruler.enableOnly(ht.components[yt].rules),ht.components[yt].rules2&&Et[yt].ruler2.enableOnly(ht.components[yt].rules2)}),this};MarkdownIt.prototype.enable=function(ht,Et){let yt=[];Array.isArray(ht)||(ht=[ht]),["core","block","inline"].forEach(function($t){yt=yt.concat(this[$t].ruler.enable(ht,!0))},this),yt=yt.concat(this.inline.ruler2.enable(ht,!0));const Ct=ht.filter(function($t){return yt.indexOf($t)<0});if(Ct.length&&!Et)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+Ct);return this};MarkdownIt.prototype.disable=function(ht,Et){let yt=[];Array.isArray(ht)||(ht=[ht]),["core","block","inline"].forEach(function($t){yt=yt.concat(this[$t].ruler.disable(ht,!0))},this),yt=yt.concat(this.inline.ruler2.disable(ht,!0));const Ct=ht.filter(function($t){return yt.indexOf($t)<0});if(Ct.length&&!Et)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+Ct);return this};MarkdownIt.prototype.use=function(ht){const Et=[this].concat(Array.prototype.slice.call(arguments,1));return ht.apply(ht,Et),this};MarkdownIt.prototype.parse=function(ht,Et){if(typeof ht!="string")throw new Error("Input data should be a String");const yt=new this.core.State(ht,this,Et);return this.core.process(yt),yt.tokens};MarkdownIt.prototype.render=function(ht,Et){return Et=Et||{},this.renderer.render(this.parse(ht,Et),this.options,Et)};MarkdownIt.prototype.parseInline=function(ht,Et){const yt=new this.core.State(ht,this,Et);return yt.inlineMode=!0,this.core.process(yt),yt.tokens};MarkdownIt.prototype.renderInline=function(ht,Et){return Et=Et||{},this.renderer.render(this.parseInline(ht,Et),this.options,Et)};function memo(ht,Et,yt){let Ct=yt.initialDeps??[],$t;return()=>{var At,Bt,Dt,Ft;let kt;yt.key&&((At=yt.debug)!=null&&At.call(yt))&&(kt=Date.now());const Mt=ht();if(!(Mt.length!==Ct.length||Mt.some((zt,Vt)=>Ct[Vt]!==zt)))return $t;Ct=Mt;let jt;if(yt.key&&((Bt=yt.debug)!=null&&Bt.call(yt))&&(jt=Date.now()),$t=Et(...Mt),yt.key&&((Dt=yt.debug)!=null&&Dt.call(yt))){const zt=Math.round((Date.now()-kt)*100)/100,Vt=Math.round((Date.now()-jt)*100)/100,Kt=Vt/16,Xt=(Qt,Zt)=>{for(Qt=String(Qt);Qt.length<Zt;)Qt=" "+Qt;return Qt};console.info(`%c⏱ ${Xt(Vt,5)} /${Xt(zt,5)} ms`,`
            font-size: .6rem;
            font-weight: bold;
            color: hsl(${Math.max(0,Math.min(120-120*Kt,120))}deg 100% 31%);`,yt==null?void 0:yt.key)}return(Ft=yt==null?void 0:yt.onChange)==null||Ft.call(yt,$t),$t}}function notUndefined(ht,Et){if(ht===void 0)throw new Error("Unexpected undefined");return ht}const approxEqual=(ht,Et)=>Math.abs(ht-Et)<1,debounce=(ht,Et,yt)=>{let Ct;return function(...$t){ht.clearTimeout(Ct),Ct=ht.setTimeout(()=>Et.apply(this,$t),yt)}},defaultKeyExtractor=ht=>ht,defaultRangeExtractor=ht=>{const Et=Math.max(ht.startIndex-ht.overscan,0),yt=Math.min(ht.endIndex+ht.overscan,ht.count-1),Ct=[];for(let $t=Et;$t<=yt;$t++)Ct.push($t);return Ct},observeElementRect=(ht,Et)=>{const yt=ht.scrollElement;if(!yt)return;const Ct=ht.targetWindow;if(!Ct)return;const $t=Bt=>{const{width:Dt,height:Ft}=Bt;Et({width:Math.round(Dt),height:Math.round(Ft)})};if($t(yt.getBoundingClientRect()),!Ct.ResizeObserver)return()=>{};const At=new Ct.ResizeObserver(Bt=>{const Dt=Bt[0];if(Dt!=null&&Dt.borderBoxSize){const Ft=Dt.borderBoxSize[0];if(Ft){$t({width:Ft.inlineSize,height:Ft.blockSize});return}}$t(yt.getBoundingClientRect())});return At.observe(yt,{box:"border-box"}),()=>{At.unobserve(yt)}},addEventListenerOptions={passive:!0},supportsScrollend=typeof window>"u"?!0:"onscrollend"in window,observeElementOffset=(ht,Et)=>{const yt=ht.scrollElement;if(!yt)return;const Ct=ht.targetWindow;if(!Ct)return;let $t=0;const At=supportsScrollend?()=>{}:debounce(Ct,()=>{Et($t,!1)},ht.options.isScrollingResetDelay),Bt=kt=>()=>{$t=yt[ht.options.horizontal?"scrollLeft":"scrollTop"],At(),Et($t,kt)},Dt=Bt(!0),Ft=Bt(!1);return Ft(),yt.addEventListener("scroll",Dt,addEventListenerOptions),yt.addEventListener("scrollend",Ft,addEventListenerOptions),()=>{yt.removeEventListener("scroll",Dt),yt.removeEventListener("scrollend",Ft)}},measureElement=(ht,Et,yt)=>{if(Et!=null&&Et.borderBoxSize){const Ct=Et.borderBoxSize[0];if(Ct)return Math.round(Ct[yt.options.horizontal?"inlineSize":"blockSize"])}return Math.round(ht.getBoundingClientRect()[yt.options.horizontal?"width":"height"])},elementScroll=(ht,{adjustments:Et=0,behavior:yt},Ct)=>{var $t,At;const Bt=ht+Et;(At=($t=Ct.scrollElement)==null?void 0:$t.scrollTo)==null||At.call($t,{[Ct.options.horizontal?"left":"top"]:Bt,behavior:yt})};class Virtualizer{constructor(Et){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let yt=null;const Ct=()=>yt||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:yt=new this.targetWindow.ResizeObserver($t=>{$t.forEach(At=>{this._measureElement(At.target,At)})}));return{disconnect:()=>{var $t;return($t=Ct())==null?void 0:$t.disconnect()},observe:$t=>{var At;return(At=Ct())==null?void 0:At.observe($t,{box:"border-box"})},unobserve:$t=>{var At;return(At=Ct())==null?void 0:At.unobserve($t)}}})(),this.range=null,this.setOptions=yt=>{Object.entries(yt).forEach(([Ct,$t])=>{typeof $t>"u"&&delete yt[Ct]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:defaultKeyExtractor,rangeExtractor:defaultRangeExtractor,onChange:()=>{},measureElement,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,...yt}},this.notify=(yt,Ct)=>{var $t,At;const{startIndex:Bt,endIndex:Dt}=this.range??{startIndex:void 0,endIndex:void 0},Ft=this.calculateRange();(yt||Bt!==(Ft==null?void 0:Ft.startIndex)||Dt!==(Ft==null?void 0:Ft.endIndex))&&((At=($t=this.options).onChange)==null||At.call($t,this,Ct))},this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(yt=>yt()),this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.observer.disconnect(),this.elementsCache.clear()},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var yt;const Ct=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==Ct){if(this.cleanup(),!Ct){this.notify(!1,!1);return}this.scrollElement=Ct,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((yt=this.scrollElement)==null?void 0:yt.window)??null,this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,$t=>{this.scrollRect=$t,this.notify(!1,!1)})),this.unsubs.push(this.options.observeElementOffset(this,($t,At)=>{this.scrollAdjustments=0,this.scrollDirection=At?this.getScrollOffset()<$t?"forward":"backward":null,this.scrollOffset=$t;const Bt=this.isScrolling;this.isScrolling=At,this.notify(Bt!==At,At)}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(yt,Ct)=>{const $t=new Map,At=new Map;for(let Bt=Ct-1;Bt>=0;Bt--){const Dt=yt[Bt];if($t.has(Dt.lane))continue;const Ft=At.get(Dt.lane);if(Ft==null||Dt.end>Ft.end?At.set(Dt.lane,Dt):Dt.end<Ft.end&&$t.set(Dt.lane,!0),$t.size===this.options.lanes)break}return At.size===this.options.lanes?Array.from(At.values()).sort((Bt,Dt)=>Bt.end===Dt.end?Bt.index-Dt.index:Bt.end-Dt.end)[0]:void 0},this.getMeasurementOptions=memo(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(yt,Ct,$t,At,Bt)=>(this.pendingMeasuredCacheIndexes=[],{count:yt,paddingStart:Ct,scrollMargin:$t,getItemKey:At,enabled:Bt}),{key:!1}),this.getMeasurements=memo(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:yt,paddingStart:Ct,scrollMargin:$t,getItemKey:At,enabled:Bt},Dt)=>{var Ft;if(!Bt)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(Nt=>{this.itemSizeCache.set(Nt.key,Nt.size)}));const kt=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const Mt=this.measurementsCache.slice(0,kt);for(let Nt=kt;Nt<yt;Nt++){let jt=(Ft=this.measurementsCache[Nt])==null?void 0:Ft.measureElement;jt||(jt=cr=>{const Er=At(Nt),pr=this.elementsCache.get(Er);if(!cr){pr&&(this.observer.unobserve(pr),this.elementsCache.delete(Er));return}pr!==cr&&(pr&&this.observer.unobserve(pr),this.observer.observe(cr),this.elementsCache.set(Er,cr)),cr.isConnected&&this.resizeItem(Nt,this.options.measureElement(cr,void 0,this))});const zt=At(Nt),Vt=this.options.lanes===1?Mt[Nt-1]:this.getFurthestMeasurement(Mt,Nt),Kt=Vt?Vt.end+this.options.gap:Ct+$t,Xt=Dt.get(zt),Qt=typeof Xt=="number"?Xt:this.options.estimateSize(Nt),Zt=Kt+Qt,dr=Vt?Vt.lane:Nt%this.options.lanes;Mt[Nt]={index:Nt,start:Kt,size:Qt,end:Zt,key:zt,lane:dr,measureElement:jt}}return this.measurementsCache=Mt,Mt},{key:!1,debug:()=>this.options.debug}),this.calculateRange=memo(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(yt,Ct,$t)=>this.range=yt.length>0&&Ct>0?calculateRange({measurements:yt,outerSize:Ct,scrollOffset:$t}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=memo(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(yt,Ct,$t,At)=>Ct===null?[]:yt({startIndex:Ct.startIndex,endIndex:Ct.endIndex,overscan:$t,count:At}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=yt=>{const Ct=this.options.indexAttribute,$t=yt.getAttribute(Ct);return $t?parseInt($t,10):(console.warn(`Missing attribute name '${Ct}={index}' on measured element.`),-1)},this._measureElement=(yt,Ct)=>{const $t=this.indexFromElement(yt),At=this.getMeasurements()[$t];if(!At||!yt.isConnected){this.elementsCache.forEach((Dt,Ft)=>{Dt===yt&&(this.observer.unobserve(yt),this.elementsCache.delete(Ft))});return}const Bt=this.elementsCache.get(At.key);Bt!==yt&&(Bt&&this.observer.unobserve(Bt),this.observer.observe(yt),this.elementsCache.set(At.key,yt)),this.resizeItem($t,this.options.measureElement(yt,Ct,this))},this.resizeItem=(yt,Ct)=>{const $t=this.getMeasurements()[yt];if(!$t)return;const At=this.itemSizeCache.get($t.key)??$t.size,Bt=Ct-At;Bt!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange($t,Bt,this):$t.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=Bt,behavior:void 0}),this.pendingMeasuredCacheIndexes.push($t.index),this.itemSizeCache=new Map(this.itemSizeCache.set($t.key,Ct)),this.notify(!0,!1))},this.measureElement=yt=>{yt&&this._measureElement(yt,void 0)},this.getVirtualItems=memo(()=>[this.getIndexes(),this.getMeasurements()],(yt,Ct)=>{const $t=[];for(let At=0,Bt=yt.length;At<Bt;At++){const Dt=yt[At],Ft=Ct[Dt];$t.push(Ft)}return $t},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=yt=>{const Ct=this.getMeasurements();if(Ct.length!==0)return notUndefined(Ct[findNearestBinarySearch(0,Ct.length-1,$t=>notUndefined(Ct[$t]).start,yt)])},this.getOffsetForAlignment=(yt,Ct)=>{const $t=this.getSize(),At=this.getScrollOffset();Ct==="auto"&&(yt<=At?Ct="start":yt>=At+$t?Ct="end":Ct="start"),Ct==="start"?yt=yt:Ct==="end"?yt=yt-$t:Ct==="center"&&(yt=yt-$t/2);const Bt=this.options.horizontal?"scrollWidth":"scrollHeight",Ft=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[Bt]:this.scrollElement[Bt]:0)-$t;return Math.max(Math.min(Ft,yt),0)},this.getOffsetForIndex=(yt,Ct="auto")=>{yt=Math.max(0,Math.min(yt,this.options.count-1));const $t=this.getMeasurements()[yt];if(!$t)return;const At=this.getSize(),Bt=this.getScrollOffset();if(Ct==="auto")if($t.end>=Bt+At-this.options.scrollPaddingEnd)Ct="end";else if($t.start<=Bt+this.options.scrollPaddingStart)Ct="start";else return[Bt,Ct];const Dt=Ct==="end"?$t.end+this.options.scrollPaddingEnd:$t.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(Dt,Ct),Ct]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(yt,{align:Ct="start",behavior:$t}={})=>{this.cancelScrollToIndex(),$t==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(yt,Ct),{adjustments:void 0,behavior:$t})},this.scrollToIndex=(yt,{align:Ct="auto",behavior:$t}={})=>{yt=Math.max(0,Math.min(yt,this.options.count-1)),this.cancelScrollToIndex(),$t==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const At=this.getOffsetForIndex(yt,Ct);if(!At)return;const[Bt,Dt]=At;this._scrollToOffset(Bt,{adjustments:void 0,behavior:$t}),$t!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(yt))){const[kt]=notUndefined(this.getOffsetForIndex(yt,Dt));approxEqual(kt,this.getScrollOffset())||this.scrollToIndex(yt,{align:Dt,behavior:$t})}else this.scrollToIndex(yt,{align:Dt,behavior:$t})}))},this.scrollBy=(yt,{behavior:Ct}={})=>{this.cancelScrollToIndex(),Ct==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+yt,{adjustments:void 0,behavior:Ct})},this.getTotalSize=()=>{var yt;const Ct=this.getMeasurements();let $t;return Ct.length===0?$t=this.options.paddingStart:$t=this.options.lanes===1?((yt=Ct[Ct.length-1])==null?void 0:yt.end)??0:Math.max(...Ct.slice(-this.options.lanes).map(At=>At.end)),$t-this.options.scrollMargin+this.options.paddingEnd},this._scrollToOffset=(yt,{adjustments:Ct,behavior:$t})=>{this.options.scrollToFn(yt,{behavior:$t,adjustments:Ct},this)},this.measure=()=>{var yt,Ct;this.itemSizeCache=new Map,(Ct=(yt=this.options).onChange)==null||Ct.call(yt,this,!1)},this.setOptions(Et)}}const findNearestBinarySearch=(ht,Et,yt,Ct)=>{for(;ht<=Et;){const $t=(ht+Et)/2|0,At=yt($t);if(At<Ct)ht=$t+1;else if(At>Ct)Et=$t-1;else return $t}return ht>0?ht-1:0};function calculateRange({measurements:ht,outerSize:Et,scrollOffset:yt}){const Ct=ht.length-1,At=findNearestBinarySearch(0,Ct,Dt=>ht[Dt].start,yt);let Bt=At;for(;Bt<Ct&&ht[Bt].end<yt+Et;)Bt++;return{startIndex:At,endIndex:Bt}}const useIsomorphicLayoutEffect=typeof document<"u"?reactExports.useLayoutEffect:reactExports.useEffect;function useVirtualizerBase(ht){const Et=reactExports.useReducer(()=>({}),{})[1],yt={...ht,onChange:($t,At)=>{var Bt;At?reactDomExports.flushSync(Et):Et(),(Bt=ht.onChange)==null||Bt.call(ht,$t,At)}},[Ct]=reactExports.useState(()=>new Virtualizer(yt));return Ct.setOptions(yt),reactExports.useEffect(()=>Ct._didMount(),[]),useIsomorphicLayoutEffect(()=>Ct._willUpdate()),Ct}function useVirtualizer(ht){return useVirtualizerBase({observeElementRect,observeElementOffset,scrollToFn:elementScroll,...ht})}var i$5=Object.defineProperty,d$5=(ht,Et,yt)=>Et in ht?i$5(ht,Et,{enumerable:!0,configurable:!0,writable:!0,value:yt}):ht[Et]=yt,r$3=(ht,Et,yt)=>(d$5(ht,typeof Et!="symbol"?Et+"":Et,yt),yt);let o$6=class{constructor(){r$3(this,"current",this.detect()),r$3(this,"handoffState","pending"),r$3(this,"currentId",0)}set(Et){this.current!==Et&&(this.handoffState="pending",this.currentId=0,this.current=Et)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},s$8=new o$6,l$5=(ht,Et)=>{s$8.isServer?reactExports.useEffect(ht,Et):reactExports.useLayoutEffect(ht,Et)};function s$7(ht){let Et=reactExports.useRef(ht);return l$5(()=>{Et.current=ht},[ht]),Et}function i$4(ht,Et){let[yt,Ct]=reactExports.useState(ht),$t=s$7(ht);return l$5(()=>Ct($t.current),[$t,Ct,...Et]),yt}let o$5=function(ht){let Et=s$7(ht);return React$8.useCallback((...yt)=>Et.current(...yt),[Et])};function T$3(ht,Et,yt){let[Ct,$t]=reactExports.useState(yt),At=ht!==void 0,Bt=reactExports.useRef(At),Dt=reactExports.useRef(!1),Ft=reactExports.useRef(!1);return At&&!Bt.current&&!Dt.current?(Dt.current=!0,Bt.current=At,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!At&&Bt.current&&!Ft.current&&(Ft.current=!0,Bt.current=At,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[At?ht:Ct,o$5(kt=>(At||$t(kt),Et==null?void 0:Et(kt)))]}function t$7(ht){typeof queueMicrotask=="function"?queueMicrotask(ht):Promise.resolve().then(ht).catch(Et=>setTimeout(()=>{throw Et}))}function o$4(){let ht=[],Et={addEventListener(yt,Ct,$t,At){return yt.addEventListener(Ct,$t,At),Et.add(()=>yt.removeEventListener(Ct,$t,At))},requestAnimationFrame(...yt){let Ct=requestAnimationFrame(...yt);return Et.add(()=>cancelAnimationFrame(Ct))},nextFrame(...yt){return Et.requestAnimationFrame(()=>Et.requestAnimationFrame(...yt))},setTimeout(...yt){let Ct=setTimeout(...yt);return Et.add(()=>clearTimeout(Ct))},microTask(...yt){let Ct={current:!0};return t$7(()=>{Ct.current&&yt[0]()}),Et.add(()=>{Ct.current=!1})},style(yt,Ct,$t){let At=yt.style.getPropertyValue(Ct);return Object.assign(yt.style,{[Ct]:$t}),this.add(()=>{Object.assign(yt.style,{[Ct]:At})})},group(yt){let Ct=o$4();return yt(Ct),this.add(()=>Ct.dispose())},add(yt){return ht.push(yt),()=>{let Ct=ht.indexOf(yt);if(Ct>=0)for(let $t of ht.splice(Ct,1))$t()}},dispose(){for(let yt of ht.splice(0))yt()}};return Et}function p$4(){let[ht]=reactExports.useState(o$4);return reactExports.useEffect(()=>()=>ht.dispose(),[ht]),ht}function s$6(){let ht=typeof document>"u";return"useSyncExternalStore"in e$9?(Et=>Et.useSyncExternalStore)(e$9)(()=>()=>{},()=>!1,()=>!ht):!1}function l$4(){let ht=s$6(),[Et,yt]=reactExports.useState(s$8.isHandoffComplete);return Et&&s$8.isHandoffComplete===!1&&yt(!1),reactExports.useEffect(()=>{Et!==!0&&yt(!0)},[Et]),reactExports.useEffect(()=>s$8.handoff(),[]),ht?!1:Et}var o$3;let I$5=(o$3=React$8.useId)!=null?o$3:function(){let ht=l$4(),[Et,yt]=React$8.useState(ht?()=>s$8.nextId():null);return l$5(()=>{Et===null&&yt(s$8.nextId())},[Et]),Et!=null?""+Et:void 0};function u$7(ht,Et,...yt){if(ht in Et){let $t=Et[ht];return typeof $t=="function"?$t(...yt):$t}let Ct=new Error(`Tried to handle "${ht}" but there is no handler defined. Only defined handlers are: ${Object.keys(Et).map($t=>`"${$t}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(Ct,u$7),Ct}function o$2(ht){return s$8.isServer?null:ht instanceof Node?ht.ownerDocument:ht!=null&&ht.hasOwnProperty("current")&&ht.current instanceof Node?ht.current.ownerDocument:document}let c$5=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(ht=>`${ht}:not([tabindex='-1'])`).join(",");var M$2=(ht=>(ht[ht.First=1]="First",ht[ht.Previous=2]="Previous",ht[ht.Next=4]="Next",ht[ht.Last=8]="Last",ht[ht.WrapAround=16]="WrapAround",ht[ht.NoScroll=32]="NoScroll",ht))(M$2||{}),N$2=(ht=>(ht[ht.Error=0]="Error",ht[ht.Overflow=1]="Overflow",ht[ht.Success=2]="Success",ht[ht.Underflow=3]="Underflow",ht))(N$2||{}),F$3=(ht=>(ht[ht.Previous=-1]="Previous",ht[ht.Next=1]="Next",ht))(F$3||{});function f$6(ht=document.body){return ht==null?[]:Array.from(ht.querySelectorAll(c$5)).sort((Et,yt)=>Math.sign((Et.tabIndex||Number.MAX_SAFE_INTEGER)-(yt.tabIndex||Number.MAX_SAFE_INTEGER)))}var T$2=(ht=>(ht[ht.Strict=0]="Strict",ht[ht.Loose=1]="Loose",ht))(T$2||{});function h$2(ht,Et=0){var yt;return ht===((yt=o$2(ht))==null?void 0:yt.body)?!1:u$7(Et,{0(){return ht.matches(c$5)},1(){let Ct=ht;for(;Ct!==null;){if(Ct.matches(c$5))return!0;Ct=Ct.parentElement}return!1}})}var w$1=(ht=>(ht[ht.Keyboard=0]="Keyboard",ht[ht.Mouse=1]="Mouse",ht))(w$1||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",ht=>{ht.metaKey||ht.altKey||ht.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",ht=>{ht.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:ht.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function y$3(ht){ht==null||ht.focus({preventScroll:!0})}let S$5=["textarea","input"].join(",");function H(ht){var Et,yt;return(yt=(Et=ht==null?void 0:ht.matches)==null?void 0:Et.call(ht,S$5))!=null?yt:!1}function I$4(ht,Et=yt=>yt){return ht.slice().sort((yt,Ct)=>{let $t=Et(yt),At=Et(Ct);if($t===null||At===null)return 0;let Bt=$t.compareDocumentPosition(At);return Bt&Node.DOCUMENT_POSITION_FOLLOWING?-1:Bt&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function O$1(ht,Et,{sorted:yt=!0,relativeTo:Ct=null,skipElements:$t=[]}={}){let At=Array.isArray(ht)?ht.length>0?ht[0].ownerDocument:document:ht.ownerDocument,Bt=Array.isArray(ht)?yt?I$4(ht):ht:f$6(ht);$t.length>0&&Bt.length>1&&(Bt=Bt.filter(zt=>!$t.includes(zt))),Ct=Ct??At.activeElement;let Dt=(()=>{if(Et&5)return 1;if(Et&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),Ft=(()=>{if(Et&1)return 0;if(Et&2)return Math.max(0,Bt.indexOf(Ct))-1;if(Et&4)return Math.max(0,Bt.indexOf(Ct))+1;if(Et&8)return Bt.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),kt=Et&32?{preventScroll:!0}:{},Mt=0,Nt=Bt.length,jt;do{if(Mt>=Nt||Mt+Nt<=0)return 0;let zt=Ft+Mt;if(Et&16)zt=(zt+Nt)%Nt;else{if(zt<0)return 3;if(zt>=Nt)return 1}jt=Bt[zt],jt==null||jt.focus(kt),Mt+=Dt}while(jt!==At.activeElement);return Et&6&&H(jt)&&jt.select(),2}function t$6(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function i$3(){return/Android/gi.test(window.navigator.userAgent)}function n$3(){return t$6()||i$3()}function d$4(ht,Et,yt){let Ct=s$7(Et);reactExports.useEffect(()=>{function $t(At){Ct.current(At)}return document.addEventListener(ht,$t,yt),()=>document.removeEventListener(ht,$t,yt)},[ht,yt])}function s$5(ht,Et,yt){let Ct=s$7(Et);reactExports.useEffect(()=>{function $t(At){Ct.current(At)}return window.addEventListener(ht,$t,yt),()=>window.removeEventListener(ht,$t,yt)},[ht,yt])}function y$2(ht,Et,yt=!0){let Ct=reactExports.useRef(!1);reactExports.useEffect(()=>{requestAnimationFrame(()=>{Ct.current=yt})},[yt]);function $t(Bt,Dt){if(!Ct.current||Bt.defaultPrevented)return;let Ft=Dt(Bt);if(Ft===null||!Ft.getRootNode().contains(Ft)||!Ft.isConnected)return;let kt=function Mt(Nt){return typeof Nt=="function"?Mt(Nt()):Array.isArray(Nt)||Nt instanceof Set?Nt:[Nt]}(ht);for(let Mt of kt){if(Mt===null)continue;let Nt=Mt instanceof HTMLElement?Mt:Mt.current;if(Nt!=null&&Nt.contains(Ft)||Bt.composed&&Bt.composedPath().includes(Nt))return}return!h$2(Ft,T$2.Loose)&&Ft.tabIndex!==-1&&Bt.preventDefault(),Et(Bt,Ft)}let At=reactExports.useRef(null);d$4("pointerdown",Bt=>{var Dt,Ft;Ct.current&&(At.current=((Ft=(Dt=Bt.composedPath)==null?void 0:Dt.call(Bt))==null?void 0:Ft[0])||Bt.target)},!0),d$4("mousedown",Bt=>{var Dt,Ft;Ct.current&&(At.current=((Ft=(Dt=Bt.composedPath)==null?void 0:Dt.call(Bt))==null?void 0:Ft[0])||Bt.target)},!0),d$4("click",Bt=>{n$3()||At.current&&($t(Bt,()=>At.current),At.current=null)},!0),d$4("touchend",Bt=>$t(Bt,()=>Bt.target instanceof HTMLElement?Bt.target:null),!0),s$5("blur",Bt=>$t(Bt,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function n$2(...ht){return reactExports.useMemo(()=>o$2(...ht),[...ht])}function i$2(ht){var Et;if(ht.type)return ht.type;let yt=(Et=ht.as)!=null?Et:"button";if(typeof yt=="string"&&yt.toLowerCase()==="button")return"button"}function T$1(ht,Et){let[yt,Ct]=reactExports.useState(()=>i$2(ht));return l$5(()=>{Ct(i$2(ht))},[ht.type,ht.as]),l$5(()=>{yt||Et.current&&Et.current instanceof HTMLButtonElement&&!Et.current.hasAttribute("type")&&Ct("button")},[yt,Et]),yt}let u$6=Symbol();function T(ht,Et=!0){return Object.assign(ht,{[u$6]:Et})}function y$1(...ht){let Et=reactExports.useRef(ht);reactExports.useEffect(()=>{Et.current=ht},[ht]);let yt=o$5(Ct=>{for(let $t of Et.current)$t!=null&&(typeof $t=="function"?$t(Ct):$t.current=Ct)});return ht.every(Ct=>Ct==null||(Ct==null?void 0:Ct[u$6]))?void 0:yt}function t$5(ht){return[ht.screenX,ht.screenY]}function u$5(){let ht=reactExports.useRef([-1,-1]);return{wasMoved(Et){let yt=t$5(Et);return ht.current[0]===yt[0]&&ht.current[1]===yt[1]?!1:(ht.current=yt,!0)},update(Et){ht.current=t$5(Et)}}}function F$2({container:ht,accept:Et,walk:yt,enabled:Ct=!0}){let $t=reactExports.useRef(Et),At=reactExports.useRef(yt);reactExports.useEffect(()=>{$t.current=Et,At.current=yt},[Et,yt]),l$5(()=>{if(!ht||!Ct)return;let Bt=o$2(ht);if(!Bt)return;let Dt=$t.current,Ft=At.current,kt=Object.assign(Nt=>Dt(Nt),{acceptNode:Dt}),Mt=Bt.createTreeWalker(ht,NodeFilter.SHOW_ELEMENT,kt,!1);for(;Mt.nextNode();)Ft(Mt.currentNode)},[ht,Ct,$t,At])}function m$2(ht,Et){let yt=reactExports.useRef([]),Ct=o$5(ht);reactExports.useEffect(()=>{let $t=[...yt.current];for(let[At,Bt]of Et.entries())if(yt.current[At]!==Bt){let Dt=Ct(Et,$t);return yt.current=Et,Dt}},[Ct,...Et])}function t$4(...ht){return Array.from(new Set(ht.flatMap(Et=>typeof Et=="string"?Et.split(" "):[]))).filter(Boolean).join(" ")}var O=(ht=>(ht[ht.None=0]="None",ht[ht.RenderStrategy=1]="RenderStrategy",ht[ht.Static=2]="Static",ht))(O||{}),v$1=(ht=>(ht[ht.Unmount=0]="Unmount",ht[ht.Hidden=1]="Hidden",ht))(v$1||{});function C({ourProps:ht,theirProps:Et,slot:yt,defaultTag:Ct,features:$t,visible:At=!0,name:Bt,mergeRefs:Dt}){Dt=Dt??k;let Ft=R(Et,ht);if(At)return m$1(Ft,yt,Ct,Bt,Dt);let kt=$t??0;if(kt&2){let{static:Mt=!1,...Nt}=Ft;if(Mt)return m$1(Nt,yt,Ct,Bt,Dt)}if(kt&1){let{unmount:Mt=!0,...Nt}=Ft;return u$7(Mt?0:1,{0(){return null},1(){return m$1({...Nt,hidden:!0,style:{display:"none"}},yt,Ct,Bt,Dt)}})}return m$1(Ft,yt,Ct,Bt,Dt)}function m$1(ht,Et={},yt,Ct,$t){let{as:At=yt,children:Bt,refName:Dt="ref",...Ft}=F$1(ht,["unmount","static"]),kt=ht.ref!==void 0?{[Dt]:ht.ref}:{},Mt=typeof Bt=="function"?Bt(Et):Bt;"className"in Ft&&Ft.className&&typeof Ft.className=="function"&&(Ft.className=Ft.className(Et));let Nt={};if(Et){let jt=!1,zt=[];for(let[Vt,Kt]of Object.entries(Et))typeof Kt=="boolean"&&(jt=!0),Kt===!0&&zt.push(Vt);jt&&(Nt["data-headlessui-state"]=zt.join(" "))}if(At===reactExports.Fragment&&Object.keys(x$1(Ft)).length>0){if(!reactExports.isValidElement(Mt)||Array.isArray(Mt)&&Mt.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${Ct} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(Ft).map(Kt=>`  - ${Kt}`).join(`
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(Kt=>`  - ${Kt}`).join(`
`)].join(`
`));let jt=Mt.props,zt=typeof(jt==null?void 0:jt.className)=="function"?(...Kt)=>t$4(jt==null?void 0:jt.className(...Kt),Ft.className):t$4(jt==null?void 0:jt.className,Ft.className),Vt=zt?{className:zt}:{};return reactExports.cloneElement(Mt,Object.assign({},R(Mt.props,x$1(F$1(Ft,["ref"]))),Nt,kt,{ref:$t(Mt.ref,kt.ref)},Vt))}return reactExports.createElement(At,Object.assign({},F$1(Ft,["ref"]),At!==reactExports.Fragment&&kt,At!==reactExports.Fragment&&Nt),Mt)}function k(...ht){return ht.every(Et=>Et==null)?void 0:Et=>{for(let yt of ht)yt!=null&&(typeof yt=="function"?yt(Et):yt.current=Et)}}function R(...ht){if(ht.length===0)return{};if(ht.length===1)return ht[0];let Et={},yt={};for(let Ct of ht)for(let $t in Ct)$t.startsWith("on")&&typeof Ct[$t]=="function"?(yt[$t]!=null||(yt[$t]=[]),yt[$t].push(Ct[$t])):Et[$t]=Ct[$t];if(Et.disabled||Et["aria-disabled"])return Object.assign(Et,Object.fromEntries(Object.keys(yt).map(Ct=>[Ct,void 0])));for(let Ct in yt)Object.assign(Et,{[Ct]($t,...At){let Bt=yt[Ct];for(let Dt of Bt){if(($t instanceof Event||($t==null?void 0:$t.nativeEvent)instanceof Event)&&$t.defaultPrevented)return;Dt($t,...At)}}});return Et}function U$2(ht){var Et;return Object.assign(reactExports.forwardRef(ht),{displayName:(Et=ht.displayName)!=null?Et:ht.name})}function x$1(ht){let Et=Object.assign({},ht);for(let yt in Et)Et[yt]===void 0&&delete Et[yt];return Et}function F$1(ht,Et=[]){let yt=Object.assign({},ht);for(let Ct of Et)Ct in yt&&delete yt[Ct];return yt}let p$3="div";var s$4=(ht=>(ht[ht.None=1]="None",ht[ht.Focusable=2]="Focusable",ht[ht.Hidden=4]="Hidden",ht))(s$4||{});function l$3(ht,Et){var yt;let{features:Ct=1,...$t}=ht,At={ref:Et,"aria-hidden":(Ct&2)===2?!0:(yt=$t["aria-hidden"])!=null?yt:void 0,hidden:(Ct&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(Ct&4)===4&&(Ct&2)!==2&&{display:"none"}}};return C({ourProps:At,theirProps:$t,slot:{},defaultTag:p$3,name:"Hidden"})}let u$4=U$2(l$3),n$1=reactExports.createContext(null);n$1.displayName="OpenClosedContext";var d$3=(ht=>(ht[ht.Open=1]="Open",ht[ht.Closed=2]="Closed",ht[ht.Closing=4]="Closing",ht[ht.Opening=8]="Opening",ht))(d$3||{});function u$3(){return reactExports.useContext(n$1)}function s$3({value:ht,children:Et}){return React$8.createElement(n$1.Provider,{value:ht},Et)}function t$3(ht){function Et(){document.readyState!=="loading"&&(ht(),document.removeEventListener("DOMContentLoaded",Et))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",Et),Et())}let t$2=[];t$3(()=>{function ht(Et){Et.target instanceof HTMLElement&&Et.target!==document.body&&t$2[0]!==Et.target&&(t$2.unshift(Et.target),t$2=t$2.filter(yt=>yt!=null&&yt.isConnected),t$2.splice(10))}window.addEventListener("click",ht,{capture:!0}),window.addEventListener("mousedown",ht,{capture:!0}),window.addEventListener("focus",ht,{capture:!0}),document.body.addEventListener("click",ht,{capture:!0}),document.body.addEventListener("mousedown",ht,{capture:!0}),document.body.addEventListener("focus",ht,{capture:!0})});function r$2(ht){let Et=ht.parentElement,yt=null;for(;Et&&!(Et instanceof HTMLFieldSetElement);)Et instanceof HTMLLegendElement&&(yt=Et),Et=Et.parentElement;let Ct=(Et==null?void 0:Et.getAttribute("disabled"))==="";return Ct&&i$1(yt)?!1:Ct}function i$1(ht){if(!ht)return!1;let Et=ht.previousElementSibling;for(;Et!==null;){if(Et instanceof HTMLLegendElement)return!1;Et=Et.previousElementSibling}return!0}function u$2(ht){throw new Error("Unexpected object: "+ht)}var c$4=(ht=>(ht[ht.First=0]="First",ht[ht.Previous=1]="Previous",ht[ht.Next=2]="Next",ht[ht.Last=3]="Last",ht[ht.Specific=4]="Specific",ht[ht.Nothing=5]="Nothing",ht))(c$4||{});function f$5(ht,Et){let yt=Et.resolveItems();if(yt.length<=0)return null;let Ct=Et.resolveActiveIndex(),$t=Ct??-1;switch(ht.focus){case 0:{for(let At=0;At<yt.length;++At)if(!Et.resolveDisabled(yt[At],At,yt))return At;return Ct}case 1:{for(let At=$t-1;At>=0;--At)if(!Et.resolveDisabled(yt[At],At,yt))return At;return Ct}case 2:{for(let At=$t+1;At<yt.length;++At)if(!Et.resolveDisabled(yt[At],At,yt))return At;return Ct}case 3:{for(let At=yt.length-1;At>=0;--At)if(!Et.resolveDisabled(yt[At],At,yt))return At;return Ct}case 4:{for(let At=0;At<yt.length;++At)if(Et.resolveId(yt[At],At,yt)===ht.id)return At;return Ct}case 5:return null;default:u$2(ht)}}function e$1(ht={},Et=null,yt=[]){for(let[Ct,$t]of Object.entries(ht))o$1(yt,f$4(Et,Ct),$t);return yt}function f$4(ht,Et){return ht?ht+"["+Et+"]":Et}function o$1(ht,Et,yt){if(Array.isArray(yt))for(let[Ct,$t]of yt.entries())o$1(ht,f$4(Et,Ct.toString()),$t);else yt instanceof Date?ht.push([Et,yt.toISOString()]):typeof yt=="boolean"?ht.push([Et,yt?"1":"0"]):typeof yt=="string"?ht.push([Et,yt]):typeof yt=="number"?ht.push([Et,`${yt}`]):yt==null?ht.push([Et,""]):e$1(yt,Et,ht)}function p$2(ht){var Et,yt;let Ct=(Et=ht==null?void 0:ht.form)!=null?Et:ht.closest("form");if(Ct){for(let $t of Ct.elements)if($t!==ht&&($t.tagName==="INPUT"&&$t.type==="submit"||$t.tagName==="BUTTON"&&$t.type==="submit"||$t.nodeName==="INPUT"&&$t.type==="image")){$t.click();return}(yt=Ct.requestSubmit)==null||yt.call(Ct)}}var o=(ht=>(ht.Space=" ",ht.Enter="Enter",ht.Escape="Escape",ht.Backspace="Backspace",ht.Delete="Delete",ht.ArrowLeft="ArrowLeft",ht.ArrowUp="ArrowUp",ht.ArrowRight="ArrowRight",ht.ArrowDown="ArrowDown",ht.Home="Home",ht.End="End",ht.PageUp="PageUp",ht.PageDown="PageDown",ht.Tab="Tab",ht))(o||{}),define_process_env_default={},$e$1=(ht=>(ht[ht.Open=0]="Open",ht[ht.Closed=1]="Closed",ht))($e$1||{}),qe$2=(ht=>(ht[ht.Single=0]="Single",ht[ht.Multi=1]="Multi",ht))(qe$2||{}),ze$1=(ht=>(ht[ht.Pointer=0]="Pointer",ht[ht.Focus=1]="Focus",ht[ht.Other=2]="Other",ht))(ze$1||{}),Ye$1=(ht=>(ht[ht.OpenCombobox=0]="OpenCombobox",ht[ht.CloseCombobox=1]="CloseCombobox",ht[ht.GoToOption=2]="GoToOption",ht[ht.RegisterOption=3]="RegisterOption",ht[ht.UnregisterOption=4]="UnregisterOption",ht[ht.RegisterLabel=5]="RegisterLabel",ht[ht.SetActivationTrigger=6]="SetActivationTrigger",ht[ht.UpdateVirtualOptions=7]="UpdateVirtualOptions",ht))(Ye$1||{});function de$1(ht,Et=yt=>yt){let yt=ht.activeOptionIndex!==null?ht.options[ht.activeOptionIndex]:null,Ct=Et(ht.options.slice()),$t=Ct.length>0&&Ct[0].dataRef.current.order!==null?Ct.sort((Bt,Dt)=>Bt.dataRef.current.order-Dt.dataRef.current.order):I$4(Ct,Bt=>Bt.dataRef.current.domRef.current),At=yt?$t.indexOf(yt):null;return At===-1&&(At=null),{options:$t,activeOptionIndex:At}}let Qe$1={1(ht){var Et;return(Et=ht.dataRef.current)!=null&&Et.disabled||ht.comboboxState===1?ht:{...ht,activeOptionIndex:null,comboboxState:1}},0(ht){var Et,yt;if((Et=ht.dataRef.current)!=null&&Et.disabled||ht.comboboxState===0)return ht;if((yt=ht.dataRef.current)!=null&&yt.value){let Ct=ht.dataRef.current.calculateIndex(ht.dataRef.current.value);if(Ct!==-1)return{...ht,activeOptionIndex:Ct,comboboxState:0}}return{...ht,comboboxState:0}},2(ht,Et){var yt,Ct,$t,At,Bt;if((yt=ht.dataRef.current)!=null&&yt.disabled||(Ct=ht.dataRef.current)!=null&&Ct.optionsRef.current&&!(($t=ht.dataRef.current)!=null&&$t.optionsPropsRef.current.static)&&ht.comboboxState===1)return ht;if(ht.virtual){let Mt=Et.focus===c$4.Specific?Et.idx:f$5(Et,{resolveItems:()=>ht.virtual.options,resolveActiveIndex:()=>{var jt,zt;return(zt=(jt=ht.activeOptionIndex)!=null?jt:ht.virtual.options.findIndex(Vt=>!ht.virtual.disabled(Vt)))!=null?zt:null},resolveDisabled:ht.virtual.disabled,resolveId(){throw new Error("Function not implemented.")}}),Nt=(At=Et.trigger)!=null?At:2;return ht.activeOptionIndex===Mt&&ht.activationTrigger===Nt?ht:{...ht,activeOptionIndex:Mt,activationTrigger:Nt}}let Dt=de$1(ht);if(Dt.activeOptionIndex===null){let Mt=Dt.options.findIndex(Nt=>!Nt.dataRef.current.disabled);Mt!==-1&&(Dt.activeOptionIndex=Mt)}let Ft=Et.focus===c$4.Specific?Et.idx:f$5(Et,{resolveItems:()=>Dt.options,resolveActiveIndex:()=>Dt.activeOptionIndex,resolveId:Mt=>Mt.id,resolveDisabled:Mt=>Mt.dataRef.current.disabled}),kt=(Bt=Et.trigger)!=null?Bt:2;return ht.activeOptionIndex===Ft&&ht.activationTrigger===kt?ht:{...ht,...Dt,activeOptionIndex:Ft,activationTrigger:kt}},3:(ht,Et)=>{var yt,Ct,$t;if((yt=ht.dataRef.current)!=null&&yt.virtual)return{...ht,options:[...ht.options,Et.payload]};let At=Et.payload,Bt=de$1(ht,Ft=>(Ft.push(At),Ft));ht.activeOptionIndex===null&&(Ct=ht.dataRef.current)!=null&&Ct.isSelected(Et.payload.dataRef.current.value)&&(Bt.activeOptionIndex=Bt.options.indexOf(At));let Dt={...ht,...Bt,activationTrigger:2};return($t=ht.dataRef.current)!=null&&$t.__demoMode&&ht.dataRef.current.value===void 0&&(Dt.activeOptionIndex=0),Dt},4:(ht,Et)=>{var yt;if((yt=ht.dataRef.current)!=null&&yt.virtual)return{...ht,options:ht.options.filter($t=>$t.id!==Et.id)};let Ct=de$1(ht,$t=>{let At=$t.findIndex(Bt=>Bt.id===Et.id);return At!==-1&&$t.splice(At,1),$t});return{...ht,...Ct,activationTrigger:2}},5:(ht,Et)=>ht.labelId===Et.id?ht:{...ht,labelId:Et.id},6:(ht,Et)=>ht.activationTrigger===Et.trigger?ht:{...ht,activationTrigger:Et.trigger},7:(ht,Et)=>{var yt;if(((yt=ht.virtual)==null?void 0:yt.options)===Et.options)return ht;let Ct=ht.activeOptionIndex;if(ht.activeOptionIndex!==null){let $t=Et.options.indexOf(ht.virtual.options[ht.activeOptionIndex]);$t!==-1?Ct=$t:Ct=null}return{...ht,activeOptionIndex:Ct,virtual:Object.assign({},ht.virtual,{options:Et.options})}}},be=reactExports.createContext(null);be.displayName="ComboboxActionsContext";function ee$1(ht){let Et=reactExports.useContext(be);if(Et===null){let yt=new Error(`<${ht} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(yt,ee$1),yt}return Et}let Ce=reactExports.createContext(null);function Ze$1(ht){var Et;let yt=j$1("VirtualProvider"),[Ct,$t]=reactExports.useMemo(()=>{let Ft=yt.optionsRef.current;if(!Ft)return[0,0];let kt=window.getComputedStyle(Ft);return[parseFloat(kt.paddingBlockStart||kt.paddingTop),parseFloat(kt.paddingBlockEnd||kt.paddingBottom)]},[yt.optionsRef.current]),At=useVirtualizer({scrollPaddingStart:Ct,scrollPaddingEnd:$t,count:yt.virtual.options.length,estimateSize(){return 40},getScrollElement(){var Ft;return(Ft=yt.optionsRef.current)!=null?Ft:null},overscan:12}),[Bt,Dt]=reactExports.useState(0);return l$5(()=>{Dt(Ft=>Ft+1)},[(Et=yt.virtual)==null?void 0:Et.options]),React$8.createElement(Ce.Provider,{value:At},React$8.createElement("div",{style:{position:"relative",width:"100%",height:`${At.getTotalSize()}px`},ref:Ft=>{if(Ft){if(typeof process$1$1<"u"&&define_process_env_default.JEST_WORKER_ID!==void 0||yt.activationTrigger===0)return;yt.activeOptionIndex!==null&&yt.virtual.options.length>yt.activeOptionIndex&&At.scrollToIndex(yt.activeOptionIndex)}}},At.getVirtualItems().map(Ft=>{var kt;return React$8.createElement(reactExports.Fragment,{key:Ft.key},React$8.cloneElement((kt=ht.children)==null?void 0:kt.call(ht,{option:yt.virtual.options[Ft.index],open:yt.comboboxState===0}),{key:`${Bt}-${Ft.key}`,"data-index":Ft.index,"aria-setsize":yt.virtual.options.length,"aria-posinset":Ft.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${Ft.start}px)`,overflowAnchor:"none"}}))})))}let ce=reactExports.createContext(null);ce.displayName="ComboboxDataContext";function j$1(ht){let Et=reactExports.useContext(ce);if(Et===null){let yt=new Error(`<${ht} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(yt,j$1),yt}return Et}function et$1(ht,Et){return u$7(Et.type,Qe$1,ht,Et)}let tt$1=reactExports.Fragment;function ot(ht,Et){let{value:yt,defaultValue:Ct,onChange:$t,form:At,name:Bt,by:Dt=null,disabled:Ft=!1,__demoMode:kt=!1,nullable:Mt=!1,multiple:Nt=!1,immediate:jt=!1,virtual:zt=null,...Vt}=ht,Kt=!1,Xt=null,[Qt=Nt?[]:void 0,Zt]=T$3(yt,$t,Ct),[dr,cr]=reactExports.useReducer(et$1,{dataRef:reactExports.createRef(),comboboxState:kt?0:1,options:[],virtual:null,activeOptionIndex:null,activationTrigger:2,labelId:null}),Er=reactExports.useRef(!1),pr=reactExports.useRef({static:!1,hold:!1}),gr=reactExports.useRef(null),vr=reactExports.useRef(null),yr=reactExports.useRef(null),xr=reactExports.useRef(null),rr=o$5(typeof Dt=="string"?(Rr,wr)=>{let Sr=Dt;return(Rr==null?void 0:Rr[Sr])===(wr==null?void 0:wr[Sr])}:Dt??((Rr,wr)=>Rr===wr)),Lt=o$5(Rr=>dr.options.findIndex(wr=>rr(wr.dataRef.current.value,Rr))),Ht=reactExports.useCallback(Rr=>u$7(Gt.mode,{1:()=>Qt.some(wr=>rr(wr,Rr)),0:()=>rr(Qt,Rr)}),[Qt]),Wt=o$5(Rr=>dr.activeOptionIndex===Lt(Rr)),Gt=reactExports.useMemo(()=>({...dr,immediate:Kt,optionsPropsRef:pr,labelRef:gr,inputRef:vr,buttonRef:yr,optionsRef:xr,value:Qt,defaultValue:Ct,disabled:Ft,mode:Nt?1:0,virtual:dr.virtual,get activeOptionIndex(){if(Er.current&&dr.activeOptionIndex===null&&dr.options.length>0){let Rr=dr.options.findIndex(wr=>!wr.dataRef.current.disabled);if(Rr!==-1)return Rr}return dr.activeOptionIndex},calculateIndex:Lt,compare:rr,isSelected:Ht,isActive:Wt,nullable:Mt,__demoMode:kt}),[Qt,Ct,Ft,Nt,Mt,kt,dr,Xt]);l$5(()=>{},[Xt,void 0]),l$5(()=>{dr.dataRef.current=Gt},[Gt]),y$2([Gt.buttonRef,Gt.inputRef,Gt.optionsRef],()=>Tr.closeCombobox(),Gt.comboboxState===0);let Yt=reactExports.useMemo(()=>{var Rr,wr,Sr;return{open:Gt.comboboxState===0,disabled:Ft,activeIndex:Gt.activeOptionIndex,activeOption:Gt.activeOptionIndex===null?null:Gt.virtual?Gt.virtual.options[(Rr=Gt.activeOptionIndex)!=null?Rr:0]:(Sr=(wr=Gt.options[Gt.activeOptionIndex])==null?void 0:wr.dataRef.current.value)!=null?Sr:null,value:Qt}},[Gt,Ft,Qt]),er=o$5(()=>{if(Gt.activeOptionIndex!==null){if(Gt.virtual)_r(Gt.virtual.options[Gt.activeOptionIndex]);else{let{dataRef:Rr}=Gt.options[Gt.activeOptionIndex];_r(Rr.current.value)}Tr.goToOption(c$4.Specific,Gt.activeOptionIndex)}}),lr=o$5(()=>{cr({type:0}),Er.current=!0}),Jt=o$5(()=>{cr({type:1}),Er.current=!1}),Ut=o$5((Rr,wr,Sr)=>(Er.current=!1,Rr===c$4.Specific?cr({type:2,focus:c$4.Specific,idx:wr,trigger:Sr}):cr({type:2,focus:Rr,trigger:Sr}))),ir=o$5((Rr,wr)=>(cr({type:3,payload:{id:Rr,dataRef:wr}}),()=>{Gt.isActive(wr.current.value)&&(Er.current=!0),cr({type:4,id:Rr})})),Cr=o$5(Rr=>(cr({type:5,id:Rr}),()=>cr({type:5,id:null}))),_r=o$5(Rr=>u$7(Gt.mode,{0(){return Zt==null?void 0:Zt(Rr)},1(){let wr=Gt.value.slice(),Sr=wr.findIndex(Br=>rr(Br,Rr));return Sr===-1?wr.push(Rr):wr.splice(Sr,1),Zt==null?void 0:Zt(wr)}})),$r=o$5(Rr=>{cr({type:6,trigger:Rr})}),Tr=reactExports.useMemo(()=>({onChange:_r,registerOption:ir,registerLabel:Cr,goToOption:Ut,closeCombobox:Jt,openCombobox:lr,setActivationTrigger:$r,selectActiveOption:er}),[]),Dr=Et===null?{}:{ref:Et},Ar=reactExports.useRef(null),Fr=p$4();return reactExports.useEffect(()=>{Ar.current&&Ct!==void 0&&Fr.addEventListener(Ar.current,"reset",()=>{Zt==null||Zt(Ct)})},[Ar,Zt]),React$8.createElement(be.Provider,{value:Tr},React$8.createElement(ce.Provider,{value:Gt},React$8.createElement(s$3,{value:u$7(Gt.comboboxState,{0:d$3.Open,1:d$3.Closed})},Bt!=null&&Qt!=null&&e$1({[Bt]:Qt}).map(([Rr,wr],Sr)=>React$8.createElement(u$4,{features:s$4.Hidden,ref:Sr===0?Br=>{var Or;Ar.current=(Or=Br==null?void 0:Br.closest("form"))!=null?Or:null}:void 0,...x$1({key:Rr,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:At,disabled:Ft,name:Rr,value:wr})})),C({ourProps:Dr,theirProps:Vt,slot:Yt,defaultTag:tt$1,name:"Combobox"}))))}let nt="input";function rt(ht,Et){var yt,Ct,$t,At,Bt;let Dt=I$5(),{id:Ft=`headlessui-combobox-input-${Dt}`,onChange:kt,displayValue:Mt,type:Nt="text",...jt}=ht,zt=j$1("Combobox.Input"),Vt=ee$1("Combobox.Input"),Kt=y$1(zt.inputRef,Et),Xt=n$2(zt.inputRef),Qt=reactExports.useRef(!1),Zt=p$4(),dr=o$5(()=>{Vt.onChange(null),zt.optionsRef.current&&(zt.optionsRef.current.scrollTop=0),Vt.goToOption(c$4.Nothing)}),cr=function(){var Gt;return typeof Mt=="function"&&zt.value!==void 0?(Gt=Mt(zt.value))!=null?Gt:"":typeof zt.value=="string"?zt.value:""}();m$2(([Gt,Yt],[er,lr])=>{if(Qt.current)return;let Jt=zt.inputRef.current;Jt&&((lr===0&&Yt===1||Gt!==er)&&(Jt.value=Gt),requestAnimationFrame(()=>{if(Qt.current||!Jt||(Xt==null?void 0:Xt.activeElement)!==Jt)return;let{selectionStart:Ut,selectionEnd:ir}=Jt;Math.abs((ir??0)-(Ut??0))===0&&Ut===0&&Jt.setSelectionRange(Jt.value.length,Jt.value.length)}))},[cr,zt.comboboxState,Xt]),m$2(([Gt],[Yt])=>{if(Gt===0&&Yt===1){if(Qt.current)return;let er=zt.inputRef.current;if(!er)return;let lr=er.value,{selectionStart:Jt,selectionEnd:Ut,selectionDirection:ir}=er;er.value="",er.value=lr,ir!==null?er.setSelectionRange(Jt,Ut,ir):er.setSelectionRange(Jt,Ut)}},[zt.comboboxState]);let Er=reactExports.useRef(!1),pr=o$5(()=>{Er.current=!0}),gr=o$5(()=>{Zt.nextFrame(()=>{Er.current=!1})}),vr=o$5(Gt=>{switch(Qt.current=!0,Gt.key){case o.Enter:if(Qt.current=!1,zt.comboboxState!==0||Er.current)return;if(Gt.preventDefault(),Gt.stopPropagation(),zt.activeOptionIndex===null){Vt.closeCombobox();return}Vt.selectActiveOption(),zt.mode===0&&Vt.closeCombobox();break;case o.ArrowDown:return Qt.current=!1,Gt.preventDefault(),Gt.stopPropagation(),u$7(zt.comboboxState,{0:()=>Vt.goToOption(c$4.Next),1:()=>Vt.openCombobox()});case o.ArrowUp:return Qt.current=!1,Gt.preventDefault(),Gt.stopPropagation(),u$7(zt.comboboxState,{0:()=>Vt.goToOption(c$4.Previous),1:()=>{Vt.openCombobox(),Zt.nextFrame(()=>{zt.value||Vt.goToOption(c$4.Last)})}});case o.Home:if(Gt.shiftKey)break;return Qt.current=!1,Gt.preventDefault(),Gt.stopPropagation(),Vt.goToOption(c$4.First);case o.PageUp:return Qt.current=!1,Gt.preventDefault(),Gt.stopPropagation(),Vt.goToOption(c$4.First);case o.End:if(Gt.shiftKey)break;return Qt.current=!1,Gt.preventDefault(),Gt.stopPropagation(),Vt.goToOption(c$4.Last);case o.PageDown:return Qt.current=!1,Gt.preventDefault(),Gt.stopPropagation(),Vt.goToOption(c$4.Last);case o.Escape:return Qt.current=!1,zt.comboboxState!==0?void 0:(Gt.preventDefault(),zt.optionsRef.current&&!zt.optionsPropsRef.current.static&&Gt.stopPropagation(),zt.nullable&&zt.mode===0&&zt.value===null&&dr(),Vt.closeCombobox());case o.Tab:if(Qt.current=!1,zt.comboboxState!==0)return;zt.mode===0&&zt.activationTrigger!==1&&Vt.selectActiveOption(),Vt.closeCombobox();break}}),yr=o$5(Gt=>{kt==null||kt(Gt),zt.nullable&&zt.mode===0&&Gt.target.value===""&&dr(),Vt.openCombobox()}),xr=o$5(Gt=>{var Yt,er,lr;let Jt=(Yt=Gt.relatedTarget)!=null?Yt:t$2.find(Ut=>Ut!==Gt.currentTarget);if(Qt.current=!1,!((er=zt.optionsRef.current)!=null&&er.contains(Jt))&&!((lr=zt.buttonRef.current)!=null&&lr.contains(Jt))&&zt.comboboxState===0)return Gt.preventDefault(),zt.mode===0&&(zt.nullable&&zt.value===null?dr():zt.activationTrigger!==1&&Vt.selectActiveOption()),Vt.closeCombobox()}),rr=o$5(Gt=>{var Yt,er,lr;let Jt=(Yt=Gt.relatedTarget)!=null?Yt:t$2.find(Ut=>Ut!==Gt.currentTarget);(er=zt.buttonRef.current)!=null&&er.contains(Jt)||(lr=zt.optionsRef.current)!=null&&lr.contains(Jt)||zt.disabled||zt.immediate&&zt.comboboxState!==0&&(Vt.openCombobox(),Zt.nextFrame(()=>{Vt.setActivationTrigger(1)}))}),Lt=i$4(()=>{if(zt.labelId)return[zt.labelId].join(" ")},[zt.labelId]),Ht=reactExports.useMemo(()=>({open:zt.comboboxState===0,disabled:zt.disabled}),[zt]),Wt={ref:Kt,id:Ft,role:"combobox",type:Nt,"aria-controls":(yt=zt.optionsRef.current)==null?void 0:yt.id,"aria-expanded":zt.comboboxState===0,"aria-activedescendant":zt.activeOptionIndex===null?void 0:zt.virtual?(Ct=zt.options.find(Gt=>{var Yt;return!((Yt=zt.virtual)!=null&&Yt.disabled(Gt.dataRef.current.value))&&zt.compare(Gt.dataRef.current.value,zt.virtual.options[zt.activeOptionIndex])}))==null?void 0:Ct.id:($t=zt.options[zt.activeOptionIndex])==null?void 0:$t.id,"aria-labelledby":Lt,"aria-autocomplete":"list",defaultValue:(Bt=(At=ht.defaultValue)!=null?At:zt.defaultValue!==void 0?Mt==null?void 0:Mt(zt.defaultValue):null)!=null?Bt:zt.defaultValue,disabled:zt.disabled,onCompositionStart:pr,onCompositionEnd:gr,onKeyDown:vr,onChange:yr,onFocus:rr,onBlur:xr};return C({ourProps:Wt,theirProps:jt,slot:Ht,defaultTag:nt,name:"Combobox.Input"})}let at="button";function lt(ht,Et){var yt;let Ct=j$1("Combobox.Button"),$t=ee$1("Combobox.Button"),At=y$1(Ct.buttonRef,Et),Bt=I$5(),{id:Dt=`headlessui-combobox-button-${Bt}`,...Ft}=ht,kt=p$4(),Mt=o$5(Kt=>{switch(Kt.key){case o.ArrowDown:return Kt.preventDefault(),Kt.stopPropagation(),Ct.comboboxState===1&&$t.openCombobox(),kt.nextFrame(()=>{var Xt;return(Xt=Ct.inputRef.current)==null?void 0:Xt.focus({preventScroll:!0})});case o.ArrowUp:return Kt.preventDefault(),Kt.stopPropagation(),Ct.comboboxState===1&&($t.openCombobox(),kt.nextFrame(()=>{Ct.value||$t.goToOption(c$4.Last)})),kt.nextFrame(()=>{var Xt;return(Xt=Ct.inputRef.current)==null?void 0:Xt.focus({preventScroll:!0})});case o.Escape:return Ct.comboboxState!==0?void 0:(Kt.preventDefault(),Ct.optionsRef.current&&!Ct.optionsPropsRef.current.static&&Kt.stopPropagation(),$t.closeCombobox(),kt.nextFrame(()=>{var Xt;return(Xt=Ct.inputRef.current)==null?void 0:Xt.focus({preventScroll:!0})}));default:return}}),Nt=o$5(Kt=>{if(r$2(Kt.currentTarget))return Kt.preventDefault();Ct.comboboxState===0?$t.closeCombobox():(Kt.preventDefault(),$t.openCombobox()),kt.nextFrame(()=>{var Xt;return(Xt=Ct.inputRef.current)==null?void 0:Xt.focus({preventScroll:!0})})}),jt=i$4(()=>{if(Ct.labelId)return[Ct.labelId,Dt].join(" ")},[Ct.labelId,Dt]),zt=reactExports.useMemo(()=>({open:Ct.comboboxState===0,disabled:Ct.disabled,value:Ct.value}),[Ct]),Vt={ref:At,id:Dt,type:T$1(ht,Ct.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":(yt=Ct.optionsRef.current)==null?void 0:yt.id,"aria-expanded":Ct.comboboxState===0,"aria-labelledby":jt,disabled:Ct.disabled,onClick:Nt,onKeyDown:Mt};return C({ourProps:Vt,theirProps:Ft,slot:zt,defaultTag:at,name:"Combobox.Button"})}let it="label";function ut(ht,Et){let yt=I$5(),{id:Ct=`headlessui-combobox-label-${yt}`,...$t}=ht,At=j$1("Combobox.Label"),Bt=ee$1("Combobox.Label"),Dt=y$1(At.labelRef,Et);l$5(()=>Bt.registerLabel(Ct),[Ct]);let Ft=o$5(()=>{var Mt;return(Mt=At.inputRef.current)==null?void 0:Mt.focus({preventScroll:!0})}),kt=reactExports.useMemo(()=>({open:At.comboboxState===0,disabled:At.disabled}),[At]);return C({ourProps:{ref:Dt,id:Ct,onClick:Ft},theirProps:$t,slot:kt,defaultTag:it,name:"Combobox.Label"})}let pt="ul",st=O.RenderStrategy|O.Static;function dt(ht,Et){let yt=I$5(),{id:Ct=`headlessui-combobox-options-${yt}`,hold:$t=!1,...At}=ht,Bt=j$1("Combobox.Options"),Dt=y$1(Bt.optionsRef,Et),Ft=u$3(),kt=Ft!==null?(Ft&d$3.Open)===d$3.Open:Bt.comboboxState===0;l$5(()=>{var zt;Bt.optionsPropsRef.current.static=(zt=ht.static)!=null?zt:!1},[Bt.optionsPropsRef,ht.static]),l$5(()=>{Bt.optionsPropsRef.current.hold=$t},[Bt.optionsPropsRef,$t]),F$2({container:Bt.optionsRef.current,enabled:Bt.comboboxState===0,accept(zt){return zt.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:zt.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(zt){zt.setAttribute("role","none")}});let Mt=i$4(()=>{var zt,Vt;return(Vt=Bt.labelId)!=null?Vt:(zt=Bt.buttonRef.current)==null?void 0:zt.id},[Bt.labelId,Bt.buttonRef.current]),Nt=reactExports.useMemo(()=>({open:Bt.comboboxState===0,option:void 0}),[Bt]),jt={"aria-labelledby":Mt,role:"listbox","aria-multiselectable":Bt.mode===1?!0:void 0,id:Ct,ref:Dt};return Bt.virtual&&Bt.comboboxState===0&&Object.assign(At,{children:React$8.createElement(Ze$1,null,At.children)}),C({ourProps:jt,theirProps:At,slot:Nt,defaultTag:pt,features:st,visible:kt,name:"Combobox.Options"})}let bt="li";function ct(ht,Et){var yt;let Ct=I$5(),{id:$t=`headlessui-combobox-option-${Ct}`,disabled:At=!1,value:Bt,order:Dt=null,...Ft}=ht,kt=j$1("Combobox.Option"),Mt=ee$1("Combobox.Option"),Nt=kt.virtual?kt.activeOptionIndex===kt.calculateIndex(Bt):kt.activeOptionIndex===null?!1:((yt=kt.options[kt.activeOptionIndex])==null?void 0:yt.id)===$t,jt=kt.isSelected(Bt),zt=reactExports.useRef(null),Vt=s$7({disabled:At,value:Bt,domRef:zt,order:Dt}),Kt=reactExports.useContext(Ce),Xt=y$1(Et,zt,Kt?Kt.measureElement:null),Qt=o$5(()=>Mt.onChange(Bt));l$5(()=>Mt.registerOption($t,Vt),[Vt,$t]);let Zt=reactExports.useRef(!(kt.virtual||kt.__demoMode));l$5(()=>{if(!kt.virtual||!kt.__demoMode)return;let xr=o$4();return xr.requestAnimationFrame(()=>{Zt.current=!0}),xr.dispose},[kt.virtual,kt.__demoMode]),l$5(()=>{if(!Zt.current||kt.comboboxState!==0||!Nt||kt.activationTrigger===0)return;let xr=o$4();return xr.requestAnimationFrame(()=>{var rr,Lt;(Lt=(rr=zt.current)==null?void 0:rr.scrollIntoView)==null||Lt.call(rr,{block:"nearest"})}),xr.dispose},[zt,Nt,kt.comboboxState,kt.activationTrigger,kt.activeOptionIndex]);let dr=o$5(xr=>{var rr;if(At||(rr=kt.virtual)!=null&&rr.disabled(Bt))return xr.preventDefault();Qt(),n$3()||requestAnimationFrame(()=>{var Lt;return(Lt=kt.inputRef.current)==null?void 0:Lt.focus({preventScroll:!0})}),kt.mode===0&&requestAnimationFrame(()=>Mt.closeCombobox())}),cr=o$5(()=>{var xr;if(At||(xr=kt.virtual)!=null&&xr.disabled(Bt))return Mt.goToOption(c$4.Nothing);let rr=kt.calculateIndex(Bt);Mt.goToOption(c$4.Specific,rr)}),Er=u$5(),pr=o$5(xr=>Er.update(xr)),gr=o$5(xr=>{var rr;if(!Er.wasMoved(xr)||At||(rr=kt.virtual)!=null&&rr.disabled(Bt)||Nt)return;let Lt=kt.calculateIndex(Bt);Mt.goToOption(c$4.Specific,Lt,0)}),vr=o$5(xr=>{var rr;Er.wasMoved(xr)&&(At||(rr=kt.virtual)!=null&&rr.disabled(Bt)||Nt&&(kt.optionsPropsRef.current.hold||Mt.goToOption(c$4.Nothing)))}),yr=reactExports.useMemo(()=>({active:Nt,selected:jt,disabled:At}),[Nt,jt,At]);return C({ourProps:{id:$t,ref:Xt,role:"option",tabIndex:At===!0?void 0:-1,"aria-disabled":At===!0?!0:void 0,"aria-selected":jt,disabled:void 0,onClick:dr,onFocus:cr,onPointerEnter:pr,onMouseEnter:pr,onPointerMove:gr,onMouseMove:gr,onPointerLeave:vr,onMouseLeave:vr},theirProps:Ft,slot:yr,defaultTag:bt,name:"Combobox.Option"})}let ft=U$2(ot),mt=U$2(lt),Tt=U$2(rt),xt=U$2(ut),gt=U$2(dt),vt=U$2(ct),qt=Object.assign(ft,{Input:Tt,Button:mt,Label:xt,Options:gt,Option:vt});function E(ht,Et,yt,Ct){let $t=s$7(yt);reactExports.useEffect(()=>{ht=ht??window;function At(Bt){$t.current(Bt)}return ht.addEventListener(Et,At,Ct),()=>ht.removeEventListener(Et,At,Ct)},[ht,Et,Ct])}function f$3(){let ht=reactExports.useRef(!1);return l$5(()=>(ht.current=!0,()=>{ht.current=!1}),[]),ht}function c$3(ht){let Et=o$5(ht),yt=reactExports.useRef(!1);reactExports.useEffect(()=>(yt.current=!1,()=>{yt.current=!0,t$7(()=>{yt.current&&Et()})}),[Et])}var s$2=(ht=>(ht[ht.Forwards=0]="Forwards",ht[ht.Backwards=1]="Backwards",ht))(s$2||{});function n(){let ht=reactExports.useRef(0);return s$5("keydown",Et=>{Et.key==="Tab"&&(ht.current=Et.shiftKey?1:0)},!0),ht}function P(ht){if(!ht)return new Set;if(typeof ht=="function")return new Set(ht());let Et=new Set;for(let yt of ht.current)yt.current instanceof HTMLElement&&Et.add(yt.current);return Et}let X="div";var _$1=(ht=>(ht[ht.None=1]="None",ht[ht.InitialFocus=2]="InitialFocus",ht[ht.TabLock=4]="TabLock",ht[ht.FocusLock=8]="FocusLock",ht[ht.RestoreFocus=16]="RestoreFocus",ht[ht.All=30]="All",ht))(_$1||{});function z(ht,Et){let yt=reactExports.useRef(null),Ct=y$1(yt,Et),{initialFocus:$t,containers:At,features:Bt=30,...Dt}=ht;l$4()||(Bt=1);let Ft=n$2(yt);Y({ownerDocument:Ft},!!(Bt&16));let kt=Z({ownerDocument:Ft,container:yt,initialFocus:$t},!!(Bt&2));$$j({ownerDocument:Ft,container:yt,containers:At,previousActiveElement:kt},!!(Bt&8));let Mt=n(),Nt=o$5(Kt=>{let Xt=yt.current;Xt&&(Qt=>Qt())(()=>{u$7(Mt.current,{[s$2.Forwards]:()=>{O$1(Xt,M$2.First,{skipElements:[Kt.relatedTarget]})},[s$2.Backwards]:()=>{O$1(Xt,M$2.Last,{skipElements:[Kt.relatedTarget]})}})})}),jt=p$4(),zt=reactExports.useRef(!1),Vt={ref:Ct,onKeyDown(Kt){Kt.key=="Tab"&&(zt.current=!0,jt.requestAnimationFrame(()=>{zt.current=!1}))},onBlur(Kt){let Xt=P(At);yt.current instanceof HTMLElement&&Xt.add(yt.current);let Qt=Kt.relatedTarget;Qt instanceof HTMLElement&&Qt.dataset.headlessuiFocusGuard!=="true"&&(S$4(Xt,Qt)||(zt.current?O$1(yt.current,u$7(Mt.current,{[s$2.Forwards]:()=>M$2.Next,[s$2.Backwards]:()=>M$2.Previous})|M$2.WrapAround,{relativeTo:Kt.target}):Kt.target instanceof HTMLElement&&y$3(Kt.target)))}};return React$8.createElement(React$8.Fragment,null,!!(Bt&4)&&React$8.createElement(u$4,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:Nt,features:s$4.Focusable}),C({ourProps:Vt,theirProps:Dt,defaultTag:X,name:"FocusTrap"}),!!(Bt&4)&&React$8.createElement(u$4,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:Nt,features:s$4.Focusable}))}let D$2=U$2(z),de=Object.assign(D$2,{features:_$1});function Q(ht=!0){let Et=reactExports.useRef(t$2.slice());return m$2(([yt],[Ct])=>{Ct===!0&&yt===!1&&t$7(()=>{Et.current.splice(0)}),Ct===!1&&yt===!0&&(Et.current=t$2.slice())},[ht,t$2,Et]),o$5(()=>{var yt;return(yt=Et.current.find(Ct=>Ct!=null&&Ct.isConnected))!=null?yt:null})}function Y({ownerDocument:ht},Et){let yt=Q(Et);m$2(()=>{Et||(ht==null?void 0:ht.activeElement)===(ht==null?void 0:ht.body)&&y$3(yt())},[Et]),c$3(()=>{Et&&y$3(yt())})}function Z({ownerDocument:ht,container:Et,initialFocus:yt},Ct){let $t=reactExports.useRef(null),At=f$3();return m$2(()=>{if(!Ct)return;let Bt=Et.current;Bt&&t$7(()=>{if(!At.current)return;let Dt=ht==null?void 0:ht.activeElement;if(yt!=null&&yt.current){if((yt==null?void 0:yt.current)===Dt){$t.current=Dt;return}}else if(Bt.contains(Dt)){$t.current=Dt;return}yt!=null&&yt.current?y$3(yt.current):O$1(Bt,M$2.First)===N$2.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),$t.current=ht==null?void 0:ht.activeElement})},[Ct]),$t}function $$j({ownerDocument:ht,container:Et,containers:yt,previousActiveElement:Ct},$t){let At=f$3();E(ht==null?void 0:ht.defaultView,"focus",Bt=>{if(!$t||!At.current)return;let Dt=P(yt);Et.current instanceof HTMLElement&&Dt.add(Et.current);let Ft=Ct.current;if(!Ft)return;let kt=Bt.target;kt&&kt instanceof HTMLElement?S$4(Dt,kt)?(Ct.current=kt,y$3(kt)):(Bt.preventDefault(),Bt.stopPropagation(),y$3(Ft)):y$3(Ct.current)},!0)}function S$4(ht,Et){for(let yt of ht)if(yt.contains(Et))return!0;return!1}let e=reactExports.createContext(!1);function a$4(){return reactExports.useContext(e)}function l$2(ht){return React$8.createElement(e.Provider,{value:ht.force},ht.children)}function F(ht){let Et=a$4(),yt=reactExports.useContext(_),Ct=n$2(ht),[$t,At]=reactExports.useState(()=>{if(!Et&&yt!==null||s$8.isServer)return null;let Bt=Ct==null?void 0:Ct.getElementById("headlessui-portal-root");if(Bt)return Bt;if(Ct===null)return null;let Dt=Ct.createElement("div");return Dt.setAttribute("id","headlessui-portal-root"),Ct.body.appendChild(Dt)});return reactExports.useEffect(()=>{$t!==null&&(Ct!=null&&Ct.body.contains($t)||Ct==null||Ct.body.appendChild($t))},[$t,Ct]),reactExports.useEffect(()=>{Et||yt!==null&&At(yt.current)},[yt,At,Et]),$t}let U$1=reactExports.Fragment;function N$1(ht,Et){let yt=ht,Ct=reactExports.useRef(null),$t=y$1(T(Mt=>{Ct.current=Mt}),Et),At=n$2(Ct),Bt=F(Ct),[Dt]=reactExports.useState(()=>{var Mt;return s$8.isServer?null:(Mt=At==null?void 0:At.createElement("div"))!=null?Mt:null}),Ft=reactExports.useContext(f$2),kt=l$4();return l$5(()=>{!Bt||!Dt||Bt.contains(Dt)||(Dt.setAttribute("data-headlessui-portal",""),Bt.appendChild(Dt))},[Bt,Dt]),l$5(()=>{if(Dt&&Ft)return Ft.register(Dt)},[Ft,Dt]),c$3(()=>{var Mt;!Bt||!Dt||(Dt instanceof Node&&Bt.contains(Dt)&&Bt.removeChild(Dt),Bt.childNodes.length<=0&&((Mt=Bt.parentElement)==null||Mt.removeChild(Bt)))}),kt?!Bt||!Dt?null:reactDomExports.createPortal(C({ourProps:{ref:$t},theirProps:yt,defaultTag:U$1,name:"Portal"}),Dt):null}let S$3=reactExports.Fragment,_=reactExports.createContext(null);function j(ht,Et){let{target:yt,...Ct}=ht,$t={ref:y$1(Et)};return React$8.createElement(_.Provider,{value:yt},C({ourProps:$t,theirProps:Ct,defaultTag:S$3,name:"Popover.Group"}))}let f$2=reactExports.createContext(null);function ee(){let ht=reactExports.useContext(f$2),Et=reactExports.useRef([]),yt=o$5(At=>(Et.current.push(At),ht&&ht.register(At),()=>Ct(At))),Ct=o$5(At=>{let Bt=Et.current.indexOf(At);Bt!==-1&&Et.current.splice(Bt,1),ht&&ht.unregister(At)}),$t=reactExports.useMemo(()=>({register:yt,unregister:Ct,portals:Et}),[yt,Ct,Et]);return[Et,reactExports.useMemo(()=>function({children:At}){return React$8.createElement(f$2.Provider,{value:$t},At)},[$t])]}let D$1=U$2(N$1),I$3=U$2(j),te=Object.assign(D$1,{Group:I$3});function i(ht,Et){return ht===Et&&(ht!==0||1/ht===1/Et)||ht!==ht&&Et!==Et}const d$2=typeof Object.is=="function"?Object.is:i,{useState:u$1,useEffect:h$1,useLayoutEffect:f$1,useDebugValue:p$1}=e$9;function y(ht,Et,yt){const Ct=Et(),[{inst:$t},At]=u$1({inst:{value:Ct,getSnapshot:Et}});return f$1(()=>{$t.value=Ct,$t.getSnapshot=Et,r$1($t)&&At({inst:$t})},[ht,Ct,Et]),h$1(()=>(r$1($t)&&At({inst:$t}),ht(()=>{r$1($t)&&At({inst:$t})})),[ht]),p$1(Ct),Ct}function r$1(ht){const Et=ht.getSnapshot,yt=ht.value;try{const Ct=Et();return!d$2(yt,Ct)}catch{return!0}}function t$1(ht,Et,yt){return Et()}const r=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",s$1=!r,c$2=s$1?t$1:y,a$3="useSyncExternalStore"in e$9?(ht=>ht.useSyncExternalStore)(e$9):c$2;function S$2(ht){return a$3(ht.subscribe,ht.getSnapshot,ht.getSnapshot)}function a$2(ht,Et){let yt=ht(),Ct=new Set;return{getSnapshot(){return yt},subscribe($t){return Ct.add($t),()=>Ct.delete($t)},dispatch($t,...At){let Bt=Et[$t].call(yt,...At);Bt&&(yt=Bt,Ct.forEach(Dt=>Dt()))}}}function c$1(){let ht;return{before({doc:Et}){var yt;let Ct=Et.documentElement;ht=((yt=Et.defaultView)!=null?yt:window).innerWidth-Ct.clientWidth},after({doc:Et,d:yt}){let Ct=Et.documentElement,$t=Ct.clientWidth-Ct.offsetWidth,At=ht-$t;yt.style(Ct,"paddingRight",`${At}px`)}}}function d$1(){return t$6()?{before({doc:ht,d:Et,meta:yt}){function Ct($t){return yt.containers.flatMap(At=>At()).some(At=>At.contains($t))}Et.microTask(()=>{var $t;if(window.getComputedStyle(ht.documentElement).scrollBehavior!=="auto"){let Dt=o$4();Dt.style(ht.documentElement,"scrollBehavior","auto"),Et.add(()=>Et.microTask(()=>Dt.dispose()))}let At=($t=window.scrollY)!=null?$t:window.pageYOffset,Bt=null;Et.addEventListener(ht,"click",Dt=>{if(Dt.target instanceof HTMLElement)try{let Ft=Dt.target.closest("a");if(!Ft)return;let{hash:kt}=new URL(Ft.href),Mt=ht.querySelector(kt);Mt&&!Ct(Mt)&&(Bt=Mt)}catch{}},!0),Et.addEventListener(ht,"touchstart",Dt=>{if(Dt.target instanceof HTMLElement)if(Ct(Dt.target)){let Ft=Dt.target;for(;Ft.parentElement&&Ct(Ft.parentElement);)Ft=Ft.parentElement;Et.style(Ft,"overscrollBehavior","contain")}else Et.style(Dt.target,"touchAction","none")}),Et.addEventListener(ht,"touchmove",Dt=>{if(Dt.target instanceof HTMLElement)if(Ct(Dt.target)){let Ft=Dt.target;for(;Ft.parentElement&&Ft.dataset.headlessuiPortal!==""&&!(Ft.scrollHeight>Ft.clientHeight||Ft.scrollWidth>Ft.clientWidth);)Ft=Ft.parentElement;Ft.dataset.headlessuiPortal===""&&Dt.preventDefault()}else Dt.preventDefault()},{passive:!1}),Et.add(()=>{var Dt;let Ft=(Dt=window.scrollY)!=null?Dt:window.pageYOffset;At!==Ft&&window.scrollTo(0,At),Bt&&Bt.isConnected&&(Bt.scrollIntoView({block:"nearest"}),Bt=null)})})}}:{}}function l$1(){return{before({doc:ht,d:Et}){Et.style(ht.documentElement,"overflow","hidden")}}}function m(ht){let Et={};for(let yt of ht)Object.assign(Et,yt(Et));return Et}let a$1=a$2(()=>new Map,{PUSH(ht,Et){var yt;let Ct=(yt=this.get(ht))!=null?yt:{doc:ht,count:0,d:o$4(),meta:new Set};return Ct.count++,Ct.meta.add(Et),this.set(ht,Ct),this},POP(ht,Et){let yt=this.get(ht);return yt&&(yt.count--,yt.meta.delete(Et)),this},SCROLL_PREVENT({doc:ht,d:Et,meta:yt}){let Ct={doc:ht,d:Et,meta:m(yt)},$t=[d$1(),c$1(),l$1()];$t.forEach(({before:At})=>At==null?void 0:At(Ct)),$t.forEach(({after:At})=>At==null?void 0:At(Ct))},SCROLL_ALLOW({d:ht}){ht.dispose()},TEARDOWN({doc:ht}){this.delete(ht)}});a$1.subscribe(()=>{let ht=a$1.getSnapshot(),Et=new Map;for(let[yt]of ht)Et.set(yt,yt.documentElement.style.overflow);for(let yt of ht.values()){let Ct=Et.get(yt.doc)==="hidden",$t=yt.count!==0;($t&&!Ct||!$t&&Ct)&&a$1.dispatch(yt.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",yt),yt.count===0&&a$1.dispatch("TEARDOWN",yt)}});function p(ht,Et,yt){let Ct=S$2(a$1),$t=ht?Ct.get(ht):void 0,At=$t?$t.count>0:!1;return l$5(()=>{if(!(!ht||!Et))return a$1.dispatch("PUSH",ht,yt),()=>a$1.dispatch("POP",ht,yt)},[Et,ht]),At}let u=new Map,t=new Map;function b$3(ht,Et=!0){l$5(()=>{var yt;if(!Et)return;let Ct=typeof ht=="function"?ht():ht.current;if(!Ct)return;function $t(){var Bt;if(!Ct)return;let Dt=(Bt=t.get(Ct))!=null?Bt:1;if(Dt===1?t.delete(Ct):t.set(Ct,Dt-1),Dt!==1)return;let Ft=u.get(Ct);Ft&&(Ft["aria-hidden"]===null?Ct.removeAttribute("aria-hidden"):Ct.setAttribute("aria-hidden",Ft["aria-hidden"]),Ct.inert=Ft.inert,u.delete(Ct))}let At=(yt=t.get(Ct))!=null?yt:0;return t.set(Ct,At+1),At!==0||(u.set(Ct,{"aria-hidden":Ct.getAttribute("aria-hidden"),inert:Ct.inert}),Ct.setAttribute("aria-hidden","true"),Ct.inert=!0),$t},[ht,Et])}function N({defaultContainers:ht=[],portals:Et,mainTreeNodeRef:yt}={}){var Ct;let $t=reactExports.useRef((Ct=yt==null?void 0:yt.current)!=null?Ct:null),At=n$2($t),Bt=o$5(()=>{var Dt,Ft,kt;let Mt=[];for(let Nt of ht)Nt!==null&&(Nt instanceof HTMLElement?Mt.push(Nt):"current"in Nt&&Nt.current instanceof HTMLElement&&Mt.push(Nt.current));if(Et!=null&&Et.current)for(let Nt of Et.current)Mt.push(Nt);for(let Nt of(Dt=At==null?void 0:At.querySelectorAll("html > *, body > *"))!=null?Dt:[])Nt!==document.body&&Nt!==document.head&&Nt instanceof HTMLElement&&Nt.id!=="headlessui-portal-root"&&(Nt.contains($t.current)||Nt.contains((kt=(Ft=$t.current)==null?void 0:Ft.getRootNode())==null?void 0:kt.host)||Mt.some(jt=>Nt.contains(jt))||Mt.push(Nt));return Mt});return{resolveContainers:Bt,contains:o$5(Dt=>Bt().some(Ft=>Ft.contains(Dt))),mainTreeNodeRef:$t,MainTreeNode:reactExports.useMemo(()=>function(){return yt!=null?null:React$8.createElement(u$4,{features:s$4.Hidden,ref:$t})},[$t,yt])}}let a=reactExports.createContext(()=>{});a.displayName="StackContext";var s=(ht=>(ht[ht.Add=0]="Add",ht[ht.Remove=1]="Remove",ht))(s||{});function x(){return reactExports.useContext(a)}function b$2({children:ht,onUpdate:Et,type:yt,element:Ct,enabled:$t}){let At=x(),Bt=o$5((...Dt)=>{Et==null||Et(...Dt),At(...Dt)});return l$5(()=>{let Dt=$t===void 0||$t===!0;return Dt&&Bt(0,yt,Ct),()=>{Dt&&Bt(1,yt,Ct)}},[Bt,yt,Ct,$t]),React$8.createElement(a.Provider,{value:Bt},ht)}let d=reactExports.createContext(null);function f(){let ht=reactExports.useContext(d);if(ht===null){let Et=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(Et,f),Et}return ht}function w(){let[ht,Et]=reactExports.useState([]);return[ht.length>0?ht.join(" "):void 0,reactExports.useMemo(()=>function(yt){let Ct=o$5(At=>(Et(Bt=>[...Bt,At]),()=>Et(Bt=>{let Dt=Bt.slice(),Ft=Dt.indexOf(At);return Ft!==-1&&Dt.splice(Ft,1),Dt}))),$t=reactExports.useMemo(()=>({register:Ct,slot:yt.slot,name:yt.name,props:yt.props}),[Ct,yt.slot,yt.name,yt.props]);return React$8.createElement(d.Provider,{value:$t},yt.children)},[Et])]}let I$2="p";function S$1(ht,Et){let yt=I$5(),{id:Ct=`headlessui-description-${yt}`,...$t}=ht,At=f(),Bt=y$1(Et);l$5(()=>At.register(Ct),[Ct,At.register]);let Dt={ref:Bt,...At.props,id:Ct};return C({ourProps:Dt,theirProps:$t,slot:At.slot||{},defaultTag:I$2,name:At.name||"Description"})}let h=U$2(S$1),G=Object.assign(h,{});var Me=(ht=>(ht[ht.Open=0]="Open",ht[ht.Closed=1]="Closed",ht))(Me||{}),we=(ht=>(ht[ht.SetTitleId=0]="SetTitleId",ht))(we||{});let He$1={0(ht,Et){return ht.titleId===Et.id?ht:{...ht,titleId:Et.id}}},I$1=reactExports.createContext(null);I$1.displayName="DialogContext";function b$1(ht){let Et=reactExports.useContext(I$1);if(Et===null){let yt=new Error(`<${ht} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(yt,b$1),yt}return Et}function Be(ht,Et,yt=()=>[document.body]){p(ht,Et,Ct=>{var $t;return{containers:[...($t=Ct.containers)!=null?$t:[],yt]}})}function Ge(ht,Et){return u$7(Et.type,He$1,ht,Et)}let Ne$1="div",Ue=O.RenderStrategy|O.Static;function We(ht,Et){let yt=I$5(),{id:Ct=`headlessui-dialog-${yt}`,open:$t,onClose:At,initialFocus:Bt,role:Dt="dialog",__demoMode:Ft=!1,...kt}=ht,[Mt,Nt]=reactExports.useState(0),jt=reactExports.useRef(!1);Dt=function(){return Dt==="dialog"||Dt==="alertdialog"?Dt:(jt.current||(jt.current=!0,console.warn(`Invalid role [${Dt}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let zt=u$3();$t===void 0&&zt!==null&&($t=(zt&d$3.Open)===d$3.Open);let Vt=reactExports.useRef(null),Kt=y$1(Vt,Et),Xt=n$2(Vt),Qt=ht.hasOwnProperty("open")||zt!==null,Zt=ht.hasOwnProperty("onClose");if(!Qt&&!Zt)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!Qt)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!Zt)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(typeof $t!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${$t}`);if(typeof At!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${At}`);let dr=$t?0:1,[cr,Er]=reactExports.useReducer(Ge,{titleId:null,descriptionId:null,panelRef:reactExports.createRef()}),pr=o$5(()=>At(!1)),gr=o$5(Sr=>Er({type:0,id:Sr})),vr=l$4()?Ft?!1:dr===0:!1,yr=Mt>1,xr=reactExports.useContext(I$1)!==null,[rr,Lt]=ee(),Ht={get current(){var Sr;return(Sr=cr.panelRef.current)!=null?Sr:Vt.current}},{resolveContainers:Wt,mainTreeNodeRef:Gt,MainTreeNode:Yt}=N({portals:rr,defaultContainers:[Ht]}),er=yr?"parent":"leaf",lr=zt!==null?(zt&d$3.Closing)===d$3.Closing:!1,Jt=xr||lr?!1:vr,Ut=reactExports.useCallback(()=>{var Sr,Br;return(Br=Array.from((Sr=Xt==null?void 0:Xt.querySelectorAll("body > *"))!=null?Sr:[]).find(Or=>Or.id==="headlessui-portal-root"?!1:Or.contains(Gt.current)&&Or instanceof HTMLElement))!=null?Br:null},[Gt]);b$3(Ut,Jt);let ir=yr?!0:vr,Cr=reactExports.useCallback(()=>{var Sr,Br;return(Br=Array.from((Sr=Xt==null?void 0:Xt.querySelectorAll("[data-headlessui-portal]"))!=null?Sr:[]).find(Or=>Or.contains(Gt.current)&&Or instanceof HTMLElement))!=null?Br:null},[Gt]);b$3(Cr,ir),y$2(Wt,Sr=>{Sr.preventDefault(),pr()},!(!vr||yr));let $r=!(yr||dr!==0);E(Xt==null?void 0:Xt.defaultView,"keydown",Sr=>{$r&&(Sr.defaultPrevented||Sr.key===o.Escape&&(Sr.preventDefault(),Sr.stopPropagation(),pr()))}),Be(Xt,!(lr||dr!==0||xr),Wt),reactExports.useEffect(()=>{if(dr!==0||!Vt.current)return;let Sr=new ResizeObserver(Br=>{for(let Or of Br){let Pr=Or.target.getBoundingClientRect();Pr.x===0&&Pr.y===0&&Pr.width===0&&Pr.height===0&&pr()}});return Sr.observe(Vt.current),()=>Sr.disconnect()},[dr,Vt,pr]);let[Dr,Ar]=w(),Fr=reactExports.useMemo(()=>[{dialogState:dr,close:pr,setTitleId:gr},cr],[dr,cr,pr,gr]),Rr=reactExports.useMemo(()=>({open:dr===0}),[dr]),wr={ref:Kt,id:Ct,role:Dt,"aria-modal":dr===0?!0:void 0,"aria-labelledby":cr.titleId,"aria-describedby":Dr};return React$8.createElement(b$2,{type:"Dialog",enabled:dr===0,element:Vt,onUpdate:o$5((Sr,Br)=>{Br==="Dialog"&&u$7(Sr,{[s.Add]:()=>Nt(Or=>Or+1),[s.Remove]:()=>Nt(Or=>Or-1)})})},React$8.createElement(l$2,{force:!0},React$8.createElement(te,null,React$8.createElement(I$1.Provider,{value:Fr},React$8.createElement(te.Group,{target:Vt},React$8.createElement(l$2,{force:!1},React$8.createElement(Ar,{slot:Rr,name:"Dialog.Description"},React$8.createElement(de,{initialFocus:Bt,containers:Wt,features:vr?u$7(er,{parent:de.features.RestoreFocus,leaf:de.features.All&~de.features.FocusLock}):de.features.None},React$8.createElement(Lt,null,C({ourProps:wr,theirProps:kt,slot:Rr,defaultTag:Ne$1,features:Ue,visible:dr===0,name:"Dialog"}))))))))),React$8.createElement(Yt,null))}let $e="div";function Ye(ht,Et){let yt=I$5(),{id:Ct=`headlessui-dialog-overlay-${yt}`,...$t}=ht,[{dialogState:At,close:Bt}]=b$1("Dialog.Overlay"),Dt=y$1(Et),Ft=o$5(Mt=>{if(Mt.target===Mt.currentTarget){if(r$2(Mt.currentTarget))return Mt.preventDefault();Mt.preventDefault(),Mt.stopPropagation(),Bt()}}),kt=reactExports.useMemo(()=>({open:At===0}),[At]);return C({ourProps:{ref:Dt,id:Ct,"aria-hidden":!0,onClick:Ft},theirProps:$t,slot:kt,defaultTag:$e,name:"Dialog.Overlay"})}let je="div";function Je(ht,Et){let yt=I$5(),{id:Ct=`headlessui-dialog-backdrop-${yt}`,...$t}=ht,[{dialogState:At},Bt]=b$1("Dialog.Backdrop"),Dt=y$1(Et);reactExports.useEffect(()=>{if(Bt.panelRef.current===null)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[Bt.panelRef]);let Ft=reactExports.useMemo(()=>({open:At===0}),[At]);return React$8.createElement(l$2,{force:!0},React$8.createElement(te,null,C({ourProps:{ref:Dt,id:Ct,"aria-hidden":!0},theirProps:$t,slot:Ft,defaultTag:je,name:"Dialog.Backdrop"})))}let Xe="div";function Ke(ht,Et){let yt=I$5(),{id:Ct=`headlessui-dialog-panel-${yt}`,...$t}=ht,[{dialogState:At},Bt]=b$1("Dialog.Panel"),Dt=y$1(Et,Bt.panelRef),Ft=reactExports.useMemo(()=>({open:At===0}),[At]),kt=o$5(Mt=>{Mt.stopPropagation()});return C({ourProps:{ref:Dt,id:Ct,onClick:kt},theirProps:$t,slot:Ft,defaultTag:Xe,name:"Dialog.Panel"})}let Ve="h2";function qe$1(ht,Et){let yt=I$5(),{id:Ct=`headlessui-dialog-title-${yt}`,...$t}=ht,[{dialogState:At,setTitleId:Bt}]=b$1("Dialog.Title"),Dt=y$1(Et);reactExports.useEffect(()=>(Bt(Ct),()=>Bt(null)),[Ct,Bt]);let Ft=reactExports.useMemo(()=>({open:At===0}),[At]);return C({ourProps:{ref:Dt,id:Ct},theirProps:$t,slot:Ft,defaultTag:Ve,name:"Dialog.Title"})}let ze=U$2(We),Qe=U$2(Je),Ze=U$2(Ke),et=U$2(Ye),tt=U$2(qe$1),_t=Object.assign(ze,{Backdrop:Qe,Panel:Ze,Overlay:et,Title:tt,Description:G});function c(ht=0){let[Et,yt]=reactExports.useState(ht),Ct=f$3(),$t=reactExports.useCallback(Ft=>{Ct.current&&yt(kt=>kt|Ft)},[Et,Ct]),At=reactExports.useCallback(Ft=>!!(Et&Ft),[Et]),Bt=reactExports.useCallback(Ft=>{Ct.current&&yt(kt=>kt&~Ft)},[yt,Ct]),Dt=reactExports.useCallback(Ft=>{Ct.current&&yt(kt=>kt^Ft)},[yt]);return{flags:Et,addFlag:$t,hasFlag:At,removeFlag:Bt,toggleFlag:Dt}}function l(ht){let Et={called:!1};return(...yt)=>{if(!Et.called)return Et.called=!0,ht(...yt)}}function g(ht,...Et){ht&&Et.length>0&&ht.classList.add(...Et)}function v(ht,...Et){ht&&Et.length>0&&ht.classList.remove(...Et)}function b(ht,Et){let yt=o$4();if(!ht)return yt.dispose;let{transitionDuration:Ct,transitionDelay:$t}=getComputedStyle(ht),[At,Bt]=[Ct,$t].map(Ft=>{let[kt=0]=Ft.split(",").filter(Boolean).map(Mt=>Mt.includes("ms")?parseFloat(Mt):parseFloat(Mt)*1e3).sort((Mt,Nt)=>Nt-Mt);return kt}),Dt=At+Bt;if(Dt!==0){yt.group(kt=>{kt.setTimeout(()=>{Et(),kt.dispose()},Dt),kt.addEventListener(ht,"transitionrun",Mt=>{Mt.target===Mt.currentTarget&&kt.dispose()})});let Ft=yt.addEventListener(ht,"transitionend",kt=>{kt.target===kt.currentTarget&&(Et(),Ft())})}else Et();return yt.add(()=>Et()),yt.dispose}function M$1(ht,Et,yt,Ct){let $t=yt?"enter":"leave",At=o$4(),Bt=Ct!==void 0?l(Ct):()=>{};$t==="enter"&&(ht.removeAttribute("hidden"),ht.style.display="");let Dt=u$7($t,{enter:()=>Et.enter,leave:()=>Et.leave}),Ft=u$7($t,{enter:()=>Et.enterTo,leave:()=>Et.leaveTo}),kt=u$7($t,{enter:()=>Et.enterFrom,leave:()=>Et.leaveFrom});return v(ht,...Et.base,...Et.enter,...Et.enterTo,...Et.enterFrom,...Et.leave,...Et.leaveFrom,...Et.leaveTo,...Et.entered),g(ht,...Et.base,...Dt,...kt),At.nextFrame(()=>{v(ht,...Et.base,...Dt,...kt),g(ht,...Et.base,...Dt,...Ft),b(ht,()=>(v(ht,...Et.base,...Dt),g(ht,...Et.base,...Et.entered),Bt()))}),At.dispose}function D({immediate:ht,container:Et,direction:yt,classes:Ct,onStart:$t,onStop:At}){let Bt=f$3(),Dt=p$4(),Ft=s$7(yt);l$5(()=>{ht&&(Ft.current="enter")},[ht]),l$5(()=>{let kt=o$4();Dt.add(kt.dispose);let Mt=Et.current;if(Mt&&Ft.current!=="idle"&&Bt.current)return kt.dispose(),$t.current(Ft.current),kt.add(M$1(Mt,Ct.current,Ft.current==="enter",()=>{kt.dispose(),At.current(Ft.current)})),kt.dispose},[yt])}function S(ht=""){return ht.split(/\s+/).filter(Et=>Et.length>1)}let I=reactExports.createContext(null);I.displayName="TransitionContext";var Se=(ht=>(ht.Visible="visible",ht.Hidden="hidden",ht))(Se||{});function ye(){let ht=reactExports.useContext(I);if(ht===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return ht}function xe(){let ht=reactExports.useContext(M);if(ht===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return ht}let M=reactExports.createContext(null);M.displayName="NestingContext";function U(ht){return"children"in ht?U(ht.children):ht.current.filter(({el:Et})=>Et.current!==null).filter(({state:Et})=>Et==="visible").length>0}function se(ht,Et){let yt=s$7(ht),Ct=reactExports.useRef([]),$t=f$3(),At=p$4(),Bt=o$5((zt,Vt=v$1.Hidden)=>{let Kt=Ct.current.findIndex(({el:Xt})=>Xt===zt);Kt!==-1&&(u$7(Vt,{[v$1.Unmount](){Ct.current.splice(Kt,1)},[v$1.Hidden](){Ct.current[Kt].state="hidden"}}),At.microTask(()=>{var Xt;!U(Ct)&&$t.current&&((Xt=yt.current)==null||Xt.call(yt))}))}),Dt=o$5(zt=>{let Vt=Ct.current.find(({el:Kt})=>Kt===zt);return Vt?Vt.state!=="visible"&&(Vt.state="visible"):Ct.current.push({el:zt,state:"visible"}),()=>Bt(zt,v$1.Unmount)}),Ft=reactExports.useRef([]),kt=reactExports.useRef(Promise.resolve()),Mt=reactExports.useRef({enter:[],leave:[],idle:[]}),Nt=o$5((zt,Vt,Kt)=>{Ft.current.splice(0),Et&&(Et.chains.current[Vt]=Et.chains.current[Vt].filter(([Xt])=>Xt!==zt)),Et==null||Et.chains.current[Vt].push([zt,new Promise(Xt=>{Ft.current.push(Xt)})]),Et==null||Et.chains.current[Vt].push([zt,new Promise(Xt=>{Promise.all(Mt.current[Vt].map(([Qt,Zt])=>Zt)).then(()=>Xt())})]),Vt==="enter"?kt.current=kt.current.then(()=>Et==null?void 0:Et.wait.current).then(()=>Kt(Vt)):Kt(Vt)}),jt=o$5((zt,Vt,Kt)=>{Promise.all(Mt.current[Vt].splice(0).map(([Xt,Qt])=>Qt)).then(()=>{var Xt;(Xt=Ft.current.shift())==null||Xt()}).then(()=>Kt(Vt))});return reactExports.useMemo(()=>({children:Ct,register:Dt,unregister:Bt,onStart:Nt,onStop:jt,wait:kt,chains:Mt}),[Dt,Bt,Ct,Nt,jt,Mt,kt])}function Ne(){}let Pe=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function ae(ht){var Et;let yt={};for(let Ct of Pe)yt[Ct]=(Et=ht[Ct])!=null?Et:Ne;return yt}function Re(ht){let Et=reactExports.useRef(ae(ht));return reactExports.useEffect(()=>{Et.current=ae(ht)},[ht]),Et}let De="div",le=O.RenderStrategy;function He(ht,Et){var yt,Ct;let{beforeEnter:$t,afterEnter:At,beforeLeave:Bt,afterLeave:Dt,enter:Ft,enterFrom:kt,enterTo:Mt,entered:Nt,leave:jt,leaveFrom:zt,leaveTo:Vt,...Kt}=ht,Xt=reactExports.useRef(null),Qt=y$1(Xt,Et),Zt=(yt=Kt.unmount)==null||yt?v$1.Unmount:v$1.Hidden,{show:dr,appear:cr,initial:Er}=ye(),[pr,gr]=reactExports.useState(dr?"visible":"hidden"),vr=xe(),{register:yr,unregister:xr}=vr;reactExports.useEffect(()=>yr(Xt),[yr,Xt]),reactExports.useEffect(()=>{if(Zt===v$1.Hidden&&Xt.current){if(dr&&pr!=="visible"){gr("visible");return}return u$7(pr,{hidden:()=>xr(Xt),visible:()=>yr(Xt)})}},[pr,Xt,yr,xr,dr,Zt]);let rr=s$7({base:S(Kt.className),enter:S(Ft),enterFrom:S(kt),enterTo:S(Mt),entered:S(Nt),leave:S(jt),leaveFrom:S(zt),leaveTo:S(Vt)}),Lt=Re({beforeEnter:$t,afterEnter:At,beforeLeave:Bt,afterLeave:Dt}),Ht=l$4();reactExports.useEffect(()=>{if(Ht&&pr==="visible"&&Xt.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[Xt,pr,Ht]);let Wt=Er&&!cr,Gt=cr&&dr&&Er,Yt=!Ht||Wt?"idle":dr?"enter":"leave",er=c(0),lr=o$5($r=>u$7($r,{enter:()=>{er.addFlag(d$3.Opening),Lt.current.beforeEnter()},leave:()=>{er.addFlag(d$3.Closing),Lt.current.beforeLeave()},idle:()=>{}})),Jt=o$5($r=>u$7($r,{enter:()=>{er.removeFlag(d$3.Opening),Lt.current.afterEnter()},leave:()=>{er.removeFlag(d$3.Closing),Lt.current.afterLeave()},idle:()=>{}})),Ut=se(()=>{gr("hidden"),xr(Xt)},vr),ir=reactExports.useRef(!1);D({immediate:Gt,container:Xt,classes:rr,direction:Yt,onStart:s$7($r=>{ir.current=!0,Ut.onStart(Xt,$r,lr)}),onStop:s$7($r=>{ir.current=!1,Ut.onStop(Xt,$r,Jt),$r==="leave"&&!U(Ut)&&(gr("hidden"),xr(Xt))})});let Cr=Kt,_r={ref:Qt};return Gt?Cr={...Cr,className:t$4(Kt.className,...rr.current.enter,...rr.current.enterFrom)}:ir.current&&(Cr.className=t$4(Kt.className,(Ct=Xt.current)==null?void 0:Ct.className),Cr.className===""&&delete Cr.className),React$8.createElement(M.Provider,{value:Ut},React$8.createElement(s$3,{value:u$7(pr,{visible:d$3.Open,hidden:d$3.Closed})|er.flags},C({ourProps:_r,theirProps:Cr,defaultTag:De,features:le,visible:pr==="visible",name:"Transition.Child"})))}function Fe(ht,Et){let{show:yt,appear:Ct=!1,unmount:$t=!0,...At}=ht,Bt=reactExports.useRef(null),Dt=y$1(Bt,Et);l$4();let Ft=u$3();if(yt===void 0&&Ft!==null&&(yt=(Ft&d$3.Open)===d$3.Open),![!0,!1].includes(yt))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[kt,Mt]=reactExports.useState(yt?"visible":"hidden"),Nt=se(()=>{Mt("hidden")}),[jt,zt]=reactExports.useState(!0),Vt=reactExports.useRef([yt]);l$5(()=>{jt!==!1&&Vt.current[Vt.current.length-1]!==yt&&(Vt.current.push(yt),zt(!1))},[Vt,yt]);let Kt=reactExports.useMemo(()=>({show:yt,appear:Ct,initial:jt}),[yt,Ct,jt]);reactExports.useEffect(()=>{if(yt)Mt("visible");else if(!U(Nt))Mt("hidden");else{let dr=Bt.current;if(!dr)return;let cr=dr.getBoundingClientRect();cr.x===0&&cr.y===0&&cr.width===0&&cr.height===0&&Mt("hidden")}},[yt,Nt]);let Xt={unmount:$t},Qt=o$5(()=>{var dr;jt&&zt(!1),(dr=ht.beforeEnter)==null||dr.call(ht)}),Zt=o$5(()=>{var dr;jt&&zt(!1),(dr=ht.beforeLeave)==null||dr.call(ht)});return React$8.createElement(M.Provider,{value:Nt},React$8.createElement(I.Provider,{value:Kt},C({ourProps:{...Xt,as:reactExports.Fragment,children:React$8.createElement(ue,{ref:Dt,...Xt,...At,beforeEnter:Qt,beforeLeave:Zt})},theirProps:{},defaultTag:reactExports.Fragment,features:le,visible:kt==="visible",name:"Transition"})))}function _e(ht,Et){let yt=reactExports.useContext(I)!==null,Ct=u$3()!==null;return React$8.createElement(React$8.Fragment,null,!yt&&Ct?React$8.createElement(q,{ref:Et,...ht}):React$8.createElement(ue,{ref:Et,...ht}))}let q=U$2(Fe),ue=U$2(He),Le=U$2(_e),qe=Object.assign(q,{Child:Le,Root:q});var Type=(ht=>(ht[ht.TRANSACTION=1]="TRANSACTION",ht[ht.HOMEPAGE=2]="HOMEPAGE",ht[ht.BLOG=3]="BLOG",ht[ht.DOC=4]="DOC",ht))(Type||{});let Store$1=class{constructor(){this.query="",this.visible=!1,this.loading=!1,this.searchResult=[],this.setQuery=async Et=>{if(this.query=Et,!Et){this.searchResult=[];return}this.setLoading(!0);const{data:yt,success:Ct}=await commonApi.search({query:Et});Ct&&(this.searchResult=yt),this.setLoading(!1)},this.setLoading=Et=>{this.loading=Et},this.setVisible=Et=>{this.visible=Et},makeAutoObservable(this)}};const container$2="_container_1hgfs_1",styles$8={container:container$2},map$3={[Type.DOC]:{name:"Docs",icon:"icon-document"},[Type.BLOG]:{name:"Blogs",icon:"icon-blog"},[Type.HOMEPAGE]:{name:"Homepage",icon:"icon-homepage"},[Type.TRANSACTION]:{name:"Explorer",icon:"icon-explorer"}},SearchBar=observer(({className:ht})=>{const{query:Et,loading:yt,setQuery:Ct,visible:$t,setVisible:At,searchResult:Bt}=useLocalObservable(()=>new Store$1),Dt=Bt.reduce((Mt,Nt)=>({...Mt,[Nt.type]:[...Mt[Nt.type]||[],Nt]}),{}),Ft=(Mt,Nt)=>{const jt=new RegExp(Et,"gi"),{name:zt,icon:Vt}=map$3[Mt]||{};switch(Mt){case Type.TRANSACTION:return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center px-4 py-2 text-xs text-gray-600 dark:text-gray-300",children:[jsxRuntimeExports.jsx(Iconfont,{type:Vt,mr:4}),zt]}),jsxRuntimeExports.jsx("ul",{className:"px-4 text-sm text-gray-800 dark:text-white",children:Nt.map((Kt,Xt)=>{var Qt;return jsxRuntimeExports.jsx(Link,{onClick:()=>At(!1),to:`/explorer/tx/${(Qt=NetworkUtils.getSimpleNameByChainId(Kt.chainId))==null?void 0:Qt.toLocaleLowerCase()}/${Kt.txnHash}`,children:jsxRuntimeExports.jsx(qt.Option,{value:Kt,className:({active:Zt})=>cls("w-full cursor-pointer select-none px-4 py-2",{"bg-gray-300/30 dark:!bg-gray-800":Zt}),children:jsxRuntimeExports.jsxs("div",{className:"flex items-center truncate",children:[jsxRuntimeExports.jsx("img",{src:NetworkUtils.getSymbolByChainId(Kt.chainId),className:"mr-2 size-8"}),jsxRuntimeExports.jsxs("div",{className:"truncate",children:[jsxRuntimeExports.jsx("div",{className:"truncate",children:NetworkUtils.getSimpleNameByChainId(Kt.chainId)}),jsxRuntimeExports.jsx("p",{className:"truncate",children:Kt.txnHash})]})]})})},Xt)})})]});case Type.DOC:case Type.BLOG:return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center px-4 py-2 text-xs font-bold text-gray-600 dark:text-gray-300",children:[jsxRuntimeExports.jsx(Iconfont,{type:Vt,mr:4}),zt]}),jsxRuntimeExports.jsx("ul",{className:"px-4 text-sm text-gray-800 dark:text-white",children:Nt.map((Kt,Xt)=>{var Qt;return jsxRuntimeExports.jsx(Link,{to:Mt===Type.BLOG?PHALCON_LANDING_DOMAIN+Kt.path:Kt.path,target:"_blank",children:jsxRuntimeExports.jsxs(qt.Option,{value:Kt,className:({active:Zt})=>cls("cursor-pointer select-none px-7 py-2",{"bg-gray-300/30 dark:!bg-gray-800":Zt}),children:[jsxRuntimeExports.jsxs("div",{className:cls("flex items-center justify-between",{" mb-1":Kt.content}),children:[jsxRuntimeExports.jsx("div",{className:"truncate text-sm font-bold",dangerouslySetInnerHTML:{__html:((Qt=Kt.title)==null?void 0:Qt.replace(jt,(Zt,dr,cr)=>`<span class="text-primary">${cr.slice(dr,dr+Zt.length)}</span>`))??""}}),jsxRuntimeExports.jsx("p",{className:"whitespace-nowrap text-xs",children:(Kt==null?void 0:Kt.parentTitle)&&Kt.parentTitle.join("/")})]}),Kt.content&&jsxRuntimeExports.jsx("div",{className:"line-clamp-2 text-xs !font-normal",dangerouslySetInnerHTML:{__html:MarkdownIt({html:!0}).render(Kt.content.replace(jt,(Zt,dr,cr)=>`<span class="text-primary">${cr.slice(dr,dr+Zt.length)}</span>`)??"")}})]})},Xt)})})]});case Type.HOMEPAGE:return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center px-4 py-2 text-xs font-bold text-gray-600 dark:text-gray-300",children:[jsxRuntimeExports.jsx(Iconfont,{type:Vt,mr:4,className:"-mt-0.5"}),zt]}),jsxRuntimeExports.jsx("ul",{className:"px-4 text-sm text-gray-800 dark:text-white",children:Nt.map((Kt,Xt)=>{var Qt;return jsxRuntimeExports.jsx(Link,{to:PHALCON_LANDING_DOMAIN+Kt.path,target:"_blank",children:jsxRuntimeExports.jsx(qt.Option,{value:Kt,className:({active:Zt})=>cls("flex cursor-pointer select-none items-center px-7 py-2",{"bg-gray-300/30 dark:!bg-gray-800":Zt}),children:jsxRuntimeExports.jsx("div",{className:"line-clamp-3 text-sm font-bold",dangerouslySetInnerHTML:{__html:((Qt=Kt.title)==null?void 0:Qt.replace(jt,(Zt,dr,cr)=>`<span class="text-primary">${cr.slice(dr,dr+Zt.length)}</span>`))??""}})})},Xt)})})]})}},kt=Mt=>{(Mt.metaKey||Mt.ctrlKey)&&Mt.key==="k"&&At(!0)};return reactExports.useEffect(()=>(window.addEventListener("keydown",kt),()=>{window.removeEventListener("keydown",kt)}),[]),reactExports.useEffect(()=>(eventBus.on("openSearchModal",()=>At(!0)),()=>{eventBus.off("openSearchModal",()=>At(!0))}),[]),jsxRuntimeExports.jsxs("div",{className:ht,children:[jsxRuntimeExports.jsx("button",{type:"button",className:cls(ht,"dark:highlight-white/5 hidden w-[440px] max-w-[440px] cursor-pointer items-center rounded-md bg-white py-1.5 pl-2 pr-3 text-sm leading-6 text-slate-400 shadow-sm ring-1 ring-gray-900/10 hover:ring-gray-300 dark:bg-gray-800 dark:hover:bg-gray-700 lg:flex"),onClick:()=>At(!0),children:jsxRuntimeExports.jsxs("div",{className:"flex size-full items-center gap-2",children:[jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",className:cls("size-4 cursor-pointer text-xl font-semibold text-primary dark:text-white"),children:jsxRuntimeExports.jsx("path",{fillRule:"evenodd",d:"M9 3.5a5.5 5.5 0 100 11 5.5 5.5 0 000-11zM2 9a7 7 0 1112.452 4.391l3.328 3.329a.75.75 0 11-1.06 1.06l-3.329-3.328A7 7 0 012 9z",clipRule:"evenodd"})}),jsxRuntimeExports.jsx("div",{className:"flex-1 truncate text-left text-gray-400 dark:text-gray-500",children:"Search for Transactions, Blogs or Docs"})]})}),jsxRuntimeExports.jsx(qe.Root,{show:$t,as:reactExports.Fragment,afterLeave:()=>Ct(""),appear:!0,children:jsxRuntimeExports.jsxs(_t,{as:"div",className:cls("relative z-max",styles$8.container),onClose:At,children:[jsxRuntimeExports.jsx(qe.Child,{as:reactExports.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:jsxRuntimeExports.jsx("div",{className:"fixed inset-0 bg-black/30 backdrop-blur-sm transition-opacity dark:bg-gray-800/80"})}),jsxRuntimeExports.jsx("div",{className:"fixed inset-0 z-10 w-screen overflow-y-auto p-4 pt-24 sm:p-6 sm:pt-24 md:p-8 md:pt-24",children:jsxRuntimeExports.jsx(qe.Child,{as:reactExports.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:jsxRuntimeExports.jsx(_t.Panel,{className:"mx-auto max-w-2xl overflow-hidden rounded-xl bg-white shadow-2xl ring-1 ring-black/5 transition-all dark:bg-gray-900",children:jsxRuntimeExports.jsxs(qt,{children:[jsxRuntimeExports.jsxs("div",{className:"relative",children:[jsxRuntimeExports.jsx(ForwardRef,{className:"pointer-events-none absolute left-4 top-3.5 size-5 text-gray-400 dark:text-white/40","aria-hidden":"true"}),jsxRuntimeExports.jsx(qt.Input,{className:"h-12 w-full border-0 bg-transparent pl-11 pr-4 text-default outline-none placeholder:text-gray-400 dark:placeholder:text-gray-500 sm:text-sm",placeholder:"Search for Transactions, Blogs or Docs",onChange:debounce$3(async Mt=>Ct(Mt.target.value),300)})]}),!!Bt.length&&!yt&&Et&&jsxRuntimeExports.jsx(qt.Options,{static:!0,className:"max-h-96 scroll-pb-2 scroll-pt-11 space-y-2 overflow-y-auto pb-2",children:Object.entries(Dt).map(([Mt,Nt])=>jsxRuntimeExports.jsx("li",{children:Ft(Number(Mt),Nt)},Mt))}),Et&&!Bt.length&&!yt&&jsxRuntimeExports.jsxs("div",{className:"border-t border-gray-100 px-6 py-14 text-center text-sm dark:border-white/10 sm:px-14",children:[jsxRuntimeExports.jsx(Iconfont,{type:"icon-no-data",size:48,className:"mx-auto text-gray-400","aria-hidden":"true"}),jsxRuntimeExports.jsx("p",{className:"mt-4 font-bold text-default",children:"No results found"}),jsxRuntimeExports.jsx("p",{className:"mt-2 text-gray-500 dark:text-gray-400",children:"We couldn’t find anything with that term. Please try again."})]}),yt&&jsxRuntimeExports.jsx("div",{className:"flex h-20 items-center justify-center",children:jsxRuntimeExports.jsx(Spin,{spinning:yt})})]})})})})]})})]})}),accordionCard="_accordionCard_1kjyc_1",disabled="_disabled_1kjyc_4",md="_md_1kjyc_7",sm="_sm_1kjyc_11",styles$7={accordionCard,disabled,md,sm},AccordionCard=reactExports.forwardRef((ht,Et)=>{const{title:yt,subTitle:Ct,children:$t,className:At,expandIconPosition:Bt="end",paddingSize:Dt="md",disabled:Ft,open:kt,onChange:Mt,useNewVersion:Nt,header:jt=jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:cls("text-lg font-semibold text-default",{"leading-none":!Ct}),children:yt}),jsxRuntimeExports.jsx("div",{className:"text-gray-600 dark:text-gray-400",children:Ct})]}),expandIcon:zt=({isActive:Xt})=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",style:{transform:Xt?"rotate(180deg)":"rotate(0deg)"},children:jsxRuntimeExports.jsx("path",{d:"M6 8L10 12L14 8",stroke:"#9CA3AF",strokeWidth:"1.575",strokeLinecap:"round",strokeLinejoin:"round"})}),...Vt}=ht,Kt=reactExports.useRef(null);return reactExports.useImperativeHandle(Et,()=>{var Zt,dr;const Xt=((Zt=Kt==null?void 0:Kt.current)==null?void 0:Zt.getBoundingClientRect().width)??0,Qt=((dr=Kt==null?void 0:Kt.current)==null?void 0:dr.getBoundingClientRect().height)??0;return{width:Xt,height:Qt}}),Nt?jsxRuntimeExports.jsx(Collapse$1,{activeKey:kt?"0":void 0,collapsible:Ft?"disabled":void 0,className:cls(styles$7.accordionCard,"card",styles$7[Dt],Ft&&styles$7.disabled,At),expandIconPosition:Bt,expandIcon:zt,onChange:Xt=>{Ft||Mt==null||Mt(Xt==="0")},items:[{key:"0",label:jt,children:$t}],...Vt}):jsxRuntimeExports.jsx(Collapse$1,{activeKey:kt?"0":void 0,collapsible:Ft?"disabled":void 0,className:cls(styles$7.accordionCard,"card",styles$7[Dt],Ft&&styles$7.disabled,At),expandIconPosition:Bt,expandIcon:zt,onChange:Xt=>{Ft||Mt==null||Mt(Xt==="0")},...Vt,children:jsxRuntimeExports.jsx(Collapse$1.Panel,{ref:Kt,forceRender:!0,header:jt,children:$t},"0")})});class Store{constructor(){this.isColoring=!1,this.setColorStatus=Et=>{this.isColoring=Et},makeAutoObservable(this)}}const title$1="_title_7q3eg_1",editIcon="_editIcon_7q3eg_13",decodeIcon="_decodeIcon_7q3eg_16",chainIcon="_chainIcon_7q3eg_19",colorIcon="_colorIcon_7q3eg_24",colorSetting="_colorSetting_7q3eg_35",colorContainer="_colorContainer_7q3eg_35",colorBlock="_colorBlock_7q3eg_39",noColor="_noColor_7q3eg_49",styles$6={title:title$1,editIcon,decodeIcon,chainIcon,colorIcon,colorSetting,colorContainer,colorBlock,noColor},COLOR_LIST=["#822025","#FF636A","#FF636A","#F5D90A","#80D8AE","#30A46C","#9E8CFC","#7C66DC","#390CD9","#3340AE","#706F78",""],LABEL_LIST=["selector","account"],BscTooltip=({title:ht="",reference:Et,children:yt,leaveComma:Ct,type:$t="",onEdit:At,callData:Bt,topics:Dt,operation:Ft,copyText:kt,chainIconData:Mt,originLabel:Nt,delay:jt=.1,trigger:zt=["hover"],overlayStyle:Vt={},showDecoded:Kt=!0})=>{const Xt=useLocalObservable(()=>new Store),Qt=Er=>Ct?Er:Er.replaceAll(",",""),Zt=Er=>{Er.stopPropagation(),Xt.setColorStatus(!0),Tracker.customEvent(GA_EVENT_NAMES.TIPS_EDIT_BG_COLOR)},dr=Er=>{Er.stopPropagation(),At==null||At({action:LabelAction.RAW,title:"Decode Signature",value:Bt,type:"raw",label:"",operation:Ft,topics:Dt}),Tracker.customEvent(GA_EVENT_NAMES.TIPS_DECODE_SIGNATURE)},cr=Er=>{Er.stopPropagation(),window.open(Mt==null?void 0:Mt.link),Tracker.customEvent(GA_EVENT_NAMES.TIPS_OPEN_EXTERNAL_EXPLORE)};if(typeof Et<"u"&&typeof ht!="string")throw new Error("reference 场景下, title需要为string类型");return jsxRuntimeExports.jsx(Tooltip,{trigger:zt,mouseEnterDelay:.3,mouseLeaveDelay:jt,onOpenChange:()=>Xt.setColorStatus(!1),overlayStyle:{width:"fit-content",maxWidth:"557px",...Vt},placement:"bottom",title:Xt.isColoring?jsxRuntimeExports.jsxs("div",{className:styles$6.colorSetting,children:[jsxRuntimeExports.jsx("div",{children:typeof ht=="string"?ht:ht[1]}),jsxRuntimeExports.jsx("div",{className:styles$6.colorContainer,children:COLOR_LIST.map((Er,pr)=>Er?jsxRuntimeExports.jsx("span",{style:{background:Er},className:styles$6.colorBlock,onClick:gr=>{gr.stopPropagation(),At==null||At({action:LabelAction.COLOR,value:typeof ht=="string"?ht:ht[1],type:$t,color:Er,label:typeof ht=="string"?"":ht[0]}),Xt.setColorStatus(!1)}},pr):jsxRuntimeExports.jsx("span",{className:styles$6.colorBlock,onClick:gr=>{gr.stopPropagation(),At==null||At({action:LabelAction.COLOR,value:typeof ht=="string"?ht:ht[1],type:$t,color:"transparent",label:typeof ht=="string"?"":ht[0]}),Xt.setColorStatus(!1)},children:jsxRuntimeExports.jsx(Iconfont,{type:"icon-colorless",size:21,className:styles$6.noColor})},pr))})]}):jsxRuntimeExports.jsx("div",{className:styles$6.title,children:Et?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[Et,jsxRuntimeExports.jsx(CopyButton,{text:Qt(ht),ml:4})]}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:typeof ht=="string"?jsxRuntimeExports.jsxs("div",{children:[ht,jsxRuntimeExports.jsxs("span",{style:{display:"inline-flex",alignItems:"center"},children:[jsxRuntimeExports.jsx(CopyButton,{text:Qt(kt||ht),ml:4}),LABEL_LIST.includes($t)&&At&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Tracker,{mode:["hit"],data:{customEvent:GA_EVENT_NAMES.TIPS_EDIT_ADDRESS},children:jsxRuntimeExports.jsx(Iconfont,{type:"icon-rename",size:18,className:styles$6.editIcon,onClick:Er=>{Er.stopPropagation(),At==null||At({title:"Add Label",value:ht,type:$t})}})}),jsxRuntimeExports.jsx(Iconfont,{type:"icon-color-edit",className:styles$6.colorIcon,onClick:Zt}),$t==="selector"&&Kt&&jsxRuntimeExports.jsx(Iconfont,{type:"icon-decoding",className:styles$6.decodeIcon,onClick:dr})]}),(Mt==null?void 0:Mt.icon)&&jsxRuntimeExports.jsx("img",{src:Mt.icon,className:styles$6.chainIcon,onClick:cr})]})]}):ht.filter(Er=>!!Er).map((Er,pr)=>pr?jsxRuntimeExports.jsxs("span",{style:{display:"flex",alignItems:"center"},children:[jsxRuntimeExports.jsx("span",{style:{overflowX:"auto",whiteSpace:"nowrap"},children:Er}),jsxRuntimeExports.jsx(CopyButton,{text:Qt(Er),ml:4}),(Mt==null?void 0:Mt.icon)&&jsxRuntimeExports.jsx("img",{src:Mt.icon,className:styles$6.chainIcon,onClick:cr})]},`${Er}-${pr}`):jsxRuntimeExports.jsxs("span",{children:[Er,jsxRuntimeExports.jsxs("span",{style:{display:"inline-flex",alignItems:"center"},children:[jsxRuntimeExports.jsx(CopyButton,{text:Qt(Er),ml:4}),LABEL_LIST.includes($t)&&At&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Tracker,{mode:["hit"],data:{customEvent:GA_EVENT_NAMES.TIPS_EDIT_ADDRESS},children:jsxRuntimeExports.jsx(Iconfont,{type:"icon-rename",className:styles$6.editIcon,onClick:gr=>{gr.stopPropagation(),At==null||At({action:LabelAction.ADDRESS,title:"Edit Label",value:ht[1],type:$t,label:ht[0],originLabel:Nt})}})}),jsxRuntimeExports.jsx(Iconfont,{type:"icon-color-edit",className:styles$6.colorIcon,onClick:Zt}),$t==="selector"&&Kt&&jsxRuntimeExports.jsx(Iconfont,{type:"icon-decoding",className:styles$6.decodeIcon,onClick:dr})]})]})]},`${Er}-${pr}`))})}),children:yt})},BscTooltip$1=observer(BscTooltip);var dist={},ga4={},gtag={};(function(ht){Object.defineProperty(ht,"__esModule",{value:!0}),ht.default=void 0;var Et=function(){for(var $t=arguments.length,At=new Array($t),Bt=0;Bt<$t;Bt++)At[Bt]=arguments[Bt];if(typeof window<"u"){var Dt;typeof window.gtag>"u"&&(window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)}),(Dt=window).gtag.apply(Dt,At)}},yt=Et;ht.default=yt})(gtag);var format={};(function(ht){Object.defineProperty(ht,"__esModule",{value:!0}),ht.default=Bt;var Et=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;function yt(Dt){return Dt.toString().trim().replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,function(Ft,kt,Mt){return kt>0&&kt+Ft.length!==Mt.length&&Ft.search(Et)>-1&&Mt.charAt(kt-2)!==":"&&(Mt.charAt(kt+Ft.length)!=="-"||Mt.charAt(kt-1)==="-")&&Mt.charAt(kt-1).search(/[^\s-]/)<0?Ft.toLowerCase():Ft.substr(1).search(/[A-Z]|\../)>-1?Ft:Ft.charAt(0).toUpperCase()+Ft.substr(1)})}function Ct(Dt){return typeof Dt=="string"&&Dt.indexOf("@")!==-1}var $t="REDACTED (Potential Email Address)";function At(Dt){return Ct(Dt)?(console.warn("This arg looks like an email address, redacting."),$t):Dt}function Bt(){var Dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,kt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,Mt=Dt||"";return Ft&&(Mt=yt(Dt)),kt&&(Mt=At(Mt)),Mt}})(format);(function(ht){Object.defineProperty(ht,"__esModule",{value:!0}),ht.default=ht.GA4=void 0;var Et=Bt(gtag),yt=Bt(format),Ct=["eventCategory","eventAction","eventLabel","eventValue","hitType"],$t=["title","location"],At=["page","hitType"];function Bt(Wt){return Wt&&Wt.__esModule?Wt:{default:Wt}}function Dt(Wt,Gt){if(Wt==null)return{};var Yt=Ft(Wt,Gt),er,lr;if(Object.getOwnPropertySymbols){var Jt=Object.getOwnPropertySymbols(Wt);for(lr=0;lr<Jt.length;lr++)er=Jt[lr],!(Gt.indexOf(er)>=0)&&Object.prototype.propertyIsEnumerable.call(Wt,er)&&(Yt[er]=Wt[er])}return Yt}function Ft(Wt,Gt){if(Wt==null)return{};var Yt={},er=Object.keys(Wt),lr,Jt;for(Jt=0;Jt<er.length;Jt++)lr=er[Jt],!(Gt.indexOf(lr)>=0)&&(Yt[lr]=Wt[lr]);return Yt}function kt(Wt){"@babel/helpers - typeof";return kt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Gt){return typeof Gt}:function(Gt){return Gt&&typeof Symbol=="function"&&Gt.constructor===Symbol&&Gt!==Symbol.prototype?"symbol":typeof Gt},kt(Wt)}function Mt(Wt){return zt(Wt)||jt(Wt)||Zt(Wt)||Nt()}function Nt(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jt(Wt){if(typeof Symbol<"u"&&Wt[Symbol.iterator]!=null||Wt["@@iterator"]!=null)return Array.from(Wt)}function zt(Wt){if(Array.isArray(Wt))return dr(Wt)}function Vt(Wt,Gt){var Yt=Object.keys(Wt);if(Object.getOwnPropertySymbols){var er=Object.getOwnPropertySymbols(Wt);Gt&&(er=er.filter(function(lr){return Object.getOwnPropertyDescriptor(Wt,lr).enumerable})),Yt.push.apply(Yt,er)}return Yt}function Kt(Wt){for(var Gt=1;Gt<arguments.length;Gt++){var Yt=arguments[Gt]!=null?arguments[Gt]:{};Gt%2?Vt(Object(Yt),!0).forEach(function(er){yr(Wt,er,Yt[er])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Wt,Object.getOwnPropertyDescriptors(Yt)):Vt(Object(Yt)).forEach(function(er){Object.defineProperty(Wt,er,Object.getOwnPropertyDescriptor(Yt,er))})}return Wt}function Xt(Wt,Gt){return Er(Wt)||cr(Wt,Gt)||Zt(Wt,Gt)||Qt()}function Qt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zt(Wt,Gt){if(Wt){if(typeof Wt=="string")return dr(Wt,Gt);var Yt=Object.prototype.toString.call(Wt).slice(8,-1);if(Yt==="Object"&&Wt.constructor&&(Yt=Wt.constructor.name),Yt==="Map"||Yt==="Set")return Array.from(Wt);if(Yt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Yt))return dr(Wt,Gt)}}function dr(Wt,Gt){(Gt==null||Gt>Wt.length)&&(Gt=Wt.length);for(var Yt=0,er=new Array(Gt);Yt<Gt;Yt++)er[Yt]=Wt[Yt];return er}function cr(Wt,Gt){var Yt=Wt==null?null:typeof Symbol<"u"&&Wt[Symbol.iterator]||Wt["@@iterator"];if(Yt!=null){var er,lr,Jt,Ut,ir=[],Cr=!0,_r=!1;try{if(Jt=(Yt=Yt.call(Wt)).next,Gt!==0)for(;!(Cr=(er=Jt.call(Yt)).done)&&(ir.push(er.value),ir.length!==Gt);Cr=!0);}catch($r){_r=!0,lr=$r}finally{try{if(!Cr&&Yt.return!=null&&(Ut=Yt.return(),Object(Ut)!==Ut))return}finally{if(_r)throw lr}}return ir}}function Er(Wt){if(Array.isArray(Wt))return Wt}function pr(Wt,Gt){if(!(Wt instanceof Gt))throw new TypeError("Cannot call a class as a function")}function gr(Wt,Gt){for(var Yt=0;Yt<Gt.length;Yt++){var er=Gt[Yt];er.enumerable=er.enumerable||!1,er.configurable=!0,"value"in er&&(er.writable=!0),Object.defineProperty(Wt,xr(er.key),er)}}function vr(Wt,Gt,Yt){return Gt&&gr(Wt.prototype,Gt),Object.defineProperty(Wt,"prototype",{writable:!1}),Wt}function yr(Wt,Gt,Yt){return Gt=xr(Gt),Gt in Wt?Object.defineProperty(Wt,Gt,{value:Yt,enumerable:!0,configurable:!0,writable:!0}):Wt[Gt]=Yt,Wt}function xr(Wt){var Gt=rr(Wt,"string");return kt(Gt)==="symbol"?Gt:String(Gt)}function rr(Wt,Gt){if(kt(Wt)!=="object"||Wt===null)return Wt;var Yt=Wt[Symbol.toPrimitive];if(Yt!==void 0){var er=Yt.call(Wt,Gt||"default");if(kt(er)!=="object")return er;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Gt==="string"?String:Number)(Wt)}var Lt=function(){function Wt(){var Gt=this;pr(this,Wt),yr(this,"reset",function(){Gt.isInitialized=!1,Gt._testMode=!1,Gt._currentMeasurementId,Gt._hasLoadedGA=!1,Gt._isQueuing=!1,Gt._queueGtag=[]}),yr(this,"_gtag",function(){for(var Yt=arguments.length,er=new Array(Yt),lr=0;lr<Yt;lr++)er[lr]=arguments[lr];Gt._testMode||Gt._isQueuing?Gt._queueGtag.push(er):Et.default.apply(void 0,er)}),yr(this,"_loadGA",function(Yt,er){var lr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"https://www.googletagmanager.com/gtag/js";if(!(typeof window>"u"||typeof document>"u")&&!Gt._hasLoadedGA){var Jt=document.createElement("script");Jt.async=!0,Jt.src="".concat(lr,"?id=").concat(Yt),er&&Jt.setAttribute("nonce",er),document.body.appendChild(Jt),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},Gt._hasLoadedGA=!0}}),yr(this,"_toGtagOptions",function(Yt){if(Yt){var er={cookieUpdate:"cookie_update",cookieExpires:"cookie_expires",cookieDomain:"cookie_domain",cookieFlags:"cookie_flags",userId:"user_id",clientId:"client_id",anonymizeIp:"anonymize_ip",contentGroup1:"content_group1",contentGroup2:"content_group2",contentGroup3:"content_group3",contentGroup4:"content_group4",contentGroup5:"content_group5",allowAdFeatures:"allow_google_signals",allowAdPersonalizationSignals:"allow_ad_personalization_signals",nonInteraction:"non_interaction",page:"page_path",hitCallback:"event_callback"},lr=Object.entries(Yt).reduce(function(Jt,Ut){var ir=Xt(Ut,2),Cr=ir[0],_r=ir[1];return er[Cr]?Jt[er[Cr]]=_r:Jt[Cr]=_r,Jt},{});return lr}}),yr(this,"initialize",function(Yt){var er=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Yt)throw new Error("Require GA_MEASUREMENT_ID");var lr=typeof Yt=="string"?[{trackingId:Yt}]:Yt;Gt._currentMeasurementId=lr[0].trackingId;var Jt=er.gaOptions,Ut=er.gtagOptions,ir=er.nonce,Cr=er.testMode,_r=Cr===void 0?!1:Cr,$r=er.gtagUrl;if(Gt._testMode=_r,_r||Gt._loadGA(Gt._currentMeasurementId,ir,$r),Gt.isInitialized||(Gt._gtag("js",new Date),lr.forEach(function(Ar){var Fr=Kt(Kt(Kt({},Gt._toGtagOptions(Kt(Kt({},Jt),Ar.gaOptions))),Ut),Ar.gtagOptions);Object.keys(Fr).length?Gt._gtag("config",Ar.trackingId,Fr):Gt._gtag("config",Ar.trackingId)})),Gt.isInitialized=!0,!_r){var Tr=Mt(Gt._queueGtag);for(Gt._queueGtag=[],Gt._isQueuing=!1;Tr.length;){var Dr=Tr.shift();Gt._gtag.apply(Gt,Mt(Dr)),Dr[0]==="get"&&(Gt._isQueuing=!0)}}}),yr(this,"set",function(Yt){if(!Yt){console.warn("`fieldsObject` is required in .set()");return}if(kt(Yt)!=="object"){console.warn("Expected `fieldsObject` arg to be an Object");return}Object.keys(Yt).length===0&&console.warn("empty `fieldsObject` given to .set()"),Gt._gaCommand("set",Yt)}),yr(this,"_gaCommandSendEvent",function(Yt,er,lr,Jt,Ut){Gt._gtag("event",er,Kt(Kt({event_category:Yt,event_label:lr,value:Jt},Ut&&{non_interaction:Ut.nonInteraction}),Gt._toGtagOptions(Ut)))}),yr(this,"_gaCommandSendEventParameters",function(){for(var Yt=arguments.length,er=new Array(Yt),lr=0;lr<Yt;lr++)er[lr]=arguments[lr];if(typeof er[0]=="string")Gt._gaCommandSendEvent.apply(Gt,Mt(er.slice(1)));else{var Jt=er[0],Ut=Jt.eventCategory,ir=Jt.eventAction,Cr=Jt.eventLabel,_r=Jt.eventValue;Jt.hitType;var $r=Dt(Jt,Ct);Gt._gaCommandSendEvent(Ut,ir,Cr,_r,$r)}}),yr(this,"_gaCommandSendTiming",function(Yt,er,lr,Jt){Gt._gtag("event","timing_complete",{name:er,value:lr,event_category:Yt,event_label:Jt})}),yr(this,"_gaCommandSendPageview",function(Yt,er){if(er&&Object.keys(er).length){var lr=Gt._toGtagOptions(er),Jt=lr.title,Ut=lr.location,ir=Dt(lr,$t);Gt._gtag("event","page_view",Kt(Kt(Kt(Kt({},Yt&&{page_path:Yt}),Jt&&{page_title:Jt}),Ut&&{page_location:Ut}),ir))}else Yt?Gt._gtag("event","page_view",{page_path:Yt}):Gt._gtag("event","page_view")}),yr(this,"_gaCommandSendPageviewParameters",function(){for(var Yt=arguments.length,er=new Array(Yt),lr=0;lr<Yt;lr++)er[lr]=arguments[lr];if(typeof er[0]=="string")Gt._gaCommandSendPageview.apply(Gt,Mt(er.slice(1)));else{var Jt=er[0],Ut=Jt.page;Jt.hitType;var ir=Dt(Jt,At);Gt._gaCommandSendPageview(Ut,ir)}}),yr(this,"_gaCommandSend",function(){for(var Yt=arguments.length,er=new Array(Yt),lr=0;lr<Yt;lr++)er[lr]=arguments[lr];var Jt=typeof er[0]=="string"?er[0]:er[0].hitType;switch(Jt){case"event":Gt._gaCommandSendEventParameters.apply(Gt,er);break;case"pageview":Gt._gaCommandSendPageviewParameters.apply(Gt,er);break;case"timing":Gt._gaCommandSendTiming.apply(Gt,Mt(er.slice(1)));break;case"screenview":case"transaction":case"item":case"social":case"exception":console.warn("Unsupported send command: ".concat(Jt));break;default:console.warn("Send command doesn't exist: ".concat(Jt))}}),yr(this,"_gaCommandSet",function(){for(var Yt=arguments.length,er=new Array(Yt),lr=0;lr<Yt;lr++)er[lr]=arguments[lr];typeof er[0]=="string"&&(er[0]=yr({},er[0],er[1])),Gt._gtag("set",Gt._toGtagOptions(er[0]))}),yr(this,"_gaCommand",function(Yt){for(var er=arguments.length,lr=new Array(er>1?er-1:0),Jt=1;Jt<er;Jt++)lr[Jt-1]=arguments[Jt];switch(Yt){case"send":Gt._gaCommandSend.apply(Gt,lr);break;case"set":Gt._gaCommandSet.apply(Gt,lr);break;default:console.warn("Command doesn't exist: ".concat(Yt))}}),yr(this,"ga",function(){for(var Yt=arguments.length,er=new Array(Yt),lr=0;lr<Yt;lr++)er[lr]=arguments[lr];if(typeof er[0]=="string")Gt._gaCommand.apply(Gt,er);else{var Jt=er[0];Gt._gtag("get",Gt._currentMeasurementId,"client_id",function(Ut){Gt._isQueuing=!1;var ir=Gt._queueGtag;for(Jt({get:function($r){return $r==="clientId"?Ut:$r==="trackingId"?Gt._currentMeasurementId:$r==="apiVersion"?"1":void 0}});ir.length;){var Cr=ir.shift();Gt._gtag.apply(Gt,Mt(Cr))}}),Gt._isQueuing=!0}return Gt.ga}),yr(this,"event",function(Yt,er){if(typeof Yt=="string")Gt._gtag("event",Yt,Gt._toGtagOptions(er));else{var lr=Yt.action,Jt=Yt.category,Ut=Yt.label,ir=Yt.value,Cr=Yt.nonInteraction,_r=Yt.transport;if(!Jt||!lr){console.warn("args.category AND args.action are required in event()");return}var $r={hitType:"event",eventCategory:(0,yt.default)(Jt),eventAction:(0,yt.default)(lr)};Ut&&($r.eventLabel=(0,yt.default)(Ut)),typeof ir<"u"&&(typeof ir!="number"?console.warn("Expected `args.value` arg to be a Number."):$r.eventValue=ir),typeof Cr<"u"&&(typeof Cr!="boolean"?console.warn("`args.nonInteraction` must be a boolean."):$r.nonInteraction=Cr),typeof _r<"u"&&(typeof _r!="string"?console.warn("`args.transport` must be a string."):(["beacon","xhr","image"].indexOf(_r)===-1&&console.warn("`args.transport` must be either one of these values: `beacon`, `xhr` or `image`"),$r.transport=_r)),Gt._gaCommand("send",$r)}}),yr(this,"send",function(Yt){Gt._gaCommand("send",Yt)}),this.reset()}return vr(Wt,[{key:"gtag",value:function(){this._gtag.apply(this,arguments)}}]),Wt}();ht.GA4=Lt;var Ht=new Lt;ht.default=Ht})(ga4);(function(ht){function Et(Dt){"@babel/helpers - typeof";return Et=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ft){return typeof Ft}:function(Ft){return Ft&&typeof Symbol=="function"&&Ft.constructor===Symbol&&Ft!==Symbol.prototype?"symbol":typeof Ft},Et(Dt)}Object.defineProperty(ht,"__esModule",{value:!0}),ht.default=ht.ReactGAImplementation=void 0;var yt=$t(ga4);function Ct(Dt){if(typeof WeakMap!="function")return null;var Ft=new WeakMap,kt=new WeakMap;return(Ct=function(Nt){return Nt?kt:Ft})(Dt)}function $t(Dt,Ft){if(Dt&&Dt.__esModule)return Dt;if(Dt===null||Et(Dt)!=="object"&&typeof Dt!="function")return{default:Dt};var kt=Ct(Ft);if(kt&&kt.has(Dt))return kt.get(Dt);var Mt={},Nt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var jt in Dt)if(jt!=="default"&&Object.prototype.hasOwnProperty.call(Dt,jt)){var zt=Nt?Object.getOwnPropertyDescriptor(Dt,jt):null;zt&&(zt.get||zt.set)?Object.defineProperty(Mt,jt,zt):Mt[jt]=Dt[jt]}return Mt.default=Dt,kt&&kt.set(Dt,Mt),Mt}var At=yt.GA4;ht.ReactGAImplementation=At;var Bt=yt.default;ht.default=Bt})(dist);const ReactGA=getDefaultExportFromCjs$1(dist),usePageTracker=()=>{reactExports.useEffect(()=>{ReactGA.initialize("G-BYVTPMW7WW",{gaOptions:{}}),ReactGA.send({hitType:"pageview",page:window.location.pathname+window.location.search})},[])},Tracker$1=({children:ht,mode:Et,className:yt,style:Ct,data:$t})=>{const At=()=>{const{customEvent:Bt}=$t;Et.includes("hit")&&ReactGA.event("click",{custom_event:Bt})};return reactExports.useEffect(()=>{Et.includes("view")&&ReactGA.send({hitType:"pageview",page:window.location.pathname+window.location.search})},[]),jsxRuntimeExports.jsx("div",{className:yt,style:{display:"contents",...Ct},onClickCapture:At,children:ht})},Tracker=Tracker$1;Tracker.usePageTracker=usePageTracker;Tracker.send=ReactGA.send;Tracker.ga=ReactGA.ga;Tracker.set=ReactGA.set;Tracker.event=ReactGA.event;Tracker.customEvent=ht=>ReactGA.event("click",{custom_event:ht});const CollaborationAccessGuardian=({permission:ht,children:Et,spinClassName:yt})=>{const{currentProject:Ct,loading:$t}=projectStore,{hasPermission:At}=useAuth(),Bt=At([ht]);return $t.permissions?jsxRuntimeExports.jsx(Spin,{className:cls("absolute left-1/2 top-1/2 translate-x-[-50%] translate-y-[-50%]",yt)}):Bt?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:Et}):jsxRuntimeExports.jsxs("div",{className:"flex size-full flex-col items-center justify-center",children:[jsxRuntimeExports.jsx(Iconfont,{type:"icon-noaccess",size:48,className:"text-gray-400 dark:text-gray-600"}),jsxRuntimeExports.jsx("p",{className:"text-base font-semibold text-default",children:"Access Denied"}),jsxRuntimeExports.jsxs("p",{className:"mt-3 max-w-[630px] text-center text-sm font-medium text-gray-600",children:["You do not have the permission to access this section. Please request the access from the Owner",jsxRuntimeExports.jsx("a",{href:`mailto:${Ct==null?void 0:Ct.owner.email}`,className:"mx-1 text-primary",target:"_blank",rel:"noreferrer",children:Ct==null?void 0:Ct.owner.email}),"."]})]})},CollaborationAccessGuardian$1=observer(CollaborationAccessGuardian),BlockLimitAlertBanner=({className:ht,style:Et})=>{const{projectCapacity:yt,blockLimitReached:Ct,currentProject:$t}=projectStore,{isProjectOwner:At}=useAuth(),Bt=()=>At?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Link,{to:"/subscribe/block/customize",className:"mx-1 text-white underline hover:underline",children:"Upgrade your plan"}),"or",jsxRuntimeExports.jsx(Link,{to:"/subscribe/block/package",className:"mx-1 text-white underline hover:underline",children:"purchase a pack"})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("span",{className:"ml-1",children:["Please contact the owner(",$t==null?void 0:$t.owner.email,") to"]}),jsxRuntimeExports.jsx(Link,{to:"/subscribe/block/customize",className:"mx-1 text-white underline hover:underline",children:"upgrade plan"}),"or",jsxRuntimeExports.jsx(Link,{to:"/subscribe/block/package",className:"mx-1 text-white underline hover:underline",children:"purchase a pack"})]}),Dt=()=>yt?yt.block.notificationCount>=yt.block.notificationCapacity&&yt.block.actionCapacity>0&&yt.block.triggeredActionCount>=yt.block.triggeredActionCapacity?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["You've reached the monthly limits for both notifications and action executions in Phalcon.",Bt(),"to continue receiving notifications and automating actions."]}):yt.block.notificationCount>=yt.block.notificationCapacity?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["You've reached the monthly notification limit for Phalcon.",Bt(),"to continue receiving notifications."]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["You've reached the monthly action execution limit for Phalcon.",Bt(),"to continue automating actions."]}):"";return Ct?jsxRuntimeExports.jsxs("div",{className:cls("hidden min-h-10 items-center justify-center gap-2 bg-primary px-2 text-sm text-white lg:flex",ht),style:Et,children:[jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"16",viewBox:"0 0 18 16",fill:"none",children:jsxRuntimeExports.jsx("path",{d:"M10.0369 9.68844C9.96661 10.5119 9.4791 10.8967 8.99786 10.8967C8.54048 10.8043 8.18548 10.5949 8.02978 9.7616L7.40083 1.97529C7.40083 1.19262 8.28679 0.5 9.03865 0.5C9.79038 0.5 10.5998 1.22426 10.5998 2.00592L10.0369 9.68844ZM9.00048 11.6965C8.11744 11.6965 7.40083 12.4118 7.40083 13.2954C7.40083 14.1789 8.11681 14.8955 9.00048 14.8955C9.88431 14.8955 10.5998 14.1792 10.5998 13.2954C10.6001 12.4129 9.88415 11.6965 9.00048 11.6965ZM15.3843 4.91523C16.6483 6.43691 17.3337 8.20833 17.3337 10.061C17.3337 11.9454 16.6246 13.7453 15.32 15.2835C15.1057 15.5361 14.7272 15.5672 14.4745 15.3529C14.2219 15.1386 14.1908 14.7601 14.4051 14.5075C15.532 13.179 16.134 11.6506 16.134 10.061C16.134 8.49847 15.5523 6.99494 14.4615 5.68176C14.2498 5.42693 14.2848 5.04877 14.5396 4.8371C14.7945 4.62543 15.1726 4.66041 15.3843 4.91523ZM13.6767 6.51473C14.5482 7.56393 15.0224 8.78953 15.0224 10.073C15.0224 11.3784 14.5319 12.6236 13.6325 13.684C13.4182 13.9366 13.0397 13.9677 12.7871 13.7534C12.5344 13.5391 12.5033 13.1606 12.7176 12.908C13.4392 12.0573 13.8228 11.0836 13.8228 10.073C13.8228 9.07966 13.4522 8.12196 12.7539 7.28125C12.5422 7.02643 12.5772 6.64827 12.832 6.4366C13.0869 6.22493 13.465 6.25991 13.6767 6.51473ZM11.9691 8.11423C12.4481 8.69095 12.7111 9.37072 12.7111 10.085C12.7111 10.8114 12.4391 11.5019 11.945 12.0845C11.7307 12.3371 11.3522 12.3682 11.0996 12.1539C10.8469 11.9396 10.8159 11.5611 11.0301 11.3085C11.3465 10.9355 11.5115 10.5166 11.5115 10.085C11.5115 9.66086 11.3522 9.24898 11.0463 8.88075C10.8346 8.62593 10.8696 8.24776 11.1244 8.03609C11.3792 7.82442 11.7574 7.8594 11.9691 8.11423ZM2.61636 4.91523C2.82803 4.66041 3.20619 4.62543 3.46101 4.8371C3.71583 5.04877 3.75081 5.42693 3.53914 5.68176C2.44833 6.99494 1.86662 8.49847 1.86662 10.061C1.86662 11.6506 2.4687 13.179 3.59554 14.5075C3.80982 14.7601 3.77874 15.1386 3.52611 15.3529C3.27348 15.5672 2.89497 15.5361 2.68069 15.2835C1.37602 13.7453 0.666992 11.9454 0.666992 10.061C0.666992 8.20833 1.35235 6.43691 2.61636 4.91523ZM5.16862 6.4366C5.42344 6.64827 5.45842 7.02643 5.24675 7.28125C4.54841 8.12196 4.17787 9.07966 4.17787 10.073C4.17787 11.0836 4.56144 12.0573 5.28303 12.908C5.49731 13.1606 5.46622 13.5391 5.21359 13.7534C4.96097 13.9677 4.58246 13.9366 4.36818 13.684C3.46876 12.6236 2.97825 11.3784 2.97825 10.073C2.97825 8.78953 3.45243 7.56393 4.32397 6.51473C4.53564 6.25991 4.9138 6.22493 5.16862 6.4366ZM6.87623 8.03609C7.13105 8.24776 7.16603 8.62593 6.95436 8.88075C6.64849 9.24898 6.48913 9.66086 6.48913 10.085C6.48913 10.5166 6.65418 10.9355 6.97051 11.3085C7.1848 11.5611 7.15371 11.9396 6.90108 12.1539C6.64845 12.3682 6.26995 12.3371 6.05567 12.0845C5.5615 11.5019 5.28951 10.8114 5.28951 10.085C5.28951 9.37072 5.55251 8.69095 6.03157 8.11423C6.24324 7.8594 6.62141 7.82442 6.87623 8.03609Z",fill:"white"})}),jsxRuntimeExports.jsx("div",{children:Dt()})]}):null},BlockLimitAlertBanner$1=observer(BlockLimitAlertBanner),container$1="_container_13sg5_1",styles$5={container:container$1},ModalVerification=({type:ht,visible:Et,onClose:yt,onSuccess:Ct})=>{const[$t,At]=reactExports.useState(!1),[Bt,Dt]=reactExports.useState(VerifyType.AUTHENTICATOR),[Ft,kt]=reactExports.useState(!1),[Mt,Nt]=reactExports.useState(60),{authWays:jt}=accountStore,[zt]=Form.useForm(),Vt=reactExports.useRef(null),Kt=async()=>{if(Ft)return;const{success:Zt,msg:dr}=await commonApi.sendEmailCaptcha(ht);Zt?(kt(!0),Nt(60),Vt.current=setInterval(()=>{Nt(cr=>(cr===0&&(clearInterval(Vt.current),Vt.current=null,kt(!1)),cr-1))},1e3)):B.error(dr)},Xt=()=>{Bt===VerifyType.AUTHENTICATOR?(Dt(ht),Kt()):Dt(VerifyType.AUTHENTICATOR)},Qt=async()=>{zt.validateFields().then(async Zt=>{At(!0);const{success:dr,msg:cr}=await commonApi.verifySessionCode({captcha:Zt.code,captchaType:Bt});dr?(Ct==null||Ct(Zt.code,Bt),yt()):B.error(cr),At(!1)})};return reactExports.useEffect(()=>{Et&&jt.length===1&&(Dt(ht),Kt())},[Et,jt]),reactExports.useEffect(()=>{Et&&zt.resetFields()},[Et]),jsxRuntimeExports.jsx(BscModal,{width:512,title:"Authenticator Confirmation",maskClosable:!1,okText:"Confirm",onCancel:yt,open:Et,onOk:Qt,okButtonProps:{loading:$t},children:jsxRuntimeExports.jsxs("div",{className:styles$5.container,children:[jsxRuntimeExports.jsx("p",{className:"text-sm text-gray-500",children:"Confirm to reset the authenticator via Email verification"}),jsxRuntimeExports.jsx("div",{className:"mt-6",children:jsxRuntimeExports.jsx(Form,{layout:"vertical",validateTrigger:["onSubmit"],form:zt,className:"w-full max-w-[672px]",children:Bt===VerifyType.AUTHENTICATOR?jsxRuntimeExports.jsx(Form.Item,{rules:[{required:!0}],name:"code",label:"Authenticator App Code",children:jsxRuntimeExports.jsx(Input,{placeholder:"Enter the code from your authenticator app"})}):jsxRuntimeExports.jsx(Form.Item,{rules:[{required:!0}],name:"code",label:"Email Verification Code",children:jsxRuntimeExports.jsx(Input,{placeholder:"Enter the code from your email",suffix:jsxRuntimeExports.jsx(Button$1,{disabled:Ft,type:"link",className:"h-fit p-0 text-sm",onClick:Kt,children:Ft?`Resend(${Mt})`:"Send"})})})})}),jt.length>1&&jsxRuntimeExports.jsxs("a",{className:"mt-2 flex select-none items-center gap-1 text-sm",onClick:Xt,children:[jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:jsxRuntimeExports.jsx("path",{d:"M16.983 12.7333C17.3769 12.34 17.0983 11.6667 16.5411 11.6667H2.91733V12.8124H15.284L11.2621 16.8343L12.0721 17.6447L16.983 12.7333ZM3.01733 7.26665C2.62352 7.65999 2.90257 8.33332 3.45924 8.33332H17.0835V7.18761H4.71686L8.73876 3.1657L7.92876 2.35522L3.01733 7.26665Z",fill:"#2F8AF5"})}),"Switch verification method"]})]})})},ModalVerification$1=observer(ModalVerification),ModalLoginConfirmation=({to:ht,referer:Et,visible:yt,onClose:Ct})=>{const $t=()=>{Et?window.location.href=`${ACCOUNT_DOMAIN}/login?referer=${Et}`:window.location.href=withReferer(`${ACCOUNT_DOMAIN}/login`)};return jsxRuntimeExports.jsx(BscModal,{width:512,title:"Login Required",okText:"Log In Now",cancelText:"Later",maskClosable:!0,onCancel:Ct,open:yt,onOk:$t,children:jsxRuntimeExports.jsxs("p",{className:"text-sm text-gray-500 dark:text-gray-300",children:["Log in to continue ",ht?`using ${ht}`:"","?"]})})},topTips="_topTips_cxjqa_1",title="_title_cxjqa_9",link="_link_cxjqa_14",hidden="_hidden_cxjqa_20",container="_container_cxjqa_29",styles$4={topTips,title,link,hidden,container},LAST_SHOW_TIPS_TIME="last_show_tips_time",MSG_METADOCK_INSTALLED="msg_metadock_installed",MetasuitesAdBanner=ht=>{const{className:Et,visible:yt,storageTime:Ct=`${864e5*15}`,closeTips:$t,showTips:At}=ht;reactExports.useLayoutEffect(()=>(window.addEventListener("message",Bt,!1),()=>{window.removeEventListener("message",Bt)}),[]),reactExports.useEffect(()=>{const{clientWidth:Ft}=document.body;Ft<=992||setTimeout(()=>{const kt=Number(localStorage.getItem(LAST_SHOW_TIPS_TIME));Date.now()-kt>Number(Ct)&&At()},1500)},[]);const Bt=Ft=>{const kt=Number(localStorage.getItem(LAST_SHOW_TIPS_TIME));(Ft.data===MSG_METADOCK_INSTALLED||Date.now()-kt<Number(Ct))&&($t(),localStorage.setItem(LAST_SHOW_TIPS_TIME,`${Date.now()}`))},Dt=()=>{$t(),localStorage.setItem(LAST_SHOW_TIPS_TIME,`${Date.now()}`)};return jsxRuntimeExports.jsxs("div",{className:cls(styles$4.topTips,Et,{[styles$4.hidden]:!yt}),children:[jsxRuntimeExports.jsxs("span",{className:styles$4.title,children:[jsxRuntimeExports.jsx("svg",{className:"mr-2 inline",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",children:jsxRuntimeExports.jsx("path",{d:"M931.285333 501.930667a347.392 347.392 0 0 1-344.874666 389.504 345.813333 345.813333 0 0 1-200.277334-63.488c34.261333 5.546667 69.973333 10.666667 109.781334 10.666666 32.938667 0 64.341333-3.456 95.914666-10.752 35.84-8.234667 71.082667-21.034667 107.562667-39.168 73.088-36.224 133.845333-95.104 180.522667-175.061333 19.712-33.621333 36.821333-70.954667 51.370666-111.701333zM938.410667 128s0.170667 4.309333 0.256 12.245333v12.117334c-0.810667 98.005333-19.797333 463.701333-256.298667 580.864-256 126.848-361.941333-80.341333-597.034667 93.098666l0.085334-0.853333 0.298666-2.389333c3.968-28.885333 41.216-245.930667 276.608-358.741334 236.288-113.237333 250.453333-64.554667 460.928-228.309333a845.653333 845.653333 0 0 0 112.256-104.746667L938.410667 128z m-74.496 168.832c-25.770667 28.330667-60.288 54.357333-94.037334 76.117333-28.16 18.218667-57.301333 35.328-87.552 49.92-9.088 4.352-18.346667 8.448-27.904 11.818667a53.162667 53.162667 0 0 0-31.146666 28.330667c-6.101333 13.44-6.442667 29.269333 0.298666 43.477333 12.032 25.258667 42.368 36.053333 68.394667 24.661333a121.685333 121.685333 0 0 1-242.346667-14.933333c0-1.877333 0.085333-3.626667 0.128-5.504-175.573333 80.981333-181.674667 156.16-181.674666 156.16 31.701333 0 69.717333 9.898667 85.034666 14.250667l5.12 1.493333 1.792 0.554667c119.850667 40.704 211.797333 18.602667 211.797334 18.602666 228.864-42.24 284.842667-357.418667 291.413333-400.170666l0.682667-4.778667z m-277.418667-100.224c51.072 0 99.626667 11.008 143.36 30.848-90.794667 65.792-135.68 81.365333-203.648 104.832a1692.586667 1692.586667 0 0 0-198.826667 80.810667c-27.178667 13.098667-53.077333 27.946667-77.44 44.544a347.434667 347.434667 0 0 1 336.554667-261.034667z",fill:"#ffffff"})}),"Want to jump directly from Etherscan to Phalcon and 30+ popular Web3 and AI tools? Install"," ",jsxRuntimeExports.jsx("a",{className:styles$4.link,target:"_blank",href:"https://chrome.google.com/webstore/detail/metadock/fkhgpeojcbhimodmppkbbliepkpcgcoo",rel:"noreferrer",children:"MetaSuites"})]}),jsxRuntimeExports.jsx("div",{className:"ml-16 flex cursor-pointer items-center p-2",onClick:Dt,children:jsxRuntimeExports.jsx(Iconfont,{type:"icon-wrong",size:18})})]})};function _interopDefault(ht){return ht&&typeof ht=="object"&&"default"in ht?ht.default:ht}var React=reactExports,React__default=_interopDefault(React);function _defineProperty(ht,Et,yt){return Et in ht?Object.defineProperty(ht,Et,{value:yt,enumerable:!0,configurable:!0,writable:!0}):ht[Et]=yt,ht}function _inheritsLoose(ht,Et){ht.prototype=Object.create(Et.prototype),ht.prototype.constructor=ht,ht.__proto__=Et}var canUseDOM=!!(typeof window<"u"&&window.document&&window.document.createElement);function withSideEffect(ht,Et,yt){if(typeof ht!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof Et!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof yt<"u"&&typeof yt!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function Ct($t){return $t.displayName||$t.name||"Component"}return function(At){if(typeof At!="function")throw new Error("Expected WrappedComponent to be a React component.");var Bt=[],Dt;function Ft(){Dt=ht(Bt.map(function(Mt){return Mt.props})),kt.canUseDOM?Et(Dt):yt&&(Dt=yt(Dt))}var kt=function(Mt){_inheritsLoose(Nt,Mt);function Nt(){return Mt.apply(this,arguments)||this}Nt.peek=function(){return Dt},Nt.rewind=function(){if(Nt.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var Vt=Dt;return Dt=void 0,Bt=[],Vt};var jt=Nt.prototype;return jt.UNSAFE_componentWillMount=function(){Bt.push(this),Ft()},jt.componentDidUpdate=function(){Ft()},jt.componentWillUnmount=function(){var Vt=Bt.indexOf(this);Bt.splice(Vt,1),Ft()},jt.render=function(){return React__default.createElement(At,this.props)},Nt}(React.PureComponent);return _defineProperty(kt,"displayName","SideEffect("+Ct(At)+")"),_defineProperty(kt,"canUseDOM",canUseDOM),kt}}var lib=withSideEffect;const withSideEffect$1=getDefaultExportFromCjs$1(lib);/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var getOwnPropertySymbols$2=Object.getOwnPropertySymbols,hasOwnProperty$1=Object.prototype.hasOwnProperty,propIsEnumerable=Object.prototype.propertyIsEnumerable;function toObject$9(ht){if(ht==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(ht)}function shouldUseNative(){try{if(!Object.assign)return!1;var ht=new String("abc");if(ht[5]="de",Object.getOwnPropertyNames(ht)[0]==="5")return!1;for(var Et={},yt=0;yt<10;yt++)Et["_"+String.fromCharCode(yt)]=yt;var Ct=Object.getOwnPropertyNames(Et).map(function(At){return Et[At]});if(Ct.join("")!=="0123456789")return!1;var $t={};return"abcdefghijklmnopqrst".split("").forEach(function(At){$t[At]=At}),Object.keys(Object.assign({},$t)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var objectAssign$1=shouldUseNative()?Object.assign:function(ht,Et){for(var yt,Ct=toObject$9(ht),$t,At=1;At<arguments.length;At++){yt=Object(arguments[At]);for(var Bt in yt)hasOwnProperty$1.call(yt,Bt)&&(Ct[Bt]=yt[Bt]);if(getOwnPropertySymbols$2){$t=getOwnPropertySymbols$2(yt);for(var Dt=0;Dt<$t.length;Dt++)propIsEnumerable.call(yt,$t[Dt])&&(Ct[$t[Dt]]=yt[$t[Dt]])}}return Ct};const objectAssign$2=getDefaultExportFromCjs$1(objectAssign$1);var ATTRIBUTE_NAMES={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"},TAG_NAMES={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"};Object.keys(TAG_NAMES).map(function(ht){return TAG_NAMES[ht]});var TAG_PROPERTIES={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src",TARGET:"target"},REACT_TAG_MAP={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},HELMET_PROPS={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},HTML_TAG_MAP=Object.keys(REACT_TAG_MAP).reduce(function(ht,Et){return ht[REACT_TAG_MAP[Et]]=Et,ht},{}),SELF_CLOSING_TAGS=[TAG_NAMES.NOSCRIPT,TAG_NAMES.SCRIPT,TAG_NAMES.STYLE],HELMET_ATTRIBUTE="data-react-helmet",_typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ht){return typeof ht}:function(ht){return ht&&typeof Symbol=="function"&&ht.constructor===Symbol&&ht!==Symbol.prototype?"symbol":typeof ht},classCallCheck=function(ht,Et){if(!(ht instanceof Et))throw new TypeError("Cannot call a class as a function")},createClass=function(){function ht(Et,yt){for(var Ct=0;Ct<yt.length;Ct++){var $t=yt[Ct];$t.enumerable=$t.enumerable||!1,$t.configurable=!0,"value"in $t&&($t.writable=!0),Object.defineProperty(Et,$t.key,$t)}}return function(Et,yt,Ct){return yt&&ht(Et.prototype,yt),Ct&&ht(Et,Ct),Et}}(),_extends=Object.assign||function(ht){for(var Et=1;Et<arguments.length;Et++){var yt=arguments[Et];for(var Ct in yt)Object.prototype.hasOwnProperty.call(yt,Ct)&&(ht[Ct]=yt[Ct])}return ht},inherits=function(ht,Et){if(typeof Et!="function"&&Et!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Et);ht.prototype=Object.create(Et&&Et.prototype,{constructor:{value:ht,enumerable:!1,writable:!0,configurable:!0}}),Et&&(Object.setPrototypeOf?Object.setPrototypeOf(ht,Et):ht.__proto__=Et)},objectWithoutProperties=function(ht,Et){var yt={};for(var Ct in ht)Et.indexOf(Ct)>=0||Object.prototype.hasOwnProperty.call(ht,Ct)&&(yt[Ct]=ht[Ct]);return yt},possibleConstructorReturn=function(ht,Et){if(!ht)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Et&&(typeof Et=="object"||typeof Et=="function")?Et:ht},encodeSpecialCharacters=function ht(Et){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return yt===!1?String(Et):String(Et).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},getTitleFromPropsList=function ht(Et){var yt=getInnermostProperty(Et,TAG_NAMES.TITLE),Ct=getInnermostProperty(Et,HELMET_PROPS.TITLE_TEMPLATE);if(Ct&&yt)return Ct.replace(/%s/g,function(){return Array.isArray(yt)?yt.join(""):yt});var $t=getInnermostProperty(Et,HELMET_PROPS.DEFAULT_TITLE);return yt||$t||void 0},getOnChangeClientState=function ht(Et){return getInnermostProperty(Et,HELMET_PROPS.ON_CHANGE_CLIENT_STATE)||function(){}},getAttributesFromPropsList=function ht(Et,yt){return yt.filter(function(Ct){return typeof Ct[Et]<"u"}).map(function(Ct){return Ct[Et]}).reduce(function(Ct,$t){return _extends({},Ct,$t)},{})},getBaseTagFromPropsList=function ht(Et,yt){return yt.filter(function(Ct){return typeof Ct[TAG_NAMES.BASE]<"u"}).map(function(Ct){return Ct[TAG_NAMES.BASE]}).reverse().reduce(function(Ct,$t){if(!Ct.length)for(var At=Object.keys($t),Bt=0;Bt<At.length;Bt++){var Dt=At[Bt],Ft=Dt.toLowerCase();if(Et.indexOf(Ft)!==-1&&$t[Ft])return Ct.concat($t)}return Ct},[])},getTagsFromPropsList=function ht(Et,yt,Ct){var $t={};return Ct.filter(function(At){return Array.isArray(At[Et])?!0:(typeof At[Et]<"u"&&warn("Helmet: "+Et+' should be of type "Array". Instead found type "'+_typeof(At[Et])+'"'),!1)}).map(function(At){return At[Et]}).reverse().reduce(function(At,Bt){var Dt={};Bt.filter(function(jt){for(var zt=void 0,Vt=Object.keys(jt),Kt=0;Kt<Vt.length;Kt++){var Xt=Vt[Kt],Qt=Xt.toLowerCase();yt.indexOf(Qt)!==-1&&!(zt===TAG_PROPERTIES.REL&&jt[zt].toLowerCase()==="canonical")&&!(Qt===TAG_PROPERTIES.REL&&jt[Qt].toLowerCase()==="stylesheet")&&(zt=Qt),yt.indexOf(Xt)!==-1&&(Xt===TAG_PROPERTIES.INNER_HTML||Xt===TAG_PROPERTIES.CSS_TEXT||Xt===TAG_PROPERTIES.ITEM_PROP)&&(zt=Xt)}if(!zt||!jt[zt])return!1;var Zt=jt[zt].toLowerCase();return $t[zt]||($t[zt]={}),Dt[zt]||(Dt[zt]={}),$t[zt][Zt]?!1:(Dt[zt][Zt]=!0,!0)}).reverse().forEach(function(jt){return At.push(jt)});for(var Ft=Object.keys(Dt),kt=0;kt<Ft.length;kt++){var Mt=Ft[kt],Nt=objectAssign$2({},$t[Mt],Dt[Mt]);$t[Mt]=Nt}return At},[]).reverse()},getInnermostProperty=function ht(Et,yt){for(var Ct=Et.length-1;Ct>=0;Ct--){var $t=Et[Ct];if($t.hasOwnProperty(yt))return $t[yt]}return null},reducePropsToState=function ht(Et){return{baseTag:getBaseTagFromPropsList([TAG_PROPERTIES.HREF,TAG_PROPERTIES.TARGET],Et),bodyAttributes:getAttributesFromPropsList(ATTRIBUTE_NAMES.BODY,Et),defer:getInnermostProperty(Et,HELMET_PROPS.DEFER),encode:getInnermostProperty(Et,HELMET_PROPS.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:getAttributesFromPropsList(ATTRIBUTE_NAMES.HTML,Et),linkTags:getTagsFromPropsList(TAG_NAMES.LINK,[TAG_PROPERTIES.REL,TAG_PROPERTIES.HREF],Et),metaTags:getTagsFromPropsList(TAG_NAMES.META,[TAG_PROPERTIES.NAME,TAG_PROPERTIES.CHARSET,TAG_PROPERTIES.HTTPEQUIV,TAG_PROPERTIES.PROPERTY,TAG_PROPERTIES.ITEM_PROP],Et),noscriptTags:getTagsFromPropsList(TAG_NAMES.NOSCRIPT,[TAG_PROPERTIES.INNER_HTML],Et),onChangeClientState:getOnChangeClientState(Et),scriptTags:getTagsFromPropsList(TAG_NAMES.SCRIPT,[TAG_PROPERTIES.SRC,TAG_PROPERTIES.INNER_HTML],Et),styleTags:getTagsFromPropsList(TAG_NAMES.STYLE,[TAG_PROPERTIES.CSS_TEXT],Et),title:getTitleFromPropsList(Et),titleAttributes:getAttributesFromPropsList(ATTRIBUTE_NAMES.TITLE,Et)}},rafPolyfill=function(){var ht=Date.now();return function(Et){var yt=Date.now();yt-ht>16?(ht=yt,Et(yt)):setTimeout(function(){rafPolyfill(Et)},0)}}(),cafPolyfill=function ht(Et){return clearTimeout(Et)},requestAnimationFrame$1=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||rafPolyfill:global$g.requestAnimationFrame||rafPolyfill,cancelAnimationFrame$1=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||cafPolyfill:global$g.cancelAnimationFrame||cafPolyfill,warn=function ht(Et){return console&&typeof console.warn=="function"&&console.warn(Et)},_helmetCallback=null,handleClientStateChange=function ht(Et){_helmetCallback&&cancelAnimationFrame$1(_helmetCallback),Et.defer?_helmetCallback=requestAnimationFrame$1(function(){commitTagChanges(Et,function(){_helmetCallback=null})}):(commitTagChanges(Et),_helmetCallback=null)},commitTagChanges=function ht(Et,yt){var Ct=Et.baseTag,$t=Et.bodyAttributes,At=Et.htmlAttributes,Bt=Et.linkTags,Dt=Et.metaTags,Ft=Et.noscriptTags,kt=Et.onChangeClientState,Mt=Et.scriptTags,Nt=Et.styleTags,jt=Et.title,zt=Et.titleAttributes;updateAttributes(TAG_NAMES.BODY,$t),updateAttributes(TAG_NAMES.HTML,At),updateTitle(jt,zt);var Vt={baseTag:updateTags(TAG_NAMES.BASE,Ct),linkTags:updateTags(TAG_NAMES.LINK,Bt),metaTags:updateTags(TAG_NAMES.META,Dt),noscriptTags:updateTags(TAG_NAMES.NOSCRIPT,Ft),scriptTags:updateTags(TAG_NAMES.SCRIPT,Mt),styleTags:updateTags(TAG_NAMES.STYLE,Nt)},Kt={},Xt={};Object.keys(Vt).forEach(function(Qt){var Zt=Vt[Qt],dr=Zt.newTags,cr=Zt.oldTags;dr.length&&(Kt[Qt]=dr),cr.length&&(Xt[Qt]=Vt[Qt].oldTags)}),yt&&yt(),kt(Et,Kt,Xt)},flattenArray=function ht(Et){return Array.isArray(Et)?Et.join(""):Et},updateTitle=function ht(Et,yt){typeof Et<"u"&&document.title!==Et&&(document.title=flattenArray(Et)),updateAttributes(TAG_NAMES.TITLE,yt)},updateAttributes=function ht(Et,yt){var Ct=document.getElementsByTagName(Et)[0];if(Ct){for(var $t=Ct.getAttribute(HELMET_ATTRIBUTE),At=$t?$t.split(","):[],Bt=[].concat(At),Dt=Object.keys(yt),Ft=0;Ft<Dt.length;Ft++){var kt=Dt[Ft],Mt=yt[kt]||"";Ct.getAttribute(kt)!==Mt&&Ct.setAttribute(kt,Mt),At.indexOf(kt)===-1&&At.push(kt);var Nt=Bt.indexOf(kt);Nt!==-1&&Bt.splice(Nt,1)}for(var jt=Bt.length-1;jt>=0;jt--)Ct.removeAttribute(Bt[jt]);At.length===Bt.length?Ct.removeAttribute(HELMET_ATTRIBUTE):Ct.getAttribute(HELMET_ATTRIBUTE)!==Dt.join(",")&&Ct.setAttribute(HELMET_ATTRIBUTE,Dt.join(","))}},updateTags=function ht(Et,yt){var Ct=document.head||document.querySelector(TAG_NAMES.HEAD),$t=Ct.querySelectorAll(Et+"["+HELMET_ATTRIBUTE+"]"),At=Array.prototype.slice.call($t),Bt=[],Dt=void 0;return yt&&yt.length&&yt.forEach(function(Ft){var kt=document.createElement(Et);for(var Mt in Ft)if(Ft.hasOwnProperty(Mt))if(Mt===TAG_PROPERTIES.INNER_HTML)kt.innerHTML=Ft.innerHTML;else if(Mt===TAG_PROPERTIES.CSS_TEXT)kt.styleSheet?kt.styleSheet.cssText=Ft.cssText:kt.appendChild(document.createTextNode(Ft.cssText));else{var Nt=typeof Ft[Mt]>"u"?"":Ft[Mt];kt.setAttribute(Mt,Nt)}kt.setAttribute(HELMET_ATTRIBUTE,"true"),At.some(function(jt,zt){return Dt=zt,kt.isEqualNode(jt)})?At.splice(Dt,1):Bt.push(kt)}),At.forEach(function(Ft){return Ft.parentNode.removeChild(Ft)}),Bt.forEach(function(Ft){return Ct.appendChild(Ft)}),{oldTags:At,newTags:Bt}},generateElementAttributesAsString=function ht(Et){return Object.keys(Et).reduce(function(yt,Ct){var $t=typeof Et[Ct]<"u"?Ct+'="'+Et[Ct]+'"':""+Ct;return yt?yt+" "+$t:$t},"")},generateTitleAsString=function ht(Et,yt,Ct,$t){var At=generateElementAttributesAsString(Ct),Bt=flattenArray(yt);return At?"<"+Et+" "+HELMET_ATTRIBUTE+'="true" '+At+">"+encodeSpecialCharacters(Bt,$t)+"</"+Et+">":"<"+Et+" "+HELMET_ATTRIBUTE+'="true">'+encodeSpecialCharacters(Bt,$t)+"</"+Et+">"},generateTagsAsString=function ht(Et,yt,Ct){return yt.reduce(function($t,At){var Bt=Object.keys(At).filter(function(kt){return!(kt===TAG_PROPERTIES.INNER_HTML||kt===TAG_PROPERTIES.CSS_TEXT)}).reduce(function(kt,Mt){var Nt=typeof At[Mt]>"u"?Mt:Mt+'="'+encodeSpecialCharacters(At[Mt],Ct)+'"';return kt?kt+" "+Nt:Nt},""),Dt=At.innerHTML||At.cssText||"",Ft=SELF_CLOSING_TAGS.indexOf(Et)===-1;return $t+"<"+Et+" "+HELMET_ATTRIBUTE+'="true" '+Bt+(Ft?"/>":">"+Dt+"</"+Et+">")},"")},convertElementAttributestoReactProps=function ht(Et){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(Et).reduce(function(Ct,$t){return Ct[REACT_TAG_MAP[$t]||$t]=Et[$t],Ct},yt)},convertReactPropstoHtmlAttributes=function ht(Et){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(Et).reduce(function(Ct,$t){return Ct[HTML_TAG_MAP[$t]||$t]=Et[$t],Ct},yt)},generateTitleAsReactComponent=function ht(Et,yt,Ct){var $t,At=($t={key:yt},$t[HELMET_ATTRIBUTE]=!0,$t),Bt=convertElementAttributestoReactProps(Ct,At);return[React$8.createElement(TAG_NAMES.TITLE,Bt,yt)]},generateTagsAsReactComponent=function ht(Et,yt){return yt.map(function(Ct,$t){var At,Bt=(At={key:$t},At[HELMET_ATTRIBUTE]=!0,At);return Object.keys(Ct).forEach(function(Dt){var Ft=REACT_TAG_MAP[Dt]||Dt;if(Ft===TAG_PROPERTIES.INNER_HTML||Ft===TAG_PROPERTIES.CSS_TEXT){var kt=Ct.innerHTML||Ct.cssText;Bt.dangerouslySetInnerHTML={__html:kt}}else Bt[Ft]=Ct[Dt]}),React$8.createElement(Et,Bt)})},getMethodsForTag=function ht(Et,yt,Ct){switch(Et){case TAG_NAMES.TITLE:return{toComponent:function(){return generateTitleAsReactComponent(Et,yt.title,yt.titleAttributes)},toString:function(){return generateTitleAsString(Et,yt.title,yt.titleAttributes,Ct)}};case ATTRIBUTE_NAMES.BODY:case ATTRIBUTE_NAMES.HTML:return{toComponent:function(){return convertElementAttributestoReactProps(yt)},toString:function(){return generateElementAttributesAsString(yt)}};default:return{toComponent:function(){return generateTagsAsReactComponent(Et,yt)},toString:function(){return generateTagsAsString(Et,yt,Ct)}}}},mapStateOnServer=function ht(Et){var yt=Et.baseTag,Ct=Et.bodyAttributes,$t=Et.encode,At=Et.htmlAttributes,Bt=Et.linkTags,Dt=Et.metaTags,Ft=Et.noscriptTags,kt=Et.scriptTags,Mt=Et.styleTags,Nt=Et.title,jt=Nt===void 0?"":Nt,zt=Et.titleAttributes;return{base:getMethodsForTag(TAG_NAMES.BASE,yt,$t),bodyAttributes:getMethodsForTag(ATTRIBUTE_NAMES.BODY,Ct,$t),htmlAttributes:getMethodsForTag(ATTRIBUTE_NAMES.HTML,At,$t),link:getMethodsForTag(TAG_NAMES.LINK,Bt,$t),meta:getMethodsForTag(TAG_NAMES.META,Dt,$t),noscript:getMethodsForTag(TAG_NAMES.NOSCRIPT,Ft,$t),script:getMethodsForTag(TAG_NAMES.SCRIPT,kt,$t),style:getMethodsForTag(TAG_NAMES.STYLE,Mt,$t),title:getMethodsForTag(TAG_NAMES.TITLE,{title:jt,titleAttributes:zt},$t)}},Helmet=function ht(Et){var yt,Ct;return Ct=yt=function($t){inherits(At,$t);function At(){return classCallCheck(this,At),possibleConstructorReturn(this,$t.apply(this,arguments))}return At.prototype.shouldComponentUpdate=function(Dt){return!isEqual(this.props,Dt)},At.prototype.mapNestedChildrenToProps=function(Dt,Ft){if(!Ft)return null;switch(Dt.type){case TAG_NAMES.SCRIPT:case TAG_NAMES.NOSCRIPT:return{innerHTML:Ft};case TAG_NAMES.STYLE:return{cssText:Ft}}throw new Error("<"+Dt.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},At.prototype.flattenArrayTypeChildren=function(Dt){var Ft,kt=Dt.child,Mt=Dt.arrayTypeChildren,Nt=Dt.newChildProps,jt=Dt.nestedChildren;return _extends({},Mt,(Ft={},Ft[kt.type]=[].concat(Mt[kt.type]||[],[_extends({},Nt,this.mapNestedChildrenToProps(kt,jt))]),Ft))},At.prototype.mapObjectTypeChildren=function(Dt){var Ft,kt,Mt=Dt.child,Nt=Dt.newProps,jt=Dt.newChildProps,zt=Dt.nestedChildren;switch(Mt.type){case TAG_NAMES.TITLE:return _extends({},Nt,(Ft={},Ft[Mt.type]=zt,Ft.titleAttributes=_extends({},jt),Ft));case TAG_NAMES.BODY:return _extends({},Nt,{bodyAttributes:_extends({},jt)});case TAG_NAMES.HTML:return _extends({},Nt,{htmlAttributes:_extends({},jt)})}return _extends({},Nt,(kt={},kt[Mt.type]=_extends({},jt),kt))},At.prototype.mapArrayTypeChildrenToProps=function(Dt,Ft){var kt=_extends({},Ft);return Object.keys(Dt).forEach(function(Mt){var Nt;kt=_extends({},kt,(Nt={},Nt[Mt]=Dt[Mt],Nt))}),kt},At.prototype.warnOnInvalidChildren=function(Dt,Ft){return!0},At.prototype.mapChildrenToProps=function(Dt,Ft){var kt=this,Mt={};return React$8.Children.forEach(Dt,function(Nt){if(!(!Nt||!Nt.props)){var jt=Nt.props,zt=jt.children,Vt=objectWithoutProperties(jt,["children"]),Kt=convertReactPropstoHtmlAttributes(Vt);switch(kt.warnOnInvalidChildren(Nt,zt),Nt.type){case TAG_NAMES.LINK:case TAG_NAMES.META:case TAG_NAMES.NOSCRIPT:case TAG_NAMES.SCRIPT:case TAG_NAMES.STYLE:Mt=kt.flattenArrayTypeChildren({child:Nt,arrayTypeChildren:Mt,newChildProps:Kt,nestedChildren:zt});break;default:Ft=kt.mapObjectTypeChildren({child:Nt,newProps:Ft,newChildProps:Kt,nestedChildren:zt});break}}}),Ft=this.mapArrayTypeChildrenToProps(Mt,Ft),Ft},At.prototype.render=function(){var Dt=this.props,Ft=Dt.children,kt=objectWithoutProperties(Dt,["children"]),Mt=_extends({},kt);return Ft&&(Mt=this.mapChildrenToProps(Ft,Mt)),React$8.createElement(Et,Mt)},createClass(At,null,[{key:"canUseDOM",set:function(Dt){Et.canUseDOM=Dt}}]),At}(React$8.Component),yt.propTypes={base:PropTypes$3.object,bodyAttributes:PropTypes$3.object,children:PropTypes$3.oneOfType([PropTypes$3.arrayOf(PropTypes$3.node),PropTypes$3.node]),defaultTitle:PropTypes$3.string,defer:PropTypes$3.bool,encodeSpecialCharacters:PropTypes$3.bool,htmlAttributes:PropTypes$3.object,link:PropTypes$3.arrayOf(PropTypes$3.object),meta:PropTypes$3.arrayOf(PropTypes$3.object),noscript:PropTypes$3.arrayOf(PropTypes$3.object),onChangeClientState:PropTypes$3.func,script:PropTypes$3.arrayOf(PropTypes$3.object),style:PropTypes$3.arrayOf(PropTypes$3.object),title:PropTypes$3.string,titleAttributes:PropTypes$3.object,titleTemplate:PropTypes$3.string},yt.defaultProps={defer:!0,encodeSpecialCharacters:!0},yt.peek=Et.peek,yt.rewind=function(){var $t=Et.rewind();return $t||($t=mapStateOnServer({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),$t},Ct},NullComponent=function ht(){return null},HelmetSideEffects=withSideEffect$1(reducePropsToState,handleClientStateChange,mapStateOnServer)(NullComponent),HelmetExport=Helmet(HelmetSideEffects);HelmetExport.renderStatic=HelmetExport.rewind;const Navbar=({slot:ht,showProfile:Et,className:yt,style:Ct})=>{const At=useLocation().pathname.startsWith("/phalcon");return jsxRuntimeExports.jsxs("nav",{className:cls("flex h-16 w-full shrink-0 items-center justify-between border-b border-divider bg-body px-6 shadow-sm",yt),style:Ct,children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center",children:[ht,jsxRuntimeExports.jsx(SearchBar,{})]}),jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-4",children:[At&&jsxRuntimeExports.jsx(WalletConnect,{}),Et&&jsxRuntimeExports.jsx(ProfileInfo$1,{bordered:!0}),jsxRuntimeExports.jsx(ThemeSwitcher,{})]})]})};class GlobalStore{constructor(){this.fullScreen=!0,this.modalContactUsVisible=!1,this.sidebarCollapsed=isMobile$1()?!1:!!LocalStorage.getItem(SIDEBAR_COLLAPSED),this.metasuitesBannerVisible=!1,this.setMetaSuitesBannerVisible=Et=>{this.metasuitesBannerVisible=Et},this.setFullScreen=Et=>{this.fullScreen=Et},this.setSidebarCollapsed=Et=>{this.sidebarCollapsed=Et},this.setModalContactUsVisible=Et=>{this.modalContactUsVisible=Et},makeAutoObservable(this)}}const globalStore=new GlobalStore,sider="_sider_1dw9z_1",contactDetails="_contactDetails_1dw9z_9",divider="_divider_1dw9z_16",menu="_menu_1dw9z_32",collapsed="_collapsed_1dw9z_57",styles$3={sider,contactDetails,divider,menu,collapsed},Sidebar=reactExports.forwardRef(({className:ht},Et)=>{const[yt,Ct]=reactExports.useState(""),[$t,At]=reactExports.useState(!1),[Bt,Dt]=reactExports.useState(""),[Ft,kt]=reactExports.useState(""),[Mt,Nt]=reactExports.useState(!1),{sidebarCollapsed:jt,setSidebarCollapsed:zt}=globalStore,Vt=useNavigate(),Kt=useLocation(),{isMobile:Xt}=useResponsive(),{isLogin:Qt,hasPermission:Zt}=useAuth(),dr=Zt([Permissions.ACCESS_FORK]),cr=Zt([Permissions.ACCESS_BLOCK]);reactExports.useImperativeHandle(Et,()=>({toggle:()=>{Xt?Nt(!Mt):zt(!jt)}}));const Er=async()=>{jt?LocalStorage.removeItem(SIDEBAR_COLLAPSED):LocalStorage.setItem(SIDEBAR_COLLAPSED,!0),zt(!jt)},pr=Ht=>{const Wt=JSON.parse(Ht.item.props.auth),Gt=Ht.item.props.name;Wt&&!Qt?(Dt(Gt),kt(encodeURIComponent(`${window.location.origin}${Ht.key}`)),At(!0)):(Ct(Ht.key),Vt(Ht.key),Xt&&Nt(!1))},gr=()=>jsxRuntimeExports.jsxs("div",{className:"px-4",children:[jsxRuntimeExports.jsx(Menu,{className:cls(styles$3.menu,{[styles$3.collapsed]:jt}),mode:"inline",defaultSelectedKeys:[yt],selectedKeys:[yt],items:yr,onClick:pr}),jsxRuntimeExports.jsxs("div",{className:cls("relative px-2 pt-6",{"!pt-0":jt}),children:[jt?jsxRuntimeExports.jsx("div",{className:"py-2",children:jsxRuntimeExports.jsx("div",{className:styles$3.divider})}):jsxRuntimeExports.jsx("div",{className:"mb-4 text-xs font-semibold leading-6 text-gray-400",children:"Products"}),jsxRuntimeExports.jsx("ul",{role:"list",className:"-mx-2 space-y-1",children:rr.map(Ht=>jsxRuntimeExports.jsx("li",{className:cls("cursor-pointer",{"flex justify-center":jt}),children:jsxRuntimeExports.jsxs("span",{className:"group flex items-center gap-x-3 rounded-md p-2 text-sm font-medium leading-6 text-gray-700 hover:bg-item-hover hover:text-primary dark:text-gray-400 dark:hover:text-white",onClick:Ht.event,children:[jsxRuntimeExports.jsx(Iconfont,{type:Ht.icon,className:"w-6 shrink-0 text-center !text-lg !leading-6 text-gray-400 group-hover:text-primary dark:group-hover:text-white"}),!jt&&jsxRuntimeExports.jsx("span",{className:"truncate",children:Ht.name})]})},Ht.name))})]}),jsxRuntimeExports.jsxs("div",{className:cls("relative px-2 pt-6",{"!pt-0":jt}),children:[jt?jsxRuntimeExports.jsx("div",{className:"py-2",children:jsxRuntimeExports.jsx("div",{className:styles$3.divider})}):jsxRuntimeExports.jsx("div",{className:"mb-4 text-xs font-semibold leading-6 text-gray-400",children:"Learn"}),jsxRuntimeExports.jsx("ul",{role:"list",className:"-mx-2 space-y-1",children:xr.map(Ht=>jsxRuntimeExports.jsx("li",{className:cls("cursor-pointer",{"flex justify-center":jt}),children:jsxRuntimeExports.jsxs("span",{className:"group flex gap-x-3 rounded-md p-2 text-sm font-medium leading-6 text-gray-700 hover:bg-item-hover hover:text-primary dark:text-gray-400 dark:hover:text-white",onClick:Ht.event,children:[jsxRuntimeExports.jsx(Iconfont,{type:Ht.icon,className:"w-6 shrink-0 text-center !text-lg !leading-6 text-gray-400 group-hover:text-primary dark:group-hover:text-white"}),!jt&&jsxRuntimeExports.jsx("span",{className:"truncate",children:Ht.name})]})},Ht.name))})]})]}),vr=(Ht,Wt,Gt,Yt,er,lr)=>({key:Ht,name:Wt,auth:Gt==null?void 0:Gt.toString(),label:lr==="group"?jt?jsxRuntimeExports.jsx("div",{className:styles$3.divider}):jsxRuntimeExports.jsx("span",{className:"-mx-2 text-xs font-semibold leading-6 text-gray-400",children:Wt}):jsxRuntimeExports.jsx("span",{className:"text-sm font-medium text-gray-700 dark:text-gray-400",children:Wt}),icon:Yt?jsxRuntimeExports.jsx(Iconfont,{type:Yt,size:18,style:{marginLeft:jt?"6px":0}}):null,children:er,type:lr}),yr=[vr("","Home",!1,"icon-dashboard"),vr("Phalcon","Phalcon",null,null,[vr("/phalcon","Phalcon",!0,"icon-block"),vr("/collaborators","Collaborators",!0,"icon-collaborators"),vr("/subscribe","Subscription",!1,"icon-subscription")],"group"),vr("Audit","Audit",null,null,[vr("/audit","Code Auditing",!1,"icon-code-auditing")],"group")],xr=[{id:1,name:"Docs",icon:"icon-gitbook",event:()=>window.open(PHALCON_DOCS_URL)},{id:2,name:"Blogs",icon:"icon-blog",event:()=>window.open(`${BLOCKSEC_DOMAIN}/blog`)}],rr=[{name:"MetaSleuth",icon:"icon-metasleuth",event:()=>window.open(MS_DOMAIN)},{name:"MetaSuites",icon:"icon-metasuites",event:()=>window.open(`${BLOCKSEC_DOMAIN}/metasuites`)}],Lt=[{type:"icon-twitter",href:"https://twitter.com/blocksecteam"},{type:"icon-telegram",href:"https://t.me/BlockSecTeam"},{type:"icon-linkedin-fill",href:"https://www.linkedin.com/company/blocksec"},{type:"icon-github",href:"https://github.com/blocksecteam"}];return reactExports.useEffect(()=>{if(Kt.pathname==="/"){Ct("");return}yr.map(Ht=>Ht.children??Ht).flat().filter(Ht=>!!Ht.key).forEach(Ht=>{Kt.pathname.startsWith(Ht.key)&&Ct(Ht.key)})},[Kt,cr,dr]),jsxRuntimeExports.jsxs(Layout$1.Sider,{id:"sidebar",width:256,trigger:null,collapsible:!0,collapsed:jt,className:cls(styles$3.sider,ht),children:[jsxRuntimeExports.jsx("div",{className:"absolute right-0 top-[144px] z-100 flex size-5 translate-x-[10px] cursor-pointer items-center justify-center rounded-full bg-body ring-1 ring-divider",onClick:Er,children:jsxRuntimeExports.jsx(Iconfont,{type:"icon-chevron-left",size:12,className:jt?"rotate-180":""})}),jsxRuntimeExports.jsxs("div",{className:"hide-scrollbar relative flex-1 overflow-y-auto pb-4",children:[jsxRuntimeExports.jsx(Logo,{collapsed:jt,className:cls("sticky top-0 z-10 h-16 bg-body p-4 pl-6",{"flex justify-center":jt})}),gr()]}),jsxRuntimeExports.jsxs("div",{className:cls("w-full shrink-0 bg-body shadow-[0_-1px_20px_0_rgba(0,0,0,0.05)]",{hidden:jt}),children:[jsxRuntimeExports.jsx(ProfileInfo$1,{className:"px-6 py-3 ",collapsed:jt}),jsxRuntimeExports.jsx(Divider,{}),jsxRuntimeExports.jsx("div",{className:cls("flex flex-wrap items-center justify-between px-6 py-4 dark:text-gray-500",{"!justify-center gap-2":jt}),children:Lt.map(Ht=>jsxRuntimeExports.jsx(Link,{to:Ht.href,target:"_blank",className:"text-secondary hover:text-primary dark:text-gray-500 dark:hover:text-white",children:jsxRuntimeExports.jsx(Iconfont,{type:Ht.type,size:20})},Ht.type))})]}),jsxRuntimeExports.jsx(ModalLoginConfirmation,{to:Bt,referer:Ft,visible:$t,onClose:()=>At(!1)}),jsxRuntimeExports.jsx(Drawer,{width:"70vw",title:"Close menu",placement:"left",onClose:()=>Nt(!1),open:Mt,children:gr()})]})}),Sidebar$1=observer(Sidebar);var check=function(ht){return ht&&ht.Math===Math&&ht},global$e=check(typeof globalThis=="object"&&globalThis)||check(typeof window=="object"&&window)||check(typeof self=="object"&&self)||check(typeof commonjsGlobal=="object"&&commonjsGlobal)||check(typeof commonjsGlobal=="object"&&commonjsGlobal)||function(){return this}()||Function("return this")(),fails$l=function(ht){try{return!!ht()}catch{return!0}},fails$k=fails$l,functionBindNative=!fails$k(function(){var ht=(function(){}).bind();return typeof ht!="function"||ht.hasOwnProperty("prototype")}),NATIVE_BIND$4=functionBindNative,FunctionPrototype$1=Function.prototype,apply$4=FunctionPrototype$1.apply,call$a=FunctionPrototype$1.call,functionApply=typeof Reflect=="object"&&Reflect.apply||(NATIVE_BIND$4?call$a.bind(apply$4):function(){return call$a.apply(apply$4,arguments)}),NATIVE_BIND$3=functionBindNative,FunctionPrototype=Function.prototype,call$9=FunctionPrototype.call,uncurryThisWithBind=NATIVE_BIND$3&&FunctionPrototype.bind.bind(call$9,call$9),functionUncurryThis=NATIVE_BIND$3?uncurryThisWithBind:function(ht){return function(){return call$9.apply(ht,arguments)}},uncurryThis$m=functionUncurryThis,toString$9=uncurryThis$m({}.toString),stringSlice$1=uncurryThis$m("".slice),classofRaw$2=function(ht){return stringSlice$1(toString$9(ht),8,-1)},classofRaw$1=classofRaw$2,uncurryThis$l=functionUncurryThis,functionUncurryThisClause=function(ht){if(classofRaw$1(ht)==="Function")return uncurryThis$l(ht)},documentAll=typeof document=="object"&&document.all,isCallable$d=typeof documentAll>"u"&&documentAll!==void 0?function(ht){return typeof ht=="function"||ht===documentAll}:function(ht){return typeof ht=="function"},objectGetOwnPropertyDescriptor={},fails$j=fails$l,descriptors=!fails$j(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),NATIVE_BIND$2=functionBindNative,call$8=Function.prototype.call,functionCall=NATIVE_BIND$2?call$8.bind(call$8):function(){return call$8.apply(call$8,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable$1={}.propertyIsEnumerable,getOwnPropertyDescriptor$4=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$4&&!$propertyIsEnumerable$1.call({1:2},1);objectPropertyIsEnumerable.f=NASHORN_BUG?function ht(Et){var yt=getOwnPropertyDescriptor$4(this,Et);return!!yt&&yt.enumerable}:$propertyIsEnumerable$1;var createPropertyDescriptor$4=function(ht,Et){return{enumerable:!(ht&1),configurable:!(ht&2),writable:!(ht&4),value:Et}},uncurryThis$k=functionUncurryThis,fails$i=fails$l,classof$9=classofRaw$2,$Object$3=Object,split=uncurryThis$k("".split),indexedObject=fails$i(function(){return!$Object$3("z").propertyIsEnumerable(0)})?function(ht){return classof$9(ht)==="String"?split(ht,""):$Object$3(ht)}:$Object$3,isNullOrUndefined$2=function(ht){return ht==null},isNullOrUndefined$1=isNullOrUndefined$2,$TypeError$8=TypeError,requireObjectCoercible$5=function(ht){if(isNullOrUndefined$1(ht))throw new $TypeError$8("Can't call method on "+ht);return ht},IndexedObject$3=indexedObject,requireObjectCoercible$4=requireObjectCoercible$5,toIndexedObject$9=function(ht){return IndexedObject$3(requireObjectCoercible$4(ht))},isCallable$c=isCallable$d,isObject$a=function(ht){return typeof ht=="object"?ht!==null:isCallable$c(ht)},path$e={},path$d=path$e,global$d=global$e,isCallable$b=isCallable$d,aFunction=function(ht){return isCallable$b(ht)?ht:void 0},getBuiltIn$8=function(ht,Et){return arguments.length<2?aFunction(path$d[ht])||aFunction(global$d[ht]):path$d[ht]&&path$d[ht][Et]||global$d[ht]&&global$d[ht][Et]},uncurryThis$j=functionUncurryThis,objectIsPrototypeOf=uncurryThis$j({}.isPrototypeOf),engineUserAgent=typeof navigator<"u"&&String(navigator.userAgent)||"",global$c=global$e,userAgent=engineUserAgent,process=global$c.process,Deno=global$c.Deno,versions=process&&process.versions||Deno&&Deno.version,v8=versions&&versions.v8,match,version;v8&&(match=v8.split("."),version=match[0]>0&&match[0]<4?1:+(match[0]+match[1]));!version&&userAgent&&(match=userAgent.match(/Edge\/(\d+)/),(!match||match[1]>=74)&&(match=userAgent.match(/Chrome\/(\d+)/),match&&(version=+match[1])));var engineV8Version=version,V8_VERSION$2=engineV8Version,fails$h=fails$l,global$b=global$e,$String$4=global$b.String,symbolConstructorDetection=!!Object.getOwnPropertySymbols&&!fails$h(function(){var ht=Symbol("symbol detection");return!$String$4(ht)||!(Object(ht)instanceof Symbol)||!Symbol.sham&&V8_VERSION$2&&V8_VERSION$2<41}),NATIVE_SYMBOL$5=symbolConstructorDetection,useSymbolAsUid=NATIVE_SYMBOL$5&&!Symbol.sham&&typeof Symbol.iterator=="symbol",getBuiltIn$7=getBuiltIn$8,isCallable$a=isCallable$d,isPrototypeOf$6=objectIsPrototypeOf,USE_SYMBOL_AS_UID$1=useSymbolAsUid,$Object$2=Object,isSymbol$4=USE_SYMBOL_AS_UID$1?function(ht){return typeof ht=="symbol"}:function(ht){var Et=getBuiltIn$7("Symbol");return isCallable$a(Et)&&isPrototypeOf$6(Et.prototype,$Object$2(ht))},$String$3=String,tryToString$3=function(ht){try{return $String$3(ht)}catch{return"Object"}},isCallable$9=isCallable$d,tryToString$2=tryToString$3,$TypeError$7=TypeError,aCallable$4=function(ht){if(isCallable$9(ht))return ht;throw new $TypeError$7(tryToString$2(ht)+" is not a function")},aCallable$3=aCallable$4,isNullOrUndefined=isNullOrUndefined$2,getMethod$1=function(ht,Et){var yt=ht[Et];return isNullOrUndefined(yt)?void 0:aCallable$3(yt)},call$7=functionCall,isCallable$8=isCallable$d,isObject$9=isObject$a,$TypeError$6=TypeError,ordinaryToPrimitive$1=function(ht,Et){var yt,Ct;if(Et==="string"&&isCallable$8(yt=ht.toString)&&!isObject$9(Ct=call$7(yt,ht))||isCallable$8(yt=ht.valueOf)&&!isObject$9(Ct=call$7(yt,ht))||Et!=="string"&&isCallable$8(yt=ht.toString)&&!isObject$9(Ct=call$7(yt,ht)))return Ct;throw new $TypeError$6("Can't convert object to primitive value")},sharedStore={exports:{}},global$a=global$e,defineProperty$8=Object.defineProperty,defineGlobalProperty$1=function(ht,Et){try{defineProperty$8(global$a,ht,{value:Et,configurable:!0,writable:!0})}catch{global$a[ht]=Et}return Et},globalThis$1=global$e,defineGlobalProperty=defineGlobalProperty$1,SHARED="__core-js_shared__",store$3=sharedStore.exports=globalThis$1[SHARED]||defineGlobalProperty(SHARED,{});(store$3.versions||(store$3.versions=[])).push({version:"3.37.1",mode:"pure",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"});var sharedStoreExports=sharedStore.exports,store$2=sharedStoreExports,shared$6=function(ht,Et){return store$2[ht]||(store$2[ht]=Et||{})},requireObjectCoercible$3=requireObjectCoercible$5,$Object$1=Object,toObject$8=function(ht){return $Object$1(requireObjectCoercible$3(ht))},uncurryThis$i=functionUncurryThis,toObject$7=toObject$8,hasOwnProperty=uncurryThis$i({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function ht(Et,yt){return hasOwnProperty(toObject$7(Et),yt)},uncurryThis$h=functionUncurryThis,id=0,postfix=Math.random(),toString$8=uncurryThis$h(1 .toString),uid$3=function(ht){return"Symbol("+(ht===void 0?"":ht)+")_"+toString$8(++id+postfix,36)},global$9=global$e,shared$5=shared$6,hasOwn$a=hasOwnProperty_1,uid$2=uid$3,NATIVE_SYMBOL$4=symbolConstructorDetection,USE_SYMBOL_AS_UID=useSymbolAsUid,Symbol$2=global$9.Symbol,WellKnownSymbolsStore$1=shared$5("wks"),createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$2.for||Symbol$2:Symbol$2&&Symbol$2.withoutSetter||uid$2,wellKnownSymbol$b=function(ht){return hasOwn$a(WellKnownSymbolsStore$1,ht)||(WellKnownSymbolsStore$1[ht]=NATIVE_SYMBOL$4&&hasOwn$a(Symbol$2,ht)?Symbol$2[ht]:createWellKnownSymbol("Symbol."+ht)),WellKnownSymbolsStore$1[ht]},call$6=functionCall,isObject$8=isObject$a,isSymbol$3=isSymbol$4,getMethod=getMethod$1,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$a=wellKnownSymbol$b,$TypeError$5=TypeError,TO_PRIMITIVE=wellKnownSymbol$a("toPrimitive"),toPrimitive$2=function(ht,Et){if(!isObject$8(ht)||isSymbol$3(ht))return ht;var yt=getMethod(ht,TO_PRIMITIVE),Ct;if(yt){if(Et===void 0&&(Et="default"),Ct=call$6(yt,ht,Et),!isObject$8(Ct)||isSymbol$3(Ct))return Ct;throw new $TypeError$5("Can't convert object to primitive value")}return Et===void 0&&(Et="number"),ordinaryToPrimitive(ht,Et)},toPrimitive$1=toPrimitive$2,isSymbol$2=isSymbol$4,toPropertyKey$3=function(ht){var Et=toPrimitive$1(ht,"string");return isSymbol$2(Et)?Et:Et+""},global$8=global$e,isObject$7=isObject$a,document$1=global$8.document,EXISTS=isObject$7(document$1)&&isObject$7(document$1.createElement),documentCreateElement$1=function(ht){return EXISTS?document$1.createElement(ht):{}},DESCRIPTORS$c=descriptors,fails$g=fails$l,createElement=documentCreateElement$1,ie8DomDefine=!DESCRIPTORS$c&&!fails$g(function(){return Object.defineProperty(createElement("div"),"a",{get:function(){return 7}}).a!==7}),DESCRIPTORS$b=descriptors,call$5=functionCall,propertyIsEnumerableModule$2=objectPropertyIsEnumerable,createPropertyDescriptor$3=createPropertyDescriptor$4,toIndexedObject$8=toIndexedObject$9,toPropertyKey$2=toPropertyKey$3,hasOwn$9=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$2=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor.f=DESCRIPTORS$b?$getOwnPropertyDescriptor$2:function ht(Et,yt){if(Et=toIndexedObject$8(Et),yt=toPropertyKey$2(yt),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$2(Et,yt)}catch{}if(hasOwn$9(Et,yt))return createPropertyDescriptor$3(!call$5(propertyIsEnumerableModule$2.f,Et,yt),Et[yt])};var fails$f=fails$l,isCallable$7=isCallable$d,replacement=/#|\.prototype\./,isForced$1=function(ht,Et){var yt=data[normalize(ht)];return yt===POLYFILL?!0:yt===NATIVE?!1:isCallable$7(Et)?fails$f(Et):!!Et},normalize=isForced$1.normalize=function(ht){return String(ht).replace(replacement,".").toLowerCase()},data=isForced$1.data={},NATIVE=isForced$1.NATIVE="N",POLYFILL=isForced$1.POLYFILL="P",isForced_1=isForced$1,uncurryThis$g=functionUncurryThisClause,aCallable$2=aCallable$4,NATIVE_BIND$1=functionBindNative,bind$3=uncurryThis$g(uncurryThis$g.bind),functionBindContext=function(ht,Et){return aCallable$2(ht),Et===void 0?ht:NATIVE_BIND$1?bind$3(ht,Et):function(){return ht.apply(Et,arguments)}},objectDefineProperty={},DESCRIPTORS$a=descriptors,fails$e=fails$l,v8PrototypeDefineBug=DESCRIPTORS$a&&fails$e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),isObject$6=isObject$a,$String$2=String,$TypeError$4=TypeError,anObject$6=function(ht){if(isObject$6(ht))return ht;throw new $TypeError$4($String$2(ht)+" is not an object")},DESCRIPTORS$9=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$5=anObject$6,toPropertyKey$1=toPropertyKey$3,$TypeError$3=TypeError,$defineProperty$1=Object.defineProperty,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE="configurable",WRITABLE="writable";objectDefineProperty.f=DESCRIPTORS$9?V8_PROTOTYPE_DEFINE_BUG$1?function ht(Et,yt,Ct){if(anObject$5(Et),yt=toPropertyKey$1(yt),anObject$5(Ct),typeof Et=="function"&&yt==="prototype"&&"value"in Ct&&WRITABLE in Ct&&!Ct[WRITABLE]){var $t=$getOwnPropertyDescriptor$1(Et,yt);$t&&$t[WRITABLE]&&(Et[yt]=Ct.value,Ct={configurable:CONFIGURABLE in Ct?Ct[CONFIGURABLE]:$t[CONFIGURABLE],enumerable:ENUMERABLE in Ct?Ct[ENUMERABLE]:$t[ENUMERABLE],writable:!1})}return $defineProperty$1(Et,yt,Ct)}:$defineProperty$1:function ht(Et,yt,Ct){if(anObject$5(Et),yt=toPropertyKey$1(yt),anObject$5(Ct),IE8_DOM_DEFINE)try{return $defineProperty$1(Et,yt,Ct)}catch{}if("get"in Ct||"set"in Ct)throw new $TypeError$3("Accessors not supported");return"value"in Ct&&(Et[yt]=Ct.value),Et};var DESCRIPTORS$8=descriptors,definePropertyModule$3=objectDefineProperty,createPropertyDescriptor$2=createPropertyDescriptor$4,createNonEnumerableProperty$4=DESCRIPTORS$8?function(ht,Et,yt){return definePropertyModule$3.f(ht,Et,createPropertyDescriptor$2(1,yt))}:function(ht,Et,yt){return ht[Et]=yt,ht},global$7=global$e,apply$3=functionApply,uncurryThis$f=functionUncurryThisClause,isCallable$6=isCallable$d,getOwnPropertyDescriptor$3=objectGetOwnPropertyDescriptor.f,isForced=isForced_1,path$c=path$e,bind$2=functionBindContext,createNonEnumerableProperty$3=createNonEnumerableProperty$4,hasOwn$8=hasOwnProperty_1,wrapConstructor=function(ht){var Et=function(yt,Ct,$t){if(this instanceof Et){switch(arguments.length){case 0:return new ht;case 1:return new ht(yt);case 2:return new ht(yt,Ct)}return new ht(yt,Ct,$t)}return apply$3(ht,this,arguments)};return Et.prototype=ht.prototype,Et},_export=function(ht,Et){var yt=ht.target,Ct=ht.global,$t=ht.stat,At=ht.proto,Bt=Ct?global$7:$t?global$7[yt]:global$7[yt]&&global$7[yt].prototype,Dt=Ct?path$c:path$c[yt]||createNonEnumerableProperty$3(path$c,yt,{})[yt],Ft=Dt.prototype,kt,Mt,Nt,jt,zt,Vt,Kt,Xt,Qt;for(jt in Et)kt=isForced(Ct?jt:yt+($t?".":"#")+jt,ht.forced),Mt=!kt&&Bt&&hasOwn$8(Bt,jt),Vt=Dt[jt],Mt&&(ht.dontCallGetSet?(Qt=getOwnPropertyDescriptor$3(Bt,jt),Kt=Qt&&Qt.value):Kt=Bt[jt]),zt=Mt&&Kt?Kt:Et[jt],!(!kt&&!At&&typeof Vt==typeof zt)&&(ht.bind&&Mt?Xt=bind$2(zt,global$7):ht.wrap&&Mt?Xt=wrapConstructor(zt):At&&isCallable$6(zt)?Xt=uncurryThis$f(zt):Xt=zt,(ht.sham||zt&&zt.sham||Vt&&Vt.sham)&&createNonEnumerableProperty$3(Xt,"sham",!0),createNonEnumerableProperty$3(Dt,jt,Xt),At&&(Nt=yt+"Prototype",hasOwn$8(path$c,Nt)||createNonEnumerableProperty$3(path$c,Nt,{}),createNonEnumerableProperty$3(path$c[Nt],jt,zt),ht.real&&Ft&&(kt||!Ft[jt])&&createNonEnumerableProperty$3(Ft,jt,zt)))},ceil$1=Math.ceil,floor=Math.floor,mathTrunc=Math.trunc||function ht(Et){var yt=+Et;return(yt>0?floor:ceil$1)(yt)},trunc=mathTrunc,toIntegerOrInfinity$3=function(ht){var Et=+ht;return Et!==Et||Et===0?0:trunc(Et)},toIntegerOrInfinity$2=toIntegerOrInfinity$3,max$1=Math.max,min$1=Math.min,toAbsoluteIndex$2=function(ht,Et){var yt=toIntegerOrInfinity$2(ht);return yt<0?max$1(yt+Et,0):min$1(yt,Et)},toIntegerOrInfinity$1=toIntegerOrInfinity$3,min=Math.min,toLength$2=function(ht){var Et=toIntegerOrInfinity$1(ht);return Et>0?min(Et,9007199254740991):0},toLength$1=toLength$2,lengthOfArrayLike$5=function(ht){return toLength$1(ht.length)},toIndexedObject$7=toIndexedObject$9,toAbsoluteIndex$1=toAbsoluteIndex$2,lengthOfArrayLike$4=lengthOfArrayLike$5,createMethod$4=function(ht){return function(Et,yt,Ct){var $t=toIndexedObject$7(Et),At=lengthOfArrayLike$4($t);if(At===0)return!ht&&-1;var Bt=toAbsoluteIndex$1(Ct,At),Dt;if(ht&&yt!==yt){for(;At>Bt;)if(Dt=$t[Bt++],Dt!==Dt)return!0}else for(;At>Bt;Bt++)if((ht||Bt in $t)&&$t[Bt]===yt)return ht||Bt||0;return!ht&&-1}},arrayIncludes={includes:createMethod$4(!0),indexOf:createMethod$4(!1)},hiddenKeys$5={},uncurryThis$e=functionUncurryThis,hasOwn$7=hasOwnProperty_1,toIndexedObject$6=toIndexedObject$9,indexOf=arrayIncludes.indexOf,hiddenKeys$4=hiddenKeys$5,push$4=uncurryThis$e([].push),objectKeysInternal=function(ht,Et){var yt=toIndexedObject$6(ht),Ct=0,$t=[],At;for(At in yt)!hasOwn$7(hiddenKeys$4,At)&&hasOwn$7(yt,At)&&push$4($t,At);for(;Et.length>Ct;)hasOwn$7(yt,At=Et[Ct++])&&(~indexOf($t,At)||push$4($t,At));return $t},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal,enumBugKeys$2=enumBugKeys$3,objectKeys$3=Object.keys||function ht(Et){return internalObjectKeys$1(Et,enumBugKeys$2)},objectGetOwnPropertySymbols={};objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols;var DESCRIPTORS$7=descriptors,uncurryThis$d=functionUncurryThis,call$4=functionCall,fails$d=fails$l,objectKeys$2=objectKeys$3,getOwnPropertySymbolsModule$3=objectGetOwnPropertySymbols,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,toObject$6=toObject$8,IndexedObject$2=indexedObject,$assign=Object.assign,defineProperty$7=Object.defineProperty,concat$5=uncurryThis$d([].concat),objectAssign=!$assign||fails$d(function(){if(DESCRIPTORS$7&&$assign({b:1},$assign(defineProperty$7({},"a",{enumerable:!0,get:function(){defineProperty$7(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var ht={},Et={},yt=Symbol("assign detection"),Ct="abcdefghijklmnopqrst";return ht[yt]=7,Ct.split("").forEach(function($t){Et[$t]=$t}),$assign({},ht)[yt]!==7||objectKeys$2($assign({},Et)).join("")!==Ct})?function ht(Et,yt){for(var Ct=toObject$6(Et),$t=arguments.length,At=1,Bt=getOwnPropertySymbolsModule$3.f,Dt=propertyIsEnumerableModule$1.f;$t>At;)for(var Ft=IndexedObject$2(arguments[At++]),kt=Bt?concat$5(objectKeys$2(Ft),Bt(Ft)):objectKeys$2(Ft),Mt=kt.length,Nt=0,jt;Mt>Nt;)jt=kt[Nt++],(!DESCRIPTORS$7||call$4(Dt,Ft,jt))&&(Ct[jt]=Ft[jt]);return Ct}:$assign,$$i=_export,assign$2=objectAssign;$$i({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign$2},{assign:assign$2});var path$b=path$e,assign$1=path$b.Object.assign,parent$e=assign$1,assign=parent$e;const _Object$assign=getDefaultExportFromCjs$1(assign);var wellKnownSymbol$9=wellKnownSymbol$b,TO_STRING_TAG$2=wellKnownSymbol$9("toStringTag"),test={};test[TO_STRING_TAG$2]="z";var toStringTagSupport=String(test)==="[object z]",TO_STRING_TAG_SUPPORT$2=toStringTagSupport,isCallable$5=isCallable$d,classofRaw=classofRaw$2,wellKnownSymbol$8=wellKnownSymbol$b,TO_STRING_TAG$1=wellKnownSymbol$8("toStringTag"),$Object=Object,CORRECT_ARGUMENTS=classofRaw(function(){return arguments}())==="Arguments",tryGet=function(ht,Et){try{return ht[Et]}catch{}},classof$8=TO_STRING_TAG_SUPPORT$2?classofRaw:function(ht){var Et,yt,Ct;return ht===void 0?"Undefined":ht===null?"Null":typeof(yt=tryGet(Et=$Object(ht),TO_STRING_TAG$1))=="string"?yt:CORRECT_ARGUMENTS?classofRaw(Et):(Ct=classofRaw(Et))==="Object"&&isCallable$5(Et.callee)?"Arguments":Ct},classof$7=classof$8,$String$1=String,toString$7=function(ht){if(classof$7(ht)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return $String$1(ht)},toIntegerOrInfinity=toIntegerOrInfinity$3,toString$6=toString$7,requireObjectCoercible$2=requireObjectCoercible$5,$RangeError$1=RangeError,stringRepeat=function ht(Et){var yt=toString$6(requireObjectCoercible$2(this)),Ct="",$t=toIntegerOrInfinity(Et);if($t<0||$t===1/0)throw new $RangeError$1("Wrong number of repetitions");for(;$t>0;($t>>>=1)&&(yt+=yt))$t&1&&(Ct+=yt);return Ct},uncurryThis$c=functionUncurryThis,toLength=toLength$2,toString$5=toString$7,$repeat=stringRepeat,requireObjectCoercible$1=requireObjectCoercible$5,repeat=uncurryThis$c($repeat),stringSlice=uncurryThis$c("".slice),ceil=Math.ceil,createMethod$3=function(ht){return function(Et,yt,Ct){var $t=toString$5(requireObjectCoercible$1(Et)),At=toLength(yt),Bt=$t.length,Dt=Ct===void 0?" ":toString$5(Ct),Ft,kt;return At<=Bt||Dt===""?$t:(Ft=At-Bt,kt=repeat(Dt,ceil(Ft/Dt.length)),kt.length>Ft&&(kt=stringSlice(kt,0,Ft)),ht?$t+kt:kt+$t)}},stringPad={start:createMethod$3(!1),end:createMethod$3(!0)},uncurryThis$b=functionUncurryThis,fails$c=fails$l,padStart=stringPad.start,$RangeError=RangeError,$isFinite=isFinite,abs=Math.abs,DatePrototype=Date.prototype,nativeDateToISOString=DatePrototype.toISOString,thisTimeValue=uncurryThis$b(DatePrototype.getTime),getUTCDate=uncurryThis$b(DatePrototype.getUTCDate),getUTCFullYear=uncurryThis$b(DatePrototype.getUTCFullYear),getUTCHours=uncurryThis$b(DatePrototype.getUTCHours),getUTCMilliseconds=uncurryThis$b(DatePrototype.getUTCMilliseconds),getUTCMinutes=uncurryThis$b(DatePrototype.getUTCMinutes),getUTCMonth=uncurryThis$b(DatePrototype.getUTCMonth),getUTCSeconds=uncurryThis$b(DatePrototype.getUTCSeconds),dateToIsoString=fails$c(function(){return nativeDateToISOString.call(new Date(-5e13-1))!=="0385-07-25T07:06:39.999Z"})||!fails$c(function(){nativeDateToISOString.call(new Date(NaN))})?function ht(){if(!$isFinite(thisTimeValue(this)))throw new $RangeError("Invalid time value");var Et=this,yt=getUTCFullYear(Et),Ct=getUTCMilliseconds(Et),$t=yt<0?"-":yt>9999?"+":"";return $t+padStart(abs(yt),$t?6:4,0)+"-"+padStart(getUTCMonth(Et)+1,2,0)+"-"+padStart(getUTCDate(Et),2,0)+"T"+padStart(getUTCHours(Et),2,0)+":"+padStart(getUTCMinutes(Et),2,0)+":"+padStart(getUTCSeconds(Et),2,0)+"."+padStart(Ct,3,0)+"Z"}:nativeDateToISOString,$$h=_export,call$3=functionCall,toObject$5=toObject$8,toPrimitive=toPrimitive$2,toISOString=dateToIsoString,classof$6=classofRaw$2,fails$b=fails$l,FORCED$6=fails$b(function(){return new Date(NaN).toJSON()!==null||call$3(Date.prototype.toJSON,{toISOString:function(){return 1}})!==1});$$h({target:"Date",proto:!0,forced:FORCED$6},{toJSON:function ht(Et){var yt=toObject$5(this),Ct=toPrimitive(yt,"number");return typeof Ct=="number"&&!isFinite(Ct)?null:!("toISOString"in yt)&&classof$6(yt)==="Date"?call$3(toISOString,yt):yt.toISOString()}});var uncurryThis$a=functionUncurryThis,arraySlice$3=uncurryThis$a([].slice),classof$5=classofRaw$2,isArray$4=Array.isArray||function ht(Et){return classof$5(Et)==="Array"},uncurryThis$9=functionUncurryThis,isArray$3=isArray$4,isCallable$4=isCallable$d,classof$4=classofRaw$2,toString$4=toString$7,push$3=uncurryThis$9([].push),getJsonReplacerFunction=function(ht){if(isCallable$4(ht))return ht;if(isArray$3(ht)){for(var Et=ht.length,yt=[],Ct=0;Ct<Et;Ct++){var $t=ht[Ct];typeof $t=="string"?push$3(yt,$t):(typeof $t=="number"||classof$4($t)==="Number"||classof$4($t)==="String")&&push$3(yt,toString$4($t))}var At=yt.length,Bt=!0;return function(Dt,Ft){if(Bt)return Bt=!1,Ft;if(isArray$3(this))return Ft;for(var kt=0;kt<At;kt++)if(yt[kt]===Dt)return Ft}}},$$g=_export,getBuiltIn$6=getBuiltIn$8,apply$2=functionApply,call$2=functionCall,uncurryThis$8=functionUncurryThis,fails$a=fails$l,isCallable$3=isCallable$d,isSymbol$1=isSymbol$4,arraySlice$2=arraySlice$3,getReplacerFunction=getJsonReplacerFunction,NATIVE_SYMBOL$3=symbolConstructorDetection,$String=String,$stringify=getBuiltIn$6("JSON","stringify"),exec$1=uncurryThis$8(/./.exec),charAt$1=uncurryThis$8("".charAt),charCodeAt=uncurryThis$8("".charCodeAt),replace$1=uncurryThis$8("".replace),numberToString=uncurryThis$8(1 .toString),tester=/[\uD800-\uDFFF]/g,low=/^[\uD800-\uDBFF]$/,hi=/^[\uDC00-\uDFFF]$/,WRONG_SYMBOLS_CONVERSION=!NATIVE_SYMBOL$3||fails$a(function(){var ht=getBuiltIn$6("Symbol")("stringify detection");return $stringify([ht])!=="[null]"||$stringify({a:ht})!=="{}"||$stringify(Object(ht))!=="{}"}),ILL_FORMED_UNICODE=fails$a(function(){return $stringify("\uDF06\uD834")!=='"\\udf06\\ud834"'||$stringify("\uDEAD")!=='"\\udead"'}),stringifyWithSymbolsFix=function(ht,Et){var yt=arraySlice$2(arguments),Ct=getReplacerFunction(Et);if(!(!isCallable$3(Ct)&&(ht===void 0||isSymbol$1(ht))))return yt[1]=function($t,At){if(isCallable$3(Ct)&&(At=call$2(Ct,this,$String($t),At)),!isSymbol$1(At))return At},apply$2($stringify,null,yt)},fixIllFormed=function(ht,Et,yt){var Ct=charAt$1(yt,Et-1),$t=charAt$1(yt,Et+1);return exec$1(low,ht)&&!exec$1(hi,$t)||exec$1(hi,ht)&&!exec$1(low,Ct)?"\\u"+numberToString(charCodeAt(ht,0),16):ht};$stringify&&$$g({target:"JSON",stat:!0,arity:3,forced:WRONG_SYMBOLS_CONVERSION||ILL_FORMED_UNICODE},{stringify:function(Et,yt,Ct){var $t=arraySlice$2(arguments),At=apply$2(WRONG_SYMBOLS_CONVERSION?stringifyWithSymbolsFix:$stringify,null,$t);return ILL_FORMED_UNICODE&&typeof At=="string"?replace$1(At,tester,fixIllFormed):At}});var path$a=path$e,apply$1=functionApply;path$a.JSON||(path$a.JSON={stringify:JSON.stringify});var stringify$1=function ht(Et,yt,Ct){return apply$1(path$a.JSON.stringify,null,arguments)},parent$d=stringify$1,stringify=parent$d;const _JSON$stringify=getDefaultExportFromCjs$1(stringify);var uncurryThis$7=functionUncurryThis,isCallable$2=isCallable$d,store$1=sharedStoreExports,functionToString=uncurryThis$7(Function.toString);isCallable$2(store$1.inspectSource)||(store$1.inspectSource=function(ht){return functionToString(ht)});var inspectSource$1=store$1.inspectSource,uncurryThis$6=functionUncurryThis,fails$9=fails$l,isCallable$1=isCallable$d,classof$3=classof$8,getBuiltIn$5=getBuiltIn$8,inspectSource=inspectSource$1,noop=function(){},construct$3=getBuiltIn$5("Reflect","construct"),constructorRegExp=/^\s*(?:class|function)\b/,exec=uncurryThis$6(constructorRegExp.exec),INCORRECT_TO_STRING=!constructorRegExp.test(noop),isConstructorModern=function ht(Et){if(!isCallable$1(Et))return!1;try{return construct$3(noop,[],Et),!0}catch{return!1}},isConstructorLegacy=function ht(Et){if(!isCallable$1(Et))return!1;switch(classof$3(Et)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING||!!exec(constructorRegExp,inspectSource(Et))}catch{return!0}};isConstructorLegacy.sham=!0;var isConstructor$3=!construct$3||fails$9(function(){var ht;return isConstructorModern(isConstructorModern.call)||!isConstructorModern(Object)||!isConstructorModern(function(){ht=!0})||ht})?isConstructorLegacy:isConstructorModern,isArray$2=isArray$4,isConstructor$2=isConstructor$3,isObject$5=isObject$a,wellKnownSymbol$7=wellKnownSymbol$b,SPECIES$2=wellKnownSymbol$7("species"),$Array$1=Array,arraySpeciesConstructor$1=function(ht){var Et;return isArray$2(ht)&&(Et=ht.constructor,isConstructor$2(Et)&&(Et===$Array$1||isArray$2(Et.prototype))?Et=void 0:isObject$5(Et)&&(Et=Et[SPECIES$2],Et===null&&(Et=void 0))),Et===void 0?$Array$1:Et},arraySpeciesConstructor=arraySpeciesConstructor$1,arraySpeciesCreate$2=function(ht,Et){return new(arraySpeciesConstructor(ht))(Et===0?0:Et)},bind$1=functionBindContext,uncurryThis$5=functionUncurryThis,IndexedObject$1=indexedObject,toObject$4=toObject$8,lengthOfArrayLike$3=lengthOfArrayLike$5,arraySpeciesCreate$1=arraySpeciesCreate$2,push$2=uncurryThis$5([].push),createMethod$2=function(ht){var Et=ht===1,yt=ht===2,Ct=ht===3,$t=ht===4,At=ht===6,Bt=ht===7,Dt=ht===5||At;return function(Ft,kt,Mt,Nt){for(var jt=toObject$4(Ft),zt=IndexedObject$1(jt),Vt=lengthOfArrayLike$3(zt),Kt=bind$1(kt,Mt),Xt=0,Qt=Nt||arraySpeciesCreate$1,Zt=Et?Qt(Ft,Vt):yt||Bt?Qt(Ft,0):void 0,dr,cr;Vt>Xt;Xt++)if((Dt||Xt in zt)&&(dr=zt[Xt],cr=Kt(dr,Xt,jt),ht))if(Et)Zt[Xt]=cr;else if(cr)switch(ht){case 3:return!0;case 5:return dr;case 6:return Xt;case 2:push$2(Zt,dr)}else switch(ht){case 4:return!1;case 7:push$2(Zt,dr)}return At?-1:Ct||$t?$t:Zt}},arrayIteration={forEach:createMethod$2(0),map:createMethod$2(1),filter:createMethod$2(2),some:createMethod$2(3),every:createMethod$2(4),find:createMethod$2(5),findIndex:createMethod$2(6),filterReject:createMethod$2(7)},fails$8=fails$l,wellKnownSymbol$6=wellKnownSymbol$b,V8_VERSION$1=engineV8Version,SPECIES$1=wellKnownSymbol$6("species"),arrayMethodHasSpeciesSupport$4=function(ht){return V8_VERSION$1>=51||!fails$8(function(){var Et=[],yt=Et.constructor={};return yt[SPECIES$1]=function(){return{foo:1}},Et[ht](Boolean).foo!==1})},$$f=_export,$filter=arrayIteration.filter,arrayMethodHasSpeciesSupport$3=arrayMethodHasSpeciesSupport$4,HAS_SPECIES_SUPPORT$2=arrayMethodHasSpeciesSupport$3("filter");$$f({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT$2},{filter:function ht(Et){return $filter(this,Et,arguments.length>1?arguments[1]:void 0)}});var global$6=global$e,path$9=path$e,getBuiltInPrototypeMethod$5=function(ht,Et){var yt=path$9[ht+"Prototype"],Ct=yt&&yt[Et];if(Ct)return Ct;var $t=global$6[ht],At=$t&&$t.prototype;return At&&At[Et]},getBuiltInPrototypeMethod$4=getBuiltInPrototypeMethod$5,filter$2=getBuiltInPrototypeMethod$4("Array","filter"),isPrototypeOf$5=objectIsPrototypeOf,method$4=filter$2,ArrayPrototype$4=Array.prototype,filter$1=function(ht){var Et=ht.filter;return ht===ArrayPrototype$4||isPrototypeOf$5(ArrayPrototype$4,ht)&&Et===ArrayPrototype$4.filter?method$4:Et},parent$c=filter$1,filter=parent$c;const _filterInstanceProperty=getDefaultExportFromCjs$1(filter);var DESCRIPTORS$6=descriptors,definePropertyModule$2=objectDefineProperty,createPropertyDescriptor$1=createPropertyDescriptor$4,createProperty$3=function(ht,Et,yt){DESCRIPTORS$6?definePropertyModule$2.f(ht,Et,createPropertyDescriptor$1(0,yt)):ht[Et]=yt},$$e=_export,isArray$1=isArray$4,isConstructor$1=isConstructor$3,isObject$4=isObject$a,toAbsoluteIndex=toAbsoluteIndex$2,lengthOfArrayLike$2=lengthOfArrayLike$5,toIndexedObject$5=toIndexedObject$9,createProperty$2=createProperty$3,wellKnownSymbol$5=wellKnownSymbol$b,arrayMethodHasSpeciesSupport$2=arrayMethodHasSpeciesSupport$4,nativeSlice=arraySlice$3,HAS_SPECIES_SUPPORT$1=arrayMethodHasSpeciesSupport$2("slice"),SPECIES=wellKnownSymbol$5("species"),$Array=Array,max=Math.max;$$e({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT$1},{slice:function ht(Et,yt){var Ct=toIndexedObject$5(this),$t=lengthOfArrayLike$2(Ct),At=toAbsoluteIndex(Et,$t),Bt=toAbsoluteIndex(yt===void 0?$t:yt,$t),Dt,Ft,kt;if(isArray$1(Ct)&&(Dt=Ct.constructor,isConstructor$1(Dt)&&(Dt===$Array||isArray$1(Dt.prototype))?Dt=void 0:isObject$4(Dt)&&(Dt=Dt[SPECIES],Dt===null&&(Dt=void 0)),Dt===$Array||Dt===void 0))return nativeSlice(Ct,At,Bt);for(Ft=new(Dt===void 0?$Array:Dt)(max(Bt-At,0)),kt=0;At<Bt;At++,kt++)At in Ct&&createProperty$2(Ft,kt,Ct[At]);return Ft.length=kt,Ft}});var getBuiltInPrototypeMethod$3=getBuiltInPrototypeMethod$5,slice$2=getBuiltInPrototypeMethod$3("Array","slice"),isPrototypeOf$4=objectIsPrototypeOf,method$3=slice$2,ArrayPrototype$3=Array.prototype,slice$1=function(ht){var Et=ht.slice;return ht===ArrayPrototype$3||isPrototypeOf$4(ArrayPrototype$3,ht)&&Et===ArrayPrototype$3.slice?method$3:Et},parent$b=slice$1,slice=parent$b;const _sliceInstanceProperty=getDefaultExportFromCjs$1(slice);var CACHE_PREFIX="react-avatar/",CACHE_KEY_FAILING="failing",_hasLocalStorage=function ht(){try{return"localStorage"in window&&window.localStorage}catch{return!1}}(),Cache=function(){function ht(){var Et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_classCallCheck(this,ht);var yt=Et.cachePrefix,Ct=yt===void 0?CACHE_PREFIX:yt,$t=Et.sourceTTL,At=$t===void 0?7*24*3600*1e3:$t,Bt=Et.sourceSize,Dt=Bt===void 0?20:Bt;this.cachePrefix=Ct,this.sourceTTL=At,this.sourceSize=Dt}return _createClass$1(ht,[{key:"set",value:function(yt,Ct){if(_hasLocalStorage){Ct=_JSON$stringify(Ct);try{localStorage.setItem(this.cachePrefix+yt,Ct)}catch($t){console.error($t)}}}},{key:"get",value:function(yt){if(!_hasLocalStorage)return null;var Ct=localStorage.getItem(this.cachePrefix+yt);return Ct?JSON.parse(Ct):null}},{key:"sourceFailed",value:function(yt){var Ct=this.get(CACHE_KEY_FAILING)||[];return Ct=_filterInstanceProperty(Ct).call(Ct,function($t){var At=$t.expires>0&&$t.expires<Date.now(),Bt=$t===yt||$t.url==yt;return!At&&!Bt}),Ct.unshift({url:yt,expires:Date.now()+this.sourceTTL}),Ct=_sliceInstanceProperty(Ct).call(Ct,0,this.sourceSize-1),this.set(CACHE_KEY_FAILING,Ct)}},{key:"hasSourceFailedBefore",value:function(yt){var Ct=this.get(CACHE_KEY_FAILING)||[];return Ct.some(function($t){var At=$t.expires>0&&$t.expires<Date.now(),Bt=$t===yt||$t.url==yt;return Bt&&!At})}}]),ht}();const defaultCache=new Cache;var uncurryThis$4=functionUncurryThis,aCallable$1=aCallable$4,isObject$3=isObject$a,hasOwn$6=hasOwnProperty_1,arraySlice$1=arraySlice$3,NATIVE_BIND=functionBindNative,$Function=Function,concat$4=uncurryThis$4([].concat),join=uncurryThis$4([].join),factories={},construct$2=function(ht,Et,yt){if(!hasOwn$6(factories,Et)){for(var Ct=[],$t=0;$t<Et;$t++)Ct[$t]="a["+$t+"]";factories[Et]=$Function("C,a","return new C("+join(Ct,",")+")")}return factories[Et](ht,yt)},functionBind=NATIVE_BIND?$Function.bind:function ht(Et){var yt=aCallable$1(this),Ct=yt.prototype,$t=arraySlice$1(arguments,1),At=function(){var Dt=concat$4($t,arraySlice$1(arguments));return this instanceof At?construct$2(yt,Dt.length,Dt):yt.apply(Et,Dt)};return isObject$3(Ct)&&(At.prototype=Ct),At},isConstructor=isConstructor$3,tryToString$1=tryToString$3,$TypeError$2=TypeError,aConstructor$1=function(ht){if(isConstructor(ht))return ht;throw new $TypeError$2(tryToString$1(ht)+" is not a constructor")},objectDefineProperties={},DESCRIPTORS$5=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule$1=objectDefineProperty,anObject$4=anObject$6,toIndexedObject$4=toIndexedObject$9,objectKeys$1=objectKeys$3;objectDefineProperties.f=DESCRIPTORS$5&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function ht(Et,yt){anObject$4(Et);for(var Ct=toIndexedObject$4(yt),$t=objectKeys$1(yt),At=$t.length,Bt=0,Dt;At>Bt;)definePropertyModule$1.f(Et,Dt=$t[Bt++],Ct[Dt]);return Et};var getBuiltIn$4=getBuiltIn$8,html$1=getBuiltIn$4("document","documentElement"),shared$4=shared$6,uid$1=uid$3,keys$2=shared$4("keys"),sharedKey$3=function(ht){return keys$2[ht]||(keys$2[ht]=uid$1(ht))},anObject$3=anObject$6,definePropertiesModule$1=objectDefineProperties,enumBugKeys$1=enumBugKeys$3,hiddenKeys$3=hiddenKeys$5,html=html$1,documentCreateElement=documentCreateElement$1,sharedKey$2=sharedKey$3,GT=">",LT="<",PROTOTYPE$1="prototype",SCRIPT="script",IE_PROTO=sharedKey$2("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(ht){return LT+SCRIPT+GT+ht+LT+"/"+SCRIPT+GT},NullProtoObjectViaActiveX=function(ht){ht.write(scriptTag("")),ht.close();var Et=ht.parentWindow.Object;return ht=null,Et},NullProtoObjectViaIFrame=function(){var ht=documentCreateElement("iframe"),Et="java"+SCRIPT+":",yt;return ht.style.display="none",html.appendChild(ht),ht.src=String(Et),yt=ht.contentWindow.document,yt.open(),yt.write(scriptTag("document.F=Object")),yt.close(),yt.F},activeXDocument,NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch{}NullProtoObject=typeof document<"u"?document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame():NullProtoObjectViaActiveX(activeXDocument);for(var ht=enumBugKeys$1.length;ht--;)delete NullProtoObject[PROTOTYPE$1][enumBugKeys$1[ht]];return NullProtoObject()};hiddenKeys$3[IE_PROTO]=!0;var objectCreate=Object.create||function ht(Et,yt){var Ct;return Et!==null?(EmptyConstructor[PROTOTYPE$1]=anObject$3(Et),Ct=new EmptyConstructor,EmptyConstructor[PROTOTYPE$1]=null,Ct[IE_PROTO]=Et):Ct=NullProtoObject(),yt===void 0?Ct:definePropertiesModule$1.f(Ct,yt)},$$d=_export,getBuiltIn$3=getBuiltIn$8,apply=functionApply,bind=functionBind,aConstructor=aConstructor$1,anObject$2=anObject$6,isObject$2=isObject$a,create=objectCreate,fails$7=fails$l,nativeConstruct=getBuiltIn$3("Reflect","construct"),ObjectPrototype$1=Object.prototype,push$1=[].push,NEW_TARGET_BUG=fails$7(function(){function ht(){}return!(nativeConstruct(function(){},[],ht)instanceof ht)}),ARGS_BUG=!fails$7(function(){nativeConstruct(function(){})}),FORCED$5=NEW_TARGET_BUG||ARGS_BUG;$$d({target:"Reflect",stat:!0,forced:FORCED$5,sham:FORCED$5},{construct:function ht(Et,yt){aConstructor(Et),anObject$2(yt);var Ct=arguments.length<3?Et:aConstructor(arguments[2]);if(ARGS_BUG&&!NEW_TARGET_BUG)return nativeConstruct(Et,yt,Ct);if(Et===Ct){switch(yt.length){case 0:return new Et;case 1:return new Et(yt[0]);case 2:return new Et(yt[0],yt[1]);case 3:return new Et(yt[0],yt[1],yt[2]);case 4:return new Et(yt[0],yt[1],yt[2],yt[3])}var $t=[null];return apply(push$1,$t,yt),new(apply(bind,Et,$t))}var At=Ct.prototype,Bt=create(isObject$2(At)?At:ObjectPrototype$1),Dt=apply(Et,Bt,yt);return isObject$2(Dt)?Dt:Bt}});var path$8=path$e,construct$1=path$8.Reflect.construct,parent$a=construct$1,construct=parent$a;const _Reflect$construct=getDefaultExportFromCjs$1(construct);var $$c=_export,toObject$3=toObject$8,nativeKeys=objectKeys$3,fails$6=fails$l,FAILS_ON_PRIMITIVES=fails$6(function(){nativeKeys(1)});$$c({target:"Object",stat:!0,forced:FAILS_ON_PRIMITIVES},{keys:function ht(Et){return nativeKeys(toObject$3(Et))}});var path$7=path$e,keys$1=path$7.Object.keys,parent$9=keys$1,keys=parent$9;const _Object$keys=getDefaultExportFromCjs$1(keys);var fails$5=fails$l,arrayMethodIsStrict$1=function(ht,Et){var yt=[][ht];return!!yt&&fails$5(function(){yt.call(null,Et||function(){return 1},1)})},$$b=_export,$map=arrayIteration.map,arrayMethodHasSpeciesSupport$1=arrayMethodHasSpeciesSupport$4,HAS_SPECIES_SUPPORT=arrayMethodHasSpeciesSupport$1("map");$$b({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT},{map:function ht(Et){return $map(this,Et,arguments.length>1?arguments[1]:void 0)}});var getBuiltInPrototypeMethod$2=getBuiltInPrototypeMethod$5,map$2=getBuiltInPrototypeMethod$2("Array","map"),isPrototypeOf$3=objectIsPrototypeOf,method$2=map$2,ArrayPrototype$2=Array.prototype,map$1=function(ht){var Et=ht.map;return ht===ArrayPrototype$2||isPrototypeOf$3(ArrayPrototype$2,ht)&&Et===ArrayPrototype$2.map?method$2:Et},parent$8=map$1,map=parent$8;const _mapInstanceProperty=getDefaultExportFromCjs$1(map);var aCallable=aCallable$4,toObject$2=toObject$8,IndexedObject=indexedObject,lengthOfArrayLike$1=lengthOfArrayLike$5,$TypeError$1=TypeError,REDUCE_EMPTY="Reduce of empty array with no initial value",createMethod$1=function(ht){return function(Et,yt,Ct,$t){var At=toObject$2(Et),Bt=IndexedObject(At),Dt=lengthOfArrayLike$1(At);if(aCallable(yt),Dt===0&&Ct<2)throw new $TypeError$1(REDUCE_EMPTY);var Ft=ht?Dt-1:0,kt=ht?-1:1;if(Ct<2)for(;;){if(Ft in Bt){$t=Bt[Ft],Ft+=kt;break}if(Ft+=kt,ht?Ft<0:Dt<=Ft)throw new $TypeError$1(REDUCE_EMPTY)}for(;ht?Ft>=0:Dt>Ft;Ft+=kt)Ft in Bt&&($t=yt($t,Bt[Ft],Ft,At));return $t}},arrayReduce={left:createMethod$1(!1),right:createMethod$1(!0)},global$5=global$e,classof$2=classofRaw$2,engineIsNode=classof$2(global$5.process)==="process",$$a=_export,$reduce=arrayReduce.left,arrayMethodIsStrict=arrayMethodIsStrict$1,CHROME_VERSION=engineV8Version,IS_NODE=engineIsNode,CHROME_BUG=!IS_NODE&&CHROME_VERSION>79&&CHROME_VERSION<83,FORCED$4=CHROME_BUG||!arrayMethodIsStrict("reduce");$$a({target:"Array",proto:!0,forced:FORCED$4},{reduce:function ht(Et){var yt=arguments.length;return $reduce(this,Et,yt,yt>1?arguments[1]:void 0)}});var getBuiltInPrototypeMethod$1=getBuiltInPrototypeMethod$5,reduce$2=getBuiltInPrototypeMethod$1("Array","reduce"),isPrototypeOf$2=objectIsPrototypeOf,method$1=reduce$2,ArrayPrototype$1=Array.prototype,reduce$1=function(ht){var Et=ht.reduce;return ht===ArrayPrototype$1||isPrototypeOf$2(ArrayPrototype$1,ht)&&Et===ArrayPrototype$1.reduce?method$1:Et},parent$7=reduce$1,reduce=parent$7;const _reduceInstanceProperty=getDefaultExportFromCjs$1(reduce);var whitespaces$2=`	
\v\f\r                 \u2028\u2029\uFEFF`,uncurryThis$3=functionUncurryThis,requireObjectCoercible=requireObjectCoercible$5,toString$3=toString$7,whitespaces$1=whitespaces$2,replace=uncurryThis$3("".replace),ltrim=RegExp("^["+whitespaces$1+"]+"),rtrim=RegExp("(^|[^"+whitespaces$1+"])["+whitespaces$1+"]+$"),createMethod=function(ht){return function(Et){var yt=toString$3(requireObjectCoercible(Et));return ht&1&&(yt=replace(yt,ltrim,"")),ht&2&&(yt=replace(yt,rtrim,"$1")),yt}},stringTrim={start:createMethod(1),end:createMethod(2),trim:createMethod(3)},global$4=global$e,fails$4=fails$l,uncurryThis$2=functionUncurryThis,toString$2=toString$7,trim=stringTrim.trim,whitespaces=whitespaces$2,charAt=uncurryThis$2("".charAt),$parseFloat$1=global$4.parseFloat,Symbol$1=global$4.Symbol,ITERATOR=Symbol$1&&Symbol$1.iterator,FORCED$3=1/$parseFloat$1(whitespaces+"-0")!==-1/0||ITERATOR&&!fails$4(function(){$parseFloat$1(Object(ITERATOR))}),numberParseFloat=FORCED$3?function ht(Et){var yt=trim(toString$2(Et)),Ct=$parseFloat$1(yt);return Ct===0&&charAt(yt,0)==="-"?-0:Ct}:$parseFloat$1,$$9=_export,$parseFloat=numberParseFloat;$$9({global:!0,forced:parseFloat!==$parseFloat},{parseFloat:$parseFloat});var path$6=path$e,_parseFloat$2=path$6.parseFloat,parent$6=_parseFloat$2,_parseFloat=parent$6;const _parseFloat$1=getDefaultExportFromCjs$1(_parseFloat);var isRetina=function(){var ht;return!!(typeof window<"u"&&window!==null&&(ht="(-webkit-min-device-pixel-ratio: 1.25), (min--moz-device-pixel-ratio: 1.25), (-o-min-device-pixel-ratio: 5/4), (min-resolution: 1.25dppx)",window.devicePixelRatio>1.25||window.matchMedia&&window.matchMedia(ht).matches))};const retina=getDefaultExportFromCjs$1(isRetina);var IS_RETINA=retina(),defaultColors=["#A62A21","#7e3794","#0B51C1","#3A6024","#A81563","#B3003C"],reSize=/^([-+]?(?:\d+(?:\.\d+)?|\.\d+))([a-z]{2,4}|%)?$/;function _stringAsciiPRNG(ht,Et){for(var yt,Ct=_mapInstanceProperty(yt=_toConsumableArray(ht)).call(yt,function(kt){return kt.charCodeAt(0)}),$t=Ct.length,At=$t%(Et-1)+1,Bt=_reduceInstanceProperty(Ct).call(Ct,function(kt,Mt){return kt+Mt})%Et,Dt=Ct[0]%Et,Ft=0;Ft<$t;Ft++)Dt=(At*Dt+Bt)%Et;return Dt}function getRandomColor(ht){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:defaultColors;if(!ht)return"transparent";var yt=_stringAsciiPRNG(ht,Et.length);return Et[yt]}function parseSize(ht){ht=""+ht;var Et=reSize.exec(ht)||[],yt=_slicedToArray(Et,3),Ct=yt[1],$t=Ct===void 0?0:Ct,At=yt[2],Bt=At===void 0?"px":At;return{value:_parseFloat$1($t),str:$t+Bt,unit:Bt}}function getImageSize(ht){return ht=parseSize(ht),isNaN(ht.value)?ht=512:ht.unit==="px"?ht=ht.value:ht.value===0?ht=0:ht=512,IS_RETINA&&(ht=ht*2),ht}function defaultInitials(ht,Et){var yt,Ct,$t,At=Et.maxInitials;return _sliceInstanceProperty(yt=_filterInstanceProperty(Ct=_mapInstanceProperty($t=ht.split(/\s/)).call($t,function(Bt){return Bt.substring(0,1).toUpperCase()})).call(Ct,function(Bt){return!!Bt})).call(yt,0,At).join("").toUpperCase()}var timeoutGroups={};function setGroupedTimeout(ht,Et){if(timeoutGroups[Et]){timeoutGroups[Et].push(ht);return}var yt=timeoutGroups[Et]=[ht];setTimeout(function(){delete timeoutGroups[Et],yt.forEach(function(Ct){return Ct()})},Et)}function getNullableText(){for(var ht=arguments.length,Et=new Array(ht),yt=0;yt<ht;yt++)Et[yt]=arguments[yt];for(var Ct=0,$t=Et;Ct<$t.length;Ct++){var At=$t[Ct];if(At||At==="")return At;if(At===!1||At===null)return null}}function calculateBorderRadius(ht){if(ht===!0)return"100%";if(ht!==!1)return ht}function _createSuper$4(ht){var Et=_isNativeReflectConstruct$4();return function(){var Ct=_getPrototypeOf(ht),$t;if(Et){var At=_getPrototypeOf(this).constructor;$t=_Reflect$construct(Ct,arguments,At)}else $t=Ct.apply(this,arguments);return _possibleConstructorReturn(this,$t)}}function _isNativeReflectConstruct$4(){if(typeof Reflect>"u"||!_Reflect$construct||_Reflect$construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_Reflect$construct(Boolean,[],function(){})),!0}catch{return!1}}var defaults={cache:defaultCache,colors:defaultColors,initials:defaultInitials,avatarRedirectUrl:null},contextKeys=_Object$keys(defaults),ConfigContext=React$8.createContext&&React$8.createContext(),isLegacyContext=!ConfigContext,ConfigConsumer=isLegacyContext?null:ConfigContext.Consumer,forwardRef=React$8.forwardRef||function(ht){return ht},ConfigProvider=function(ht){_inherits(yt,ht);var Et=_createSuper$4(yt);function yt(){return _classCallCheck(this,yt),Et.apply(this,arguments)}return _createClass$1(yt,[{key:"_getContext",value:function(){var $t=this,At={};return contextKeys.forEach(function(Bt){typeof $t.props[Bt]<"u"&&(At[Bt]=$t.props[Bt])}),At}},{key:"render",value:function(){var $t=this.props.children;return isLegacyContext?React$8.Children.only($t):React$8.createElement(ConfigContext.Provider,{value:this._getContext()},React$8.Children.only($t))}}]),yt}(React$8.Component);_defineProperty$1(ConfigProvider,"displayName","ConfigProvider");_defineProperty$1(ConfigProvider,"propTypes",{cache:PropTypes$3.object,colors:PropTypes$3.arrayOf(PropTypes$3.string),initials:PropTypes$3.func,avatarRedirectUrl:PropTypes$3.string,children:PropTypes$3.node});var withConfig=function ht(Et){function yt(Ct,$t){if(isLegacyContext){var At=$t&&$t.reactAvatar;return React$8.createElement(Et,_extends$5({},defaults,At,Ct))}return React$8.createElement(ConfigConsumer,null,function(Bt){return React$8.createElement(Et,_extends$5({ref:$t},defaults,Bt,Ct))})}return yt.contextTypes=ConfigProvider.childContextTypes,forwardRef(yt)};isLegacyContext&&(ConfigProvider.childContextTypes={reactAvatar:PropTypes$3.object},ConfigProvider.prototype.getChildContext=function(){return{reactAvatar:this._getContext()}});var objectGetOwnPropertyNames={},internalObjectKeys=objectKeysInternal,enumBugKeys=enumBugKeys$3,hiddenKeys$2=enumBugKeys.concat("length","prototype");objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function ht(Et){return internalObjectKeys(Et,hiddenKeys$2)};var objectGetOwnPropertyNamesExternal={},classof$1=classofRaw$2,toIndexedObject$3=toIndexedObject$9,$getOwnPropertyNames$1=objectGetOwnPropertyNames.f,arraySlice=arraySlice$3,windowNames=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],getWindowNames=function(ht){try{return $getOwnPropertyNames$1(ht)}catch{return arraySlice(windowNames)}};objectGetOwnPropertyNamesExternal.f=function ht(Et){return windowNames&&classof$1(Et)==="Window"?getWindowNames(Et):$getOwnPropertyNames$1(toIndexedObject$3(Et))};var createNonEnumerableProperty$2=createNonEnumerableProperty$4,defineBuiltIn$2=function(ht,Et,yt,Ct){return Ct&&Ct.enumerable?ht[Et]=yt:createNonEnumerableProperty$2(ht,Et,yt),ht},defineProperty$6=objectDefineProperty,defineBuiltInAccessor$1=function(ht,Et,yt){return defineProperty$6.f(ht,Et,yt)},wellKnownSymbolWrapped={},wellKnownSymbol$4=wellKnownSymbol$b;wellKnownSymbolWrapped.f=wellKnownSymbol$4;var path$5=path$e,hasOwn$5=hasOwnProperty_1,wrappedWellKnownSymbolModule$1=wellKnownSymbolWrapped,defineProperty$5=objectDefineProperty.f,wellKnownSymbolDefine=function(ht){var Et=path$5.Symbol||(path$5.Symbol={});hasOwn$5(Et,ht)||defineProperty$5(Et,ht,{value:wrappedWellKnownSymbolModule$1.f(ht)})},call$1=functionCall,getBuiltIn$2=getBuiltIn$8,wellKnownSymbol$3=wellKnownSymbol$b,defineBuiltIn$1=defineBuiltIn$2,symbolDefineToPrimitive=function(){var ht=getBuiltIn$2("Symbol"),Et=ht&&ht.prototype,yt=Et&&Et.valueOf,Ct=wellKnownSymbol$3("toPrimitive");Et&&!Et[Ct]&&defineBuiltIn$1(Et,Ct,function($t){return call$1(yt,this)},{arity:1})},TO_STRING_TAG_SUPPORT$1=toStringTagSupport,classof=classof$8,objectToString=TO_STRING_TAG_SUPPORT$1?{}.toString:function ht(){return"[object "+classof(this)+"]"},TO_STRING_TAG_SUPPORT=toStringTagSupport,defineProperty$4=objectDefineProperty.f,createNonEnumerableProperty$1=createNonEnumerableProperty$4,hasOwn$4=hasOwnProperty_1,toString$1=objectToString,wellKnownSymbol$2=wellKnownSymbol$b,TO_STRING_TAG=wellKnownSymbol$2("toStringTag"),setToStringTag$1=function(ht,Et,yt,Ct){var $t=yt?ht:ht&&ht.prototype;$t&&(hasOwn$4($t,TO_STRING_TAG)||defineProperty$4($t,TO_STRING_TAG,{configurable:!0,value:Et}),Ct&&!TO_STRING_TAG_SUPPORT&&createNonEnumerableProperty$1($t,"toString",toString$1))},global$3=global$e,isCallable=isCallable$d,WeakMap$2=global$3.WeakMap,weakMapBasicDetection=isCallable(WeakMap$2)&&/native code/.test(String(WeakMap$2)),NATIVE_WEAK_MAP=weakMapBasicDetection,global$2=global$e,isObject$1=isObject$a,createNonEnumerableProperty=createNonEnumerableProperty$4,hasOwn$3=hasOwnProperty_1,shared$3=sharedStoreExports,sharedKey$1=sharedKey$3,hiddenKeys$1=hiddenKeys$5,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$2=global$2.TypeError,WeakMap$1=global$2.WeakMap,set,get,has,enforce=function(ht){return has(ht)?get(ht):set(ht,{})},getterFor=function(ht){return function(Et){var yt;if(!isObject$1(Et)||(yt=get(Et)).type!==ht)throw new TypeError$2("Incompatible receiver, "+ht+" required");return yt}};if(NATIVE_WEAK_MAP||shared$3.state){var store=shared$3.state||(shared$3.state=new WeakMap$1);store.get=store.get,store.has=store.has,store.set=store.set,set=function(ht,Et){if(store.has(ht))throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);return Et.facade=ht,store.set(ht,Et),Et},get=function(ht){return store.get(ht)||{}},has=function(ht){return store.has(ht)}}else{var STATE=sharedKey$1("state");hiddenKeys$1[STATE]=!0,set=function(ht,Et){if(hasOwn$3(ht,STATE))throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);return Et.facade=ht,createNonEnumerableProperty(ht,STATE,Et),Et},get=function(ht){return hasOwn$3(ht,STATE)?ht[STATE]:{}},has=function(ht){return hasOwn$3(ht,STATE)}}var internalState={set,get,has,enforce,getterFor},$$8=_export,global$1=global$e,call=functionCall,uncurryThis$1=functionUncurryThis,DESCRIPTORS$4=descriptors,NATIVE_SYMBOL$2=symbolConstructorDetection,fails$3=fails$l,hasOwn$2=hasOwnProperty_1,isPrototypeOf$1=objectIsPrototypeOf,anObject$1=anObject$6,toIndexedObject$2=toIndexedObject$9,toPropertyKey=toPropertyKey$3,$toString=toString$7,createPropertyDescriptor=createPropertyDescriptor$4,nativeObjectCreate=objectCreate,objectKeys=objectKeys$3,getOwnPropertyNamesModule$1=objectGetOwnPropertyNames,getOwnPropertyNamesExternal=objectGetOwnPropertyNamesExternal,getOwnPropertySymbolsModule$2=objectGetOwnPropertySymbols,getOwnPropertyDescriptorModule$1=objectGetOwnPropertyDescriptor,definePropertyModule=objectDefineProperty,definePropertiesModule=objectDefineProperties,propertyIsEnumerableModule=objectPropertyIsEnumerable,defineBuiltIn=defineBuiltIn$2,defineBuiltInAccessor=defineBuiltInAccessor$1,shared$2=shared$6,sharedKey=sharedKey$3,hiddenKeys=hiddenKeys$5,uid=uid$3,wellKnownSymbol$1=wellKnownSymbol$b,wrappedWellKnownSymbolModule=wellKnownSymbolWrapped,defineWellKnownSymbol=wellKnownSymbolDefine,defineSymbolToPrimitive=symbolDefineToPrimitive,setToStringTag=setToStringTag$1,InternalStateModule=internalState,$forEach=arrayIteration.forEach,HIDDEN=sharedKey("hidden"),SYMBOL="Symbol",PROTOTYPE="prototype",setInternalState=InternalStateModule.set,getInternalState=InternalStateModule.getterFor(SYMBOL),ObjectPrototype=Object[PROTOTYPE],$Symbol=global$1.Symbol,SymbolPrototype=$Symbol&&$Symbol[PROTOTYPE],RangeError$1=global$1.RangeError,TypeError$1=global$1.TypeError,QObject=global$1.QObject,nativeGetOwnPropertyDescriptor$1=getOwnPropertyDescriptorModule$1.f,nativeDefineProperty=definePropertyModule.f,nativeGetOwnPropertyNames=getOwnPropertyNamesExternal.f,nativePropertyIsEnumerable=propertyIsEnumerableModule.f,push=uncurryThis$1([].push),AllSymbols=shared$2("symbols"),ObjectPrototypeSymbols=shared$2("op-symbols"),WellKnownSymbolsStore=shared$2("wks"),USE_SETTER=!QObject||!QObject[PROTOTYPE]||!QObject[PROTOTYPE].findChild,fallbackDefineProperty=function(ht,Et,yt){var Ct=nativeGetOwnPropertyDescriptor$1(ObjectPrototype,Et);Ct&&delete ObjectPrototype[Et],nativeDefineProperty(ht,Et,yt),Ct&&ht!==ObjectPrototype&&nativeDefineProperty(ObjectPrototype,Et,Ct)},setSymbolDescriptor=DESCRIPTORS$4&&fails$3(function(){return nativeObjectCreate(nativeDefineProperty({},"a",{get:function(){return nativeDefineProperty(this,"a",{value:7}).a}})).a!==7})?fallbackDefineProperty:nativeDefineProperty,wrap=function(ht,Et){var yt=AllSymbols[ht]=nativeObjectCreate(SymbolPrototype);return setInternalState(yt,{type:SYMBOL,tag:ht,description:Et}),DESCRIPTORS$4||(yt.description=Et),yt},$defineProperty=function ht(Et,yt,Ct){Et===ObjectPrototype&&$defineProperty(ObjectPrototypeSymbols,yt,Ct),anObject$1(Et);var $t=toPropertyKey(yt);return anObject$1(Ct),hasOwn$2(AllSymbols,$t)?(Ct.enumerable?(hasOwn$2(Et,HIDDEN)&&Et[HIDDEN][$t]&&(Et[HIDDEN][$t]=!1),Ct=nativeObjectCreate(Ct,{enumerable:createPropertyDescriptor(0,!1)})):(hasOwn$2(Et,HIDDEN)||nativeDefineProperty(Et,HIDDEN,createPropertyDescriptor(1,nativeObjectCreate(null))),Et[HIDDEN][$t]=!0),setSymbolDescriptor(Et,$t,Ct)):nativeDefineProperty(Et,$t,Ct)},$defineProperties=function ht(Et,yt){anObject$1(Et);var Ct=toIndexedObject$2(yt),$t=objectKeys(Ct).concat($getOwnPropertySymbols(Ct));return $forEach($t,function(At){(!DESCRIPTORS$4||call($propertyIsEnumerable,Ct,At))&&$defineProperty(Et,At,Ct[At])}),Et},$create=function ht(Et,yt){return yt===void 0?nativeObjectCreate(Et):$defineProperties(nativeObjectCreate(Et),yt)},$propertyIsEnumerable=function ht(Et){var yt=toPropertyKey(Et),Ct=call(nativePropertyIsEnumerable,this,yt);return this===ObjectPrototype&&hasOwn$2(AllSymbols,yt)&&!hasOwn$2(ObjectPrototypeSymbols,yt)?!1:Ct||!hasOwn$2(this,yt)||!hasOwn$2(AllSymbols,yt)||hasOwn$2(this,HIDDEN)&&this[HIDDEN][yt]?Ct:!0},$getOwnPropertyDescriptor=function ht(Et,yt){var Ct=toIndexedObject$2(Et),$t=toPropertyKey(yt);if(!(Ct===ObjectPrototype&&hasOwn$2(AllSymbols,$t)&&!hasOwn$2(ObjectPrototypeSymbols,$t))){var At=nativeGetOwnPropertyDescriptor$1(Ct,$t);return At&&hasOwn$2(AllSymbols,$t)&&!(hasOwn$2(Ct,HIDDEN)&&Ct[HIDDEN][$t])&&(At.enumerable=!0),At}},$getOwnPropertyNames=function ht(Et){var yt=nativeGetOwnPropertyNames(toIndexedObject$2(Et)),Ct=[];return $forEach(yt,function($t){!hasOwn$2(AllSymbols,$t)&&!hasOwn$2(hiddenKeys,$t)&&push(Ct,$t)}),Ct},$getOwnPropertySymbols=function(ht){var Et=ht===ObjectPrototype,yt=nativeGetOwnPropertyNames(Et?ObjectPrototypeSymbols:toIndexedObject$2(ht)),Ct=[];return $forEach(yt,function($t){hasOwn$2(AllSymbols,$t)&&(!Et||hasOwn$2(ObjectPrototype,$t))&&push(Ct,AllSymbols[$t])}),Ct};NATIVE_SYMBOL$2||($Symbol=function(){if(isPrototypeOf$1(SymbolPrototype,this))throw new TypeError$1("Symbol is not a constructor");var Et=!arguments.length||arguments[0]===void 0?void 0:$toString(arguments[0]),yt=uid(Et),Ct=function($t){var At=this===void 0?global$1:this;At===ObjectPrototype&&call(Ct,ObjectPrototypeSymbols,$t),hasOwn$2(At,HIDDEN)&&hasOwn$2(At[HIDDEN],yt)&&(At[HIDDEN][yt]=!1);var Bt=createPropertyDescriptor(1,$t);try{setSymbolDescriptor(At,yt,Bt)}catch(Dt){if(!(Dt instanceof RangeError$1))throw Dt;fallbackDefineProperty(At,yt,Bt)}};return DESCRIPTORS$4&&USE_SETTER&&setSymbolDescriptor(ObjectPrototype,yt,{configurable:!0,set:Ct}),wrap(yt,Et)},SymbolPrototype=$Symbol[PROTOTYPE],defineBuiltIn(SymbolPrototype,"toString",function(){return getInternalState(this).tag}),defineBuiltIn($Symbol,"withoutSetter",function(ht){return wrap(uid(ht),ht)}),propertyIsEnumerableModule.f=$propertyIsEnumerable,definePropertyModule.f=$defineProperty,definePropertiesModule.f=$defineProperties,getOwnPropertyDescriptorModule$1.f=$getOwnPropertyDescriptor,getOwnPropertyNamesModule$1.f=getOwnPropertyNamesExternal.f=$getOwnPropertyNames,getOwnPropertySymbolsModule$2.f=$getOwnPropertySymbols,wrappedWellKnownSymbolModule.f=function(ht){return wrap(wellKnownSymbol$1(ht),ht)},DESCRIPTORS$4&&defineBuiltInAccessor(SymbolPrototype,"description",{configurable:!0,get:function(){return getInternalState(this).description}}));$$8({global:!0,constructor:!0,wrap:!0,forced:!NATIVE_SYMBOL$2,sham:!NATIVE_SYMBOL$2},{Symbol:$Symbol});$forEach(objectKeys(WellKnownSymbolsStore),function(ht){defineWellKnownSymbol(ht)});$$8({target:SYMBOL,stat:!0,forced:!NATIVE_SYMBOL$2},{useSetter:function(){USE_SETTER=!0},useSimple:function(){USE_SETTER=!1}});$$8({target:"Object",stat:!0,forced:!NATIVE_SYMBOL$2,sham:!DESCRIPTORS$4},{create:$create,defineProperty:$defineProperty,defineProperties:$defineProperties,getOwnPropertyDescriptor:$getOwnPropertyDescriptor});$$8({target:"Object",stat:!0,forced:!NATIVE_SYMBOL$2},{getOwnPropertyNames:$getOwnPropertyNames});defineSymbolToPrimitive();setToStringTag($Symbol,SYMBOL);hiddenKeys[HIDDEN]=!0;var NATIVE_SYMBOL$1=symbolConstructorDetection,symbolRegistryDetection=NATIVE_SYMBOL$1&&!!Symbol.for&&!!Symbol.keyFor,$$7=_export,getBuiltIn$1=getBuiltIn$8,hasOwn$1=hasOwnProperty_1,toString=toString$7,shared$1=shared$6,NATIVE_SYMBOL_REGISTRY$1=symbolRegistryDetection,StringToSymbolRegistry=shared$1("string-to-symbol-registry"),SymbolToStringRegistry$1=shared$1("symbol-to-string-registry");$$7({target:"Symbol",stat:!0,forced:!NATIVE_SYMBOL_REGISTRY$1},{for:function(ht){var Et=toString(ht);if(hasOwn$1(StringToSymbolRegistry,Et))return StringToSymbolRegistry[Et];var yt=getBuiltIn$1("Symbol")(Et);return StringToSymbolRegistry[Et]=yt,SymbolToStringRegistry$1[yt]=Et,yt}});var $$6=_export,hasOwn=hasOwnProperty_1,isSymbol=isSymbol$4,tryToString=tryToString$3,shared=shared$6,NATIVE_SYMBOL_REGISTRY=symbolRegistryDetection,SymbolToStringRegistry=shared("symbol-to-string-registry");$$6({target:"Symbol",stat:!0,forced:!NATIVE_SYMBOL_REGISTRY},{keyFor:function ht(Et){if(!isSymbol(Et))throw new TypeError(tryToString(Et)+" is not a symbol");if(hasOwn(SymbolToStringRegistry,Et))return SymbolToStringRegistry[Et]}});var $$5=_export,NATIVE_SYMBOL=symbolConstructorDetection,fails$2=fails$l,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,toObject$1=toObject$8,FORCED$2=!NATIVE_SYMBOL||fails$2(function(){getOwnPropertySymbolsModule$1.f(1)});$$5({target:"Object",stat:!0,forced:FORCED$2},{getOwnPropertySymbols:function ht(Et){var yt=getOwnPropertySymbolsModule$1.f;return yt?yt(toObject$1(Et)):[]}});var path$4=path$e,getOwnPropertySymbols$1=path$4.Object.getOwnPropertySymbols,parent$5=getOwnPropertySymbols$1,getOwnPropertySymbols=parent$5;const _Object$getOwnPropertySymbols=getDefaultExportFromCjs$1(getOwnPropertySymbols);var getOwnPropertyDescriptor$2={exports:{}},$$4=_export,fails$1=fails$l,toIndexedObject$1=toIndexedObject$9,nativeGetOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f,DESCRIPTORS$3=descriptors,FORCED$1=!DESCRIPTORS$3||fails$1(function(){nativeGetOwnPropertyDescriptor(1)});$$4({target:"Object",stat:!0,forced:FORCED$1,sham:!DESCRIPTORS$3},{getOwnPropertyDescriptor:function ht(Et,yt){return nativeGetOwnPropertyDescriptor(toIndexedObject$1(Et),yt)}});var path$3=path$e,Object$3=path$3.Object,getOwnPropertyDescriptor$1=getOwnPropertyDescriptor$2.exports=function ht(Et,yt){return Object$3.getOwnPropertyDescriptor(Et,yt)};Object$3.getOwnPropertyDescriptor.sham&&(getOwnPropertyDescriptor$1.sham=!0);var getOwnPropertyDescriptorExports=getOwnPropertyDescriptor$2.exports,parent$4=getOwnPropertyDescriptorExports,getOwnPropertyDescriptor=parent$4;const _Object$getOwnPropertyDescriptor=getDefaultExportFromCjs$1(getOwnPropertyDescriptor);var getBuiltIn=getBuiltIn$8,uncurryThis=functionUncurryThis,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,anObject=anObject$6,concat$3=uncurryThis([].concat),ownKeys$3=getBuiltIn("Reflect","ownKeys")||function ht(Et){var yt=getOwnPropertyNamesModule.f(anObject(Et)),Ct=getOwnPropertySymbolsModule.f;return Ct?concat$3(yt,Ct(Et)):yt},$$3=_export,DESCRIPTORS$2=descriptors,ownKeys$2=ownKeys$3,toIndexedObject=toIndexedObject$9,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,createProperty$1=createProperty$3;$$3({target:"Object",stat:!0,sham:!DESCRIPTORS$2},{getOwnPropertyDescriptors:function ht(Et){for(var yt=toIndexedObject(Et),Ct=getOwnPropertyDescriptorModule.f,$t=ownKeys$2(yt),At={},Bt=0,Dt,Ft;$t.length>Bt;)Ft=Ct(yt,Dt=$t[Bt++]),Ft!==void 0&&createProperty$1(At,Dt,Ft);return At}});var path$2=path$e,getOwnPropertyDescriptors$1=path$2.Object.getOwnPropertyDescriptors,parent$3=getOwnPropertyDescriptors$1,getOwnPropertyDescriptors=parent$3;const _Object$getOwnPropertyDescriptors=getDefaultExportFromCjs$1(getOwnPropertyDescriptors);var defineProperties$3={exports:{}},$$2=_export,DESCRIPTORS$1=descriptors,defineProperties$2=objectDefineProperties.f;$$2({target:"Object",stat:!0,forced:Object.defineProperties!==defineProperties$2,sham:!DESCRIPTORS$1},{defineProperties:defineProperties$2});var path$1=path$e,Object$2=path$1.Object,defineProperties$1=defineProperties$3.exports=function ht(Et,yt){return Object$2.defineProperties(Et,yt)};Object$2.defineProperties.sham&&(defineProperties$1.sham=!0);var definePropertiesExports=defineProperties$3.exports,parent$2=definePropertiesExports,defineProperties=parent$2;const _Object$defineProperties=getDefaultExportFromCjs$1(defineProperties);var defineProperty$3={exports:{}},$$1=_export,DESCRIPTORS=descriptors,defineProperty$2=objectDefineProperty.f;$$1({target:"Object",stat:!0,forced:Object.defineProperty!==defineProperty$2,sham:!DESCRIPTORS},{defineProperty:defineProperty$2});var path=path$e,Object$1=path.Object,defineProperty$1=defineProperty$3.exports=function ht(Et,yt,Ct){return Object$1.defineProperty(Et,yt,Ct)};Object$1.defineProperty.sham&&(defineProperty$1.sham=!0);var definePropertyExports=defineProperty$3.exports,parent$1=definePropertyExports,defineProperty=parent$1;const _Object$defineProperty=getDefaultExportFromCjs$1(defineProperty);var InternalState=function(){function ht(){_classCallCheck(this,ht),this.sourcePointer=0,this.active=!0,this.fetch=null}return _createClass$1(ht,[{key:"isActive",value:function(){var yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return!(yt.internal!==this||!this.fetch||this.active!==!0)}}]),ht}();function ownKeys$1(ht,Et){var yt=_Object$keys(ht);if(_Object$getOwnPropertySymbols){var Ct=_Object$getOwnPropertySymbols(ht);Et&&(Ct=_filterInstanceProperty(Ct).call(Ct,function($t){return _Object$getOwnPropertyDescriptor(ht,$t).enumerable})),yt.push.apply(yt,Ct)}return yt}function _objectSpread$1(ht){for(var Et=1;Et<arguments.length;Et++){var yt=arguments[Et]!=null?arguments[Et]:{};Et%2?ownKeys$1(Object(yt),!0).forEach(function(Ct){_defineProperty$1(ht,Ct,yt[Ct])}):_Object$getOwnPropertyDescriptors?_Object$defineProperties(ht,_Object$getOwnPropertyDescriptors(yt)):ownKeys$1(Object(yt)).forEach(function(Ct){_Object$defineProperty(ht,Ct,_Object$getOwnPropertyDescriptor(yt,Ct))})}return ht}function _createSuper$3(ht){var Et=_isNativeReflectConstruct$3();return function(){var Ct=_getPrototypeOf(ht),$t;if(Et){var At=_getPrototypeOf(this).constructor;$t=_Reflect$construct(Ct,arguments,At)}else $t=Ct.apply(this,arguments);return _possibleConstructorReturn(this,$t)}}function _isNativeReflectConstruct$3(){if(typeof Reflect>"u"||!_Reflect$construct||_Reflect$construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_Reflect$construct(Boolean,[],function(){})),!0}catch{return!1}}function matchSource(ht,Et,yt){var Ct=Et.cache,$t=new ht(Et);if(!$t.isCompatible(Et))return yt();$t.get(function(At){var Bt=At&&At.src&&Ct.hasSourceFailedBefore(At.src);!Bt&&At?yt(At):yt()})}function createAvatarDataProvider(ht){var Et=ht.sources,yt=Et===void 0?[]:Et,Ct=_reduceInstanceProperty(yt).call(yt,function(At,Bt){return _Object$assign(At,Bt.propTypes)},{}),$t=function(At){_inherits(Dt,At);var Bt=_createSuper$3(Dt);function Dt(Ft){var kt;return _classCallCheck(this,Dt),kt=Bt.call(this,Ft),_defineProperty$1(_assertThisInitialized$1(kt),"_createFetcher",function(Mt){return function(Nt){var jt=kt.props.cache;if(Mt.isActive(kt.state)){Nt&&Nt.type==="error"&&jt.sourceFailed(Nt.target.src);var zt=Mt.sourcePointer;if(yt.length!==zt){var Vt=yt[zt];Mt.sourcePointer++,matchSource(Vt,kt.props,function(Kt){if(!Kt)return setTimeout(Mt.fetch,0);Mt.isActive(kt.state)&&(Kt=_objectSpread$1({src:null,value:null,color:null},Kt),kt.setState(function(Xt){return Mt.isActive(Xt)?Kt:{}}))})}}}}),_defineProperty$1(_assertThisInitialized$1(kt),"fetch",function(){var Mt=new InternalState;Mt.fetch=kt._createFetcher(Mt),kt.setState({internal:Mt},Mt.fetch)}),kt.state={internal:null,src:null,value:null,color:Ft.color},kt}return _createClass$1(Dt,[{key:"componentDidMount",value:function(){this.fetch()}},{key:"componentDidUpdate",value:function(kt){var Mt=!1;for(var Nt in Ct)Mt=Mt||kt[Nt]!==this.props[Nt];Mt&&setTimeout(this.fetch,0)}},{key:"componentWillUnmount",value:function(){this.state.internal&&(this.state.internal.active=!1)}},{key:"render",value:function(){var kt=this.props,Mt=kt.children,Nt=kt.propertyName,jt=this.state,zt=jt.src,Vt=jt.value,Kt=jt.color,Xt=jt.sourceName,Qt=jt.internal,Zt={src:zt,value:Vt,color:Kt,sourceName:Xt,onRenderFailed:function(){return Qt&&Qt.fetch()}};if(typeof Mt=="function")return Mt(Zt);var dr=React$8.Children.only(Mt);return React$8.cloneElement(dr,_defineProperty$1({},Nt,Zt))}}]),Dt}(reactExports.PureComponent);return _defineProperty$1($t,"displayName","AvatarDataProvider"),_defineProperty$1($t,"propTypes",_objectSpread$1(_objectSpread$1({},Ct),{},{cache:PropTypes$3.object,propertyName:PropTypes$3.string})),_defineProperty$1($t,"defaultProps",{propertyName:"avatar"}),_defineProperty$1($t,"Cache",Cache),_defineProperty$1($t,"ConfigProvider",ConfigProvider),_Object$assign(withConfig($t),{ConfigProvider,Cache})}function ownKeys(ht,Et){var yt=_Object$keys(ht);if(_Object$getOwnPropertySymbols){var Ct=_Object$getOwnPropertySymbols(ht);Et&&(Ct=_filterInstanceProperty(Ct).call(Ct,function($t){return _Object$getOwnPropertyDescriptor(ht,$t).enumerable})),yt.push.apply(yt,Ct)}return yt}function _objectSpread(ht){for(var Et=1;Et<arguments.length;Et++){var yt=arguments[Et]!=null?arguments[Et]:{};Et%2?ownKeys(Object(yt),!0).forEach(function(Ct){_defineProperty$1(ht,Ct,yt[Ct])}):_Object$getOwnPropertyDescriptors?_Object$defineProperties(ht,_Object$getOwnPropertyDescriptors(yt)):ownKeys(Object(yt)).forEach(function(Ct){_Object$defineProperty(ht,Ct,_Object$getOwnPropertyDescriptor(yt,Ct))})}return ht}function _createSuper$2(ht){var Et=_isNativeReflectConstruct$2();return function(){var Ct=_getPrototypeOf(ht),$t;if(Et){var At=_getPrototypeOf(this).constructor;$t=_Reflect$construct(Ct,arguments,At)}else $t=Ct.apply(this,arguments);return _possibleConstructorReturn(this,$t)}}function _isNativeReflectConstruct$2(){if(typeof Reflect>"u"||!_Reflect$construct||_Reflect$construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_Reflect$construct(Boolean,[],function(){})),!0}catch{return!1}}var AvatarWrapper=function(ht){_inherits(yt,ht);var Et=_createSuper$2(yt);function yt(){return _classCallCheck(this,yt),Et.apply(this,arguments)}return _createClass$1(yt,[{key:"render",value:function(){var $t=this.props,At=$t.className,Bt=$t.unstyled,Dt=$t.round,Ft=$t.style,kt=$t.avatar,Mt=$t.onClick,Nt=$t.children,jt=kt.sourceName,zt=parseSize(this.props.size),Vt=Bt?null:_objectSpread({display:"inline-block",verticalAlign:"middle",width:zt.str,height:zt.str,borderRadius:calculateBorderRadius(Dt),fontFamily:"Helvetica, Arial, sans-serif"},Ft),Kt=[At,"sb-avatar"];if(jt){var Xt=jt.toLowerCase().replace(/[^a-z0-9-]+/g,"-").replace(/^-+|-+$/g,"");Kt.push("sb-avatar--"+Xt)}return React$8.createElement("div",{className:Kt.join(" "),onClick:Mt,style:Vt},Nt)}}]),yt}(React$8.PureComponent);_defineProperty$1(AvatarWrapper,"propTypes",{className:PropTypes$3.string,round:PropTypes$3.oneOfType([PropTypes$3.bool,PropTypes$3.string]),style:PropTypes$3.object,size:PropTypes$3.oneOfType([PropTypes$3.number,PropTypes$3.string]),unstyled:PropTypes$3.bool,avatar:PropTypes$3.object,onClick:PropTypes$3.func,children:PropTypes$3.node});function _createSuper$1(ht){var Et=_isNativeReflectConstruct$1();return function(){var Ct=_getPrototypeOf(ht),$t;if(Et){var At=_getPrototypeOf(this).constructor;$t=_Reflect$construct(Ct,arguments,At)}else $t=Ct.apply(this,arguments);return _possibleConstructorReturn(this,$t)}}function _isNativeReflectConstruct$1(){if(typeof Reflect>"u"||!_Reflect$construct||_Reflect$construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_Reflect$construct(Boolean,[],function(){})),!0}catch{return!1}}var AvatarImage=function(ht){_inherits(yt,ht);var Et=_createSuper$1(yt);function yt(){return _classCallCheck(this,yt),Et.apply(this,arguments)}return _createClass$1(yt,[{key:"render",value:function(){var $t=this.props,At=$t.className,Bt=$t.round,Dt=$t.unstyled,Ft=$t.alt,kt=$t.title,Mt=$t.name,Nt=$t.value,jt=$t.avatar,zt=parseSize(this.props.size),Vt=Dt?null:{maxWidth:"100%",width:zt.str,height:zt.str,borderRadius:calculateBorderRadius(Bt)};return React$8.createElement(AvatarWrapper,this.props,React$8.createElement("img",{className:At+" sb-avatar__image",width:zt.str,height:zt.str,style:Vt,src:jt.src,alt:getNullableText(Ft,Mt||Nt),title:getNullableText(kt,Mt||Nt),onError:jt.onRenderFailed}))}}]),yt}(React$8.PureComponent);_defineProperty$1(AvatarImage,"propTypes",{alt:PropTypes$3.oneOfType([PropTypes$3.string,PropTypes$3.bool]),title:PropTypes$3.oneOfType([PropTypes$3.string,PropTypes$3.bool]),name:PropTypes$3.string,value:PropTypes$3.string,avatar:PropTypes$3.object,className:PropTypes$3.string,unstyled:PropTypes$3.bool,round:PropTypes$3.oneOfType([PropTypes$3.bool,PropTypes$3.string,PropTypes$3.number]),size:PropTypes$3.oneOfType([PropTypes$3.number,PropTypes$3.string])});_defineProperty$1(AvatarImage,"defaultProps",{className:"",round:!1,size:100,unstyled:!1});var $TypeError=TypeError,MAX_SAFE_INTEGER=9007199254740991,doesNotExceedSafeInteger$1=function(ht){if(ht>MAX_SAFE_INTEGER)throw $TypeError("Maximum allowed index exceeded");return ht},$=_export,fails=fails$l,isArray=isArray$4,isObject=isObject$a,toObject=toObject$8,lengthOfArrayLike=lengthOfArrayLike$5,doesNotExceedSafeInteger=doesNotExceedSafeInteger$1,createProperty=createProperty$3,arraySpeciesCreate=arraySpeciesCreate$2,arrayMethodHasSpeciesSupport=arrayMethodHasSpeciesSupport$4,wellKnownSymbol=wellKnownSymbol$b,V8_VERSION=engineV8Version,IS_CONCAT_SPREADABLE=wellKnownSymbol("isConcatSpreadable"),IS_CONCAT_SPREADABLE_SUPPORT=V8_VERSION>=51||!fails(function(){var ht=[];return ht[IS_CONCAT_SPREADABLE]=!1,ht.concat()[0]!==ht}),isConcatSpreadable=function(ht){if(!isObject(ht))return!1;var Et=ht[IS_CONCAT_SPREADABLE];return Et!==void 0?!!Et:isArray(ht)},FORCED=!IS_CONCAT_SPREADABLE_SUPPORT||!arrayMethodHasSpeciesSupport("concat");$({target:"Array",proto:!0,arity:1,forced:FORCED},{concat:function ht(Et){var yt=toObject(this),Ct=arraySpeciesCreate(yt,0),$t=0,At,Bt,Dt,Ft,kt;for(At=-1,Dt=arguments.length;At<Dt;At++)if(kt=At===-1?yt:arguments[At],isConcatSpreadable(kt))for(Ft=lengthOfArrayLike(kt),doesNotExceedSafeInteger($t+Ft),Bt=0;Bt<Ft;Bt++,$t++)Bt in kt&&createProperty(Ct,$t,kt[Bt]);else doesNotExceedSafeInteger($t+1),createProperty(Ct,$t++,kt);return Ct.length=$t,Ct}});var getBuiltInPrototypeMethod=getBuiltInPrototypeMethod$5,concat$2=getBuiltInPrototypeMethod("Array","concat"),isPrototypeOf=objectIsPrototypeOf,method=concat$2,ArrayPrototype=Array.prototype,concat$1=function(ht){var Et=ht.concat;return ht===ArrayPrototype||isPrototypeOf(ArrayPrototype,ht)&&Et===ArrayPrototype.concat?method:Et},parent=concat$1,concat=parent;const _concatInstanceProperty=getDefaultExportFromCjs$1(concat);function _createSuper(ht){var Et=_isNativeReflectConstruct();return function(){var Ct=_getPrototypeOf(ht),$t;if(Et){var At=_getPrototypeOf(this).constructor;$t=_Reflect$construct(Ct,arguments,At)}else $t=Ct.apply(this,arguments);return _possibleConstructorReturn(this,$t)}}function _isNativeReflectConstruct(){if(typeof Reflect>"u"||!_Reflect$construct||_Reflect$construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_Reflect$construct(Boolean,[],function(){})),!0}catch{return!1}}var AvatarText=function(ht){_inherits(yt,ht);var Et=_createSuper(yt);function yt(){var Ct,$t;_classCallCheck(this,yt);for(var At=arguments.length,Bt=new Array(At),Dt=0;Dt<At;Dt++)Bt[Dt]=arguments[Dt];return $t=Et.call.apply(Et,_concatInstanceProperty(Ct=[this]).call(Ct,Bt)),_defineProperty$1(_assertThisInitialized$1($t),"_scaleTextNode",function(Ft){var kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:16,Mt=$t.props,Nt=Mt.unstyled,jt=Mt.textSizeRatio,zt=Mt.textMarginRatio,Vt=Mt.avatar;if($t._node=Ft,!(!Ft||!Ft.parentNode||Nt||Vt.src||!$t._mounted)){var Kt=Ft.parentNode,Xt=Kt.parentNode,Qt=Kt.getBoundingClientRect(),Zt=Qt.width,dr=Qt.height;if(Zt==0&&dr==0){var cr=Math.min(kt*1.5,500);setGroupedTimeout(function(){return $t._scaleTextNode(Ft,cr)},cr);return}if(!Xt.style.fontSize){var Er=dr/jt;Xt.style.fontSize="".concat(Er,"px")}Kt.style.fontSize=null;var pr=Ft.getBoundingClientRect(),gr=pr.width;if(!(gr<0)){var vr=Zt*(1-2*zt);gr>vr&&(Kt.style.fontSize="calc(1em * ".concat(vr/gr,")"))}}}),$t}return _createClass$1(yt,[{key:"componentDidMount",value:function(){this._mounted=!0,this._scaleTextNode(this._node)}},{key:"componentWillUnmount",value:function(){this._mounted=!1}},{key:"render",value:function(){var $t=this.props,At=$t.className,Bt=$t.round,Dt=$t.unstyled,Ft=$t.title,kt=$t.name,Mt=$t.value,Nt=$t.avatar,jt=parseSize(this.props.size),zt=Dt?null:{width:jt.str,height:jt.str,lineHeight:"initial",textAlign:"center",color:this.props.fgColor,background:Nt.color,borderRadius:calculateBorderRadius(Bt)},Vt=Dt?null:{display:"table",tableLayout:"fixed",width:"100%",height:"100%"},Kt=Dt?null:{display:"table-cell",verticalAlign:"middle",fontSize:"100%",whiteSpace:"nowrap"},Xt=[Nt.value,this.props.size].join("");return React$8.createElement(AvatarWrapper,this.props,React$8.createElement("div",{className:At+" sb-avatar__text",style:zt,title:getNullableText(Ft,kt||Mt)},React$8.createElement("div",{style:Vt},React$8.createElement("span",{style:Kt},React$8.createElement("span",{ref:this._scaleTextNode,key:Xt},Nt.value)))))}}]),yt}(React$8.PureComponent);_defineProperty$1(AvatarText,"propTypes",{name:PropTypes$3.string,value:PropTypes$3.string,avatar:PropTypes$3.object,title:PropTypes$3.oneOfType([PropTypes$3.string,PropTypes$3.bool]),className:PropTypes$3.string,unstyled:PropTypes$3.bool,fgColor:PropTypes$3.string,textSizeRatio:PropTypes$3.number,textMarginRatio:PropTypes$3.number,round:PropTypes$3.oneOfType([PropTypes$3.bool,PropTypes$3.string,PropTypes$3.number]),size:PropTypes$3.oneOfType([PropTypes$3.number,PropTypes$3.string])});_defineProperty$1(AvatarText,"defaultProps",{className:"",fgColor:"#FFF",round:!1,size:100,textSizeRatio:3,textMarginRatio:.15,unstyled:!1});function createAvatarComponent(ht){var Et=createAvatarDataProvider(ht),yt=withConfig(React$8.forwardRef(function(Ct,$t){return React$8.createElement(Et,_extends$5({},Ct,{propertyName:"avatar"}),function(At){var Bt=At.src?AvatarImage:AvatarText;return React$8.createElement(Bt,_extends$5({},Ct,{avatar:At,ref:$t}))})}));return _Object$assign(yt,{getRandomColor,ConfigProvider,Cache})}var md5$1={exports:{}},crypt={exports:{}};(function(){var ht="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Et={rotl:function(yt,Ct){return yt<<Ct|yt>>>32-Ct},rotr:function(yt,Ct){return yt<<32-Ct|yt>>>Ct},endian:function(yt){if(yt.constructor==Number)return Et.rotl(yt,8)&16711935|Et.rotl(yt,24)&4278255360;for(var Ct=0;Ct<yt.length;Ct++)yt[Ct]=Et.endian(yt[Ct]);return yt},randomBytes:function(yt){for(var Ct=[];yt>0;yt--)Ct.push(Math.floor(Math.random()*256));return Ct},bytesToWords:function(yt){for(var Ct=[],$t=0,At=0;$t<yt.length;$t++,At+=8)Ct[At>>>5]|=yt[$t]<<24-At%32;return Ct},wordsToBytes:function(yt){for(var Ct=[],$t=0;$t<yt.length*32;$t+=8)Ct.push(yt[$t>>>5]>>>24-$t%32&255);return Ct},bytesToHex:function(yt){for(var Ct=[],$t=0;$t<yt.length;$t++)Ct.push((yt[$t]>>>4).toString(16)),Ct.push((yt[$t]&15).toString(16));return Ct.join("")},hexToBytes:function(yt){for(var Ct=[],$t=0;$t<yt.length;$t+=2)Ct.push(parseInt(yt.substr($t,2),16));return Ct},bytesToBase64:function(yt){for(var Ct=[],$t=0;$t<yt.length;$t+=3)for(var At=yt[$t]<<16|yt[$t+1]<<8|yt[$t+2],Bt=0;Bt<4;Bt++)$t*8+Bt*6<=yt.length*8?Ct.push(ht.charAt(At>>>6*(3-Bt)&63)):Ct.push("=");return Ct.join("")},base64ToBytes:function(yt){yt=yt.replace(/[^A-Z0-9+\/]/ig,"");for(var Ct=[],$t=0,At=0;$t<yt.length;At=++$t%4)At!=0&&Ct.push((ht.indexOf(yt.charAt($t-1))&Math.pow(2,-2*At+8)-1)<<At*2|ht.indexOf(yt.charAt($t))>>>6-At*2);return Ct}};crypt.exports=Et})();var cryptExports=crypt.exports,charenc={utf8:{stringToBytes:function(ht){return charenc.bin.stringToBytes(unescape(encodeURIComponent(ht)))},bytesToString:function(ht){return decodeURIComponent(escape(charenc.bin.bytesToString(ht)))}},bin:{stringToBytes:function(ht){for(var Et=[],yt=0;yt<ht.length;yt++)Et.push(ht.charCodeAt(yt)&255);return Et},bytesToString:function(ht){for(var Et=[],yt=0;yt<ht.length;yt++)Et.push(String.fromCharCode(ht[yt]));return Et.join("")}}},charenc_1=charenc;/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */var isBuffer_1=function(ht){return ht!=null&&(isBuffer(ht)||isSlowBuffer(ht)||!!ht._isBuffer)};function isBuffer(ht){return!!ht.constructor&&typeof ht.constructor.isBuffer=="function"&&ht.constructor.isBuffer(ht)}function isSlowBuffer(ht){return typeof ht.readFloatLE=="function"&&typeof ht.slice=="function"&&isBuffer(ht.slice(0,0))}(function(){var ht=cryptExports,Et=charenc_1.utf8,yt=isBuffer_1,Ct=charenc_1.bin,$t=function(At,Bt){At.constructor==String?Bt&&Bt.encoding==="binary"?At=Ct.stringToBytes(At):At=Et.stringToBytes(At):yt(At)?At=Array.prototype.slice.call(At,0):!Array.isArray(At)&&At.constructor!==Uint8Array&&(At=At.toString());for(var Dt=ht.bytesToWords(At),Ft=At.length*8,kt=1732584193,Mt=-271733879,Nt=-1732584194,jt=271733878,zt=0;zt<Dt.length;zt++)Dt[zt]=(Dt[zt]<<8|Dt[zt]>>>24)&16711935|(Dt[zt]<<24|Dt[zt]>>>8)&4278255360;Dt[Ft>>>5]|=128<<Ft%32,Dt[(Ft+64>>>9<<4)+14]=Ft;for(var Vt=$t._ff,Kt=$t._gg,Xt=$t._hh,Qt=$t._ii,zt=0;zt<Dt.length;zt+=16){var Zt=kt,dr=Mt,cr=Nt,Er=jt;kt=Vt(kt,Mt,Nt,jt,Dt[zt+0],7,-680876936),jt=Vt(jt,kt,Mt,Nt,Dt[zt+1],12,-389564586),Nt=Vt(Nt,jt,kt,Mt,Dt[zt+2],17,606105819),Mt=Vt(Mt,Nt,jt,kt,Dt[zt+3],22,-1044525330),kt=Vt(kt,Mt,Nt,jt,Dt[zt+4],7,-176418897),jt=Vt(jt,kt,Mt,Nt,Dt[zt+5],12,1200080426),Nt=Vt(Nt,jt,kt,Mt,Dt[zt+6],17,-1473231341),Mt=Vt(Mt,Nt,jt,kt,Dt[zt+7],22,-45705983),kt=Vt(kt,Mt,Nt,jt,Dt[zt+8],7,1770035416),jt=Vt(jt,kt,Mt,Nt,Dt[zt+9],12,-1958414417),Nt=Vt(Nt,jt,kt,Mt,Dt[zt+10],17,-42063),Mt=Vt(Mt,Nt,jt,kt,Dt[zt+11],22,-1990404162),kt=Vt(kt,Mt,Nt,jt,Dt[zt+12],7,1804603682),jt=Vt(jt,kt,Mt,Nt,Dt[zt+13],12,-40341101),Nt=Vt(Nt,jt,kt,Mt,Dt[zt+14],17,-1502002290),Mt=Vt(Mt,Nt,jt,kt,Dt[zt+15],22,1236535329),kt=Kt(kt,Mt,Nt,jt,Dt[zt+1],5,-165796510),jt=Kt(jt,kt,Mt,Nt,Dt[zt+6],9,-1069501632),Nt=Kt(Nt,jt,kt,Mt,Dt[zt+11],14,643717713),Mt=Kt(Mt,Nt,jt,kt,Dt[zt+0],20,-373897302),kt=Kt(kt,Mt,Nt,jt,Dt[zt+5],5,-701558691),jt=Kt(jt,kt,Mt,Nt,Dt[zt+10],9,38016083),Nt=Kt(Nt,jt,kt,Mt,Dt[zt+15],14,-660478335),Mt=Kt(Mt,Nt,jt,kt,Dt[zt+4],20,-405537848),kt=Kt(kt,Mt,Nt,jt,Dt[zt+9],5,568446438),jt=Kt(jt,kt,Mt,Nt,Dt[zt+14],9,-1019803690),Nt=Kt(Nt,jt,kt,Mt,Dt[zt+3],14,-187363961),Mt=Kt(Mt,Nt,jt,kt,Dt[zt+8],20,1163531501),kt=Kt(kt,Mt,Nt,jt,Dt[zt+13],5,-1444681467),jt=Kt(jt,kt,Mt,Nt,Dt[zt+2],9,-51403784),Nt=Kt(Nt,jt,kt,Mt,Dt[zt+7],14,1735328473),Mt=Kt(Mt,Nt,jt,kt,Dt[zt+12],20,-1926607734),kt=Xt(kt,Mt,Nt,jt,Dt[zt+5],4,-378558),jt=Xt(jt,kt,Mt,Nt,Dt[zt+8],11,-2022574463),Nt=Xt(Nt,jt,kt,Mt,Dt[zt+11],16,1839030562),Mt=Xt(Mt,Nt,jt,kt,Dt[zt+14],23,-35309556),kt=Xt(kt,Mt,Nt,jt,Dt[zt+1],4,-1530992060),jt=Xt(jt,kt,Mt,Nt,Dt[zt+4],11,1272893353),Nt=Xt(Nt,jt,kt,Mt,Dt[zt+7],16,-155497632),Mt=Xt(Mt,Nt,jt,kt,Dt[zt+10],23,-1094730640),kt=Xt(kt,Mt,Nt,jt,Dt[zt+13],4,681279174),jt=Xt(jt,kt,Mt,Nt,Dt[zt+0],11,-358537222),Nt=Xt(Nt,jt,kt,Mt,Dt[zt+3],16,-722521979),Mt=Xt(Mt,Nt,jt,kt,Dt[zt+6],23,76029189),kt=Xt(kt,Mt,Nt,jt,Dt[zt+9],4,-640364487),jt=Xt(jt,kt,Mt,Nt,Dt[zt+12],11,-421815835),Nt=Xt(Nt,jt,kt,Mt,Dt[zt+15],16,530742520),Mt=Xt(Mt,Nt,jt,kt,Dt[zt+2],23,-995338651),kt=Qt(kt,Mt,Nt,jt,Dt[zt+0],6,-198630844),jt=Qt(jt,kt,Mt,Nt,Dt[zt+7],10,1126891415),Nt=Qt(Nt,jt,kt,Mt,Dt[zt+14],15,-1416354905),Mt=Qt(Mt,Nt,jt,kt,Dt[zt+5],21,-57434055),kt=Qt(kt,Mt,Nt,jt,Dt[zt+12],6,1700485571),jt=Qt(jt,kt,Mt,Nt,Dt[zt+3],10,-1894986606),Nt=Qt(Nt,jt,kt,Mt,Dt[zt+10],15,-1051523),Mt=Qt(Mt,Nt,jt,kt,Dt[zt+1],21,-2054922799),kt=Qt(kt,Mt,Nt,jt,Dt[zt+8],6,1873313359),jt=Qt(jt,kt,Mt,Nt,Dt[zt+15],10,-30611744),Nt=Qt(Nt,jt,kt,Mt,Dt[zt+6],15,-1560198380),Mt=Qt(Mt,Nt,jt,kt,Dt[zt+13],21,1309151649),kt=Qt(kt,Mt,Nt,jt,Dt[zt+4],6,-145523070),jt=Qt(jt,kt,Mt,Nt,Dt[zt+11],10,-1120210379),Nt=Qt(Nt,jt,kt,Mt,Dt[zt+2],15,718787259),Mt=Qt(Mt,Nt,jt,kt,Dt[zt+9],21,-343485551),kt=kt+Zt>>>0,Mt=Mt+dr>>>0,Nt=Nt+cr>>>0,jt=jt+Er>>>0}return ht.endian([kt,Mt,Nt,jt])};$t._ff=function(At,Bt,Dt,Ft,kt,Mt,Nt){var jt=At+(Bt&Dt|~Bt&Ft)+(kt>>>0)+Nt;return(jt<<Mt|jt>>>32-Mt)+Bt},$t._gg=function(At,Bt,Dt,Ft,kt,Mt,Nt){var jt=At+(Bt&Ft|Dt&~Ft)+(kt>>>0)+Nt;return(jt<<Mt|jt>>>32-Mt)+Bt},$t._hh=function(At,Bt,Dt,Ft,kt,Mt,Nt){var jt=At+(Bt^Dt^Ft)+(kt>>>0)+Nt;return(jt<<Mt|jt>>>32-Mt)+Bt},$t._ii=function(At,Bt,Dt,Ft,kt,Mt,Nt){var jt=At+(Dt^(Bt|~Ft))+(kt>>>0)+Nt;return(jt<<Mt|jt>>>32-Mt)+Bt},$t._blocksize=16,$t._digestsize=16,md5$1.exports=function(At,Bt){if(At==null)throw new Error("Illegal argument "+At);var Dt=ht.wordsToBytes($t(At,Bt));return Bt&&Bt.asBytes?Dt:Bt&&Bt.asString?Ct.bytesToString(Dt):ht.bytesToHex(Dt)}})();var md5Exports=md5$1.exports;const md5=getDefaultExportFromCjs$1(md5Exports);var GravatarSource=_createClass$1(function ht(Et){var yt=this;_classCallCheck(this,ht),_defineProperty$1(this,"props",null),_defineProperty$1(this,"isCompatible",function(){return!!yt.props.email||!!yt.props.md5Email}),_defineProperty$1(this,"get",function(Ct){var $t=yt.props,At=$t.md5Email||md5($t.email),Bt=getImageSize($t.size),Dt="https://secure.gravatar.com/avatar/".concat(At,"?d=404");Bt&&(Dt+="&s=".concat(Bt)),Ct({sourceName:"gravatar",src:Dt})}),this.props=Et});_defineProperty$1(GravatarSource,"propTypes",{email:PropTypes$3.string,md5Email:PropTypes$3.string});var FacebookSource=_createClass$1(function ht(Et){var yt=this;_classCallCheck(this,ht),_defineProperty$1(this,"props",null),_defineProperty$1(this,"isCompatible",function(){return!!yt.props.facebookId}),_defineProperty$1(this,"get",function(Ct){var $t,At=yt.props.facebookId,Bt=getImageSize(yt.props.size),Dt="https://graph.facebook.com/".concat(At,"/picture");Bt&&(Dt+=_concatInstanceProperty($t="?width=".concat(Bt,"&height=")).call($t,Bt)),Ct({sourceName:"facebook",src:Dt})}),this.props=Et});_defineProperty$1(FacebookSource,"propTypes",{facebookId:PropTypes$3.string});var GithubSource=_createClass$1(function ht(Et){var yt=this;_classCallCheck(this,ht),_defineProperty$1(this,"props",null),_defineProperty$1(this,"isCompatible",function(){return!!yt.props.githubHandle}),_defineProperty$1(this,"get",function(Ct){var $t=yt.props.githubHandle,At=getImageSize(yt.props.size),Bt="https://avatars.githubusercontent.com/".concat($t,"?v=4");At&&(Bt+="&s=".concat(At)),Ct({sourceName:"github",src:Bt})}),this.props=Et});_defineProperty$1(GithubSource,"propTypes",{githubHandle:PropTypes$3.string});var SkypeSource=_createClass$1(function ht(Et){var yt=this;_classCallCheck(this,ht),_defineProperty$1(this,"props",null),_defineProperty$1(this,"isCompatible",function(){return!!yt.props.skypeId}),_defineProperty$1(this,"get",function(Ct){var $t=yt.props.skypeId,At="https://api.skype.com/users/".concat($t,"/profile/avatar");Ct({sourceName:"skype",src:At})}),this.props=Et});_defineProperty$1(SkypeSource,"propTypes",{skypeId:PropTypes$3.string});var ValueSource=function(){function ht(Et){var yt=this;_classCallCheck(this,ht),_defineProperty$1(this,"props",null),_defineProperty$1(this,"isCompatible",function(){return!!(yt.props.name||yt.props.value||yt.props.email)}),_defineProperty$1(this,"get",function(Ct){var $t=yt.getValue();if(!$t)return Ct(null);Ct({sourceName:"text",value:$t,color:yt.getColor()})}),this.props=Et}return _createClass$1(ht,[{key:"getInitials",value:function(){var yt=this.props,Ct=yt.name,$t=yt.initials;return typeof $t=="string"?$t:typeof $t=="function"?$t(Ct,this.props):defaultInitials(Ct,this.props)}},{key:"getValue",value:function(){return this.props.name?this.getInitials():this.props.value?this.props.value:null}},{key:"getColor",value:function(){var yt=this.props,Ct=yt.color,$t=yt.colors,At=yt.name,Bt=yt.email,Dt=yt.value,Ft=At||Bt||Dt;return Ct||getRandomColor(Ft,$t)}}]),ht}();_defineProperty$1(ValueSource,"propTypes",{color:PropTypes$3.string,name:PropTypes$3.string,value:PropTypes$3.string,email:PropTypes$3.string,maxInitials:PropTypes$3.number,initials:PropTypes$3.oneOfType([PropTypes$3.string,PropTypes$3.func])});var SrcSource=_createClass$1(function ht(Et){var yt=this;_classCallCheck(this,ht),_defineProperty$1(this,"props",null),_defineProperty$1(this,"isCompatible",function(){return!!yt.props.src}),_defineProperty$1(this,"get",function(Ct){Ct({sourceName:"src",src:yt.props.src})}),this.props=Et});_defineProperty$1(SrcSource,"propTypes",{src:PropTypes$3.string});var IconSource=_createClass$1(function ht(Et){var yt=this;_classCallCheck(this,ht),_defineProperty$1(this,"props",null),_defineProperty$1(this,"icon","✷"),_defineProperty$1(this,"isCompatible",function(){return!0}),_defineProperty$1(this,"get",function(Ct){var $t=yt.props,At=$t.color,Bt=$t.colors;Ct({sourceName:"icon",value:yt.icon,color:At||getRandomColor(yt.icon,Bt)})}),this.props=Et});_defineProperty$1(IconSource,"propTypes",{color:PropTypes$3.string});function createRedirectSource(ht,Et){var yt;return yt=_createClass$1(function Ct($t){var At=this;_classCallCheck(this,Ct),_defineProperty$1(this,"props",null),_defineProperty$1(this,"isCompatible",function(){return!!At.props.avatarRedirectUrl&&!!At.props[Et]}),_defineProperty$1(this,"get",function(Bt){var Dt,Ft,kt,Mt=At.props.avatarRedirectUrl,Nt=getImageSize(At.props.size),jt=Mt.replace(/\/*$/,"/"),zt=At.props[Et],Vt=Nt?"size=".concat(Nt):"",Kt=_concatInstanceProperty(Dt=_concatInstanceProperty(Ft=_concatInstanceProperty(kt="".concat(jt)).call(kt,ht,"/")).call(Ft,zt,"?")).call(Dt,Vt);Bt({sourceName:ht,src:Kt})}),this.props=$t}),_defineProperty$1(yt,"propTypes",_defineProperty$1({},Et,PropTypes$3.oneOfType([PropTypes$3.string,PropTypes$3.number]))),yt}const twitterSource=createRedirectSource("twitter","twitterHandle"),vkontakteSource=createRedirectSource("vkontakte","vkontakteId"),instagramSource=createRedirectSource("instagram","instagramId"),googleSource=createRedirectSource("google","googleId");var SOURCES=[FacebookSource,googleSource,GithubSource,twitterSource,instagramSource,vkontakteSource,SkypeSource,GravatarSource,SrcSource,ValueSource,IconSource];const Avatar=createAvatarComponent({sources:SOURCES}),projectSelector="_projectSelector_i1mck_1",dropdown="_dropdown_i1mck_23",styles$2={projectSelector,dropdown},ProjectSelector=({className:ht,onOpenModalAddProject:Et})=>{const[yt,{toggle:Ct,setLeft:$t}]=useToggle(!1),At=reactExports.useRef(null),Bt=useNavigate(),{currentProject:Dt,projectList:Ft,setProjectId:kt}=projectStore,Mt=reactExports.useMemo(()=>{const zt={owner:[],shared:[]};return Ft==null||Ft.forEach(Vt=>{Vt.role.includes(Roles.PROJECT_OWNER)?zt.owner.push(Vt):zt.shared.push(Vt)}),zt},[Ft]),Nt=reactExports.useMemo(()=>{const zt=[];return Mt.owner.length>0&&zt.push({label:jsxRuntimeExports.jsx("div",{className:"px-4 py-3",children:jsxRuntimeExports.jsx("span",{className:"text-sm font-semibold text-default",children:"Owned by Me"})}),key:"Owned by me"},...Mt.owner.map(Vt=>({label:jsxRuntimeExports.jsxs("div",{className:cls("flex items-center justify-between px-4 py-3",{"bg-gray-50 dark:bg-gray-800":Vt.id===(Dt==null?void 0:Dt.id)}),children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2.5",children:[jsxRuntimeExports.jsx(Avatar,{round:!0,name:Vt.name,size:"20",maxInitials:1,textSizeRatio:1.45}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:"text-xs text-default",children:Vt.name}),jsxRuntimeExports.jsx("div",{className:"text-xs text-secondary",children:getRoleName(Vt.role)})]})]}),Vt.id===(Dt==null?void 0:Dt.id)&&jsxRuntimeExports.jsx(Iconfont,{type:"icon-check",className:"text-primary"})]}),key:Vt.id}))),Mt.owner.length>0&&Mt.shared.length>0&&zt.push({type:"divider",key:"divider"}),Mt.shared.length>0&&zt.push({label:jsxRuntimeExports.jsx("div",{className:"px-4 py-3",children:jsxRuntimeExports.jsx("span",{className:"text-sm font-semibold text-default",children:"Shared with Me"})}),key:"Shared with Me"},...Mt.shared.map(Vt=>({label:jsxRuntimeExports.jsxs("div",{className:cls("flex items-center justify-between px-4 py-3",{"bg-gray-50 dark:bg-gray-800":Vt.id===(Dt==null?void 0:Dt.id)}),children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2.5",children:[jsxRuntimeExports.jsx(Avatar,{round:!0,name:Vt.name,size:"20",maxInitials:1,textSizeRatio:1.45}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:"text-xs text-default",children:Vt.name}),jsxRuntimeExports.jsx("div",{className:"text-xs text-secondary",children:Vt.owner.email})]})]}),Vt.id===(Dt==null?void 0:Dt.id)&&jsxRuntimeExports.jsx(Iconfont,{type:"icon-check",className:"text-primary"})]}),key:Vt.id}))),zt},[Mt,Dt]),jt=zt=>{["Owner by Me","Shared with Me"].includes(zt.key)||kt(zt.key)};return useClickAway(()=>{$t()},At),jsxRuntimeExports.jsx(Dropdown,{open:yt,trigger:["click"],menu:{items:Nt,onClick:jt},dropdownRender:zt=>jsxRuntimeExports.jsxs("div",{className:cls(styles$2.dropdown),children:[reactExports.cloneElement(zt,{style:{}}),jsxRuntimeExports.jsx(Divider,{className:"m-0"}),jsxRuntimeExports.jsxs("div",{className:"w-[276px] divide-y divide-divider",children:[jsxRuntimeExports.jsx("div",{className:"cursor-pointer p-4",onClick:Et,children:jsxRuntimeExports.jsxs(Button$1,{type:"link",className:"flex h-fit items-center gap-2 p-0 text-sm font-medium leading-5",children:[jsxRuntimeExports.jsx(Iconfont,{type:"icon-create",size:20}),"Add Project"]})}),jsxRuntimeExports.jsx("div",{className:"cursor-pointer p-4",onClick:()=>Bt("/settings"),children:jsxRuntimeExports.jsxs(Button$1,{type:"link",className:"flex h-fit items-center gap-2 p-0 text-sm font-medium leading-5",children:[jsxRuntimeExports.jsx(Iconfont,{type:"icon-settings",size:20}),"Setting"]})})]})]}),rootClassName:styles$2.projectSelector,children:jsxRuntimeExports.jsx("div",{ref:At,className:cls("box-border flex h-9 cursor-pointer items-center justify-between overflow-hidden rounded-md bg-white px-2 ring-1 ring-gray-200 dark:bg-gray-800 dark:ring-white/10",ht),onClick:Ct,children:jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntimeExports.jsx(Iconfont,{type:"icon-project",className:"text-primary",size:24}),jsxRuntimeExports.jsx("div",{className:"max-w-[158px] truncate text-sm text-gray-900 dark:text-white",children:Dt==null?void 0:Dt.name}),jsxRuntimeExports.jsx(Iconfont,{type:"icon-chevron-down",className:cls("font-bold text-gray-500 transition-all",{"rotate-180":yt})})]})})})},ProjectSelector$1=observer(ProjectSelector),layout$1="_layout_hdhc7_1",table$1="_table_hdhc7_9",emptyProject$1="_emptyProject_hdhc7_29",btn$1="_btn_hdhc7_35",icon$1="_icon_hdhc7_40",styles$1={layout:layout$1,table:table$1,emptyProject:emptyProject$1,btn:btn$1,icon:icon$1},DashboardLayout$1=({children:ht})=>{const[Et,yt]=reactExports.useState(!1),{permissions:Ct,projectCapacity:$t,projectId:At,projectList:Bt,getRoles:Dt,getProjectCapacity:Ft,getPermissions:kt,setPermissions:Mt}=projectStore,[Nt]=useSearchParams(),jt=useLocation(),{isLogin:zt}=useAuth(),Vt=reactExports.useRef(null),Kt=()=>jsxRuntimeExports.jsxs("div",{className:styles$1.emptyProject,children:[jsxRuntimeExports.jsx("svg",{className:"mx-auto size-12",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M411.562667 249.429333c-8.448-3.498667-18.261333-4.053333-55.765334-4.053333h-14.634666c-41.130667 0-68.736 0.042667-89.386667 2.816-19.669333 2.645333-28.074667 7.253333-33.664 12.8-5.546667 5.546667-10.112 13.994667-12.8 33.706667-2.730667 20.565333-2.816 48.213333-2.816 89.344v256c0 41.130667 0.085333 68.778667 2.858667 89.386666 2.645333 19.669333 7.210667 28.074667 12.8 33.664 5.546667 5.546667 13.952 10.112 33.621333 12.8 20.650667 2.730667 48.256 2.816 89.386667 2.816H512v64H338.944c-38.314667 0-70.314667 0-95.658667-3.413333-26.794667-3.584-50.986667-11.52-70.4-30.976-19.456-19.413333-27.392-43.605333-30.976-70.4-3.413333-25.344-3.413333-57.344-3.413333-95.658667V381.824c0-38.357333 0-70.314667 3.413333-95.701333 3.584-26.752 11.52-50.944 30.976-70.4 19.413333-19.413333 43.605333-27.306667 70.4-30.933334 25.344-3.413333 57.344-3.413333 95.658667-3.413333h22.016c29.824 0 53.418667-0.042667 75.093333 8.96 21.674667 8.96 38.4 25.642667 59.434667 46.762667l3.626667 3.626666 28.032 28.032c26.496 26.496 33.834667 33.066667 42.282666 36.565334 8.448 3.498667 18.261333 4.053333 55.765334 4.053333h59.52c38.357333 0 70.314667 0 95.701333 3.413333 26.752 3.584 50.944 11.52 70.4 30.933334 19.413333 19.456 27.306667 43.648 30.933333 70.4 3.413333 25.386667 3.413333 57.344 3.413334 95.701333v34.176h-64V512c0-41.088-0.085333-68.693333-2.816-89.344-2.688-19.669333-7.253333-28.117333-12.8-33.664-5.546667-5.546667-13.994667-10.154667-33.706667-12.8-20.565333-2.773333-48.213333-2.816-89.344-2.816h-62.421333c-29.866667 0-53.418667 0.042667-75.093334-8.96-21.76-8.96-38.4-25.642667-59.434666-46.762667l-3.669334-3.626666-28.032-28.032c-26.496-26.538667-33.834667-33.066667-42.282666-36.565334z m292.096 379.818667a74.666667 74.666667 0 1 0 0 149.333333 74.666667 74.666667 0 0 0 0-149.333333z m-138.666667 74.666667a138.666667 138.666667 0 1 1 256.853333 72.618666l75.434667 75.52a32 32 0 1 1-45.226667 45.226667l-75.434666-75.434667a138.666667 138.666667 0 0 1-211.626667-117.930666z",fill:"#9CA3AF"})}),jsxRuntimeExports.jsx("p",{className:"mt-2 text-default",children:"You don't have any projects yet. Please create one first."}),jsxRuntimeExports.jsxs(Button$1,{type:"primary",className:styles$1.btn,onClick:()=>yt(!0),children:[jsxRuntimeExports.jsx(Iconfont,{type:"icon-create",className:styles$1.icon,mr:7,size:16}),"Create Project"]})]});reactExports.useEffect(()=>{projectStore.getProjectList(Nt.get("projectId"))},[]),reactExports.useEffect(()=>{Bt!=null&&Bt.length&&At&&(Dt(),Ft(),kt()),(Bt==null?void 0:Bt.length)===0&&Mt([])},[Bt,At]);const Xt=reactExports.useMemo(()=>{var cr;const Zt=(cr=routes.filter(Er=>Er.path==="/")[0].children)==null?void 0:cr.filter(Er=>!!Er.path);return!((Zt==null?void 0:Zt.filter(Er=>Er.noAuth).map(Er=>Er.path).some(Er=>jt.pathname.startsWith(Er)))||jt.pathname==="/")},[jt.pathname]),Qt=()=>{const Zt=flattenMenu(BlockMenuList).filter(cr=>!cr.label).map(cr=>cr.key),dr=jt.pathname.slice(6);return!Zt.some(cr=>dr.startsWith(cr))};return jsxRuntimeExports.jsxs(Layout$1,{className:styles$1.layout,children:[jsxRuntimeExports.jsx(MetasuitesAdBanner,{visible:globalStore.metasuitesBannerVisible&&!projectStore.blockLimitReached&&!jt.pathname.startsWith("/explorer/tx"),closeTips:()=>globalStore.setMetaSuitesBannerVisible(!1),showTips:()=>globalStore.setMetaSuitesBannerVisible(!0)}),Qt()&&jsxRuntimeExports.jsx(BlockLimitAlertBanner$1,{}),jsxRuntimeExports.jsxs(Layout$1,{hasSider:!0,children:[jsxRuntimeExports.jsx(Sidebar$1,{ref:Vt}),jsxRuntimeExports.jsxs(Layout$1,{children:[jsxRuntimeExports.jsx(Navbar,{slot:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Iconfont,{type:"icon-menu",className:"mr-6 sm:hidden",onClick:()=>{var Zt;return(Zt=Vt.current)==null?void 0:Zt.toggle()}}),!!(Bt!=null&&Bt.length)&&zt&&jsxRuntimeExports.jsx(ProjectSelector$1,{className:"mr-4",onOpenModalAddProject:()=>yt(!0)})]})}),jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx("div",{className:"flex size-full items-center justify-center",children:jsxRuntimeExports.jsx(Spin,{})}),children:jsxRuntimeExports.jsx(Layout$1.Content,{id:"dashboard_scrollableDiv",className:"relative m-0 overflow-y-auto p-8",children:Xt?jsxRuntimeExports.jsx(Auth$1,{children:!isNil(Bt)&&!isNil(Ct)?Bt.length>0?ht:jsxRuntimeExports.jsx(Layout$1,{className:"flex h-[calc(100vh-128px)] items-center justify-center",children:jsxRuntimeExports.jsx(Kt,{})}):jsxRuntimeExports.jsx(Layout$1,{className:"flex h-[calc(100vh-128px)] items-center justify-center",children:jsxRuntimeExports.jsx(Spin,{})})}):ht})})]})]}),jsxRuntimeExports.jsx(ModalCreateProject$1,{capacity:$t,visible:Et,onClose:()=>yt(!1),onSuccess:Zt=>{projectStore.setProjectId(Zt),projectStore.getProjectList()}})]})},DashboardLayout$2=observer(DashboardLayout$1),DefaultLayout=()=>jsxRuntimeExports.jsxs(Layout$1,{className:"h-screen overflow-auto",children:[jsxRuntimeExports.jsx(Navbar,{showProfile:!0,slot:jsxRuntimeExports.jsx(Logo,{className:"mr-12 h-16 py-4"}),className:"sticky top-0 z-10"}),jsxRuntimeExports.jsx(Layout$1,{className:"h-auto",children:jsxRuntimeExports.jsx(Layout$1.Content,{className:"mx-auto min-h-fit w-full max-w-7xl p-6 lg:p-8",children:jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx("div",{className:"flex size-full items-center justify-center",children:jsxRuntimeExports.jsx(Spin,{})}),children:jsxRuntimeExports.jsx(Outlet,{})})})})]}),BlockLayout=({children:ht})=>{const Et=useNavigate(),yt=useLocation(),{hasPermission:Ct}=useAuth(),{blockLimitReached:$t}=projectStore,At=Ct([Permissions.ACCESS_FORK]),Bt=()=>{const Ft=flattenMenu(BlockMenuList).filter(Mt=>!Mt.label).map(Mt=>Mt.key),kt=yt.pathname.slice(8);return!Ft.some(Mt=>kt.startsWith(Mt))},Dt=reactExports.useMemo(()=>{const Ft=yt.pathname.slice(8);return flattenMenu(BlockMenuList).find(kt=>kt.key?Ft.startsWith(kt.key):Ft===kt.key)},[yt,At]);return jsxRuntimeExports.jsxs("div",{className:"w-fit sm:w-full",children:[Bt()&&jsxRuntimeExports.jsx(Tabs,{className:cls("sticky -top-8 z-10 -mt-8 mb-10 bg-body",{"lg:!mt-3":$t}),activeKey:Dt==null?void 0:Dt.key,items:BlockMenuList.map(Ft=>omit(Ft,"children")),onChange:Ft=>{Et(`/phalcon${Ft}`,{replace:!0})}}),ht]})},BlockLayout$1=observer(BlockLayout),layout="_layout_hdhc7_1",table="_table_hdhc7_9",emptyProject="_emptyProject_hdhc7_29",btn="_btn_hdhc7_35",icon="_icon_hdhc7_40",styles={layout,table,emptyProject,btn,icon},DashboardLayout=({children:ht})=>{const{projectId:Et,projectList:yt,getRoles:Ct,getProjectCapacity:$t,getPermissions:At,setPermissions:Bt}=projectStore,[Dt]=useSearchParams();return reactExports.useEffect(()=>{projectStore.getProjectList(Dt.get("projectId"))},[]),reactExports.useEffect(()=>{yt!=null&&yt.length&&Et&&(Ct(),$t(),At()),(yt==null?void 0:yt.length)===0&&Bt([])},[yt,Et]),jsxRuntimeExports.jsx(Layout$1,{className:styles.layout,children:jsxRuntimeExports.jsx(Layout$1,{hasSider:!1,children:jsxRuntimeExports.jsxs(Layout$1,{children:[jsxRuntimeExports.jsx(Navbar,{className:cls({"!hidden":globalStore.fullScreen})}),jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx("div",{className:"flex size-full items-center justify-center",children:jsxRuntimeExports.jsx(Spin,{})}),children:jsxRuntimeExports.jsx(Layout$1.Content,{id:"dashboard_scrollableDiv",className:"relative m-0 overflow-y-auto p-8",children:ht})})]})})})},ExplorerLayout=observer(DashboardLayout),Layout={Dashboard:DashboardLayout$2,Navbar,Default:DefaultLayout,Block:BlockLayout$1,Explorer:ExplorerLayout},Dashboard=()=>jsxRuntimeExports.jsx(Layout.Dashboard,{children:jsxRuntimeExports.jsx(Outlet,{})}),Focus=lazyWithRetry(()=>__vitePreload(()=>import("./index-ChBOqhlb.js"),__vite__mapDeps([4,5,6,7,8,9,10,11,12,13,14,15,16]))),SecurityIncidents=lazyWithRetry(()=>__vitePreload(()=>import("./index-4I3HKMO6.js"),__vite__mapDeps([17,11,18,6,7,8,9,10,19,20,21]))),TransactionAnalysis=lazyWithRetry(()=>__vitePreload(()=>import("./index-DneH47xf.js"),__vite__mapDeps([22,6,7,8,9,10,23,24,5,11,12,13,14,18,25,26,27,28,29,30,15,31]))),ServiceStatus=lazyWithRetry(()=>__vitePreload(()=>import("./index-nx5arZuL.js"),__vite__mapDeps([32,33]))),Audit=lazyWithRetry(()=>__vitePreload(()=>import("./index-TkcsLHY5.js"),__vite__mapDeps([34,35,36]))),NotFound=lazyWithRetry(()=>__vitePreload(()=>import("./index-D02aTsl_.js"),__vite__mapDeps([37,36,38]))),AccessDenied=lazyWithRetry(()=>__vitePreload(()=>import("./index-sCNk0q1G.js"),__vite__mapDeps([39,40]))),Invitation=lazyWithRetry(()=>__vitePreload(()=>import("./index-Cv8BRWnw.js"),[])),Home=lazyWithRetry(()=>__vitePreload(()=>import("./index-BEYBZGPx.js"),[])),Fork=lazyWithRetry(()=>__vitePreload(()=>import("./index-BFyxmAyM.js"),[])),Block=lazyWithRetry(()=>__vitePreload(()=>import("./index-B0VYAn0p.js"),__vite__mapDeps([41,42,43,44,45,46,26,27,28,47,48,49,50,11,18,51,52,53,54,55,20,10,8,13,56,57,58,15,59]))),Simulator=lazyWithRetry(()=>__vitePreload(()=>import("./index-CLwi2IT9.js"),__vite__mapDeps([60,55,11,23,61]))),Explorer=lazyWithRetry(()=>__vitePreload(()=>import("./index-BWZWiW9Z.js"),__vite__mapDeps([62,24,5,6,7,8,9,10,11,12,13,14,23,18,25,26,27,28,29,30,15,31,43,44]))),Collaborators=lazyWithRetry(()=>__vitePreload(()=>import("./index-CE2Bw6Hb.js"),__vite__mapDeps([63,64,65,66]))),Settings=lazyWithRetry(()=>__vitePreload(()=>import("./index-CrjdiwvV.js"),__vite__mapDeps([67,64,65,68]))),ForkDashboard=lazyWithRetry(()=>__vitePreload(()=>import("./index-Rk2bqJpM.js"),__vite__mapDeps([69,20,30,35,65,70]))),ForkAddress=lazyWithRetry(()=>__vitePreload(()=>import("./index-uD50fMRY.js"),__vite__mapDeps([71,20,72,73]))),ForkList=lazyWithRetry(()=>__vitePreload(()=>import("./index-DRuPvXWx.js"),__vite__mapDeps([74,75,49,76,77,78,79,44,42,43,45,80,64,81,82,83]))),ForkSettings=lazyWithRetry(()=>__vitePreload(()=>import("./index-D2Dxa00s.js"),__vite__mapDeps([84,56,57,55,20,81,82,65,85]))),BlockDashboard=lazyWithRetry(()=>__vitePreload(()=>import("./index-CKbxUsRs.js"),__vite__mapDeps([86,77,78,79,44,42,43,45,80,64,87,88,26,27,28]))),BlockMonitorDetail=lazyWithRetry(()=>__vitePreload(()=>import("./index-DTNpJ4UH.js"),__vite__mapDeps([89,90,91,55,20,56,57,46,26,27,28,47,48,49,50,92,58,93,94,95,72,25,12,7,8,13,78,87,96,66,65]))),BlockMonitorEdit=lazyWithRetry(()=>__vitePreload(()=>import("./index-DzqIrAvD.js"),__vite__mapDeps([97,20,95,72,46,26,27,28,47,48,49,50,25,12,7,8,13,78,87,96,66]))),BlockMonitorList=lazyWithRetry(()=>__vitePreload(()=>import("./index-C__IWtpE.js"),__vite__mapDeps([98,90,91,99,100,101,102,103]))),BlockActionList=lazyWithRetry(()=>__vitePreload(()=>import("./index-BHXwxrYZ.js"),__vite__mapDeps([104,46,26,27,28,47,48,49,50,91,101,102,13,93,105,106]))),BlockActionEdit=lazyWithRetry(()=>__vitePreload(()=>import("./index-DgWLFfWk.js"),__vite__mapDeps([52,53,26,27,28,54,46,47,48,49,50,51,55,20,10,8,13]))),BlockActionDetail=lazyWithRetry(()=>__vitePreload(()=>import("./index-D0ciVQci.js"),__vite__mapDeps([107,20,26,27,28,56,57,93,101,55,46,47,48,49,50,92,58,94,13,65,53,54,108]))),BlockActionModuleEdit=lazyWithRetry(()=>__vitePreload(()=>import("./index-BGGAEY_1.js"),__vite__mapDeps([109,110,46,26,27,28,47,48,49,50,93,55,20,58,54,111]))),BlockLogList=lazyWithRetry(()=>__vitePreload(()=>import("./index-DXtExzb0.js"),__vite__mapDeps([112,55,87,88,113]))),BlockContractList=lazyWithRetry(()=>__vitePreload(()=>import("./index-CpDtBVw2.js"),__vite__mapDeps([114,99,100,101,102]))),BlockContractEdit=lazyWithRetry(()=>__vitePreload(()=>import("./index-DoGQBa9o.js"),__vite__mapDeps([115,51,28,55,20,116,47,117]))),BlockContractDetail=lazyWithRetry(()=>__vitePreload(()=>import("./index-DzzzNKt8.js"),__vite__mapDeps([118,55,20,116,47,117,56,57,93,46,26,27,28,48,49,50,13,65,119]))),BlockAlertList=lazyWithRetry(()=>__vitePreload(()=>import("./index-BgwwEtRs.js"),__vite__mapDeps([120,101,121]))),BlockAlertDetail=lazyWithRetry(()=>__vitePreload(()=>import("./index-D2dHTN2p.js"),__vite__mapDeps([122,55,20,26,27,28,56,57,58,13,123]))),BlockModuleDetail=lazyWithRetry(()=>__vitePreload(()=>import("./index-DbtztyoS.js"),__vite__mapDeps([124,110,46,26,27,28,47,48,49,50,55,20,56,57,93,101,65,125]))),BlockNotification=lazyWithRetry(()=>__vitePreload(()=>import("./index-Dos8Bv8T.js"),__vite__mapDeps([126,46,26,27,28,47,48,49,50,105,65,127]))),BlockLimitedPlanGuardian=lazyWithRetry(()=>__vitePreload(()=>import("./index-MSQL7BBb.js"),[])),BlockTestKit=lazyWithRetry(()=>__vitePreload(()=>import("./index-D6qGa_Q2.js"),__vite__mapDeps([128,75,49,76,101,65]))),Plans=lazyWithRetry(()=>__vitePreload(()=>import("./index-Dxb7wmWy.js"),__vite__mapDeps([129,58,130,7,8,96,131,132]))),SubscribeSuccess=lazyWithRetry(()=>__vitePreload(()=>import("./index-C0D870r9.js"),[])),OrderExpired=lazyWithRetry(()=>__vitePreload(()=>import("./index-y4dWztli.js"),[])),Checkout=lazyWithRetry(()=>__vitePreload(()=>import("./index-xUeyuYkH.js"),__vite__mapDeps([133,79,44,131,134]))),CryptoPayment=lazyWithRetry(()=>__vitePreload(()=>import("./index-CP7qHk8h.js"),__vite__mapDeps([135,90,91,48]))),Billing=lazyWithRetry(()=>__vitePreload(()=>import("./index-BCITO0vi.js"),__vite__mapDeps([136,58,101,27,28,65,137]))),Account=lazyWithRetry(()=>__vitePreload(()=>import("./index-DNw1DL9B.js"),__vite__mapDeps([138,56,57,65]))),CustomizeBlock=lazyWithRetry(()=>__vitePreload(()=>import("./index-JiKR3h8E.js"),__vite__mapDeps([139,79,44,9,7,8,10,29,131,65,80,19,130,96]))),Package=lazyWithRetry(()=>__vitePreload(()=>import("./index-UVzM3Mvo.js"),__vite__mapDeps([140,141]))),Usage=lazyWithRetry(()=>__vitePreload(()=>import("./index-BJL8z2ZX.js"),__vite__mapDeps([142,79,44]))),routes=[{path:"/",element:jsxRuntimeExports.jsx(Dashboard,{}),children:[{path:"",noAuth:!0,element:jsxRuntimeExports.jsx(Home,{})},{path:"/collaborators",element:jsxRuntimeExports.jsx(Collaborators,{})},{path:"/phalcon",element:jsxRuntimeExports.jsx(Block,{}),children:[{path:"",element:jsxRuntimeExports.jsx(BlockDashboard,{})},{path:"/phalcon/monitor",element:jsxRuntimeExports.jsx(Outlet,{}),children:[{path:"",element:jsxRuntimeExports.jsx(Redirect,{to:"/phalcon/monitor/list"})},{path:"/phalcon/monitor/detail/:id?",element:jsxRuntimeExports.jsx(BlockMonitorDetail,{})},{path:"/phalcon/monitor/edit/:id?",element:jsxRuntimeExports.jsx(BlockMonitorEdit,{})},{path:"/phalcon/monitor/create",element:jsxRuntimeExports.jsx(BlockMonitorEdit,{})},{path:"/phalcon/monitor/list",element:jsxRuntimeExports.jsx(BlockMonitorList,{})}]},{path:"/phalcon/action",element:jsxRuntimeExports.jsx(BlockLimitedPlanGuardian,{outlet:!0,centered:!0,interceptor:"action"}),children:[{path:"",element:jsxRuntimeExports.jsx(Redirect,{to:"/phalcon/action/list"})},{path:"/phalcon/action/list",element:jsxRuntimeExports.jsx(BlockActionList,{})},{path:"/phalcon/action/edit/:id?",element:jsxRuntimeExports.jsx(BlockActionEdit,{})},{path:"/phalcon/action/detail/:id",element:jsxRuntimeExports.jsx(BlockActionDetail,{})},{path:"/phalcon/action/module/edit/:id?",element:jsxRuntimeExports.jsx(BlockActionModuleEdit,{})},{path:"/phalcon/action/module/detail/:id",element:jsxRuntimeExports.jsx(BlockModuleDetail,{})}]},{path:"/phalcon/contract",element:jsxRuntimeExports.jsx(Outlet,{}),children:[{path:"",element:jsxRuntimeExports.jsx(Redirect,{to:"/phalcon/contract/list"})},{path:"/phalcon/contract/detail/:id",element:jsxRuntimeExports.jsx(BlockContractDetail,{})},{path:"/phalcon/contract/edit/:id?",element:jsxRuntimeExports.jsx(BlockContractEdit,{})},{path:"/phalcon/contract/list",element:jsxRuntimeExports.jsx(BlockContractList,{})}]},{path:"/phalcon/log",element:jsxRuntimeExports.jsx(Outlet,{}),children:[{path:"",element:jsxRuntimeExports.jsx(Redirect,{to:"/phalcon/log/list"})},{path:"/phalcon/log/list",element:jsxRuntimeExports.jsx(BlockLogList,{})}]},{path:"/phalcon/alert",element:jsxRuntimeExports.jsx(Outlet,{}),children:[{path:"",element:jsxRuntimeExports.jsx(Redirect,{to:"/phalcon/alert/list"})},{path:"/phalcon/alert/detail/:id",element:jsxRuntimeExports.jsx(BlockAlertDetail,{})},{path:"/phalcon/alert/list",element:jsxRuntimeExports.jsx(BlockAlertList,{})}]},{path:"/phalcon/notification",element:jsxRuntimeExports.jsx(BlockNotification,{})},{path:"/phalcon/testkit",element:jsxRuntimeExports.jsx(BlockTestKit,{})}]},{path:"/settings",element:jsxRuntimeExports.jsx(Settings,{})},{path:"/fork",element:jsxRuntimeExports.jsx(Outlet,{}),children:[{path:"/fork",element:jsxRuntimeExports.jsx(ForkList,{})},{path:"/fork/:id",element:jsxRuntimeExports.jsx(Fork,{}),children:[{path:"",element:jsxRuntimeExports.jsx(ForkDashboard,{})},{path:"/fork/:id/address/:address",element:jsxRuntimeExports.jsx(ForkAddress,{})},{path:"/fork/:id/settings",element:jsxRuntimeExports.jsx(ForkSettings,{})}]}]},{path:"/simulator",noAuth:!0,element:jsxRuntimeExports.jsx(Simulator,{})},{path:"/audit",noAuth:!0,element:jsxRuntimeExports.jsx(Audit,{})}]},{path:"/",element:jsxRuntimeExports.jsx(Layout.Explorer,{children:jsxRuntimeExports.jsx(Outlet,{})}),children:[{path:"/explorer",noAuth:!0,element:jsxRuntimeExports.jsx(Outlet,{}),children:[{path:"",element:jsxRuntimeExports.jsx(Explorer,{})},{path:"/explorer/tx/:network/:txnHash",element:jsxRuntimeExports.jsx(TransactionAnalysis,{})},{path:"/explorer/security-incidents",element:jsxRuntimeExports.jsx(SecurityIncidents,{})}]}]},{path:"/explorer/focus",noAuth:!0,element:jsxRuntimeExports.jsx(Focus,{})},{path:"/invitation",element:jsxRuntimeExports.jsx(Auth$1,{children:jsxRuntimeExports.jsx(Invitation,{})})},{path:"/billing",element:jsxRuntimeExports.jsx(Layout.Default,{}),children:[{path:"",element:jsxRuntimeExports.jsx(Auth$1,{children:jsxRuntimeExports.jsx(Billing,{})})}]},{path:"/subscribe",element:jsxRuntimeExports.jsx(Layout.Default,{}),children:[{path:"",element:jsxRuntimeExports.jsx(Plans,{})},{path:"/subscribe/success",element:jsxRuntimeExports.jsx(SubscribeSuccess,{})},{path:"/subscribe/expired",element:jsxRuntimeExports.jsx(OrderExpired,{})},{path:"/subscribe/block/customize",element:jsxRuntimeExports.jsx(Auth$1,{children:jsxRuntimeExports.jsx(CustomizeBlock,{})})},{path:"/subscribe/block/package",element:jsxRuntimeExports.jsx(Auth$1,{children:jsxRuntimeExports.jsx(Package,{})})},{path:"/subscribe/checkout",element:jsxRuntimeExports.jsx(Auth$1,{children:jsxRuntimeExports.jsx(Outlet,{})}),children:[{path:"",element:jsxRuntimeExports.jsx(Checkout,{})},{path:"/subscribe/checkout/crypto",element:jsxRuntimeExports.jsx(CryptoPayment,{})}]}]},{path:"/account",element:jsxRuntimeExports.jsx(Auth$1,{children:jsxRuntimeExports.jsx(Layout.Default,{})}),children:[{path:"",element:jsxRuntimeExports.jsx(Account,{})}]},{path:"/service",noAuth:!0,element:jsxRuntimeExports.jsx(Layout.Default,{}),children:[{path:"/service/status",element:jsxRuntimeExports.jsx(ServiceStatus,{})}]},{path:"/usage",element:jsxRuntimeExports.jsx(Layout.Default,{}),children:[{path:"",element:jsxRuntimeExports.jsx(Usage,{})}]},{path:"/403",element:jsxRuntimeExports.jsx(AccessDenied,{})},{path:"*",element:jsxRuntimeExports.jsx(NotFound,{})}];p$7({config:ht=>{const Et=LocalStorage.getItem(BLOCKSEC_TOKEN);return ht.headers["BlockSec-Token"]=Et??"",ht},onError:({code:ht,msg:Et,url:yt,body:Ct,traceparent:$t})=>{if(console.log("fetch error =>",ht,Et,yt,Ct,$t),isUnauthorized(ht)?(LocalStorage.removeItem(BLOCKSEC_TOKEN),accountStore.setAccountInfo(null)):ht===CODE_STATUS.PRODUCT_NOT_ENABLED?(yt==null?void 0:yt.indexOf("/block/"))!==-1&&window.location.replace("/phalcon"):ht===CODE_STATUS.FORBIDDEN&&window.location.replace("/403"),ht.toString().startsWith("5")){const At=[{name:Et??ht.toString(),message:JSON.stringify(Ct)}],Bt=[{key:SemanticAttributes.HTTP_URL,value:yt}];$t&&Bt.push({key:"traceparent",value:$t}),trace("fetch error",{events:At,attrs:Bt})}}});const App=()=>{const ht=useRoutes(routes),{mode:Et}=reactExports.useContext(ThemeContext),{modalContactUsVisible:yt,setModalContactUsVisible:Ct}=globalStore;return reactExports.useEffect(()=>{accountStore.getAccountInfo()},[]),jsxRuntimeExports.jsxs(Auth$1,{trigger:null,children:[jsxRuntimeExports.jsxs(HelmetExport,{children:[jsxRuntimeExports.jsx("title",{children:"BlockSec App Suite | Full-Stack Blockchain Security Service"}),jsxRuntimeExports.jsx("meta",{name:"description",content:"Security suite for Protocols, Developers, LPs, & Traders - safeguarding your blockchain journey"})]}),ht,jsxRuntimeExports.jsx(Q$1,{stacked:!0,theme:Et,autoClose:1500,position:"top-center"}),jsxRuntimeExports.jsx(ModalContactUs,{visible:yt,onClose:()=>Ct(!1)})]})},App$1=observer(App),root=client.createRoot(document.getElementById("root"));dayjs.extend(utc);dayjs.extend(timezone);dayjs.extend(relativeTime);const{chains,publicClient,webSocketPublicClient}=configureChains([mainnet,bsc,arbitrum,manta,mantle,base$1],[publicProvider()]),connectors=connectorsForWallets([{groupName:"Recommended",wallets:[metaMaskWallet({projectId:"2ffd98216529a83224a84e08ea438d19",chains}),walletConnectWallet({projectId:"2ffd98216529a83224a84e08ea438d19",chains})]}]),config=createConfig({autoConnect:!0,publicClient,webSocketPublicClient,connectors});root.render(jsxRuntimeExports.jsx(TraceProvider,{children:jsxRuntimeExports.jsx(ErrorBound,{children:jsxRuntimeExports.jsx(WagmiConfig,{config,children:jsxRuntimeExports.jsxs(RainbowKitProvider,{chains,locale:"en",theme:null,children:[jsxRuntimeExports.jsx("style",{dangerouslySetInnerHTML:{__html:`
            :root {
              ${cssStringFromTheme(darkTheme)}
            }
            html[data-theme="light"] {
              ${cssStringFromTheme(lightTheme)}
            }
          `}}),jsxRuntimeExports.jsx(lib$4.MetaMaskProvider,{children:jsxRuntimeExports.jsx(ThemeProvider,{children:jsxRuntimeExports.jsx(BrowserRouter,{children:jsxRuntimeExports.jsx(App$1,{})})})})]})})})}));export{observer as $,process$1$1 as A,x25519 as B,random as C,chacha20poly1305 as D,getDocument_1 as E,getLocation_1 as F,Buffer$g as G,HKDF_1 as H,getAugmentedNamespace as I,eventsExports as J,getDefaultExportFromCjs$1 as K,binary as L,wipe$1 as M,Bi as N,EventEmitter$1 as O,commonjsGlobal as P,localforage as Q,toJS as R,InvocationFlowPosition as S,DebugActionType as T,bc as U,PostMessageType as V,cloneDeep as W,makeAutoObservable as X,isArray$7 as Y,isObject$g as Z,__vitePreload as _,getEnsAvatar as a,replaceElement as a$,reactExports as a0,useLocalObservable as a1,ThemeContext as a2,useSearchParams as a3,jsxRuntimeExports as a4,ConfigProvider$1 as a5,antdTheme as a6,HelmetExport as a7,Iconfont as a8,Tooltip as a9,Big as aA,useLocation as aB,Tree as aC,Tabs as aD,CopyButton as aE,Tracker as aF,GA_EVENT_NAMES as aG,getIntrinsic as aH,callBound$2 as aI,safeBufferExports as aJ,bnExports$1 as aK,require$$0$3 as aL,Buffer$1$1 as aM,BN$7 as aN,genStyleHooks as aO,resetComponent as aP,unit as aQ,merge$2 as aR,TinyColor as aS,ConfigContext$1 as aT,genSubStyleComponent as aU,genPresetColor as aV,omit$1 as aW,isPresetColor as aX,isPresetStatusColor as aY,useClosable as aZ,pickClosable as a_,Button$1 as aa,cls as ab,NetworkUtils as ac,commonApi as ad,B as ae,arrayPush as af,baseFlatten as ag,copyArray as ah,isIndex as ai,baseUnset as aj,baseRest as ak,last$1 as al,isArrayLikeObject as am,reactDomExports as an,React$8 as ao,SCAN_DOMAIN as ap,BscTooltip$1 as aq,EventType as ar,isNil as as,omit as at,useParams as au,debounce$3 as av,queryString as aw,ControlStatus as ax,Icon$1 as ay,_extends$5 as az,getEnsName as b,formatEther as b$,Wave as b0,isArrayLike as b1,isBuffer$1 as b2,isTypedArray as b3,isArguments as b4,getTag as b5,isPrototype as b6,baseKeys as b7,baseGet$1 as b8,SetCache as b9,numFormatter as bA,dayjs as bB,Space as bC,copy$1 as bD,DOMAIN as bE,runInAction as bF,FAVORITE_ATTACK_ID as bG,ForwardTable as bH,Link as bI,getSubStr as bJ,Input as bK,useResponsive as bL,globalStore as bM,AccordionCard as bN,NetworkMap as bO,mainnet as bP,bsc as bQ,fantom as bR,polygon as bS,arbitrum as bT,cronos as bU,avalanche as bV,optimism as bW,linea as bX,base$1 as bY,evmos as bZ,formatUnits as b_,cacheHas as ba,Symbol$5 as bb,eq$2 as bc,Uint8Array$1 as bd,getAllKeys as be,Stack as bf,isObjectLike$2 as bg,keys$3 as bh,isKey$1 as bi,toKey$1 as bj,identity$1 as bk,Set$1 as bl,arrayIncludes$1 as bm,arrayMap as bn,getAllKeysIn as bo,castPath$1 as bp,assignValue as bq,isLength as br,wrapPromiseFn as bs,useMessage as bt,PurePanel$6 as bu,render as bv,_toConsumableArray as bw,globalConfig as bx,AppConfigContext as by,useInternalMessage as bz,getEnsResolver as c,pickAttrs as c$,localKey as c0,LabelAction as c1,RECENT_SEARCHES as c2,observable as c3,Select as c4,Switch as c5,ReactDOM as c6,useNavigate as c7,FULL_SCREEN_FEATURE_TIPS_VISIBLE as c8,SearchBar as c9,flatten as cA,toString$d as cB,EffectiveStatus as cC,baseSlice as cD,classnamesExports as cE,isSymbol$6 as cF,stringToPath$1 as cG,isPlainObject$2 as cH,Checkbox as cI,ReCaptcha as cJ,RefIcon$t as cK,RefIcon$s as cL,RefIcon$q as cM,noteOnce as cN,Trigger as cO,_defineProperty$1 as cP,_objectSpread2 as cQ,_slicedToArray as cR,_typeof$1 as cS,useEvent as cT,useMergedState as cU,wrapperRaf as cV,warningOnce as cW,useLayoutUpdateEffect as cX,useLayoutEffect$1 as cY,isVisible as cZ,RefResizeObserver as c_,FORK_LINK_LIGHT_LOGO as ca,FORK_LINK_DARK_LOGO as cb,utc as cc,timezone as cd,relativeTime as ce,Skeleton as cf,Collapse$1 as cg,_setPrototypeOf$2 as ch,_assertThisInitialized$1 as ci,Empty$3 as cj,FundFlowPosition as ck,saveSvgAsPng as cl,saveAsSvg as cm,MS_DOMAIN as cn,Card as co,Form as cp,BscModal as cq,Interface as cr,BigIntJSON as cs,LOCAL_ABI as ct,Drawer as cu,Symbol$4 as cv,PATTERN_ADDRESS as cw,Radio as cx,PATTERN_INPUT_DATA as cy,parseUnits as cz,getEnsText as d,CollaborationAccessGuardian$1 as d$,_objectWithoutProperties$1 as d0,_createClass$1 as d1,_classCallCheck as d2,ForwardOverflow as d3,genOverflowStyle as d4,getMultipleSelectorUnit as d5,initComponentToken$1 as d6,getArrowToken as d7,genOutlinedStyle as d8,genFilledStyle as d9,genPurePanel as dA,baseClone as dB,PHALCON_FORK_LOGO_DARK as dC,PHALCON_FORK_LOGO_LIGHT as dD,accountStore as dE,Spin as dF,Auth$1 as dG,PHALCON_DOCS_URL as dH,BLOCKSEC_DOMAIN as dI,ProductType as dJ,projectStore as dK,ForkContext as dL,Outlet as dM,Store$4 as dN,computed as dO,reaction as dP,ActionTriggerSource as dQ,DefenseMode as dR,SendingChannelType as dS,BLOCKSEC_EXTERNAL_LINKS as dT,TxRisk as dU,MonitorType as dV,BLOCK_TX_STATUS as dW,ProductMode as dX,isMobile$1 as dY,useAuth as dZ,Permissions as d_,genBorderlessStyle$1 as da,initInputToken as db,genCompactItemStyle as dc,genPlaceholderStyle as dd,slideDownIn as de,slideUpIn as df,slideDownOut as dg,slideUpOut as dh,genRoundedArrow as di,textEllipsis as dj,initSlideMotion as dk,initMoveMotion as dl,useIcons as dm,useCompactItemContext as dn,useVariant as dp,useCSSVarCls as dq,useSize as dr,DisabledContext as ds,FormItemInputContext as dt,useLocale as du,locale$1 as dv,useZIndex as dw,ContextIsolator as dx,getStatusClassNames as dy,getMergedStatus as dz,base2$2 as e,BlockWebhookAuthMethod as e$,Layout as e0,DrawerRequestDemo$1 as e1,ModalContactUs as e2,confetti as e3,bitMask as e4,numberToBytesLE as e5,numberToBytesBE as e6,bytesToNumberLE as e7,bytesToNumberBE as e8,validateObject as e9,u64 as eA,dataLength as eB,getNumber as eC,concat$6 as eD,assertPrivate as eE,getBigInt as eF,isHexString as eG,zeroPadValue as eH,toBeArray as eI,getBytesCopy as eJ,toBeHex as eK,getAddress as eL,dataSlice as eM,keccak256 as eN,isBytesLike as eO,id$2 as eP,toQuantity as eQ,mask as eR,toTwos as eS,resolveProperties as eT,isError as eU,isAddressable as eV,Typed as eW,resolveAddress as eX,isCallException as eY,AbiCoder as eZ,BLOCK_NOTIFICATION_TYPE as e_,concatBytes as ea,ensureBytes as eb,hexToBytes as ec,createHmacDrbg as ed,bytesToHex as ee,utils$r as ef,getBytes as eg,toBigInt as eh,assertArgument as ei,defineProperties$4 as ej,assert as ek,makeError as el,toUtf8Bytes as em,hexlify as en,toUtf8String as eo,Hash$1 as ep,hash as eq,toBytes as er,exists as es,bytes as et,createView as eu,checkOpts as ev,number as ew,output as ex,wrapConstructor$1 as ey,rotr as ez,base8$1 as f,extendsObject as f$,clientID as f0,_default as f1,uuid as f2,useAccount as f3,useNetwork as f4,BlockNetworks as f5,VerifyType as f6,__awaiter$2 as f7,__generator$2 as f8,__spreadArray$8 as f9,App$2 as fA,useForkContext as fB,lib$4 as fC,PHALCON_SCAN_DOMAIN as fD,FORK_SUPPORTED_NETWORKS as fE,ModalIntegratedConfig$1 as fF,DrawerSendTransaction$1 as fG,ModalCreateSnapshot as fH,toChecksumAddress as fI,TransactionTable$1 as fJ,getRandomAvatar as fK,Divider as fL,toArray$5 as fM,Empty$1 as fN,ForkPrivacyMode as fO,getRoleName as fP,useBreakpoint as fQ,responsiveArray as fR,initZoomMotion as fS,getArrowStyle as fT,PresetColors as fU,getArrowOffsetToken as fV,Popup as fW,getTransitionName as fX,cloneElement as fY,KeyCode as fZ,EditableInput$1 as f_,__read$h as fa,PropTypes$3 as fb,_unsupportedIterableToArray$1 as fc,useToken$1 as fd,isMobile$3 as fe,BaseInput as ff,composeRef as fg,triggerFocus$1 as fh,genBasicInputStyle as fi,genInputGroupStyle as fj,genOutlinedGroupStyle as fk,genFilledGroupStyle as fl,resetIcon as fm,RefIcon$l as fn,baseIndexOf as fo,baseTrim as fp,baseToString$1 as fq,flatRest as fr,BLOCK_ONCHAIN_ONLY_NETWORKS as fs,Row as ft,Col as fu,RiskLevel as fv,SIGNED_TXN_COUNT as fw,ForwardRef as fx,ProjectMemberStatus as fy,Roles as fz,getEnsAddress as g,stripZerosLeft as g$,Pagination as g0,DefaultRenderEmpty as g1,BlockMonitorStatus as g2,MonitorEventTriggerType as g3,useUnmount as g4,isNumber$1 as g5,copyObject as g6,keysIn as g7,baseGetTag$1 as g8,apply$5 as g9,asyncLoop as gA,u32 as gB,zeroPadBytes as gC,assertNormalize as gD,version$1 as gE,ConstructorFragment as gF,ErrorDescription as gG,ErrorFragment as gH,EventFragment as gI,FallbackFragment as gJ,FixedNumber as gK,Fragment as gL,FunctionFragment as gM,Indexed as gN,LogDescription as gO,NamedFragment as gP,ParamType as gQ,Result as gR,StructFragment as gS,TransactionDescription as gT,Utf8ErrorFuncs as gU,assertArgumentCount as gV,checkResultErrors as gW,fromTwos as gX,getIcapAddress as gY,getUint as gZ,parseEther as g_,baseAssignValue as ga,BLOCK_SUPPORTED_VARIABLE_TYPES as gb,MONITOR_VARIABLE_RANGE_RISK_TYPES as gc,MONITOR_VARIABLE_ANY_RISK_TYPES as gd,isAddress as ge,BLOCK_EXPRESSION_KEYWORDS as gf,BlockieIdenticon as gg,MarkdownIt as gh,useUpdateEffect as gi,getSafeChainByChainId as gj,PHALCON_FAVICON_DARK as gk,PHALCON_FAVICON_LIGHT as gl,SAFE_WALLET_LOGO as gm,depsAreSame as gn,__assign$4 as go,_root as gp,isObject_1 as gq,toNumber_1 as gr,isBrowser as gs,isFunction$1 as gt,__rest$M as gu,useLatest as gv,useConnectModal as gw,BlockModuleStatus as gx,GuardianEoAType as gy,RefIcon$r as gz,base10$1 as h,createEffectWithTarget as h$,toNumber as h0,toUtf8CodePoints as h1,manta as h2,mantle as h3,useWalletClient as h4,readableBrowserExports as h5,inherits_browserExports as h6,util$1 as h7,shams$1 as h8,hasPropertyDescriptors_1 as h9,e$1 as hA,u$4 as hB,s$4 as hC,x$1 as hD,c as hE,s$7 as hF,u$7 as hG,o$2 as hH,o as hI,O$1 as hJ,M$2 as hK,N$2 as hL,p$2 as hM,r$2 as hN,I$4 as hO,baseUnary as hP,intersection as hQ,canUseDom as hR,presetPrimaryColors as hS,Keyframe as hT,RefIcon$m as hU,genFocusOutline as hV,CryptoOrderStatus as hW,METAMASK_LOGO as hX,WALLETCONNECT_LOGO as hY,RefIcon$o as hZ,SubscriptionStatus as h_,defineDataProperty as ha,callBindExports as hb,streamBrowserify as hc,Stream$1 as hd,requireElliptic as he,browserExports as hf,browser$a as hg,commonjsRequire as hh,BlockOperationType as hi,BlockOpSourceType as hj,useConnect as hk,useSendTransaction as hl,MetaMaskConnector as hm,Dropdown as hn,PriceInterval as ho,U$2 as hp,o$5 as hq,I$5 as hr,y$1 as hs,l$5 as ht,C as hu,G as hv,w as hw,T$3 as hx,F$2 as hy,p$4 as hz,identityBase as i,useEffectWithTarget as i0,getTargetElement as i1,index as i2,getLocalStorage_1 as i3,getFromWindow_1 as i4,getFromWindowOrThrow_1 as i5,getDocumentOrThrow_1 as i6,getNavigatorOrThrow_1 as i7,getLocationOrThrow_1 as i8,getCryptoOrThrow_1 as i9,getCrypto_1 as ia,getLocalStorageOrThrow_1 as ib,copyToClipboard as ic,encodeUtf8$1 as id,dijkstraExports as ie,BaseError as ig,getUrl as ih,stringify$9 as ii,isAddress$1 as ij,InvalidAddressError as ik,decodeErrorResult as il,call$d as im,concat$7 as io,encodeAbiParameters as ip,HttpRequestError as iq,isHex as ir,base16$1 as j,base32$1 as k,labelhash as l,base36$1 as m,namehash as n,base58 as o,base64$1 as p,base256emoji$1 as q,filterObj as r,splitOnFirst$1 as s,strictUriEncode$1 as t,decodeUriComponent$1 as u,getWindowMetadata_1 as v,sha256 as w,getNavigator_1 as x,cjs$2 as y,global$g as z};